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

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

22 Sep 2023 11:24AM UTC coverage: 12.611%. First build
#2661

push

web-flow
Merge 251f6ff51 into 9e36e9c01

9262 of 9262 new or added lines in 142 files covered. (100.0%)

11033 of 87486 relevant lines covered (12.61%)

0.13 hits per line

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

0.0
/src/main/java/com/adyen/model/marketpayaccount/MigrationData.java
1
/*
2
 * Account API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and verification-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them.  For more information, refer to our [documentation](https://docs.adyen.com/marketplaces-and-platforms/classic). ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, add an `X-API-Key` header with the API key as the value, for example:   ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ```  Alternatively, you can use the username and password to connect to the API using basic authentication. For example:  ``` curl -U \"ws@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` When going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Account API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
4
 *
5
 * The version of the OpenAPI document: 6
6
 * 
7
 *
8
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
 * https://openapi-generator.tech
10
 * Do not edit the class manually.
11
 */
12

13

14
package com.adyen.model.marketpayaccount;
15

16
import java.util.Objects;
17
import java.util.Arrays;
18
import java.util.Map;
19
import java.util.HashMap;
20
import com.adyen.model.marketpayaccount.MigratedAccounts;
21
import com.adyen.model.marketpayaccount.MigratedShareholders;
22
import com.adyen.model.marketpayaccount.MigratedStores;
23
import com.fasterxml.jackson.annotation.JsonInclude;
24
import com.fasterxml.jackson.annotation.JsonProperty;
25
import com.fasterxml.jackson.annotation.JsonCreator;
26
import com.fasterxml.jackson.annotation.JsonTypeName;
27
import com.fasterxml.jackson.annotation.JsonValue;
28
import io.swagger.annotations.ApiModel;
29
import io.swagger.annotations.ApiModelProperty;
30
import java.time.OffsetDateTime;
31
import java.util.ArrayList;
32
import java.util.List;
33
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34
import com.fasterxml.jackson.core.JsonProcessingException;
35

36

37
/**
38
 * MigrationData
39
 */
40
@JsonPropertyOrder({
41
  MigrationData.JSON_PROPERTY_ACCOUNT_HOLDER_ID,
42
  MigrationData.JSON_PROPERTY_BALANCE_PLATFORM,
43
  MigrationData.JSON_PROPERTY_MIGRATED,
44
  MigrationData.JSON_PROPERTY_MIGRATED_ACCOUNTS,
45
  MigrationData.JSON_PROPERTY_MIGRATED_SHAREHOLDERS,
46
  MigrationData.JSON_PROPERTY_MIGRATED_STORES,
47
  MigrationData.JSON_PROPERTY_MIGRATION_DATE
48
})
49

50
public class MigrationData {
51
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID = "accountHolderId";
52
  private String accountHolderId;
53

54
  public static final String JSON_PROPERTY_BALANCE_PLATFORM = "balancePlatform";
55
  private String balancePlatform;
56

57
  public static final String JSON_PROPERTY_MIGRATED = "migrated";
58
  private Boolean migrated;
59

60
  public static final String JSON_PROPERTY_MIGRATED_ACCOUNTS = "migratedAccounts";
61
  private List<MigratedAccounts> migratedAccounts = null;
×
62

63
  public static final String JSON_PROPERTY_MIGRATED_SHAREHOLDERS = "migratedShareholders";
64
  private List<MigratedShareholders> migratedShareholders = null;
×
65

66
  public static final String JSON_PROPERTY_MIGRATED_STORES = "migratedStores";
67
  private List<MigratedStores> migratedStores = null;
×
68

69
  public static final String JSON_PROPERTY_MIGRATION_DATE = "migrationDate";
70
  private OffsetDateTime migrationDate;
71

72
  public MigrationData() { 
×
73
  }
×
74

75
  public MigrationData accountHolderId(String accountHolderId) {
76
    this.accountHolderId = accountHolderId;
×
77
    return this;
×
78
  }
79

80
   /**
81
   * The unique identifier of the account holder in the balance platform.
82
   * @return accountHolderId
83
  **/
84
  @ApiModelProperty(value = "The unique identifier of the account holder in the balance platform.")
85
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID)
86
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
87

88
  public String getAccountHolderId() {
89
    return accountHolderId;
×
90
  }
91

92

93
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_ID)
94
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
95
  public void setAccountHolderId(String accountHolderId) {
96
    this.accountHolderId = accountHolderId;
×
97
  }
×
98

99

100
  public MigrationData balancePlatform(String balancePlatform) {
101
    this.balancePlatform = balancePlatform;
×
102
    return this;
×
103
  }
