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

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

18 Sep 2023 12:11PM UTC coverage: 13.219%. First build
#2658

push

web-flow
Merge 477a9da03 into ba706cfa8

1770 of 1770 new or added lines in 34 files covered. (100.0%)

10287 of 77817 relevant lines covered (13.22%)

0.13 hits per line

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

27.17
/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java
1
/*
2
 * Configuration API
3
 *
4
 * The version of the OpenAPI document: 2
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.balanceplatform;
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.balanceplatform.Amount;
20
import com.adyen.model.balanceplatform.SweepCounterparty;
21
import com.adyen.model.balanceplatform.SweepSchedule;
22
import com.fasterxml.jackson.annotation.JsonInclude;
23
import com.fasterxml.jackson.annotation.JsonProperty;
24
import com.fasterxml.jackson.annotation.JsonCreator;
25
import com.fasterxml.jackson.annotation.JsonTypeName;
26
import com.fasterxml.jackson.annotation.JsonValue;
27
import io.swagger.annotations.ApiModel;
28
import io.swagger.annotations.ApiModelProperty;
29
import java.util.ArrayList;
30
import java.util.List;
31
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
32
import com.fasterxml.jackson.core.JsonProcessingException;
33

34

35
/**
36
 * CreateSweepConfigurationV2
37
 */
38
@JsonPropertyOrder({
39
  CreateSweepConfigurationV2.JSON_PROPERTY_CATEGORY,
40
  CreateSweepConfigurationV2.JSON_PROPERTY_COUNTERPARTY,
41
  CreateSweepConfigurationV2.JSON_PROPERTY_CURRENCY,
42
  CreateSweepConfigurationV2.JSON_PROPERTY_DESCRIPTION,
43
  CreateSweepConfigurationV2.JSON_PROPERTY_PRIORITIES,
44
  CreateSweepConfigurationV2.JSON_PROPERTY_REASON,
45
  CreateSweepConfigurationV2.JSON_PROPERTY_SCHEDULE,
46
  CreateSweepConfigurationV2.JSON_PROPERTY_STATUS,
47
  CreateSweepConfigurationV2.JSON_PROPERTY_SWEEP_AMOUNT,
48
  CreateSweepConfigurationV2.JSON_PROPERTY_TARGET_AMOUNT,
49
  CreateSweepConfigurationV2.JSON_PROPERTY_TRIGGER_AMOUNT,
50
  CreateSweepConfigurationV2.JSON_PROPERTY_TYPE
51
})
52

