Package model
Class CreateSettlementRequest
- java.lang.Object
-
- model.CreateSettlementRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateSettlementRequest extends Object
CreateSettlementRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateSettlementRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CURRENCYstatic StringSERIALIZED_NAME_MERCHANT_IDstatic StringSERIALIZED_NAME_PROCESSORstatic StringSERIALIZED_NAME_TAGS
-
Constructor Summary
Constructors Constructor Description CreateSettlementRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSettlementRequestcurrency(Currency currency)booleanequals(Object o)static CreateSettlementRequestfromJson(String jsonString)Create an instance of CreateSettlementRequest given an JSON stringCurrencygetCurrency()Get currencyStringgetMerchantId()If the `Application` has more than one associated `processor`, this field is required.StringgetProcessor()If the `Application` has more than one associated `processor`, it's required when creating `settlements` to include the `processor` (e.g.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.inthashCode()CreateSettlementRequestmerchantId(String merchantId)CreateSettlementRequestprocessor(String processor)CreateSettlementRequestputTagsItem(String key, String tagsItem)voidsetCurrency(Currency currency)voidsetMerchantId(String merchantId)voidsetProcessor(String processor)voidsetTags(Map<String,String> tags)CreateSettlementRequesttags(Map<String,String> tags)StringtoJson()Convert an instance of CreateSettlementRequest 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_CURRENCY
public static final String SERIALIZED_NAME_CURRENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ID
public static final String SERIALIZED_NAME_MERCHANT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROCESSOR
public static final String SERIALIZED_NAME_PROCESSOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
currency
public CreateSettlementRequest currency(Currency currency)
-
setCurrency
public void setCurrency(Currency currency)
-
merchantId
public CreateSettlementRequest merchantId(String merchantId)
-
getMerchantId
@Nullable public String getMerchantId()
If the `Application` has more than one associated `processor`, this field is required.- Returns:
- merchantId
-
setMerchantId
public void setMerchantId(String merchantId)
-
processor
public CreateSettlementRequest processor(String processor)
-
getProcessor
@Nullable public String getProcessor()
If the `Application` has more than one associated `processor`, it's required when creating `settlements` to include the `processor` (e.g. **DUMMY_V1**).- Returns:
- processor
-
setProcessor
public void setProcessor(String processor)
-
tags
public CreateSettlementRequest tags(Map<String,String> tags)
-
putTagsItem
public CreateSettlementRequest 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 CreateSettlementRequest
-
fromJson
public static CreateSettlementRequest fromJson(String jsonString) throws IOException
Create an instance of CreateSettlementRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateSettlementRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateSettlementRequest
-
toJson
public String toJson()
Convert an instance of CreateSettlementRequest to an JSON string- Returns:
- JSON string
-
-