104

105
   /**
106
   * The unique identifier of the balance platfrom to which the account holder was migrated.
107
   * @return balancePlatform
108
  **/
109
  @ApiModelProperty(value = "The unique identifier of the balance platfrom to which the account holder was migrated.")
110
  @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
111
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
112

113
  public String getBalancePlatform() {
114
    return balancePlatform;
×
115
  }
116

117

118
  @JsonProperty(JSON_PROPERTY_BALANCE_PLATFORM)
119
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
120
  public void setBalancePlatform(String balancePlatform) {
121
    this.balancePlatform = balancePlatform;
×
122
  }
×
123

124

125
  public MigrationData migrated(Boolean migrated) {
126
    this.migrated = migrated;
×
127
    return this;
×
128
  }
129

130
   /**
131
   * Set to **true** if the account holder has been migrated.
132
   * @return migrated
133
  **/
134
  @ApiModelProperty(value = "Set to **true** if the account holder has been migrated.")
135
  @JsonProperty(JSON_PROPERTY_MIGRATED)
136
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
137

138
  public Boolean getMigrated() {
139
    return migrated;
×
140
  }
141

142

143
  @JsonProperty(JSON_PROPERTY_MIGRATED)
144
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
145
  public void setMigrated(Boolean migrated) {
146
    this.migrated = migrated;
×
147
  }
×
148

149

150
  public MigrationData migratedAccounts(List<MigratedAccounts> migratedAccounts) {
151
    this.migratedAccounts = migratedAccounts;
×
152
    return this;
×
153
  }
154

155
  public MigrationData addMigratedAccountsItem(MigratedAccounts migratedAccountsItem) {
156
    if (this.migratedAccounts == null) {
×
157
      this.migratedAccounts = new ArrayList<>();
×
158
    }
159
    this.migratedAccounts.add(migratedAccountsItem);
×
160
    return this;
×
161
  }
162

163
   /**
164
   * Contains the mapping of virtual account codes (classic integration) to the balance account codes (balance platform) associated with the migrated account holder.
165
   * @return migratedAccounts
166
  **/
167
  @ApiModelProperty(value = "Contains the mapping of virtual account codes (classic integration) to the balance account codes (balance platform) associated with the migrated account holder.")
168
  @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNTS)
169
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
170

171
  public List<MigratedAccounts> getMigratedAccounts() {
172
    return migratedAccounts;
×
173
  }
174

175

176
  @JsonProperty(JSON_PROPERTY_MIGRATED_ACCOUNTS)
177
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
178
  public void setMigratedAccounts(List<MigratedAccounts> migratedAccounts) {
179
    this.migratedAccounts = migratedAccounts;
×
180
  }
×
181

182

183
  public MigrationData migratedShareholders(List<MigratedShareholders> migratedShareholders) {
184
    this.migratedShareholders = migratedShareholders;
×
185
    return this;
×
186
  }
187

188
  public MigrationData addMigratedShareholdersItem(MigratedShareholders migratedShareholdersItem) {
189
    if (this.migratedShareholders == null) {
×
190
      this.migratedShareholders = new ArrayList<>();
×
191
    }
192
    this.migratedShareholders.add(migratedShareholdersItem);
×
193
    return this;
×
194
  }
195

196
   /**
197
   * Contains the mapping of shareholders associated with the migrated legal entities.
198
   * @return migratedShareholders
199
  **/
200
  @ApiModelProperty(value = "Contains the mapping of shareholders associated with the migrated legal entities.")
201
  @JsonProperty(JSON_PROPERTY_MIGRATED_SHAREHOLDERS)
202
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
203

204
  public List<MigratedShareholders> getMigratedShareholders() {
205
    return migratedShareholders;
×
206
  }
207

208

209
  @JsonProperty(JSON_PROPERTY_MIGRATED_SHAREHOLDERS)
210
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
211
  public void setMigratedShareholders(List<MigratedShareholders> migratedShareholders) {
212
    this.migratedShareholders = migratedShareholders;
×
213
  }
×
214

215

216
  public MigrationData migratedStores(List<MigratedStores> migratedStores) {
217
    this.migratedStores = migratedStores;
×
218
    return this;
×
219
  }
220

221
  public MigrationData addMigratedStoresItem(MigratedStores migratedStoresItem) {
222
    if (this.migratedStores == null) {
×
223
      this.migratedStores = new ArrayList<>();
×
224
    }
225
    this.migratedStores.add(migratedStoresItem);
×
226
    return this;
×
227
  }
228

229
   /**
230
   * Contains the mapping of business lines and stores associated with the migrated account holder.
231
   * @return migratedStores
232
  **/