53
public class CreateSweepConfigurationV2 {
54
  /**
55
   * The type of transfer that results from the sweep.  Possible values:   - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).  - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.  Required when setting `priorities`.
56
   */
57
  public enum CategoryEnum {
×
58
    BANK("bank"),
×
59
    
60
    INTERNAL("internal"),
×
61
    
62
    PLATFORMPAYMENT("platformPayment");
×
63

64
    private String value;
65

66
    CategoryEnum(String value) {
×
67
      this.value = value;
×
68
    }
×
69

70
    @JsonValue
71
    public String getValue() {
72
      return value;
×
73
    }
74

75
    @Override
76
    public String toString() {
77
      return String.valueOf(value);
×
78
    }
79

80
    @JsonCreator
81
    public static CategoryEnum fromValue(String value) {
82
      for (CategoryEnum b : CategoryEnum.values()) {
×
83
        if (b.value.equals(value)) {
×
84
          return b;
×
85
        }
86
      }
87
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
88
    }
89
  }
90

91
  public static final String JSON_PROPERTY_CATEGORY = "category";
92
  private CategoryEnum category;
93

94
  public static final String JSON_PROPERTY_COUNTERPARTY = "counterparty";
95
  private SweepCounterparty counterparty;
96

97
  public static final String JSON_PROPERTY_CURRENCY = "currency";
98
  private String currency;
99

100
  public static final String JSON_PROPERTY_DESCRIPTION = "description";
101
  private String description;
102

103
  /**
104
   * Gets or Sets priorities
105
   */
106
  public enum PrioritiesEnum {
×
107
    CROSSBORDER("crossBorder"),
×
108
    
109
    DIRECTDEBIT("directDebit"),
×
110
    
111
    FAST("fast"),
×
112
    
113
    INSTANT("instant"),
×
114
    
115
    INTERNAL("internal"),
×
116
    
117
    REGULAR("regular"),
×
118
    
119
    WIRE("wire");
×
120

121
    private String value;
122

123
    PrioritiesEnum(String value) {
×
124
      this.value = value;
×
125
    }
×
126

127
    @JsonValue
128
    public String getValue() {
129
      return value;
×
130
    }
131

132
    @Override
133
    public String toString() {
134
      return String.valueOf(value);
×
135
    }
136

137
    @JsonCreator
138
    public static PrioritiesEnum fromValue(String value) {
139
      for (PrioritiesEnum b : PrioritiesEnum.values()) {
×
140
        if (b.value.equals(value)) {
×
141
          return b;
×
142
        }
143
      }
144
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
145
    }
146
  }
147

148
  public static final String JSON_PROPERTY_PRIORITIES = "priorities";
149
  private List<PrioritiesEnum> priorities = null;
1✔
150

151
  /**
152
   * The reason for disabling the sweep.
153
   */
154
  public enum ReasonEnum {
×
155
    AMOUNTLIMITEXCEEDED("amountLimitExceeded"),
×
156
    
157
    APPROVED("approved"),
×
158
    
159
    COUNTERPARTYACCOUNTBLOCKED("counterpartyAccountBlocked"),
×
160
    
161
    COUNTERPARTYACCOUNTCLOSED("counterpartyAccountClosed"),
×
162
    
163
    COUNTERPARTYACCOUNTNOTFOUND("counterpartyAccountNotFound"),
×
164
    
165
    COUNTERPARTYADDRESSREQUIRED("counterpartyAddressRequired"),
×
166
    
167
    COUNTERPARTYBANKTIMEDOUT("counterpartyBankTimedOut"),
×
168
    
169
    COUNTERPARTYBANKUNAVAILABLE("counterpartyBankUnavailable"),
×
170
    
171
    ERROR("error"),
×
172
    
173
    NOTENOUGHBALANCE("notEnoughBalance"),
×
174
    
175
    REFUSEDBYCOUNTERPARTYBANK("refusedByCounterpartyBank"),
×
176
    
177
    ROUTENOTFOUND("routeNotFound"),
×
178
    
179
    UNKNOWN("unknown");
×
180

181
    private String value;
182

183
    ReasonEnum(String value) {
×
184
      this.value = value;
×
185
    }
×
186

187
    @JsonValue
188
    public String getValue() {
189
      return value;
×
190
    }
191

192
    @Override
193
    public String toString() {
194
      return String.valueOf(value);
×
195
    }
196

197
    @JsonCreator
198
    public static ReasonEnum fromValue(String value) {
199
      for (ReasonEnum b : ReasonEnum.values()) {
×
200
        if (b.value.equals(value)) {
×
201
          return b;
×
202
        }
203
      }
204
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
205
    }
206
  }
207

208
  public static final String JSON_PROPERTY_REASON = "reason";
209
  private ReasonEnum reason;
210

211
  public static final String JSON_PROPERTY_SCHEDULE = "schedule";
212
  private SweepSchedule schedule;
213

214
  /**
215
   * The status of the sweep. If not provided, by default, this is set to **active**.  Possible values:    * **active**:  the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration.    * **inactive**: the sweep is disabled and cannot be triggered.   
216
   */
217
  public enum StatusEnum {
1✔
218
    ACTIVE("active"),
1✔
219
    
220
    INACTIVE("inactive");
1✔
221

222
    private String value;
223

224
    StatusEnum(String value) {
1✔
225
      this.value = value;
1✔
226
    }
1✔
227

228
    @JsonValue
229
    public String getValue() {
230
      return value;
1✔
231
    }
232

233
    @Override
234
    public String toString() {
235
      return String.valueOf(value);
×
236
    }
237

238
    @JsonCreator
239
    public static StatusEnum fromValue(String value) {
240
      for (StatusEnum b : StatusEnum.values()) {
1✔
241
        if (b.value.equals(value)) {
1✔
242
          return b;
1✔
243
        }
244
      }
245
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
246
    }
247
  }
248

249
  public static final String JSON_PROPERTY_STATUS = "status";
250
  private StatusEnum status;
251

252
  public static final String JSON_PROPERTY_SWEEP_AMOUNT = "sweepAmount";
253
  private Amount sweepAmount;
254

255
  public static final String JSON_PROPERTY_TARGET_AMOUNT = "targetAmount";
256
  private Amount targetAmount;
257

258
  public static final String JSON_PROPERTY_TRIGGER_AMOUNT = "triggerAmount";
259
  private Amount triggerAmount;
260

261
  /**
262
   * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**.  Possible values:   * **push**: _push out funds_ to a destination balance account or transfer instrument.   * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.
263
   */
264
  public enum TypeEnum {
1✔
265
    PULL("pull"),
1✔
266
    
267
    PUSH("push");
1✔
268

269
    private String value;
270

271
    TypeEnum(String value) {
1✔
272
      this.value = value;
1✔
273
    }
1✔
274

275
    @JsonValue
276
    public String getValue() {
277
      return value;
1✔
278
    }
279

280
    @Override
281
    public String toString() {
282
      return String.valueOf(value);
×
283
    }
284

285
    @JsonCreator
286
    public static TypeEnum fromValue(String value) {
287
      for (TypeEnum b : TypeEnum.values()) {
1✔
288
        if (b.value.equals(value)) {
1✔
289
          return b;
1✔
290
        }
291
      }
292
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
×
293
    }
294
  }
295

296
  public static final String JSON_PROPERTY_TYPE = "type";
297
  private TypeEnum type = TypeEnum.PUSH;
1✔
298

299
  public CreateSweepConfigurationV2() { 
1✔
300
  }
1✔
301

302
  public CreateSweepConfigurationV2 category(CategoryEnum category) {
303
    this.category = category;
×
304
    return this;
×
305
  }
306

307
   /**
308
   * The type of transfer that results from the sweep.  Possible values:   - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).  - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.  Required when setting &#x60;priorities&#x60;.
309
   * @return category
310
  **/
311
  @ApiModelProperty(value = "The type of transfer that results from the sweep.  Possible values:   - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).  - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.  Required when setting `priorities`.")
312
  @JsonProperty(JSON_PROPERTY_CATEGORY)
313
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
314

315
  public CategoryEnum getCategory() {
316
    return category;
1✔
317
  }
318

319

320
  @JsonProperty(JSON_PROPERTY_CATEGORY)
321
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
322
  public void setCategory(CategoryEnum category) {
323
    this.category = category;
×
324
  }
×
325

326

327
  public CreateSweepConfigurationV2 counterparty(SweepCounterparty counterparty) {
328
    this.counterparty = counterparty;
×
329
    return this;
×
330
  }
331

332
   /**
333
   * Get counterparty
334
   * @return counterparty
335
  **/
336
  @ApiModelProperty(required = true, value = "")
337
  @JsonProperty(JSON_PROPERTY_COUNTERPARTY)
338
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
339

340
  public SweepCounterparty getCounterparty() {
341
    return counterparty;
1✔
342
  }
343

344

345
  @JsonProperty(JSON_PROPERTY_COUNTERPARTY)
346
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
347
  public void setCounterparty(SweepCounterparty counterparty) {
348
    this.counterparty = counterparty;
1✔
349
  }
1✔
350

351

352
  public CreateSweepConfigurationV2 currency(String currency) {
353
    this.currency = currency;
×
354
    return this;
×
355
  }
356

357
   /**
358
   * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**.  The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).
359
   * @return currency
360
  **/
361
  @ApiModelProperty(required = true, value = "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**.  The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).")
362
  @JsonProperty(JSON_PROPERTY_CURRENCY)
363
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
364

365
  public String getCurrency() {
366
    return currency;
1✔
367
  }
368

369

370
  @JsonProperty(JSON_PROPERTY_CURRENCY)
371
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
372
  public void setCurrency(String currency) {
373
    this.currency = currency;
1✔
374
  }
1✔
375

376

377
  public CreateSweepConfigurationV2 description(String description) {
378
    this.description = description;
×
379
    return this;
×
380
  }
381

382
   /**
383
   * The message that will be used in the sweep transfer&#39;s description body with a maximum length of 140 characters.  If the message is longer after replacing placeholders, the message will be cut off at 140 characters.
384
   * @return description
385
  **/
386
  @ApiModelProperty(value = "The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.  If the message is longer after replacing placeholders, the message will be cut off at 140 characters.")
387
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
388
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
389

390
  public String getDescription() {
391
    return description;
1✔
392
  }
393

394

395
  @JsonProperty(JSON_PROPERTY_DESCRIPTION)
396
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
397
  public void setDescription(String description) {
398
    this.description = description;
×
399
  }
×
400

401

402
  public CreateSweepConfigurationV2 priorities(List<PrioritiesEnum> priorities) {
403
    this.priorities = priorities;
×
404
    return this;
×
405
  }
406

407
  public CreateSweepConfigurationV2 addPrioritiesItem(PrioritiesEnum prioritiesItem) {
408
    if (this.priorities == null) {
×
409
      this.priorities = new ArrayList<>();
×
410
    }
411
    this.priorities.add(prioritiesItem);
×
412
    return this;
×
413
  }
414

415
   /**
416
   * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that&#39;s not possible, it moves on to the next option in the order of provided priorities.  Possible values:  * **regular**: For normal, low-value transactions.  * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions.  * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: High-value transfer to a recipient in a different country.  * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).  Set &#x60;category&#x60; to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
417
   * @return priorities
418
  **/
419
  @ApiModelProperty(value = "The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities.  Possible values:  * **regular**: For normal, low-value transactions.  * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions.  * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions.  * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).  * **crossBorder**: High-value transfer to a recipient in a different country.  * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).  Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).")
420
  @JsonProperty(JSON_PROPERTY_PRIORITIES)
421
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
422

423
  public List<PrioritiesEnum> getPriorities() {
424
    return priorities;
1✔
425
  }
426

427

428
  @JsonProperty(JSON_PROPERTY_PRIORITIES)
429
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
430
  public void setPriorities(List<PrioritiesEnum> priorities) {
431
    this.priorities = priorities;
×
432
  }
×
433

434

435
  public CreateSweepConfigurationV2 reason(ReasonEnum reason) {
436
    this.reason = reason;
×
437
    return this;
×
438
  }
439

440
   /**
441
   * The reason for disabling the sweep.
442
   * @return reason
443
  **/
444
  @ApiModelProperty(value = "The reason for disabling the sweep.")
445
  @JsonProperty(JSON_PROPERTY_REASON)
446
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
447

448
  public ReasonEnum getReason() {
449
    return reason;
1✔
450
  }
451

452

453
  @JsonProperty(JSON_PROPERTY_REASON)
454
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
455
  public void setReason(ReasonEnum reason) {
456
    this.reason = reason;
×
457
  }
×
458

459

460
  public CreateSweepConfigurationV2 schedule(SweepSchedule schedule) {
461
    this.schedule = schedule;
×
462
    return this;
×
463
  }
464

465
   /**
466
   * Get schedule
467
   * @return schedule
468
  **/
469
  @ApiModelProperty(required = true, value = "")
470
  @JsonProperty(JSON_PROPERTY_SCHEDULE)
471
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
472

473
  public SweepSchedule getSchedule() {
474
    return schedule;
1✔
475
  }
476

477

478
  @JsonProperty(JSON_PROPERTY_SCHEDULE)
479
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
480
  public void setSchedule(SweepSchedule schedule) {
481
    this.schedule = schedule;
1✔
482
  }
1✔
483

484

485
  public CreateSweepConfigurationV2 status(StatusEnum status) {
486
    this.status = status;
×
487
    return this;
×
488
  }
489

490
   /**
491
   * The status of the sweep. If not provided, by default, this is set to **active**.  Possible values:    * **active**:  the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration.    * **inactive**: the sweep is disabled and cannot be triggered.   
492
   * @return status
493
  **/
494
  @ApiModelProperty(value = "The status of the sweep. If not provided, by default, this is set to **active**.  Possible values:    * **active**:  the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration.    * **inactive**: the sweep is disabled and cannot be triggered.   ")
495
  @JsonProperty(JSON_PROPERTY_STATUS)
496
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
497

498
  public StatusEnum getStatus() {
499
    return status;
1✔
500
  }
501

502

503
  @JsonProperty(JSON_PROPERTY_STATUS)
504
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
505
  public void setStatus(StatusEnum status) {
506
    this.status = status;
1✔
507
  }
1✔
508

509

510
  public CreateSweepConfigurationV2 sweepAmount(Amount sweepAmount) {
511
    this.sweepAmount = sweepAmount;
×
512
    return this;
×
513
  }
514

515
   /**
516
   * Get sweepAmount
517
   * @return sweepAmount
518
  **/
519
  @ApiModelProperty(value = "")
520
  @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT)
