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

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

16 Oct 2023 09:08AM CUT coverage: 12.568%. First build
#2703

push

web-flow
Merge 5bb3765b7 into fe719ccb3

6014 of 6014 new or added lines in 86 files covered. (100.0%)

11852 of 94302 relevant lines covered (12.57%)

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/marketpaywebhooks/StoreDetail.java
1
/*
2
 * Classic Platforms - Notifications
3
 *
4
 * The version of the OpenAPI document: 6
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.marketpaywebhooks;
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.marketpaywebhooks.ViasAddress;
20
import com.adyen.model.marketpaywebhooks.ViasPhoneNumber;
21
import com.fasterxml.jackson.annotation.JsonInclude;
22
import com.fasterxml.jackson.annotation.JsonProperty;
23
import com.fasterxml.jackson.annotation.JsonCreator;
24
import com.fasterxml.jackson.annotation.JsonTypeName;
25
import com.fasterxml.jackson.annotation.JsonValue;
26
import io.swagger.annotations.ApiModel;
27
import io.swagger.annotations.ApiModelProperty;
28
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
import com.fasterxml.jackson.core.JsonProcessingException;
30

31

32
/**
33
 * StoreDetail
34
 */
35
@JsonPropertyOrder({
36
  StoreDetail.JSON_PROPERTY_ADDRESS,
37
  StoreDetail.JSON_PROPERTY_FULL_PHONE_NUMBER,
38
  StoreDetail.JSON_PROPERTY_LOGO,
39
  StoreDetail.JSON_PROPERTY_MERCHANT_ACCOUNT,
40
  StoreDetail.JSON_PROPERTY_MERCHANT_CATEGORY_CODE,
41
  StoreDetail.JSON_PROPERTY_MERCHANT_HOUSE_NUMBER,
42
  StoreDetail.JSON_PROPERTY_PHONE_NUMBER,
43
  StoreDetail.JSON_PROPERTY_SHOPPER_INTERACTION,
44
  StoreDetail.JSON_PROPERTY_SPLIT_CONFIGURATION_U_U_I_D,
45
  StoreDetail.JSON_PROPERTY_STATUS,
46
  StoreDetail.JSON_PROPERTY_STORE,
47
  StoreDetail.JSON_PROPERTY_STORE_NAME,
48
  StoreDetail.JSON_PROPERTY_STORE_REFERENCE,
49
  StoreDetail.JSON_PROPERTY_VIRTUAL_ACCOUNT,
50
  StoreDetail.JSON_PROPERTY_WEB_ADDRESS
51
})
52

