Package com.adyen.model.management
Class TransactionDescriptionInfo
- java.lang.Object
-
- com.adyen.model.management.TransactionDescriptionInfo
-
public class TransactionDescriptionInfo extends Object
TransactionDescriptionInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransactionDescriptionInfo.TypeEnumThe type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DOING_BUSINESS_AS_NAMEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description TransactionDescriptionInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionDescriptionInfodoingBusinessAsName(String doingBusinessAsName)The text to be shown on the shopper's bank statement.booleanequals(Object o)Return true if this TransactionDescriptionInfo object is equal to o.static TransactionDescriptionInfofromJson(String jsonString)Create an instance of TransactionDescriptionInfo given an JSON stringStringgetDoingBusinessAsName()The text to be shown on the shopper's bank statement.TransactionDescriptionInfo.TypeEnumgetType()The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method.inthashCode()voidsetDoingBusinessAsName(String doingBusinessAsName)The text to be shown on the shopper's bank statement.voidsetType(TransactionDescriptionInfo.TypeEnum type)The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method.StringtoJson()Convert an instance of TransactionDescriptionInfo to an JSON stringStringtoString()TransactionDescriptionInfotype(TransactionDescriptionInfo.TypeEnum type)The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method.
-
-
-
Field Detail
-
JSON_PROPERTY_DOING_BUSINESS_AS_NAME
public static final String JSON_PROPERTY_DOING_BUSINESS_AS_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doingBusinessAsName
public TransactionDescriptionInfo doingBusinessAsName(String doingBusinessAsName)
The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**.- Parameters:
doingBusinessAsName-- Returns:
- the current
TransactionDescriptionInfoinstance, allowing for method chaining
-
getDoingBusinessAsName
public String getDoingBusinessAsName()
The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**.- Returns:
- doingBusinessAsName
-
setDoingBusinessAsName
public void setDoingBusinessAsName(String doingBusinessAsName)
The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**.- Parameters:
doingBusinessAsName-
-
type
public TransactionDescriptionInfo type(TransactionDescriptionInfo.TypeEnum type)
The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method.- Parameters:
type-- Returns:
- the current
TransactionDescriptionInfoinstance, allowing for method chaining
-
getType
public TransactionDescriptionInfo.TypeEnum getType()
The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method.- Returns:
- type
-
setType
public void setType(TransactionDescriptionInfo.TypeEnum type)
The type of transaction description you want to use: - **fixed**: The transaction description set in this request is used for all payments with this payment method. - **append**: The transaction description set in this request is used as a base for all payments with this payment method. The [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is appended to this base description. Note that if the combined length exceeds 22 characters, banks may truncate the string. - **dynamic**: Only the [transaction description set in the request to process the payment](https://docs.adyen.com/api-explorer/Checkout/70/post/sessions#request-shopperStatement) is used for payments with this payment method.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this TransactionDescriptionInfo object is equal to o.
-
fromJson
public static TransactionDescriptionInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransactionDescriptionInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionDescriptionInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransactionDescriptionInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransactionDescriptionInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-