521
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
522

523
  public Amount getSweepAmount() {
524
    return sweepAmount;
1✔
525
  }
526

527

528
  @JsonProperty(JSON_PROPERTY_SWEEP_AMOUNT)
529
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
530
  public void setSweepAmount(Amount sweepAmount) {
531
    this.sweepAmount = sweepAmount;
×
532
  }
×
533

534

535
  public CreateSweepConfigurationV2 targetAmount(Amount targetAmount) {
536
    this.targetAmount = targetAmount;
×
537
    return this;
×
538
  }
539

540
   /**
541
   * Get targetAmount
542
   * @return targetAmount
543
  **/
544
  @ApiModelProperty(value = "")
545
  @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT)
546
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
547

548
  public Amount getTargetAmount() {
549
    return targetAmount;
1✔
550
  }
551

552

553
  @JsonProperty(JSON_PROPERTY_TARGET_AMOUNT)
554
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
555
  public void setTargetAmount(Amount targetAmount) {
556
    this.targetAmount = targetAmount;
×
557
  }
×
558

559

560
  public CreateSweepConfigurationV2 triggerAmount(Amount triggerAmount) {
561
    this.triggerAmount = triggerAmount;
×
562
    return this;
×
563
  }
564

565
   /**
566
   * Get triggerAmount
567
   * @return triggerAmount
568
  **/
