• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Adyen / adyen-java-api-library / #3293

05 Jun 2024 08:52AM UTC coverage: 12.022%. First build
#3293

push

web-flow
Merge 1d78a95d8 into 67f331171

20 of 500 new or added lines in 30 files covered. (4.0%)

12485 of 103853 relevant lines covered (12.02%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java
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.Arrays;
17
import java.util.Map;
18
import java.util.HashMap;
19
import com.adyen.model.checkout.BillingAddress;
20
import com.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * SubMerchantInfo
33
 */
34
@JsonPropertyOrder({
35
  SubMerchantInfo.JSON_PROPERTY_ADDRESS,
36
  SubMerchantInfo.JSON_PROPERTY_ID,
37
  SubMerchantInfo.JSON_PROPERTY_MCC,
38
  SubMerchantInfo.JSON_PROPERTY_NAME,
39
  SubMerchantInfo.JSON_PROPERTY_REGISTERED_SINCE,
40
  SubMerchantInfo.JSON_PROPERTY_TAX_ID
41
})
42

43
public class SubMerchantInfo {
44
  public static final String JSON_PROPERTY_ADDRESS = "address";
45
  private BillingAddress address;
46

47
  public static final String JSON_PROPERTY_ID = "id";
48
  private String id;
49

50
  public static final String JSON_PROPERTY_MCC = "mcc";
51
  private String mcc;
52

53
  public static final String JSON_PROPERTY_NAME = "name";
54
  private String name;
55

56
  public static final String JSON_PROPERTY_REGISTERED_SINCE = "registeredSince";
57
  private String registeredSince;
58

59
  public static final String JSON_PROPERTY_TAX_ID = "taxId";
60
  private String taxId;
61

62
  public SubMerchantInfo() { 
×
63
  }
×
64

65
  public SubMerchantInfo address(BillingAddress address) {
66
    this.address = address;
×
67
    return this;
×
68
  }
69

70
   /**
71
   * Get address
72
   * @return address
73
  **/
74
  @ApiModelProperty(value = "")
75
  @JsonProperty(JSON_PROPERTY_ADDRESS)
76
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
77

78
  public BillingAddress getAddress() {
79
    return address;
×
80
  }
81

82

83
 /**
84
  * address
85
  *
86
  * @param address
87
  */ 
88
  @JsonProperty(JSON_PROPERTY_ADDRESS)
89
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
90
  public void setAddress(BillingAddress address) {
91
    this.address = address;
×
92
  }
×
93

94

95
  public SubMerchantInfo id(String id) {
96
    this.id = id;
×
97
    return this;
×
98
  }
99

100
   /**
101
   * Get id
102
   * @return id
103
  **/
104
  @ApiModelProperty(value = "")
105
  @JsonProperty(JSON_PROPERTY_ID)
106
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
107

108
  public String getId() {
109
    return id;
×
110
  }
111

112

113
 /**
114
  * id
115
  *
116
  * @param id
117
  */ 
118
  @JsonProperty(JSON_PROPERTY_ID)
119
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
120
  public void setId(String id) {
121
    this.id = id;
×
122
  }
×
123

124

125
  public SubMerchantInfo mcc(String mcc) {
126
    this.mcc = mcc;
×
127
    return this;
×
128
  }
129

130
   /**
131
   * Get mcc
132
   * @return mcc
133
  **/
134
  @ApiModelProperty(value = "")
135
  @JsonProperty(JSON_PROPERTY_MCC)
136
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
137

138
  public String getMcc() {
139
    return mcc;
×
140
  }
141

142

143
 /**
144
  * mcc
145
  *
146
  * @param mcc
147
  */ 
148
  @JsonProperty(JSON_PROPERTY_MCC)
149
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
150
  public void setMcc(String mcc) {
151
    this.mcc = mcc;
×
152
  }
×
153

154

155
  public SubMerchantInfo name(String name) {
156
    this.name = name;
×
157
    return this;
×
158
  }
159

160
   /**
161
   * Get name
162
   * @return name
163
  **/
164
  @ApiModelProperty(value = "")
165
  @JsonProperty(JSON_PROPERTY_NAME)
166
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
167

168
  public String getName() {
169
    return name;
×
170
  }
171

172

173
 /**
174
  * name
175
  *
176
  * @param name
177
  */ 
178
  @JsonProperty(JSON_PROPERTY_NAME)
179
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
180
  public void setName(String name) {
181
    this.name = name;
×
182
  }
×
183

184

185
  public SubMerchantInfo registeredSince(String registeredSince) {
NEW
186
    this.registeredSince = registeredSince;
×
NEW
187
    return this;
×
188
  }
189

190
   /**
191
   * Get registeredSince
192
   * @return registeredSince
193
  **/
194
  @ApiModelProperty(value = "")
195
  @JsonProperty(JSON_PROPERTY_REGISTERED_SINCE)
196
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
197

198
  public String getRegisteredSince() {
NEW
199
    return registeredSince;
×
200
  }
201

202

203
 /**
204
  * registeredSince
205
  *
206
  * @param registeredSince
207
  */ 
208
  @JsonProperty(JSON_PROPERTY_REGISTERED_SINCE)
209
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
210
  public void setRegisteredSince(String registeredSince) {
NEW
211
    this.registeredSince = registeredSince;
×
NEW
212
  }
×
213

214

215
  public SubMerchantInfo taxId(String taxId) {
216
    this.taxId = taxId;
×
217
    return this;
×
218
  }
219

220
   /**
221
   * Get taxId
222
   * @return taxId
223
  **/
224
  @ApiModelProperty(value = "")
225
  @JsonProperty(JSON_PROPERTY_TAX_ID)
226
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
227

228
  public String getTaxId() {
229
    return taxId;
×
230
  }
231

232

233
 /**
234
  * taxId
235
  *
236
  * @param taxId
237
  */ 
238
  @JsonProperty(JSON_PROPERTY_TAX_ID)
239
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
240
  public void setTaxId(String taxId) {
241
    this.taxId = taxId;
×
242
  }
×
243

244

245
  /**
246
   * Return true if this SubMerchantInfo object is equal to o.
247
   */
248
  @Override
249
  public boolean equals(Object o) {
250
    if (this == o) {
×
251
      return true;
×
252
    }
253
    if (o == null || getClass() != o.getClass()) {
×
254
      return false;
×
255
    }
256
    SubMerchantInfo subMerchantInfo = (SubMerchantInfo) o;
×
257
    return Objects.equals(this.address, subMerchantInfo.address) &&
×
258
        Objects.equals(this.id, subMerchantInfo.id) &&
×
259
        Objects.equals(this.mcc, subMerchantInfo.mcc) &&
×
260
        Objects.equals(this.name, subMerchantInfo.name) &&
×
NEW
261
        Objects.equals(this.registeredSince, subMerchantInfo.registeredSince) &&
×
262
        Objects.equals(this.taxId, subMerchantInfo.taxId);
×
263
  }
264

265
  @Override
266
  public int hashCode() {
NEW
267
    return Objects.hash(address, id, mcc, name, registeredSince, taxId);
×
268
  }
269

270
  @Override
271
  public String toString() {
272
    StringBuilder sb = new StringBuilder();
×
273
    sb.append("class SubMerchantInfo {\n");
×
274
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
×
275
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
×
276
    sb.append("    mcc: ").append(toIndentedString(mcc)).append("\n");
×
277
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
×
NEW
278
    sb.append("    registeredSince: ").append(toIndentedString(registeredSince)).append("\n");
×
279
    sb.append("    taxId: ").append(toIndentedString(taxId)).append("\n");
×
280
    sb.append("}");
×
281
    return sb.toString();
×
282
  }
283

284
  /**
285
   * Convert the given object to string with each line indented by 4 spaces
286
   * (except the first line).
287
   */
288
  private String toIndentedString(Object o) {
289
    if (o == null) {
×
290
      return "null";
×
291
    }
292
    return o.toString().replace("\n", "\n    ");
×
293
  }
294

295
/**
296
   * Create an instance of SubMerchantInfo given an JSON string
297
   *
298
   * @param jsonString JSON string
299
   * @return An instance of SubMerchantInfo
300
   * @throws JsonProcessingException if the JSON string is invalid with respect to SubMerchantInfo
301
   */
302
  public static SubMerchantInfo fromJson(String jsonString) throws JsonProcessingException {
303
    return JSON.getMapper().readValue(jsonString, SubMerchantInfo.class);
×
304
  }
305
/**
306
  * Convert an instance of SubMerchantInfo to an JSON string
307
  *
308
  * @return JSON string
309
  */
310
  public String toJson() throws JsonProcessingException {
311
    return JSON.getMapper().writeValueAsString(this);
×
312
  }
313
}
314

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc