Package model
Class CreateTransferRequest
- java.lang.Object
-
- model.CreateTransferRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateTransferRequest extends Object
Create a `transfer`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateTransferRequest.CustomTypeAdapterFactorystatic classCreateTransferRequest.OperationKeyEnumDetails the operation that'll be performed in the transaction.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_3D_SECURE_AUTHENTICATIONstatic StringSERIALIZED_NAME_ADDITIONAL_BUYER_CHARGESstatic StringSERIALIZED_NAME_ADDITIONAL_PURCHASE_DATAstatic StringSERIALIZED_NAME_ADJUSTMENT_REQUESTstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_DESTINATIONstatic StringSERIALIZED_NAME_DEVICEstatic StringSERIALIZED_NAME_DEVICE_CONFIGURATIONstatic StringSERIALIZED_NAME_FEEstatic StringSERIALIZED_NAME_FRAUD_SESSION_IDstatic StringSERIALIZED_NAME_IDEMPOTENCY_IDstatic StringSERIALIZED_NAME_MERCHANTstatic StringSERIALIZED_NAME_OPERATION_KEYstatic StringSERIALIZED_NAME_PAYMENT_INSTRUMENTstatic StringSERIALIZED_NAME_PROCESSORstatic StringSERIALIZED_NAME_SOURCEstatic StringSERIALIZED_NAME_STATEMENT_DESCRIPTORstatic StringSERIALIZED_NAME_TAGS
-
Constructor Summary
Constructors Constructor Description CreateTransferRequest()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_ADDITIONAL_BUYER_CHARGES
public static final String SERIALIZED_NAME_ADDITIONAL_BUYER_CHARGES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDITIONAL_PURCHASE_DATA
public static final String SERIALIZED_NAME_ADDITIONAL_PURCHASE_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADJUSTMENT_REQUEST
public static final String SERIALIZED_NAME_ADJUSTMENT_REQUEST
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CURRENCY
public static final String SERIALIZED_NAME_CURRENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESTINATION
public static final String SERIALIZED_NAME_DESTINATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEVICE
public static final String SERIALIZED_NAME_DEVICE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEVICE_CONFIGURATION
public static final String SERIALIZED_NAME_DEVICE_CONFIGURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FEE
public static final String SERIALIZED_NAME_FEE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FRAUD_SESSION_ID
public static final String SERIALIZED_NAME_FRAUD_SESSION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IDEMPOTENCY_ID
public static final String SERIALIZED_NAME_IDEMPOTENCY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT
public static final String SERIALIZED_NAME_MERCHANT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OPERATION_KEY
public static final String SERIALIZED_NAME_OPERATION_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_INSTRUMENT
public static final String SERIALIZED_NAME_PAYMENT_INSTRUMENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROCESSOR
public static final String SERIALIZED_NAME_PROCESSOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOURCE
public static final String SERIALIZED_NAME_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATEMENT_DESCRIPTOR
public static final String SERIALIZED_NAME_STATEMENT_DESCRIPTOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_3D_SECURE_AUTHENTICATION
public static final String SERIALIZED_NAME_3D_SECURE_AUTHENTICATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
additionalBuyerCharges
public CreateTransferRequest additionalBuyerCharges(AdditionalBuyerCharges additionalBuyerCharges)
-
getAdditionalBuyerCharges
@Nullable public AdditionalBuyerCharges getAdditionalBuyerCharges()
Get additionalBuyerCharges- Returns:
- additionalBuyerCharges
-
setAdditionalBuyerCharges
public void setAdditionalBuyerCharges(AdditionalBuyerCharges additionalBuyerCharges)
-
additionalPurchaseData
public CreateTransferRequest additionalPurchaseData(AdditionalPurchaseData additionalPurchaseData)
-
getAdditionalPurchaseData
@Nullable public AdditionalPurchaseData getAdditionalPurchaseData()
Get additionalPurchaseData- Returns:
- additionalPurchaseData
-
setAdditionalPurchaseData
public void setAdditionalPurchaseData(AdditionalPurchaseData additionalPurchaseData)
-
adjustmentRequest
public CreateTransferRequest adjustmentRequest(Boolean adjustmentRequest)
-
getAdjustmentRequest
@Nullable public Boolean getAdjustmentRequest()
Details if the `transfer` was created to adjust funds.- Returns:
- adjustmentRequest
-
setAdjustmentRequest
public void setAdjustmentRequest(Boolean adjustmentRequest)
-
amount
public CreateTransferRequest amount(Long amount)
-
getAmount
@Nonnull public Long getAmount()
The total amount that will be debited in cents (e.g. 100 cents to debit $1.00).- Returns:
- amount
-
setAmount
public void setAmount(Long amount)
-
currency
public CreateTransferRequest currency(Currency currency)
-
setCurrency
public void setCurrency(Currency currency)
-
destination
public CreateTransferRequest destination(String destination)
-
getDestination
@Nullable public String getDestination()
ID of the `Payment Instrument` where funds will be sent.- Returns:
- destination
-
setDestination
public void setDestination(String destination)
-
device
public CreateTransferRequest device(String device)
-
setDevice
public void setDevice(String device)
-
deviceConfiguration
public CreateTransferRequest deviceConfiguration(ConfigurationDetails deviceConfiguration)
-
getDeviceConfiguration
@Nullable public ConfigurationDetails getDeviceConfiguration()
Get deviceConfiguration- Returns:
- deviceConfiguration
-
setDeviceConfiguration
public void setDeviceConfiguration(ConfigurationDetails deviceConfiguration)
-
fee
public CreateTransferRequest fee(Long fee)
-
getFee
@Nullable public Long getFee()
The amount of the `Transfer` you'd like to collect as your fee in cents. Defaults to zero (must be less than or equal to the `amount`).- Returns:
- fee
-
setFee
public void setFee(Long fee)
-
fraudSessionId
public CreateTransferRequest fraudSessionId(String fraudSessionId)
-
getFraudSessionId
@Nullable public String getFraudSessionId()
The `fraud_session_session` ID you want to review for fraud. For more info, see [Fraud Detection](/docs/guides/payments/fraud-detection/).- Returns:
- fraudSessionId
-
setFraudSessionId
public void setFraudSessionId(String fraudSessionId)
-
idempotencyId
public CreateTransferRequest idempotencyId(String idempotencyId)
-
getIdempotencyId
@Nullable public String getIdempotencyId()
A randomly generated value that'll be associated with the request.- Returns:
- idempotencyId
-
setIdempotencyId
public void setIdempotencyId(String idempotencyId)
-
merchant
public CreateTransferRequest merchant(String merchant)
-
getMerchant
@Nullable public String getMerchant()
ID of the `Merchant` the `Transfer` was created under.- Returns:
- merchant
-
setMerchant
public void setMerchant(String merchant)
-
operationKey
public CreateTransferRequest operationKey(CreateTransferRequest.OperationKeyEnum operationKey)
-
getOperationKey
@Nullable public CreateTransferRequest.OperationKeyEnum getOperationKey()
Details the operation that'll be performed in the transaction.- Returns:
- operationKey
-
setOperationKey
public void setOperationKey(CreateTransferRequest.OperationKeyEnum operationKey)
-
paymentInstrument
public CreateTransferRequest paymentInstrument(CardPresentInstrumentForm paymentInstrument)
-
getPaymentInstrument
@Nullable public CardPresentInstrumentForm getPaymentInstrument()
Get paymentInstrument- Returns:
- paymentInstrument
-
setPaymentInstrument
public void setPaymentInstrument(CardPresentInstrumentForm paymentInstrument)
-
processor
public CreateTransferRequest processor(String processor)
-
getProcessor
@Nullable public String getProcessor()
Name of the transaction processor.- Returns:
- processor
-
setProcessor
public void setProcessor(String processor)
-
source
public CreateTransferRequest source(String source)
-
getSource
@Nullable public String getSource()
ID of the `Payment Instrument` where funds get debited.- Returns:
- source
-
setSource
public void setSource(String source)
-
statementDescriptor
public CreateTransferRequest statementDescriptor(String statementDescriptor)
-
getStatementDescriptor
@Nullable public String getStatementDescriptor()
The description of the transaction that appears on the buyer's bank or card statement.- Returns:
- statementDescriptor
-
setStatementDescriptor
public void setStatementDescriptor(String statementDescriptor)
-
tags
public CreateTransferRequest tags(Map<String,String> tags)
-
putTagsItem
public CreateTransferRequest putTagsItem(String key, String tagsItem)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
_3dSecureAuthentication
public CreateTransferRequest _3dSecureAuthentication(CreateTransferRequest3dSecureAuthentication _3dSecureAuthentication)
-
get3dSecureAuthentication
@Nullable public CreateTransferRequest3dSecureAuthentication get3dSecureAuthentication()
Get _3dSecureAuthentication- Returns:
- _3dSecureAuthentication
-
set3dSecureAuthentication
public void set3dSecureAuthentication(CreateTransferRequest3dSecureAuthentication _3dSecureAuthentication)
-
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 CreateTransferRequest
-
fromJson
public static CreateTransferRequest fromJson(String jsonString) throws IOException
Create an instance of CreateTransferRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateTransferRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateTransferRequest
-
toJson
public String toJson()
Convert an instance of CreateTransferRequest to an JSON string- Returns:
- JSON string
-
-