Class GiftCardTransaction

    • Constructor Detail

      • GiftCardTransaction

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

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

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

        public GiftCardTransaction​(GiftCardTransaction 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()
        UUID
      • getAmount

        public Long getAmount()
        Transaction Amount
      • getTaxAmount

        public Long getTaxAmount()
        Tax Amount
      • getTipAmount

        public Long getTipAmount()
        Tip Amount
      • getOrderId

        public String getOrderId()
      • getCard

        public GiftCard getCard()
        Gift Card
      • getPaymentIds

        public List<String> getPaymentIds()
      • getIgnorePayment

        public Boolean getIgnorePayment()
      • getLineItems

        public List<LineItemPayment> getLineItems()
        Payments that were made for this line item
      • getEmployeeId

        public String getEmployeeId()
      • getSuppressPayment

        public Boolean getSuppressPayment()
      • 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
      • 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
      • isNotNullOrderId

        public boolean isNotNullOrderId()
        Checks whether the 'orderId' field is set and is not null
      • isNotNullCard

        public boolean isNotNullCard()
        Checks whether the 'card' field is set and is not null
      • isNotNullPaymentIds

        public boolean isNotNullPaymentIds()
        Checks whether the 'paymentIds' field is set and is not null
      • isNotEmptyPaymentIds

        public boolean isNotEmptyPaymentIds()
        Checks whether the 'paymentIds' field is set and is not null and is not empty
      • isNotNullIgnorePayment

        public boolean isNotNullIgnorePayment()
        Checks whether the 'ignorePayment' field is set and is not null
      • isNotNullServiceChargeAmount

        public boolean isNotNullServiceChargeAmount()
        Checks whether the 'serviceChargeAmount' 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
      • 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
      • isNotNullEmployeeId

        public boolean isNotNullEmployeeId()
        Checks whether the 'employeeId' field is set and is not null
      • isNotNullSuppressPayment

        public boolean isNotNullSuppressPayment()
        Checks whether the 'suppressPayment' 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
      • 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
      • hasOrderId

        public boolean hasOrderId()
        Checks whether the 'orderId' field has been set, however the value could be null
      • hasCard

        public boolean hasCard()
        Checks whether the 'card' field has been set, however the value could be null
      • hasPaymentIds

        public boolean hasPaymentIds()
        Checks whether the 'paymentIds' field has been set, however the value could be null
      • hasIgnorePayment

        public boolean hasIgnorePayment()
        Checks whether the 'ignorePayment' 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
      • hasTaxableAmountRates

        public boolean hasTaxableAmountRates()
        Checks whether the 'taxableAmountRates' 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
      • hasEmployeeId

        public boolean hasEmployeeId()
        Checks whether the 'employeeId' field has been set, however the value could be null
      • hasSuppressPayment

        public boolean hasSuppressPayment()
        Checks whether the 'suppressPayment' field has been set, however the value could be null
      • setCard

        public GiftCardTransaction setCard​(GiftCard card)
        Sets the field 'card'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setPaymentIds

        public GiftCardTransaction setPaymentIds​(List<String> paymentIds)
        Sets the field 'paymentIds'. 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 GiftCardTransaction 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.
      • setTaxableAmountRates

        public GiftCardTransaction 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.
      • setLineItems

        public GiftCardTransaction setLineItems​(List<LineItemPayment> 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.
      • setSuppressPayment

        public GiftCardTransaction setSuppressPayment​(Boolean suppressPayment)
        Sets the field 'suppressPayment'.
      • clearId

        public void clearId()
        Clears the 'id' 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
      • clearOrderId

        public void clearOrderId()
        Clears the 'orderId' field, the 'has' method for this field will now return false
      • clearCard

        public void clearCard()
        Clears the 'card' field, the 'has' method for this field will now return false
      • clearPaymentIds

        public void clearPaymentIds()
        Clears the 'paymentIds' field, the 'has' method for this field will now return false
      • clearIgnorePayment

        public void clearIgnorePayment()
        Clears the 'ignorePayment' 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
      • clearTaxableAmountRates

        public void clearTaxableAmountRates()
        Clears the 'taxableAmountRates' 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
      • clearEmployeeId

        public void clearEmployeeId()
        Clears the 'employeeId' field, the 'has' method for this field will now return false
      • clearSuppressPayment

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

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