Package com.adyen.model.storedvalue
Class StoredValueStatusChangeRequest
- java.lang.Object
-
- com.adyen.model.storedvalue.StoredValueStatusChangeRequest
-
public class StoredValueStatusChangeRequest extends Object
StoredValueStatusChangeRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredValueStatusChangeRequest.CustomTypeAdapterFactorystatic classStoredValueStatusChangeRequest.ShopperInteractionEnumSpecifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.static classStoredValueStatusChangeRequest.StatusEnumThe status you want to change to
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_PAYMENT_METHODstatic StringSERIALIZED_NAME_RECURRING_DETAIL_REFERENCEstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_SHOPPER_INTERACTIONstatic StringSERIALIZED_NAME_SHOPPER_REFERENCEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_STORE
-
Constructor Summary
Constructors Constructor Description StoredValueStatusChangeRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredValueStatusChangeRequestamount(Amount amount)booleanequals(Object o)static StoredValueStatusChangeRequestfromJson(String jsonString)Create an instance of StoredValueStatusChangeRequest given an JSON stringAmountgetAmount()Get 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()Get recurringDetailReferenceStringgetReference()The reference to uniquely identify a payment.StoredValueStatusChangeRequest.ShopperInteractionEnumgetShopperInteraction()Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.StringgetShopperReference()Get shopperReferenceStoredValueStatusChangeRequest.StatusEnumgetStatus()The status you want to change toStringgetStore()The physical store, for which this payment is processed.inthashCode()StoredValueStatusChangeRequestmerchantAccount(String merchantAccount)StoredValueStatusChangeRequestpaymentMethod(Map<String,String> paymentMethod)StoredValueStatusChangeRequestputPaymentMethodItem(String key, String paymentMethodItem)StoredValueStatusChangeRequestrecurringDetailReference(String recurringDetailReference)StoredValueStatusChangeRequestreference(String reference)voidsetAmount(Amount amount)voidsetMerchantAccount(String merchantAccount)voidsetPaymentMethod(Map<String,String> paymentMethod)voidsetRecurringDetailReference(String recurringDetailReference)voidsetReference(String reference)voidsetShopperInteraction(StoredValueStatusChangeRequest.ShopperInteractionEnum shopperInteraction)voidsetShopperReference(String shopperReference)voidsetStatus(StoredValueStatusChangeRequest.StatusEnum status)voidsetStore(String store)StoredValueStatusChangeRequestshopperInteraction(StoredValueStatusChangeRequest.ShopperInteractionEnum shopperInteraction)StoredValueStatusChangeRequestshopperReference(String shopperReference)StoredValueStatusChangeRequeststatus(StoredValueStatusChangeRequest.StatusEnum status)StoredValueStatusChangeRequeststore(String store)StringtoJson()Convert an instance of StoredValueStatusChangeRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_METHOD
public static final String SERIALIZED_NAME_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
public static final String SERIALIZED_NAME_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_INTERACTION
public static final String SERIALIZED_NAME_SHOPPER_INTERACTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_REFERENCE
public static final String SERIALIZED_NAME_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORE
public static final String SERIALIZED_NAME_STORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public StoredValueStatusChangeRequest amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
merchantAccount
public StoredValueStatusChangeRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account identifier, with which you want to process the transaction.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
paymentMethod
public StoredValueStatusChangeRequest paymentMethod(Map<String,String> paymentMethod)
-
putPaymentMethodItem
public StoredValueStatusChangeRequest 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
-
recurringDetailReference
public StoredValueStatusChangeRequest recurringDetailReference(String recurringDetailReference)
-
getRecurringDetailReference
public String getRecurringDetailReference()
Get recurringDetailReference- Returns:
- recurringDetailReference
-
setRecurringDetailReference
public void setRecurringDetailReference(String recurringDetailReference)
-
reference
public StoredValueStatusChangeRequest reference(String reference)
-
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)
-
shopperInteraction
public StoredValueStatusChangeRequest shopperInteraction(StoredValueStatusChangeRequest.ShopperInteractionEnum shopperInteraction)
-
getShopperInteraction
public StoredValueStatusChangeRequest.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(StoredValueStatusChangeRequest.ShopperInteractionEnum shopperInteraction)
-
shopperReference
public StoredValueStatusChangeRequest shopperReference(String shopperReference)
-
getShopperReference
public String getShopperReference()
Get shopperReference- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
-
status
public StoredValueStatusChangeRequest status(StoredValueStatusChangeRequest.StatusEnum status)
-
getStatus
public StoredValueStatusChangeRequest.StatusEnum getStatus()
The status you want to change to- Returns:
- status
-
setStatus
public void setStatus(StoredValueStatusChangeRequest.StatusEnum status)
-
store
public StoredValueStatusChangeRequest store(String store)
-
getStore
public String getStore()
The physical store, for which this payment is processed.- Returns:
- store
-
setStore
public void setStore(String store)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates 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 StoredValueStatusChangeRequest
-
fromJson
public static StoredValueStatusChangeRequest fromJson(String jsonString) throws IOException
Create an instance of StoredValueStatusChangeRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredValueStatusChangeRequest
- Throws:
IOException- if the JSON string is invalid with respect to StoredValueStatusChangeRequest
-
toJson
public String toJson()
Convert an instance of StoredValueStatusChangeRequest to an JSON string- Returns:
- JSON string
-
-