53
public class StoreDetail {
54
  public static final String JSON_PROPERTY_ADDRESS = "address";
55
  private ViasAddress address;
56

57
  public static final String JSON_PROPERTY_FULL_PHONE_NUMBER = "fullPhoneNumber";
58
  private String fullPhoneNumber;
59

60
  public static final String JSON_PROPERTY_LOGO = "logo";
61
  private String logo;
62

63
  public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount";
64
  private String merchantAccount;
65

66
  public static final String JSON_PROPERTY_MERCHANT_CATEGORY_CODE = "merchantCategoryCode";
67
  private String merchantCategoryCode;
68

69
  public static final String JSON_PROPERTY_MERCHANT_HOUSE_NUMBER = "merchantHouseNumber";
70
  private String merchantHouseNumber;
71

72
  public static final String JSON_PROPERTY_PHONE_NUMBER = "phoneNumber";
73
  private ViasPhoneNumber phoneNumber;
74

75
  /**
76
   * The sales channel. Possible values: **Ecommerce**, **POS**.
77
   */
78
  public enum ShopperInteractionEnum {
×
79
    ECOMMERCE("Ecommerce"),
×
80
    
81
    POS("POS");
×
82

83
    private String value;
84

85
    ShopperInteractionEnum(String value) {
×
86
      this.value = value;
×
87
    }
×
88

89
    @JsonValue
90
    public String getValue() {
91
      return value;
×
92
    }
93

94
    @Override
95
    public String toString() {
96
      return String.valueOf(value);
×
97
    }
98

99
    @JsonCreator
100
    public static ShopperInteractionEnum fromValue(String value) {
101
      for (ShopperInteractionEnum b : ShopperInteractionEnum.values()) {
×
102
        if (b.value.equals(value)) {
×
103
          return b;
×
104
        }
105
      }
106
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
107
    }
108
  }
109

110
  public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction";
111
  private ShopperInteractionEnum shopperInteraction;
112

113
  public static final String JSON_PROPERTY_SPLIT_CONFIGURATION_U_U_I_D = "splitConfigurationUUID";
114
  private String splitConfigurationUUID;
115

116
  /**
117
   * The status of the store. Possible values: **Pending**, **Active**, **Inactive**, **InactiveWithModifications**, **Closed**.
118
   */
119
  public enum StatusEnum {
×
120
    ACTIVE("Active"),
×
121
    
122
    CLOSED("Closed"),
×
123
    
124
    INACTIVE("Inactive"),
×
125
    
126
    INACTIVEWITHMODIFICATIONS("InactiveWithModifications"),
×
127
    
128
    PENDING("Pending");
×
129

130
    private String value;
131

132
    StatusEnum(String value) {
×
133
      this.value = value;
×
134
    }
×
135

136
    @JsonValue
137
    public String getValue() {
138
      return value;
×
139
    }
140

141
    @Override
142
    public String toString() {
143
      return String.valueOf(value);
×
144
    }
145

146
    @JsonCreator
147
    public static StatusEnum fromValue(String value) {
148
      for (StatusEnum b : StatusEnum.values()) {
×
149
        if (b.value.equals(value)) {
×
150
          return b;
×
151
        }
152
      }
153
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
154
    }
155
  }
156

157
  public static final String JSON_PROPERTY_STATUS = "status";
158
  private StatusEnum status;
159

160
  public static final String JSON_PROPERTY_STORE = "store";
161
  private String store;
162

163
  public static final String JSON_PROPERTY_STORE_NAME = "storeName";
164
  private String storeName;
165

166
  public static final String JSON_PROPERTY_STORE_REFERENCE = "storeReference";
167
  private String storeReference;
168

169
  public static final String JSON_PROPERTY_VIRTUAL_ACCOUNT = "virtualAccount";
170
  private String virtualAccount;
171

172
  public static final String JSON_PROPERTY_WEB_ADDRESS = "webAddress";
173
  private String webAddress;
174

175
  public StoreDetail() { 
×
176
  }
×
177

178
  public StoreDetail address(ViasAddress address) {
179
    this.address = address;
×
180
    return this;
×
181
  }
182

183
   /**
184
   * Get address
185
   * @return address
186
  **/
187
  @ApiModelProperty(required = true, value = "")
188
  @JsonProperty(JSON_PROPERTY_ADDRESS)
189
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
190

191
  public ViasAddress getAddress() {
192
    return address;
×
193
  }
194

195

196
  @JsonProperty(JSON_PROPERTY_ADDRESS)
197
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
198
  public void setAddress(ViasAddress address) {
199
    this.address = address;
×
200
  }
×
201

202

203
  public StoreDetail fullPhoneNumber(String fullPhoneNumber) {
204
    this.fullPhoneNumber = fullPhoneNumber;
×
205
    return this;
×
206
  }
207

208
   /**
209
   * The phone number of the store provided as a single string.  It will be handled as a landline phone.  Examples: \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"
210
   * @return fullPhoneNumber
211
  **/
212
  @ApiModelProperty(value = "The phone number of the store provided as a single string.  It will be handled as a landline phone.  Examples: \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"")
213
  @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
214
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
215

216
  public String getFullPhoneNumber() {
217
    return fullPhoneNumber;
×
218
  }
219

220

221
  @JsonProperty(JSON_PROPERTY_FULL_PHONE_NUMBER)
222
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
223
  public void setFullPhoneNumber(String fullPhoneNumber) {
224
    this.fullPhoneNumber = fullPhoneNumber;
×
225
  }
×
226

227

228
  public StoreDetail logo(String logo) {
229
    this.logo = logo;
×
230
    return this;
×
231
  }
232

233
   /**
234
   * Store logo for payment method setup.
235
   * @return logo
236
  **/
237
  @ApiModelProperty(value = "Store logo for payment method setup.")
238
  @JsonProperty(JSON_PROPERTY_LOGO)
239
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
240

241
  public String getLogo() {
242
    return logo;
×
243
  }
244

245

246
  @JsonProperty(JSON_PROPERTY_LOGO)
247
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
248
  public void setLogo(String logo) {
249
    this.logo = logo;
×
250
  }
×
251

252

253
  public StoreDetail merchantAccount(String merchantAccount) {
254
    this.merchantAccount = merchantAccount;
×
255
    return this;
×
256
  }
257

258
   /**
259
   * The merchant account to which the store belongs.
260
   * @return merchantAccount
261
  **/
262
  @ApiModelProperty(required = true, value = "The merchant account to which the store belongs.")
263
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
264
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
265

266
  public String getMerchantAccount() {
267
    return merchantAccount;
×
268
  }
269

270

271
  @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT)
272
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
273
  public void setMerchantAccount(String merchantAccount) {
274
    this.merchantAccount = merchantAccount;
×
275
  }
×
276

277

278
  public StoreDetail merchantCategoryCode(String merchantCategoryCode) {
279
    this.merchantCategoryCode = merchantCategoryCode;
×
280
    return this;
×
281
  }
282

283
   /**
284
   * The merchant category code (MCC) that classifies the business of the account holder.
285
   * @return merchantCategoryCode
286
  **/
287
  @ApiModelProperty(required = true, value = "The merchant category code (MCC) that classifies the business of the account holder.")
288
  @JsonProperty(JSON_PROPERTY_MERCHANT_CATEGORY_CODE)
289
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
290

291
  public String getMerchantCategoryCode() {
292
    return merchantCategoryCode;
×
293
  }
294

295

296
  @JsonProperty(JSON_PROPERTY_MERCHANT_CATEGORY_CODE)
297
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
298
  public void setMerchantCategoryCode(String merchantCategoryCode) {
299
    this.merchantCategoryCode = merchantCategoryCode;
×
300
  }
×
301

302

303
  public StoreDetail merchantHouseNumber(String merchantHouseNumber) {
304
    this.merchantHouseNumber = merchantHouseNumber;
×
305
    return this;
×
306
  }
307

308
   /**
309
   * Merchant house number for payment method setup.
310
   * @return merchantHouseNumber
311
  **/
312
  @ApiModelProperty(value = "Merchant house number for payment method setup.")
313
  @JsonProperty(JSON_PROPERTY_MERCHANT_HOUSE_NUMBER)
314
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
315

316
  public String getMerchantHouseNumber() {
317
    return merchantHouseNumber;
×
318
  }
319

320

321
  @JsonProperty(JSON_PROPERTY_MERCHANT_HOUSE_NUMBER)
322
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
323
  public void setMerchantHouseNumber(String merchantHouseNumber) {
324
    this.merchantHouseNumber = merchantHouseNumber;
×
325
  }
×
326

327

328
  public StoreDetail phoneNumber(ViasPhoneNumber phoneNumber) {
329
    this.phoneNumber = phoneNumber;
×
330
    return this;
×
331
  }
332

333
   /**
334
   * Get phoneNumber
335
   * @return phoneNumber
336
  **/
337
  @ApiModelProperty(value = "")
338
  @JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
339
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
340

341
  public ViasPhoneNumber getPhoneNumber() {
342
    return phoneNumber;
×
343
  }
344

345

346
  @JsonProperty(JSON_PROPERTY_PHONE_NUMBER)
347
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
348
  public void setPhoneNumber(ViasPhoneNumber phoneNumber) {
349
    this.phoneNumber = phoneNumber;
×
350
  }
×
351

352

353
  public StoreDetail shopperInteraction(ShopperInteractionEnum shopperInteraction) {
354
    this.shopperInteraction = shopperInteraction;
×
355
    return this;
×
356
  }
357

358
   /**
359
   * The sales channel. Possible values: **Ecommerce**, **POS**.
360
   * @return shopperInteraction
361
  **/
362
  @ApiModelProperty(value = "The sales channel. Possible values: **Ecommerce**, **POS**.")
363
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
364
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
365

366
  public ShopperInteractionEnum getShopperInteraction() {
367
    return shopperInteraction;
×
368
  }
369

370

371
  @JsonProperty(JSON_PROPERTY_SHOPPER_INTERACTION)
372
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
373
  public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) {
374
    this.shopperInteraction = shopperInteraction;
×
375
  }
