Class PurchaseCardL2

    • Constructor Detail

      • PurchaseCardL2

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

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

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

        public PurchaseCardL2​(PurchaseCardL2 src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getTaxAmount

        public Long getTaxAmount()
        Sales tax amount.
      • getTaxIndicator

        public PcTaxIndicator getTaxIndicator()
        Taxable status
      • getVatTaxAmount

        public Long getVatTaxAmount()
        Tax amount for freight/shipping.
      • getVatTaxRate

        public Integer getVatTaxRate()
        Tax rate on freight/shipping amount.
      • getPurchaseIdentifier

        public String getPurchaseIdentifier()
        Purchase identifier for customer/merchant.
      • getPcOrderNumber

        public String getPcOrderNumber()
        Purchase card customer code.
      • getDiscountAmount

        public Long getDiscountAmount()
        Applied discount amount.
      • getFreightAmount

        public Long getFreightAmount()
        Freight amount.
      • getDutyAmount

        public Long getDutyAmount()
        Duty amount.
      • getDestinationPostalCode

        public String getDestinationPostalCode()
        Destination postal code.
      • getShipFromPostalCode

        public String getShipFromPostalCode()
        Ship from postal code.
      • getDestinationCountryCode

        public String getDestinationCountryCode()
        Destination country code.
      • getMerchantTaxId

        public String getMerchantTaxId()
        Merchant tax id.
      • getProductDescription

        public String getProductDescription()
        Description of the product.
      • 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
      • isNotNullTaxAmount

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

        public boolean isNotNullTaxIndicator()
        Checks whether the 'taxIndicator' field is set and is not null
      • isNotNullVatTaxAmount

        public boolean isNotNullVatTaxAmount()
        Checks whether the 'vatTaxAmount' field is set and is not null
      • isNotNullVatTaxRate

        public boolean isNotNullVatTaxRate()
        Checks whether the 'vatTaxRate' field is set and is not null
      • isNotNullPurchaseIdentifier

        public boolean isNotNullPurchaseIdentifier()
        Checks whether the 'purchaseIdentifier' field is set and is not null
      • isNotNullPcOrderNumber

        public boolean isNotNullPcOrderNumber()
        Checks whether the 'pcOrderNumber' field is set and is not null
      • isNotNullDiscountAmount

        public boolean isNotNullDiscountAmount()
        Checks whether the 'discountAmount' field is set and is not null
      • isNotNullFreightAmount

        public boolean isNotNullFreightAmount()
        Checks whether the 'freightAmount' field is set and is not null
      • isNotNullDutyAmount

        public boolean isNotNullDutyAmount()
        Checks whether the 'dutyAmount' field is set and is not null
      • isNotNullDestinationPostalCode

        public boolean isNotNullDestinationPostalCode()
        Checks whether the 'destinationPostalCode' field is set and is not null
      • isNotNullShipFromPostalCode

        public boolean isNotNullShipFromPostalCode()
        Checks whether the 'shipFromPostalCode' field is set and is not null
      • isNotNullDestinationCountryCode

        public boolean isNotNullDestinationCountryCode()
        Checks whether the 'destinationCountryCode' field is set and is not null
      • isNotNullMerchantTaxId

        public boolean isNotNullMerchantTaxId()
        Checks whether the 'merchantTaxId' field is set and is not null
      • isNotNullProductDescription

        public boolean isNotNullProductDescription()
        Checks whether the 'productDescription' field is set and is not null
      • hasTaxAmount

        public boolean hasTaxAmount()
        Checks whether the 'taxAmount' field has been set, however the value could be null
      • hasTaxIndicator

        public boolean hasTaxIndicator()
        Checks whether the 'taxIndicator' field has been set, however the value could be null
      • hasVatTaxAmount

        public boolean hasVatTaxAmount()
        Checks whether the 'vatTaxAmount' field has been set, however the value could be null
      • hasVatTaxRate

        public boolean hasVatTaxRate()
        Checks whether the 'vatTaxRate' field has been set, however the value could be null
      • hasPurchaseIdentifier

        public boolean hasPurchaseIdentifier()
        Checks whether the 'purchaseIdentifier' field has been set, however the value could be null
      • hasPcOrderNumber

        public boolean hasPcOrderNumber()
        Checks whether the 'pcOrderNumber' field has been set, however the value could be null
      • hasDiscountAmount

        public boolean hasDiscountAmount()
        Checks whether the 'discountAmount' field has been set, however the value could be null
      • hasFreightAmount

        public boolean hasFreightAmount()
        Checks whether the 'freightAmount' field has been set, however the value could be null
      • hasDutyAmount

        public boolean hasDutyAmount()
        Checks whether the 'dutyAmount' field has been set, however the value could be null
      • hasDestinationPostalCode

        public boolean hasDestinationPostalCode()
        Checks whether the 'destinationPostalCode' field has been set, however the value could be null
      • hasShipFromPostalCode

        public boolean hasShipFromPostalCode()
        Checks whether the 'shipFromPostalCode' field has been set, however the value could be null
      • hasDestinationCountryCode

        public boolean hasDestinationCountryCode()
        Checks whether the 'destinationCountryCode' field has been set, however the value could be null
      • hasMerchantTaxId

        public boolean hasMerchantTaxId()
        Checks whether the 'merchantTaxId' field has been set, however the value could be null
      • hasProductDescription

        public boolean hasProductDescription()
        Checks whether the 'productDescription' field has been set, however the value could be null
      • setTaxAmount

        public PurchaseCardL2 setTaxAmount​(Long taxAmount)
        Sets the field 'taxAmount'.
      • setVatTaxAmount

        public PurchaseCardL2 setVatTaxAmount​(Long vatTaxAmount)
        Sets the field 'vatTaxAmount'.
      • setVatTaxRate

        public PurchaseCardL2 setVatTaxRate​(Integer vatTaxRate)
        Sets the field 'vatTaxRate'.
      • setPurchaseIdentifier

        public PurchaseCardL2 setPurchaseIdentifier​(String purchaseIdentifier)
        Sets the field 'purchaseIdentifier'.
      • setPcOrderNumber

        public PurchaseCardL2 setPcOrderNumber​(String pcOrderNumber)
        Sets the field 'pcOrderNumber'.
      • setDiscountAmount

        public PurchaseCardL2 setDiscountAmount​(Long discountAmount)
        Sets the field 'discountAmount'.
      • setFreightAmount

        public PurchaseCardL2 setFreightAmount​(Long freightAmount)
        Sets the field 'freightAmount'.
      • setDutyAmount

        public PurchaseCardL2 setDutyAmount​(Long dutyAmount)
        Sets the field 'dutyAmount'.
      • setDestinationPostalCode

        public PurchaseCardL2 setDestinationPostalCode​(String destinationPostalCode)
        Sets the field 'destinationPostalCode'.
      • setShipFromPostalCode

        public PurchaseCardL2 setShipFromPostalCode​(String shipFromPostalCode)
        Sets the field 'shipFromPostalCode'.
      • setDestinationCountryCode

        public PurchaseCardL2 setDestinationCountryCode​(String destinationCountryCode)
        Sets the field 'destinationCountryCode'.
      • setMerchantTaxId

        public PurchaseCardL2 setMerchantTaxId​(String merchantTaxId)
        Sets the field 'merchantTaxId'.
      • setProductDescription

        public PurchaseCardL2 setProductDescription​(String productDescription)
        Sets the field 'productDescription'.
      • clearTaxAmount

        public void clearTaxAmount()
        Clears the 'taxAmount' field, the 'has' method for this field will now return false
      • clearTaxIndicator

        public void clearTaxIndicator()
        Clears the 'taxIndicator' field, the 'has' method for this field will now return false
      • clearVatTaxAmount

        public void clearVatTaxAmount()
        Clears the 'vatTaxAmount' field, the 'has' method for this field will now return false
      • clearVatTaxRate

        public void clearVatTaxRate()
        Clears the 'vatTaxRate' field, the 'has' method for this field will now return false
      • clearPurchaseIdentifier

        public void clearPurchaseIdentifier()
        Clears the 'purchaseIdentifier' field, the 'has' method for this field will now return false
      • clearPcOrderNumber

        public void clearPcOrderNumber()
        Clears the 'pcOrderNumber' field, the 'has' method for this field will now return false
      • clearDiscountAmount

        public void clearDiscountAmount()
        Clears the 'discountAmount' field, the 'has' method for this field will now return false
      • clearFreightAmount

        public void clearFreightAmount()
        Clears the 'freightAmount' field, the 'has' method for this field will now return false
      • clearDutyAmount

        public void clearDutyAmount()
        Clears the 'dutyAmount' field, the 'has' method for this field will now return false
      • clearDestinationPostalCode

        public void clearDestinationPostalCode()
        Clears the 'destinationPostalCode' field, the 'has' method for this field will now return false
      • clearShipFromPostalCode

        public void clearShipFromPostalCode()
        Clears the 'shipFromPostalCode' field, the 'has' method for this field will now return false
      • clearDestinationCountryCode

        public void clearDestinationCountryCode()
        Clears the 'destinationCountryCode' field, the 'has' method for this field will now return false
      • clearMerchantTaxId

        public void clearMerchantTaxId()
        Clears the 'merchantTaxId' field, the 'has' method for this field will now return false
      • clearProductDescription

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

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