569
  @ApiModelProperty(value = "")
570
  @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT)
571
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
572

573
  public Amount getTriggerAmount() {
574
    return triggerAmount;
1✔
575
  }
576

577

578
  @JsonProperty(JSON_PROPERTY_TRIGGER_AMOUNT)
579
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
580
  public void setTriggerAmount(Amount triggerAmount) {
581
    this.triggerAmount = triggerAmount;
1✔
582
  }
1✔
583

584

585
  public CreateSweepConfigurationV2 type(TypeEnum type) {
586
    this.type = type;
×
587
    return this;
×
588
  }
589

590
   /**
591
   * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**.  Possible values:   * **push**: _push out funds_ to a destination balance account or transfer instrument.   * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.
592
   * @return type
593
  **/
594
  @ApiModelProperty(value = "The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**.  Possible values:   * **push**: _push out funds_ to a destination balance account or transfer instrument.   * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.")
595
  @JsonProperty(JSON_PROPERTY_TYPE)
596
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
597

598
  public TypeEnum getType() {
599
    return type;
1✔
600
  }
601

602

603
  @JsonProperty(JSON_PROPERTY_TYPE)
604
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
605
  public void setType(TypeEnum type) {
606
    this.type = type;
1✔
607
  }
1✔
608

609

610
  /**
611
   * Return true if this CreateSweepConfigurationV2 object is equal to o.
612
   */
