Package com.adyen.model.management
Class UpdateStoreRequest
- java.lang.Object
-
- com.adyen.model.management.UpdateStoreRequest
-
public class UpdateStoreRequest extends Object
UpdateStoreRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateStoreRequest.StatusEnumThe status of the store.
-
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_SPLIT_CONFIGURATIONstatic StringJSON_PROPERTY_STATUS
-
Constructor Summary
Constructors Constructor Description UpdateStoreRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateStoreRequestaddBusinessLineIdsItem(String businessLineIdsItem)UpdateStoreRequestaddress(UpdatableAddress address)UpdateStoreRequestbusinessLineIds(List<String> businessLineIds)UpdateStoreRequestdescription(String description)booleanequals(Object o)Return true if this UpdateStoreRequest object is equal to o.UpdateStoreRequestexternalReferenceId(String externalReferenceId)static UpdateStoreRequestfromJson(String jsonString)Create an instance of UpdateStoreRequest given an JSON stringUpdatableAddressgetAddress()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()The description of the store.StringgetExternalReferenceId()The unique identifier of the store, used by certain payment methods and tax authorities.StringgetPhoneNumber()The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format.StoreSplitConfigurationgetSplitConfiguration()Get splitConfigurationUpdateStoreRequest.StatusEnumgetStatus()The status of the store.inthashCode()UpdateStoreRequestphoneNumber(String phoneNumber)voidsetAddress(UpdatableAddress address)addressvoidsetBusinessLineIds(List<String> businessLineIds)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.voidsetDescription(String description)The description of the store.voidsetExternalReferenceId(String externalReferenceId)The unique identifier of the store, used by certain payment methods and tax authorities.voidsetPhoneNumber(String phoneNumber)The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format.voidsetSplitConfiguration(StoreSplitConfiguration splitConfiguration)splitConfigurationvoidsetStatus(UpdateStoreRequest.StatusEnum status)The status of the store.UpdateStoreRequestsplitConfiguration(StoreSplitConfiguration splitConfiguration)UpdateStoreRequeststatus(UpdateStoreRequest.StatusEnum status)StringtoJson()Convert an instance of UpdateStoreRequest 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_SPLIT_CONFIGURATION
public static final String JSON_PROPERTY_SPLIT_CONFIGURATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public UpdateStoreRequest address(UpdatableAddress address)
-
getAddress
public UpdatableAddress getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(UpdatableAddress address)
address- Parameters:
address-
-
businessLineIds
public UpdateStoreRequest businessLineIds(List<String> businessLineIds)
-
addBusinessLineIdsItem
public UpdateStoreRequest 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.- Returns:
- businessLineIds
-
setBusinessLineIds
public void setBusinessLineIds(List<String> businessLineIds)
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.- Parameters:
businessLineIds-
-
description
public UpdateStoreRequest description(String description)
-
getDescription
public String getDescription()
The description of the store.- Returns:
- description
-
setDescription
public void setDescription(String description)
The description of the store.- Parameters:
description-
-
externalReferenceId
public UpdateStoreRequest externalReferenceId(String externalReferenceId)
-
getExternalReferenceId
public String getExternalReferenceId()
The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits.- Returns:
- externalReferenceId
-
setExternalReferenceId
public void setExternalReferenceId(String externalReferenceId)
The unique identifier of the store, used by certain payment methods and tax authorities. Required for CNPJ in Brazil, in the format 00.000.000/0000-00 separated by dots, slashes, hyphens, or without separators. Optional for SIRET in France, up to 14 digits. Optional for Zip in Australia, up to 50 digits.- Parameters:
externalReferenceId-
-
phoneNumber
public UpdateStoreRequest phoneNumber(String phoneNumber)
-
getPhoneNumber
public String getPhoneNumber()
The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164.- Returns:
- phoneNumber
-
setPhoneNumber
public void setPhoneNumber(String phoneNumber)
The phone number of the store, including '+' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164.- Parameters:
phoneNumber-
-
splitConfiguration
public UpdateStoreRequest splitConfiguration(StoreSplitConfiguration splitConfiguration)
-
getSplitConfiguration
public StoreSplitConfiguration getSplitConfiguration()
Get splitConfiguration- Returns:
- splitConfiguration
-
setSplitConfiguration
public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration)
splitConfiguration- Parameters:
splitConfiguration-
-
status
public UpdateStoreRequest status(UpdateStoreRequest.StatusEnum status)
-
getStatus
public UpdateStoreRequest.StatusEnum getStatus()
The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened.- Returns:
- status
-
setStatus
public void setStatus(UpdateStoreRequest.StatusEnum status)
The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can't process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can't be reopened.- Parameters:
status-
-
equals
public boolean equals(Object o)
Return true if this UpdateStoreRequest object is equal to o.
-
fromJson
public static UpdateStoreRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of UpdateStoreRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateStoreRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to UpdateStoreRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of UpdateStoreRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-