×
376

377

378
  public StoreDetail splitConfigurationUUID(String splitConfigurationUUID) {
379
    this.splitConfigurationUUID = splitConfigurationUUID;
×
380
    return this;
×
381
  }
382

383
   /**
384
   * The unique reference for the split configuration, returned when you configure splits in your Customer Area. When this is provided, the `virtualAccount` is also required. Adyen uses the configuration and the `virtualAccount` to split funds between accounts in your platform.
385
   * @return splitConfigurationUUID
386
  **/
387
  @ApiModelProperty(value = "The unique reference for the split configuration, returned when you configure splits in your Customer Area. When this is provided, the `virtualAccount` is also required. Adyen uses the configuration and the `virtualAccount` to split funds between accounts in your platform.")
388
  @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_U_U_I_D)
389
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
390

391
  public String getSplitConfigurationUUID() {
392
    return splitConfigurationUUID;
×
393
  }
394

395

396
  @JsonProperty(JSON_PROPERTY_SPLIT_CONFIGURATION_U_U_I_D)
397
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
398
  public void setSplitConfigurationUUID(String splitConfigurationUUID) {
399
    this.splitConfigurationUUID = splitConfigurationUUID;
×
400
  }
×
401

402

403
  public StoreDetail status(StatusEnum status) {
404
    this.status = status;
×
405
    return this;
×
406
  }