613
  @Override
614
  public boolean equals(Object o) {
615
    if (this == o) {
×
616
      return true;
×
617
    }
618
    if (o == null || getClass() != o.getClass()) {
×
619
      return false;
×
620
    }
621
    CreateSweepConfigurationV2 createSweepConfigurationV2 = (CreateSweepConfigurationV2) o;
×
622
    return Objects.equals(this.category, createSweepConfigurationV2.category) &&
×
623
        Objects.equals(this.counterparty, createSweepConfigurationV2.counterparty) &&
×
624
        Objects.equals(this.currency, createSweepConfigurationV2.currency) &&
×
625
        Objects.equals(this.description, createSweepConfigurationV2.description) &&
×
626
        Objects.equals(this.priorities, createSweepConfigurationV2.priorities) &&
×
627
        Objects.equals(this.reason, createSweepConfigurationV2.reason) &&
×
628
        Objects.equals(this.schedule, createSweepConfigurationV2.schedule) &&
×
629
        Objects.equals(this.status, createSweepConfigurationV2.status) &&
×
630
        Objects.equals(this.sweepAmount, createSweepConfigurationV2.sweepAmount) &&
×
631
        Objects.equals(this.targetAmount, createSweepConfigurationV2.targetAmount) &&
×
632
        Objects.equals(this.triggerAmount, createSweepConfigurationV2.triggerAmount) &&
×
633
        Objects.equals(this.type, createSweepConfigurationV2.type);
×
634
  }
