Class StoreCreationWithMerchantCodeRequest


  • public class StoreCreationWithMerchantCodeRequest
    extends Object
    StoreCreationWithMerchantCodeRequest
    • Constructor Detail

      • StoreCreationWithMerchantCodeRequest

        public StoreCreationWithMerchantCodeRequest()
    • Method Detail

      • getAddress

        public StoreLocation getAddress()
        Get address
        Returns:
        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)
      • getDescription

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

        public void setDescription​(String description)
      • 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)
      • getMerchantId

        public String getMerchantId()
        The unique identifier of the merchant account that the store belongs to.
        Returns:
        merchantId
      • setMerchantId

        public void setMerchantId​(String merchantId)
      • getPhoneNumber

        public String getPhoneNumber()
        The phone number of the store, including '+' and country code.
        Returns:
        phoneNumber
      • setPhoneNumber

        public void setPhoneNumber​(String 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)
      • 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)
      • getSplitConfiguration

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

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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