407

408
   /**
409
   * The status of the store. Possible values: **Pending**, **Active**, **Inactive**, **InactiveWithModifications**, **Closed**.
410
   * @return status
411
  **/
412
  @ApiModelProperty(value = "The status of the store. Possible values: **Pending**, **Active**, **Inactive**, **InactiveWithModifications**, **Closed**.")
413
  @JsonProperty(JSON_PROPERTY_STATUS)
414
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
415

416
  public StatusEnum getStatus() {
417
    return status;
×
418
  }
419

420

421
  @JsonProperty(JSON_PROPERTY_STATUS)
422
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
423
  public void setStatus(StatusEnum status) {
424
    this.status = status;
×
425
  }
×
426

427

428
  public StoreDetail store(String store) {
429
    this.store = store;
×
430
    return this;
×
431
  }
432

433
   /**
434
   * Adyen-generated unique alphanumeric identifier (UUID) for the store, returned in the response when you create a store. Required when updating an existing store in an `/updateAccountHolder` request.
435
   * @return store
436
  **/
437
  @ApiModelProperty(value = "Adyen-generated unique alphanumeric identifier (UUID) for the store, returned in the response when you create a store. Required when updating an existing store in an `/updateAccountHolder` request.")
438
  @JsonProperty(JSON_PROPERTY_STORE)
439
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
440

441
  public String getStore() {
442
    return store;
×
443
  }
444

445

446
  @JsonProperty(JSON_PROPERTY_STORE)
447
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
448
  public void setStore(String store) {
449
    this.store = store;
×
450
  }
×
451

452

453
  public StoreDetail storeName(String storeName) {
454
    this.storeName = storeName;
×
455
    return this;
×
456
  }
457

458
   /**
459
   * The name of the account holder's store. This value is shown in shopper statements.  * Length: Between 3 to 22 characters   * The following characters are *not* supported: **:;}{$#@!|<>%^*+=\\\\**
460
   * @return storeName
461
  **/
462
  @ApiModelProperty(value = "The name of the account holder's store. This value is shown in shopper statements.  * Length: Between 3 to 22 characters   * The following characters are *not* supported: **:;}{$#@!|<>%^*+=\\\\**")
463
  @JsonProperty(JSON_PROPERTY_STORE_NAME)
464
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
465

466
  public String getStoreName() {
467
    return storeName;
×
468
  }
469

470

471
  @JsonProperty(JSON_PROPERTY_STORE_NAME)
472
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
473
  public void setStoreName(String storeName) {
474
    this.storeName = storeName;
×
475
  }
×
476

477

478
  public StoreDetail storeReference(String storeReference) {
479
    this.storeReference = storeReference;
×
480
    return this;
×
481
  }
482

483
   /**
484
   * Your unique identifier for the store. The Customer Area also uses this value for the store description.   * Length: Between 3 to 128 characters  * The following characters are *not* supported: **:;}{$#@!|&lt;&gt;%^*+&#x3D;\\\\**
485
   * @return storeReference
486
  **/
487
  @ApiModelProperty(value = "Your unique identifier for the store. The Customer Area also uses this value for the store description.   * Length: Between 3 to 128 characters  * The following characters are *not* supported: **:;}{$#@!|<>%^*+=\\\\**")
488
  @JsonProperty(JSON_PROPERTY_STORE_REFERENCE)
489
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
490

491
  public String getStoreReference() {
492
    return storeReference;
×
493
  }
494

495

496
  @JsonProperty(JSON_PROPERTY_STORE_REFERENCE)
497
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
498
  public void setStoreReference(String storeReference) {
499
    this.storeReference = storeReference;
×
500
  }
×
501

502

503
  public StoreDetail virtualAccount(String virtualAccount) {
504
    this.virtualAccount = virtualAccount;
×
505
    return this;
×
506
  }
507

508
   /**
509
   * The account holder&#39;s &#x60;accountCode&#x60; where the split amount will be sent. Required when you provide the &#x60;splitConfigurationUUID&#x60;.
510
   * @return virtualAccount
511
  **/
512
  @ApiModelProperty(value = "The account holder's `accountCode` where the split amount will be sent. Required when you provide the `splitConfigurationUUID`.")
513
  @JsonProperty(JSON_PROPERTY_VIRTUAL_ACCOUNT)
514
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
515

516
  public String getVirtualAccount() {
517
    return virtualAccount;
×
518
  }
519

520

521
  @JsonProperty(JSON_PROPERTY_VIRTUAL_ACCOUNT)
522
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
523
  public void setVirtualAccount(String virtualAccount) {
524
    this.virtualAccount = virtualAccount;
×
525
  }
×
526

527

528
  public StoreDetail webAddress(String webAddress) {
529
    this.webAddress = webAddress;
×
530
    return this;
×
531
  }
532

533
   /**
534
   * URL of the ecommerce store.
535
   * @return webAddress
536
  **/
537
  @ApiModelProperty(value = "URL of the ecommerce store.")
538
  @JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
539
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
540

541
  public String getWebAddress() {
542
    return webAddress;
×
543
  }
544

545

546
  @JsonProperty(JSON_PROPERTY_WEB_ADDRESS)
547
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
548
  public void setWebAddress(String webAddress) {
549
    this.webAddress = webAddress;
×
550
  }
×
551

552

553
  /**
554
   * Return true if this StoreDetail object is equal to o.
555
   */
556
  @Override
