Class Gateway

    • Constructor Detail

      • Gateway

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

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

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

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

      • getPaymentProcessorName

        public String getPaymentProcessorName()
      • getAuthorizationFrontEnd

        public String getAuthorizationFrontEnd()
      • getAcquiringBackEnd

        public String getAcquiringBackEnd()
      • getPaymentGatewayApi

        public String getPaymentGatewayApi()
      • getAccountName

        public String getAccountName()
      • getAltMid

        public String getAltMid()
      • getMid

        public String getMid()
      • getFns

        public String getFns()
      • getTid

        public String getTid()
      • getStoreId

        public String getStoreId()
      • getSupportsTipping

        public Boolean getSupportsTipping()
      • getFrontendMid

        public String getFrontendMid()
      • getBackendMid

        public String getBackendMid()
      • getMcc

        public String getMcc()
        Merchant Category Code
      • getTokenType

        public String getTokenType()
      • getGroupId

        public String getGroupId()
      • getDebitKeyCode

        public String getDebitKeyCode()
      • getSredCode

        public String getSredCode()
      • getSupportsTipAdjust

        public Boolean getSupportsTipAdjust()
      • getSupportsNakedCredit

        public Boolean getSupportsNakedCredit()
      • getSupportsMultiPayToken

        public Boolean getSupportsMultiPayToken()
      • getSupportsPreauthOverage

        public Boolean getSupportsPreauthOverage()
        If true the gateway will allow an amount greater than the preauth amount to be captured.
      • getClosingTime

        public String getClosingTime()
      • getNewBatchCloseEnabled

        public Boolean getNewBatchCloseEnabled()
      • getProduction

        public Boolean getProduction()
        Field to identify whether the payment processor is real or demo. 'true' is returned for real payment processsor. 'false' is returned for demo payment processor.
      • 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
      • isNotNullPaymentProcessorName

        public boolean isNotNullPaymentProcessorName()
        Checks whether the 'paymentProcessorName' field is set and is not null
      • isNotNullAuthorizationFrontEnd

        public boolean isNotNullAuthorizationFrontEnd()
        Checks whether the 'authorizationFrontEnd' field is set and is not null
      • isNotNullAcquiringBackEnd

        public boolean isNotNullAcquiringBackEnd()
        Checks whether the 'acquiringBackEnd' field is set and is not null
      • isNotNullPaymentGatewayApi

        public boolean isNotNullPaymentGatewayApi()
        Checks whether the 'paymentGatewayApi' field is set and is not null
      • isNotNullAccountName

        public boolean isNotNullAccountName()
        Checks whether the 'accountName' field is set and is not null
      • isNotNullAltMid

        public boolean isNotNullAltMid()
        Checks whether the 'altMid' field is set and is not null
      • isNotNullMid

        public boolean isNotNullMid()
        Checks whether the 'mid' field is set and is not null
      • isNotNullFns

        public boolean isNotNullFns()
        Checks whether the 'fns' field is set and is not null
      • isNotNullTid

        public boolean isNotNullTid()
        Checks whether the 'tid' field is set and is not null
      • isNotNullStoreId

        public boolean isNotNullStoreId()
        Checks whether the 'storeId' field is set and is not null
      • isNotNullSupportsTipping

        public boolean isNotNullSupportsTipping()
        Checks whether the 'supportsTipping' field is set and is not null
      • isNotNullFrontendMid

        public boolean isNotNullFrontendMid()
        Checks whether the 'frontendMid' field is set and is not null
      • isNotNullBackendMid

        public boolean isNotNullBackendMid()
        Checks whether the 'backendMid' field is set and is not null
      • isNotNullMcc

        public boolean isNotNullMcc()
        Checks whether the 'mcc' field is set and is not null
      • isNotNullTokenType

        public boolean isNotNullTokenType()
        Checks whether the 'tokenType' field is set and is not null
      • isNotNullGroupId

        public boolean isNotNullGroupId()
        Checks whether the 'groupId' field is set and is not null
      • isNotNullDebitKeyCode

        public boolean isNotNullDebitKeyCode()
        Checks whether the 'debitKeyCode' field is set and is not null
      • isNotNullSredCode

        public boolean isNotNullSredCode()
        Checks whether the 'sredCode' field is set and is not null
      • isNotNullSupportsTipAdjust

        public boolean isNotNullSupportsTipAdjust()
        Checks whether the 'supportsTipAdjust' field is set and is not null
      • isNotNullSupportsNakedCredit

        public boolean isNotNullSupportsNakedCredit()
        Checks whether the 'supportsNakedCredit' field is set and is not null
      • isNotNullSupportsMultiPayToken

        public boolean isNotNullSupportsMultiPayToken()
        Checks whether the 'supportsMultiPayToken' field is set and is not null
      • isNotNullSupportsPreauthOverage

        public boolean isNotNullSupportsPreauthOverage()
        Checks whether the 'supportsPreauthOverage' field is set and is not null
      • isNotNullClosingTime

        public boolean isNotNullClosingTime()
        Checks whether the 'closingTime' field is set and is not null
      • isNotNullNewBatchCloseEnabled

        public boolean isNotNullNewBatchCloseEnabled()
        Checks whether the 'newBatchCloseEnabled' field is set and is not null
      • isNotNullProduction

        public boolean isNotNullProduction()
        Checks whether the 'production' field is set and is not null
      • hasPaymentProcessorName

        public boolean hasPaymentProcessorName()
        Checks whether the 'paymentProcessorName' field has been set, however the value could be null
      • hasAuthorizationFrontEnd

        public boolean hasAuthorizationFrontEnd()
        Checks whether the 'authorizationFrontEnd' field has been set, however the value could be null
      • hasAcquiringBackEnd

        public boolean hasAcquiringBackEnd()
        Checks whether the 'acquiringBackEnd' field has been set, however the value could be null
      • hasPaymentGatewayApi

        public boolean hasPaymentGatewayApi()
        Checks whether the 'paymentGatewayApi' field has been set, however the value could be null
      • hasAccountName

        public boolean hasAccountName()
        Checks whether the 'accountName' field has been set, however the value could be null
      • hasAltMid

        public boolean hasAltMid()
        Checks whether the 'altMid' field has been set, however the value could be null
      • hasMid

        public boolean hasMid()
        Checks whether the 'mid' field has been set, however the value could be null
      • hasFns

        public boolean hasFns()
        Checks whether the 'fns' field has been set, however the value could be null
      • hasTid

        public boolean hasTid()
        Checks whether the 'tid' field has been set, however the value could be null
      • hasStoreId

        public boolean hasStoreId()
        Checks whether the 'storeId' field has been set, however the value could be null
      • hasSupportsTipping

        public boolean hasSupportsTipping()
        Checks whether the 'supportsTipping' field has been set, however the value could be null
      • hasFrontendMid

        public boolean hasFrontendMid()
        Checks whether the 'frontendMid' field has been set, however the value could be null
      • hasBackendMid

        public boolean hasBackendMid()
        Checks whether the 'backendMid' field has been set, however the value could be null
      • hasMcc

        public boolean hasMcc()
        Checks whether the 'mcc' field has been set, however the value could be null
      • hasTokenType

        public boolean hasTokenType()
        Checks whether the 'tokenType' field has been set, however the value could be null
      • hasGroupId

        public boolean hasGroupId()
        Checks whether the 'groupId' field has been set, however the value could be null
      • hasDebitKeyCode

        public boolean hasDebitKeyCode()
        Checks whether the 'debitKeyCode' field has been set, however the value could be null
      • hasSredCode

        public boolean hasSredCode()
        Checks whether the 'sredCode' field has been set, however the value could be null
      • hasSupportsTipAdjust

        public boolean hasSupportsTipAdjust()
        Checks whether the 'supportsTipAdjust' field has been set, however the value could be null
      • hasSupportsNakedCredit

        public boolean hasSupportsNakedCredit()
        Checks whether the 'supportsNakedCredit' field has been set, however the value could be null
      • hasSupportsMultiPayToken

        public boolean hasSupportsMultiPayToken()
        Checks whether the 'supportsMultiPayToken' field has been set, however the value could be null
      • hasSupportsPreauthOverage

        public boolean hasSupportsPreauthOverage()
        Checks whether the 'supportsPreauthOverage' field has been set, however the value could be null
      • hasClosingTime

        public boolean hasClosingTime()
        Checks whether the 'closingTime' field has been set, however the value could be null
      • hasNewBatchCloseEnabled

        public boolean hasNewBatchCloseEnabled()
        Checks whether the 'newBatchCloseEnabled' field has been set, however the value could be null
      • hasProduction

        public boolean hasProduction()
        Checks whether the 'production' field has been set, however the value could be null
      • setPaymentProcessorName

        public Gateway setPaymentProcessorName​(String paymentProcessorName)
        Sets the field 'paymentProcessorName'.
      • setAuthorizationFrontEnd

        public Gateway setAuthorizationFrontEnd​(String authorizationFrontEnd)
        Sets the field 'authorizationFrontEnd'.
      • setAcquiringBackEnd

        public Gateway setAcquiringBackEnd​(String acquiringBackEnd)
        Sets the field 'acquiringBackEnd'.
      • setPaymentGatewayApi

        public Gateway setPaymentGatewayApi​(String paymentGatewayApi)
        Sets the field 'paymentGatewayApi'.
      • setAccountName

        public Gateway setAccountName​(String accountName)
        Sets the field 'accountName'.
      • setAltMid

        public Gateway setAltMid​(String altMid)
        Sets the field 'altMid'.
      • setMid

        public Gateway setMid​(String mid)
        Sets the field 'mid'.
      • setFns

        public Gateway setFns​(String fns)
        Sets the field 'fns'.
      • setTid

        public Gateway setTid​(String tid)
        Sets the field 'tid'.
      • setStoreId

        public Gateway setStoreId​(String storeId)
        Sets the field 'storeId'.
      • setSupportsTipping

        public Gateway setSupportsTipping​(Boolean supportsTipping)
        Sets the field 'supportsTipping'.
      • setFrontendMid

        public Gateway setFrontendMid​(String frontendMid)
        Sets the field 'frontendMid'.
      • setBackendMid

        public Gateway setBackendMid​(String backendMid)
        Sets the field 'backendMid'.
      • setMcc

        public Gateway setMcc​(String mcc)
        Sets the field 'mcc'.
      • setTokenType

        public Gateway setTokenType​(String tokenType)
        Sets the field 'tokenType'.
      • setGroupId

        public Gateway setGroupId​(String groupId)
        Sets the field 'groupId'.
      • setDebitKeyCode

        public Gateway setDebitKeyCode​(String debitKeyCode)
        Sets the field 'debitKeyCode'.
      • setSredCode

        public Gateway setSredCode​(String sredCode)
        Sets the field 'sredCode'.
      • setSupportsTipAdjust

        public Gateway setSupportsTipAdjust​(Boolean supportsTipAdjust)
        Sets the field 'supportsTipAdjust'.
      • setSupportsNakedCredit

        public Gateway setSupportsNakedCredit​(Boolean supportsNakedCredit)
        Sets the field 'supportsNakedCredit'.
      • setSupportsMultiPayToken

        public Gateway setSupportsMultiPayToken​(Boolean supportsMultiPayToken)
        Sets the field 'supportsMultiPayToken'.
      • setSupportsPreauthOverage

        public Gateway setSupportsPreauthOverage​(Boolean supportsPreauthOverage)
        Sets the field 'supportsPreauthOverage'.
      • setClosingTime

        public Gateway setClosingTime​(String closingTime)
        Sets the field 'closingTime'.
      • setNewBatchCloseEnabled

        public Gateway setNewBatchCloseEnabled​(Boolean newBatchCloseEnabled)
        Sets the field 'newBatchCloseEnabled'.
      • setProduction

        public Gateway setProduction​(Boolean production)
        Sets the field 'production'.
      • clearPaymentProcessorName

        public void clearPaymentProcessorName()
        Clears the 'paymentProcessorName' field, the 'has' method for this field will now return false
      • clearAuthorizationFrontEnd

        public void clearAuthorizationFrontEnd()
        Clears the 'authorizationFrontEnd' field, the 'has' method for this field will now return false
      • clearAcquiringBackEnd

        public void clearAcquiringBackEnd()
        Clears the 'acquiringBackEnd' field, the 'has' method for this field will now return false
      • clearPaymentGatewayApi

        public void clearPaymentGatewayApi()
        Clears the 'paymentGatewayApi' field, the 'has' method for this field will now return false
      • clearAccountName

        public void clearAccountName()
        Clears the 'accountName' field, the 'has' method for this field will now return false
      • clearAltMid

        public void clearAltMid()
        Clears the 'altMid' field, the 'has' method for this field will now return false
      • clearMid

        public void clearMid()
        Clears the 'mid' field, the 'has' method for this field will now return false
      • clearFns

        public void clearFns()
        Clears the 'fns' field, the 'has' method for this field will now return false
      • clearTid

        public void clearTid()
        Clears the 'tid' field, the 'has' method for this field will now return false
      • clearStoreId

        public void clearStoreId()
        Clears the 'storeId' field, the 'has' method for this field will now return false
      • clearSupportsTipping

        public void clearSupportsTipping()
        Clears the 'supportsTipping' field, the 'has' method for this field will now return false
      • clearFrontendMid

        public void clearFrontendMid()
        Clears the 'frontendMid' field, the 'has' method for this field will now return false
      • clearBackendMid

        public void clearBackendMid()
        Clears the 'backendMid' field, the 'has' method for this field will now return false
      • clearMcc

        public void clearMcc()
        Clears the 'mcc' field, the 'has' method for this field will now return false
      • clearTokenType

        public void clearTokenType()
        Clears the 'tokenType' field, the 'has' method for this field will now return false
      • clearGroupId

        public void clearGroupId()
        Clears the 'groupId' field, the 'has' method for this field will now return false
      • clearDebitKeyCode

        public void clearDebitKeyCode()
        Clears the 'debitKeyCode' field, the 'has' method for this field will now return false
      • clearSredCode

        public void clearSredCode()
        Clears the 'sredCode' field, the 'has' method for this field will now return false
      • clearSupportsTipAdjust

        public void clearSupportsTipAdjust()
        Clears the 'supportsTipAdjust' field, the 'has' method for this field will now return false
      • clearSupportsNakedCredit

        public void clearSupportsNakedCredit()
        Clears the 'supportsNakedCredit' field, the 'has' method for this field will now return false
      • clearSupportsMultiPayToken

        public void clearSupportsMultiPayToken()
        Clears the 'supportsMultiPayToken' field, the 'has' method for this field will now return false
      • clearSupportsPreauthOverage

        public void clearSupportsPreauthOverage()
        Clears the 'supportsPreauthOverage' field, the 'has' method for this field will now return false
      • clearClosingTime

        public void clearClosingTime()
        Clears the 'closingTime' field, the 'has' method for this field will now return false
      • clearNewBatchCloseEnabled

        public void clearNewBatchCloseEnabled()
        Clears the 'newBatchCloseEnabled' field, the 'has' method for this field will now return false
      • clearProduction

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

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