Package model
Class CreateFeeRequest
- java.lang.Object
-
- model.CreateFeeRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateFeeRequest extends Object
CreateFeeRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateFeeRequest.CustomTypeAdapterFactorystatic classCreateFeeRequest.FeeSubtypeEnumSubtype of the fee.static classCreateFeeRequest.FeeTypeEnumThe type of the fee.static classCreateFeeRequest.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_CURRENCYstatic StringSERIALIZED_NAME_FEE_SUBTYPEstatic StringSERIALIZED_NAME_FEE_TYPEstatic StringSERIALIZED_NAME_LABELstatic StringSERIALIZED_NAME_LINKED_IDstatic StringSERIALIZED_NAME_LINKED_TYPEstatic StringSERIALIZED_NAME_MERCHANT_IDstatic StringSERIALIZED_NAME_SETTLEMENT_DELAY_DAYSstatic StringSERIALIZED_NAME_TAGS
-
Constructor Summary
Constructors Constructor Description CreateFeeRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateFeeRequestamount(Long amount)CreateFeeRequestcurrency(Currency currency)booleanequals(Object o)CreateFeeRequestfeeSubtype(CreateFeeRequest.FeeSubtypeEnum feeSubtype)CreateFeeRequestfeeType(CreateFeeRequest.FeeTypeEnum feeType)static CreateFeeRequestfromJson(String jsonString)Create an instance of CreateFeeRequest given an JSON stringLonggetAmount()The total amount that will be debited in cents (e.g.CurrencygetCurrency()Get currencyCreateFeeRequest.FeeSubtypeEnumgetFeeSubtype()Subtype of the fee.CreateFeeRequest.FeeTypeEnumgetFeeType()The type of the fee.StringgetLabel()The display name of the `Fee` that can be used for filtering purposes.StringgetLinkedId()ID of the linked resourceCreateFeeRequest.LinkedTypeEnumgetLinkedType()The type of entity the fee is linked to (**null** by default).StringgetMerchantId()The ID of the resource.LonggetSettlementDelayDays()Delays in days, when the fee will be submitted for settlement.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.inthashCode()CreateFeeRequestlabel(String label)CreateFeeRequestlinkedId(String linkedId)CreateFeeRequestlinkedType(CreateFeeRequest.LinkedTypeEnum linkedType)CreateFeeRequestmerchantId(String merchantId)CreateFeeRequestputTagsItem(String key, String tagsItem)voidsetAmount(Long amount)voidsetCurrency(Currency currency)voidsetFeeSubtype(CreateFeeRequest.FeeSubtypeEnum feeSubtype)voidsetFeeType(CreateFeeRequest.FeeTypeEnum feeType)voidsetLabel(String label)voidsetLinkedId(String linkedId)voidsetLinkedType(CreateFeeRequest.LinkedTypeEnum linkedType)voidsetMerchantId(String merchantId)voidsetSettlementDelayDays(Long settlementDelayDays)voidsetTags(Map<String,String> tags)CreateFeeRequestsettlementDelayDays(Long settlementDelayDays)CreateFeeRequesttags(Map<String,String> tags)StringtoJson()Convert an instance of CreateFeeRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
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_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_ID
public static final String SERIALIZED_NAME_MERCHANT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SETTLEMENT_DELAY_DAYS
public static final String SERIALIZED_NAME_SETTLEMENT_DELAY_DAYS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public CreateFeeRequest amount(Long amount)
-
getAmount
@Nonnull 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 CreateFeeRequest currency(Currency currency)
-
setCurrency
public void setCurrency(Currency currency)
-
feeSubtype
public CreateFeeRequest feeSubtype(CreateFeeRequest.FeeSubtypeEnum feeSubtype)
-
getFeeSubtype
@Nonnull public CreateFeeRequest.FeeSubtypeEnum getFeeSubtype()
Subtype of the fee. Set to **CUSTOM**.- Returns:
- feeSubtype
-
setFeeSubtype
public void setFeeSubtype(CreateFeeRequest.FeeSubtypeEnum feeSubtype)
-
feeType
public CreateFeeRequest feeType(CreateFeeRequest.FeeTypeEnum feeType)
-
getFeeType
@Nonnull public CreateFeeRequest.FeeTypeEnum getFeeType()
The type of the fee. Must be set to **CUSTOM**.- Returns:
- feeType
-
setFeeType
public void setFeeType(CreateFeeRequest.FeeTypeEnum feeType)
-
label
public CreateFeeRequest label(String label)
-
getLabel
@Nullable public String getLabel()
The display name of the `Fee` that can be used for filtering purposes.- Returns:
- label
-
setLabel
public void setLabel(String label)
-
linkedId
public CreateFeeRequest linkedId(String linkedId)
-
setLinkedId
public void setLinkedId(String linkedId)
-
linkedType
public CreateFeeRequest linkedType(CreateFeeRequest.LinkedTypeEnum linkedType)
-
getLinkedType
@Nullable public CreateFeeRequest.LinkedTypeEnum getLinkedType()
The type of entity the fee is linked to (**null** by default).- Returns:
- linkedType
-
setLinkedType
public void setLinkedType(CreateFeeRequest.LinkedTypeEnum linkedType)
-
merchantId
public CreateFeeRequest merchantId(String merchantId)
-
setMerchantId
public void setMerchantId(String merchantId)
-
settlementDelayDays
public CreateFeeRequest settlementDelayDays(Long settlementDelayDays)
-
getSettlementDelayDays
@Nullable public Long getSettlementDelayDays()
Delays in days, when the fee will be submitted for settlement.- Returns:
- settlementDelayDays
-
setSettlementDelayDays
public void setSettlementDelayDays(Long settlementDelayDays)
-
tags
public CreateFeeRequest tags(Map<String,String> tags)
-
putTagsItem
public CreateFeeRequest 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
-
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 CreateFeeRequest
-
fromJson
public static CreateFeeRequest fromJson(String jsonString) throws IOException
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
public String toJson()
Convert an instance of CreateFeeRequest to an JSON string- Returns:
- JSON string
-
-