Class GiftCard

    • Constructor Detail

      • GiftCard

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

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

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

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

      • getTrack2

        public String getTrack2()
        Track 2 Card Data
      • getCardNumber

        public String getCardNumber()
        Embossed Card Number
      • getIsManuallyEntered

        public Boolean getIsManuallyEntered()
        Was Account Number Manually Entered
      • getDeviceSerial

        public String getDeviceSerial()
      • getVirtual

        public Boolean getVirtual()
        Is this a virtual gift card
      • getPromoCode

        public String getPromoCode()
        Virtual Promo Code
      • 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
      • isNotNullTrack2

        public boolean isNotNullTrack2()
        Checks whether the 'track2' field is set and is not null
      • isNotNullCardNumber

        public boolean isNotNullCardNumber()
        Checks whether the 'cardNumber' field is set and is not null
      • isNotNullIsManuallyEntered

        public boolean isNotNullIsManuallyEntered()
        Checks whether the 'isManuallyEntered' field is set and is not null
      • isNotNullDeviceSerial

        public boolean isNotNullDeviceSerial()
        Checks whether the 'deviceSerial' field is set and is not null
      • isNotNullVirtual

        public boolean isNotNullVirtual()
        Checks whether the 'virtual' field is set and is not null
      • isNotNullPromoCode

        public boolean isNotNullPromoCode()
        Checks whether the 'promoCode' field is set and is not null
      • hasTrack2

        public boolean hasTrack2()
        Checks whether the 'track2' field has been set, however the value could be null
      • hasCardNumber

        public boolean hasCardNumber()
        Checks whether the 'cardNumber' field has been set, however the value could be null
      • hasIsManuallyEntered

        public boolean hasIsManuallyEntered()
        Checks whether the 'isManuallyEntered' field has been set, however the value could be null
      • hasDeviceSerial

        public boolean hasDeviceSerial()
        Checks whether the 'deviceSerial' field has been set, however the value could be null
      • hasVirtual

        public boolean hasVirtual()
        Checks whether the 'virtual' field has been set, however the value could be null
      • hasPromoCode

        public boolean hasPromoCode()
        Checks whether the 'promoCode' field has been set, however the value could be null
      • setTrack2

        public GiftCard setTrack2​(String track2)
        Sets the field 'track2'.
      • setCardNumber

        public GiftCard setCardNumber​(String cardNumber)
        Sets the field 'cardNumber'.
      • setIsManuallyEntered

        public GiftCard setIsManuallyEntered​(Boolean isManuallyEntered)
        Sets the field 'isManuallyEntered'.
      • setDeviceSerial

        public GiftCard setDeviceSerial​(String deviceSerial)
        Sets the field 'deviceSerial'.
      • setVirtual

        public GiftCard setVirtual​(Boolean virtual)
        Sets the field 'virtual'.
      • setPromoCode

        public GiftCard setPromoCode​(String promoCode)
        Sets the field 'promoCode'.
      • clearTrack2

        public void clearTrack2()
        Clears the 'track2' field, the 'has' method for this field will now return false
      • clearCardNumber

        public void clearCardNumber()
        Clears the 'cardNumber' field, the 'has' method for this field will now return false
      • clearIsManuallyEntered

        public void clearIsManuallyEntered()
        Clears the 'isManuallyEntered' field, the 'has' method for this field will now return false
      • clearDeviceSerial

        public void clearDeviceSerial()
        Clears the 'deviceSerial' field, the 'has' method for this field will now return false
      • clearVirtual

        public void clearVirtual()
        Clears the 'virtual' field, the 'has' method for this field will now return false
      • clearPromoCode

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

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