Package com.adyen.model.storedvalue
Class StoredValueBalanceMergeRequest
- java.lang.Object
-
- com.adyen.model.storedvalue.StoredValueBalanceMergeRequest
-
public class StoredValueBalanceMergeRequest extends Object
StoredValueBalanceMergeRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredValueBalanceMergeRequest.ShopperInteractionEnumSpecifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_PAYMENT_METHODstatic StringJSON_PROPERTY_RECURRING_DETAIL_REFERENCEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_SHOPPER_INTERACTIONstatic StringJSON_PROPERTY_SHOPPER_REFERENCEstatic StringJSON_PROPERTY_SOURCE_PAYMENT_METHODstatic StringJSON_PROPERTY_STORE
-
Constructor Summary
Constructors Constructor Description StoredValueBalanceMergeRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredValueBalanceMergeRequestamount(Amount amount)amountbooleanequals(Object o)Return true if this StoredValueBalanceMergeRequest object is equal to o.static StoredValueBalanceMergeRequestfromJson(String jsonString)Create an instance of StoredValueBalanceMergeRequest given an JSON stringAmountgetAmount()amountStringgetMerchantAccount()The merchant account identifier, with which you want to process the transaction.Map<String,String>getPaymentMethod()The collection that contains the type of the payment method and its specific information if availableStringgetRecurringDetailReference()recurringDetailReferenceStringgetReference()The reference to uniquely identify a payment.StoredValueBalanceMergeRequest.ShopperInteractionEnumgetShopperInteraction()Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.StringgetShopperReference()shopperReferenceMap<String,String>getSourcePaymentMethod()The collection that contains the source payment method and its specific information if available.StringgetStore()The physical store, for which this payment is processed.inthashCode()StoredValueBalanceMergeRequestmerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.StoredValueBalanceMergeRequestpaymentMethod(Map<String,String> paymentMethod)The collection that contains the type of the payment method and its specific information if availableStoredValueBalanceMergeRequestputPaymentMethodItem(String key, String paymentMethodItem)StoredValueBalanceMergeRequestputSourcePaymentMethodItem(String key, String sourcePaymentMethodItem)StoredValueBalanceMergeRequestrecurringDetailReference(String recurringDetailReference)recurringDetailReferenceStoredValueBalanceMergeRequestreference(String reference)The reference to uniquely identify a payment.voidsetAmount(Amount amount)amountvoidsetMerchantAccount(String merchantAccount)The merchant account identifier, with which you want to process the transaction.voidsetPaymentMethod(Map<String,String> paymentMethod)The collection that contains the type of the payment method and its specific information if availablevoidsetRecurringDetailReference(String recurringDetailReference)recurringDetailReferencevoidsetReference(String reference)The reference to uniquely identify a payment.voidsetShopperInteraction(StoredValueBalanceMergeRequest.ShopperInteractionEnum shopperInteraction)Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.voidsetShopperReference(String shopperReference)shopperReferencevoidsetSourcePaymentMethod(Map<String,String> sourcePaymentMethod)The collection that contains the source payment method and its specific information if available.voidsetStore(String store)The physical store, for which this payment is processed.StoredValueBalanceMergeRequestshopperInteraction(StoredValueBalanceMergeRequest.ShopperInteractionEnum shopperInteraction)Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.StoredValueBalanceMergeRequestshopperReference(String shopperReference)shopperReferenceStoredValueBalanceMergeRequestsourcePaymentMethod(Map<String,String> sourcePaymentMethod)The collection that contains the source payment method and its specific information if available.StoredValueBalanceMergeRequeststore(String store)The physical store, for which this payment is processed.StringtoJson()Convert an instance of StoredValueBalanceMergeRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_METHOD
public static final String JSON_PROPERTY_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECURRING_DETAIL_REFERENCE
public static final String JSON_PROPERTY_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_INTERACTION
public static final String JSON_PROPERTY_SHOPPER_INTERACTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_REFERENCE
public static final String JSON_PROPERTY_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCE_PAYMENT_METHOD
public static final String JSON_PROPERTY_SOURCE_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE
public static final String JSON_PROPERTY_STORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public StoredValueBalanceMergeRequest amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
StoredValueBalanceMergeRequestinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
merchantAccount
public StoredValueBalanceMergeRequest merchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount-- Returns:
- the current
StoredValueBalanceMergeRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier, with which you want to process the transaction.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The merchant account identifier, with which you want to process the transaction.- Parameters:
merchantAccount-
-
paymentMethod
public StoredValueBalanceMergeRequest paymentMethod(Map<String,String> paymentMethod)
The collection that contains the type of the payment method and its specific information if available- Parameters:
paymentMethod-- Returns:
- the current
StoredValueBalanceMergeRequestinstance, allowing for method chaining
-
putPaymentMethodItem
public StoredValueBalanceMergeRequest putPaymentMethodItem(String key, String paymentMethodItem)
-
getPaymentMethod
public Map<String,String> getPaymentMethod()
The collection that contains the type of the payment method and its specific information if available- Returns:
- paymentMethod
-
setPaymentMethod
public void setPaymentMethod(Map<String,String> paymentMethod)
The collection that contains the type of the payment method and its specific information if available- Parameters:
paymentMethod-
-
recurringDetailReference
public StoredValueBalanceMergeRequest recurringDetailReference(String recurringDetailReference)
recurringDetailReference- Parameters:
recurringDetailReference-- Returns:
- the current
StoredValueBalanceMergeRequestinstance, allowing for method chaining
-
getRecurringDetailReference
public String getRecurringDetailReference()
recurringDetailReference- Returns:
- recurringDetailReference
-
setRecurringDetailReference
public void setRecurringDetailReference(String recurringDetailReference)
recurringDetailReference- Parameters:
recurringDetailReference-
-
reference
public StoredValueBalanceMergeRequest reference(String reference)
The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters.- Parameters:
reference-- Returns:
- the current
StoredValueBalanceMergeRequestinstance, allowing for method chaining
-
getReference
public String getReference()
The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters.- Returns:
- reference
-
setReference
public void setReference(String reference)
The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters.- Parameters:
reference-
-
shopperInteraction
public StoredValueBalanceMergeRequest shopperInteraction(StoredValueBalanceMergeRequest.ShopperInteractionEnum shopperInteraction)
Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal.- Parameters:
shopperInteraction-- Returns:
- the current
StoredValueBalanceMergeRequestinstance, allowing for method chaining
-
getShopperInteraction
public StoredValueBalanceMergeRequest.ShopperInteractionEnum getShopperInteraction()
Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal.- Returns:
- shopperInteraction
-
setShopperInteraction
public void setShopperInteraction(StoredValueBalanceMergeRequest.ShopperInteractionEnum shopperInteraction)
Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal.- Parameters:
shopperInteraction-
-
shopperReference
public StoredValueBalanceMergeRequest shopperReference(String shopperReference)
shopperReference- Parameters:
shopperReference-- Returns:
- the current
StoredValueBalanceMergeRequestinstance, allowing for method chaining
-
getShopperReference
public String getShopperReference()
shopperReference- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
shopperReference- Parameters:
shopperReference-
-
sourcePaymentMethod
public StoredValueBalanceMergeRequest sourcePaymentMethod(Map<String,String> sourcePaymentMethod)
The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method- Parameters:
sourcePaymentMethod-- Returns:
- the current
StoredValueBalanceMergeRequestinstance, allowing for method chaining
-
putSourcePaymentMethodItem
public StoredValueBalanceMergeRequest putSourcePaymentMethodItem(String key, String sourcePaymentMethodItem)
-
getSourcePaymentMethod
public Map<String,String> getSourcePaymentMethod()
The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method- Returns:
- sourcePaymentMethod
-
setSourcePaymentMethod
public void setSourcePaymentMethod(Map<String,String> sourcePaymentMethod)
The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method- Parameters:
sourcePaymentMethod-
-
store
public StoredValueBalanceMergeRequest store(String store)
The physical store, for which this payment is processed.- Parameters:
store-- Returns:
- the current
StoredValueBalanceMergeRequestinstance, allowing for method chaining
-
getStore
public String getStore()
The physical store, for which this payment is processed.- Returns:
- store
-
setStore
public void setStore(String store)
The physical store, for which this payment is processed.- Parameters:
store-
-
equals
public boolean equals(Object o)
Return true if this StoredValueBalanceMergeRequest object is equal to o.
-
fromJson
public static StoredValueBalanceMergeRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StoredValueBalanceMergeRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredValueBalanceMergeRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StoredValueBalanceMergeRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StoredValueBalanceMergeRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-