Class DynamicBinHandlerRequest

    • Constructor Detail

      • DynamicBinHandlerRequest

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

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

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

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

      • getFirst6

        public String getFirst6()
        first6 of number
      • getLast4

        public String getLast4()
        last4 of number
      • getCardType

        public CardType getCardType()
        determined card type based on AID/GBF/etc
      • getAmount

        public Long getAmount()
        tx amount
      • getEntryType

        public CardEntryType getEntryType()
        enum indicating if this is MSR, CONTACT, NFC, KEYED
      • 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
      • isNotNullPaymentPlatformType

        public boolean isNotNullPaymentPlatformType()
        Checks whether the 'paymentPlatformType' field is set and is not null
      • isNotNullFirst6

        public boolean isNotNullFirst6()
        Checks whether the 'first6' field is set and is not null
      • isNotNullLast4

        public boolean isNotNullLast4()
        Checks whether the 'last4' field is set and is not null
      • isNotNullCardType

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

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

        public boolean isNotNullEntryType()
        Checks whether the 'entryType' field is set and is not null
      • hasPaymentPlatformType

        public boolean hasPaymentPlatformType()
        Checks whether the 'paymentPlatformType' field has been set, however the value could be null
      • hasFirst6

        public boolean hasFirst6()
        Checks whether the 'first6' field has been set, however the value could be null
      • hasLast4

        public boolean hasLast4()
        Checks whether the 'last4' field has been set, however the value could be null
      • hasCardType

        public boolean hasCardType()
        Checks whether the 'cardType' 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
      • hasEntryType

        public boolean hasEntryType()
        Checks whether the 'entryType' field has been set, however the value could be null
      • clearPaymentPlatformType

        public void clearPaymentPlatformType()
        Clears the 'paymentPlatformType' field, the 'has' method for this field will now return false
      • clearFirst6

        public void clearFirst6()
        Clears the 'first6' field, the 'has' method for this field will now return false
      • clearLast4

        public void clearLast4()
        Clears the 'last4' field, the 'has' method for this field will now return false
      • clearCardType

        public void clearCardType()
        Clears the 'cardType' 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
      • clearEntryType

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

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