Package com.adyen.model.payment
Class AdditionalDataCommon
- java.lang.Object
-
- com.adyen.model.payment.AdditionalDataCommon
-
public class AdditionalDataCommon extends Object
AdditionalDataCommon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdditionalDataCommon.IndustryUsageEnumIn case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOW_PARTIAL_AUTHstatic StringJSON_PROPERTY_AUTHORISATION_TYPEstatic StringJSON_PROPERTY_AUTO_RESCUEstatic StringJSON_PROPERTY_CUSTOM_ROUTING_FLAGstatic StringJSON_PROPERTY_INDUSTRY_USAGEstatic StringJSON_PROPERTY_MANUAL_CAPTUREstatic StringJSON_PROPERTY_MAX_DAYS_TO_RESCUEstatic StringJSON_PROPERTY_NETWORK_TX_REFERENCEstatic StringJSON_PROPERTY_OVERWRITE_BRANDstatic StringJSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODEstatic StringJSON_PROPERTY_SUB_MERCHANT_CITYstatic StringJSON_PROPERTY_SUB_MERCHANT_COUNTRYstatic StringJSON_PROPERTY_SUB_MERCHANT_I_Dstatic StringJSON_PROPERTY_SUB_MERCHANT_NAMEstatic StringJSON_PROPERTY_SUB_MERCHANT_POSTAL_CODEstatic StringJSON_PROPERTY_SUB_MERCHANT_STATEstatic StringJSON_PROPERTY_SUB_MERCHANT_STREETstatic StringJSON_PROPERTY_SUB_MERCHANT_TAX_ID
-
Constructor Summary
Constructors Constructor Description AdditionalDataCommon()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdditionalDataCommonallowPartialAuth(String allowPartialAuth)Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account.AdditionalDataCommonauthorisationType(String authorisationType)Flags a card payment request for either pre-authorisation or final authorisation.AdditionalDataCommonautoRescue(String autoRescue)Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction.AdditionalDataCommoncustomRoutingFlag(String customRoutingFlag)Allows you to determine or override the acquirer account that should be used for the transaction.booleanequals(Object o)Return true if this AdditionalDataCommon object is equal to o.static AdditionalDataCommonfromJson(String jsonString)Create an instance of AdditionalDataCommon given an JSON stringStringgetAllowPartialAuth()Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account.StringgetAuthorisationType()Flags a card payment request for either pre-authorisation or final authorisation.StringgetAutoRescue()Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction.StringgetCustomRoutingFlag()Allows you to determine or override the acquirer account that should be used for the transaction.AdditionalDataCommon.IndustryUsageEnumgetIndustryUsage()In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made.StringgetManualCapture()Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction.StringgetMaxDaysToRescue()The rescue window for a transaction, in days, when `autoRescue` is set to **true**.StringgetNetworkTxReference()Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain.StringgetOverwriteBrand()Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil).StringgetRequestedTestErrorResponseCode()Triggers test scenarios that allow to replicate certain communication errors.StringgetSubMerchantCity()This field is required if the transaction is performed by a registered payment facilitator.StringgetSubMerchantCountry()This field is required if the transaction is performed by a registered payment facilitator.StringgetSubMerchantID()This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator.StringgetSubMerchantName()This field is required if the transaction is performed by a registered payment facilitator.StringgetSubMerchantPostalCode()This field is required if the transaction is performed by a registered payment facilitator.StringgetSubMerchantState()This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country.StringgetSubMerchantStreet()This field is required if the transaction is performed by a registered payment facilitator.StringgetSubMerchantTaxId()This field is required if the transaction is performed by a registered payment facilitator.inthashCode()AdditionalDataCommonindustryUsage(AdditionalDataCommon.IndustryUsageEnum industryUsage)In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made.AdditionalDataCommonmanualCapture(String manualCapture)Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction.AdditionalDataCommonmaxDaysToRescue(String maxDaysToRescue)The rescue window for a transaction, in days, when `autoRescue` is set to **true**.AdditionalDataCommonnetworkTxReference(String networkTxReference)Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain.AdditionalDataCommonoverwriteBrand(String overwriteBrand)Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil).AdditionalDataCommonrequestedTestErrorResponseCode(String requestedTestErrorResponseCode)Triggers test scenarios that allow to replicate certain communication errors.voidsetAllowPartialAuth(String allowPartialAuth)Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account.voidsetAuthorisationType(String authorisationType)Flags a card payment request for either pre-authorisation or final authorisation.voidsetAutoRescue(String autoRescue)Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction.voidsetCustomRoutingFlag(String customRoutingFlag)Allows you to determine or override the acquirer account that should be used for the transaction.voidsetIndustryUsage(AdditionalDataCommon.IndustryUsageEnum industryUsage)In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made.voidsetManualCapture(String manualCapture)Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction.voidsetMaxDaysToRescue(String maxDaysToRescue)The rescue window for a transaction, in days, when `autoRescue` is set to **true**.voidsetNetworkTxReference(String networkTxReference)Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain.voidsetOverwriteBrand(String overwriteBrand)Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil).voidsetRequestedTestErrorResponseCode(String requestedTestErrorResponseCode)Triggers test scenarios that allow to replicate certain communication errors.voidsetSubMerchantCity(String subMerchantCity)This field is required if the transaction is performed by a registered payment facilitator.voidsetSubMerchantCountry(String subMerchantCountry)This field is required if the transaction is performed by a registered payment facilitator.voidsetSubMerchantID(String subMerchantID)This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator.voidsetSubMerchantName(String subMerchantName)This field is required if the transaction is performed by a registered payment facilitator.voidsetSubMerchantPostalCode(String subMerchantPostalCode)This field is required if the transaction is performed by a registered payment facilitator.voidsetSubMerchantState(String subMerchantState)This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country.voidsetSubMerchantStreet(String subMerchantStreet)This field is required if the transaction is performed by a registered payment facilitator.voidsetSubMerchantTaxId(String subMerchantTaxId)This field is required if the transaction is performed by a registered payment facilitator.AdditionalDataCommonsubMerchantCity(String subMerchantCity)This field is required if the transaction is performed by a registered payment facilitator.AdditionalDataCommonsubMerchantCountry(String subMerchantCountry)This field is required if the transaction is performed by a registered payment facilitator.AdditionalDataCommonsubMerchantID(String subMerchantID)This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator.AdditionalDataCommonsubMerchantName(String subMerchantName)This field is required if the transaction is performed by a registered payment facilitator.AdditionalDataCommonsubMerchantPostalCode(String subMerchantPostalCode)This field is required if the transaction is performed by a registered payment facilitator.AdditionalDataCommonsubMerchantState(String subMerchantState)This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country.AdditionalDataCommonsubMerchantStreet(String subMerchantStreet)This field is required if the transaction is performed by a registered payment facilitator.AdditionalDataCommonsubMerchantTaxId(String subMerchantTaxId)This field is required if the transaction is performed by a registered payment facilitator.StringtoJson()Convert an instance of AdditionalDataCommon to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE
public static final String JSON_PROPERTY_REQUESTED_TEST_ERROR_RESPONSE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALLOW_PARTIAL_AUTH
public static final String JSON_PROPERTY_ALLOW_PARTIAL_AUTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AUTHORISATION_TYPE
public static final String JSON_PROPERTY_AUTHORISATION_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AUTO_RESCUE
public static final String JSON_PROPERTY_AUTO_RESCUE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CUSTOM_ROUTING_FLAG
public static final String JSON_PROPERTY_CUSTOM_ROUTING_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INDUSTRY_USAGE
public static final String JSON_PROPERTY_INDUSTRY_USAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MANUAL_CAPTURE
public static final String JSON_PROPERTY_MANUAL_CAPTURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAX_DAYS_TO_RESCUE
public static final String JSON_PROPERTY_MAX_DAYS_TO_RESCUE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NETWORK_TX_REFERENCE
public static final String JSON_PROPERTY_NETWORK_TX_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OVERWRITE_BRAND
public static final String JSON_PROPERTY_OVERWRITE_BRAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_MERCHANT_CITY
public static final String JSON_PROPERTY_SUB_MERCHANT_CITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_MERCHANT_COUNTRY
public static final String JSON_PROPERTY_SUB_MERCHANT_COUNTRY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_MERCHANT_I_D
public static final String JSON_PROPERTY_SUB_MERCHANT_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_MERCHANT_NAME
public static final String JSON_PROPERTY_SUB_MERCHANT_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE
public static final String JSON_PROPERTY_SUB_MERCHANT_POSTAL_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_MERCHANT_STATE
public static final String JSON_PROPERTY_SUB_MERCHANT_STATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_MERCHANT_STREET
public static final String JSON_PROPERTY_SUB_MERCHANT_STREET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUB_MERCHANT_TAX_ID
public static final String JSON_PROPERTY_SUB_MERCHANT_TAX_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
requestedTestErrorResponseCode
public AdditionalDataCommon requestedTestErrorResponseCode(String requestedTestErrorResponseCode)
Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response.- Parameters:
requestedTestErrorResponseCode-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getRequestedTestErrorResponseCode
public String getRequestedTestErrorResponseCode()
Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response.- Returns:
- requestedTestErrorResponseCode
-
setRequestedTestErrorResponseCode
public void setRequestedTestErrorResponseCode(String requestedTestErrorResponseCode)
Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response.- Parameters:
requestedTestErrorResponseCode-
-
allowPartialAuth
public AdditionalDataCommon allowPartialAuth(String allowPartialAuth)
Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team.- Parameters:
allowPartialAuth-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getAllowPartialAuth
public String getAllowPartialAuth()
Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team.- Returns:
- allowPartialAuth
-
setAllowPartialAuth
public void setAllowPartialAuth(String allowPartialAuth)
Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team.- Parameters:
allowPartialAuth-
-
authorisationType
public AdditionalDataCommon authorisationType(String authorisationType)
Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation.- Parameters:
authorisationType-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getAuthorisationType
public String getAuthorisationType()
Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation.- Returns:
- authorisationType
-
setAuthorisationType
public void setAuthorisationType(String authorisationType)
Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation.- Parameters:
authorisationType-
-
autoRescue
public AdditionalDataCommon autoRescue(String autoRescue)
Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window.- Parameters:
autoRescue-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getAutoRescue
public String getAutoRescue()
Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window.- Returns:
- autoRescue
-
setAutoRescue
public void setAutoRescue(String autoRescue)
Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window.- Parameters:
autoRescue-
-
customRoutingFlag
public AdditionalDataCommon customRoutingFlag(String customRoutingFlag)
Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new).- Parameters:
customRoutingFlag-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getCustomRoutingFlag
public String getCustomRoutingFlag()
Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new).- Returns:
- customRoutingFlag
-
setCustomRoutingFlag
public void setCustomRoutingFlag(String customRoutingFlag)
Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new).- Parameters:
customRoutingFlag-
-
industryUsage
public AdditionalDataCommon industryUsage(AdditionalDataCommon.IndustryUsageEnum industryUsage)
In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed.- Parameters:
industryUsage-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getIndustryUsage
public AdditionalDataCommon.IndustryUsageEnum getIndustryUsage()
In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed.- Returns:
- industryUsage
-
setIndustryUsage
public void setIndustryUsage(AdditionalDataCommon.IndustryUsageEnum industryUsage)
In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed.- Parameters:
industryUsage-
-
manualCapture
public AdditionalDataCommon manualCapture(String manualCapture)
Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction.- Parameters:
manualCapture-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getManualCapture
public String getManualCapture()
Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction.- Returns:
- manualCapture
-
setManualCapture
public void setManualCapture(String manualCapture)
Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction.- Parameters:
manualCapture-
-
maxDaysToRescue
public AdditionalDataCommon maxDaysToRescue(String maxDaysToRescue)
The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days.- Parameters:
maxDaysToRescue-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getMaxDaysToRescue
public String getMaxDaysToRescue()
The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days.- Returns:
- maxDaysToRescue
-
setMaxDaysToRescue
public void setMaxDaysToRescue(String maxDaysToRescue)
The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days.- Parameters:
maxDaysToRescue-
-
networkTxReference
public AdditionalDataCommon networkTxReference(String networkTxReference)
Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT.- Parameters:
networkTxReference-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getNetworkTxReference
public String getNetworkTxReference()
Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT.- Returns:
- networkTxReference
-
setNetworkTxReference
public void setNetworkTxReference(String networkTxReference)
Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT.- Parameters:
networkTxReference-
-
overwriteBrand
public AdditionalDataCommon overwriteBrand(String overwriteBrand)
Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction.- Parameters:
overwriteBrand-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getOverwriteBrand
public String getOverwriteBrand()
Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction.- Returns:
- overwriteBrand
-
setOverwriteBrand
public void setOverwriteBrand(String overwriteBrand)
Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction.- Parameters:
overwriteBrand-
-
subMerchantCity
public AdditionalDataCommon subMerchantCity(String subMerchantCity)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters.- Parameters:
subMerchantCity-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getSubMerchantCity
public String getSubMerchantCity()
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters.- Returns:
- subMerchantCity
-
setSubMerchantCity
public void setSubMerchantCity(String subMerchantCity)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 13 characters.- Parameters:
subMerchantCity-
-
subMerchantCountry
public AdditionalDataCommon subMerchantCountry(String subMerchantCountry)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters.- Parameters:
subMerchantCountry-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getSubMerchantCountry
public String getSubMerchantCountry()
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters.- Returns:
- subMerchantCountry
-
setSubMerchantCountry
public void setSubMerchantCountry(String subMerchantCountry)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. * Format: alpha-numeric. * Fixed length: 3 characters.- Parameters:
subMerchantCountry-
-
subMerchantID
public AdditionalDataCommon subMerchantID(String subMerchantID)
This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters.- Parameters:
subMerchantID-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getSubMerchantID
public String getSubMerchantID()
This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters.- Returns:
- subMerchantID
-
setSubMerchantID
public void setSubMerchantID(String subMerchantID)
This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters.- Parameters:
subMerchantID-
-
subMerchantName
public AdditionalDataCommon subMerchantName(String subMerchantName)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters.- Parameters:
subMerchantName-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getSubMerchantName
public String getSubMerchantName()
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters.- Returns:
- subMerchantName
-
setSubMerchantName
public void setSubMerchantName(String subMerchantName)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters.- Parameters:
subMerchantName-
-
subMerchantPostalCode
public AdditionalDataCommon subMerchantPostalCode(String subMerchantPostalCode)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters.- Parameters:
subMerchantPostalCode-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getSubMerchantPostalCode
public String getSubMerchantPostalCode()
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters.- Returns:
- subMerchantPostalCode
-
setSubMerchantPostalCode
public void setSubMerchantPostalCode(String subMerchantPostalCode)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 10 characters.- Parameters:
subMerchantPostalCode-
-
subMerchantState
public AdditionalDataCommon subMerchantState(String subMerchantState)
This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters.- Parameters:
subMerchantState-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getSubMerchantState
public String getSubMerchantState()
This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters.- Returns:
- subMerchantState
-
setSubMerchantState
public void setSubMerchantState(String subMerchantState)
This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 3 characters.- Parameters:
subMerchantState-
-
subMerchantStreet
public AdditionalDataCommon subMerchantStreet(String subMerchantStreet)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters.- Parameters:
subMerchantStreet-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getSubMerchantStreet
public String getSubMerchantStreet()
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters.- Returns:
- subMerchantStreet
-
setSubMerchantStreet
public void setSubMerchantStreet(String subMerchantStreet)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. * Format: alpha-numeric. * Maximum length: 60 characters.- Parameters:
subMerchantStreet-
-
subMerchantTaxId
public AdditionalDataCommon subMerchantTaxId(String subMerchantTaxId)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters.- Parameters:
subMerchantTaxId-- Returns:
- the current
AdditionalDataCommoninstance, allowing for method chaining
-
getSubMerchantTaxId
public String getSubMerchantTaxId()
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters.- Returns:
- subMerchantTaxId
-
setSubMerchantTaxId
public void setSubMerchantTaxId(String subMerchantTaxId)
This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters.- Parameters:
subMerchantTaxId-
-
equals
public boolean equals(Object o)
Return true if this AdditionalDataCommon object is equal to o.
-
fromJson
public static AdditionalDataCommon fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AdditionalDataCommon given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdditionalDataCommon
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AdditionalDataCommon
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AdditionalDataCommon to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-