Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -215,11 +215,15 @@ public void setIpAddress(String ipAddress) {
/**
* The language used for the Terms of Service document, specified by the two-letter [ISO
* 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value:
* **en** for English.
* **en** for English or **fr** for French. Note that French is only available for some
* integration types in certain countries/regions. Reach out to your Adyen contact for more
* information.
*
* @param language The language used for the Terms of Service document, specified by the
* two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language
* code. Possible value: **en** for English.
* code. Possible value: **en** for English or **fr** for French. Note that French is only
* available for some integration types in certain countries/regions. Reach out to your Adyen
* contact for more information.
* @return the current {@code AcceptTermsOfServiceResponse} instance, allowing for method chaining
*/
public AcceptTermsOfServiceResponse language(String language) {
Expand All @@ -230,11 +234,15 @@ public AcceptTermsOfServiceResponse language(String language) {
/**
* The language used for the Terms of Service document, specified by the two-letter [ISO
* 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value:
* **en** for English.
* **en** for English or **fr** for French. Note that French is only available for some
* integration types in certain countries/regions. Reach out to your Adyen contact for more
* information.
*
* @return language The language used for the Terms of Service document, specified by the
* two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language
* code. Possible value: **en** for English.
* code. Possible value: **en** for English or **fr** for French. Note that French is only
* available for some integration types in certain countries/regions. Reach out to your Adyen
* contact for more information.
*/
@JsonProperty(JSON_PROPERTY_LANGUAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -245,11 +253,15 @@ public String getLanguage() {
/**
* The language used for the Terms of Service document, specified by the two-letter [ISO
* 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value:
* **en** for English.
* **en** for English or **fr** for French. Note that French is only available for some
* integration types in certain countries/regions. Reach out to your Adyen contact for more
* information.
*
* @param language The language used for the Terms of Service document, specified by the
* two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language
* code. Possible value: **en** for English.
* code. Possible value: **en** for English or **fr** for French. Note that French is only
* available for some integration types in certain countries/regions. Reach out to your Adyen
* contact for more information.
*/
@JsonProperty(JSON_PROPERTY_LANGUAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
119 changes: 11 additions & 108 deletions src/main/java/com/adyen/model/legalentitymanagement/BusinessLine.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Legal Entity Management API
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -25,7 +25,6 @@

/** BusinessLine */
@JsonPropertyOrder({
BusinessLine.JSON_PROPERTY_CAPABILITY,
BusinessLine.JSON_PROPERTY_ID,
BusinessLine.JSON_PROPERTY_INDUSTRY_CODE,
BusinessLine.JSON_PROPERTY_LEGAL_ENTITY_ID,
Expand All @@ -37,56 +36,6 @@
BusinessLine.JSON_PROPERTY_WEB_DATA_EXEMPTION
})
public class BusinessLine {
/**
* The capability for which you are creating the business line. Possible values:
* **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount**
*/
public enum CapabilityEnum {
RECEIVEPAYMENTS(String.valueOf("receivePayments")),

RECEIVEFROMPLATFORMPAYMENTS(String.valueOf("receiveFromPlatformPayments")),

ISSUEBANKACCOUNT(String.valueOf("issueBankAccount"));

private static final Logger LOG = Logger.getLogger(CapabilityEnum.class.getName());

private String value;

CapabilityEnum(String value) {
this.value = value;
}

@JsonValue
public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

@JsonCreator
public static CapabilityEnum fromValue(String value) {
for (CapabilityEnum b : CapabilityEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
// handling unexpected value
LOG.warning(
"CapabilityEnum: unexpected enum value '"
+ value
+ "' - Supported values are "
+ Arrays.toString(CapabilityEnum.values()));
return null;
}
}

public static final String JSON_PROPERTY_CAPABILITY = "capability";
@Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead.
private CapabilityEnum capability;

public static final String JSON_PROPERTY_ID = "id";
private String id;

Expand All @@ -104,11 +53,13 @@ public static CapabilityEnum fromValue(String value) {

/**
* The service for which you are creating the business line. Possible values: *
* **paymentProcessing** * **banking**
* **paymentProcessing** * **issuing** * **banking**
*/
public enum ServiceEnum {
PAYMENTPROCESSING(String.valueOf("paymentProcessing")),

ISSUING(String.valueOf("issuing")),

BANKING(String.valueOf("banking"));

private static final Logger LOG = Logger.getLogger(ServiceEnum.class.getName());
Expand Down Expand Up @@ -166,51 +117,6 @@ public BusinessLine(@JsonProperty(JSON_PROPERTY_ID) String id) {
this.id = id;
}

/**
* The capability for which you are creating the business line. Possible values:
* **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount**
*
* @param capability The capability for which you are creating the business line. Possible values:
* **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount**
* @return the current {@code BusinessLine} instance, allowing for method chaining
* @deprecated since Legal Entity Management API v3 Use `service` instead.
*/
@Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead.
public BusinessLine capability(CapabilityEnum capability) {
this.capability = capability;
return this;
}

/**
* The capability for which you are creating the business line. Possible values:
* **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount**
*
* @return capability The capability for which you are creating the business line. Possible
* values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount**
* @deprecated // deprecated since Legal Entity Management API v3: Use `service` instead.
*/
@Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead.
@JsonProperty(JSON_PROPERTY_CAPABILITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CapabilityEnum getCapability() {
return capability;
}

/**
* The capability for which you are creating the business line. Possible values:
* **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount**
*
* @param capability The capability for which you are creating the business line. Possible values:
* **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount**
* @deprecated since Legal Entity Management API v3 Use `service` instead.
*/
@Deprecated // deprecated since Legal Entity Management API v3: Use `service` instead.
@JsonProperty(JSON_PROPERTY_CAPABILITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCapability(CapabilityEnum capability) {
this.capability = capability;
}

/**
* The unique identifier of the business line.
*
Expand Down Expand Up @@ -420,10 +326,10 @@ public void setSalesChannels(List<String> salesChannels) {

/**
* The service for which you are creating the business line. Possible values: *
* **paymentProcessing** * **banking**
* **paymentProcessing** * **issuing** * **banking**
*
* @param service The service for which you are creating the business line. Possible values: *
* **paymentProcessing** * **banking**
* **paymentProcessing** * **issuing** * **banking**
* @return the current {@code BusinessLine} instance, allowing for method chaining
*/
public BusinessLine service(ServiceEnum service) {
Expand All @@ -433,10 +339,10 @@ public BusinessLine service(ServiceEnum service) {

/**
* The service for which you are creating the business line. Possible values: *
* **paymentProcessing** * **banking**
* **paymentProcessing** * **issuing** * **banking**
*
* @return service The service for which you are creating the business line. Possible values: *
* **paymentProcessing** * **banking**
* **paymentProcessing** * **issuing** * **banking**
*/
@JsonProperty(JSON_PROPERTY_SERVICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -446,10 +352,10 @@ public ServiceEnum getService() {

/**
* The service for which you are creating the business line. Possible values: *
* **paymentProcessing** * **banking**
* **paymentProcessing** * **issuing** * **banking**
*
* @param service The service for which you are creating the business line. Possible values: *
* **paymentProcessing** * **banking**
* **paymentProcessing** * **issuing** * **banking**
*/
@JsonProperty(JSON_PROPERTY_SERVICE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down Expand Up @@ -586,8 +492,7 @@ public boolean equals(Object o) {
return false;
}
BusinessLine businessLine = (BusinessLine) o;
return Objects.equals(this.capability, businessLine.capability)
&& Objects.equals(this.id, businessLine.id)
return Objects.equals(this.id, businessLine.id)
&& Objects.equals(this.industryCode, businessLine.industryCode)
&& Objects.equals(this.legalEntityId, businessLine.legalEntityId)
&& Objects.equals(this.problems, businessLine.problems)
Expand All @@ -601,7 +506,6 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
capability,
id,
industryCode,
legalEntityId,
Expand All @@ -617,7 +521,6 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BusinessLine {\n");
sb.append(" capability: ").append(toIndentedString(capability)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" industryCode: ").append(toIndentedString(industryCode)).append("\n");
sb.append(" legalEntityId: ").append(toIndentedString(legalEntityId)).append("\n");
Expand Down
Loading