Package com.adyen.model.management
Class StoreCreationRequest
- java.lang.Object
-
- com.adyen.model.management.StoreCreationRequest
-
public class StoreCreationRequest extends Object
StoreCreationRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoreCreationRequest.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_PHONE_NUMBERstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_SHOPPER_STATEMENTstatic StringSERIALIZED_NAME_SPLIT_CONFIGURATION
-
Constructor Summary
Constructors Constructor Description StoreCreationRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreCreationRequestaddBusinessLineIdsItem(String businessLineIdsItem)StoreCreationRequestaddress(StoreLocation address)StoreCreationRequestbusinessLineIds(List<String> businessLineIds)StoreCreationRequestdescription(String description)booleanequals(Object o)StoreCreationRequestexternalReferenceId(String externalReferenceId)static StoreCreationRequestfromJson(String jsonString)Create an instance of StoreCreationRequest 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__resParam_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.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()StoreCreationRequestphoneNumber(String phoneNumber)StoreCreationRequestreference(String reference)voidsetAddress(StoreLocation address)voidsetBusinessLineIds(List<String> businessLineIds)voidsetDescription(String description)voidsetExternalReferenceId(String externalReferenceId)voidsetPhoneNumber(String phoneNumber)voidsetReference(String reference)voidsetShopperStatement(String shopperStatement)voidsetSplitConfiguration(StoreSplitConfiguration splitConfiguration)StoreCreationRequestshopperStatement(String shopperStatement)StoreCreationRequestsplitConfiguration(StoreSplitConfiguration splitConfiguration)StringtoJson()Convert an instance of StoreCreationRequest 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_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 StoreCreationRequest address(StoreLocation address)
-
getAddress
public StoreLocation getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(StoreLocation address)
-
businessLineIds
public StoreCreationRequest businessLineIds(List<String> businessLineIds)
-
addBusinessLineIdsItem
public StoreCreationRequest 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__resParam_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 StoreCreationRequest description(String description)
-
getDescription
public String getDescription()
Your description of the store.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
externalReferenceId
public StoreCreationRequest 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)
-
phoneNumber
public StoreCreationRequest 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 StoreCreationRequest 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 (_).- Returns:
- reference
-
setReference
public void setReference(String reference)
-
shopperStatement
public StoreCreationRequest 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 StoreCreationRequest 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 StoreCreationRequest
-
fromJson
public static StoreCreationRequest fromJson(String jsonString) throws IOException
Create an instance of StoreCreationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoreCreationRequest
- Throws:
IOException- if the JSON string is invalid with respect to StoreCreationRequest
-
toJson
public String toJson()
Convert an instance of StoreCreationRequest to an JSON string- Returns:
- JSON string
-
-