Package model
Class DeviceConfigDetails
java.lang.Object
model.DeviceConfigDetails
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class DeviceConfigDetails
extends Object
Information used to configure how the `Device` handles transactions.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowDebit(Boolean allowDebit) checkForDuplicateTransactions(Boolean checkForDuplicateTransactions) booleanstatic DeviceConfigDetailsCreate an instance of DeviceConfigDetails given an JSON stringAllow transaction to be processed on Debit rails.Sets whether the `Device` will check for duplicate transactions.Sets if the card holder needs to confirm the amount they will pay (defaults to **true**).Sets if the device defaults to manual entry as the default card input method.Sets if the device will prompt the card holder for a signature by default.The threshold to prompt a signature when `prompt_signature` is set to **AMOUNT** (defaults to 0).inthashCode()promptAmountConfirmation(Boolean promptAmountConfirmation) promptManualEntry(Boolean promptManualEntry) promptSignature(String promptSignature) voidsetAllowDebit(Boolean allowDebit) voidsetCheckForDuplicateTransactions(Boolean checkForDuplicateTransactions) voidsetPromptAmountConfirmation(Boolean promptAmountConfirmation) voidsetPromptManualEntry(Boolean promptManualEntry) voidsetPromptSignature(String promptSignature) voidsetSignatureThresholdAmount(Long signatureThresholdAmount) signatureThresholdAmount(Long signatureThresholdAmount) toJson()Convert an instance of DeviceConfigDetails to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ALLOW_DEBIT
- See Also:
-
SERIALIZED_NAME_CHECK_FOR_DUPLICATE_TRANSACTIONS
- See Also:
-
SERIALIZED_NAME_PROMPT_AMOUNT_CONFIRMATION
- See Also:
-
SERIALIZED_NAME_PROMPT_MANUAL_ENTRY
- See Also:
-
SERIALIZED_NAME_PROMPT_SIGNATURE
- See Also:
-
SERIALIZED_NAME_SIGNATURE_THRESHOLD_AMOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
DeviceConfigDetails
public DeviceConfigDetails()
-
-
Method Details
-
allowDebit
-
getAllowDebit
Allow transaction to be processed on Debit rails. If **false**, Debit card transactions will be processed on Credit rails.- Returns:
- allowDebit
-
setAllowDebit
-
checkForDuplicateTransactions
-
getCheckForDuplicateTransactions
Sets whether the `Device` will check for duplicate transactions.- Returns:
- checkForDuplicateTransactions
-
setCheckForDuplicateTransactions
-
promptAmountConfirmation
-
getPromptAmountConfirmation
Sets if the card holder needs to confirm the amount they will pay (defaults to **true**).- Returns:
- promptAmountConfirmation
-
setPromptAmountConfirmation
-
promptManualEntry
-
getPromptManualEntry
Sets if the device defaults to manual entry as the default card input method. (defaults to **false**).- Returns:
- promptManualEntry
-
setPromptManualEntry
-
promptSignature
-
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
-
signatureThresholdAmount
-
getSignatureThresholdAmount
The threshold to prompt a signature when `prompt_signature` is set to **AMOUNT** (defaults to 0).- Returns:
- signatureThresholdAmount
-
setSignatureThresholdAmount
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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 DeviceConfigDetails
-
fromJson
Create an instance of DeviceConfigDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DeviceConfigDetails
- Throws:
IOException- if the JSON string is invalid with respect to DeviceConfigDetails
-
toJson
Convert an instance of DeviceConfigDetails to an JSON string- Returns:
- JSON string
-