Package model

Class ConfigurationDetails


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class ConfigurationDetails
    extends Object
    Configure the details of the activated device.
    • Constructor Detail

      • ConfigurationDetails

        public ConfigurationDetails()
    • Method Detail

      • getAllowDebit

        @Nullable
        public Boolean getAllowDebit()
        Allow transaction to be processed on Debit rails. If `false`, Debit card transactions will be processed on Credit rails.
        Returns:
        allowDebit
      • setAllowDebit

        public void setAllowDebit​(Boolean allowDebit)
      • getAllowPartialApprovals

        @Nullable
        public Boolean getAllowPartialApprovals()
        Determines if a transaction can be partially approved (Usually **null**).
        Returns:
        allowPartialApprovals
      • setAllowPartialApprovals

        public void setAllowPartialApprovals​(Boolean allowPartialApprovals)
      • getBypassDeviceOnCapture

        @Nullable
        public Boolean getBypassDeviceOnCapture()
        Sets whether the device will be used to capture `Authorizations`. The device is required to be connected if `bypass_device_on_capture` is set to false. (defaults to true).
        Returns:
        bypassDeviceOnCapture
      • setBypassDeviceOnCapture

        public void setBypassDeviceOnCapture​(Boolean bypassDeviceOnCapture)
      • getCheckForDuplicateTransactions

        @Nullable
        public Boolean getCheckForDuplicateTransactions()
        Sets whether the device will check for duplicate transactions.
        Returns:
        checkForDuplicateTransactions
      • setCheckForDuplicateTransactions

        public void setCheckForDuplicateTransactions​(Boolean checkForDuplicateTransactions)
      • getIsCashBackAllowed

        @Nullable
        public Boolean getIsCashBackAllowed()
        Sets whether the device will allow cash back.
        Returns:
        isCashBackAllowed
      • setIsCashBackAllowed

        public void setIsCashBackAllowed​(Boolean isCashBackAllowed)
      • getIsGiftSupported

        @Nullable
        public String getIsGiftSupported()
        Sets whether the device will allow gifting funds.
        Returns:
        isGiftSupported
      • setIsGiftSupported

        public void setIsGiftSupported​(String isGiftSupported)
      • getIsManualEntryAllowed

        @Nullable
        public Boolean getIsManualEntryAllowed()
        Sets whether the device will process payment details entered manually.
        Returns:
        isManualEntryAllowed
      • setIsManualEntryAllowed

        public void setIsManualEntryAllowed​(Boolean isManualEntryAllowed)
      • getMarketCode

        @Nullable
        public String getMarketCode()
        Used by the processor to handle the `transfer`. Usually **null**.
        Returns:
        marketCode
      • setMarketCode

        public void setMarketCode​(String marketCode)
      • getPromptAmountConfirmation

        @Nullable
        public Boolean getPromptAmountConfirmation()
        Sets if the card holder needs to confirm the amount they will pay (defaults to **true**).
        Returns:
        promptAmountConfirmation
      • setPromptAmountConfirmation

        public void setPromptAmountConfirmation​(Boolean promptAmountConfirmation)
      • getPromptManualEntry

        @Nullable
        public Boolean getPromptManualEntry()
        Sets if the device defaults to manual entry as the default card input method. (defaults to **false**).
        Returns:
        promptManualEntry
      • setPromptManualEntry

        public void setPromptManualEntry​(Boolean promptManualEntry)
      • getPromptSignature

        @Nullable
        public String getPromptSignature()
        Sets if the device will prompt the card holder for a signature by default. Available values include:<ul><li><strong>ALWAYS</strong><li><strong>NEVER</strong><li><strong>AMOUNT</strong>: Used in conjunction with `signature_threshold_amount` so when the threshold is reached the signature form appears on the device.
        Returns:
        promptSignature
      • setPromptSignature

        public void setPromptSignature​(String promptSignature)
      • getSignatureThresholdAmount

        @Nullable
        public Long getSignatureThresholdAmount()
        The threshold to prompt a signature when `prompt_signature` is set to **AMOUNT** (defaults to 0).
        Returns:
        signatureThresholdAmount
      • setSignatureThresholdAmount

        public void setSignatureThresholdAmount​(Long signatureThresholdAmount)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to ConfigurationDetails
      • fromJson

        public static ConfigurationDetails fromJson​(String jsonString)
                                             throws IOException
        Create an instance of ConfigurationDetails given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ConfigurationDetails
        Throws:
        IOException - if the JSON string is invalid with respect to ConfigurationDetails
      • toJson

        public String toJson()
        Convert an instance of ConfigurationDetails to an JSON string
        Returns:
        JSON string