Package model
Class Transfer
- java.lang.Object
-
- model.Transfer
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Transfer extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransfer.CustomTypeAdapterFactorystatic classTransfer.StateEnumThe stauts of the `Transfer`.static classTransfer.SubtypeEnumAdditional information describing the `payment_type`.static classTransfer.TypeEnumType of `Transfer`.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Transfer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferadditionalBuyerCharges(AdditionalBuyerCharges additionalBuyerCharges)TransferaddMessagesItem(String messagesItem)Transferamount(Long amount)Transferapplication(String application)TransfercardPresentDetails(CardPresentDetails cardPresentDetails)TransfercreatedAt(OffsetDateTime createdAt)Transfercurrency(Currency currency)Transferdestination(String destination)Transferdevice(String device)booleanequals(Object o)TransferexternallyFunded(String externallyFunded)TransferfailureCode(String failureCode)TransferfailureMessage(String failureMessage)Transferfee(Long fee)TransferfeeType(FeeType feeType)static TransferfromJson(String jsonString)Create an instance of Transfer given an JSON stringAdditionalBuyerChargesgetAdditionalBuyerCharges()Get additionalBuyerChargesLonggetAmount()The total amount that will be debited in cents (e.g.StringgetApplication()The ID of the resource.CardPresentDetailsgetCardPresentDetails()Get cardPresentDetailsOffsetDateTimegetCreatedAt()Timestamp of when the object was created.CurrencygetCurrency()Get currencyStringgetDestination()The ID of the destination.StringgetDevice()The ID of the resource.StringgetExternallyFunded()Details if the `Transfer` will be settled externally by card processors.StringgetFailureCode()The code of the failure so the decline can be handled programmatically.StringgetFailureMessage()A human-readable description of why the transaction was declined.LonggetFee()The amount of the `Transfer` you'd like to collect as your fee in cents.FeeTypegetFeeType()Get feeTypeStringgetId()The ID of the `Transfer` resource.StringgetIdempotencyId()ID to [idempotently](#section/Idempotency-Requests) identifty the transfer.TransferLinksgetLinks()Get linksStringgetMerchantIdentity()The ID of the resource.List<String>getMessages()Message field that provides additional details.ObjectgetRaw()Raw response from the processor.OffsetDateTimegetReadyToSettleAt()Timestamp of when the `Transfer` is ready to be settled at.StringgetSource()The ID of the resource.Transfer.StateEnumgetState()The stauts of the `Transfer`.StringgetStatementDescriptor()The description of the merchant that appears on the buyer's bank or card statement.Transfer.SubtypeEnumgetSubtype()Additional information describing the `payment_type`.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.StringgetTraceId()Trace ID of the `Transfer`.Transfer.TypeEnumgetType()Type of `Transfer`.OffsetDateTimegetUpdatedAt()Timestamp of when the object was last updated.inthashCode()Transferid(String id)TransferidempotencyId(String idempotencyId)Transferlinks(TransferLinks links)TransfermerchantIdentity(String merchantIdentity)Transfermessages(List<String> messages)TransferputTagsItem(String key, String tagsItem)Transferraw(Object raw)TransferreadyToSettleAt(OffsetDateTime readyToSettleAt)voidsetAdditionalBuyerCharges(AdditionalBuyerCharges additionalBuyerCharges)voidsetAmount(Long amount)voidsetApplication(String application)voidsetCardPresentDetails(CardPresentDetails cardPresentDetails)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCurrency(Currency currency)voidsetDestination(String destination)voidsetDevice(String device)voidsetExternallyFunded(String externallyFunded)voidsetFailureCode(String failureCode)voidsetFailureMessage(String failureMessage)voidsetFee(Long fee)voidsetFeeType(FeeType feeType)voidsetId(String id)voidsetIdempotencyId(String idempotencyId)voidsetLinks(TransferLinks links)voidsetMerchantIdentity(String merchantIdentity)voidsetMessages(List<String> messages)voidsetRaw(Object raw)voidsetReadyToSettleAt(OffsetDateTime readyToSettleAt)voidsetSource(String source)voidsetState(Transfer.StateEnum state)voidsetStatementDescriptor(String statementDescriptor)voidsetSubtype(Transfer.SubtypeEnum subtype)voidsetTags(Map<String,String> tags)voidsetTraceId(String traceId)voidsetType(Transfer.TypeEnum type)voidsetUpdatedAt(OffsetDateTime updatedAt)Transfersource(String source)Transferstate(Transfer.StateEnum state)TransferstatementDescriptor(String statementDescriptor)Transfersubtype(Transfer.SubtypeEnum subtype)Transfertags(Map<String,String> tags)StringtoJson()Convert an instance of Transfer to an JSON stringStringtoString()TransfertraceId(String traceId)Transfertype(Transfer.TypeEnum type)TransferupdatedAt(OffsetDateTime updatedAt)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDITIONAL_BUYER_CHARGES
public static final String SERIALIZED_NAME_ADDITIONAL_BUYER_CHARGES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLICATION
public static final String SERIALIZED_NAME_APPLICATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CARD_PRESENT_DETAILS
public static final String SERIALIZED_NAME_CARD_PRESENT_DETAILS
- 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_EXTERNALLY_FUNDED
public static final String SERIALIZED_NAME_EXTERNALLY_FUNDED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FAILURE_CODE
public static final String SERIALIZED_NAME_FAILURE_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FAILURE_MESSAGE
public static final String SERIALIZED_NAME_FAILURE_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FEE
public static final String SERIALIZED_NAME_FEE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FEE_TYPE
public static final String SERIALIZED_NAME_FEE_TYPE
- 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_IDENTITY
public static final String SERIALIZED_NAME_MERCHANT_IDENTITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGES
public static final String SERIALIZED_NAME_MESSAGES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RAW
public static final String SERIALIZED_NAME_RAW
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_READY_TO_SETTLE_AT
public static final String SERIALIZED_NAME_READY_TO_SETTLE_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SOURCE
public static final String SERIALIZED_NAME_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATEMENT_DESCRIPTOR
public static final String SERIALIZED_NAME_STATEMENT_DESCRIPTOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBTYPE
public static final String SERIALIZED_NAME_SUBTYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRACE_ID
public static final String SERIALIZED_NAME_TRACE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(String id)
-
createdAt
public Transfer createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Timestamp of when the object was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
updatedAt
public Transfer updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
additionalBuyerCharges
public Transfer additionalBuyerCharges(AdditionalBuyerCharges additionalBuyerCharges)
-
getAdditionalBuyerCharges
@Nullable public AdditionalBuyerCharges getAdditionalBuyerCharges()
Get additionalBuyerCharges- Returns:
- additionalBuyerCharges
-
setAdditionalBuyerCharges
public void setAdditionalBuyerCharges(AdditionalBuyerCharges additionalBuyerCharges)
-
getAmount
@Nullable 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)
-
getApplication
@Nullable public String getApplication()
The ID of the resource.- Returns:
- application
-
setApplication
public void setApplication(String application)
-
cardPresentDetails
public Transfer cardPresentDetails(CardPresentDetails cardPresentDetails)
-
getCardPresentDetails
@Nullable public CardPresentDetails getCardPresentDetails()
Get cardPresentDetails- Returns:
- cardPresentDetails
-
setCardPresentDetails
public void setCardPresentDetails(CardPresentDetails cardPresentDetails)
-
setCurrency
public void setCurrency(Currency currency)
-
getDestination
@Nullable public String getDestination()
The ID of the destination.- Returns:
- destination
-
setDestination
public void setDestination(String destination)
-
setDevice
public void setDevice(String device)
-
getExternallyFunded
@Nullable public String getExternallyFunded()
Details if the `Transfer` will be settled externally by card processors.- Returns:
- externallyFunded
-
setExternallyFunded
public void setExternallyFunded(String externallyFunded)
-
getFailureCode
@Nullable public String getFailureCode()
The code of the failure so the decline can be handled programmatically. For more info on how to handle the failure, see [Failure Codes](/docs/guides/developers/errors/#failure-codes).- Returns:
- failureCode
-
setFailureCode
public void setFailureCode(String failureCode)
-
getFailureMessage
@Nullable public String getFailureMessage()
A human-readable description of why the transaction was declined. This will also include a suggestion on how to complete the payment.- Returns:
- failureMessage
-
setFailureMessage
public void setFailureMessage(String failureMessage)
-
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)
-
setFeeType
public void setFeeType(FeeType feeType)
-
getIdempotencyId
@Nullable public String getIdempotencyId()
ID to [idempotently](#section/Idempotency-Requests) identifty the transfer.- Returns:
- idempotencyId
-
setIdempotencyId
public void setIdempotencyId(String idempotencyId)
-
getMerchantIdentity
@Nullable public String getMerchantIdentity()
The ID of the resource.- Returns:
- merchantIdentity
-
setMerchantIdentity
public void setMerchantIdentity(String merchantIdentity)
-
getMessages
@Nullable public List<String> getMessages()
Message field that provides additional details. This field is typically **null**.- Returns:
- messages
-
setRaw
public void setRaw(Object raw)
-
readyToSettleAt
public Transfer readyToSettleAt(OffsetDateTime readyToSettleAt)
-
getReadyToSettleAt
@Nullable public OffsetDateTime getReadyToSettleAt()
Timestamp of when the `Transfer` is ready to be settled at.- Returns:
- readyToSettleAt
-
setReadyToSettleAt
public void setReadyToSettleAt(OffsetDateTime readyToSettleAt)
-
setSource
public void setSource(String source)
-
state
public Transfer state(Transfer.StateEnum state)
-
getState
@Nullable public Transfer.StateEnum getState()
The stauts of the `Transfer`.- Returns:
- state
-
setState
public void setState(Transfer.StateEnum state)
-
getStatementDescriptor
@Nullable public String getStatementDescriptor()
The description of the merchant that appears on the buyer's bank or card statement.- Returns:
- statementDescriptor
-
setStatementDescriptor
public void setStatementDescriptor(String statementDescriptor)
-
subtype
public Transfer subtype(Transfer.SubtypeEnum subtype)
-
getSubtype
@Nullable public Transfer.SubtypeEnum getSubtype()
Additional information describing the `payment_type`.- Returns:
- subtype
-
setSubtype
public void setSubtype(Transfer.SubtypeEnum subtype)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
getTraceId
@Nullable public String getTraceId()
Trace ID of the `Transfer`. The processor sends back the `trace_id` so you can track the `Transfer` end-to-end.- Returns:
- traceId
-
setTraceId
public void setTraceId(String traceId)
-
type
public Transfer type(Transfer.TypeEnum type)
-
getType
@Nullable public Transfer.TypeEnum getType()
Type of `Transfer`.- Returns:
- type
-
setType
public void setType(Transfer.TypeEnum type)
-
links
public Transfer links(TransferLinks links)
-
getLinks
@Nullable public TransferLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(TransferLinks links)
-
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 Transfer
-
fromJson
public static Transfer fromJson(String jsonString) throws IOException
Create an instance of Transfer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Transfer
- Throws:
IOException- if the JSON string is invalid with respect to Transfer
-
toJson
public String toJson()
Convert an instance of Transfer to an JSON string- Returns:
- JSON string
-
-