Package model
Class CreateFeeRequest
java.lang.Object
model.CreateFeeRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class CreateFeeRequest
extends Object
CreateFeeRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumSubtype of the fee.static enumThe type of entity the fee is linked to (**null** by default). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisplayName(String displayName) booleanfeeSubtype(CreateFeeRequest.FeeSubtypeEnum feeSubtype) static CreateFeeRequestCreate an instance of CreateFeeRequest given an JSON stringThe total amount that will be debited in cents (e.g.Get currencyThe display name of the `Fee` that can be used for filtering purposes.Subtype of the fee.Get feeTypeID of the linked resourceThe type of entity the fee is linked to (**null** by default).The ID of the resource.getTags()Key value pair for annotating custom meta data (e.g.inthashCode()linkedType(CreateFeeRequest.LinkedTypeEnum linkedType) putTagsItem(String key, String tagsItem) voidvoidsetCurrency(Currency currency) voidsetDisplayName(String displayName) voidsetFeeSubtype(CreateFeeRequest.FeeSubtypeEnum feeSubtype) voidsetFeeType(FeeType feeType) voidsetLinkedId(String linkedId) voidsetLinkedType(CreateFeeRequest.LinkedTypeEnum linkedType) voidsetMerchant(String merchant) voidtoJson()Convert an instance of CreateFeeRequest to an JSON stringtoString()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_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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateFeeRequest
public CreateFeeRequest()
-
-
Method Details
-
tags
-
putTagsItem
-
getTags
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setTags
-
amount
-
getAmount
The total amount that will be debited in cents (e.g. 100 cents to debit $1.00).- Returns:
- amount
-
setAmount
-
currency
-
getCurrency
Get currency- Returns:
- currency
-
setCurrency
-
displayName
-
getDisplayName
The display name of the `Fee` that can be used for filtering purposes.- Returns:
- displayName
-
setDisplayName
-
feeSubtype
-
getFeeSubtype
Subtype of the fee. Set to **CUSTOM**.- Returns:
- feeSubtype
-
setFeeSubtype
-
feeType
-
getFeeType
Get feeType- Returns:
- feeType
-
setFeeType
-
linkedId
-
getLinkedId
ID of the linked resource- Returns:
- linkedId
-
setLinkedId
-
linkedType
-
getLinkedType
The type of entity the fee is linked to (**null** by default).- Returns:
- linkedType
-
setLinkedType
-
merchant
-
getMerchant
The ID of the resource.- Returns:
- merchant
-
setMerchant
-
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 CreateFeeRequest
-
fromJson
Create an instance of CreateFeeRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateFeeRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateFeeRequest
-
toJson
Convert an instance of CreateFeeRequest to an JSON string- Returns:
- JSON string
-