Package model
Class Settlement
- java.lang.Object
-
- model.Settlement
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Settlement extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSettlement.CustomTypeAdapterFactorystatic classSettlement.StatusEnumThe status of the `Settlement`.static classSettlement.TypeEnumType of `Settlement`.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_APPLICATIONstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_DESTINATIONstatic StringSERIALIZED_NAME_FUNDS_FLOWstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_IDENTITYstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_MERCHANT_IDstatic StringSERIALIZED_NAME_NET_AMOUNTstatic StringSERIALIZED_NAME_PAYMENT_TYPEstatic StringSERIALIZED_NAME_PROCESSORstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_TOTAL_AMOUNTstatic StringSERIALIZED_NAME_TOTAL_FEEstatic StringSERIALIZED_NAME_TOTAL_FEESstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description Settlement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Settlementapplication(String application)SettlementcreatedAt(OffsetDateTime createdAt)Settlementcurrency(Currency currency)Settlementdestination(String destination)booleanequals(Object o)static SettlementfromJson(String jsonString)Create an instance of Settlement given an JSON stringSettlementfundsFlow(String fundsFlow)StringgetApplication()The ID of the `Application` resource the `Settlement` was created under.OffsetDateTimegetCreatedAt()Timestamp of when the object was created.CurrencygetCurrency()Get currencyStringgetDestination()ID of the `Payment Instrument` where funds will be sent.StringgetFundsFlow()Details how funds will be dispersed in the `Funding Transfer` (usually **null**).StringgetId()The ID of the resource.StringgetIdentity()The ID of the resource.SettlementLinksgetLinks()Get linksStringgetMerchantId()The ID of the resource.LonggetNetAmount()The amount in cents that will be deposited into the merchant's bank account.StringgetPaymentType()The type of `Payment Instrument` used in the `Funding Transfer` (or the original payment).StringgetProcessor()Name of the `Settlement` processor.Settlement.StatusEnumgetStatus()The status of the `Settlement`.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.LonggetTotalAmount()Total amount of the `Settlement` (in cents).LonggetTotalFee()Sum of the fees in the `Settlement`.LonggetTotalFees()Sum of the fees (including Subcription Billing) in the `Settlement`.Settlement.TypeEnumgetType()Type of `Settlement`.OffsetDateTimegetUpdatedAt()Timestamp of when the object was last updated.inthashCode()Settlementid(String id)Settlementidentity(String identity)Settlementlinks(SettlementLinks links)SettlementmerchantId(String merchantId)SettlementnetAmount(Long netAmount)SettlementpaymentType(String paymentType)Settlementprocessor(String processor)SettlementputTagsItem(String key, String tagsItem)voidsetApplication(String application)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCurrency(Currency currency)voidsetDestination(String destination)voidsetFundsFlow(String fundsFlow)voidsetId(String id)voidsetIdentity(String identity)voidsetLinks(SettlementLinks links)voidsetMerchantId(String merchantId)voidsetNetAmount(Long netAmount)voidsetPaymentType(String paymentType)voidsetProcessor(String processor)voidsetStatus(Settlement.StatusEnum status)voidsetTags(Map<String,String> tags)voidsetTotalAmount(Long totalAmount)voidsetTotalFee(Long totalFee)voidsetTotalFees(Long totalFees)voidsetType(Settlement.TypeEnum type)voidsetUpdatedAt(OffsetDateTime updatedAt)Settlementstatus(Settlement.StatusEnum status)Settlementtags(Map<String,String> tags)StringtoJson()Convert an instance of Settlement to an JSON stringStringtoString()SettlementtotalAmount(Long totalAmount)SettlementtotalFee(Long totalFee)SettlementtotalFees(Long totalFees)Settlementtype(Settlement.TypeEnum type)SettlementupdatedAt(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_APPLICATION
public static final String SERIALIZED_NAME_APPLICATION
- 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_FUNDS_FLOW
public static final String SERIALIZED_NAME_FUNDS_FLOW
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IDENTITY
public static final String SERIALIZED_NAME_IDENTITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ID
public static final String SERIALIZED_NAME_MERCHANT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NET_AMOUNT
public static final String SERIALIZED_NAME_NET_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_TYPE
public static final String SERIALIZED_NAME_PAYMENT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROCESSOR
public static final String SERIALIZED_NAME_PROCESSOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOTAL_AMOUNT
public static final String SERIALIZED_NAME_TOTAL_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOTAL_FEE
public static final String SERIALIZED_NAME_TOTAL_FEE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOTAL_FEES
public static final String SERIALIZED_NAME_TOTAL_FEES
- 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
-
id
public Settlement id(String id)
-
setId
public void setId(String id)
-
createdAt
public Settlement 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 Settlement updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
application
public Settlement application(String application)
-
getApplication
@Nullable public String getApplication()
The ID of the `Application` resource the `Settlement` was created under.- Returns:
- application
-
setApplication
public void setApplication(String application)
-
currency
public Settlement currency(Currency currency)
-
setCurrency
public void setCurrency(Currency currency)
-
destination
public Settlement 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)
-
fundsFlow
public Settlement fundsFlow(String fundsFlow)
-
getFundsFlow
@Nullable public String getFundsFlow()
Details how funds will be dispersed in the `Funding Transfer` (usually **null**).- Returns:
- fundsFlow
-
setFundsFlow
public void setFundsFlow(String fundsFlow)
-
identity
public Settlement identity(String identity)
-
setIdentity
public void setIdentity(String identity)
-
merchantId
public Settlement merchantId(String merchantId)
-
setMerchantId
public void setMerchantId(String merchantId)
-
netAmount
public Settlement netAmount(Long netAmount)
-
getNetAmount
@Nullable public Long getNetAmount()
The amount in cents that will be deposited into the merchant's bank account.- Returns:
- netAmount
-
setNetAmount
public void setNetAmount(Long netAmount)
-
paymentType
public Settlement paymentType(String paymentType)
-
getPaymentType
@Nullable public String getPaymentType()
The type of `Payment Instrument` used in the `Funding Transfer` (or the original payment).- Returns:
- paymentType
-
setPaymentType
public void setPaymentType(String paymentType)
-
processor
public Settlement processor(String processor)
-
getProcessor
@Nullable public String getProcessor()
Name of the `Settlement` processor.- Returns:
- processor
-
setProcessor
public void setProcessor(String processor)
-
status
public Settlement status(Settlement.StatusEnum status)
-
getStatus
@Nullable public Settlement.StatusEnum getStatus()
The status of the `Settlement`. Available values include:<ul><li>**PENDING**<li>**AWAITING_APPROVAL**<li>**APPROVED**.</ul> Merchants only receive payouts when `Settlements` are **APPROVED** and receive the resulting funding `Transfer` . For more information, see [Payouts](/guides/payouts/payouts/).- Returns:
- status
-
setStatus
public void setStatus(Settlement.StatusEnum status)
-
tags
public Settlement tags(Map<String,String> tags)
-
putTagsItem
public Settlement 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
-
totalAmount
public Settlement totalAmount(Long totalAmount)
-
getTotalAmount
@Nullable public Long getTotalAmount()
Total amount of the `Settlement` (in cents).- Returns:
- totalAmount
-
setTotalAmount
public void setTotalAmount(Long totalAmount)
-
totalFee
public Settlement totalFee(Long totalFee)
-
getTotalFee
@Nullable public Long getTotalFee()
Sum of the fees in the `Settlement`.- Returns:
- totalFee
-
setTotalFee
public void setTotalFee(Long totalFee)
-
totalFees
public Settlement totalFees(Long totalFees)
-
getTotalFees
@Nullable public Long getTotalFees()
Sum of the fees (including Subcription Billing) in the `Settlement`.- Returns:
- totalFees
-
setTotalFees
public void setTotalFees(Long totalFees)
-
type
public Settlement type(Settlement.TypeEnum type)
-
getType
@Nullable public Settlement.TypeEnum getType()
Type of `Settlement`.- Returns:
- type
-
setType
public void setType(Settlement.TypeEnum type)
-
links
public Settlement links(SettlementLinks links)
-
getLinks
@Nullable public SettlementLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(SettlementLinks 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 Settlement
-
fromJson
public static Settlement fromJson(String jsonString) throws IOException
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
public String toJson()
Convert an instance of Settlement to an JSON string- Returns:
- JSON string
-
-