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.StoreSplitConfiguration;
import com.adyen.model.management.UpdatableAddress;
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;
/**
* UpdateStoreRequest
*/
@JsonPropertyOrder({
UpdateStoreRequest.JSON_PROPERTY_ADDRESS,
UpdateStoreRequest.JSON_PROPERTY_BUSINESS_LINE_IDS,
UpdateStoreRequest.JSON_PROPERTY_DESCRIPTION,
UpdateStoreRequest.JSON_PROPERTY_EXTERNAL_REFERENCE_ID,
UpdateStoreRequest.JSON_PROPERTY_PHONE_NUMBER,
UpdateStoreRequest.JSON_PROPERTY_SPLIT_CONFIGURATION,
UpdateStoreRequest.JSON_PROPERTY_STATUS
})
public class UpdateStoreRequest {
public static final String JSON_PROPERTY_ADDRESS = "address";
private UpdatableAddress 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_PHONE_NUMBER = "phoneNumber";
private String phoneNumber;
public static final String JSON_PROPERTY_SPLIT_CONFIGURATION = "splitConfiguration";
private StoreSplitConfiguration splitConfiguration;
/**
* 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.
*/
public enum StatusEnum {
ACTIVE("active"),
CLOSED("closed"),
INACTIVE("inactive");
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_STATUS = "status";
private StatusEnum status;
public UpdateStoreRequest() {
}
public UpdateStoreRequest address(UpdatableAddress address) {
this.address = address;
return this;
}
/**
* Get address
* @return address
**/
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UpdatableAddress getAddress() {
return address;
}
/**
* address
*
* @param address
*/
@JsonProperty(JSON_PROPERTY_ADDRESS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAddress(UpdatableAddress address) {
this.address = address;
}
public UpdateStoreRequest businessLineIds(List businessLineIds) {
this.businessLineIds = businessLineIds;
return this;
}
public UpdateStoreRequest 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__resParam_id) that the store is associated with.
* @return businessLineIds
**/
@ApiModelProperty(value = "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.")
@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__resParam_id) that the store is associated with.
*
* @param businessLineIds
*/
@JsonProperty(JSON_PROPERTY_BUSINESS_LINE_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBusinessLineIds(List businessLineIds) {
this.businessLineIds = businessLineIds;
}
public UpdateStoreRequest description(String description) {
this.description = description;
return this;
}
/**
* The description of the store.
* @return description
**/
@ApiModelProperty(value = "The description of the store.")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
/**
* The 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 UpdateStoreRequest 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 UpdateStoreRequest 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(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 UpdateStoreRequest 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;
}
public UpdateStoreRequest status(StatusEnum status) {
this.status = status;
return this;
}
/**
* 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.
* @return status
**/
@ApiModelProperty(value = "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.")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StatusEnum getStatus() {
return 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.
*
* @param status
*/
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStatus(StatusEnum status) {
this.status = status;
}
/**
* Return true if this UpdateStoreRequest object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateStoreRequest updateStoreRequest = (UpdateStoreRequest) o;
return Objects.equals(this.address, updateStoreRequest.address) &&
Objects.equals(this.businessLineIds, updateStoreRequest.businessLineIds) &&
Objects.equals(this.description, updateStoreRequest.description) &&
Objects.equals(this.externalReferenceId, updateStoreRequest.externalReferenceId) &&
Objects.equals(this.phoneNumber, updateStoreRequest.phoneNumber) &&
Objects.equals(this.splitConfiguration, updateStoreRequest.splitConfiguration) &&
Objects.equals(this.status, updateStoreRequest.status);
}
@Override
public int hashCode() {
return Objects.hash(address, businessLineIds, description, externalReferenceId, phoneNumber, splitConfiguration, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateStoreRequest {\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(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" splitConfiguration: ").append(toIndentedString(splitConfiguration)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 UpdateStoreRequest given an JSON string
*
* @param jsonString JSON string
* @return An instance of UpdateStoreRequest
* @throws JsonProcessingException if the JSON string is invalid with respect to UpdateStoreRequest
*/
public static UpdateStoreRequest fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, UpdateStoreRequest.class);
}
/**
* Convert an instance of UpdateStoreRequest to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}