Class StoreCreationRequest


  • public class StoreCreationRequest
    extends Object
    StoreCreationRequest
    • Constructor Detail

      • StoreCreationRequest

        public StoreCreationRequest()
    • Method Detail

      • getAddress

        public StoreLocation getAddress()
        Get address
        Returns:
        address
      • setAddress

        public void setAddress​(StoreLocation address)
        address
        Parameters:
        address -
      • 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
      • setBusinessLineIds

        public void setBusinessLineIds​(List<String> businessLineIds)
        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.
        Parameters:
        businessLineIds -
      • getDescription

        public String getDescription()
        Your description of the store.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        Your description of the store.
        Parameters:
        description -
      • getExternalReferenceId

        public String getExternalReferenceId()
        The unique identifier of the store, used by certain payment methods and tax authorities. Accepts up to 14 digits. Required for CNPJ in Brazil, in the format 00.000.000/00git00-00 separated by dots, slashes, hyphens, or without separators. Optional for Zip in Australia and SIRET in France, required except for nonprofit organizations and incorporated associations.
        Returns:
        externalReferenceId
      • setExternalReferenceId

        public void setExternalReferenceId​(String externalReferenceId)
        The unique identifier of the store, used by certain payment methods and tax authorities. Accepts up to 14 digits. Required for CNPJ in Brazil, in the format 00.000.000/00git00-00 separated by dots, slashes, hyphens, or without separators. Optional for Zip in Australia and SIRET in France, required except for nonprofit organizations and incorporated associations.
        Parameters:
        externalReferenceId -
      • 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 -
      • 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)
        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).
        Parameters:
        reference -
      • 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)
        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.
        Parameters:
        shopperStatement -
      • getSplitConfiguration

        public StoreSplitConfiguration getSplitConfiguration()
        Get splitConfiguration
        Returns:
        splitConfiguration
      • setSplitConfiguration

        public void setSplitConfiguration​(StoreSplitConfiguration splitConfiguration)
        splitConfiguration
        Parameters:
        splitConfiguration -
      • equals

        public boolean equals​(Object o)
        Return true if this StoreCreationRequest object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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