Package model
Class BalanceTransfer
- java.lang.Object
-
- model.BalanceTransfer
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class BalanceTransfer extends Object
A `balance_transfer` object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalanceTransfer.CustomTypeAdapterFactorystatic classBalanceTransfer.StateEnumThe `state` of the `balance_transfer`.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AMOUNTstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_DESTINATIONstatic StringSERIALIZED_NAME_EXTERNAL_REFERENCE_IDstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_PROCESSOR_TYPEstatic StringSERIALIZED_NAME_REFERENCE_IDstatic StringSERIALIZED_NAME_SOURCEstatic StringSERIALIZED_NAME_STATEstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description BalanceTransfer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceTransferamount(Long amount)BalanceTransfercreatedAt(OffsetDateTime createdAt)BalanceTransfercurrency(Currency currency)BalanceTransferdescription(String description)BalanceTransferdestination(String destination)booleanequals(Object o)BalanceTransferexternalReferenceId(String externalReferenceId)static BalanceTransferfromJson(String jsonString)Create an instance of BalanceTransfer given an JSON stringLonggetAmount()The total amount that will be debited in cents (e.g.OffsetDateTimegetCreatedAt()Timestamp of when the object was created.CurrencygetCurrency()Get currencyStringgetDescription()Additional information about the `balance_transfer` (e.g.StringgetDestination()The account where funds get credited.StringgetExternalReferenceId()ID generated by partner and returned to Finix.StringgetId()ID of the `balance_transfer` resource.ListLinksgetLinks()Get linksStringgetProcessorType()Pass **LITLE_V1**; `balance_transfers` are only avalible for platforms with **LITLE_V1** credentials.StringgetReferenceId()ID generated by Finix and sent to the partner.StringgetSource()The account where funds get debited.BalanceTransfer.StateEnumgetState()The `state` of the `balance_transfer`.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.OffsetDateTimegetUpdatedAt()Timestamp of when the object was last updated.inthashCode()BalanceTransferid(String id)BalanceTransferlinks(ListLinks links)BalanceTransferprocessorType(String processorType)BalanceTransferputTagsItem(String key, String tagsItem)BalanceTransferreferenceId(String referenceId)voidsetAmount(Long amount)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCurrency(Currency currency)voidsetDescription(String description)voidsetDestination(String destination)voidsetExternalReferenceId(String externalReferenceId)voidsetId(String id)voidsetLinks(ListLinks links)voidsetProcessorType(String processorType)voidsetReferenceId(String referenceId)voidsetSource(String source)voidsetState(BalanceTransfer.StateEnum state)voidsetTags(Map<String,String> tags)voidsetUpdatedAt(OffsetDateTime updatedAt)BalanceTransfersource(String source)BalanceTransferstate(BalanceTransfer.StateEnum state)BalanceTransfertags(Map<String,String> tags)StringtoJson()Convert an instance of BalanceTransfer to an JSON stringStringtoString()BalanceTransferupdatedAt(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_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_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESTINATION
public static final String SERIALIZED_NAME_DESTINATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXTERNAL_REFERENCE_ID
public static final String SERIALIZED_NAME_EXTERNAL_REFERENCE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROCESSOR_TYPE
public static final String SERIALIZED_NAME_PROCESSOR_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE_ID
public static final String SERIALIZED_NAME_REFERENCE_ID
- 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_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public BalanceTransfer id(String id)
-
setId
public void setId(String id)
-
createdAt
public BalanceTransfer 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 BalanceTransfer updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
amount
public BalanceTransfer amount(Long amount)
-
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)
-
currency
public BalanceTransfer currency(Currency currency)
-
setCurrency
public void setCurrency(Currency currency)
-
description
public BalanceTransfer description(String description)
-
getDescription
@Nullable public String getDescription()
Additional information about the `balance_transfer` (e.g. **Transferring funds for Holidays**).- Returns:
- description
-
setDescription
public void setDescription(String description)
-
destination
public BalanceTransfer destination(String destination)
-
getDestination
@Nullable public String getDestination()
The account where funds get credited. For balance transfers, this is an aliased ID and will have the value of `FOR_BENEFIT_OF_ACCOUNT` or `OPERATING_ACCOUNT`.- Returns:
- destination
-
setDestination
public void setDestination(String destination)
-
externalReferenceId
public BalanceTransfer externalReferenceId(String externalReferenceId)
-
getExternalReferenceId
@Nullable public String getExternalReferenceId()
ID generated by partner and returned to Finix.- Returns:
- externalReferenceId
-
setExternalReferenceId
public void setExternalReferenceId(String externalReferenceId)
-
processorType
public BalanceTransfer processorType(String processorType)
-
getProcessorType
@Nullable public String getProcessorType()
Pass **LITLE_V1**; `balance_transfers` are only avalible for platforms with **LITLE_V1** credentials.- Returns:
- processorType
-
setProcessorType
public void setProcessorType(String processorType)
-
referenceId
public BalanceTransfer referenceId(String referenceId)
-
getReferenceId
@Nullable public String getReferenceId()
ID generated by Finix and sent to the partner.- Returns:
- referenceId
-
setReferenceId
public void setReferenceId(String referenceId)
-
source
public BalanceTransfer source(String source)
-
getSource
@Nullable public String getSource()
The account where funds get debited. For balance transfers, this is an aliased ID and will have the value of `FOR_BENEFIT_OF_ACCOUNT` or `OPERATING_ACCOUNT`.- Returns:
- source
-
setSource
public void setSource(String source)
-
state
public BalanceTransfer state(BalanceTransfer.StateEnum state)
-
getState
@Nullable public BalanceTransfer.StateEnum getState()
The `state` of the `balance_transfer`.- Returns:
- state
-
setState
public void setState(BalanceTransfer.StateEnum state)
-
tags
public BalanceTransfer tags(Map<String,String> tags)
-
putTagsItem
public BalanceTransfer 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
-
links
public BalanceTransfer links(ListLinks links)
-
setLinks
public void setLinks(ListLinks 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 BalanceTransfer
-
fromJson
public static BalanceTransfer fromJson(String jsonString) throws IOException
Create an instance of BalanceTransfer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceTransfer
- Throws:
IOException- if the JSON string is invalid with respect to BalanceTransfer
-
toJson
public String toJson()
Convert an instance of BalanceTransfer to an JSON string- Returns:
- JSON string
-
-