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

stripe / stripe-java / #16562

18 Oct 2024 07:00PM UTC coverage: 12.614% (-0.1%) from 12.74%
#16562

push

github

web-flow
Merge pull request #1897 from stripe/latest-codegen-beta

Update generated code for beta

49 of 1978 new or added lines in 47 files covered. (2.48%)

68 existing lines in 20 files now uncovered.

18798 of 149026 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/stripe/param/treasury/FinancialAccountFeaturesUpdateParams.java
1
// File generated from our OpenAPI spec
2
package com.stripe.param.treasury;
3

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.net.ApiRequestParams;
6
import java.util.ArrayList;
7
import java.util.HashMap;
8
import java.util.List;
9
import java.util.Map;
10
import lombok.Getter;
11

12
@Getter
13
public class FinancialAccountFeaturesUpdateParams extends ApiRequestParams {
14
  /**
15
   * Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching
16
   * cards to and drawing funds from the FinancialAccount.
17
   */
18
  @SerializedName("card_issuing")
19
  CardIssuing cardIssuing;
20

21
  /**
22
   * Represents whether this FinancialAccount is eligible for deposit insurance. Various factors
23
   * determine the insurance amount.
24
   */
25
  @SerializedName("deposit_insurance")
26
  DepositInsurance depositInsurance;
27

28
  /** Specifies which fields in the response should be expanded. */
29
  @SerializedName("expand")
30
  List<String> expand;
31

32
  /**
33
   * Map of extra parameters for custom features not available in this client library. The content
34
   * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
35
   * key/value pair is serialized as if the key is a root-level field (serialized) name in this
36
   * param object. Effectively, this map is flattened to its parent instance.
37
   */
38
  @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
39
  Map<String, Object> extraParams;
40

41
  /** Contains Features that add FinancialAddresses to the FinancialAccount. */
42
  @SerializedName("financial_addresses")
43
  FinancialAddresses financialAddresses;
44

45
  /**
46
   * Contains settings related to adding funds to a FinancialAccount from another Account with the
47
   * same owner.
48
   */
49
  @SerializedName("inbound_transfers")
50
  InboundTransfers inboundTransfers;
51

52
  /**
53
   * Represents the ability for the FinancialAccount to send money to, or receive money from other
54
   * FinancialAccounts (for example, via OutboundPayment).
55
   */
56
  @SerializedName("intra_stripe_flows")
57
  IntraStripeFlows intraStripeFlows;
58

59
  /**
60
   * Includes Features related to initiating money movement out of the FinancialAccount to someone
61
   * else's bucket of money.
62
   */
63
  @SerializedName("outbound_payments")
64
  OutboundPayments outboundPayments;
65

66
  /**
67
   * Contains a Feature and settings related to moving money out of the FinancialAccount into
68
   * another Account with the same owner.
69
   */
70
  @SerializedName("outbound_transfers")
71
  OutboundTransfers outboundTransfers;
72

73
  private FinancialAccountFeaturesUpdateParams(
74
      CardIssuing cardIssuing,
75
      DepositInsurance depositInsurance,
76
      List<String> expand,
77
      Map<String, Object> extraParams,
78
      FinancialAddresses financialAddresses,
79
      InboundTransfers inboundTransfers,
80
      IntraStripeFlows intraStripeFlows,
81
      OutboundPayments outboundPayments,
82
      OutboundTransfers outboundTransfers) {
×
83
    this.cardIssuing = cardIssuing;
×
84
    this.depositInsurance = depositInsurance;
×
85
    this.expand = expand;
×
86
    this.extraParams = extraParams;
×
87
    this.financialAddresses = financialAddresses;
×
88
    this.inboundTransfers = inboundTransfers;
×
89
    this.intraStripeFlows = intraStripeFlows;
×
90
    this.outboundPayments = outboundPayments;
×
91
    this.outboundTransfers = outboundTransfers;
×
92
  }
×
93

94
  public static Builder builder() {
95
    return new Builder();
×
96
  }
97

98
  public static class Builder {
×
99
    private CardIssuing cardIssuing;
100

101
    private DepositInsurance depositInsurance;
102

103
    private List<String> expand;
104

105
    private Map<String, Object> extraParams;
106

107
    private FinancialAddresses financialAddresses;
108

109
    private InboundTransfers inboundTransfers;
110

111
    private IntraStripeFlows intraStripeFlows;
112

113
    private OutboundPayments outboundPayments;
114

115
    private OutboundTransfers outboundTransfers;
116

117
    /** Finalize and obtain parameter instance from this builder. */
118
    public FinancialAccountFeaturesUpdateParams build() {
119
      return new FinancialAccountFeaturesUpdateParams(
×
120
          this.cardIssuing,
121
          this.depositInsurance,
122
          this.expand,
123
          this.extraParams,
124
          this.financialAddresses,
125
          this.inboundTransfers,
126
          this.intraStripeFlows,
127
          this.outboundPayments,
128
          this.outboundTransfers);
129
    }
130

131
    /**
132
     * Encodes the FinancialAccount's ability to be used with the Issuing product, including
133
     * attaching cards to and drawing funds from the FinancialAccount.
134
     */
135
    public Builder setCardIssuing(FinancialAccountFeaturesUpdateParams.CardIssuing cardIssuing) {
136
      this.cardIssuing = cardIssuing;
×
137
      return this;
×
138
    }
139

140
    /**
141
     * Represents whether this FinancialAccount is eligible for deposit insurance. Various factors
142
     * determine the insurance amount.
143
     */
144
    public Builder setDepositInsurance(
145
        FinancialAccountFeaturesUpdateParams.DepositInsurance depositInsurance) {
146
      this.depositInsurance = depositInsurance;
×
147
      return this;
×
148
    }
149

150
    /**
151
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
152
     * subsequent calls adds additional elements to the original list. See {@link
153
     * FinancialAccountFeaturesUpdateParams#expand} for the field documentation.
154
     */
155
    public Builder addExpand(String element) {
156
      if (this.expand == null) {
×
157
        this.expand = new ArrayList<>();
×
158
      }
159
      this.expand.add(element);
×
160
      return this;
×
161
    }
162

163
    /**
164
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
165
     * subsequent calls adds additional elements to the original list. See {@link
166
     * FinancialAccountFeaturesUpdateParams#expand} for the field documentation.
167
     */
168
    public Builder addAllExpand(List<String> elements) {
169
      if (this.expand == null) {
×
170
        this.expand = new ArrayList<>();
×
171
      }
172
      this.expand.addAll(elements);
×
173
      return this;
×
174
    }
175

176
    /**
177
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
178
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
179
     * FinancialAccountFeaturesUpdateParams#extraParams} for the field documentation.
180
     */
181
    public Builder putExtraParam(String key, Object value) {
182
      if (this.extraParams == null) {
×
183
        this.extraParams = new HashMap<>();
×
184
      }
185
      this.extraParams.put(key, value);
×
186
      return this;
×
187
    }
188

189
    /**
190
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
191
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
192
     * See {@link FinancialAccountFeaturesUpdateParams#extraParams} for the field documentation.
193
     */
194
    public Builder putAllExtraParam(Map<String, Object> map) {
195
      if (this.extraParams == null) {
×
196
        this.extraParams = new HashMap<>();
×
197
      }
198
      this.extraParams.putAll(map);
×
199
      return this;
×
200
    }
201

202
    /** Contains Features that add FinancialAddresses to the FinancialAccount. */
203
    public Builder setFinancialAddresses(
204
        FinancialAccountFeaturesUpdateParams.FinancialAddresses financialAddresses) {
205
      this.financialAddresses = financialAddresses;
×
206
      return this;
×
207
    }
208

209
    /**
210
     * Contains settings related to adding funds to a FinancialAccount from another Account with the
211
     * same owner.
212
     */
213
    public Builder setInboundTransfers(
214
        FinancialAccountFeaturesUpdateParams.InboundTransfers inboundTransfers) {
215
      this.inboundTransfers = inboundTransfers;
×
216
      return this;
×
217
    }
218

219
    /**
220
     * Represents the ability for the FinancialAccount to send money to, or receive money from other
221
     * FinancialAccounts (for example, via OutboundPayment).
222
     */
223
    public Builder setIntraStripeFlows(
224
        FinancialAccountFeaturesUpdateParams.IntraStripeFlows intraStripeFlows) {
225
      this.intraStripeFlows = intraStripeFlows;
×
226
      return this;
×
227
    }
228

229
    /**
230
     * Includes Features related to initiating money movement out of the FinancialAccount to someone
231
     * else's bucket of money.
232
     */
233
    public Builder setOutboundPayments(
234
        FinancialAccountFeaturesUpdateParams.OutboundPayments outboundPayments) {
235
      this.outboundPayments = outboundPayments;
×
236
      return this;
×
237
    }
238

239
    /**
240
     * Contains a Feature and settings related to moving money out of the FinancialAccount into
241
     * another Account with the same owner.
242
     */
243
    public Builder setOutboundTransfers(
244
        FinancialAccountFeaturesUpdateParams.OutboundTransfers outboundTransfers) {
245
      this.outboundTransfers = outboundTransfers;
×
246
      return this;
×
247
    }
248
  }
249

250
  @Getter
251
  public static class CardIssuing {
252
    /**
253
     * Map of extra parameters for custom features not available in this client library. The content
254
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
255
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
256
     * param object. Effectively, this map is flattened to its parent instance.
257
     */
258
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
259
    Map<String, Object> extraParams;
260

261
    /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
262
    @SerializedName("requested")
263
    Boolean requested;
264

265
    private CardIssuing(Map<String, Object> extraParams, Boolean requested) {
×
266
      this.extraParams = extraParams;
×
267
      this.requested = requested;
×
268
    }
×
269

270
    public static Builder builder() {
271
      return new Builder();
×
272
    }
273

274
    public static class Builder {
×
275
      private Map<String, Object> extraParams;
276

277
      private Boolean requested;
278

279
      /** Finalize and obtain parameter instance from this builder. */
280
      public FinancialAccountFeaturesUpdateParams.CardIssuing build() {
281
        return new FinancialAccountFeaturesUpdateParams.CardIssuing(
×
282
            this.extraParams, this.requested);
283
      }
284

285
      /**
286
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
287
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
288
       * FinancialAccountFeaturesUpdateParams.CardIssuing#extraParams} for the field documentation.
289
       */
290
      public Builder putExtraParam(String key, Object value) {
291
        if (this.extraParams == null) {
×
292
          this.extraParams = new HashMap<>();
×
293
        }
294
        this.extraParams.put(key, value);
×
295
        return this;
×
296
      }
297

298
      /**
299
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
300
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
301
       * See {@link FinancialAccountFeaturesUpdateParams.CardIssuing#extraParams} for the field
302
       * documentation.
303
       */
304
      public Builder putAllExtraParam(Map<String, Object> map) {
305
        if (this.extraParams == null) {
×
306
          this.extraParams = new HashMap<>();
×
307
        }
308
        this.extraParams.putAll(map);
×
309
        return this;
×
310
      }
311

312
      /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
313
      public Builder setRequested(Boolean requested) {
314
        this.requested = requested;
×
315
        return this;
×
316
      }
317
    }
318
  }
319

320
  @Getter
321
  public static class DepositInsurance {
322
    /**
323
     * Map of extra parameters for custom features not available in this client library. The content
324
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
325
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
326
     * param object. Effectively, this map is flattened to its parent instance.
327
     */
328
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
329
    Map<String, Object> extraParams;
330

331
    /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
332
    @SerializedName("requested")
333
    Boolean requested;
334

335
    private DepositInsurance(Map<String, Object> extraParams, Boolean requested) {
×
336
      this.extraParams = extraParams;
×
337
      this.requested = requested;
×
338
    }
×
339

340
    public static Builder builder() {
341
      return new Builder();
×
342
    }
343

344
    public static class Builder {
×
345
      private Map<String, Object> extraParams;
346

347
      private Boolean requested;
348

349
      /** Finalize and obtain parameter instance from this builder. */
350
      public FinancialAccountFeaturesUpdateParams.DepositInsurance build() {
351
        return new FinancialAccountFeaturesUpdateParams.DepositInsurance(
×
352
            this.extraParams, this.requested);
353
      }
354

355
      /**
356
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
357
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
358
       * FinancialAccountFeaturesUpdateParams.DepositInsurance#extraParams} for the field
359
       * documentation.
360
       */
361
      public Builder putExtraParam(String key, Object value) {
362
        if (this.extraParams == null) {
×
363
          this.extraParams = new HashMap<>();
×
364
        }
365
        this.extraParams.put(key, value);
×
366
        return this;
×
367
      }
368

369
      /**
370
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
371
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
372
       * See {@link FinancialAccountFeaturesUpdateParams.DepositInsurance#extraParams} for the field
373
       * documentation.
374
       */
375
      public Builder putAllExtraParam(Map<String, Object> map) {
376
        if (this.extraParams == null) {
×
377
          this.extraParams = new HashMap<>();
×
378
        }
379
        this.extraParams.putAll(map);
×
380
        return this;
×
381
      }
382

383
      /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
384
      public Builder setRequested(Boolean requested) {
385
        this.requested = requested;
×
386
        return this;
×
387
      }
388
    }
389
  }
390

391
  @Getter
392
  public static class FinancialAddresses {
393
    /** Adds an ABA FinancialAddress to the FinancialAccount. */
394
    @SerializedName("aba")
395
    Aba aba;
396

397
    /**
398
     * Map of extra parameters for custom features not available in this client library. The content
399
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
400
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
401
     * param object. Effectively, this map is flattened to its parent instance.
402
     */
403
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
404
    Map<String, Object> extraParams;
405

406
    private FinancialAddresses(Aba aba, Map<String, Object> extraParams) {
×
407
      this.aba = aba;
×
408
      this.extraParams = extraParams;
×
409
    }
×
410

411
    public static Builder builder() {
412
      return new Builder();
×
413
    }
414

415
    public static class Builder {
×
416
      private Aba aba;
417

418
      private Map<String, Object> extraParams;
419

420
      /** Finalize and obtain parameter instance from this builder. */
421
      public FinancialAccountFeaturesUpdateParams.FinancialAddresses build() {
422
        return new FinancialAccountFeaturesUpdateParams.FinancialAddresses(
×
423
            this.aba, this.extraParams);
424
      }
425

426
      /** Adds an ABA FinancialAddress to the FinancialAccount. */
427
      public Builder setAba(FinancialAccountFeaturesUpdateParams.FinancialAddresses.Aba aba) {
428
        this.aba = aba;
×
429
        return this;
×
430
      }
431

432
      /**
433
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
434
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
435
       * FinancialAccountFeaturesUpdateParams.FinancialAddresses#extraParams} for the field
436
       * documentation.
437
       */
438
      public Builder putExtraParam(String key, Object value) {
439
        if (this.extraParams == null) {
×
440
          this.extraParams = new HashMap<>();
×
441
        }
442
        this.extraParams.put(key, value);
×
443
        return this;
×
444
      }
445

446
      /**
447
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
448
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
449
       * See {@link FinancialAccountFeaturesUpdateParams.FinancialAddresses#extraParams} for the
450
       * field documentation.
451
       */
452
      public Builder putAllExtraParam(Map<String, Object> map) {
453
        if (this.extraParams == null) {
×
454
          this.extraParams = new HashMap<>();
×
455
        }
456
        this.extraParams.putAll(map);
×
457
        return this;
×
458
      }
459
    }
460

461
    @Getter
462
    public static class Aba {
463
      /** Requested bank partner. */
464
      @SerializedName("bank")
465
      Bank bank;
466

467
      /**
468
       * Map of extra parameters for custom features not available in this client library. The
469
       * content in this map is not serialized under this field's {@code @SerializedName} value.
470
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
471
       * name in this param object. Effectively, this map is flattened to its parent instance.
472
       */
473
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
474
      Map<String, Object> extraParams;
475

476
      /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
477
      @SerializedName("requested")
478
      Boolean requested;
479

NEW
480
      private Aba(Bank bank, Map<String, Object> extraParams, Boolean requested) {
×
NEW
481
        this.bank = bank;
×
482
        this.extraParams = extraParams;
×
483
        this.requested = requested;
×
484
      }
×
485

486
      public static Builder builder() {
487
        return new Builder();
×
488
      }
489

490
      public static class Builder {
×
491
        private Bank bank;
492

493
        private Map<String, Object> extraParams;
494

495
        private Boolean requested;
496

497
        /** Finalize and obtain parameter instance from this builder. */
498
        public FinancialAccountFeaturesUpdateParams.FinancialAddresses.Aba build() {
499
          return new FinancialAccountFeaturesUpdateParams.FinancialAddresses.Aba(
×
500
              this.bank, this.extraParams, this.requested);
501
        }
502

503
        /** Requested bank partner. */
504
        public Builder setBank(
505
            FinancialAccountFeaturesUpdateParams.FinancialAddresses.Aba.Bank bank) {
NEW
506
          this.bank = bank;
×
NEW
507
          return this;
×
508
        }
509

510
        /**
511
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
512
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
513
         * map. See {@link FinancialAccountFeaturesUpdateParams.FinancialAddresses.Aba#extraParams}
514
         * for the field documentation.
515
         */
516
        public Builder putExtraParam(String key, Object value) {
517
          if (this.extraParams == null) {
×
518
            this.extraParams = new HashMap<>();
×
519
          }
520
          this.extraParams.put(key, value);
×
521
          return this;
×
522
        }
523

524
        /**
525
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
526
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
527
         * map. See {@link FinancialAccountFeaturesUpdateParams.FinancialAddresses.Aba#extraParams}
528
         * for the field documentation.
529
         */
530
        public Builder putAllExtraParam(Map<String, Object> map) {
531
          if (this.extraParams == null) {
×
532
            this.extraParams = new HashMap<>();
×
533
          }
534
          this.extraParams.putAll(map);
×
535
          return this;
×
536
        }
537

538
        /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
539
        public Builder setRequested(Boolean requested) {
540
          this.requested = requested;
×
541
          return this;
×
542
        }
543
      }
544

NEW
545
      public enum Bank implements ApiRequestParams.EnumParam {
×
NEW
546
        @SerializedName("evolve")
×
547
        EVOLVE("evolve"),
548

NEW
549
        @SerializedName("fifth_third")
×
550
        FIFTH_THIRD("fifth_third"),
551

NEW
552
        @SerializedName("goldman_sachs")
×
553
        GOLDMAN_SACHS("goldman_sachs");
554

555
        @Getter(onMethod_ = {@Override})
556
        private final String value;
557

NEW
558
        Bank(String value) {
×
NEW
559
          this.value = value;
×
NEW
560
        }
×
561
      }
562
    }
563
  }
564

565
  @Getter
566
  public static class InboundTransfers {
567
    /** Enables ACH Debits via the InboundTransfers API. */
568
    @SerializedName("ach")
569
    Ach ach;
570

571
    /**
572
     * Map of extra parameters for custom features not available in this client library. The content
573
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
574
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
575
     * param object. Effectively, this map is flattened to its parent instance.
576
     */
577
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
578
    Map<String, Object> extraParams;
579

580
    private InboundTransfers(Ach ach, Map<String, Object> extraParams) {
×
581
      this.ach = ach;
×
582
      this.extraParams = extraParams;
×
583
    }
×
584

585
    public static Builder builder() {
586
      return new Builder();
×
587
    }
588

589
    public static class Builder {
×
590
      private Ach ach;
591

592
      private Map<String, Object> extraParams;
593

594
      /** Finalize and obtain parameter instance from this builder. */
595
      public FinancialAccountFeaturesUpdateParams.InboundTransfers build() {
596
        return new FinancialAccountFeaturesUpdateParams.InboundTransfers(
×
597
            this.ach, this.extraParams);
598
      }
599

600
      /** Enables ACH Debits via the InboundTransfers API. */
601
      public Builder setAch(FinancialAccountFeaturesUpdateParams.InboundTransfers.Ach ach) {
602
        this.ach = ach;
×
603
        return this;
×
604
      }
605

606
      /**
607
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
608
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
609
       * FinancialAccountFeaturesUpdateParams.InboundTransfers#extraParams} for the field
610
       * documentation.
611
       */
612
      public Builder putExtraParam(String key, Object value) {
613
        if (this.extraParams == null) {
×
614
          this.extraParams = new HashMap<>();
×
615
        }
616
        this.extraParams.put(key, value);
×
617
        return this;
×
618
      }
619

620
      /**
621
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
622
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
623
       * See {@link FinancialAccountFeaturesUpdateParams.InboundTransfers#extraParams} for the field
624
       * documentation.
625
       */
626
      public Builder putAllExtraParam(Map<String, Object> map) {
627
        if (this.extraParams == null) {
×
628
          this.extraParams = new HashMap<>();
×
629
        }
630
        this.extraParams.putAll(map);
×
631
        return this;
×
632
      }
633
    }
634

635
    @Getter
636
    public static class Ach {
637
      /**
638
       * Map of extra parameters for custom features not available in this client library. The
639
       * content in this map is not serialized under this field's {@code @SerializedName} value.
640
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
641
       * name in this param object. Effectively, this map is flattened to its parent instance.
642
       */
643
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
644
      Map<String, Object> extraParams;
645

646
      /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
647
      @SerializedName("requested")
648
      Boolean requested;
649

650
      private Ach(Map<String, Object> extraParams, Boolean requested) {
×
651
        this.extraParams = extraParams;
×
652
        this.requested = requested;
×
653
      }
×
654

655
      public static Builder builder() {
656
        return new Builder();
×
657
      }
658

659
      public static class Builder {
×
660
        private Map<String, Object> extraParams;
661

662
        private Boolean requested;
663

664
        /** Finalize and obtain parameter instance from this builder. */
665
        public FinancialAccountFeaturesUpdateParams.InboundTransfers.Ach build() {
666
          return new FinancialAccountFeaturesUpdateParams.InboundTransfers.Ach(
×
667
              this.extraParams, this.requested);
668
        }
669

670
        /**
671
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
672
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
673
         * map. See {@link FinancialAccountFeaturesUpdateParams.InboundTransfers.Ach#extraParams}
674
         * for the field documentation.
675
         */
676
        public Builder putExtraParam(String key, Object value) {
677
          if (this.extraParams == null) {
×
678
            this.extraParams = new HashMap<>();
×
679
          }
680
          this.extraParams.put(key, value);
×
681
          return this;
×
682
        }
683

684
        /**
685
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
686
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
687
         * map. See {@link FinancialAccountFeaturesUpdateParams.InboundTransfers.Ach#extraParams}
688
         * for the field documentation.
689
         */
690
        public Builder putAllExtraParam(Map<String, Object> map) {
691
          if (this.extraParams == null) {
×
692
            this.extraParams = new HashMap<>();
×
693
          }
694
          this.extraParams.putAll(map);
×
695
          return this;
×
696
        }
697

698
        /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
699
        public Builder setRequested(Boolean requested) {
700
          this.requested = requested;
×
701
          return this;
×
702
        }
703
      }
704
    }
705
  }
706

707
  @Getter
708
  public static class IntraStripeFlows {
709
    /**
710
     * Map of extra parameters for custom features not available in this client library. The content
711
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
712
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
713
     * param object. Effectively, this map is flattened to its parent instance.
714
     */
715
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
716
    Map<String, Object> extraParams;
717

718
    /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
719
    @SerializedName("requested")
720
    Boolean requested;
721

722
    private IntraStripeFlows(Map<String, Object> extraParams, Boolean requested) {
×
723
      this.extraParams = extraParams;
×
724
      this.requested = requested;
×
725
    }
×
726

727
    public static Builder builder() {
728
      return new Builder();
×
729
    }
730

731
    public static class Builder {
×
732
      private Map<String, Object> extraParams;
733

734
      private Boolean requested;
735

736
      /** Finalize and obtain parameter instance from this builder. */
737
      public FinancialAccountFeaturesUpdateParams.IntraStripeFlows build() {
738
        return new FinancialAccountFeaturesUpdateParams.IntraStripeFlows(
×
739
            this.extraParams, this.requested);
740
      }
741

742
      /**
743
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
744
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
745
       * FinancialAccountFeaturesUpdateParams.IntraStripeFlows#extraParams} for the field
746
       * documentation.
747
       */
748
      public Builder putExtraParam(String key, Object value) {
749
        if (this.extraParams == null) {
×
750
          this.extraParams = new HashMap<>();
×
751
        }
752
        this.extraParams.put(key, value);
×
753
        return this;
×
754
      }
755

756
      /**
757
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
758
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
759
       * See {@link FinancialAccountFeaturesUpdateParams.IntraStripeFlows#extraParams} for the field
760
       * documentation.
761
       */
762
      public Builder putAllExtraParam(Map<String, Object> map) {
763
        if (this.extraParams == null) {
×
764
          this.extraParams = new HashMap<>();
×
765
        }
766
        this.extraParams.putAll(map);
×
767
        return this;
×
768
      }
769

770
      /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
771
      public Builder setRequested(Boolean requested) {
772
        this.requested = requested;
×
773
        return this;
×
774
      }
775
    }
776
  }
777

778
  @Getter
779
  public static class OutboundPayments {
780
    /** Enables ACH transfers via the OutboundPayments API. */
781
    @SerializedName("ach")
782
    Ach ach;
783

784
    /**
785
     * Map of extra parameters for custom features not available in this client library. The content
786
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
787
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
788
     * param object. Effectively, this map is flattened to its parent instance.
789
     */
790
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
791
    Map<String, Object> extraParams;
792

793
    /** Enables US domestic wire transfers via the OutboundPayments API. */
794
    @SerializedName("us_domestic_wire")
795
    UsDomesticWire usDomesticWire;
796

797
    private OutboundPayments(
798
        Ach ach, Map<String, Object> extraParams, UsDomesticWire usDomesticWire) {
×
799
      this.ach = ach;
×
800
      this.extraParams = extraParams;
×
801
      this.usDomesticWire = usDomesticWire;
×
802
    }
×
803

804
    public static Builder builder() {
805
      return new Builder();
×
806
    }
807

808
    public static class Builder {
×
809
      private Ach ach;
810

811
      private Map<String, Object> extraParams;
812

813
      private UsDomesticWire usDomesticWire;
814

815
      /** Finalize and obtain parameter instance from this builder. */
816
      public FinancialAccountFeaturesUpdateParams.OutboundPayments build() {
817
        return new FinancialAccountFeaturesUpdateParams.OutboundPayments(
×
818
            this.ach, this.extraParams, this.usDomesticWire);
819
      }
820

821
      /** Enables ACH transfers via the OutboundPayments API. */
822
      public Builder setAch(FinancialAccountFeaturesUpdateParams.OutboundPayments.Ach ach) {
823
        this.ach = ach;
×
824
        return this;
×
825
      }
826

827
      /**
828
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
829
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
830
       * FinancialAccountFeaturesUpdateParams.OutboundPayments#extraParams} for the field
831
       * documentation.
832
       */
833
      public Builder putExtraParam(String key, Object value) {
834
        if (this.extraParams == null) {
×
835
          this.extraParams = new HashMap<>();
×
836
        }
837
        this.extraParams.put(key, value);
×
838
        return this;
×
839
      }
840

841
      /**
842
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
843
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
844
       * See {@link FinancialAccountFeaturesUpdateParams.OutboundPayments#extraParams} for the field
845
       * documentation.
846
       */
847
      public Builder putAllExtraParam(Map<String, Object> map) {
848
        if (this.extraParams == null) {
×
849
          this.extraParams = new HashMap<>();
×
850
        }
851
        this.extraParams.putAll(map);
×
852
        return this;
×
853
      }
854

855
      /** Enables US domestic wire transfers via the OutboundPayments API. */
856
      public Builder setUsDomesticWire(
857
          FinancialAccountFeaturesUpdateParams.OutboundPayments.UsDomesticWire usDomesticWire) {
858
        this.usDomesticWire = usDomesticWire;
×
859
        return this;
×
860
      }
861
    }
862

863
    @Getter
864
    public static class Ach {
865
      /**
866
       * Map of extra parameters for custom features not available in this client library. The
867
       * content in this map is not serialized under this field's {@code @SerializedName} value.
868
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
869
       * name in this param object. Effectively, this map is flattened to its parent instance.
870
       */
871
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
872
      Map<String, Object> extraParams;
873

874
      /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
875
      @SerializedName("requested")
876
      Boolean requested;
877

878
      private Ach(Map<String, Object> extraParams, Boolean requested) {
×
879
        this.extraParams = extraParams;
×
880
        this.requested = requested;
×
881
      }
×
882

883
      public static Builder builder() {
884
        return new Builder();
×
885
      }
886

887
      public static class Builder {
×
888
        private Map<String, Object> extraParams;
889

890
        private Boolean requested;
891

892
        /** Finalize and obtain parameter instance from this builder. */
893
        public FinancialAccountFeaturesUpdateParams.OutboundPayments.Ach build() {
894
          return new FinancialAccountFeaturesUpdateParams.OutboundPayments.Ach(
×
895
              this.extraParams, this.requested);
896
        }
897

898
        /**
899
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
900
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
901
         * map. See {@link FinancialAccountFeaturesUpdateParams.OutboundPayments.Ach#extraParams}
902
         * for the field documentation.
903
         */
904
        public Builder putExtraParam(String key, Object value) {
905
          if (this.extraParams == null) {
×
906
            this.extraParams = new HashMap<>();
×
907
          }
908
          this.extraParams.put(key, value);
×
909
          return this;
×
910
        }
911

912
        /**
913
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
914
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
915
         * map. See {@link FinancialAccountFeaturesUpdateParams.OutboundPayments.Ach#extraParams}
916
         * for the field documentation.
917
         */
918
        public Builder putAllExtraParam(Map<String, Object> map) {
919
          if (this.extraParams == null) {
×
920
            this.extraParams = new HashMap<>();
×
921
          }
922
          this.extraParams.putAll(map);
×
923
          return this;
×
924
        }
925

926
        /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
927
        public Builder setRequested(Boolean requested) {
928
          this.requested = requested;
×
929
          return this;
×
930
        }
931
      }
932
    }
933

934
    @Getter
935
    public static class UsDomesticWire {
936
      /**
937
       * Map of extra parameters for custom features not available in this client library. The
938
       * content in this map is not serialized under this field's {@code @SerializedName} value.
939
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
940
       * name in this param object. Effectively, this map is flattened to its parent instance.
941
       */
942
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
943
      Map<String, Object> extraParams;
944

945
      /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
946
      @SerializedName("requested")
947
      Boolean requested;
948

949
      private UsDomesticWire(Map<String, Object> extraParams, Boolean requested) {
×
950
        this.extraParams = extraParams;
×
951
        this.requested = requested;
×
952
      }
×
953

954
      public static Builder builder() {
955
        return new Builder();
×
956
      }
957

958
      public static class Builder {
×
959
        private Map<String, Object> extraParams;
960

961
        private Boolean requested;
962

963
        /** Finalize and obtain parameter instance from this builder. */
964
        public FinancialAccountFeaturesUpdateParams.OutboundPayments.UsDomesticWire build() {
965
          return new FinancialAccountFeaturesUpdateParams.OutboundPayments.UsDomesticWire(
×
966
              this.extraParams, this.requested);
967
        }
968

969
        /**
970
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
971
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
972
         * map. See {@link
973
         * FinancialAccountFeaturesUpdateParams.OutboundPayments.UsDomesticWire#extraParams} for the
974
         * field documentation.
975
         */
976
        public Builder putExtraParam(String key, Object value) {
977
          if (this.extraParams == null) {
×
978
            this.extraParams = new HashMap<>();
×
979
          }
980
          this.extraParams.put(key, value);
×
981
          return this;
×
982
        }
983

984
        /**
985
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
986
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
987
         * map. See {@link
988
         * FinancialAccountFeaturesUpdateParams.OutboundPayments.UsDomesticWire#extraParams} for the
989
         * field documentation.
990
         */
991
        public Builder putAllExtraParam(Map<String, Object> map) {
992
          if (this.extraParams == null) {
×
993
            this.extraParams = new HashMap<>();
×
994
          }
995
          this.extraParams.putAll(map);
×
996
          return this;
×
997
        }
998

999
        /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
1000
        public Builder setRequested(Boolean requested) {
1001
          this.requested = requested;
×
1002
          return this;
×
1003
        }
1004
      }
1005
    }
1006
  }
1007

1008
  @Getter
1009
  public static class OutboundTransfers {
1010
    /** Enables ACH transfers via the OutboundTransfers API. */
1011
    @SerializedName("ach")
1012
    Ach ach;
1013

1014
    /**
1015
     * Map of extra parameters for custom features not available in this client library. The content
1016
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
1017
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
1018
     * param object. Effectively, this map is flattened to its parent instance.
1019
     */
1020
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1021
    Map<String, Object> extraParams;
1022

1023
    /** Enables US domestic wire transfers via the OutboundTransfers API. */
1024
    @SerializedName("us_domestic_wire")
1025
    UsDomesticWire usDomesticWire;
1026

1027
    private OutboundTransfers(
1028
        Ach ach, Map<String, Object> extraParams, UsDomesticWire usDomesticWire) {
×
1029
      this.ach = ach;
×
1030
      this.extraParams = extraParams;
×
1031
      this.usDomesticWire = usDomesticWire;
×
1032
    }
×
1033

1034
    public static Builder builder() {
1035
      return new Builder();
×
1036
    }
1037

1038
    public static class Builder {
×
1039
      private Ach ach;
1040

1041
      private Map<String, Object> extraParams;
1042

1043
      private UsDomesticWire usDomesticWire;
1044

1045
      /** Finalize and obtain parameter instance from this builder. */
1046
      public FinancialAccountFeaturesUpdateParams.OutboundTransfers build() {
1047
        return new FinancialAccountFeaturesUpdateParams.OutboundTransfers(
×
1048
            this.ach, this.extraParams, this.usDomesticWire);
1049
      }
1050

1051
      /** Enables ACH transfers via the OutboundTransfers API. */
1052
      public Builder setAch(FinancialAccountFeaturesUpdateParams.OutboundTransfers.Ach ach) {
1053
        this.ach = ach;
×
1054
        return this;
×
1055
      }
1056

1057
      /**
1058
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
1059
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
1060
       * FinancialAccountFeaturesUpdateParams.OutboundTransfers#extraParams} for the field
1061
       * documentation.
1062
       */
1063
      public Builder putExtraParam(String key, Object value) {
1064
        if (this.extraParams == null) {
×
1065
          this.extraParams = new HashMap<>();
×
1066
        }
1067
        this.extraParams.put(key, value);
×
1068
        return this;
×
1069
      }
1070

1071
      /**
1072
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1073
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
1074
       * See {@link FinancialAccountFeaturesUpdateParams.OutboundTransfers#extraParams} for the
1075
       * field documentation.
1076
       */
1077
      public Builder putAllExtraParam(Map<String, Object> map) {
1078
        if (this.extraParams == null) {
×
1079
          this.extraParams = new HashMap<>();
×
1080
        }
1081
        this.extraParams.putAll(map);
×
1082
        return this;
×
1083
      }
1084

1085
      /** Enables US domestic wire transfers via the OutboundTransfers API. */
1086
      public Builder setUsDomesticWire(
1087
          FinancialAccountFeaturesUpdateParams.OutboundTransfers.UsDomesticWire usDomesticWire) {
1088
        this.usDomesticWire = usDomesticWire;
×
1089
        return this;
×
1090
      }
1091
    }
1092

1093
    @Getter
1094
    public static class Ach {
1095
      /**
1096
       * Map of extra parameters for custom features not available in this client library. The
1097
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1098
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1099
       * name in this param object. Effectively, this map is flattened to its parent instance.
1100
       */
1101
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1102
      Map<String, Object> extraParams;
1103

1104
      /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
1105
      @SerializedName("requested")
1106
      Boolean requested;
1107

1108
      private Ach(Map<String, Object> extraParams, Boolean requested) {
×
1109
        this.extraParams = extraParams;
×
1110
        this.requested = requested;
×
1111
      }
×
1112

1113
      public static Builder builder() {
1114
        return new Builder();
×
1115
      }
1116

1117
      public static class Builder {
×
1118
        private Map<String, Object> extraParams;
1119

1120
        private Boolean requested;
1121

1122
        /** Finalize and obtain parameter instance from this builder. */
1123
        public FinancialAccountFeaturesUpdateParams.OutboundTransfers.Ach build() {
1124
          return new FinancialAccountFeaturesUpdateParams.OutboundTransfers.Ach(
×
1125
              this.extraParams, this.requested);
1126
        }
1127

1128
        /**
1129
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1130
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1131
         * map. See {@link FinancialAccountFeaturesUpdateParams.OutboundTransfers.Ach#extraParams}
1132
         * for the field documentation.
1133
         */
1134
        public Builder putExtraParam(String key, Object value) {
1135
          if (this.extraParams == null) {
×
1136
            this.extraParams = new HashMap<>();
×
1137
          }
1138
          this.extraParams.put(key, value);
×
1139
          return this;
×
1140
        }
1141

1142
        /**
1143
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1144
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1145
         * map. See {@link FinancialAccountFeaturesUpdateParams.OutboundTransfers.Ach#extraParams}
1146
         * for the field documentation.
1147
         */
1148
        public Builder putAllExtraParam(Map<String, Object> map) {
1149
          if (this.extraParams == null) {
×
1150
            this.extraParams = new HashMap<>();
×
1151
          }
1152
          this.extraParams.putAll(map);
×
1153
          return this;
×
1154
        }
1155

1156
        /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
1157
        public Builder setRequested(Boolean requested) {
1158
          this.requested = requested;
×
1159
          return this;
×
1160
        }
1161
      }
1162
    }
1163

1164
    @Getter
1165
    public static class UsDomesticWire {
1166
      /**
1167
       * Map of extra parameters for custom features not available in this client library. The
1168
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1169
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1170
       * name in this param object. Effectively, this map is flattened to its parent instance.
1171
       */
1172
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1173
      Map<String, Object> extraParams;
1174

1175
      /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
1176
      @SerializedName("requested")
1177
      Boolean requested;
1178

1179
      private UsDomesticWire(Map<String, Object> extraParams, Boolean requested) {
×
1180
        this.extraParams = extraParams;
×
1181
        this.requested = requested;
×
1182
      }
×
1183

1184
      public static Builder builder() {
1185
        return new Builder();
×
1186
      }
1187

1188
      public static class Builder {
×
1189
        private Map<String, Object> extraParams;
1190

1191
        private Boolean requested;
1192

1193
        /** Finalize and obtain parameter instance from this builder. */
1194
        public FinancialAccountFeaturesUpdateParams.OutboundTransfers.UsDomesticWire build() {
1195
          return new FinancialAccountFeaturesUpdateParams.OutboundTransfers.UsDomesticWire(
×
1196
              this.extraParams, this.requested);
1197
        }
1198

1199
        /**
1200
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1201
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1202
         * map. See {@link
1203
         * FinancialAccountFeaturesUpdateParams.OutboundTransfers.UsDomesticWire#extraParams} for
1204
         * the field documentation.
1205
         */
1206
        public Builder putExtraParam(String key, Object value) {
1207
          if (this.extraParams == null) {
×
1208
            this.extraParams = new HashMap<>();
×
1209
          }
1210
          this.extraParams.put(key, value);
×
1211
          return this;
×
1212
        }
1213

1214
        /**
1215
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1216
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1217
         * map. See {@link
1218
         * FinancialAccountFeaturesUpdateParams.OutboundTransfers.UsDomesticWire#extraParams} for
1219
         * the field documentation.
1220
         */
1221
        public Builder putAllExtraParam(Map<String, Object> map) {
1222
          if (this.extraParams == null) {
×
1223
            this.extraParams = new HashMap<>();
×
1224
          }
1225
          this.extraParams.putAll(map);
×
1226
          return this;
×
1227
        }
1228

1229
        /** <strong>Required.</strong> Whether the FinancialAccount should have the Feature. */
1230
        public Builder setRequested(Boolean requested) {
1231
          this.requested = requested;
×
1232
          return this;
×
1233
        }
1234
      }
1235
    }
1236
  }
1237
}
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