Package com.adyen.model.management
Class StoreCreationWithMerchantCodeRequest
- java.lang.Object
-
- com.adyen.model.management.StoreCreationWithMerchantCodeRequest
-
public class StoreCreationWithMerchantCodeRequest extends Object
StoreCreationWithMerchantCodeRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoreCreationWithMerchantCodeRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_BUSINESS_LINE_IDSstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_EXTERNAL_REFERENCE_IDstatic StringSERIALIZED_NAME_MERCHANT_IDstatic StringSERIALIZED_NAME_PHONE_NUMBERstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_SHOPPER_STATEMENTstatic StringSERIALIZED_NAME_SPLIT_CONFIGURATION
-
Constructor Summary
Constructors Constructor Description StoreCreationWithMerchantCodeRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreCreationWithMerchantCodeRequestaddBusinessLineIdsItem(String businessLineIdsItem)StoreCreationWithMerchantCodeRequestaddress(StoreLocation address)StoreCreationWithMerchantCodeRequestbusinessLineIds(List<String> businessLineIds)StoreCreationWithMerchantCodeRequestdescription(String description)booleanequals(Object o)StoreCreationWithMerchantCodeRequestexternalReferenceId(String externalReferenceId)static StoreCreationWithMerchantCodeRequestfromJson(String jsonString)Create an instance of StoreCreationWithMerchantCodeRequest given an JSON stringStoreLocationgetAddress()Get addressList<String>getBusinessLineIds()The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with.StringgetDescription()Your description of the store.StringgetExternalReferenceId()When using the Zip payment method: The location ID that Zip has assigned to your store.StringgetMerchantId()The unique identifier of the merchant account that the store belongs to.StringgetPhoneNumber()The phone number of the store, including '+' and country code.StringgetReference()Your reference to recognize the store by.StringgetShopperStatement()The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt.StoreSplitConfigurationgetSplitConfiguration()Get splitConfigurationinthashCode()StoreCreationWithMerchantCodeRequestmerchantId(String merchantId)StoreCreationWithMerchantCodeRequestphoneNumber(String phoneNumber)StoreCreationWithMerchantCodeRequestreference(String reference)voidsetAddress(StoreLocation address)voidsetBusinessLineIds(List<String> businessLineIds)voidsetDescription(String description)voidsetExternalReferenceId(String externalReferenceId)voidsetMerchantId(String merchantId)voidsetPhoneNumber(String phoneNumber)voidsetReference(String reference)voidsetShopperStatement(String shopperStatement)voidsetSplitConfiguration(StoreSplitConfiguration splitConfiguration)StoreCreationWithMerchantCodeRequestshopperStatement(String shopperStatement)StoreCreationWithMerchantCodeRequestsplitConfiguration(StoreSplitConfiguration splitConfiguration)StringtoJson()Convert an instance of StoreCreationWithMerchantCodeRequest 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_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUSINESS_LINE_IDS
public static final String SERIALIZED_NAME_BUSINESS_LINE_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXTERNAL_REFERENCE_ID
public static final String SERIALIZED_NAME_EXTERNAL_REFERENCE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ID
public static final String SERIALIZED_NAME_MERCHANT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PHONE_NUMBER
public static final String SERIALIZED_NAME_PHONE_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOPPER_STATEMENT
public static final String SERIALIZED_NAME_SHOPPER_STATEMENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SPLIT_CONFIGURATION
public static final String SERIALIZED_NAME_SPLIT_CONFIGURATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public StoreCreationWithMerchantCodeRequest address(StoreLocation address)
-
getAddress
public StoreLocation getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(StoreLocation address)
-
businessLineIds
public StoreCreationWithMerchantCodeRequest businessLineIds(List<String> businessLineIds)
-
addBusinessLineIdsItem
public StoreCreationWithMerchantCodeRequest addBusinessLineIdsItem(String businessLineIdsItem)
-
getBusinessLineIds
public List<String> getBusinessLineIds()
The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account.- Returns:
- businessLineIds
-
description
public StoreCreationWithMerchantCodeRequest description(String description)
-
getDescription
public String getDescription()
Your description of the store.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
externalReferenceId
public StoreCreationWithMerchantCodeRequest externalReferenceId(String externalReferenceId)
-
getExternalReferenceId
public String getExternalReferenceId()
When using the Zip payment method: The location ID that Zip has assigned to your store.- Returns:
- externalReferenceId
-
setExternalReferenceId
public void setExternalReferenceId(String externalReferenceId)
-
merchantId
public StoreCreationWithMerchantCodeRequest merchantId(String merchantId)
-
getMerchantId
public String getMerchantId()
The unique identifier of the merchant account that the store belongs to.- Returns:
- merchantId
-
setMerchantId
public void setMerchantId(String merchantId)
-
phoneNumber
public StoreCreationWithMerchantCodeRequest phoneNumber(String phoneNumber)
-
getPhoneNumber
public String getPhoneNumber()
The phone number of the store, including '+' and country code.- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber)
-
reference
public StoreCreationWithMerchantCodeRequest reference(String reference)
-
getReference
public String getReference()
Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id).- Returns:
- reference
-
setReference
public void setReference(String reference)
-
shopperStatement
public StoreCreationWithMerchantCodeRequest shopperStatement(String shopperStatement)
-
getShopperStatement
public String getShopperStatement()
The store name to be shown on the shopper's bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can't be all numbers.- Returns:
- shopperStatement
-
setShopperStatement
public void setShopperStatement(String shopperStatement)
-
splitConfiguration
public StoreCreationWithMerchantCodeRequest splitConfiguration(StoreSplitConfiguration splitConfiguration)
-
getSplitConfiguration
public StoreSplitConfiguration getSplitConfiguration()
Get splitConfiguration- Returns:
- splitConfiguration
-
setSplitConfiguration
public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration)
-
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 StoreCreationWithMerchantCodeRequest
-
fromJson
public static StoreCreationWithMerchantCodeRequest fromJson(String jsonString) throws IOException
Create an instance of StoreCreationWithMerchantCodeRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoreCreationWithMerchantCodeRequest
- Throws:
IOException- if the JSON string is invalid with respect to StoreCreationWithMerchantCodeRequest
-
toJson
public String toJson()
Convert an instance of StoreCreationWithMerchantCodeRequest to an JSON string- Returns:
- JSON string
-
-