635

636
  @Override
637
  public int hashCode() {
638
    return Objects.hash(category, counterparty, currency, description, priorities, reason, schedule, status, sweepAmount, targetAmount, triggerAmount, type);
×
639
  }
640

641
  @Override
642
  public String toString() {
643
    StringBuilder sb = new StringBuilder();
×
644
    sb.append("class CreateSweepConfigurationV2 {\n");
×
645
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
×
646
    sb.append("    counterparty: ").append(toIndentedString(counterparty)).append("\n");
×
647
    sb.append("    currency: ").append(toIndentedString(currency)).append("\n");
×
648
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
×
649
    sb.append("    priorities: ").append(toIndentedString(priorities)).append("\n");
×
650
    sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
×
651
    sb.append("    schedule: ").append(toIndentedString(schedule)).append("\n");
×
652
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
×
653
    sb.append("    sweepAmount: ").append(toIndentedString(sweepAmount)).append("\n");
×
654
    sb.append("    targetAmount: ").append(toIndentedString(targetAmount)).append("\n");
×
655
    sb.append("    triggerAmount: ").append(toIndentedString(triggerAmount)).append("\n");
×
656
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
×
657
    sb.append("}");
×
658
    return sb.toString();
×
659
  }
660

661
  /**
662
   * Convert the given object to string with each line indented by 4 spaces
663
   * (except the first line).
664
   */
665
  private String toIndentedString(Object o) {
666
    if (o == null) {
×
667
      return "null";
×
668
    }
669
    return o.toString().replace("\n", "\n    ");
×
670
  }
671

672
/**
673
   * Create an instance of CreateSweepConfigurationV2 given an JSON string
674
   *
675
   * @param jsonString JSON string
676
   * @return An instance of CreateSweepConfigurationV2
677
   * @throws JsonProcessingException if the JSON string is invalid with respect to CreateSweepConfigurationV2
678
   */
679
  public static CreateSweepConfigurationV2 fromJson(String jsonString) throws JsonProcessingException {
680
    return JSON.getMapper().readValue(jsonString, CreateSweepConfigurationV2.class);
1✔
681
  }
682
/**
683
  * Convert an instance of CreateSweepConfigurationV2 to an JSON string
684
  *
685
  * @return JSON string
686
  */
687
  public String toJson() throws JsonProcessingException {
688
    return JSON.getMapper().writeValueAsString(this);
1✔
689
  }
690
}
691

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

© 2026 Coveralls, Inc