Skip to content

Commit e10184a

Browse files
false[adyen-sdk-automation] automated change (#1477)
1 parent fdf7d68 commit e10184a

30 files changed

+2638
-761
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
/*
2+
* Adyen Checkout API
3+
*
4+
* The version of the OpenAPI document: 71
5+
*
6+
*
7+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8+
* https://openapi-generator.tech
9+
* Do not edit the class manually.
10+
*/
11+
12+
13+
package com.adyen.model.checkout;
14+
15+
import java.util.Objects;
16+
import java.util.Map;
17+
import java.util.HashMap;
18+
import com.fasterxml.jackson.annotation.JsonInclude;
19+
import com.fasterxml.jackson.annotation.JsonProperty;
20+
import com.fasterxml.jackson.annotation.JsonCreator;
21+
import com.fasterxml.jackson.annotation.JsonTypeName;
22+
import com.fasterxml.jackson.annotation.JsonValue;
23+
import java.util.Arrays;
24+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
25+
import com.fasterxml.jackson.core.JsonProcessingException;
26+
27+
28+
/**
29+
* Agency
30+
*/
31+
@JsonPropertyOrder({
32+
Agency.JSON_PROPERTY_INVOICE_NUMBER,
33+
Agency.JSON_PROPERTY_PLAN_NAME
34+
})
35+
36+
public class Agency {
37+
public static final String JSON_PROPERTY_INVOICE_NUMBER = "invoiceNumber";
38+
private String invoiceNumber;
39+
40+
public static final String JSON_PROPERTY_PLAN_NAME = "planName";
41+
private String planName;
42+
43+
public Agency() {
44+
}
45+
46+
/**
47+
* The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters
48+
*
49+
* @param invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters
50+
* @return the current {@code Agency} instance, allowing for method chaining
51+
*/
52+
public Agency invoiceNumber(String invoiceNumber) {
53+
this.invoiceNumber = invoiceNumber;
54+
return this;
55+
}
56+
57+
/**
58+
* The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters
59+
* @return invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters
60+
*/
61+
@JsonProperty(JSON_PROPERTY_INVOICE_NUMBER)
62+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
63+
public String getInvoiceNumber() {
64+
return invoiceNumber;
65+
}
66+
67+
/**
68+
* The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters
69+
*
70+
* @param invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters
71+
*/
72+
@JsonProperty(JSON_PROPERTY_INVOICE_NUMBER)
73+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
74+
public void setInvoiceNumber(String invoiceNumber) {
75+
this.invoiceNumber = invoiceNumber;
76+
}
77+
78+
/**
79+
* The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters
80+
*
81+
* @param planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters
82+
* @return the current {@code Agency} instance, allowing for method chaining
83+
*/
84+
public Agency planName(String planName) {
85+
this.planName = planName;
86+
return this;
87+
}
88+
89+
/**
90+
* The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters
91+
* @return planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters
92+
*/
93+
@JsonProperty(JSON_PROPERTY_PLAN_NAME)
94+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
95+
public String getPlanName() {
96+
return planName;
97+
}
98+
99+
/**
100+
* The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters
101+
*
102+
* @param planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters
103+
*/
104+
@JsonProperty(JSON_PROPERTY_PLAN_NAME)
105+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106+
public void setPlanName(String planName) {
107+
this.planName = planName;
108+
}
109+
110+
/**
111+
* Return true if this Agency object is equal to o.
112+
*/
113+
@Override
114+
public boolean equals(Object o) {
115+
if (this == o) {
116+
return true;
117+
}
118+
if (o == null || getClass() != o.getClass()) {
119+
return false;
120+
}
121+
Agency agency = (Agency) o;
122+
return Objects.equals(this.invoiceNumber, agency.invoiceNumber) &&
123+
Objects.equals(this.planName, agency.planName);
124+
}
125+
126+
@Override
127+
public int hashCode() {
128+
return Objects.hash(invoiceNumber, planName);
129+
}
130+
131+
@Override
132+
public String toString() {
133+
StringBuilder sb = new StringBuilder();
134+
sb.append("class Agency {\n");
135+
sb.append(" invoiceNumber: ").append(toIndentedString(invoiceNumber)).append("\n");
136+
sb.append(" planName: ").append(toIndentedString(planName)).append("\n");
137+
sb.append("}");
138+
return sb.toString();
139+
}
140+
141+
/**
142+
* Convert the given object to string with each line indented by 4 spaces
143+
* (except the first line).
144+
*/
145+
private String toIndentedString(Object o) {
146+
if (o == null) {
147+
return "null";
148+
}
149+
return o.toString().replace("\n", "\n ");
150+
}
151+
152+
/**
153+
* Create an instance of Agency given an JSON string
154+
*
155+
* @param jsonString JSON string
156+
* @return An instance of Agency
157+
* @throws JsonProcessingException if the JSON string is invalid with respect to Agency
158+
*/
159+
public static Agency fromJson(String jsonString) throws JsonProcessingException {
160+
return JSON.getMapper().readValue(jsonString, Agency.class);
161+
}
162+
/**
163+
* Convert an instance of Agency to an JSON string
164+
*
165+
* @return JSON string
166+
*/
167+
public String toJson() throws JsonProcessingException {
168+
return JSON.getMapper().writeValueAsString(this);
169+
}
170+
}

0 commit comments

Comments
 (0)