233
  @ApiModelProperty(value = "Contains the mapping of business lines and stores associated with the migrated account holder.")
234
  @JsonProperty(JSON_PROPERTY_MIGRATED_STORES)
235
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
236

237
  public List<MigratedStores> getMigratedStores() {
238
    return migratedStores;
×
239
  }
240

241

242
  @JsonProperty(JSON_PROPERTY_MIGRATED_STORES)
243
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
244
  public void setMigratedStores(List<MigratedStores> migratedStores) {
245
    this.migratedStores = migratedStores;
×
246
  }
×
247

248

249
  public MigrationData migrationDate(OffsetDateTime migrationDate) {
250
    this.migrationDate = migrationDate;
×
251
    return this;
×
252
  }
253

254
   /**
255
   * The date when account holder was migrated.
256
   * @return migrationDate
257
  **/
258
  @ApiModelProperty(value = "The date when account holder was migrated.")
259
  @JsonProperty(JSON_PROPERTY_MIGRATION_DATE)
260
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
261

262
  public OffsetDateTime getMigrationDate() {
263
    return migrationDate;
×
264
  }
265

266

267
  @JsonProperty(JSON_PROPERTY_MIGRATION_DATE)
268
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
269
  public void setMigrationDate(OffsetDateTime migrationDate) {
270
    this.migrationDate = migrationDate;
×
271
  }
×
272

273

274
  /**
275
   * Return true if this MigrationData object is equal to o.
276
   */
277
  @Override
278
  public boolean equals(Object o) {
279
    if (this == o) {
×
280
      return true;
×
281
    }
282
    if (o == null || getClass() != o.getClass()) {
×
283
      return false;
×
284
    }
285
    MigrationData migrationData = (MigrationData) o;
×
286
    return Objects.equals(this.accountHolderId, migrationData.accountHolderId) &&
×
287
        Objects.equals(this.balancePlatform, migrationData.balancePlatform) &&
×
288
        Objects.equals(this.migrated, migrationData.migrated) &&
×
289
        Objects.equals(this.migratedAccounts, migrationData.migratedAccounts) &&
×
290
        Objects.equals(this.migratedShareholders, migrationData.migratedShareholders) &&
×
291
        Objects.equals(this.migratedStores, migrationData.migratedStores) &&
×
292
        Objects.equals(this.migrationDate, migrationData.migrationDate);
×
293
  }
294

295
  @Override
296
  public int hashCode() {
297
    return Objects.hash(accountHolderId, balancePlatform, migrated, migratedAccounts, migratedShareholders, migratedStores, migrationDate);
×
298
  }
299

300
  @Override
301
  public String toString() {
302
    StringBuilder sb = new StringBuilder();
×
303
    sb.append("class MigrationData {\n");
×
304
    sb.append("    accountHolderId: ").append(toIndentedString(accountHolderId)).append("\n");
×
305
    sb.append("    balancePlatform: ").append(toIndentedString(balancePlatform)).append("\n");
×
306
    sb.append("    migrated: ").append(toIndentedString(migrated)).append("\n");
×
307
    sb.append("    migratedAccounts: ").append(toIndentedString(migratedAccounts)).append("\n");
×
308
    sb.append("    migratedShareholders: ").append(toIndentedString(migratedShareholders)).append("\n");
×
309
    sb.append("    migratedStores: ").append(toIndentedString(migratedStores)).append("\n");
×
310
    sb.append("    migrationDate: ").append(toIndentedString(migrationDate)).append("\n");
×
311
    sb.append("}");
×
312
    return sb.toString();
×
313
  }
314

315
  /**
316
   * Convert the given object to string with each line indented by 4 spaces
317
   * (except the first line).
318
   */
319
  private String toIndentedString(Object o) {
320
    if (o == null) {
×
321
      return "null";
×
322
    }
323
    return o.toString().replace("\n", "\n    ");
×
324
  }
325

326
/**
327
   * Create an instance of MigrationData given an JSON string
328
   *
329
   * @param jsonString JSON string
330
   * @return An instance of MigrationData
331
   * @throws JsonProcessingException if the JSON string is invalid with respect to MigrationData
332
   */
333
  public static MigrationData fromJson(String jsonString) throws JsonProcessingException {
334
    return JSON.getMapper().readValue(jsonString, MigrationData.class);
×
335
  }
336
/**
337
  * Convert an instance of MigrationData to an JSON string
338
  *
339
  * @return JSON string
340
  */
341
  public String toJson() throws JsonProcessingException {
342
    return JSON.getMapper().writeValueAsString(this);
×
343
  }
344
}
345

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