557
  public boolean equals(Object o) {
558
    if (this == o) {
×
559
      return true;
×
560
    }
561
    if (o == null || getClass() != o.getClass()) {
×
562
      return false;
×
563
    }
564
    StoreDetail storeDetail = (StoreDetail) o;
×
565
    return Objects.equals(this.address, storeDetail.address) &&
×
566
        Objects.equals(this.fullPhoneNumber, storeDetail.fullPhoneNumber) &&
×
567
        Objects.equals(this.logo, storeDetail.logo) &&
×
568
        Objects.equals(this.merchantAccount, storeDetail.merchantAccount) &&
×
569
        Objects.equals(this.merchantCategoryCode, storeDetail.merchantCategoryCode) &&
×
570
        Objects.equals(this.merchantHouseNumber, storeDetail.merchantHouseNumber) &&
×
571
        Objects.equals(this.phoneNumber, storeDetail.phoneNumber) &&
×
572
        Objects.equals(this.shopperInteraction, storeDetail.shopperInteraction) &&
×
573
        Objects.equals(this.splitConfigurationUUID, storeDetail.splitConfigurationUUID) &&
×
574
        Objects.equals(this.status, storeDetail.status) &&
×
575
        Objects.equals(this.store, storeDetail.store) &&
×
576
        Objects.equals(this.storeName, storeDetail.storeName) &&
×
577
        Objects.equals(this.storeReference, storeDetail.storeReference) &&
×
578
        Objects.equals(this.virtualAccount, storeDetail.virtualAccount) &&
×
579
        Objects.equals(this.webAddress, storeDetail.webAddress);
×
580
  }
581

582
  @Override
583
  public int hashCode() {
584
    return Objects.hash(address, fullPhoneNumber, logo, merchantAccount, merchantCategoryCode, merchantHouseNumber, phoneNumber, shopperInteraction, splitConfigurationUUID, status, store, storeName, storeReference, virtualAccount, webAddress);
×
585
  }
586

587
  @Override
588
  public String toString() {
589
    StringBuilder sb = new StringBuilder();
×
590
    sb.append("class StoreDetail {\n");
×
591
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
×
592
    sb.append("    fullPhoneNumber: ").append(toIndentedString(fullPhoneNumber)).append("\n");
×
593
    sb.append("    logo: ").append(toIndentedString(logo)).append("\n");
×
594
    sb.append("    merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n");
×
595
    sb.append("    merchantCategoryCode: ").append(toIndentedString(merchantCategoryCode)).append("\n");
×
596
    sb.append("    merchantHouseNumber: ").append(toIndentedString(merchantHouseNumber)).append("\n");
×
597
    sb.append("    phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
×
598
    sb.append("    shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n");
×
599
    sb.append("    splitConfigurationUUID: ").append(toIndentedString(splitConfigurationUUID)).append("\n");
×
600
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
601
    sb.append("    store: ").append(toIndentedString(store)).append("\n");
×
602
    sb.append("    storeName: ").append(toIndentedString(storeName)).append("\n");
×
603
    sb.append("    storeReference: ").append(toIndentedString(storeReference)).append("\n");
×
604
    sb.append("    virtualAccount: ").append(toIndentedString(virtualAccount)).append("\n");
×
605
    sb.append("    webAddress: ").append(toIndentedString(webAddress)).append("\n");
×
606
    sb.append("}");
×
607
    return sb.toString();
×
608
  }
609

610
  /**
611
   * Convert the given object to string with each line indented by 4 spaces
612
   * (except the first line).
613
   */
614
  private String toIndentedString(Object o) {
615
    if (o == null) {
×
616
      return "null";
×
617
    }
618
    return o.toString().replace("\n", "\n    ");
×
619
  }
620

621
/**
622
   * Create an instance of StoreDetail given an JSON string
623
   *
624
   * @param jsonString JSON string
625
   * @return An instance of StoreDetail
626
   * @throws JsonProcessingException if the JSON string is invalid with respect to StoreDetail
627
   */
628
  public static StoreDetail fromJson(String jsonString) throws JsonProcessingException {
629
    return JSON.getMapper().readValue(jsonString, StoreDetail.class);
×
630
  }
631
/**
632
  * Convert an instance of StoreDetail to an JSON string
633
  *
634
  * @return JSON string
635
  */
636
  public String toJson() throws JsonProcessingException {
637
    return JSON.getMapper().writeValueAsString(this);
×
638
  }
639
}
640

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