Package com.adyen.model.management
Class StoreCreationRequest
- java.lang.Object
-
- com.adyen.model.management.StoreCreationRequest
-
public class StoreCreationRequest extends Object
StoreCreationRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESSstatic StringJSON_PROPERTY_BUSINESS_LINE_IDSstatic StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_EXTERNAL_REFERENCE_IDstatic StringJSON_PROPERTY_PHONE_NUMBERstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_SHOPPER_STATEMENTstatic StringJSON_PROPERTY_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)Return true if this StoreCreationRequest object is equal to 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#responses-200-id) that the store is associated with.StringgetDescription()Your description of the store.StringgetExternalReferenceId()Used by certain payment methods and tax authorities to uniquely identify the 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()
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS
public static final String JSON_PROPERTY_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BUSINESS_LINE_IDS
public static final String JSON_PROPERTY_BUSINESS_LINE_IDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXTERNAL_REFERENCE_ID
public static final String JSON_PROPERTY_EXTERNAL_REFERENCE_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PHONE_NUMBER
public static final String JSON_PROPERTY_PHONE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHOPPER_STATEMENT
public static final String JSON_PROPERTY_SHOPPER_STATEMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SPLIT_CONFIGURATION
public static final String JSON_PROPERTY_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#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 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()
Used by certain payment methods and tax authorities to uniquely identify the store. For CNPJ in Brazil, ZIP in Australia and SIRET in France. This field is conditionally required if the store is in Brazil, Australia or France. For CNPJ the format is 00.000.000/0000-00, can be submitted as just digits, or with dots, slash & hyphen. For Australian stores ZIP an optional field used by the Zip payment method. For SIRET the format is 14 digits.- 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 (_). 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 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)
-
equals
public boolean equals(Object o)
Return true if this StoreCreationRequest object is equal to o.
-
fromJson
public static StoreCreationRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StoreCreationRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoreCreationRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StoreCreationRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StoreCreationRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-