Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Management API
*
* The version of the OpenAPI document: 3
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.adyen.model.management;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.adyen.model.management.StoreLocation;
import com.adyen.model.management.StoreSplitConfiguration;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
/**
* StoreCreationWithMerchantCodeRequest
*/
@JsonPropertyOrder({
StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_ADDRESS,
StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_BUSINESS_LINE_IDS,
StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_DESCRIPTION,
StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_EXTERNAL_REFERENCE_ID,
StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_MERCHANT_ID,
StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_PHONE_NUMBER,
StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_REFERENCE,
StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_SHOPPER_STATEMENT,
StoreCreationWithMerchantCodeRequest.JSON_PROPERTY_SPLIT_CONFIGURATION
})
public class StoreCreationWithMerchantCodeRequest {
public static final String JSON_PROPERTY_ADDRESS = "address";
private StoreLocation address;
public static final String JSON_PROPERTY_BUSINESS_LINE_IDS = "businessLineIds";
private List businessLineIds = null;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
public static final String JSON_PROPERTY_EXTERNAL_REFERENCE_ID = "externalReferenceId";
private String externalReferenceId;
public static final String JSON_PROPERTY_MERCHANT_ID = "merchantId";
private String merchantId;
public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber";
private String phoneNumber;
public static final String JSON_PROPERTY_REFERENCE = "reference";
private String reference;
public static final String JSON_PROPERTY_SHOPPER_STATEMENT = "shopperStatement";
private String shopperStatement;
public static final String JSON_PROPERTY_SPLIT_CONFIGURATION = "splitConfiguration";
private StoreSplitConfiguration splitConfiguration;
public StoreCreationWithMerchantCodeRequest() {
}
public StoreCreationWithMerchantCodeRequest address(StoreLocation address) {
this.address = address;
return this;
}
/**
* Get address
* @return address
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StoreLocation getAddress() {
return address;
}
/**
* address
*
* @param address
*/
@JsonProperty(JSON_PROPERTY_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAddress(StoreLocation address) {
this.address = address;
}
public StoreCreationWithMerchantCodeRequest businessLineIds(List businessLineIds) {
this.businessLineIds = businessLineIds;
return this;
}
public StoreCreationWithMerchantCodeRequest addBusinessLineIdsItem(String businessLineIdsItem) {
if (this.businessLineIds == null) {
this.businessLineIds = new ArrayList<>();
}
this.businessLineIds.add(businessLineIdsItem);
return this;
}
/**
* 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.
* @return businessLineIds
**/
@ApiModelProperty(value = "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.")
@JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getBusinessLineIds() {
return 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.
*
* @param businessLineIds
*/
@JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBusinessLineIds(List businessLineIds) {
this.businessLineIds = businessLineIds;
}
public StoreCreationWithMerchantCodeRequest description(String description) {
this.description = description;
return this;
}
/**
* Your description of the store.
* @return description
**/
@ApiModelProperty(required = true, value = "Your description of the store.")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
/**
* Your description of the store.
*
* @param description
*/
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDescription(String description) {
this.description = description;
}
public StoreCreationWithMerchantCodeRequest externalReferenceId(String externalReferenceId) {
this.externalReferenceId = externalReferenceId;
return this;
}
/**
* 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.
* @return externalReferenceId
**/
@ApiModelProperty(value = "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. ")
@JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getExternalReferenceId() {
return 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.
*
* @param externalReferenceId
*/
@JsonProperty(JSON_PROPERTY_EXTERNAL_REFERENCE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExternalReferenceId(String externalReferenceId) {
this.externalReferenceId = externalReferenceId;
}
public StoreCreationWithMerchantCodeRequest merchantId(String merchantId) {
this.merchantId = merchantId;
return this;
}
/**
* The unique identifier of the merchant account that the store belongs to.
* @return merchantId
**/
@ApiModelProperty(required = true, value = "The unique identifier of the merchant account that the store belongs to.")
@JsonProperty(JSON_PROPERTY_MERCHANT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMerchantId() {
return merchantId;
}
/**
* The unique identifier of the merchant account that the store belongs to.
*
* @param merchantId
*/
@JsonProperty(JSON_PROPERTY_MERCHANT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMerchantId(String merchantId) {
this.merchantId = merchantId;
}
public StoreCreationWithMerchantCodeRequest phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
/**
* 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.
* @return phoneNumber
**/
@ApiModelProperty(required = true, value = "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. ")
@JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPhoneNumber() {
return 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.
*
* @param phoneNumber
*/
@JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public StoreCreationWithMerchantCodeRequest reference(String reference) {
this.reference = reference;
return this;
}
/**
* 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).
* @return reference
**/
@ApiModelProperty(value = "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).")
@JsonProperty(JSON_PROPERTY_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getReference() {
return 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).
*
* @param reference
*/
@JsonProperty(JSON_PROPERTY_REFERENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReference(String reference) {
this.reference = reference;
}
public StoreCreationWithMerchantCodeRequest shopperStatement(String shopperStatement) {
this.shopperStatement = shopperStatement;
return this;
}
/**
* 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.
* @return shopperStatement
**/
@ApiModelProperty(required = true, value = "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.")
@JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getShopperStatement() {
return 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.
*
* @param shopperStatement
*/
@JsonProperty(JSON_PROPERTY_SHOPPER_STATEMENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setShopperStatement(String shopperStatement) {
this.shopperStatement = shopperStatement;
}
public StoreCreationWithMerchantCodeRequest splitConfiguration(StoreSplitConfiguration splitConfiguration) {
this.splitConfiguration = splitConfiguration;
return this;
}
/**
* Get splitConfiguration
* @return splitConfiguration
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StoreSplitConfiguration getSplitConfiguration() {
return splitConfiguration;
}
/**
* splitConfiguration
*
* @param splitConfiguration
*/
@JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSplitConfiguration(StoreSplitConfiguration splitConfiguration) {
this.splitConfiguration = splitConfiguration;
}
/**
* Return true if this StoreCreationWithMerchantCodeRequest object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StoreCreationWithMerchantCodeRequest storeCreationWithMerchantCodeRequest = (StoreCreationWithMerchantCodeRequest) o;
return Objects.equals(this.address, storeCreationWithMerchantCodeRequest.address) &&
Objects.equals(this.businessLineIds, storeCreationWithMerchantCodeRequest.businessLineIds) &&
Objects.equals(this.description, storeCreationWithMerchantCodeRequest.description) &&
Objects.equals(this.externalReferenceId, storeCreationWithMerchantCodeRequest.externalReferenceId) &&
Objects.equals(this.merchantId, storeCreationWithMerchantCodeRequest.merchantId) &&
Objects.equals(this.phoneNumber, storeCreationWithMerchantCodeRequest.phoneNumber) &&
Objects.equals(this.reference, storeCreationWithMerchantCodeRequest.reference) &&
Objects.equals(this.shopperStatement, storeCreationWithMerchantCodeRequest.shopperStatement) &&
Objects.equals(this.splitConfiguration, storeCreationWithMerchantCodeRequest.splitConfiguration);
}
@Override
public int hashCode() {
return Objects.hash(address, businessLineIds, description, externalReferenceId, merchantId, phoneNumber, reference, shopperStatement, splitConfiguration);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StoreCreationWithMerchantCodeRequest {\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" businessLineIds: ").append(toIndentedString(businessLineIds)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" externalReferenceId: ").append(toIndentedString(externalReferenceId)).append("\n");
sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
sb.append(" shopperStatement: ").append(toIndentedString(shopperStatement)).append("\n");
sb.append(" splitConfiguration: ").append(toIndentedString(splitConfiguration)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Create an instance of StoreCreationWithMerchantCodeRequest given an JSON string
*
* @param jsonString JSON string
* @return An instance of StoreCreationWithMerchantCodeRequest
* @throws JsonProcessingException if the JSON string is invalid with respect to StoreCreationWithMerchantCodeRequest
*/
public static StoreCreationWithMerchantCodeRequest fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, StoreCreationWithMerchantCodeRequest.class);
}
/**
* Convert an instance of StoreCreationWithMerchantCodeRequest to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}