Class Payment

    • Constructor Detail

      • Payment

        public Payment()
        Constructs a new empty instance.
      • Payment

        protected Payment​(boolean noInit)
        Constructs a new empty instance.
      • Payment

        public Payment​(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.
      • Payment

        public Payment​(Payment 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
      • getOrder

        public Reference getOrder()
        The order with which the payment is associated
      • getDevice

        public Reference getDevice()
        Device which processed the transaction for this payment, a 128-bit UUID, not a normal base-13 Clover ID.
      • getTender

        public Tender getTender()
        The tender type associated with this payment, e.g. credit card, cash, etc.
      • getAmount

        public Long getAmount()
        Total amount paid
      • getTipAmount

        public Long getTipAmount()
        Amount paid in tips
      • getTaxAmount

        public Long getTaxAmount()
        Amount paid in tax
      • getCashbackAmount

        public Long getCashbackAmount()
        Amount given back in a cash back transaction
      • getCashTendered

        public Long getCashTendered()
        Amount of cash given by the customer
      • getExternalPaymentId

        public String getExternalPaymentId()
      • getEmployee

        public Reference getEmployee()
        The employee who processed the payment
      • getCreatedTime

        public Long getCreatedTime()
        Time payment was recorded on server
      • getClientCreatedTime

        public Long getClientCreatedTime()
      • getGatewayProcessingTime

        public Long getGatewayProcessingTime()
        The time when the transaction was processed by the gateway
      • getModifiedTime

        public Long getModifiedTime()
        Last modified time of the payment
      • getOffline

        public Boolean getOffline()
      • getResult

        public Result getResult()
      • getCardTransaction

        public CardTransaction getCardTransaction()
        Information about the card used for credit/debit card payments
      • getServiceCharge

        public ServiceChargeAmount getServiceCharge()
        Amount record as a service charge
      • getNote

        public String getNote()
      • getAuthorization

        public Reference getAuthorization()
        Authorization which this payment is associated to (opening or closing payment) if one exists
      • getVoidPaymentRef

        public Reference getVoidPaymentRef()
        If voided, the corresponding successful payment, and vice versa
      • getVoidReason

        public VoidReason getVoidReason()
        If voided, the reason why (when available)
      • getVoidReasonDetails

        public VoidReasonDetails getVoidReasonDetails()
        Detailed explanation on why the transaction is getting voided
      • getDccInfo

        public DCCInfo getDccInfo()
        Dynamic Currency Conversion information
      • getTransactionSettings

        public TransactionSettings getTransactionSettings()
        Per transaction settings for the payment
      • getGermanInfo

        public GermanInfo getGermanInfo()
        German region-specific information
      • getAppTracking

        public AppTracking getAppTracking()
        Tracking information for the app that created this payment.
      • getCashAdvanceExtra

        public CashAdvanceExtra getCashAdvanceExtra()
        Information specific to cash advance transactions.
      • getTransactionInfo

        public TransactionInfo getTransactionInfo()
        Transaction information
      • getSignatureDisclaimer

        public SignatureDisclaimer getSignatureDisclaimer()
        Information displayed to customer for storing electronic signatures
      • getExternalReferenceId

        public String getExternalReferenceId()
        The external reference id if associated with the payment
      • getMerchant

        public Reference getMerchant()
      • getPurchaseCardL2

        public PurchaseCardL2 getPurchaseCardL2()
        Purchase card level 2 data
      • getPurchaseCardL3

        public PurchaseCardL3 getPurchaseCardL3()
        Purchase card level 3 data
      • getOceanGatewayInfo

        public OceanGatewayInfo getOceanGatewayInfo()
        Ocean Gateway info
      • getTerminalManagementComponents

        public List<TerminalManagementComponent> getTerminalManagementComponents()
        Terminal management components as defined by Nexo. They contain general information on the terminal, the installed payment app, etc.
      • getEmiInfo

        public PaymentEmiInfo getEmiInfo()
        Associated EMI information
      • getPaymentBatchInfo

        public PaymentBatchInfo getPaymentBatchInfo()
        Information about the Batch used for payments
      • 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 interface JSONifiable
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullOrder

        public boolean isNotNullOrder()
        Checks whether the 'order' field is set and is not null
      • isNotNullDevice

        public boolean isNotNullDevice()
        Checks whether the 'device' field is set and is not null
      • isNotNullTender

        public boolean isNotNullTender()
        Checks whether the 'tender' field is set and is not null
      • isNotNullAmount

        public boolean isNotNullAmount()
        Checks whether the 'amount' field is set and is not null
      • isNotNullTipAmount

        public boolean isNotNullTipAmount()
        Checks whether the 'tipAmount' field is set and is not null
      • isNotNullTaxAmount

        public boolean isNotNullTaxAmount()
        Checks whether the 'taxAmount' field is set and is not null
      • isNotNullCashbackAmount

        public boolean isNotNullCashbackAmount()
        Checks whether the 'cashbackAmount' field is set and is not null
      • isNotNullCashTendered

        public boolean isNotNullCashTendered()
        Checks whether the 'cashTendered' field is set and is not null
      • isNotNullExternalPaymentId

        public boolean isNotNullExternalPaymentId()
        Checks whether the 'externalPaymentId' field is set and is not null
      • isNotNullEmployee

        public boolean isNotNullEmployee()
        Checks whether the 'employee' 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
      • isNotNullGatewayProcessingTime

        public boolean isNotNullGatewayProcessingTime()
        Checks whether the 'gatewayProcessingTime' field is set and is not null
      • isNotNullModifiedTime

        public boolean isNotNullModifiedTime()
        Checks whether the 'modifiedTime' field is set and is not null
      • isNotNullOffline

        public boolean isNotNullOffline()
        Checks whether the 'offline' field is set and is not null
      • isNotNullResult

        public boolean isNotNullResult()
        Checks whether the 'result' field is set and is not null
      • isNotNullCardTransaction

        public boolean isNotNullCardTransaction()
        Checks whether the 'cardTransaction' field is set and is not null
      • isNotNullServiceCharge

        public boolean isNotNullServiceCharge()
        Checks whether the 'serviceCharge' field is set and is not null
      • 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
      • 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
      • isNotNullTaxRates

        public boolean isNotNullTaxRates()
        Checks whether the 'taxRates' field is set and is not null
      • isNotEmptyTaxRates

        public boolean isNotEmptyTaxRates()
        Checks whether the 'taxRates' field is set and is not null and is not empty
      • isNotNullRefunds

        public boolean isNotNullRefunds()
        Checks whether the 'refunds' field is set and is not null
      • isNotEmptyRefunds

        public boolean isNotEmptyRefunds()
        Checks whether the 'refunds' field is set and is not null and is not empty
      • isNotNullNote

        public boolean isNotNullNote()
        Checks whether the 'note' field is set and is not null
      • isNotNullLineItemPayments

        public boolean isNotNullLineItemPayments()
        Checks whether the 'lineItemPayments' field is set and is not null
      • isNotEmptyLineItemPayments

        public boolean isNotEmptyLineItemPayments()
        Checks whether the 'lineItemPayments' field is set and is not null and is not empty
      • isNotNullAuthorization

        public boolean isNotNullAuthorization()
        Checks whether the 'authorization' field is set and is not null
      • isNotNullVoidPaymentRef

        public boolean isNotNullVoidPaymentRef()
        Checks whether the 'voidPaymentRef' field is set and is not null
      • isNotNullVoidReason

        public boolean isNotNullVoidReason()
        Checks whether the 'voidReason' field is set and is not null
      • isNotNullVoidReasonDetails

        public boolean isNotNullVoidReasonDetails()
        Checks whether the 'voidReasonDetails' field is set and is not null
      • isNotNullDccInfo

        public boolean isNotNullDccInfo()
        Checks whether the 'dccInfo' field is set and is not null
      • isNotNullTransactionSettings

        public boolean isNotNullTransactionSettings()
        Checks whether the 'transactionSettings' field is set and is not null
      • 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
      • isNotNullCashAdvanceExtra

        public boolean isNotNullCashAdvanceExtra()
        Checks whether the 'cashAdvanceExtra' field is set and is not null
      • isNotNullTransactionInfo

        public boolean isNotNullTransactionInfo()
        Checks whether the 'transactionInfo' field is set and is not null
      • isNotNullSignatureDisclaimer

        public boolean isNotNullSignatureDisclaimer()
        Checks whether the 'signatureDisclaimer' field is set and is not null
      • isNotNullExternalReferenceId

        public boolean isNotNullExternalReferenceId()
        Checks whether the 'externalReferenceId' field is set and is not null
      • isNotNullMerchant

        public boolean isNotNullMerchant()
        Checks whether the 'merchant' field is set and is not null
      • isNotNullIncrements

        public boolean isNotNullIncrements()
        Checks whether the 'increments' field is set and is not null
      • isNotEmptyIncrements

        public boolean isNotEmptyIncrements()
        Checks whether the 'increments' field is set and is not null and is not empty
      • isNotNullPurchaseCardL2

        public boolean isNotNullPurchaseCardL2()
        Checks whether the 'purchaseCardL2' field is set and is not null
      • isNotNullPurchaseCardL3

        public boolean isNotNullPurchaseCardL3()
        Checks whether the 'purchaseCardL3' field is set and is not null
      • isNotNullOceanGatewayInfo

        public boolean isNotNullOceanGatewayInfo()
        Checks whether the 'oceanGatewayInfo' field is set and is not null
      • isNotNullTerminalManagementComponents

        public boolean isNotNullTerminalManagementComponents()
        Checks whether the 'terminalManagementComponents' field is set and is not null
      • isNotEmptyTerminalManagementComponents

        public boolean isNotEmptyTerminalManagementComponents()
        Checks whether the 'terminalManagementComponents' field is set and is not null and is not empty
      • isNotNullEmiInfo

        public boolean isNotNullEmiInfo()
        Checks whether the 'emiInfo' field is set and is not null
      • isNotNullPaymentBatchInfo

        public boolean isNotNullPaymentBatchInfo()
        Checks whether the 'paymentBatchInfo' 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
      • hasOrder

        public boolean hasOrder()
        Checks whether the 'order' 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
      • hasTender

        public boolean hasTender()
        Checks whether the 'tender' 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
      • hasTipAmount

        public boolean hasTipAmount()
        Checks whether the 'tipAmount' 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
      • hasCashbackAmount

        public boolean hasCashbackAmount()
        Checks whether the 'cashbackAmount' field has been set, however the value could be null
      • hasCashTendered

        public boolean hasCashTendered()
        Checks whether the 'cashTendered' field has been set, however the value could be null
      • hasExternalPaymentId

        public boolean hasExternalPaymentId()
        Checks whether the 'externalPaymentId' 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
      • 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
      • hasGatewayProcessingTime

        public boolean hasGatewayProcessingTime()
        Checks whether the 'gatewayProcessingTime' field has been set, however the value could be null
      • hasModifiedTime

        public boolean hasModifiedTime()
        Checks whether the 'modifiedTime' field has been set, however the value could be null
      • hasOffline

        public boolean hasOffline()
        Checks whether the 'offline' field has been set, however the value could be null
      • hasResult

        public boolean hasResult()
        Checks whether the 'result' 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
      • hasServiceCharge

        public boolean hasServiceCharge()
        Checks whether the 'serviceCharge' 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
      • hasAdditionalCharges

        public boolean hasAdditionalCharges()
        Checks whether the 'additionalCharges' field has been set, however the value could be null
      • hasTaxRates

        public boolean hasTaxRates()
        Checks whether the 'taxRates' field has been set, however the value could be null
      • hasRefunds

        public boolean hasRefunds()
        Checks whether the 'refunds' field has been set, however the value could be null
      • hasNote

        public boolean hasNote()
        Checks whether the 'note' field has been set, however the value could be null
      • hasLineItemPayments

        public boolean hasLineItemPayments()
        Checks whether the 'lineItemPayments' field has been set, however the value could be null
      • hasAuthorization

        public boolean hasAuthorization()
        Checks whether the 'authorization' field has been set, however the value could be null
      • hasVoidPaymentRef

        public boolean hasVoidPaymentRef()
        Checks whether the 'voidPaymentRef' 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
      • hasVoidReasonDetails

        public boolean hasVoidReasonDetails()
        Checks whether the 'voidReasonDetails' field has been set, however the value could be null
      • hasDccInfo

        public boolean hasDccInfo()
        Checks whether the 'dccInfo' field has been set, however the value could be null
      • hasTransactionSettings

        public boolean hasTransactionSettings()
        Checks whether the 'transactionSettings' 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
      • hasCashAdvanceExtra

        public boolean hasCashAdvanceExtra()
        Checks whether the 'cashAdvanceExtra' 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
      • hasSignatureDisclaimer

        public boolean hasSignatureDisclaimer()
        Checks whether the 'signatureDisclaimer' 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
      • hasMerchant

        public boolean hasMerchant()
        Checks whether the 'merchant' field has been set, however the value could be null
      • hasIncrements

        public boolean hasIncrements()
        Checks whether the 'increments' field has been set, however the value could be null
      • hasPurchaseCardL2

        public boolean hasPurchaseCardL2()
        Checks whether the 'purchaseCardL2' field has been set, however the value could be null
      • hasPurchaseCardL3

        public boolean hasPurchaseCardL3()
        Checks whether the 'purchaseCardL3' 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
      • hasTerminalManagementComponents

        public boolean hasTerminalManagementComponents()
        Checks whether the 'terminalManagementComponents' field has been set, however the value could be null
      • hasEmiInfo

        public boolean hasEmiInfo()
        Checks whether the 'emiInfo' field has been set, however the value could be null
      • hasPaymentBatchInfo

        public boolean hasPaymentBatchInfo()
        Checks whether the 'paymentBatchInfo' field has been set, however the value could be null
      • setId

        public Payment setId​(String id)
        Sets the field 'id'.
      • setOrder

        public Payment setOrder​(Reference order)
        Sets the field 'order'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setDevice

        public Payment 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.
      • setTender

        public Payment setTender​(Tender tender)
        Sets the field 'tender'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setAmount

        public Payment setAmount​(Long amount)
        Sets the field 'amount'.
      • setTipAmount

        public Payment setTipAmount​(Long tipAmount)
        Sets the field 'tipAmount'.
      • setTaxAmount

        public Payment setTaxAmount​(Long taxAmount)
        Sets the field 'taxAmount'.
      • setCashbackAmount

        public Payment setCashbackAmount​(Long cashbackAmount)
        Sets the field 'cashbackAmount'.
      • setCashTendered

        public Payment setCashTendered​(Long cashTendered)
        Sets the field 'cashTendered'.
      • setExternalPaymentId

        public Payment setExternalPaymentId​(String externalPaymentId)
        Sets the field 'externalPaymentId'.
      • setEmployee

        public Payment 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.
      • setCreatedTime

        public Payment setCreatedTime​(Long createdTime)
        Sets the field 'createdTime'.
      • setClientCreatedTime

        public Payment setClientCreatedTime​(Long clientCreatedTime)
        Sets the field 'clientCreatedTime'.
      • setGatewayProcessingTime

        public Payment setGatewayProcessingTime​(Long gatewayProcessingTime)
        Sets the field 'gatewayProcessingTime'.
      • setModifiedTime

        public Payment setModifiedTime​(Long modifiedTime)
        Sets the field 'modifiedTime'.
      • setOffline

        public Payment setOffline​(Boolean offline)
        Sets the field 'offline'.
      • setResult

        public Payment setResult​(Result result)
        Sets the field 'result'.
      • setCardTransaction

        public Payment 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.
      • setServiceCharge

        public Payment setServiceCharge​(ServiceChargeAmount serviceCharge)
        Sets the field 'serviceCharge'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setAttributes

        public Payment setAttributes​(Map<String,​String> attributes)
        Sets the field 'attributes'.
      • setAdditionalCharges

        public Payment 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.
      • setTaxRates

        public Payment setTaxRates​(List<PaymentTaxRate> taxRates)
        Sets the field 'taxRates'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setRefunds

        public Payment setRefunds​(List<Refund> refunds)
        Sets the field 'refunds'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setNote

        public Payment setNote​(String note)
        Sets the field 'note'.
      • setLineItemPayments

        public Payment setLineItemPayments​(List<LineItemPayment> lineItemPayments)
        Sets the field 'lineItemPayments'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setAuthorization

        public Payment setAuthorization​(Reference authorization)
        Sets the field 'authorization'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setVoidPaymentRef

        public Payment setVoidPaymentRef​(Reference voidPaymentRef)
        Sets the field 'voidPaymentRef'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setVoidReason

        public Payment setVoidReason​(VoidReason voidReason)
        Sets the field 'voidReason'.
      • setVoidReasonDetails

        public Payment setVoidReasonDetails​(VoidReasonDetails voidReasonDetails)
        Sets the field 'voidReasonDetails'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setDccInfo

        public Payment setDccInfo​(DCCInfo dccInfo)
        Sets the field 'dccInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setTransactionSettings

        public Payment setTransactionSettings​(TransactionSettings transactionSettings)
        Sets the field 'transactionSettings'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setGermanInfo

        public Payment 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 Payment 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.
      • setCashAdvanceExtra

        public Payment setCashAdvanceExtra​(CashAdvanceExtra cashAdvanceExtra)
        Sets the field 'cashAdvanceExtra'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setTransactionInfo

        public Payment 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.
      • setSignatureDisclaimer

        public Payment setSignatureDisclaimer​(SignatureDisclaimer signatureDisclaimer)
        Sets the field 'signatureDisclaimer'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setExternalReferenceId

        public Payment setExternalReferenceId​(String externalReferenceId)
        Sets the field 'externalReferenceId'.
      • setMerchant

        public Payment 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.
      • setIncrements

        public Payment setIncrements​(List<IncrementalAuthorization> increments)
        Sets the field 'increments'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setPurchaseCardL2

        public Payment setPurchaseCardL2​(PurchaseCardL2 purchaseCardL2)
        Sets the field 'purchaseCardL2'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setPurchaseCardL3

        public Payment setPurchaseCardL3​(PurchaseCardL3 purchaseCardL3)
        Sets the field 'purchaseCardL3'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setOceanGatewayInfo

        public Payment 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.
      • setTerminalManagementComponents

        public Payment setTerminalManagementComponents​(List<TerminalManagementComponent> terminalManagementComponents)
        Sets the field 'terminalManagementComponents'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setEmiInfo

        public Payment setEmiInfo​(PaymentEmiInfo emiInfo)
        Sets the field 'emiInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setPaymentBatchInfo

        public Payment setPaymentBatchInfo​(PaymentBatchInfo paymentBatchInfo)
        Sets the field 'paymentBatchInfo'. 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
      • clearOrder

        public void clearOrder()
        Clears the 'order' 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
      • clearTender

        public void clearTender()
        Clears the 'tender' 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
      • clearTipAmount

        public void clearTipAmount()
        Clears the 'tipAmount' 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
      • clearCashbackAmount

        public void clearCashbackAmount()
        Clears the 'cashbackAmount' field, the 'has' method for this field will now return false
      • clearCashTendered

        public void clearCashTendered()
        Clears the 'cashTendered' field, the 'has' method for this field will now return false
      • clearExternalPaymentId

        public void clearExternalPaymentId()
        Clears the 'externalPaymentId' 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
      • 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
      • clearGatewayProcessingTime

        public void clearGatewayProcessingTime()
        Clears the 'gatewayProcessingTime' field, the 'has' method for this field will now return false
      • clearModifiedTime

        public void clearModifiedTime()
        Clears the 'modifiedTime' field, the 'has' method for this field will now return false
      • clearOffline

        public void clearOffline()
        Clears the 'offline' field, the 'has' method for this field will now return false
      • clearResult

        public void clearResult()
        Clears the 'result' 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
      • clearServiceCharge

        public void clearServiceCharge()
        Clears the 'serviceCharge' 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
      • clearAdditionalCharges

        public void clearAdditionalCharges()
        Clears the 'additionalCharges' field, the 'has' method for this field will now return false
      • clearTaxRates

        public void clearTaxRates()
        Clears the 'taxRates' field, the 'has' method for this field will now return false
      • clearRefunds

        public void clearRefunds()
        Clears the 'refunds' field, the 'has' method for this field will now return false
      • clearNote

        public void clearNote()
        Clears the 'note' field, the 'has' method for this field will now return false
      • clearLineItemPayments

        public void clearLineItemPayments()
        Clears the 'lineItemPayments' field, the 'has' method for this field will now return false
      • clearAuthorization

        public void clearAuthorization()
        Clears the 'authorization' field, the 'has' method for this field will now return false
      • clearVoidPaymentRef

        public void clearVoidPaymentRef()
        Clears the 'voidPaymentRef' 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
      • clearVoidReasonDetails

        public void clearVoidReasonDetails()
        Clears the 'voidReasonDetails' field, the 'has' method for this field will now return false
      • clearDccInfo

        public void clearDccInfo()
        Clears the 'dccInfo' field, the 'has' method for this field will now return false
      • clearTransactionSettings

        public void clearTransactionSettings()
        Clears the 'transactionSettings' 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
      • clearCashAdvanceExtra

        public void clearCashAdvanceExtra()
        Clears the 'cashAdvanceExtra' 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
      • clearSignatureDisclaimer

        public void clearSignatureDisclaimer()
        Clears the 'signatureDisclaimer' 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
      • clearMerchant

        public void clearMerchant()
        Clears the 'merchant' field, the 'has' method for this field will now return false
      • clearIncrements

        public void clearIncrements()
        Clears the 'increments' field, the 'has' method for this field will now return false
      • clearPurchaseCardL2

        public void clearPurchaseCardL2()
        Clears the 'purchaseCardL2' field, the 'has' method for this field will now return false
      • clearPurchaseCardL3

        public void clearPurchaseCardL3()
        Clears the 'purchaseCardL3' 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
      • clearTerminalManagementComponents

        public void clearTerminalManagementComponents()
        Clears the 'terminalManagementComponents' field, the 'has' method for this field will now return false
      • clearEmiInfo

        public void clearEmiInfo()
        Clears the 'emiInfo' field, the 'has' method for this field will now return false
      • clearPaymentBatchInfo

        public void clearPaymentBatchInfo()
        Clears the 'paymentBatchInfo' 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 Payment copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(Payment src)
        Copy all the changed fields from the given source to this instance.