Class PurchaseCardL2DataWrapper

    • Constructor Detail

      • PurchaseCardL2DataWrapper

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

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

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

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

      • getPurchaseCardL2

        public PurchaseCardL2 getPurchaseCardL2()
        Purchase card object that holds l2 data corresponding to l2 fields in gt request
      • getPurchaseCardBillingInfo

        public PurchaseCardBillingInfo getPurchaseCardBillingInfo()
        Holds billing address and billing zip
      • 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
      • isNotNullPurchaseCardL2

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

        public boolean isNotNullPurchaseCardBillingInfo()
        Checks whether the 'purchaseCardBillingInfo' field is set and is not null
      • hasPurchaseCardL2

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

        public boolean hasPurchaseCardBillingInfo()
        Checks whether the 'purchaseCardBillingInfo' field has been set, however the value could be null
      • setPurchaseCardL2

        public PurchaseCardL2DataWrapper 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.
      • setPurchaseCardBillingInfo

        public PurchaseCardL2DataWrapper setPurchaseCardBillingInfo​(PurchaseCardBillingInfo purchaseCardBillingInfo)
        Sets the field 'purchaseCardBillingInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearPurchaseCardL2

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

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

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