Skip to content

Commit 7a36ac3

Browse files
authored
Generate BinLookupApi service with OpenAPI Generator v7.11.0 (#1465)
* Generate BinLookup * Deprecate old BinLookupApi * Correct comment
1 parent 0a355d1 commit 7a36ac3

17 files changed

+448
-419
lines changed

src/main/java/com/adyen/model/binlookup/AbstractOpenApiSchema.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
package com.adyen.model.binlookup;
1414

1515
import java.util.Objects;
16-
import java.lang.reflect.Type;
1716
import java.util.Map;
1817
import jakarta.ws.rs.core.GenericType;
1918

@@ -22,7 +21,6 @@
2221
/**
2322
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
2423
*/
25-
2624
public abstract class AbstractOpenApiSchema {
2725

2826
// store the actual instance of the schema/object
@@ -34,6 +32,11 @@ public abstract class AbstractOpenApiSchema {
3432
// schema type (e.g. oneOf, anyOf)
3533
private final String schemaType;
3634

35+
/**
36+
*
37+
* @param schemaType the schema type
38+
* @param isNullable whether the instance is nullable
39+
*/
3740
public AbstractOpenApiSchema(String schemaType, Boolean isNullable) {
3841
this.schemaType = schemaType;
3942
this.isNullable = isNullable;
@@ -44,7 +47,7 @@ public AbstractOpenApiSchema(String schemaType, Boolean isNullable) {
4447
*
4548
* @return an instance of the actual schema/object
4649
*/
47-
public abstract Map<String, GenericType> getSchemas();
50+
public abstract Map<String, GenericType<?>> getSchemas();
4851

4952
/**
5053
* Get the actual instance
@@ -144,4 +147,4 @@ public Boolean isNullable() {
144147

145148

146149

147-
}
150+
}

src/main/java/com/adyen/model/binlookup/Amount.java

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
package com.adyen.model.binlookup;
1414

1515
import java.util.Objects;
16-
import java.util.Arrays;
1716
import java.util.Map;
1817
import java.util.HashMap;
1918
import com.fasterxml.jackson.annotation.JsonInclude;
2019
import com.fasterxml.jackson.annotation.JsonProperty;
2120
import com.fasterxml.jackson.annotation.JsonCreator;
2221
import com.fasterxml.jackson.annotation.JsonTypeName;
2322
import com.fasterxml.jackson.annotation.JsonValue;
24-
import io.swagger.annotations.ApiModel;
25-
import io.swagger.annotations.ApiModelProperty;
23+
import java.util.Arrays;
2624
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
2725
import com.fasterxml.jackson.core.JsonProcessingException;
2826

@@ -48,7 +46,7 @@ public Amount() {
4846
/**
4947
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
5048
*
51-
* @param currency
49+
* @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
5250
* @return the current {@code Amount} instance, allowing for method chaining
5351
*/
5452
public Amount currency(String currency) {
@@ -58,9 +56,8 @@ public Amount currency(String currency) {
5856

5957
/**
6058
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
61-
* @return currency
59+
* @return currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
6260
*/
63-
@ApiModelProperty(required = true, value = "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).")
6461
@JsonProperty(JSON_PROPERTY_CURRENCY)
6562
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
6663
public String getCurrency() {
@@ -70,8 +67,8 @@ public String getCurrency() {
7067
/**
7168
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
7269
*
73-
* @param currency
74-
*/
70+
* @param currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
71+
*/
7572
@JsonProperty(JSON_PROPERTY_CURRENCY)
7673
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
7774
public void setCurrency(String currency) {
@@ -81,7 +78,7 @@ public void setCurrency(String currency) {
8178
/**
8279
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
8380
*
84-
* @param value
81+
* @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
8582
* @return the current {@code Amount} instance, allowing for method chaining
8683
*/
8784
public Amount value(Long value) {
@@ -91,9 +88,8 @@ public Amount value(Long value) {
9188

9289
/**
9390
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
94-
* @return value
91+
* @return value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
9592
*/
96-
@ApiModelProperty(required = true, value = "The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).")
9793
@JsonProperty(JSON_PROPERTY_VALUE)
9894
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
9995
public Long getValue() {
@@ -103,8 +99,8 @@ public Long getValue() {
10399
/**
104100
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
105101
*
106-
* @param value
107-
*/
102+
* @param value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
103+
*/
108104
@JsonProperty(JSON_PROPERTY_VALUE)
109105
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
110106
public void setValue(Long value) {

src/main/java/com/adyen/model/binlookup/BinDetail.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
package com.adyen.model.binlookup;
1414

1515
import java.util.Objects;
16-
import java.util.Arrays;
1716
import java.util.Map;
1817
import java.util.HashMap;
1918
import com.fasterxml.jackson.annotation.JsonInclude;
2019
import com.fasterxml.jackson.annotation.JsonProperty;
2120
import com.fasterxml.jackson.annotation.JsonCreator;
2221
import com.fasterxml.jackson.annotation.JsonTypeName;
2322
import com.fasterxml.jackson.annotation.JsonValue;
24-
import io.swagger.annotations.ApiModel;
25-
import io.swagger.annotations.ApiModelProperty;
23+
import java.util.Arrays;
2624
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
2725
import com.fasterxml.jackson.core.JsonProcessingException;
2826

@@ -44,7 +42,7 @@ public BinDetail() {
4442
/**
4543
* The country where the card was issued.
4644
*
47-
* @param issuerCountry
45+
* @param issuerCountry The country where the card was issued.
4846
* @return the current {@code BinDetail} instance, allowing for method chaining
4947
*/
5048
public BinDetail issuerCountry(String issuerCountry) {
@@ -54,9 +52,8 @@ public BinDetail issuerCountry(String issuerCountry) {
5452

5553
/**
5654
* The country where the card was issued.
57-
* @return issuerCountry
55+
* @return issuerCountry The country where the card was issued.
5856
*/
59-
@ApiModelProperty(value = "The country where the card was issued.")
6057
@JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY)
6158
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
6259
public String getIssuerCountry() {
@@ -66,8 +63,8 @@ public String getIssuerCountry() {
6663
/**
6764
* The country where the card was issued.
6865
*
69-
* @param issuerCountry
70-
*/
66+
* @param issuerCountry The country where the card was issued.
67+
*/
7168
@JsonProperty(JSON_PROPERTY_ISSUER_COUNTRY)
7269
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
7370
public void setIssuerCountry(String issuerCountry) {

0 commit comments

Comments
 (0)