Package model
Class Fee
- java.lang.Object
-
- model.Fee
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Fee extends Object
An out of flow `fee` that is added to a `settlement`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFee.CustomTypeAdapterFactorystatic classFee.FeeSubtypeEnumSubtype of the `fee`.static classFee.FeeTypeEnumThe type of `fee`.static classFee.LinkedTypeEnumThe type of entity the `fee` is linked to (**null** by default).
-
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_DISPLAY_NAMEstatic StringSERIALIZED_NAME_FEE_SUBTYPEstatic StringSERIALIZED_NAME_FEE_TYPEstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LABELstatic StringSERIALIZED_NAME_LINKED_IDstatic StringSERIALIZED_NAME_LINKED_TYPEstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_MERCHANTstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description Fee()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Feeamount(Long amount)FeecreatedAt(OffsetDateTime createdAt)Feecurrency(Currency currency)FeedisplayName(String displayName)booleanequals(Object o)FeefeeSubtype(Fee.FeeSubtypeEnum feeSubtype)FeefeeType(Fee.FeeTypeEnum feeType)static FeefromJson(String jsonString)Create an instance of Fee given an JSON stringLonggetAmount()The amount of the fee in cents.OffsetDateTimegetCreatedAt()Timestamp of when the object was created.CurrencygetCurrency()Get currencyStringgetDisplayName()The name of the `fee` object that was include in `display_name` when creating the fee.Fee.FeeSubtypeEnumgetFeeSubtype()Subtype of the `fee`.Fee.FeeTypeEnumgetFeeType()The type of `fee`.StringgetId()The ID of the `fee` resource.StringgetLabel()The name of the `fee` object that was include in `label` when creating the fee.StringgetLinkedId()ID of the linked resource.Fee.LinkedTypeEnumgetLinkedType()The type of entity the `fee` is linked to (**null** by default).FeeLinksgetLinks()Get linksStringgetMerchant()The `Merchant` ID that the fee is being debited from.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.OffsetDateTimegetUpdatedAt()Timestamp of when the object was last updated.inthashCode()Feeid(String id)Feelabel(String label)FeelinkedId(String linkedId)FeelinkedType(Fee.LinkedTypeEnum linkedType)Feelinks(FeeLinks links)Feemerchant(String merchant)FeeputTagsItem(String key, String tagsItem)voidsetAmount(Long amount)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCurrency(Currency currency)voidsetDisplayName(String displayName)voidsetFeeSubtype(Fee.FeeSubtypeEnum feeSubtype)voidsetFeeType(Fee.FeeTypeEnum feeType)voidsetId(String id)voidsetLabel(String label)voidsetLinkedId(String linkedId)voidsetLinkedType(Fee.LinkedTypeEnum linkedType)voidsetLinks(FeeLinks links)voidsetMerchant(String merchant)voidsetTags(Map<String,String> tags)voidsetUpdatedAt(OffsetDateTime updatedAt)Feetags(Map<String,String> tags)StringtoJson()Convert an instance of Fee to an JSON stringStringtoString()FeeupdatedAt(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_DISPLAY_NAME
public static final String SERIALIZED_NAME_DISPLAY_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FEE_SUBTYPE
public static final String SERIALIZED_NAME_FEE_SUBTYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FEE_TYPE
public static final String SERIALIZED_NAME_FEE_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LABEL
public static final String SERIALIZED_NAME_LABEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKED_ID
public static final String SERIALIZED_NAME_LINKED_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINKED_TYPE
public static final String SERIALIZED_NAME_LINKED_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT
public static final String SERIALIZED_NAME_MERCHANT
- 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
-
setId
public void setId(String id)
-
createdAt
public Fee 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 Fee updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
Timestamp of when the object was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
setAmount
public void setAmount(Long amount)
-
setCurrency
public void setCurrency(Currency currency)
-
getDisplayName
@Nullable public String getDisplayName()
The name of the `fee` object that was include in `display_name` when creating the fee.- Returns:
- displayName
-
setDisplayName
public void setDisplayName(String displayName)
-
feeSubtype
public Fee feeSubtype(Fee.FeeSubtypeEnum feeSubtype)
-
getFeeSubtype
@Nullable public Fee.FeeSubtypeEnum getFeeSubtype()
Subtype of the `fee`.- Returns:
- feeSubtype
-
setFeeSubtype
public void setFeeSubtype(Fee.FeeSubtypeEnum feeSubtype)
-
feeType
public Fee feeType(Fee.FeeTypeEnum feeType)
-
getFeeType
@Nullable public Fee.FeeTypeEnum getFeeType()
The type of `fee`.- Returns:
- feeType
-
setFeeType
public void setFeeType(Fee.FeeTypeEnum feeType)
-
getLabel
@Nullable public String getLabel()
The name of the `fee` object that was include in `label` when creating the fee.- Returns:
- label
-
setLabel
public void setLabel(String label)
-
setLinkedId
public void setLinkedId(String linkedId)
-
linkedType
public Fee linkedType(Fee.LinkedTypeEnum linkedType)
-
getLinkedType
@Nullable public Fee.LinkedTypeEnum getLinkedType()
The type of entity the `fee` is linked to (**null** by default).- Returns:
- linkedType
-
setLinkedType
public void setLinkedType(Fee.LinkedTypeEnum linkedType)
-
getMerchant
@Nullable public String getMerchant()
The `Merchant` ID that the fee is being debited from.- Returns:
- merchant
-
setMerchant
public void setMerchant(String merchant)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setLinks
public void setLinks(FeeLinks 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 Fee
-
fromJson
public static Fee fromJson(String jsonString) throws IOException
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
public String toJson()
Convert an instance of Fee to an JSON string- Returns:
- JSON string
-
-