Package model
Class Settlement
java.lang.Object
model.Settlement
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class Settlement
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe status of the `Settlement`.static enumType of `Settlement`. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplication(String application) createdAt(OffsetDateTime createdAt) destination(String destination) booleanstatic SettlementCreate an instance of Settlement given an JSON stringThe ID of the `Application` resource the `Settlement` was created under.Timestamp of when the object was created.Get currencyID of the `Payment Instrument` where funds will be sent.Details how funds will be dispersed in the `Funding Transfer` (usually **null**).getId()The ID of the resource.The ID of the resource.getLinks()Get linksThe ID of the resource.The amount in cents that will be deposited into the merchant's bank account.The type of `Payment Instrument` used in the `Funding Transfer` (or the original payment).Name of the `Settlement` processor.The status of the `Settlement`.getTags()Key value pair for annotating custom meta data (e.g.Total amount of the `Settlement` (in cents).Sum of the fees in the `Settlement`.Sum of the fees in the `Settlement`.getType()Type of `Settlement`.Timestamp of when the object was last updated.inthashCode()links(SettlementLinks links) merchantId(String merchantId) paymentType(String paymentType) putTagsItem(String key, String tagsItem) voidsetApplication(String application) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(Currency currency) voidsetDestination(String destination) voidsetFundsFlow(String fundsFlow) voidvoidsetIdentity(String identity) voidsetLinks(SettlementLinks links) voidsetMerchantId(String merchantId) voidsetNetAmount(Long netAmount) voidsetPaymentType(String paymentType) voidsetProcessor(String processor) voidsetStatus(Settlement.StatusEnum status) voidvoidsetTotalAmount(Long totalAmount) voidsetTotalFee(Long totalFee) voidsetTotalFees(Long totalFees) voidsetType(Settlement.TypeEnum type) voidsetUpdatedAt(OffsetDateTime updatedAt) status(Settlement.StatusEnum status) toJson()Convert an instance of Settlement to an JSON stringtoString()totalAmount(Long totalAmount) type(Settlement.TypeEnum type) updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_TAGS
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_APPLICATION
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_DESTINATION
- See Also:
-
SERIALIZED_NAME_FUNDS_FLOW
- See Also:
-
SERIALIZED_NAME_IDENTITY
- See Also:
-
SERIALIZED_NAME_MERCHANT_ID
- See Also:
-
SERIALIZED_NAME_NET_AMOUNT
- See Also:
-
SERIALIZED_NAME_PAYMENT_TYPE
- See Also:
-
SERIALIZED_NAME_PROCESSOR
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TOTAL_AMOUNT
- See Also:
-
SERIALIZED_NAME_TOTAL_FEE
- See Also:
-
SERIALIZED_NAME_TOTAL_FEES
- See Also:
-
SERIALIZED_NAME_LINKS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Settlement
public Settlement()
-
-
Method Details
-
tags
-
putTagsItem
-
getTags
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setTags
-
type
-
getType
Type of `Settlement`.- Returns:
- type
-
setType
-
id
-
getId
The ID of the resource.- Returns:
- id
-
setId
-
createdAt
-
getCreatedAt
Timestamp of when the object was created.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
-
application
-
getApplication
The ID of the `Application` resource the `Settlement` was created under.- Returns:
- application
-
setApplication
-
currency
-
getCurrency
Get currency- Returns:
- currency
-
setCurrency
-
destination
-
getDestination
ID of the `Payment Instrument` where funds will be sent.- Returns:
- destination
-
setDestination
-
fundsFlow
-
getFundsFlow
Details how funds will be dispersed in the `Funding Transfer` (usually **null**).- Returns:
- fundsFlow
-
setFundsFlow
-
identity
-
getIdentity
The ID of the resource.- Returns:
- identity
-
setIdentity
-
merchantId
-
getMerchantId
The ID of the resource.- Returns:
- merchantId
-
setMerchantId
-
netAmount
-
getNetAmount
The amount in cents that will be deposited into the merchant's bank account.- Returns:
- netAmount
-
setNetAmount
-
paymentType
-
getPaymentType
The type of `Payment Instrument` used in the `Funding Transfer` (or the original payment).- Returns:
- paymentType
-
setPaymentType
-
processor
-
getProcessor
Name of the `Settlement` processor.- Returns:
- processor
-
setProcessor
-
status
-
getStatus
The status of the `Settlement`. Available values include:<ul><li>**PENDING**<li>**STAGED**<li>**AWAITING_APPROVAL**<li>**APPROVED**.</ul> Merchants only receive payouts when `Settlements` are **APPROVED**. For more information, see [Payouts](/guides/payouts/payouts/).- Returns:
- status
-
setStatus
-
totalAmount
-
getTotalAmount
Total amount of the `Settlement` (in cents).- Returns:
- totalAmount
-
setTotalAmount
-
totalFee
-
getTotalFee
Sum of the fees in the `Settlement`.- Returns:
- totalFee
-
setTotalFee
-
totalFees
-
getTotalFees
Sum of the fees in the `Settlement`.- Returns:
- totalFees
-
setTotalFees
-
links
-
getLinks
Get links- Returns:
- links
-
setLinks
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates 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 Settlement
-
fromJson
Create an instance of Settlement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Settlement
- Throws:
IOException- if the JSON string is invalid with respect to Settlement
-
toJson
Convert an instance of Settlement to an JSON string- Returns:
- JSON string
-