Package com.clover.sdk.v3.payments
Class Refund
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.Refund
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class Refund extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
id
orderRef
device
amount
taxAmount
tipAmount
createdTime
clientCreatedTime
deletedTime
gatewayProcessingTime
payment
employee
lineItems
overrideMerchantTender
taxableAmountRates
serviceChargeAmount
additionalCharges
attributes
germanInfo
appTracking
voided
voidReason
cardTransaction
transactionInfo
merchant
externalReferenceId
authCode
status
oceanGatewayInfo
reason
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Refund.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<Refund>
CREATOR
static JSONifiable.Creator<Refund>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description Refund()
Constructs a new empty instance.protected
Refund(boolean noInit)
Constructs a new empty instance.Refund(Refund src)
Constructs a new instance that is a deep copy of the source instance.Refund(String json)
Constructs a new instance from the given JSON String.Refund(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAdditionalCharges()
Clears the 'additionalCharges' field, the 'has' method for this field will now return falsevoid
clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return falsevoid
clearAppTracking()
Clears the 'appTracking' field, the 'has' method for this field will now return falsevoid
clearAttributes()
Clears the 'attributes' field, the 'has' method for this field will now return falsevoid
clearAuthCode()
Clears the 'authCode' field, the 'has' method for this field will now return falsevoid
clearCardTransaction()
Clears the 'cardTransaction' field, the 'has' method for this field will now return falsevoid
clearClientCreatedTime()
Clears the 'clientCreatedTime' field, the 'has' method for this field will now return falsevoid
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return falsevoid
clearDevice()
Clears the 'device' field, the 'has' method for this field will now return falsevoid
clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return falsevoid
clearExternalReferenceId()
Clears the 'externalReferenceId' field, the 'has' method for this field will now return falsevoid
clearGatewayProcessingTime()
Clears the 'gatewayProcessingTime' field, the 'has' method for this field will now return falsevoid
clearGermanInfo()
Clears the 'germanInfo' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearLineItems()
Clears the 'lineItems' field, the 'has' method for this field will now return falsevoid
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return falsevoid
clearOceanGatewayInfo()
Clears the 'oceanGatewayInfo' field, the 'has' method for this field will now return falsevoid
clearOrderRef()
Clears the 'orderRef' field, the 'has' method for this field will now return falsevoid
clearOverrideMerchantTender()
Clears the 'overrideMerchantTender' field, the 'has' method for this field will now return falsevoid
clearPayment()
Clears the 'payment' field, the 'has' method for this field will now return falsevoid
clearReason()
Clears the 'reason' field, the 'has' method for this field will now return falsevoid
clearServiceChargeAmount()
Clears the 'serviceChargeAmount' field, the 'has' method for this field will now return falsevoid
clearStatus()
Clears the 'status' field, the 'has' method for this field will now return falsevoid
clearTaxableAmountRates()
Clears the 'taxableAmountRates' field, the 'has' method for this field will now return falsevoid
clearTaxAmount()
Clears the 'taxAmount' field, the 'has' method for this field will now return falsevoid
clearTipAmount()
Clears the 'tipAmount' field, the 'has' method for this field will now return falsevoid
clearTransactionInfo()
Clears the 'transactionInfo' field, the 'has' method for this field will now return falsevoid
clearVoided()
Clears the 'voided' field, the 'has' method for this field will now return falsevoid
clearVoidReason()
Clears the 'voidReason' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.Refund
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.List<AdditionalChargeAmount>
getAdditionalCharges()
Long
getAmount()
Total amount refunded, including tax and tipAppTracking
getAppTracking()
Tracking information for the app that created this refund.Map<String,String>
getAttributes()
String
getAuthCode()
Auth code generated by the acquireCardTransaction
getCardTransaction()
Information about the card used for credit or debit card refundsLong
getClientCreatedTime()
The time when the refund was recorded on the clientLong
getCreatedTime()
The time when the refund was recorded on the serverLong
getDeletedTime()
The time when the refund was deleted on the serverReference
getDevice()
Device which processed the transaction for this refund, a 128-bit UUID, not a normal base-13 Clover ID.Reference
getEmployee()
String
getExternalReferenceId()
The external reference id if associated with the refundLong
getGatewayProcessingTime()
The time when the refund was processed by the gatewayprotected GenericClient
getGenericClient()
GermanInfo
getGermanInfo()
German region-specific informationString
getId()
Unique identifierJSONObject
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.List<Reference>
getLineItems()
Reference
getMerchant()
OceanGatewayInfo
getOceanGatewayInfo()
Ocean Gateway info - for India regionReference
getOrderRef()
The order with which the refund is associatedTender
getOverrideMerchantTender()
The tender type associated with this payment, e.g.Reference
getPayment()
The payment with which the refund is associatedString
getReason()
Reason why the refund was initiatedServiceChargeAmount
getServiceChargeAmount()
RefundStatus
getStatus()
Status of the refund.It can be Fail/Success/PendingList<TaxableAmountRate>
getTaxableAmountRates()
Long
getTaxAmount()
Tax amount refundedLong
getTipAmount()
Tip amount refundedTransactionInfo
getTransactionInfo()
Transaction informationBoolean
getVoided()
String
getVoidReason()
boolean
hasAdditionalCharges()
Checks whether the 'additionalCharges' field has been set, however the value could be nullboolean
hasAmount()
Checks whether the 'amount' field has been set, however the value could be nullboolean
hasAppTracking()
Checks whether the 'appTracking' field has been set, however the value could be nullboolean
hasAttributes()
Checks whether the 'attributes' field has been set, however the value could be nullboolean
hasAuthCode()
Checks whether the 'authCode' field has been set, however the value could be nullboolean
hasCardTransaction()
Checks whether the 'cardTransaction' field has been set, however the value could be nullboolean
hasClientCreatedTime()
Checks whether the 'clientCreatedTime' field has been set, however the value could be nullboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be nullboolean
hasDevice()
Checks whether the 'device' field has been set, however the value could be nullboolean
hasEmployee()
Checks whether the 'employee' field has been set, however the value could be nullboolean
hasExternalReferenceId()
Checks whether the 'externalReferenceId' field has been set, however the value could be nullboolean
hasGatewayProcessingTime()
Checks whether the 'gatewayProcessingTime' field has been set, however the value could be nullboolean
hasGermanInfo()
Checks whether the 'germanInfo' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasLineItems()
Checks whether the 'lineItems' field has been set, however the value could be nullboolean
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be nullboolean
hasOceanGatewayInfo()
Checks whether the 'oceanGatewayInfo' field has been set, however the value could be nullboolean
hasOrderRef()
Checks whether the 'orderRef' field has been set, however the value could be nullboolean
hasOverrideMerchantTender()
Checks whether the 'overrideMerchantTender' field has been set, however the value could be nullboolean
hasPayment()
Checks whether the 'payment' field has been set, however the value could be nullboolean
hasReason()
Checks whether the 'reason' field has been set, however the value could be nullboolean
hasServiceChargeAmount()
Checks whether the 'serviceChargeAmount' field has been set, however the value could be nullboolean
hasStatus()
Checks whether the 'status' field has been set, however the value could be nullboolean
hasTaxableAmountRates()
Checks whether the 'taxableAmountRates' field has been set, however the value could be nullboolean
hasTaxAmount()
Checks whether the 'taxAmount' field has been set, however the value could be nullboolean
hasTipAmount()
Checks whether the 'tipAmount' field has been set, however the value could be nullboolean
hasTransactionInfo()
Checks whether the 'transactionInfo' field has been set, however the value could be nullboolean
hasVoided()
Checks whether the 'voided' field has been set, however the value could be nullboolean
hasVoidReason()
Checks whether the 'voidReason' field has been set, however the value could be nullboolean
isNotEmptyAdditionalCharges()
Checks whether the 'additionalCharges' field is set and is not null and is not emptyboolean
isNotEmptyAttributes()
Checks whether the 'attributes' field is set and is not null and is not emptyboolean
isNotEmptyLineItems()
Checks whether the 'lineItems' field is set and is not null and is not emptyboolean
isNotEmptyTaxableAmountRates()
Checks whether the 'taxableAmountRates' field is set and is not null and is not emptyboolean
isNotNullAdditionalCharges()
Checks whether the 'additionalCharges' field is set and is not nullboolean
isNotNullAmount()
Checks whether the 'amount' field is set and is not nullboolean
isNotNullAppTracking()
Checks whether the 'appTracking' field is set and is not nullboolean
isNotNullAttributes()
Checks whether the 'attributes' field is set and is not nullboolean
isNotNullAuthCode()
Checks whether the 'authCode' field is set and is not nullboolean
isNotNullCardTransaction()
Checks whether the 'cardTransaction' field is set and is not nullboolean
isNotNullClientCreatedTime()
Checks whether the 'clientCreatedTime' field is set and is not nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not nullboolean
isNotNullDevice()
Checks whether the 'device' field is set and is not nullboolean
isNotNullEmployee()
Checks whether the 'employee' field is set and is not nullboolean
isNotNullExternalReferenceId()
Checks whether the 'externalReferenceId' field is set and is not nullboolean
isNotNullGatewayProcessingTime()
Checks whether the 'gatewayProcessingTime' field is set and is not nullboolean
isNotNullGermanInfo()
Checks whether the 'germanInfo' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullLineItems()
Checks whether the 'lineItems' field is set and is not nullboolean
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not nullboolean
isNotNullOceanGatewayInfo()
Checks whether the 'oceanGatewayInfo' field is set and is not nullboolean
isNotNullOrderRef()
Checks whether the 'orderRef' field is set and is not nullboolean
isNotNullOverrideMerchantTender()
Checks whether the 'overrideMerchantTender' field is set and is not nullboolean
isNotNullPayment()
Checks whether the 'payment' field is set and is not nullboolean
isNotNullReason()
Checks whether the 'reason' field is set and is not nullboolean
isNotNullServiceChargeAmount()
Checks whether the 'serviceChargeAmount' field is set and is not nullboolean
isNotNullStatus()
Checks whether the 'status' field is set and is not nullboolean
isNotNullTaxableAmountRates()
Checks whether the 'taxableAmountRates' field is set and is not nullboolean
isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not nullboolean
isNotNullTipAmount()
Checks whether the 'tipAmount' field is set and is not nullboolean
isNotNullTransactionInfo()
Checks whether the 'transactionInfo' field is set and is not nullboolean
isNotNullVoided()
Checks whether the 'voided' field is set and is not nullboolean
isNotNullVoidReason()
Checks whether the 'voidReason' field is set and is not nullvoid
mergeChanges(Refund src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.Refund
setAdditionalCharges(List<AdditionalChargeAmount> additionalCharges)
Sets the field 'additionalCharges'.Refund
setAmount(Long amount)
Sets the field 'amount'.Refund
setAppTracking(AppTracking appTracking)
Sets the field 'appTracking'.Refund
setAttributes(Map<String,String> attributes)
Sets the field 'attributes'.Refund
setAuthCode(String authCode)
Sets the field 'authCode'.Refund
setCardTransaction(CardTransaction cardTransaction)
Sets the field 'cardTransaction'.Refund
setClientCreatedTime(Long clientCreatedTime)
Sets the field 'clientCreatedTime'.Refund
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.Refund
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.Refund
setDevice(Reference device)
Sets the field 'device'.Refund
setEmployee(Reference employee)
Sets the field 'employee'.Refund
setExternalReferenceId(String externalReferenceId)
Sets the field 'externalReferenceId'.Refund
setGatewayProcessingTime(Long gatewayProcessingTime)
Sets the field 'gatewayProcessingTime'.Refund
setGermanInfo(GermanInfo germanInfo)
Sets the field 'germanInfo'.Refund
setId(String id)
Sets the field 'id'.Refund
setLineItems(List<Reference> lineItems)
Sets the field 'lineItems'.Refund
setMerchant(Reference merchant)
Sets the field 'merchant'.Refund
setOceanGatewayInfo(OceanGatewayInfo oceanGatewayInfo)
Sets the field 'oceanGatewayInfo'.Refund
setOrderRef(Reference orderRef)
Sets the field 'orderRef'.Refund
setOverrideMerchantTender(Tender overrideMerchantTender)
Sets the field 'overrideMerchantTender'.Refund
setPayment(Reference payment)
Sets the field 'payment'.Refund
setReason(String reason)
Sets the field 'reason'.Refund
setServiceChargeAmount(ServiceChargeAmount serviceChargeAmount)
Sets the field 'serviceChargeAmount'.Refund
setStatus(RefundStatus status)
Sets the field 'status'.Refund
setTaxableAmountRates(List<TaxableAmountRate> taxableAmountRates)
Sets the field 'taxableAmountRates'.Refund
setTaxAmount(Long taxAmount)
Sets the field 'taxAmount'.Refund
setTipAmount(Long tipAmount)
Sets the field 'tipAmount'.Refund
setTransactionInfo(TransactionInfo transactionInfo)
Sets the field 'transactionInfo'.Refund
setVoided(Boolean voided)
Sets the field 'voided'.Refund
setVoidReason(String voidReason)
Sets the field 'voidReason'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<Refund> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<Refund> JSON_CREATOR
-
-
Constructor Detail
-
Refund
public Refund()
Constructs a new empty instance.
-
Refund
protected Refund(boolean noInit)
Constructs a new empty instance.
-
Refund
public Refund(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
Refund
public Refund(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Refund
public Refund(Refund src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
Unique identifier
-
getOrderRef
public Reference getOrderRef()
The order with which the refund is associated
-
getDevice
public Reference getDevice()
Device which processed the transaction for this refund, a 128-bit UUID, not a normal base-13 Clover ID.
-
getAmount
public Long getAmount()
Total amount refunded, including tax and tip
-
getTaxAmount
public Long getTaxAmount()
Tax amount refunded
-
getTipAmount
public Long getTipAmount()
Tip amount refunded
-
getCreatedTime
public Long getCreatedTime()
The time when the refund was recorded on the server
-
getClientCreatedTime
public Long getClientCreatedTime()
The time when the refund was recorded on the client
-
getDeletedTime
public Long getDeletedTime()
The time when the refund was deleted on the server
-
getGatewayProcessingTime
public Long getGatewayProcessingTime()
The time when the refund was processed by the gateway
-
getPayment
public Reference getPayment()
The payment with which the refund is associated
-
getEmployee
public Reference getEmployee()
-
getOverrideMerchantTender
public Tender getOverrideMerchantTender()
The tender type associated with this payment, e.g. credit card, cash, etc.
-
getTaxableAmountRates
public List<TaxableAmountRate> getTaxableAmountRates()
-
getServiceChargeAmount
public ServiceChargeAmount getServiceChargeAmount()
-
getAdditionalCharges
public List<AdditionalChargeAmount> getAdditionalCharges()
-
getGermanInfo
public GermanInfo getGermanInfo()
German region-specific information
-
getAppTracking
public AppTracking getAppTracking()
Tracking information for the app that created this refund.
-
getVoided
public Boolean getVoided()
-
getVoidReason
public String getVoidReason()
-
getCardTransaction
public CardTransaction getCardTransaction()
Information about the card used for credit or debit card refunds
-
getTransactionInfo
public TransactionInfo getTransactionInfo()
Transaction information
-
getMerchant
public Reference getMerchant()
-
getExternalReferenceId
public String getExternalReferenceId()
The external reference id if associated with the refund
-
getAuthCode
public String getAuthCode()
Auth code generated by the acquire
-
getStatus
public RefundStatus getStatus()
Status of the refund.It can be Fail/Success/Pending
-
getOceanGatewayInfo
public OceanGatewayInfo getOceanGatewayInfo()
Ocean Gateway info - for India region
-
getReason
public String getReason()
Reason why the refund was initiated
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullOrderRef
public boolean isNotNullOrderRef()
Checks whether the 'orderRef' field is set and is not null
-
isNotNullDevice
public boolean isNotNullDevice()
Checks whether the 'device' field is set and is not null
-
isNotNullAmount
public boolean isNotNullAmount()
Checks whether the 'amount' field is set and is not null
-
isNotNullTaxAmount
public boolean isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not null
-
isNotNullTipAmount
public boolean isNotNullTipAmount()
Checks whether the 'tipAmount' field is set and is not null
-
isNotNullCreatedTime
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
-
isNotNullClientCreatedTime
public boolean isNotNullClientCreatedTime()
Checks whether the 'clientCreatedTime' field is set and is not null
-
isNotNullDeletedTime
public boolean isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
-
isNotNullGatewayProcessingTime
public boolean isNotNullGatewayProcessingTime()
Checks whether the 'gatewayProcessingTime' field is set and is not null
-
isNotNullPayment
public boolean isNotNullPayment()
Checks whether the 'payment' field is set and is not null
-
isNotNullEmployee
public boolean isNotNullEmployee()
Checks whether the 'employee' field is set and is not null
-
isNotNullLineItems
public boolean isNotNullLineItems()
Checks whether the 'lineItems' field is set and is not null
-
isNotEmptyLineItems
public boolean isNotEmptyLineItems()
Checks whether the 'lineItems' field is set and is not null and is not empty
-
isNotNullOverrideMerchantTender
public boolean isNotNullOverrideMerchantTender()
Checks whether the 'overrideMerchantTender' field is set and is not null
-
isNotNullTaxableAmountRates
public boolean isNotNullTaxableAmountRates()
Checks whether the 'taxableAmountRates' field is set and is not null
-
isNotEmptyTaxableAmountRates
public boolean isNotEmptyTaxableAmountRates()
Checks whether the 'taxableAmountRates' field is set and is not null and is not empty
-
isNotNullServiceChargeAmount
public boolean isNotNullServiceChargeAmount()
Checks whether the 'serviceChargeAmount' field is set and is not null
-
isNotNullAdditionalCharges
public boolean isNotNullAdditionalCharges()
Checks whether the 'additionalCharges' field is set and is not null
-
isNotEmptyAdditionalCharges
public boolean isNotEmptyAdditionalCharges()
Checks whether the 'additionalCharges' field is set and is not null and is not empty
-
isNotNullAttributes
public boolean isNotNullAttributes()
Checks whether the 'attributes' field is set and is not null
-
isNotEmptyAttributes
public boolean isNotEmptyAttributes()
Checks whether the 'attributes' field is set and is not null and is not empty
-
isNotNullGermanInfo
public boolean isNotNullGermanInfo()
Checks whether the 'germanInfo' field is set and is not null
-
isNotNullAppTracking
public boolean isNotNullAppTracking()
Checks whether the 'appTracking' field is set and is not null
-
isNotNullVoided
public boolean isNotNullVoided()
Checks whether the 'voided' field is set and is not null
-
isNotNullVoidReason
public boolean isNotNullVoidReason()
Checks whether the 'voidReason' field is set and is not null
-
isNotNullCardTransaction
public boolean isNotNullCardTransaction()
Checks whether the 'cardTransaction' field is set and is not null
-
isNotNullTransactionInfo
public boolean isNotNullTransactionInfo()
Checks whether the 'transactionInfo' field is set and is not null
-
isNotNullMerchant
public boolean isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
-
isNotNullExternalReferenceId
public boolean isNotNullExternalReferenceId()
Checks whether the 'externalReferenceId' field is set and is not null
-
isNotNullAuthCode
public boolean isNotNullAuthCode()
Checks whether the 'authCode' field is set and is not null
-
isNotNullStatus
public boolean isNotNullStatus()
Checks whether the 'status' field is set and is not null
-
isNotNullOceanGatewayInfo
public boolean isNotNullOceanGatewayInfo()
Checks whether the 'oceanGatewayInfo' field is set and is not null
-
isNotNullReason
public boolean isNotNullReason()
Checks whether the 'reason' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasOrderRef
public boolean hasOrderRef()
Checks whether the 'orderRef' field has been set, however the value could be null
-
hasDevice
public boolean hasDevice()
Checks whether the 'device' field has been set, however the value could be null
-
hasAmount
public boolean hasAmount()
Checks whether the 'amount' field has been set, however the value could be null
-
hasTaxAmount
public boolean hasTaxAmount()
Checks whether the 'taxAmount' field has been set, however the value could be null
-
hasTipAmount
public boolean hasTipAmount()
Checks whether the 'tipAmount' field has been set, however the value could be null
-
hasCreatedTime
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
-
hasClientCreatedTime
public boolean hasClientCreatedTime()
Checks whether the 'clientCreatedTime' field has been set, however the value could be null
-
hasDeletedTime
public boolean hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
-
hasGatewayProcessingTime
public boolean hasGatewayProcessingTime()
Checks whether the 'gatewayProcessingTime' field has been set, however the value could be null
-
hasPayment
public boolean hasPayment()
Checks whether the 'payment' field has been set, however the value could be null
-
hasEmployee
public boolean hasEmployee()
Checks whether the 'employee' field has been set, however the value could be null
-
hasLineItems
public boolean hasLineItems()
Checks whether the 'lineItems' field has been set, however the value could be null
-
hasOverrideMerchantTender
public boolean hasOverrideMerchantTender()
Checks whether the 'overrideMerchantTender' field has been set, however the value could be null
-
hasTaxableAmountRates
public boolean hasTaxableAmountRates()
Checks whether the 'taxableAmountRates' field has been set, however the value could be null
-
hasServiceChargeAmount
public boolean hasServiceChargeAmount()
Checks whether the 'serviceChargeAmount' field has been set, however the value could be null
-
hasAdditionalCharges
public boolean hasAdditionalCharges()
Checks whether the 'additionalCharges' field has been set, however the value could be null
-
hasAttributes
public boolean hasAttributes()
Checks whether the 'attributes' field has been set, however the value could be null
-
hasGermanInfo
public boolean hasGermanInfo()
Checks whether the 'germanInfo' field has been set, however the value could be null
-
hasAppTracking
public boolean hasAppTracking()
Checks whether the 'appTracking' field has been set, however the value could be null
-
hasVoided
public boolean hasVoided()
Checks whether the 'voided' field has been set, however the value could be null
-
hasVoidReason
public boolean hasVoidReason()
Checks whether the 'voidReason' field has been set, however the value could be null
-
hasCardTransaction
public boolean hasCardTransaction()
Checks whether the 'cardTransaction' field has been set, however the value could be null
-
hasTransactionInfo
public boolean hasTransactionInfo()
Checks whether the 'transactionInfo' field has been set, however the value could be null
-
hasMerchant
public boolean hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
-
hasExternalReferenceId
public boolean hasExternalReferenceId()
Checks whether the 'externalReferenceId' field has been set, however the value could be null
-
hasAuthCode
public boolean hasAuthCode()
Checks whether the 'authCode' field has been set, however the value could be null
-
hasStatus
public boolean hasStatus()
Checks whether the 'status' field has been set, however the value could be null
-
hasOceanGatewayInfo
public boolean hasOceanGatewayInfo()
Checks whether the 'oceanGatewayInfo' field has been set, however the value could be null
-
hasReason
public boolean hasReason()
Checks whether the 'reason' field has been set, however the value could be null
-
setOrderRef
public Refund setOrderRef(Reference orderRef)
Sets the field 'orderRef'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setDevice
public Refund setDevice(Reference device)
Sets the field 'device'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setClientCreatedTime
public Refund setClientCreatedTime(Long clientCreatedTime)
Sets the field 'clientCreatedTime'.
-
setGatewayProcessingTime
public Refund setGatewayProcessingTime(Long gatewayProcessingTime)
Sets the field 'gatewayProcessingTime'.
-
setPayment
public Refund setPayment(Reference payment)
Sets the field 'payment'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setEmployee
public Refund setEmployee(Reference employee)
Sets the field 'employee'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setLineItems
public Refund setLineItems(List<Reference> lineItems)
Sets the field 'lineItems'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setOverrideMerchantTender
public Refund setOverrideMerchantTender(Tender overrideMerchantTender)
Sets the field 'overrideMerchantTender'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setTaxableAmountRates
public Refund setTaxableAmountRates(List<TaxableAmountRate> taxableAmountRates)
Sets the field 'taxableAmountRates'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setServiceChargeAmount
public Refund setServiceChargeAmount(ServiceChargeAmount serviceChargeAmount)
Sets the field 'serviceChargeAmount'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setAdditionalCharges
public Refund setAdditionalCharges(List<AdditionalChargeAmount> additionalCharges)
Sets the field 'additionalCharges'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setAttributes
public Refund setAttributes(Map<String,String> attributes)
Sets the field 'attributes'.
-
setGermanInfo
public Refund setGermanInfo(GermanInfo germanInfo)
Sets the field 'germanInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setAppTracking
public Refund setAppTracking(AppTracking appTracking)
Sets the field 'appTracking'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setCardTransaction
public Refund setCardTransaction(CardTransaction cardTransaction)
Sets the field 'cardTransaction'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setTransactionInfo
public Refund setTransactionInfo(TransactionInfo transactionInfo)
Sets the field 'transactionInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setMerchant
public Refund setMerchant(Reference merchant)
Sets the field 'merchant'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setExternalReferenceId
public Refund setExternalReferenceId(String externalReferenceId)
Sets the field 'externalReferenceId'.
-
setStatus
public Refund setStatus(RefundStatus status)
Sets the field 'status'.
-
setOceanGatewayInfo
public Refund setOceanGatewayInfo(OceanGatewayInfo oceanGatewayInfo)
Sets the field 'oceanGatewayInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearOrderRef
public void clearOrderRef()
Clears the 'orderRef' field, the 'has' method for this field will now return false
-
clearDevice
public void clearDevice()
Clears the 'device' field, the 'has' method for this field will now return false
-
clearAmount
public void clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return false
-
clearTaxAmount
public void clearTaxAmount()
Clears the 'taxAmount' field, the 'has' method for this field will now return false
-
clearTipAmount
public void clearTipAmount()
Clears the 'tipAmount' field, the 'has' method for this field will now return false
-
clearCreatedTime
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
-
clearClientCreatedTime
public void clearClientCreatedTime()
Clears the 'clientCreatedTime' field, the 'has' method for this field will now return false
-
clearDeletedTime
public void clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
-
clearGatewayProcessingTime
public void clearGatewayProcessingTime()
Clears the 'gatewayProcessingTime' field, the 'has' method for this field will now return false
-
clearPayment
public void clearPayment()
Clears the 'payment' field, the 'has' method for this field will now return false
-
clearEmployee
public void clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return false
-
clearLineItems
public void clearLineItems()
Clears the 'lineItems' field, the 'has' method for this field will now return false
-
clearOverrideMerchantTender
public void clearOverrideMerchantTender()
Clears the 'overrideMerchantTender' field, the 'has' method for this field will now return false
-
clearTaxableAmountRates
public void clearTaxableAmountRates()
Clears the 'taxableAmountRates' field, the 'has' method for this field will now return false
-
clearServiceChargeAmount
public void clearServiceChargeAmount()
Clears the 'serviceChargeAmount' field, the 'has' method for this field will now return false
-
clearAdditionalCharges
public void clearAdditionalCharges()
Clears the 'additionalCharges' field, the 'has' method for this field will now return false
-
clearAttributes
public void clearAttributes()
Clears the 'attributes' field, the 'has' method for this field will now return false
-
clearGermanInfo
public void clearGermanInfo()
Clears the 'germanInfo' field, the 'has' method for this field will now return false
-
clearAppTracking
public void clearAppTracking()
Clears the 'appTracking' field, the 'has' method for this field will now return false
-
clearVoided
public void clearVoided()
Clears the 'voided' field, the 'has' method for this field will now return false
-
clearVoidReason
public void clearVoidReason()
Clears the 'voidReason' field, the 'has' method for this field will now return false
-
clearCardTransaction
public void clearCardTransaction()
Clears the 'cardTransaction' field, the 'has' method for this field will now return false
-
clearTransactionInfo
public void clearTransactionInfo()
Clears the 'transactionInfo' field, the 'has' method for this field will now return false
-
clearMerchant
public void clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
-
clearExternalReferenceId
public void clearExternalReferenceId()
Clears the 'externalReferenceId' field, the 'has' method for this field will now return false
-
clearAuthCode
public void clearAuthCode()
Clears the 'authCode' field, the 'has' method for this field will now return false
-
clearStatus
public void clearStatus()
Clears the 'status' field, the 'has' method for this field will now return false
-
clearOceanGatewayInfo
public void clearOceanGatewayInfo()
Clears the 'oceanGatewayInfo' field, the 'has' method for this field will now return false
-
clearReason
public void clearReason()
Clears the 'reason' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public Refund copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(Refund src)
Copy all the changed fields from the given source to this instance.
-
-