Package model
Class Fee
java.lang.Object
model.Fee
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class Fee
extends Object
An out of flow `fee` that is added to a `settlement`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumSubtype of the `fee`.static enumThe type of `fee`.static enumThe type of entity the `fee` is linked (**null** by default). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) displayName(String displayName) booleanfeeSubtype(Fee.FeeSubtypeEnum feeSubtype) feeType(Fee.FeeTypeEnum feeType) static FeeCreate an instance of Fee given an JSON stringThe amount of the fee in cents.Timestamp of when the object was created.Get currencyThe name of the `fee` object that was include in `display_name` when creating the fee.Subtype of the `fee`.The type of `fee`.getId()The ID of the `fee` resource.ID of the linked resource.The type of entity the `fee` is linked (**null** by default).getLinks()Get linksThe `Merchant` ID that the fee is being debited from.getTags()Key value pair for annotating custom meta data (e.g.Timestamp of when the object was last updated.inthashCode()linkedType(Fee.LinkedTypeEnum linkedType) putTagsItem(String key, String tagsItem) voidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(Currency currency) voidsetDisplayName(String displayName) voidsetFeeSubtype(Fee.FeeSubtypeEnum feeSubtype) voidsetFeeType(Fee.FeeTypeEnum feeType) voidvoidsetLinkedId(String linkedId) voidsetLinkedType(Fee.LinkedTypeEnum linkedType) voidvoidsetMerchant(String merchant) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of Fee to an JSON stringtoString()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_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_DISPLAY_NAME
- See Also:
-
SERIALIZED_NAME_FEE_SUBTYPE
- See Also:
-
SERIALIZED_NAME_FEE_TYPE
- See Also:
-
SERIALIZED_NAME_LINKED_ID
- See Also:
-
SERIALIZED_NAME_LINKED_TYPE
- See Also:
-
SERIALIZED_NAME_MERCHANT
- See Also:
-
SERIALIZED_NAME_LINKS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Fee
public Fee()
-
-
Method Details
-
tags
-
putTagsItem
-
getTags
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setTags
-
id
-
getId
The ID of the `fee` 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
-
amount
-
getAmount
The amount of the fee in cents.- Returns:
- amount
-
setAmount
-
currency
-
getCurrency
Get currency- Returns:
- currency
-
setCurrency
-
displayName
-
getDisplayName
The name of the `fee` object that was include in `display_name` when creating the fee.- Returns:
- displayName
-
setDisplayName
-
feeSubtype
-
getFeeSubtype
Subtype of the `fee`.- Returns:
- feeSubtype
-
setFeeSubtype
-
feeType
-
getFeeType
The type of `fee`.- Returns:
- feeType
-
setFeeType
-
linkedId
-
getLinkedId
ID of the linked resource.- Returns:
- linkedId
-
setLinkedId
-
linkedType
-
getLinkedType
The type of entity the `fee` is linked (**null** by default).- Returns:
- linkedType
-
setLinkedType
-
merchant
-
getMerchant
The `Merchant` ID that the fee is being debited from.- Returns:
- merchant
-
setMerchant
-
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 Fee
-
fromJson
Create an instance of Fee given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Fee
- Throws:
IOException- if the JSON string is invalid with respect to Fee
-
toJson
Convert an instance of Fee to an JSON string- Returns:
- JSON string
-