Package com.adyen.model.payout
Class PayoutRequest
- java.lang.Object
-
- com.adyen.model.payout.PayoutRequest
-
public class PayoutRequest extends Object
PayoutRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayoutRequest.CustomTypeAdapterFactorystatic classPayoutRequest.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 HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_BILLING_ADDRESSstatic StringSERIALIZED_NAME_CARDstatic StringSERIALIZED_NAME_FRAUD_OFFSETstatic StringSERIALIZED_NAME_FUND_SOURCEstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_RECURRINGstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_SELECTED_RECURRING_DETAIL_REFERENCEstatic StringSERIALIZED_NAME_SHOPPER_EMAILstatic StringSERIALIZED_NAME_SHOPPER_INTERACTIONstatic StringSERIALIZED_NAME_SHOPPER_NAMEstatic StringSERIALIZED_NAME_SHOPPER_REFERENCEstatic StringSERIALIZED_NAME_TELEPHONE_NUMBER
-
Constructor Summary
Constructors Constructor Description PayoutRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PayoutRequestamount(Amount amount)PayoutRequestbillingAddress(Address billingAddress)PayoutRequestcard(Card card)booleanequals(Object o)PayoutRequestfraudOffset(Integer fraudOffset)static PayoutRequestfromJson(String jsonString)Create an instance of PayoutRequest given an JSON stringPayoutRequestfundSource(FundSource fundSource)AmountgetAmount()Get amountAddressgetBillingAddress()Get billingAddressCardgetCard()Get cardIntegergetFraudOffset()An integer value that is added to the normal fraud score.FundSourcegetFundSource()Get fundSourceStringgetMerchantAccount()The merchant account identifier, with which you want to process the transaction.RecurringgetRecurring()Get recurringStringgetReference()The reference to uniquely identify a payment.StringgetSelectedRecurringDetailReference()The `recurringDetailReference` you want to use for this payment.StringgetShopperEmail()The shopper's email address.PayoutRequest.ShopperInteractionEnumgetShopperInteraction()Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.NamegetShopperName()Get shopperNameStringgetShopperReference()Required for recurring payments.StringgetTelephoneNumber()The shopper's telephone number.inthashCode()PayoutRequestmerchantAccount(String merchantAccount)PayoutRequestrecurring(Recurring recurring)PayoutRequestreference(String reference)PayoutRequestselectedRecurringDetailReference(String selectedRecurringDetailReference)voidsetAmount(Amount amount)voidsetBillingAddress(Address billingAddress)voidsetCard(Card card)voidsetFraudOffset(Integer fraudOffset)voidsetFundSource(FundSource fundSource)voidsetMerchantAccount(String merchantAccount)voidsetRecurring(Recurring recurring)voidsetReference(String reference)voidsetSelectedRecurringDetailReference(String selectedRecurringDetailReference)voidsetShopperEmail(String shopperEmail)voidsetShopperInteraction(PayoutRequest.ShopperInteractionEnum shopperInteraction)voidsetShopperName(Name shopperName)voidsetShopperReference(String shopperReference)voidsetTelephoneNumber(String telephoneNumber)PayoutRequestshopperEmail(String shopperEmail)PayoutRequestshopperInteraction(PayoutRequest.ShopperInteractionEnum shopperInteraction)PayoutRequestshopperName(Name shopperName)PayoutRequestshopperReference(String shopperReference)PayoutRequesttelephoneNumber(String telephoneNumber)StringtoJson()Convert an instance of PayoutRequest 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_BILLING_ADDRESS
public static final String SERIALIZED_NAME_BILLING_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CARD
public static final String SERIALIZED_NAME_CARD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FRAUD_OFFSET
public static final String SERIALIZED_NAME_FRAUD_OFFSET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FUND_SOURCE
public static final String SERIALIZED_NAME_FUND_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RECURRING
public static final String SERIALIZED_NAME_RECURRING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SELECTED_RECURRING_DETAIL_REFERENCE
public static final String SERIALIZED_NAME_SELECTED_RECURRING_DETAIL_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_EMAIL
public static final String SERIALIZED_NAME_SHOPPER_EMAIL
- 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_NAME
public static final String SERIALIZED_NAME_SHOPPER_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_REFERENCE
public static final String SERIALIZED_NAME_SHOPPER_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TELEPHONE_NUMBER
public static final String SERIALIZED_NAME_TELEPHONE_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public PayoutRequest amount(Amount amount)
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
-
billingAddress
public PayoutRequest billingAddress(Address billingAddress)
-
getBillingAddress
public Address getBillingAddress()
Get billingAddress- Returns:
- billingAddress
-
setBillingAddress
public void setBillingAddress(Address billingAddress)
-
card
public PayoutRequest card(Card card)
-
getCard
public Card getCard()
Get card- Returns:
- card
-
setCard
public void setCard(Card card)
-
fraudOffset
public PayoutRequest fraudOffset(Integer fraudOffset)
-
getFraudOffset
public Integer getFraudOffset()
An integer value that is added to the normal fraud score. The value can be either positive or negative.- Returns:
- fraudOffset
-
setFraudOffset
public void setFraudOffset(Integer fraudOffset)
-
fundSource
public PayoutRequest fundSource(FundSource fundSource)
-
getFundSource
public FundSource getFundSource()
Get fundSource- Returns:
- fundSource
-
setFundSource
public void setFundSource(FundSource fundSource)
-
merchantAccount
public PayoutRequest 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)
-
recurring
public PayoutRequest recurring(Recurring recurring)
-
getRecurring
public Recurring getRecurring()
Get recurring- Returns:
- recurring
-
setRecurring
public void setRecurring(Recurring recurring)
-
reference
public PayoutRequest 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)
-
selectedRecurringDetailReference
public PayoutRequest selectedRecurringDetailReference(String selectedRecurringDetailReference)
-
getSelectedRecurringDetailReference
public String getSelectedRecurringDetailReference()
The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail.- Returns:
- selectedRecurringDetailReference
-
setSelectedRecurringDetailReference
public void setSelectedRecurringDetailReference(String selectedRecurringDetailReference)
-
shopperEmail
public PayoutRequest shopperEmail(String shopperEmail)
-
getShopperEmail
public String getShopperEmail()
The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations.- Returns:
- shopperEmail
-
setShopperEmail
public void setShopperEmail(String shopperEmail)
-
shopperInteraction
public PayoutRequest shopperInteraction(PayoutRequest.ShopperInteractionEnum shopperInteraction)
-
getShopperInteraction
public PayoutRequest.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(PayoutRequest.ShopperInteractionEnum shopperInteraction)
-
shopperName
public PayoutRequest shopperName(Name shopperName)
-
getShopperName
public Name getShopperName()
Get shopperName- Returns:
- shopperName
-
setShopperName
public void setShopperName(Name shopperName)
-
shopperReference
public PayoutRequest shopperReference(String shopperReference)
-
getShopperReference
public String getShopperReference()
Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.- Returns:
- shopperReference
-
setShopperReference
public void setShopperReference(String shopperReference)
-
telephoneNumber
public PayoutRequest telephoneNumber(String telephoneNumber)
-
getTelephoneNumber
public String getTelephoneNumber()
The shopper's telephone number.- Returns:
- telephoneNumber
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
-
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 PayoutRequest
-
fromJson
public static PayoutRequest fromJson(String jsonString) throws IOException
Create an instance of PayoutRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayoutRequest
- Throws:
IOException- if the JSON string is invalid with respect to PayoutRequest
-
toJson
public String toJson()
Convert an instance of PayoutRequest to an JSON string- Returns:
- JSON string
-
-