• 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

31.6
/src/main/java/com/stripe/model/Charge.java
1
// File generated from our OpenAPI spec
2
package com.stripe.model;
3

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.exception.StripeException;
6
import com.stripe.net.ApiRequest;
7
import com.stripe.net.ApiRequestParams;
8
import com.stripe.net.ApiResource;
9
import com.stripe.net.BaseAddress;
10
import com.stripe.net.RequestOptions;
11
import com.stripe.net.StripeResponseGetter;
12
import com.stripe.param.ChargeCaptureParams;
13
import com.stripe.param.ChargeCreateParams;
14
import com.stripe.param.ChargeListParams;
15
import com.stripe.param.ChargeRetrieveParams;
16
import com.stripe.param.ChargeSearchParams;
17
import com.stripe.param.ChargeUpdateParams;
18
import java.util.List;
19
import java.util.Map;
20
import lombok.EqualsAndHashCode;
21
import lombok.Getter;
22
import lombok.Setter;
23

24
/**
25
 * The {@code Charge} object represents a single attempt to move money into your Stripe account.
26
 * PaymentIntent confirmation is the most common way to create Charges, but transferring money to a
27
 * different Stripe account through Connect also creates Charges. Some legacy payment flows create
28
 * Charges directly, which is not recommended for new integrations.
29
 */
30
@Getter
31
@Setter
32
@EqualsAndHashCode(callSuper = false)
33
public class Charge extends ApiResource implements MetadataStore<Charge>, BalanceTransactionSource {
1✔
34
  /**
35
   * Amount intended to be collected by this payment. A positive integer representing how much to
36
   * charge in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency
37
   * unit</a> (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The
38
   * minimum amount is $0.50 US or <a
39
   * href="https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts">equivalent in
40
   * charge currency</a>. The amount value supports up to eight digits (e.g., a value of 99999999
41
   * for a USD charge of $999,999.99).
42
   */
43
  @SerializedName("amount")
44
  Long amount;
45

46
  /**
47
   * Amount in cents (or local equivalent) captured (can be less than the amount attribute on the
48
   * charge if a partial capture was made).
49
   */
50
  @SerializedName("amount_captured")
51
  Long amountCaptured;
52

53
  /**
54
   * Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the
55
   * charge if a partial refund was issued).
56
   */
57
  @SerializedName("amount_refunded")
58
  Long amountRefunded;
59

60
  /** ID of the Connect application that created the charge. */
61
  @SerializedName("application")
62
  @Getter(lombok.AccessLevel.NONE)
63
  @Setter(lombok.AccessLevel.NONE)
64
  ExpandableField<Application> application;
65

66
  /**
67
   * The application fee (if any) for the charge. <a
68
   * href="https://stripe.com/docs/connect/direct-charges#collect-fees">See the Connect
69
   * documentation</a> for details.
70
   */
71
  @SerializedName("application_fee")
72
  @Getter(lombok.AccessLevel.NONE)
73
  @Setter(lombok.AccessLevel.NONE)
74
  ExpandableField<ApplicationFee> applicationFee;
75

76
  /**
77
   * The amount of the application fee (if any) requested for the charge. <a
78
   * href="https://stripe.com/docs/connect/direct-charges#collect-fees">See the Connect
79
   * documentation</a> for details.
80
   */
81
  @SerializedName("application_fee_amount")
82
  Long applicationFeeAmount;
83

84
  /** Authorization code on the charge. */
85
  @SerializedName("authorization_code")
86
  String authorizationCode;
87

88
  /**
89
   * ID of the balance transaction that describes the impact of this charge on your account balance
90
   * (not including refunds or disputes).
91
   */
92
  @SerializedName("balance_transaction")
93
  @Getter(lombok.AccessLevel.NONE)
94
  @Setter(lombok.AccessLevel.NONE)
95
  ExpandableField<BalanceTransaction> balanceTransaction;
96

97
  @SerializedName("billing_details")
98
  BillingDetails billingDetails;
99

100
  /**
101
   * The full statement descriptor that is passed to card networks, and that is displayed on your
102
   * customers' credit card and bank statements. Allows you to see what the statement descriptor
103
   * looks like after the static and dynamic portions are combined. This value only exists for card
104
   * payments.
105
   */
106
  @SerializedName("calculated_statement_descriptor")
107
  String calculatedStatementDescriptor;
108

109
  /**
110
   * If the charge was created without capturing, this Boolean represents whether it is still
111
   * uncaptured or has since been captured.
112
   */
113
  @SerializedName("captured")
114
  Boolean captured;
115

116
  /** Time at which the object was created. Measured in seconds since the Unix epoch. */
117
  @SerializedName("created")
118
  Long created;
119

120
  /**
121
   * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>,
122
   * in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
123
   */
124
  @SerializedName("currency")
125
  String currency;
126

127
  /** ID of the customer this charge is for if one exists. */
128
  @SerializedName("customer")
129
  @Getter(lombok.AccessLevel.NONE)
130
  @Setter(lombok.AccessLevel.NONE)
131
  ExpandableField<Customer> customer;
132

133
  /** An arbitrary string attached to the object. Often useful for displaying to users. */
134
  @SerializedName("description")
135
  String description;
136

137
  /** Whether the charge has been disputed. */
138
  @SerializedName("disputed")
139
  Boolean disputed;
140

141
  /**
142
   * ID of the balance transaction that describes the reversal of the balance on your account due to
143
   * payment failure.
144
   */
145
  @SerializedName("failure_balance_transaction")
146
  @Getter(lombok.AccessLevel.NONE)
147
  @Setter(lombok.AccessLevel.NONE)
148
  ExpandableField<BalanceTransaction> failureBalanceTransaction;
149

150
  /**
151
   * Error code explaining reason for charge failure if available (see <a
152
   * href="https://stripe.com/docs/error-codes">the errors section</a> for a list of codes).
153
   */
154
  @SerializedName("failure_code")
155
  String failureCode;
156

157
  /** Message to user further explaining reason for charge failure if available. */
158
  @SerializedName("failure_message")
159
  String failureMessage;
160

161
  /** Information on fraud assessments for the charge. */
162
  @SerializedName("fraud_details")
163
  FraudDetails fraudDetails;
164

165
  /** Unique identifier for the object. */
166
  @Getter(onMethod_ = {@Override})
167
  @SerializedName("id")
168
  String id;
169

170
  /** ID of the invoice this charge is for if one exists. */
171
  @SerializedName("invoice")
172
  @Getter(lombok.AccessLevel.NONE)
173
  @Setter(lombok.AccessLevel.NONE)
174
  ExpandableField<Invoice> invoice;
175

176
  @SerializedName("level3")
177
  Level3 level3;
178

179
  /**
180
   * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
181
   * object exists in test mode.
182
   */
183
  @SerializedName("livemode")
184
  Boolean livemode;
185

186
  /**
187
   * Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach
188
   * to an object. This can be useful for storing additional information about the object in a
189
   * structured format.
190
   */
191
  @Getter(onMethod_ = {@Override})
192
  @SerializedName("metadata")
193
  Map<String, String> metadata;
194

195
  /**
196
   * String representing the object's type. Objects of the same type share the same value.
197
   *
198
   * <p>Equal to {@code charge}.
199
   */
200
  @SerializedName("object")
201
  String object;
202

203
  /**
204
   * The account (if any) the charge was made on behalf of without triggering an automatic transfer.
205
   * See the <a href="https://stripe.com/docs/connect/separate-charges-and-transfers">Connect
206
   * documentation</a> for details.
207
   */
208
  @SerializedName("on_behalf_of")
209
  @Getter(lombok.AccessLevel.NONE)
210
  @Setter(lombok.AccessLevel.NONE)
211
  ExpandableField<Account> onBehalfOf;
212

213
  /**
214
   * Details about whether the payment was accepted, and why. See <a
215
   * href="https://stripe.com/docs/declines">understanding declines</a> for details.
216
   */
217
  @SerializedName("outcome")
218
  Outcome outcome;
219

220
  /** {@code true} if the charge succeeded, or was successfully authorized for later capture. */
221
  @SerializedName("paid")
222
  Boolean paid;
223

224
  /** ID of the PaymentIntent associated with this charge, if one exists. */
225
  @SerializedName("payment_intent")
226
  @Getter(lombok.AccessLevel.NONE)
227
  @Setter(lombok.AccessLevel.NONE)
228
  ExpandableField<PaymentIntent> paymentIntent;
229

230
  /** ID of the payment method used in this charge. */
231
  @SerializedName("payment_method")
232
  String paymentMethod;
233

234
  /** Details about the payment method at the time of the transaction. */
235
  @SerializedName("payment_method_details")
236
  PaymentMethodDetails paymentMethodDetails;
237

238
  /**
239
   * Options to configure Radar. See <a href="https://stripe.com/docs/radar/radar-session">Radar
240
   * Session</a> for more information.
241
   */
242
  @SerializedName("radar_options")
243
  RadarOptions radarOptions;
244

245
  /** This is the email address that the receipt for this charge was sent to. */
246
  @SerializedName("receipt_email")
247
  String receiptEmail;
248

249
  /**
250
   * This is the transaction number that appears on email receipts sent for this charge. This
251
   * attribute will be {@code null} until a receipt has been sent.
252
   */
253
  @SerializedName("receipt_number")
254
  String receiptNumber;
255

256
  /**
257
   * This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the
258
   * latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt
259
   * will be stylized as an Invoice receipt.
260
   */
261
  @SerializedName("receipt_url")
262
  String receiptUrl;
263

264
  /**
265
   * Whether the charge has been fully refunded. If the charge is only partially refunded, this
266
   * attribute will still be false.
267
   */
268
  @SerializedName("refunded")
269
  Boolean refunded;
270

271
  /** A list of refunds that have been applied to the charge. */
272
  @SerializedName("refunds")
273
  RefundCollection refunds;
274

275
  /** ID of the review associated with this charge if one exists. */
276
  @SerializedName("review")
277
  @Getter(lombok.AccessLevel.NONE)
278
  @Setter(lombok.AccessLevel.NONE)
279
  ExpandableField<Review> review;
280

281
  /** Shipping information for the charge. */
282
  @SerializedName("shipping")
283
  ShippingDetails shipping;
284

285
  /**
286
   * This is a legacy field that will be removed in the future. It contains the Source, Card, or
287
   * BankAccount object used for the charge. For details about the payment method used for this
288
   * charge, refer to {@code payment_method} or {@code payment_method_details} instead.
289
   */
290
  @SerializedName("source")
291
  PaymentSource source;
292

293
  /**
294
   * The transfer ID which created this charge. Only present if the charge came from another Stripe
295
   * account. <a href="https://docs.stripe.com/connect/destination-charges">See the Connect
296
   * documentation</a> for details.
297
   */
298
  @SerializedName("source_transfer")
299
  @Getter(lombok.AccessLevel.NONE)
300
  @Setter(lombok.AccessLevel.NONE)
301
  ExpandableField<Transfer> sourceTransfer;
302

303
  /**
304
   * For a non-card charge, text that appears on the customer's statement as the statement
305
   * descriptor. This value overrides the account's default statement descriptor. For information
306
   * about requirements, including the 22-character limit, see <a
307
   * href="https://docs.stripe.com/get-started/account/statement-descriptors">the Statement
308
   * Descriptor docs</a>.
309
   *
310
   * <p>For a card charge, this value is ignored unless you don't specify a {@code
311
   * statement_descriptor_suffix}, in which case this value is used as the suffix.
312
   */
313
  @SerializedName("statement_descriptor")
314
  String statementDescriptor;
315

316
  /**
317
   * Provides information about a card charge. Concatenated to the account's <a
318
   * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement
319
   * descriptor prefix</a> to form the complete statement descriptor that appears on the customer's
320
   * statement. If the account has no prefix value, the suffix is concatenated to the account's
321
   * statement descriptor.
322
   */
323
  @SerializedName("statement_descriptor_suffix")
324
  String statementDescriptorSuffix;
325

326
  /**
327
   * The status of the payment is either {@code succeeded}, {@code pending}, or {@code failed}.
328
   *
329
   * <p>One of {@code failed}, {@code pending}, or {@code succeeded}.
330
   */
331
  @SerializedName("status")
332
  String status;
333

334
  /**
335
   * ID of the transfer to the {@code destination} account (only applicable if the charge was
336
   * created using the {@code destination} parameter).
337
   */
338
  @SerializedName("transfer")
339
  @Getter(lombok.AccessLevel.NONE)
340
  @Setter(lombok.AccessLevel.NONE)
341
  ExpandableField<Transfer> transfer;
342

343
  /**
344
   * An optional dictionary including the account to automatically transfer to as part of a
345
   * destination charge. <a href="https://stripe.com/docs/connect/destination-charges">See the
346
   * Connect documentation</a> for details.
347
   */
348
  @SerializedName("transfer_data")
349
  TransferData transferData;
350

351
  /**
352
   * A string that identifies this transaction as part of a group. See the <a
353
   * href="https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options">Connect
354
   * documentation</a> for details.
355
   */
356
  @SerializedName("transfer_group")
357
  String transferGroup;
358

359
  /** Get ID of expandable {@code application} object. */
360
  public String getApplication() {
361
    return (this.application != null) ? this.application.getId() : null;
1✔
362
  }
363

364
  public void setApplication(String id) {
365
    this.application = ApiResource.setExpandableFieldId(id, this.application);
×
366
  }
×
367

368
  /** Get expanded {@code application}. */
369
  public Application getApplicationObject() {
370
    return (this.application != null) ? this.application.getExpanded() : null;
1✔
371
  }
372

373
  public void setApplicationObject(Application expandableObject) {
374
    this.application = new ExpandableField<Application>(expandableObject.getId(), expandableObject);
×
375
  }
×
376

377
  /** Get ID of expandable {@code applicationFee} object. */
378
  public String getApplicationFee() {
379
    return (this.applicationFee != null) ? this.applicationFee.getId() : null;
×
380
  }
381

382
  public void setApplicationFee(String id) {
383
    this.applicationFee = ApiResource.setExpandableFieldId(id, this.applicationFee);
×
384
  }
×
385

386
  /** Get expanded {@code applicationFee}. */
387
  public ApplicationFee getApplicationFeeObject() {
388
    return (this.applicationFee != null) ? this.applicationFee.getExpanded() : null;
1✔
389
  }
390

391
  public void setApplicationFeeObject(ApplicationFee expandableObject) {
392
    this.applicationFee =
×
393
        new ExpandableField<ApplicationFee>(expandableObject.getId(), expandableObject);
×
394
  }
×
395

396
  /** Get ID of expandable {@code balanceTransaction} object. */
397
  public String getBalanceTransaction() {
398
    return (this.balanceTransaction != null) ? this.balanceTransaction.getId() : null;
1✔
399
  }
400

401
  public void setBalanceTransaction(String id) {
402
    this.balanceTransaction = ApiResource.setExpandableFieldId(id, this.balanceTransaction);
×
403
  }
×
404

405
  /** Get expanded {@code balanceTransaction}. */
406
  public BalanceTransaction getBalanceTransactionObject() {
407
    return (this.balanceTransaction != null) ? this.balanceTransaction.getExpanded() : null;
1✔
408
  }
409

410
  public void setBalanceTransactionObject(BalanceTransaction expandableObject) {
411
    this.balanceTransaction =
×
412
        new ExpandableField<BalanceTransaction>(expandableObject.getId(), expandableObject);
×
413
  }
×
414

415
  /** Get ID of expandable {@code customer} object. */
416
  public String getCustomer() {
417
    return (this.customer != null) ? this.customer.getId() : null;
1✔
418
  }
419

420
  public void setCustomer(String id) {
421
    this.customer = ApiResource.setExpandableFieldId(id, this.customer);
×
422
  }
×
423

424
  /** Get expanded {@code customer}. */
425
  public Customer getCustomerObject() {
426
    return (this.customer != null) ? this.customer.getExpanded() : null;
1✔
427
  }
428

429
  public void setCustomerObject(Customer expandableObject) {
430
    this.customer = new ExpandableField<Customer>(expandableObject.getId(), expandableObject);
×
431
  }
×
432

433
  /** Get ID of expandable {@code failureBalanceTransaction} object. */
434
  public String getFailureBalanceTransaction() {
435
    return (this.failureBalanceTransaction != null) ? this.failureBalanceTransaction.getId() : null;
×
436
  }
437

438
  public void setFailureBalanceTransaction(String id) {
439
    this.failureBalanceTransaction =
×
440
        ApiResource.setExpandableFieldId(id, this.failureBalanceTransaction);
×
441
  }
×
442

443
  /** Get expanded {@code failureBalanceTransaction}. */
444
  public BalanceTransaction getFailureBalanceTransactionObject() {
445
    return (this.failureBalanceTransaction != null)
×
446
        ? this.failureBalanceTransaction.getExpanded()
×
447
        : null;
×
448
  }
449

450
  public void setFailureBalanceTransactionObject(BalanceTransaction expandableObject) {
451
    this.failureBalanceTransaction =
×
452
        new ExpandableField<BalanceTransaction>(expandableObject.getId(), expandableObject);
×
453
  }
×
454

455
  /** Get ID of expandable {@code invoice} object. */
456
  public String getInvoice() {
457
    return (this.invoice != null) ? this.invoice.getId() : null;
1✔
458
  }
459

460
  public void setInvoice(String id) {
461
    this.invoice = ApiResource.setExpandableFieldId(id, this.invoice);
×
462
  }
×
463

464
  /** Get expanded {@code invoice}. */
465
  public Invoice getInvoiceObject() {
466
    return (this.invoice != null) ? this.invoice.getExpanded() : null;
1✔
467
  }
468

469
  public void setInvoiceObject(Invoice expandableObject) {
470
    this.invoice = new ExpandableField<Invoice>(expandableObject.getId(), expandableObject);
×
471
  }
×
472

473
  /** Get ID of expandable {@code onBehalfOf} object. */
474
  public String getOnBehalfOf() {
475
    return (this.onBehalfOf != null) ? this.onBehalfOf.getId() : null;
1✔
476
  }
477

478
  public void setOnBehalfOf(String id) {
479
    this.onBehalfOf = ApiResource.setExpandableFieldId(id, this.onBehalfOf);
×
480
  }
×
481

482
  /** Get expanded {@code onBehalfOf}. */
483
  public Account getOnBehalfOfObject() {
484
    return (this.onBehalfOf != null) ? this.onBehalfOf.getExpanded() : null;
1✔
485
  }
486

487
  public void setOnBehalfOfObject(Account expandableObject) {
488
    this.onBehalfOf = new ExpandableField<Account>(expandableObject.getId(), expandableObject);
×
489
  }
×
490

491
  /** Get ID of expandable {@code paymentIntent} object. */
492
  public String getPaymentIntent() {
493
    return (this.paymentIntent != null) ? this.paymentIntent.getId() : null;
×
494
  }
495

496
  public void setPaymentIntent(String id) {
497
    this.paymentIntent = ApiResource.setExpandableFieldId(id, this.paymentIntent);
×
498
  }
×
499

500
  /** Get expanded {@code paymentIntent}. */
501
  public PaymentIntent getPaymentIntentObject() {
502
    return (this.paymentIntent != null) ? this.paymentIntent.getExpanded() : null;
×
503
  }
504

505
  public void setPaymentIntentObject(PaymentIntent expandableObject) {
506
    this.paymentIntent =
×
507
        new ExpandableField<PaymentIntent>(expandableObject.getId(), expandableObject);
×
508
  }
×
509

510
  /** Get ID of expandable {@code review} object. */
511
  public String getReview() {
512
    return (this.review != null) ? this.review.getId() : null;
1✔
513
  }
514

515
  public void setReview(String id) {
516
    this.review = ApiResource.setExpandableFieldId(id, this.review);
×
517
  }
×
518

519
  /** Get expanded {@code review}. */
520
  public Review getReviewObject() {
521
    return (this.review != null) ? this.review.getExpanded() : null;
1✔
522
  }
523

524
  public void setReviewObject(Review expandableObject) {
525
    this.review = new ExpandableField<Review>(expandableObject.getId(), expandableObject);
×
526
  }
×
527

528
  /** Get ID of expandable {@code sourceTransfer} object. */
529
  public String getSourceTransfer() {
530
    return (this.sourceTransfer != null) ? this.sourceTransfer.getId() : null;
1✔
531
  }
532

533
  public void setSourceTransfer(String id) {
534
    this.sourceTransfer = ApiResource.setExpandableFieldId(id, this.sourceTransfer);
×
535
  }
×
536

537
  /** Get expanded {@code sourceTransfer}. */
538
  public Transfer getSourceTransferObject() {
539
    return (this.sourceTransfer != null) ? this.sourceTransfer.getExpanded() : null;
1✔
540
  }
541

542
  public void setSourceTransferObject(Transfer expandableObject) {
543
    this.sourceTransfer = new ExpandableField<Transfer>(expandableObject.getId(), expandableObject);
×
544
  }
×
545

546
  /** Get ID of expandable {@code transfer} object. */
547
  public String getTransfer() {
548
    return (this.transfer != null) ? this.transfer.getId() : null;
1✔
549
  }
550

551
  public void setTransfer(String id) {
552
    this.transfer = ApiResource.setExpandableFieldId(id, this.transfer);
×
553
  }
×
554

555
  /** Get expanded {@code transfer}. */
556
  public Transfer getTransferObject() {
557
    return (this.transfer != null) ? this.transfer.getExpanded() : null;
1✔
558
  }
559

560
  public void setTransferObject(Transfer expandableObject) {
561
    this.transfer = new ExpandableField<Transfer>(expandableObject.getId(), expandableObject);
×
562
  }
×
563

564
  /**
565
   * Capture the payment of an existing, uncaptured charge that was created with the {@code capture}
566
   * option set to false.
567
   *
568
   * <p>Uncaptured payments expire a set number of days after they are created (<a
569
   * href="https://stripe.com/docs/charges/placing-a-hold">7 by default</a>), after which they are
570
   * marked as refunded and capture attempts will fail.
571
   *
572
   * <p>Don’t use this method to capture a PaymentIntent-initiated charge. Use <a
573
   * href="https://stripe.com/docs/api/payment_intents/capture">Capture a PaymentIntent</a>.
574
   */
575
  public Charge capture() throws StripeException {
576
    return capture((Map<String, Object>) null, (RequestOptions) null);
×
577
  }
578

579
  /**
580
   * Capture the payment of an existing, uncaptured charge that was created with the {@code capture}
581
   * option set to false.
582
   *
583
   * <p>Uncaptured payments expire a set number of days after they are created (<a
584
   * href="https://stripe.com/docs/charges/placing-a-hold">7 by default</a>), after which they are
585
   * marked as refunded and capture attempts will fail.
586
   *
587
   * <p>Don’t use this method to capture a PaymentIntent-initiated charge. Use <a
588
   * href="https://stripe.com/docs/api/payment_intents/capture">Capture a PaymentIntent</a>.
589
   */
590
  public Charge capture(RequestOptions options) throws StripeException {
591
    return capture((Map<String, Object>) null, options);
×
592
  }
593

594
  /**
595
   * Capture the payment of an existing, uncaptured charge that was created with the {@code capture}
596
   * option set to false.
597
   *
598
   * <p>Uncaptured payments expire a set number of days after they are created (<a
599
   * href="https://stripe.com/docs/charges/placing-a-hold">7 by default</a>), after which they are
600
   * marked as refunded and capture attempts will fail.
601
   *
602
   * <p>Don’t use this method to capture a PaymentIntent-initiated charge. Use <a
603
   * href="https://stripe.com/docs/api/payment_intents/capture">Capture a PaymentIntent</a>.
604
   */
605
  public Charge capture(Map<String, Object> params) throws StripeException {
606
    return capture(params, (RequestOptions) null);
×
607
  }
608

609
  /**
610
   * Capture the payment of an existing, uncaptured charge that was created with the {@code capture}
611
   * option set to false.
612
   *
613
   * <p>Uncaptured payments expire a set number of days after they are created (<a
614
   * href="https://stripe.com/docs/charges/placing-a-hold">7 by default</a>), after which they are
615
   * marked as refunded and capture attempts will fail.
616
   *
617
   * <p>Don’t use this method to capture a PaymentIntent-initiated charge. Use <a
618
   * href="https://stripe.com/docs/api/payment_intents/capture">Capture a PaymentIntent</a>.
619
   */
620
  public Charge capture(Map<String, Object> params, RequestOptions options) throws StripeException {
621
    String path = String.format("/v1/charges/%s/capture", ApiResource.urlEncodeId(this.getId()));
×
622
    ApiRequest request =
×
623
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
624
    return getResponseGetter().request(request, Charge.class);
×
625
  }
626

627
  /**
628
   * Capture the payment of an existing, uncaptured charge that was created with the {@code capture}
629
   * option set to false.
630
   *
631
   * <p>Uncaptured payments expire a set number of days after they are created (<a
632
   * href="https://stripe.com/docs/charges/placing-a-hold">7 by default</a>), after which they are
633
   * marked as refunded and capture attempts will fail.
634
   *
635
   * <p>Don’t use this method to capture a PaymentIntent-initiated charge. Use <a
636
   * href="https://stripe.com/docs/api/payment_intents/capture">Capture a PaymentIntent</a>.
637
   */
638
  public Charge capture(ChargeCaptureParams params) throws StripeException {
639
    return capture(params, (RequestOptions) null);
1✔
640
  }
641

642
  /**
643
   * Capture the payment of an existing, uncaptured charge that was created with the {@code capture}
644
   * option set to false.
645
   *
646
   * <p>Uncaptured payments expire a set number of days after they are created (<a
647
   * href="https://stripe.com/docs/charges/placing-a-hold">7 by default</a>), after which they are
648
   * marked as refunded and capture attempts will fail.
649
   *
650
   * <p>Don’t use this method to capture a PaymentIntent-initiated charge. Use <a
651
   * href="https://stripe.com/docs/api/payment_intents/capture">Capture a PaymentIntent</a>.
652
   */
653
  public Charge capture(ChargeCaptureParams params, RequestOptions options) throws StripeException {
654
    String path = String.format("/v1/charges/%s/capture", ApiResource.urlEncodeId(this.getId()));
1✔
655
    ApiResource.checkNullTypedParams(path, params);
1✔
656
    ApiRequest request =
1✔
657
        new ApiRequest(
658
            BaseAddress.API,
659
            ApiResource.RequestMethod.POST,
660
            path,
661
            ApiRequestParams.paramsToMap(params),
1✔
662
            options);
663
    return getResponseGetter().request(request, Charge.class);
1✔
664
  }
665

666
  /**
667
   * This method is no longer recommended—use the <a
668
   * href="https://stripe.com/docs/api/payment_intents">Payment Intents API</a> to initiate a new
669
   * payment instead. Confirmation of the PaymentIntent creates the {@code Charge} object used to
670
   * request payment.
671
   */
672
  public static Charge create(Map<String, Object> params) throws StripeException {
673
    return create(params, (RequestOptions) null);
1✔
674
  }
675

676
  /**
677
   * This method is no longer recommended—use the <a
678
   * href="https://stripe.com/docs/api/payment_intents">Payment Intents API</a> to initiate a new
679
   * payment instead. Confirmation of the PaymentIntent creates the {@code Charge} object used to
680
   * request payment.
681
   */
682
  public static Charge create(Map<String, Object> params, RequestOptions options)
683
      throws StripeException {
684
    String path = "/v1/charges";
1✔
685
    ApiRequest request =
1✔
686
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
687
    return getGlobalResponseGetter().request(request, Charge.class);
1✔
688
  }
689

690
  /**
691
   * This method is no longer recommended—use the <a
692
   * href="https://stripe.com/docs/api/payment_intents">Payment Intents API</a> to initiate a new
693
   * payment instead. Confirmation of the PaymentIntent creates the {@code Charge} object used to
694
   * request payment.
695
   */
696
  public static Charge create(ChargeCreateParams params) throws StripeException {
697
    return create(params, (RequestOptions) null);
1✔
698
  }
699

700
  /**
701
   * This method is no longer recommended—use the <a
702
   * href="https://stripe.com/docs/api/payment_intents">Payment Intents API</a> to initiate a new
703
   * payment instead. Confirmation of the PaymentIntent creates the {@code Charge} object used to
704
   * request payment.
705
   */
706
  public static Charge create(ChargeCreateParams params, RequestOptions options)
707
      throws StripeException {
708
    String path = "/v1/charges";
1✔
709
    ApiResource.checkNullTypedParams(path, params);
1✔
710
    ApiRequest request =
1✔
711
        new ApiRequest(
712
            BaseAddress.API,
713
            ApiResource.RequestMethod.POST,
714
            path,
715
            ApiRequestParams.paramsToMap(params),
1✔
716
            options);
717
    return getGlobalResponseGetter().request(request, Charge.class);
1✔
718
  }
719

720
  /**
721
   * Returns a list of charges you’ve previously created. The charges are returned in sorted order,
722
   * with the most recent charges appearing first.
723
   */
724
  public static ChargeCollection list(Map<String, Object> params) throws StripeException {
725
    return list(params, (RequestOptions) null);
1✔
726
  }
727

728
  /**
729
   * Returns a list of charges you’ve previously created. The charges are returned in sorted order,
730
   * with the most recent charges appearing first.
731
   */
732
  public static ChargeCollection list(Map<String, Object> params, RequestOptions options)
733
      throws StripeException {
734
    String path = "/v1/charges";
1✔
735
    ApiRequest request =
1✔
736
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
737
    return getGlobalResponseGetter().request(request, ChargeCollection.class);
1✔
738
  }
739

740
  /**
741
   * Returns a list of charges you’ve previously created. The charges are returned in sorted order,
742
   * with the most recent charges appearing first.
743
   */
744
  public static ChargeCollection list(ChargeListParams params) throws StripeException {
745
    return list(params, (RequestOptions) null);
1✔
746
  }
747

748
  /**
749
   * Returns a list of charges you’ve previously created. The charges are returned in sorted order,
750
   * with the most recent charges appearing first.
751
   */
752
  public static ChargeCollection list(ChargeListParams params, RequestOptions options)
753
      throws StripeException {
754
    String path = "/v1/charges";
1✔
755
    ApiResource.checkNullTypedParams(path, params);
1✔
756
    ApiRequest request =
1✔
757
        new ApiRequest(
758
            BaseAddress.API,
759
            ApiResource.RequestMethod.GET,
760
            path,
761
            ApiRequestParams.paramsToMap(params),
1✔
762
            options);
763
    return getGlobalResponseGetter().request(request, ChargeCollection.class);
1✔
764
  }
765

766
  /**
767
   * Retrieves the details of a charge that has previously been created. Supply the unique charge ID
768
   * that was returned from your previous request, and Stripe will return the corresponding charge
769
   * information. The same information is returned when creating or refunding the charge.
770
   */
771
  public static Charge retrieve(String charge) throws StripeException {
772
    return retrieve(charge, (Map<String, Object>) null, (RequestOptions) null);
1✔
773
  }
774

775
  /**
776
   * Retrieves the details of a charge that has previously been created. Supply the unique charge ID
777
   * that was returned from your previous request, and Stripe will return the corresponding charge
778
   * information. The same information is returned when creating or refunding the charge.
779
   */
780
  public static Charge retrieve(String charge, RequestOptions options) throws StripeException {
781
    return retrieve(charge, (Map<String, Object>) null, options);
×
782
  }
783

784
  /**
785
   * Retrieves the details of a charge that has previously been created. Supply the unique charge ID
786
   * that was returned from your previous request, and Stripe will return the corresponding charge
787
   * information. The same information is returned when creating or refunding the charge.
788
   */
789
  public static Charge retrieve(String charge, Map<String, Object> params, RequestOptions options)
790
      throws StripeException {
791
    String path = String.format("/v1/charges/%s", ApiResource.urlEncodeId(charge));
1✔
792
    ApiRequest request =
1✔
793
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
794
    return getGlobalResponseGetter().request(request, Charge.class);
1✔
795
  }
796

797
  /**
798
   * Retrieves the details of a charge that has previously been created. Supply the unique charge ID
799
   * that was returned from your previous request, and Stripe will return the corresponding charge
800
   * information. The same information is returned when creating or refunding the charge.
801
   */
802
  public static Charge retrieve(String charge, ChargeRetrieveParams params, RequestOptions options)
803
      throws StripeException {
804
    String path = String.format("/v1/charges/%s", ApiResource.urlEncodeId(charge));
×
805
    ApiResource.checkNullTypedParams(path, params);
×
806
    ApiRequest request =
×
807
        new ApiRequest(
808
            BaseAddress.API,
809
            ApiResource.RequestMethod.GET,
810
            path,
811
            ApiRequestParams.paramsToMap(params),
×
812
            options);
813
    return getGlobalResponseGetter().request(request, Charge.class);
×
814
  }
815

816
  /**
817
   * Search for charges you’ve previously created using Stripe’s <a
818
   * href="https://stripe.com/docs/search#search-query-language">Search Query Language</a>. Don’t
819
   * use search in read-after-write flows where strict consistency is necessary. Under normal
820
   * operating conditions, data is searchable in less than a minute. Occasionally, propagation of
821
   * new or updated data can be up to an hour behind during outages. Search functionality is not
822
   * available to merchants in India.
823
   */
824
  public static ChargeSearchResult search(Map<String, Object> params) throws StripeException {
825
    return search(params, (RequestOptions) null);
×
826
  }
827

828
  /**
829
   * Search for charges you’ve previously created using Stripe’s <a
830
   * href="https://stripe.com/docs/search#search-query-language">Search Query Language</a>. Don’t
831
   * use search in read-after-write flows where strict consistency is necessary. Under normal
832
   * operating conditions, data is searchable in less than a minute. Occasionally, propagation of
833
   * new or updated data can be up to an hour behind during outages. Search functionality is not
834
   * available to merchants in India.
835
   */
836
  public static ChargeSearchResult search(Map<String, Object> params, RequestOptions options)
837
      throws StripeException {
838
    String path = "/v1/charges/search";
×
839
    ApiRequest request =
×
840
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
841
    return getGlobalResponseGetter().request(request, ChargeSearchResult.class);
×
842
  }
843

844
  /**
845
   * Search for charges you’ve previously created using Stripe’s <a
846
   * href="https://stripe.com/docs/search#search-query-language">Search Query Language</a>. Don’t
847
   * use search in read-after-write flows where strict consistency is necessary. Under normal
848
   * operating conditions, data is searchable in less than a minute. Occasionally, propagation of
849
   * new or updated data can be up to an hour behind during outages. Search functionality is not
850
   * available to merchants in India.
851
   */
852
  public static ChargeSearchResult search(ChargeSearchParams params) throws StripeException {
853
    return search(params, (RequestOptions) null);
1✔
854
  }
855

856
  /**
857
   * Search for charges you’ve previously created using Stripe’s <a
858
   * href="https://stripe.com/docs/search#search-query-language">Search Query Language</a>. Don’t
859
   * use search in read-after-write flows where strict consistency is necessary. Under normal
860
   * operating conditions, data is searchable in less than a minute. Occasionally, propagation of
861
   * new or updated data can be up to an hour behind during outages. Search functionality is not
862
   * available to merchants in India.
863
   */
864
  public static ChargeSearchResult search(ChargeSearchParams params, RequestOptions options)
865
      throws StripeException {
866
    String path = "/v1/charges/search";
1✔
867
    ApiResource.checkNullTypedParams(path, params);
1✔
868
    ApiRequest request =
1✔
869
        new ApiRequest(
870
            BaseAddress.API,
871
            ApiResource.RequestMethod.GET,
872
            path,
873
            ApiRequestParams.paramsToMap(params),
1✔
874
            options);
875
    return getGlobalResponseGetter().request(request, ChargeSearchResult.class);
1✔
876
  }
877

878
  /**
879
   * Updates the specified charge by setting the values of the parameters passed. Any parameters not
880
   * provided will be left unchanged.
881
   */
882
  @Override
883
  public Charge update(Map<String, Object> params) throws StripeException {
884
    return update(params, (RequestOptions) null);
1✔
885
  }
886

887
  /**
888
   * Updates the specified charge by setting the values of the parameters passed. Any parameters not
889
   * provided will be left unchanged.
890
   */
891
  @Override
892
  public Charge update(Map<String, Object> params, RequestOptions options) throws StripeException {
893
    String path = String.format("/v1/charges/%s", ApiResource.urlEncodeId(this.getId()));
1✔
894
    ApiRequest request =
1✔
895
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
896
    return getResponseGetter().request(request, Charge.class);
1✔
897
  }
898

899
  /**
900
   * Updates the specified charge by setting the values of the parameters passed. Any parameters not
901
   * provided will be left unchanged.
902
   */
903
  public Charge update(ChargeUpdateParams params) throws StripeException {
904
    return update(params, (RequestOptions) null);
1✔
905
  }
906

907
  /**
908
   * Updates the specified charge by setting the values of the parameters passed. Any parameters not
909
   * provided will be left unchanged.
910
   */
911
  public Charge update(ChargeUpdateParams params, RequestOptions options) throws StripeException {
912
    String path = String.format("/v1/charges/%s", ApiResource.urlEncodeId(this.getId()));
1✔
913
    ApiResource.checkNullTypedParams(path, params);
1✔
914
    ApiRequest request =
1✔
915
        new ApiRequest(
916
            BaseAddress.API,
917
            ApiResource.RequestMethod.POST,
918
            path,
919
            ApiRequestParams.paramsToMap(params),
1✔
920
            options);
921
    return getResponseGetter().request(request, Charge.class);
1✔
922
  }
923

924
  /**
925
   * For more details about BillingDetails, please refer to the <a
926
   * href="https://docs.stripe.com/api">API Reference.</a>
927
   */
928
  @Getter
929
  @Setter
930
  @EqualsAndHashCode(callSuper = false)
931
  public static class BillingDetails extends StripeObject {
1✔
932
    /** Billing address. */
933
    @SerializedName("address")
934
    com.stripe.model.Address address;
935

936
    /** Email address. */
937
    @SerializedName("email")
938
    String email;
939

940
    /** Full name. */
941
    @SerializedName("name")
942
    String name;
943

944
    /** Billing phone number (including extension). */
945
    @SerializedName("phone")
946
    String phone;
947
  }
948

949
  /**
950
   * For more details about FraudDetails, please refer to the <a
951
   * href="https://docs.stripe.com/api">API Reference.</a>
952
   */
953
  @Getter
954
  @Setter
955
  @EqualsAndHashCode(callSuper = false)
956
  public static class FraudDetails extends StripeObject {
1✔
957
    /** Assessments from Stripe. If set, the value is {@code fraudulent}. */
958
    @SerializedName("stripe_report")
959
    String stripeReport;
960

961
    /**
962
     * Assessments reported by you. If set, possible values of are {@code safe} and {@code
963
     * fraudulent}.
964
     */
965
    @SerializedName("user_report")
966
    String userReport;
967
  }
968

969
  /**
970
   * For more details about Level3, please refer to the <a href="https://docs.stripe.com/api">API
971
   * Reference.</a>
972
   */
973
  @Getter
974
  @Setter
975
  @EqualsAndHashCode(callSuper = false)
976
  public static class Level3 extends StripeObject {
1✔
977
    @SerializedName("customer_reference")
978
    String customerReference;
979

980
    @SerializedName("line_items")
981
    List<Charge.Level3.LineItem> lineItems;
982

983
    @SerializedName("merchant_reference")
984
    String merchantReference;
985

986
    @SerializedName("shipping_address_zip")
987
    String shippingAddressZip;
988

989
    @SerializedName("shipping_amount")
990
    Long shippingAmount;
991

992
    @SerializedName("shipping_from_zip")
993
    String shippingFromZip;
994

995
    /**
996
     * For more details about LineItem, please refer to the <a
997
     * href="https://docs.stripe.com/api">API Reference.</a>
998
     */
999
    @Getter
1000
    @Setter
1001
    @EqualsAndHashCode(callSuper = false)
1002
    public static class LineItem extends StripeObject {
1✔
1003
      @SerializedName("discount_amount")
1004
      Long discountAmount;
1005

1006
      @SerializedName("product_code")
1007
      String productCode;
1008

1009
      @SerializedName("product_description")
1010
      String productDescription;
1011

1012
      @SerializedName("quantity")
1013
      Long quantity;
1014

1015
      @SerializedName("tax_amount")
1016
      Long taxAmount;
1017

1018
      @SerializedName("unit_cost")
1019
      Long unitCost;
1020
    }
1021
  }
1022

1023
  /**
1024
   * For more details about Outcome, please refer to the <a href="https://docs.stripe.com/api">API
1025
   * Reference.</a>
1026
   */
1027
  @Getter
1028
  @Setter
1029
  @EqualsAndHashCode(callSuper = false)
1030
  public static class Outcome extends StripeObject {
1✔
1031
    /**
1032
     * Possible values are {@code approved_by_network}, {@code declined_by_network}, {@code
1033
     * not_sent_to_network}, and {@code reversed_after_approval}. The value {@code
1034
     * reversed_after_approval} indicates the payment was <a
1035
     * href="https://stripe.com/docs/declines#blocked-payments">blocked by Stripe</a> after bank
1036
     * authorization, and may temporarily appear as &quot;pending&quot; on a cardholder's statement.
1037
     */
1038
    @SerializedName("network_status")
1039
    String networkStatus;
1040

1041
    /**
1042
     * An enumerated value providing a more detailed explanation of the outcome's {@code type}.
1043
     * Charges blocked by Radar's default block rule have the value {@code highest_risk_level}.
1044
     * Charges placed in review by Radar's default review rule have the value {@code
1045
     * elevated_risk_level}. Charges authorized, blocked, or placed in review by custom rules have
1046
     * the value {@code rule}. See <a href="https://stripe.com/docs/declines">understanding
1047
     * declines</a> for more details.
1048
     */
1049
    @SerializedName("reason")
1050
    String reason;
1051

1052
    /**
1053
     * Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated
1054
     * payments are {@code normal}, {@code elevated}, {@code highest}. For non-card payments, and
1055
     * card-based payments predating the public assignment of risk levels, this field will have the
1056
     * value {@code not_assessed}. In the event of an error in the evaluation, this field will have
1057
     * the value {@code unknown}. This field is only available with Radar.
1058
     */
1059
    @SerializedName("risk_level")
1060
    String riskLevel;
1061

1062
    /**
1063
     * Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated
1064
     * payments are between 0 and 100. For non-card payments, card-based payments predating the
1065
     * public assignment of risk scores, or in the event of an error during evaluation, this field
1066
     * will not be present. This field is only available with Radar for Fraud Teams.
1067
     */
1068
    @SerializedName("risk_score")
1069
    Long riskScore;
1070

1071
    /** The ID of the Radar rule that matched the payment, if applicable. */
1072
    @SerializedName("rule")
1073
    @Getter(lombok.AccessLevel.NONE)
1074
    @Setter(lombok.AccessLevel.NONE)
1075
    ExpandableField<Rule> rule;
1076

1077
    /**
1078
     * A human-readable description of the outcome type and reason, designed for you (the recipient
1079
     * of the payment), not your customer.
1080
     */
1081
    @SerializedName("seller_message")
1082
    String sellerMessage;
1083

1084
    /**
1085
     * Possible values are {@code authorized}, {@code manual_review}, {@code issuer_declined},
1086
     * {@code blocked}, and {@code invalid}. See <a
1087
     * href="https://stripe.com/docs/declines">understanding declines</a> and <a
1088
     * href="https://stripe.com/docs/radar/reviews">Radar reviews</a> for details.
1089
     */
1090
    @SerializedName("type")
1091
    String type;
1092

1093
    /** Get ID of expandable {@code rule} object. */
1094
    public String getRule() {
1095
      return (this.rule != null) ? this.rule.getId() : null;
×
1096
    }
1097

1098
    public void setRule(String id) {
1099
      this.rule = ApiResource.setExpandableFieldId(id, this.rule);
×
1100
    }
×
1101

1102
    /** Get expanded {@code rule}. */
1103
    public Rule getRuleObject() {
1104
      return (this.rule != null) ? this.rule.getExpanded() : null;
×
1105
    }
1106

1107
    public void setRuleObject(Rule expandableObject) {
1108
      this.rule = new ExpandableField<Rule>(expandableObject.getId(), expandableObject);
×
1109
    }
×
1110

1111
    /**
1112
     * For more details about Rule, please refer to the <a href="https://docs.stripe.com/api">API
1113
     * Reference.</a>
1114
     */
1115
    @Getter
1116
    @Setter
1117
    @EqualsAndHashCode(callSuper = false)
1118
    public static class Rule extends StripeObject implements HasId {
×
1119
      /** The action taken on the payment. */
1120
      @SerializedName("action")
1121
      String action;
1122

1123
      /** Unique identifier for the object. */
1124
      @Getter(onMethod_ = {@Override})
1125
      @SerializedName("id")
1126
      String id;
1127

1128
      /** The predicate to evaluate the payment against. */
1129
      @SerializedName("predicate")
1130
      String predicate;
1131
    }
1132
  }
1133

1134
  /**
1135
   * For more details about PaymentMethodDetails, please refer to the <a
1136
   * href="https://docs.stripe.com/api">API Reference.</a>
1137
   */
1138
  @Getter
1139
  @Setter
1140
  @EqualsAndHashCode(callSuper = false)
1141
  public static class PaymentMethodDetails extends StripeObject {
1✔
1142
    @SerializedName("ach_credit_transfer")
1143
    AchCreditTransfer achCreditTransfer;
1144

1145
    @SerializedName("ach_debit")
1146
    AchDebit achDebit;
1147

1148
    @SerializedName("acss_debit")
1149
    AcssDebit acssDebit;
1150

1151
    @SerializedName("affirm")
1152
    Affirm affirm;
1153

1154
    @SerializedName("afterpay_clearpay")
1155
    AfterpayClearpay afterpayClearpay;
1156

1157
    @SerializedName("alipay")
1158
    Alipay alipay;
1159

1160
    @SerializedName("alma")
1161
    Alma alma;
1162

1163
    @SerializedName("amazon_pay")
1164
    AmazonPay amazonPay;
1165

1166
    @SerializedName("au_becs_debit")
1167
    AuBecsDebit auBecsDebit;
1168

1169
    @SerializedName("bacs_debit")
1170
    BacsDebit bacsDebit;
1171

1172
    @SerializedName("bancontact")
1173
    Bancontact bancontact;
1174

1175
    @SerializedName("blik")
1176
    Blik blik;
1177

1178
    @SerializedName("boleto")
1179
    Boleto boleto;
1180

1181
    @SerializedName("card")
1182
    Card card;
1183

1184
    @SerializedName("card_present")
1185
    CardPresent cardPresent;
1186

1187
    @SerializedName("cashapp")
1188
    Cashapp cashapp;
1189

1190
    @SerializedName("customer_balance")
1191
    CustomerBalance customerBalance;
1192

1193
    @SerializedName("eps")
1194
    Eps eps;
1195

1196
    @SerializedName("fpx")
1197
    Fpx fpx;
1198

1199
    @SerializedName("giropay")
1200
    Giropay giropay;
1201

1202
    @SerializedName("gopay")
1203
    Gopay gopay;
1204

1205
    @SerializedName("grabpay")
1206
    Grabpay grabpay;
1207

1208
    @SerializedName("ideal")
1209
    Ideal ideal;
1210

1211
    @SerializedName("interac_present")
1212
    InteracPresent interacPresent;
1213

1214
    @SerializedName("kakao_pay")
1215
    KakaoPay kakaoPay;
1216

1217
    @SerializedName("klarna")
1218
    Klarna klarna;
1219

1220
    @SerializedName("konbini")
1221
    Konbini konbini;
1222

1223
    @SerializedName("kr_card")
1224
    KrCard krCard;
1225

1226
    @SerializedName("link")
1227
    Link link;
1228

1229
    @SerializedName("mb_way")
1230
    MbWay mbWay;
1231

1232
    @SerializedName("mobilepay")
1233
    Mobilepay mobilepay;
1234

1235
    @SerializedName("multibanco")
1236
    Multibanco multibanco;
1237

1238
    @SerializedName("naver_pay")
1239
    NaverPay naverPay;
1240

1241
    @SerializedName("oxxo")
1242
    Oxxo oxxo;
1243

1244
    @SerializedName("p24")
1245
    P24 p24;
1246

1247
    @SerializedName("payco")
1248
    Payco payco;
1249

1250
    @SerializedName("paynow")
1251
    Paynow paynow;
1252

1253
    @SerializedName("paypal")
1254
    Paypal paypal;
1255

1256
    @SerializedName("payto")
1257
    Payto payto;
1258

1259
    @SerializedName("pix")
1260
    Pix pix;
1261

1262
    @SerializedName("promptpay")
1263
    Promptpay promptpay;
1264

1265
    @SerializedName("qris")
1266
    Qris qris;
1267

1268
    @SerializedName("rechnung")
1269
    Rechnung rechnung;
1270

1271
    @SerializedName("revolut_pay")
1272
    RevolutPay revolutPay;
1273

1274
    @SerializedName("samsung_pay")
1275
    SamsungPay samsungPay;
1276

1277
    @SerializedName("sepa_credit_transfer")
1278
    SepaCreditTransfer sepaCreditTransfer;
1279

1280
    @SerializedName("sepa_debit")
1281
    SepaDebit sepaDebit;
1282

1283
    @SerializedName("shopeepay")
1284
    Shopeepay shopeepay;
1285

1286
    @SerializedName("sofort")
1287
    Sofort sofort;
1288

1289
    @SerializedName("stripe_account")
1290
    StripeAccount stripeAccount;
1291

1292
    @SerializedName("swish")
1293
    Swish swish;
1294

1295
    @SerializedName("twint")
1296
    Twint twint;
1297

1298
    /**
1299
     * The type of transaction-specific details of the payment method used in the payment, one of
1300
     * {@code ach_credit_transfer}, {@code ach_debit}, {@code acss_debit}, {@code alipay}, {@code
1301
     * au_becs_debit}, {@code bancontact}, {@code card}, {@code card_present}, {@code eps}, {@code
1302
     * giropay}, {@code ideal}, {@code klarna}, {@code multibanco}, {@code p24}, {@code sepa_debit},
1303
     * {@code sofort}, {@code stripe_account}, or {@code wechat}. An additional hash is included on
1304
     * {@code payment_method_details} with a name matching this value. It contains information
1305
     * specific to the payment method.
1306
     */
1307
    @SerializedName("type")
1308
    String type;
1309

1310
    @SerializedName("us_bank_account")
1311
    UsBankAccount usBankAccount;
1312

1313
    @SerializedName("wechat")
1314
    Wechat wechat;
1315

1316
    @SerializedName("wechat_pay")
1317
    WechatPay wechatPay;
1318

1319
    @SerializedName("zip")
1320
    Zip zip;
1321

1322
    /**
1323
     * For more details about AchCreditTransfer, please refer to the <a
1324
     * href="https://docs.stripe.com/api">API Reference.</a>
1325
     */
1326
    @Getter
1327
    @Setter
1328
    @EqualsAndHashCode(callSuper = false)
1329
    public static class AchCreditTransfer extends StripeObject {
×
1330
      /** Account number to transfer funds to. */
1331
      @SerializedName("account_number")
1332
      String accountNumber;
1333

1334
      /** Name of the bank associated with the routing number. */
1335
      @SerializedName("bank_name")
1336
      String bankName;
1337

1338
      /** Routing transit number for the bank account to transfer funds to. */
1339
      @SerializedName("routing_number")
1340
      String routingNumber;
1341

1342
      /** SWIFT code of the bank associated with the routing number. */
1343
      @SerializedName("swift_code")
1344
      String swiftCode;
1345
    }
1346

1347
    /**
1348
     * For more details about AchDebit, please refer to the <a
1349
     * href="https://docs.stripe.com/api">API Reference.</a>
1350
     */
1351
    @Getter
1352
    @Setter
1353
    @EqualsAndHashCode(callSuper = false)
1354
    public static class AchDebit extends StripeObject {
×
1355
      /**
1356
       * Type of entity that holds the account. This can be either {@code individual} or {@code
1357
       * company}.
1358
       *
1359
       * <p>One of {@code company}, or {@code individual}.
1360
       */
1361
      @SerializedName("account_holder_type")
1362
      String accountHolderType;
1363

1364
      /** Name of the bank associated with the bank account. */
1365
      @SerializedName("bank_name")
1366
      String bankName;
1367

1368
      /** Two-letter ISO code representing the country the bank account is located in. */
1369
      @SerializedName("country")
1370
      String country;
1371

1372
      /**
1373
       * Uniquely identifies this particular bank account. You can use this attribute to check
1374
       * whether two bank accounts are the same.
1375
       */
1376
      @SerializedName("fingerprint")
1377
      String fingerprint;
1378

1379
      /** Last four digits of the bank account number. */
1380
      @SerializedName("last4")
1381
      String last4;
1382

1383
      /** Routing transit number of the bank account. */
1384
      @SerializedName("routing_number")
1385
      String routingNumber;
1386
    }
1387

1388
    /**
1389
     * For more details about AcssDebit, please refer to the <a
1390
     * href="https://docs.stripe.com/api">API Reference.</a>
1391
     */
1392
    @Getter
1393
    @Setter
1394
    @EqualsAndHashCode(callSuper = false)
1395
    public static class AcssDebit extends StripeObject {
×
1396
      /** Name of the bank associated with the bank account. */
1397
      @SerializedName("bank_name")
1398
      String bankName;
1399

1400
      /**
1401
       * Uniquely identifies this particular bank account. You can use this attribute to check
1402
       * whether two bank accounts are the same.
1403
       */
1404
      @SerializedName("fingerprint")
1405
      String fingerprint;
1406

1407
      /** Institution number of the bank account. */
1408
      @SerializedName("institution_number")
1409
      String institutionNumber;
1410

1411
      /** Last four digits of the bank account number. */
1412
      @SerializedName("last4")
1413
      String last4;
1414

1415
      /** ID of the mandate used to make this payment. */
1416
      @SerializedName("mandate")
1417
      String mandate;
1418

1419
      /** Transit number of the bank account. */
1420
      @SerializedName("transit_number")
1421
      String transitNumber;
1422
    }
1423

1424
    /**
1425
     * For more details about Affirm, please refer to the <a href="https://docs.stripe.com/api">API
1426
     * Reference.</a>
1427
     */
1428
    @Getter
1429
    @Setter
1430
    @EqualsAndHashCode(callSuper = false)
1431
    public static class Affirm extends StripeObject {
×
1432
      /** The Affirm transaction ID associated with this payment. */
1433
      @SerializedName("transaction_id")
1434
      String transactionId;
1435
    }
1436

1437
    /**
1438
     * For more details about AfterpayClearpay, please refer to the <a
1439
     * href="https://docs.stripe.com/api">API Reference.</a>
1440
     */
1441
    @Getter
1442
    @Setter
1443
    @EqualsAndHashCode(callSuper = false)
1444
    public static class AfterpayClearpay extends StripeObject {
×
1445
      /** The Afterpay order ID associated with this payment intent. */
1446
      @SerializedName("order_id")
1447
      String orderId;
1448

1449
      /** Order identifier shown to the merchant in Afterpay’s online portal. */
1450
      @SerializedName("reference")
1451
      String reference;
1452
    }
1453

1454
    /**
1455
     * For more details about Alipay, please refer to the <a href="https://docs.stripe.com/api">API
1456
     * Reference.</a>
1457
     */
1458
    @Getter
1459
    @Setter
1460
    @EqualsAndHashCode(callSuper = false)
1461
    public static class Alipay extends StripeObject {
×
1462
      /**
1463
       * Uniquely identifies this particular Alipay account. You can use this attribute to check
1464
       * whether two Alipay accounts are the same.
1465
       */
1466
      @SerializedName("buyer_id")
1467
      String buyerId;
1468

1469
      /**
1470
       * Uniquely identifies this particular Alipay account. You can use this attribute to check
1471
       * whether two Alipay accounts are the same.
1472
       */
1473
      @SerializedName("fingerprint")
1474
      String fingerprint;
1475

1476
      /** Transaction ID of this particular Alipay transaction. */
1477
      @SerializedName("transaction_id")
1478
      String transactionId;
1479
    }
1480

1481
    /**
1482
     * For more details about Alma, please refer to the <a href="https://docs.stripe.com/api">API
1483
     * Reference.</a>
1484
     */
1485
    @Getter
1486
    @Setter
1487
    @EqualsAndHashCode(callSuper = false)
NEW
1488
    public static class Alma extends StripeObject {}
×
1489

1490
    /**
1491
     * For more details about AmazonPay, please refer to the <a
1492
     * href="https://docs.stripe.com/api">API Reference.</a>
1493
     */
1494
    @Getter
1495
    @Setter
1496
    @EqualsAndHashCode(callSuper = false)
1497
    public static class AmazonPay extends StripeObject {}
×
1498

1499
    /**
1500
     * For more details about AuBecsDebit, please refer to the <a
1501
     * href="https://docs.stripe.com/api">API Reference.</a>
1502
     */
1503
    @Getter
1504
    @Setter
1505
    @EqualsAndHashCode(callSuper = false)
1506
    public static class AuBecsDebit extends StripeObject {
×
1507
      /** Bank-State-Branch number of the bank account. */
1508
      @SerializedName("bsb_number")
1509
      String bsbNumber;
1510

1511
      /**
1512
       * Uniquely identifies this particular bank account. You can use this attribute to check
1513
       * whether two bank accounts are the same.
1514
       */
1515
      @SerializedName("fingerprint")
1516
      String fingerprint;
1517

1518
      /** Last four digits of the bank account number. */
1519
      @SerializedName("last4")
1520
      String last4;
1521

1522
      /** ID of the mandate used to make this payment. */
1523
      @SerializedName("mandate")
1524
      String mandate;
1525
    }
1526

1527
    /**
1528
     * For more details about BacsDebit, please refer to the <a
1529
     * href="https://docs.stripe.com/api">API Reference.</a>
1530
     */
1531
    @Getter
1532
    @Setter
1533
    @EqualsAndHashCode(callSuper = false)
1534
    public static class BacsDebit extends StripeObject {
×
1535
      /**
1536
       * Uniquely identifies this particular bank account. You can use this attribute to check
1537
       * whether two bank accounts are the same.
1538
       */
1539
      @SerializedName("fingerprint")
1540
      String fingerprint;
1541

1542
      /** Last four digits of the bank account number. */
1543
      @SerializedName("last4")
1544
      String last4;
1545

1546
      /** ID of the mandate used to make this payment. */
1547
      @SerializedName("mandate")
1548
      String mandate;
1549

1550
      /** Sort code of the bank account. (e.g., {@code 10-20-30}) */
1551
      @SerializedName("sort_code")
1552
      String sortCode;
1553
    }
1554

1555
    /**
1556
     * For more details about Bancontact, please refer to the <a
1557
     * href="https://docs.stripe.com/api">API Reference.</a>
1558
     */
1559
    @Getter
1560
    @Setter
1561
    @EqualsAndHashCode(callSuper = false)
1562
    public static class Bancontact extends StripeObject {
×
1563
      /** Bank code of bank associated with the bank account. */
1564
      @SerializedName("bank_code")
1565
      String bankCode;
1566

1567
      /** Name of the bank associated with the bank account. */
1568
      @SerializedName("bank_name")
1569
      String bankName;
1570

1571
      /** Bank Identifier Code of the bank associated with the bank account. */
1572
      @SerializedName("bic")
1573
      String bic;
1574

1575
      /** The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
1576
      @SerializedName("generated_sepa_debit")
1577
      @Getter(lombok.AccessLevel.NONE)
1578
      @Setter(lombok.AccessLevel.NONE)
1579
      ExpandableField<PaymentMethod> generatedSepaDebit;
1580

1581
      /** The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
1582
      @SerializedName("generated_sepa_debit_mandate")
1583
      @Getter(lombok.AccessLevel.NONE)
1584
      @Setter(lombok.AccessLevel.NONE)
1585
      ExpandableField<Mandate> generatedSepaDebitMandate;
1586

1587
      /** Last four characters of the IBAN. */
1588
      @SerializedName("iban_last4")
1589
      String ibanLast4;
1590

1591
      /**
1592
       * Preferred language of the Bancontact authorization page that the customer is redirected to.
1593
       * Can be one of {@code en}, {@code de}, {@code fr}, or {@code nl}
1594
       */
1595
      @SerializedName("preferred_language")
1596
      String preferredLanguage;
1597

1598
      /**
1599
       * Owner's verified full name. Values are verified or provided by Bancontact directly (if
1600
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
1601
       */
1602
      @SerializedName("verified_name")
1603
      String verifiedName;
1604

1605
      /** Get ID of expandable {@code generatedSepaDebit} object. */
1606
      public String getGeneratedSepaDebit() {
1607
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getId() : null;
×
1608
      }
1609

1610
      public void setGeneratedSepaDebit(String id) {
1611
        this.generatedSepaDebit = ApiResource.setExpandableFieldId(id, this.generatedSepaDebit);
×
1612
      }
×
1613

1614
      /** Get expanded {@code generatedSepaDebit}. */
1615
      public PaymentMethod getGeneratedSepaDebitObject() {
1616
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getExpanded() : null;
×
1617
      }
1618

1619
      public void setGeneratedSepaDebitObject(PaymentMethod expandableObject) {
1620
        this.generatedSepaDebit =
×
1621
            new ExpandableField<PaymentMethod>(expandableObject.getId(), expandableObject);
×
1622
      }
×
1623

1624
      /** Get ID of expandable {@code generatedSepaDebitMandate} object. */
1625
      public String getGeneratedSepaDebitMandate() {
1626
        return (this.generatedSepaDebitMandate != null)
×
1627
            ? this.generatedSepaDebitMandate.getId()
×
1628
            : null;
×
1629
      }
1630

1631
      public void setGeneratedSepaDebitMandate(String id) {
1632
        this.generatedSepaDebitMandate =
×
1633
            ApiResource.setExpandableFieldId(id, this.generatedSepaDebitMandate);
×
1634
      }
×
1635

1636
      /** Get expanded {@code generatedSepaDebitMandate}. */
1637
      public Mandate getGeneratedSepaDebitMandateObject() {
1638
        return (this.generatedSepaDebitMandate != null)
×
1639
            ? this.generatedSepaDebitMandate.getExpanded()
×
1640
            : null;
×
1641
      }
1642

1643
      public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) {
1644
        this.generatedSepaDebitMandate =
×
1645
            new ExpandableField<Mandate>(expandableObject.getId(), expandableObject);
×
1646
      }
×
1647
    }
1648

1649
    /**
1650
     * For more details about Blik, please refer to the <a href="https://docs.stripe.com/api">API
1651
     * Reference.</a>
1652
     */
1653
    @Getter
1654
    @Setter
1655
    @EqualsAndHashCode(callSuper = false)
1656
    public static class Blik extends StripeObject {
×
1657
      /** A unique and immutable identifier assigned by BLIK to every buyer. */
1658
      @SerializedName("buyer_id")
1659
      String buyerId;
1660
    }
1661

1662
    /**
1663
     * For more details about Boleto, please refer to the <a href="https://docs.stripe.com/api">API
1664
     * Reference.</a>
1665
     */
1666
    @Getter
1667
    @Setter
1668
    @EqualsAndHashCode(callSuper = false)
1669
    public static class Boleto extends StripeObject {
×
1670
      /**
1671
       * The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses
1672
       * consumers).
1673
       */
1674
      @SerializedName("tax_id")
1675
      String taxId;
1676
    }
1677

1678
    /**
1679
     * For more details about Card, please refer to the <a href="https://docs.stripe.com/api">API
1680
     * Reference.</a>
1681
     */
1682
    @Getter
1683
    @Setter
1684
    @EqualsAndHashCode(callSuper = false)
1685
    public static class Card extends StripeObject {
1✔
1686
      /** The authorized amount. */
1687
      @SerializedName("amount_authorized")
1688
      Long amountAuthorized;
1689

1690
      /** Authorization code on the charge. */
1691
      @SerializedName("authorization_code")
1692
      String authorizationCode;
1693

1694
      /**
1695
       * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1696
       * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
1697
       */
1698
      @SerializedName("brand")
1699
      String brand;
1700

1701
      /**
1702
       * When using manual capture, a future timestamp at which the charge will be automatically
1703
       * refunded if uncaptured.
1704
       */
1705
      @SerializedName("capture_before")
1706
      Long captureBefore;
1707

1708
      /** Check results by Card networks on Card address and CVC at time of payment. */
1709
      @SerializedName("checks")
1710
      Checks checks;
1711

1712
      /**
1713
       * Two-letter ISO code representing the country of the card. You could use this attribute to
1714
       * get a sense of the international breakdown of cards you've collected.
1715
       */
1716
      @SerializedName("country")
1717
      String country;
1718

1719
      @SerializedName("decremental_authorization")
1720
      DecrementalAuthorization decrementalAuthorization;
1721

1722
      /**
1723
       * A high-level description of the type of cards issued in this range. (For internal use only
1724
       * and not typically available in standard API requests.)
1725
       */
1726
      @SerializedName("description")
1727
      String description;
1728

1729
      /** Two-digit number representing the card's expiration month. */
1730
      @SerializedName("exp_month")
1731
      Long expMonth;
1732

1733
      /** Four-digit number representing the card's expiration year. */
1734
      @SerializedName("exp_year")
1735
      Long expYear;
1736

1737
      @SerializedName("extended_authorization")
1738
      ExtendedAuthorization extendedAuthorization;
1739

1740
      /**
1741
       * Uniquely identifies this particular card number. You can use this attribute to check
1742
       * whether two customers who’ve signed up with you are using the same card number, for
1743
       * example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
1744
       * tokenized number might be provided instead of the underlying card number.
1745
       *
1746
       * <p><em>As of May 1, 2021, card fingerprint in India for Connect changed to allow two
1747
       * fingerprints for the same card---one for India and one for the rest of the world.</em>
1748
       */
1749
      @SerializedName("fingerprint")
1750
      String fingerprint;
1751

1752
      /**
1753
       * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
1754
       * unknown}.
1755
       */
1756
      @SerializedName("funding")
1757
      String funding;
1758

1759
      /**
1760
       * Issuer identification number of the card. (For internal use only and not typically
1761
       * available in standard API requests.)
1762
       */
1763
      @SerializedName("iin")
1764
      String iin;
1765

1766
      @SerializedName("incremental_authorization")
1767
      IncrementalAuthorization incrementalAuthorization;
1768

1769
      /**
1770
       * Installment details for this payment (Mexico only).
1771
       *
1772
       * <p>For more information, see the <a
1773
       * href="https://stripe.com/docs/payments/installments">installments integration guide</a>.
1774
       */
1775
      @SerializedName("installments")
1776
      Installments installments;
1777

1778
      /**
1779
       * The name of the card's issuing bank. (For internal use only and not typically available in
1780
       * standard API requests.)
1781
       */
1782
      @SerializedName("issuer")
1783
      String issuer;
1784

1785
      /** The last four digits of the card. */
1786
      @SerializedName("last4")
1787
      String last4;
1788

1789
      /** ID of the mandate used to make this payment or created by it. */
1790
      @SerializedName("mandate")
1791
      String mandate;
1792

1793
      /** True if this payment was marked as MOTO and out of scope for SCA. */
1794
      @SerializedName("moto")
1795
      Boolean moto;
1796

1797
      @SerializedName("multicapture")
1798
      Multicapture multicapture;
1799

1800
      /**
1801
       * Identifies which network this charge was processed on. Can be {@code amex}, {@code
1802
       * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
1803
       * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
1804
       */
1805
      @SerializedName("network")
1806
      String network;
1807

1808
      /**
1809
       * If this card has network token credentials, this contains the details of the network token
1810
       * credentials.
1811
       */
1812
      @SerializedName("network_token")
1813
      NetworkToken networkToken;
1814

1815
      @SerializedName("overcapture")
1816
      Overcapture overcapture;
1817

1818
      /** Populated if this transaction used 3D Secure authentication. */
1819
      @SerializedName("three_d_secure")
1820
      ThreeDSecure threeDSecure;
1821

1822
      /** If this Card is part of a card wallet, this contains the details of the card wallet. */
1823
      @SerializedName("wallet")
1824
      Wallet wallet;
1825

1826
      /**
1827
       * For more details about Checks, please refer to the <a
1828
       * href="https://docs.stripe.com/api">API Reference.</a>
1829
       */
1830
      @Getter
1831
      @Setter
1832
      @EqualsAndHashCode(callSuper = false)
1833
      public static class Checks extends StripeObject {
1✔
1834
        /**
1835
         * If a address line1 was provided, results of the check, one of {@code pass}, {@code fail},
1836
         * {@code unavailable}, or {@code unchecked}.
1837
         */
1838
        @SerializedName("address_line1_check")
1839
        String addressLine1Check;
1840

1841
        /**
1842
         * If a address postal code was provided, results of the check, one of {@code pass}, {@code
1843
         * fail}, {@code unavailable}, or {@code unchecked}.
1844
         */
1845
        @SerializedName("address_postal_code_check")
1846
        String addressPostalCodeCheck;
1847

1848
        /**
1849
         * If a CVC was provided, results of the check, one of {@code pass}, {@code fail}, {@code
1850
         * unavailable}, or {@code unchecked}.
1851
         */
1852
        @SerializedName("cvc_check")
1853
        String cvcCheck;
1854
      }
1855

1856
      /**
1857
       * For more details about DecrementalAuthorization, please refer to the <a
1858
       * href="https://docs.stripe.com/api">API Reference.</a>
1859
       */
1860
      @Getter
1861
      @Setter
1862
      @EqualsAndHashCode(callSuper = false)
1863
      public static class DecrementalAuthorization extends StripeObject {
×
1864
        /**
1865
         * Indicates whether or not the decremental authorization feature is supported.
1866
         *
1867
         * <p>One of {@code available}, or {@code unavailable}.
1868
         */
1869
        @SerializedName("status")
1870
        String status;
1871
      }
1872

1873
      /**
1874
       * For more details about ExtendedAuthorization, please refer to the <a
1875
       * href="https://docs.stripe.com/api">API Reference.</a>
1876
       */
1877
      @Getter
1878
      @Setter
1879
      @EqualsAndHashCode(callSuper = false)
1880
      public static class ExtendedAuthorization extends StripeObject {
1✔
1881
        /**
1882
         * Indicates whether or not the capture window is extended beyond the standard
1883
         * authorization.
1884
         *
1885
         * <p>One of {@code disabled}, or {@code enabled}.
1886
         */
1887
        @SerializedName("status")
1888
        String status;
1889
      }
1890

1891
      /**
1892
       * For more details about IncrementalAuthorization, please refer to the <a
1893
       * href="https://docs.stripe.com/api">API Reference.</a>
1894
       */
1895
      @Getter
1896
      @Setter
1897
      @EqualsAndHashCode(callSuper = false)
1898
      public static class IncrementalAuthorization extends StripeObject {
1✔
1899
        /**
1900
         * Indicates whether or not the incremental authorization feature is supported.
1901
         *
1902
         * <p>One of {@code available}, or {@code unavailable}.
1903
         */
1904
        @SerializedName("status")
1905
        String status;
1906
      }
1907

1908
      /**
1909
       * For more details about Installments, please refer to the <a
1910
       * href="https://docs.stripe.com/api">API Reference.</a>
1911
       */
1912
      @Getter
1913
      @Setter
1914
      @EqualsAndHashCode(callSuper = false)
1915
      public static class Installments extends StripeObject {
×
1916
        /** Installment plan selected for the payment. */
1917
        @SerializedName("plan")
1918
        Plan plan;
1919

1920
        /**
1921
         * For more details about Plan, please refer to the <a
1922
         * href="https://docs.stripe.com/api">API Reference.</a>
1923
         */
1924
        @Getter
1925
        @Setter
1926
        @EqualsAndHashCode(callSuper = false)
1927
        public static class Plan extends StripeObject {
×
1928
          /**
1929
           * For {@code fixed_count} installment plans, this is the number of installment payments
1930
           * your customer will make to their credit card.
1931
           */
1932
          @SerializedName("count")
1933
          Long count;
1934

1935
          /**
1936
           * For {@code fixed_count} installment plans, this is the interval between installment
1937
           * payments your customer will make to their credit card. One of {@code month}.
1938
           */
1939
          @SerializedName("interval")
1940
          String interval;
1941

1942
          /** Type of installment plan, one of {@code fixed_count}. */
1943
          @SerializedName("type")
1944
          String type;
1945
        }
1946
      }
1947

1948
      /**
1949
       * For more details about Multicapture, please refer to the <a
1950
       * href="https://docs.stripe.com/api">API Reference.</a>
1951
       */
1952
      @Getter
1953
      @Setter
1954
      @EqualsAndHashCode(callSuper = false)
1955
      public static class Multicapture extends StripeObject {
1✔
1956
        /**
1957
         * Indicates whether or not multiple captures are supported.
1958
         *
1959
         * <p>One of {@code available}, or {@code unavailable}.
1960
         */
1961
        @SerializedName("status")
1962
        String status;
1963
      }
1964

1965
      /**
1966
       * For more details about NetworkToken, please refer to the <a
1967
       * href="https://docs.stripe.com/api">API Reference.</a>
1968
       */
1969
      @Getter
1970
      @Setter
1971
      @EqualsAndHashCode(callSuper = false)
1972
      public static class NetworkToken extends StripeObject {
1✔
1973
        /**
1974
         * Indicates if Stripe used a network token, either user provided or Stripe managed when
1975
         * processing the transaction.
1976
         */
1977
        @SerializedName("used")
1978
        Boolean used;
1979
      }
1980

1981
      /**
1982
       * For more details about Overcapture, please refer to the <a
1983
       * href="https://docs.stripe.com/api">API Reference.</a>
1984
       */
1985
      @Getter
1986
      @Setter
1987
      @EqualsAndHashCode(callSuper = false)
1988
      public static class Overcapture extends StripeObject {
1✔
1989
        /** The maximum amount that can be captured. */
1990
        @SerializedName("maximum_amount_capturable")
1991
        Long maximumAmountCapturable;
1992

1993
        /**
1994
         * Indicates whether or not the authorized amount can be over-captured.
1995
         *
1996
         * <p>One of {@code available}, or {@code unavailable}.
1997
         */
1998
        @SerializedName("status")
1999
        String status;
2000
      }
2001

2002
      /**
2003
       * For more details about ThreeDSecure, please refer to the <a
2004
       * href="https://docs.stripe.com/api">API Reference.</a>
2005
       */
2006
      @Getter
2007
      @Setter
2008
      @EqualsAndHashCode(callSuper = false)
2009
      public static class ThreeDSecure extends StripeObject {
×
2010
        /**
2011
         * For authenticated transactions: how the customer was authenticated by the issuing bank.
2012
         *
2013
         * <p>One of {@code challenge}, or {@code frictionless}.
2014
         */
2015
        @SerializedName("authentication_flow")
2016
        String authenticationFlow;
2017

2018
        /**
2019
         * The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of
2020
         * authentication was performed.
2021
         *
2022
         * <p>One of {@code 01}, {@code 02}, {@code 05}, {@code 06}, or {@code 07}.
2023
         */
2024
        @SerializedName("electronic_commerce_indicator")
2025
        String electronicCommerceIndicator;
2026

2027
        /**
2028
         * The exemption requested via 3DS and accepted by the issuer at authentication time.
2029
         *
2030
         * <p>One of {@code low_risk}, or {@code none}.
2031
         */
2032
        @SerializedName("exemption_indicator")
2033
        String exemptionIndicator;
2034

2035
        /**
2036
         * Whether Stripe requested the value of {@code exemption_indicator} in the transaction.
2037
         * This will depend on the outcome of Stripe's internal risk assessment.
2038
         */
2039
        @SerializedName("exemption_indicator_applied")
2040
        Boolean exemptionIndicatorApplied;
2041

2042
        /**
2043
         * Indicates the outcome of 3D Secure authentication.
2044
         *
2045
         * <p>One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
2046
         * failed}, {@code not_supported}, or {@code processing_error}.
2047
         */
2048
        @SerializedName("result")
2049
        String result;
2050

2051
        /**
2052
         * Additional information about why 3D Secure succeeded or failed based on the {@code
2053
         * result}.
2054
         *
2055
         * <p>One of {@code abandoned}, {@code bypassed}, {@code canceled}, {@code
2056
         * card_not_enrolled}, {@code network_not_supported}, {@code protocol_error}, or {@code
2057
         * rejected}.
2058
         */
2059
        @SerializedName("result_reason")
2060
        String resultReason;
2061

2062
        /**
2063
         * The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID (dsTransId) for this
2064
         * payment.
2065
         */
2066
        @SerializedName("transaction_id")
2067
        String transactionId;
2068

2069
        /**
2070
         * The version of 3D Secure that was used.
2071
         *
2072
         * <p>One of {@code 1.0.2}, {@code 2.1.0}, or {@code 2.2.0}.
2073
         */
2074
        @SerializedName("version")
2075
        String version;
2076
      }
2077

2078
      /**
2079
       * For more details about Wallet, please refer to the <a
2080
       * href="https://docs.stripe.com/api">API Reference.</a>
2081
       */
2082
      @Getter
2083
      @Setter
2084
      @EqualsAndHashCode(callSuper = false)
2085
      public static class Wallet extends StripeObject {
×
2086
        @SerializedName("amex_express_checkout")
2087
        AmexExpressCheckout amexExpressCheckout;
2088

2089
        @SerializedName("apple_pay")
2090
        ApplePay applePay;
2091

2092
        /** (For tokenized numbers only.) The last four digits of the device account number. */
2093
        @SerializedName("dynamic_last4")
2094
        String dynamicLast4;
2095

2096
        @SerializedName("google_pay")
2097
        GooglePay googlePay;
2098

2099
        @SerializedName("link")
2100
        Link link;
2101

2102
        @SerializedName("masterpass")
2103
        Masterpass masterpass;
2104

2105
        @SerializedName("samsung_pay")
2106
        SamsungPay samsungPay;
2107

2108
        /**
2109
         * The type of the card wallet, one of {@code amex_express_checkout}, {@code apple_pay},
2110
         * {@code google_pay}, {@code masterpass}, {@code samsung_pay}, {@code visa_checkout}, or
2111
         * {@code link}. An additional hash is included on the Wallet subhash with a name matching
2112
         * this value. It contains additional information specific to the card wallet type.
2113
         */
2114
        @SerializedName("type")
2115
        String type;
2116

2117
        @SerializedName("visa_checkout")
2118
        VisaCheckout visaCheckout;
2119

2120
        /**
2121
         * For more details about AmexExpressCheckout, please refer to the <a
2122
         * href="https://docs.stripe.com/api">API Reference.</a>
2123
         */
2124
        @Getter
2125
        @Setter
2126
        @EqualsAndHashCode(callSuper = false)
2127
        public static class AmexExpressCheckout extends StripeObject {}
×
2128

2129
        /**
2130
         * For more details about ApplePay, please refer to the <a
2131
         * href="https://docs.stripe.com/api">API Reference.</a>
2132
         */
2133
        @Getter
2134
        @Setter
2135
        @EqualsAndHashCode(callSuper = false)
2136
        public static class ApplePay extends StripeObject {}
×
2137

2138
        /**
2139
         * For more details about GooglePay, please refer to the <a
2140
         * href="https://docs.stripe.com/api">API Reference.</a>
2141
         */
2142
        @Getter
2143
        @Setter
2144
        @EqualsAndHashCode(callSuper = false)
2145
        public static class GooglePay extends StripeObject {}
×
2146

2147
        /**
2148
         * For more details about Link, please refer to the <a
2149
         * href="https://docs.stripe.com/api">API Reference.</a>
2150
         */
2151
        @Getter
2152
        @Setter
2153
        @EqualsAndHashCode(callSuper = false)
2154
        public static class Link extends StripeObject {}
×
2155

2156
        /**
2157
         * For more details about Masterpass, please refer to the <a
2158
         * href="https://docs.stripe.com/api">API Reference.</a>
2159
         */
2160
        @Getter
2161
        @Setter
2162
        @EqualsAndHashCode(callSuper = false)
2163
        public static class Masterpass extends StripeObject {
×
2164
          /**
2165
           * Owner's verified billing address. Values are verified or provided by the wallet
2166
           * directly (if supported) at the time of authorization or settlement. They cannot be set
2167
           * or mutated.
2168
           */
2169
          @SerializedName("billing_address")
2170
          com.stripe.model.Address billingAddress;
2171

2172
          /**
2173
           * Owner's verified email. Values are verified or provided by the wallet directly (if
2174
           * supported) at the time of authorization or settlement. They cannot be set or mutated.
2175
           */
2176
          @SerializedName("email")
2177
          String email;
2178

2179
          /**
2180
           * Owner's verified full name. Values are verified or provided by the wallet directly (if
2181
           * supported) at the time of authorization or settlement. They cannot be set or mutated.
2182
           */
2183
          @SerializedName("name")
2184
          String name;
2185

2186
          /**
2187
           * Owner's verified shipping address. Values are verified or provided by the wallet
2188
           * directly (if supported) at the time of authorization or settlement. They cannot be set
2189
           * or mutated.
2190
           */
2191
          @SerializedName("shipping_address")
2192
          com.stripe.model.Address shippingAddress;
2193
        }
2194

2195
        /**
2196
         * For more details about SamsungPay, please refer to the <a
2197
         * href="https://docs.stripe.com/api">API Reference.</a>
2198
         */
2199
        @Getter
2200
        @Setter
2201
        @EqualsAndHashCode(callSuper = false)
2202
        public static class SamsungPay extends StripeObject {}
×
2203

2204
        /**
2205
         * For more details about VisaCheckout, please refer to the <a
2206
         * href="https://docs.stripe.com/api">API Reference.</a>
2207
         */
2208
        @Getter
2209
        @Setter
2210
        @EqualsAndHashCode(callSuper = false)
2211
        public static class VisaCheckout extends StripeObject {
×
2212
          /**
2213
           * Owner's verified billing address. Values are verified or provided by the wallet
2214
           * directly (if supported) at the time of authorization or settlement. They cannot be set
2215
           * or mutated.
2216
           */
2217
          @SerializedName("billing_address")
2218
          com.stripe.model.Address billingAddress;
2219

2220
          /**
2221
           * Owner's verified email. Values are verified or provided by the wallet directly (if
2222
           * supported) at the time of authorization or settlement. They cannot be set or mutated.
2223
           */
2224
          @SerializedName("email")
2225
          String email;
2226

2227
          /**
2228
           * Owner's verified full name. Values are verified or provided by the wallet directly (if
2229
           * supported) at the time of authorization or settlement. They cannot be set or mutated.
2230
           */
2231
          @SerializedName("name")
2232
          String name;
2233

2234
          /**
2235
           * Owner's verified shipping address. Values are verified or provided by the wallet
2236
           * directly (if supported) at the time of authorization or settlement. They cannot be set
2237
           * or mutated.
2238
           */
2239
          @SerializedName("shipping_address")
2240
          com.stripe.model.Address shippingAddress;
2241
        }
2242
      }
2243
    }
2244

2245
    /**
2246
     * For more details about CardPresent, please refer to the <a
2247
     * href="https://docs.stripe.com/api">API Reference.</a>
2248
     */
2249
    @Getter
2250
    @Setter
2251
    @EqualsAndHashCode(callSuper = false)
2252
    public static class CardPresent extends StripeObject {
×
2253
      /** The authorized amount. */
2254
      @SerializedName("amount_authorized")
2255
      Long amountAuthorized;
2256

2257
      /**
2258
       * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
2259
       * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
2260
       */
2261
      @SerializedName("brand")
2262
      String brand;
2263

2264
      /**
2265
       * The <a href="https://stripe.com/docs/card-product-codes">product code</a> that identifies
2266
       * the specific program or product associated with a card.
2267
       */
2268
      @SerializedName("brand_product")
2269
      String brandProduct;
2270

2271
      /**
2272
       * When using manual capture, a future timestamp after which the charge will be automatically
2273
       * refunded if uncaptured.
2274
       */
2275
      @SerializedName("capture_before")
2276
      Long captureBefore;
2277

2278
      /**
2279
       * The cardholder name as read from the card, in <a
2280
       * href="https://en.wikipedia.org/wiki/ISO/IEC_7813">ISO 7813</a> format. May include
2281
       * alphanumeric characters, special characters and first/last name separator ({@code /}). In
2282
       * some cases, the cardholder name may not be available depending on how the issuer has
2283
       * configured the card. Cardholder name is typically not available on swipe or contactless
2284
       * payments, such as those made with Apple Pay and Google Pay.
2285
       */
2286
      @SerializedName("cardholder_name")
2287
      String cardholderName;
2288

2289
      /**
2290
       * Two-letter ISO code representing the country of the card. You could use this attribute to
2291
       * get a sense of the international breakdown of cards you've collected.
2292
       */
2293
      @SerializedName("country")
2294
      String country;
2295

2296
      /**
2297
       * A high-level description of the type of cards issued in this range. (For internal use only
2298
       * and not typically available in standard API requests.)
2299
       */
2300
      @SerializedName("description")
2301
      String description;
2302

2303
      /** Authorization response cryptogram. */
2304
      @SerializedName("emv_auth_data")
2305
      String emvAuthData;
2306

2307
      /** Two-digit number representing the card's expiration month. */
2308
      @SerializedName("exp_month")
2309
      Long expMonth;
2310

2311
      /** Four-digit number representing the card's expiration year. */
2312
      @SerializedName("exp_year")
2313
      Long expYear;
2314

2315
      /**
2316
       * Uniquely identifies this particular card number. You can use this attribute to check
2317
       * whether two customers who’ve signed up with you are using the same card number, for
2318
       * example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
2319
       * tokenized number might be provided instead of the underlying card number.
2320
       *
2321
       * <p><em>As of May 1, 2021, card fingerprint in India for Connect changed to allow two
2322
       * fingerprints for the same card---one for India and one for the rest of the world.</em>
2323
       */
2324
      @SerializedName("fingerprint")
2325
      String fingerprint;
2326

2327
      /**
2328
       * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
2329
       * unknown}.
2330
       */
2331
      @SerializedName("funding")
2332
      String funding;
2333

2334
      /**
2335
       * ID of a card PaymentMethod generated from the card_present PaymentMethod that may be
2336
       * attached to a Customer for future transactions. Only present if it was possible to generate
2337
       * a card PaymentMethod.
2338
       */
2339
      @SerializedName("generated_card")
2340
      String generatedCard;
2341

2342
      /**
2343
       * Issuer identification number of the card. (For internal use only and not typically
2344
       * available in standard API requests.)
2345
       */
2346
      @SerializedName("iin")
2347
      String iin;
2348

2349
      /**
2350
       * Whether this <a href="https://stripe.com/docs/api/payment_intents">PaymentIntent</a> is
2351
       * eligible for incremental authorizations. Request support using <a
2352
       * href="https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support">request_incremental_authorization_support</a>.
2353
       */
2354
      @SerializedName("incremental_authorization_supported")
2355
      Boolean incrementalAuthorizationSupported;
2356

2357
      /**
2358
       * The name of the card's issuing bank. (For internal use only and not typically available in
2359
       * standard API requests.)
2360
       */
2361
      @SerializedName("issuer")
2362
      String issuer;
2363

2364
      /** The last four digits of the card. */
2365
      @SerializedName("last4")
2366
      String last4;
2367

2368
      /**
2369
       * Identifies which network this charge was processed on. Can be {@code amex}, {@code
2370
       * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
2371
       * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
2372
       */
2373
      @SerializedName("network")
2374
      String network;
2375

2376
      /**
2377
       * This is used by the financial networks to identify a transaction. Visa calls this the
2378
       * Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
2379
       * Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
2380
       * Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
2381
       * the date (MM/DD). This field will be available for successful Visa, Mastercard, or American
2382
       * Express transactions and always null for other card brands.
2383
       */
2384
      @SerializedName("network_transaction_id")
2385
      String networkTransactionId;
2386

2387
      /** Details about payments collected offline. */
2388
      @SerializedName("offline")
2389
      Offline offline;
2390

2391
      /** Defines whether the authorized amount can be over-captured or not. */
2392
      @SerializedName("overcapture_supported")
2393
      Boolean overcaptureSupported;
2394

2395
      /** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */
2396
      @SerializedName("preferred_locales")
2397
      List<String> preferredLocales;
2398

2399
      /**
2400
       * How card details were read in this transaction.
2401
       *
2402
       * <p>One of {@code contact_emv}, {@code contactless_emv}, {@code contactless_magstripe_mode},
2403
       * {@code magnetic_stripe_fallback}, or {@code magnetic_stripe_track2}.
2404
       */
2405
      @SerializedName("read_method")
2406
      String readMethod;
2407

2408
      /**
2409
       * A collection of fields required to be displayed on receipts. Only required for EMV
2410
       * transactions.
2411
       */
2412
      @SerializedName("receipt")
2413
      Receipt receipt;
2414

2415
      @SerializedName("wallet")
2416
      Wallet wallet;
2417

2418
      /**
2419
       * For more details about Offline, please refer to the <a
2420
       * href="https://docs.stripe.com/api">API Reference.</a>
2421
       */
2422
      @Getter
2423
      @Setter
2424
      @EqualsAndHashCode(callSuper = false)
2425
      public static class Offline extends StripeObject {
×
2426
        /** Time at which the payment was collected while offline. */
2427
        @SerializedName("stored_at")
2428
        Long storedAt;
2429

2430
        /**
2431
         * The method used to process this payment method offline. Only deferred is allowed.
2432
         *
2433
         * <p>Equal to {@code deferred}.
2434
         */
2435
        @SerializedName("type")
2436
        String type;
2437
      }
2438

2439
      /**
2440
       * For more details about Receipt, please refer to the <a
2441
       * href="https://docs.stripe.com/api">API Reference.</a>
2442
       */
2443
      @Getter
2444
      @Setter
2445
      @EqualsAndHashCode(callSuper = false)
2446
      public static class Receipt extends StripeObject {
×
2447
        /**
2448
         * The type of account being debited or credited
2449
         *
2450
         * <p>One of {@code checking}, {@code credit}, {@code prepaid}, or {@code unknown}.
2451
         */
2452
        @SerializedName("account_type")
2453
        String accountType;
2454

2455
        /** EMV tag 9F26, cryptogram generated by the integrated circuit chip. */
2456
        @SerializedName("application_cryptogram")
2457
        String applicationCryptogram;
2458

2459
        /** Mnenomic of the Application Identifier. */
2460
        @SerializedName("application_preferred_name")
2461
        String applicationPreferredName;
2462

2463
        /** Identifier for this transaction. */
2464
        @SerializedName("authorization_code")
2465
        String authorizationCode;
2466

2467
        /** EMV tag 8A. A code returned by the card issuer. */
2468
        @SerializedName("authorization_response_code")
2469
        String authorizationResponseCode;
2470

2471
        /**
2472
         * Describes the method used by the cardholder to verify ownership of the card. One of the
2473
         * following: {@code approval}, {@code failure}, {@code none}, {@code offline_pin}, {@code
2474
         * offline_pin_and_signature}, {@code online_pin}, or {@code signature}.
2475
         */
2476
        @SerializedName("cardholder_verification_method")
2477
        String cardholderVerificationMethod;
2478

2479
        /**
2480
         * EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
2481
         */
2482
        @SerializedName("dedicated_file_name")
2483
        String dedicatedFileName;
2484

2485
        /** The outcome of a series of EMV functions performed by the card reader. */
2486
        @SerializedName("terminal_verification_results")
2487
        String terminalVerificationResults;
2488

2489
        /** An indication of various EMV functions performed during the transaction. */
2490
        @SerializedName("transaction_status_information")
2491
        String transactionStatusInformation;
2492
      }
2493

2494
      /**
2495
       * For more details about Wallet, please refer to the <a
2496
       * href="https://docs.stripe.com/api">API Reference.</a>
2497
       */
2498
      @Getter
2499
      @Setter
2500
      @EqualsAndHashCode(callSuper = false)
2501
      public static class Wallet extends StripeObject {
×
2502
        /**
2503
         * The type of mobile wallet, one of {@code apple_pay}, {@code google_pay}, {@code
2504
         * samsung_pay}, or {@code unknown}.
2505
         */
2506
        @SerializedName("type")
2507
        String type;
2508
      }
2509
    }
2510

2511
    /**
2512
     * For more details about Cashapp, please refer to the <a href="https://docs.stripe.com/api">API
2513
     * Reference.</a>
2514
     */
2515
    @Getter
2516
    @Setter
2517
    @EqualsAndHashCode(callSuper = false)
2518
    public static class Cashapp extends StripeObject {
×
2519
      /** A unique and immutable identifier assigned by Cash App to every buyer. */
2520
      @SerializedName("buyer_id")
2521
      String buyerId;
2522

2523
      /** A public identifier for buyers using Cash App. */
2524
      @SerializedName("cashtag")
2525
      String cashtag;
2526
    }
2527

2528
    /**
2529
     * For more details about CustomerBalance, please refer to the <a
2530
     * href="https://docs.stripe.com/api">API Reference.</a>
2531
     */
2532
    @Getter
2533
    @Setter
2534
    @EqualsAndHashCode(callSuper = false)
2535
    public static class CustomerBalance extends StripeObject {}
×
2536

2537
    /**
2538
     * For more details about Eps, please refer to the <a href="https://docs.stripe.com/api">API
2539
     * Reference.</a>
2540
     */
2541
    @Getter
2542
    @Setter
2543
    @EqualsAndHashCode(callSuper = false)
2544
    public static class Eps extends StripeObject {
×
2545
      /**
2546
       * The customer's bank. Should be one of {@code arzte_und_apotheker_bank}, {@code
2547
       * austrian_anadi_bank_ag}, {@code bank_austria}, {@code bankhaus_carl_spangler}, {@code
2548
       * bankhaus_schelhammer_und_schattera_ag}, {@code bawag_psk_ag}, {@code bks_bank_ag}, {@code
2549
       * brull_kallmus_bank_ag}, {@code btv_vier_lander_bank}, {@code capital_bank_grawe_gruppe_ag},
2550
       * {@code deutsche_bank_ag}, {@code dolomitenbank}, {@code easybank_ag}, {@code
2551
       * erste_bank_und_sparkassen}, {@code hypo_alpeadriabank_international_ag}, {@code
2552
       * hypo_noe_lb_fur_niederosterreich_u_wien}, {@code hypo_oberosterreich_salzburg_steiermark},
2553
       * {@code hypo_tirol_bank_ag}, {@code hypo_vorarlberg_bank_ag}, {@code
2554
       * hypo_bank_burgenland_aktiengesellschaft}, {@code marchfelder_bank}, {@code oberbank_ag},
2555
       * {@code raiffeisen_bankengruppe_osterreich}, {@code schoellerbank_ag}, {@code
2556
       * sparda_bank_wien}, {@code volksbank_gruppe}, {@code volkskreditbank_ag}, or {@code
2557
       * vr_bank_braunau}.
2558
       */
2559
      @SerializedName("bank")
2560
      String bank;
2561

2562
      /**
2563
       * Owner's verified full name. Values are verified or provided by EPS directly (if supported)
2564
       * at the time of authorization or settlement. They cannot be set or mutated. EPS rarely
2565
       * provides this information so the attribute is usually empty.
2566
       */
2567
      @SerializedName("verified_name")
2568
      String verifiedName;
2569
    }
2570

2571
    /**
2572
     * For more details about Fpx, please refer to the <a href="https://docs.stripe.com/api">API
2573
     * Reference.</a>
2574
     */
2575
    @Getter
2576
    @Setter
2577
    @EqualsAndHashCode(callSuper = false)
2578
    public static class Fpx extends StripeObject {
×
2579
      /** Account holder type, if provided. Can be one of {@code individual} or {@code company}. */
2580
      @SerializedName("account_holder_type")
2581
      String accountHolderType;
2582

2583
      /**
2584
       * The customer's bank. Can be one of {@code affin_bank}, {@code agrobank}, {@code
2585
       * alliance_bank}, {@code ambank}, {@code bank_islam}, {@code bank_muamalat}, {@code
2586
       * bank_rakyat}, {@code bsn}, {@code cimb}, {@code hong_leong_bank}, {@code hsbc}, {@code
2587
       * kfh}, {@code maybank2u}, {@code ocbc}, {@code public_bank}, {@code rhb}, {@code
2588
       * standard_chartered}, {@code uob}, {@code deutsche_bank}, {@code maybank2e}, {@code
2589
       * pb_enterprise}, or {@code bank_of_china}.
2590
       */
2591
      @SerializedName("bank")
2592
      String bank;
2593

2594
      /** Unique transaction id generated by FPX for every request from the merchant. */
2595
      @SerializedName("transaction_id")
2596
      String transactionId;
2597
    }
2598

2599
    /**
2600
     * For more details about Giropay, please refer to the <a href="https://docs.stripe.com/api">API
2601
     * Reference.</a>
2602
     */
2603
    @Getter
2604
    @Setter
2605
    @EqualsAndHashCode(callSuper = false)
2606
    public static class Giropay extends StripeObject {
×
2607
      /** Bank code of bank associated with the bank account. */
2608
      @SerializedName("bank_code")
2609
      String bankCode;
2610

2611
      /** Name of the bank associated with the bank account. */
2612
      @SerializedName("bank_name")
2613
      String bankName;
2614

2615
      /** Bank Identifier Code of the bank associated with the bank account. */
2616
      @SerializedName("bic")
2617
      String bic;
2618

2619
      /**
2620
       * Owner's verified full name. Values are verified or provided by Giropay directly (if
2621
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
2622
       * Giropay rarely provides this information so the attribute is usually empty.
2623
       */
2624
      @SerializedName("verified_name")
2625
      String verifiedName;
2626
    }
2627

2628
    /**
2629
     * For more details about Gopay, please refer to the <a href="https://docs.stripe.com/api">API
2630
     * Reference.</a>
2631
     */
2632
    @Getter
2633
    @Setter
2634
    @EqualsAndHashCode(callSuper = false)
NEW
2635
    public static class Gopay extends StripeObject {}
×
2636

2637
    /**
2638
     * For more details about Grabpay, please refer to the <a href="https://docs.stripe.com/api">API
2639
     * Reference.</a>
2640
     */
2641
    @Getter
2642
    @Setter
2643
    @EqualsAndHashCode(callSuper = false)
2644
    public static class Grabpay extends StripeObject {
×
2645
      /** Unique transaction id generated by GrabPay. */
2646
      @SerializedName("transaction_id")
2647
      String transactionId;
2648
    }
2649

2650
    /**
2651
     * For more details about Ideal, please refer to the <a href="https://docs.stripe.com/api">API
2652
     * Reference.</a>
2653
     */
2654
    @Getter
2655
    @Setter
2656
    @EqualsAndHashCode(callSuper = false)
2657
    public static class Ideal extends StripeObject {
×
2658
      /**
2659
       * The customer's bank. Can be one of {@code abn_amro}, {@code asn_bank}, {@code bunq}, {@code
2660
       * handelsbanken}, {@code ing}, {@code knab}, {@code moneyou}, {@code n26}, {@code nn}, {@code
2661
       * rabobank}, {@code regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank},
2662
       * {@code van_lanschot}, or {@code yoursafe}.
2663
       */
2664
      @SerializedName("bank")
2665
      String bank;
2666

2667
      /**
2668
       * The Bank Identifier Code of the customer's bank.
2669
       *
2670
       * <p>One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
2671
       * FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code KNABNL2H}, {@code MOYONL21}, {@code
2672
       * NNBANL2G}, {@code NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code
2673
       * REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
2674
       */
2675
      @SerializedName("bic")
2676
      String bic;
2677

2678
      /** The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
2679
      @SerializedName("generated_sepa_debit")
2680
      @Getter(lombok.AccessLevel.NONE)
2681
      @Setter(lombok.AccessLevel.NONE)
2682
      ExpandableField<PaymentMethod> generatedSepaDebit;
2683

2684
      /** The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
2685
      @SerializedName("generated_sepa_debit_mandate")
2686
      @Getter(lombok.AccessLevel.NONE)
2687
      @Setter(lombok.AccessLevel.NONE)
2688
      ExpandableField<Mandate> generatedSepaDebitMandate;
2689

2690
      /** Last four characters of the IBAN. */
2691
      @SerializedName("iban_last4")
2692
      String ibanLast4;
2693

2694
      /**
2695
       * Owner's verified full name. Values are verified or provided by iDEAL directly (if
2696
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
2697
       */
2698
      @SerializedName("verified_name")
2699
      String verifiedName;
2700

2701
      /** Get ID of expandable {@code generatedSepaDebit} object. */
2702
      public String getGeneratedSepaDebit() {
2703
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getId() : null;
×
2704
      }
2705

2706
      public void setGeneratedSepaDebit(String id) {
2707
        this.generatedSepaDebit = ApiResource.setExpandableFieldId(id, this.generatedSepaDebit);
×
2708
      }
×
2709

2710
      /** Get expanded {@code generatedSepaDebit}. */
2711
      public PaymentMethod getGeneratedSepaDebitObject() {
2712
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getExpanded() : null;
×
2713
      }
2714

2715
      public void setGeneratedSepaDebitObject(PaymentMethod expandableObject) {
2716
        this.generatedSepaDebit =
×
2717
            new ExpandableField<PaymentMethod>(expandableObject.getId(), expandableObject);
×
2718
      }
×
2719

2720
      /** Get ID of expandable {@code generatedSepaDebitMandate} object. */
2721
      public String getGeneratedSepaDebitMandate() {
2722
        return (this.generatedSepaDebitMandate != null)
×
2723
            ? this.generatedSepaDebitMandate.getId()
×
2724
            : null;
×
2725
      }
2726

2727
      public void setGeneratedSepaDebitMandate(String id) {
2728
        this.generatedSepaDebitMandate =
×
2729
            ApiResource.setExpandableFieldId(id, this.generatedSepaDebitMandate);
×
2730
      }
×
2731

2732
      /** Get expanded {@code generatedSepaDebitMandate}. */
2733
      public Mandate getGeneratedSepaDebitMandateObject() {
2734
        return (this.generatedSepaDebitMandate != null)
×
2735
            ? this.generatedSepaDebitMandate.getExpanded()
×
2736
            : null;
×
2737
      }
2738

2739
      public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) {
2740
        this.generatedSepaDebitMandate =
×
2741
            new ExpandableField<Mandate>(expandableObject.getId(), expandableObject);
×
2742
      }
×
2743
    }
2744

2745
    /**
2746
     * For more details about InteracPresent, please refer to the <a
2747
     * href="https://docs.stripe.com/api">API Reference.</a>
2748
     */
2749
    @Getter
2750
    @Setter
2751
    @EqualsAndHashCode(callSuper = false)
2752
    public static class InteracPresent extends StripeObject {
×
2753
      /** Card brand. Can be {@code interac}, {@code mastercard} or {@code visa}. */
2754
      @SerializedName("brand")
2755
      String brand;
2756

2757
      /**
2758
       * The cardholder name as read from the card, in <a
2759
       * href="https://en.wikipedia.org/wiki/ISO/IEC_7813">ISO 7813</a> format. May include
2760
       * alphanumeric characters, special characters and first/last name separator ({@code /}). In
2761
       * some cases, the cardholder name may not be available depending on how the issuer has
2762
       * configured the card. Cardholder name is typically not available on swipe or contactless
2763
       * payments, such as those made with Apple Pay and Google Pay.
2764
       */
2765
      @SerializedName("cardholder_name")
2766
      String cardholderName;
2767

2768
      /**
2769
       * Two-letter ISO code representing the country of the card. You could use this attribute to
2770
       * get a sense of the international breakdown of cards you've collected.
2771
       */
2772
      @SerializedName("country")
2773
      String country;
2774

2775
      /**
2776
       * A high-level description of the type of cards issued in this range. (For internal use only
2777
       * and not typically available in standard API requests.)
2778
       */
2779
      @SerializedName("description")
2780
      String description;
2781

2782
      /** Authorization response cryptogram. */
2783
      @SerializedName("emv_auth_data")
2784
      String emvAuthData;
2785

2786
      /** Two-digit number representing the card's expiration month. */
2787
      @SerializedName("exp_month")
2788
      Long expMonth;
2789

2790
      /** Four-digit number representing the card's expiration year. */
2791
      @SerializedName("exp_year")
2792
      Long expYear;
2793

2794
      /**
2795
       * Uniquely identifies this particular card number. You can use this attribute to check
2796
       * whether two customers who’ve signed up with you are using the same card number, for
2797
       * example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
2798
       * tokenized number might be provided instead of the underlying card number.
2799
       *
2800
       * <p><em>As of May 1, 2021, card fingerprint in India for Connect changed to allow two
2801
       * fingerprints for the same card---one for India and one for the rest of the world.</em>
2802
       */
2803
      @SerializedName("fingerprint")
2804
      String fingerprint;
2805

2806
      /**
2807
       * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
2808
       * unknown}.
2809
       */
2810
      @SerializedName("funding")
2811
      String funding;
2812

2813
      /**
2814
       * ID of a card PaymentMethod generated from the card_present PaymentMethod that may be
2815
       * attached to a Customer for future transactions. Only present if it was possible to generate
2816
       * a card PaymentMethod.
2817
       */
2818
      @SerializedName("generated_card")
2819
      String generatedCard;
2820

2821
      /**
2822
       * Issuer identification number of the card. (For internal use only and not typically
2823
       * available in standard API requests.)
2824
       */
2825
      @SerializedName("iin")
2826
      String iin;
2827

2828
      /**
2829
       * The name of the card's issuing bank. (For internal use only and not typically available in
2830
       * standard API requests.)
2831
       */
2832
      @SerializedName("issuer")
2833
      String issuer;
2834

2835
      /** The last four digits of the card. */
2836
      @SerializedName("last4")
2837
      String last4;
2838

2839
      /**
2840
       * Identifies which network this charge was processed on. Can be {@code amex}, {@code
2841
       * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
2842
       * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}.
2843
       */
2844
      @SerializedName("network")
2845
      String network;
2846

2847
      /**
2848
       * This is used by the financial networks to identify a transaction. Visa calls this the
2849
       * Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
2850
       * Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
2851
       * Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
2852
       * the date (MM/DD). This field will be available for successful Visa, Mastercard, or American
2853
       * Express transactions and always null for other card brands.
2854
       */
2855
      @SerializedName("network_transaction_id")
2856
      String networkTransactionId;
2857

2858
      /** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */
2859
      @SerializedName("preferred_locales")
2860
      List<String> preferredLocales;
2861

2862
      /**
2863
       * How card details were read in this transaction.
2864
       *
2865
       * <p>One of {@code contact_emv}, {@code contactless_emv}, {@code contactless_magstripe_mode},
2866
       * {@code magnetic_stripe_fallback}, or {@code magnetic_stripe_track2}.
2867
       */
2868
      @SerializedName("read_method")
2869
      String readMethod;
2870

2871
      /**
2872
       * A collection of fields required to be displayed on receipts. Only required for EMV
2873
       * transactions.
2874
       */
2875
      @SerializedName("receipt")
2876
      Receipt receipt;
2877

2878
      /**
2879
       * For more details about Receipt, please refer to the <a
2880
       * href="https://docs.stripe.com/api">API Reference.</a>
2881
       */
2882
      @Getter
2883
      @Setter
2884
      @EqualsAndHashCode(callSuper = false)
2885
      public static class Receipt extends StripeObject {
×
2886
        /**
2887
         * The type of account being debited or credited
2888
         *
2889
         * <p>One of {@code checking}, {@code savings}, or {@code unknown}.
2890
         */
2891
        @SerializedName("account_type")
2892
        String accountType;
2893

2894
        /** EMV tag 9F26, cryptogram generated by the integrated circuit chip. */
2895
        @SerializedName("application_cryptogram")
2896
        String applicationCryptogram;
2897

2898
        /** Mnenomic of the Application Identifier. */
2899
        @SerializedName("application_preferred_name")
2900
        String applicationPreferredName;
2901

2902
        /** Identifier for this transaction. */
2903
        @SerializedName("authorization_code")
2904
        String authorizationCode;
2905

2906
        /** EMV tag 8A. A code returned by the card issuer. */
2907
        @SerializedName("authorization_response_code")
2908
        String authorizationResponseCode;
2909

2910
        /**
2911
         * Describes the method used by the cardholder to verify ownership of the card. One of the
2912
         * following: {@code approval}, {@code failure}, {@code none}, {@code offline_pin}, {@code
2913
         * offline_pin_and_signature}, {@code online_pin}, or {@code signature}.
2914
         */
2915
        @SerializedName("cardholder_verification_method")
2916
        String cardholderVerificationMethod;
2917

2918
        /**
2919
         * EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
2920
         */
2921
        @SerializedName("dedicated_file_name")
2922
        String dedicatedFileName;
2923

2924
        /** The outcome of a series of EMV functions performed by the card reader. */
2925
        @SerializedName("terminal_verification_results")
2926
        String terminalVerificationResults;
2927

2928
        /** An indication of various EMV functions performed during the transaction. */
2929
        @SerializedName("transaction_status_information")
2930
        String transactionStatusInformation;
2931
      }
2932
    }
2933

2934
    /**
2935
     * For more details about KakaoPay, please refer to the <a
2936
     * href="https://docs.stripe.com/api">API Reference.</a>
2937
     */
2938
    @Getter
2939
    @Setter
2940
    @EqualsAndHashCode(callSuper = false)
2941
    public static class KakaoPay extends StripeObject {
×
2942
      /** A unique identifier for the buyer as determined by the local payment processor. */
2943
      @SerializedName("buyer_id")
2944
      String buyerId;
2945
    }
2946

2947
    /**
2948
     * For more details about Klarna, please refer to the <a href="https://docs.stripe.com/api">API
2949
     * Reference.</a>
2950
     */
2951
    @Getter
2952
    @Setter
2953
    @EqualsAndHashCode(callSuper = false)
2954
    public static class Klarna extends StripeObject {
×
2955
      /** The payer details for this transaction. */
2956
      @SerializedName("payer_details")
2957
      PayerDetails payerDetails;
2958

2959
      /**
2960
       * The Klarna payment method used for this transaction. Can be one of {@code pay_later},
2961
       * {@code pay_now}, {@code pay_with_financing}, or {@code pay_in_installments}
2962
       */
2963
      @SerializedName("payment_method_category")
2964
      String paymentMethodCategory;
2965

2966
      /**
2967
       * Preferred language of the Klarna authorization page that the customer is redirected to. Can
2968
       * be one of {@code de-AT}, {@code en-AT}, {@code nl-BE}, {@code fr-BE}, {@code en-BE}, {@code
2969
       * de-DE}, {@code en-DE}, {@code da-DK}, {@code en-DK}, {@code es-ES}, {@code en-ES}, {@code
2970
       * fi-FI}, {@code sv-FI}, {@code en-FI}, {@code en-GB}, {@code en-IE}, {@code it-IT}, {@code
2971
       * en-IT}, {@code nl-NL}, {@code en-NL}, {@code nb-NO}, {@code en-NO}, {@code sv-SE}, {@code
2972
       * en-SE}, {@code en-US}, {@code es-US}, {@code fr-FR}, {@code en-FR}, {@code cs-CZ}, {@code
2973
       * en-CZ}, {@code ro-RO}, {@code en-RO}, {@code el-GR}, {@code en-GR}, {@code en-AU}, {@code
2974
       * en-NZ}, {@code en-CA}, {@code fr-CA}, {@code pl-PL}, {@code en-PL}, {@code pt-PT}, {@code
2975
       * en-PT}, {@code de-CH}, {@code fr-CH}, {@code it-CH}, or {@code en-CH}
2976
       */
2977
      @SerializedName("preferred_locale")
2978
      String preferredLocale;
2979

2980
      /**
2981
       * For more details about PayerDetails, please refer to the <a
2982
       * href="https://docs.stripe.com/api">API Reference.</a>
2983
       */
2984
      @Getter
2985
      @Setter
2986
      @EqualsAndHashCode(callSuper = false)
2987
      public static class PayerDetails extends StripeObject {
×
2988
        /** The payer's address. */
2989
        @SerializedName("address")
2990
        com.stripe.model.Charge.PaymentMethodDetails.Klarna.PayerDetails.Address address;
2991

2992
        /**
2993
         * For more details about Address, please refer to the <a
2994
         * href="https://docs.stripe.com/api">API Reference.</a>
2995
         */
2996
        @Getter
2997
        @Setter
2998
        @EqualsAndHashCode(callSuper = false)
2999
        public static class Address extends StripeObject {
×
3000
          /** The payer address country. */
3001
          @SerializedName("country")
3002
          String country;
3003
        }
3004
      }
3005
    }
3006

3007
    /**
3008
     * For more details about Konbini, please refer to the <a href="https://docs.stripe.com/api">API
3009
     * Reference.</a>
3010
     */
3011
    @Getter
3012
    @Setter
3013
    @EqualsAndHashCode(callSuper = false)
3014
    public static class Konbini extends StripeObject {
×
3015
      /**
3016
       * If the payment succeeded, this contains the details of the convenience store where the
3017
       * payment was completed.
3018
       */
3019
      @SerializedName("store")
3020
      Store store;
3021

3022
      /**
3023
       * For more details about Store, please refer to the <a href="https://docs.stripe.com/api">API
3024
       * Reference.</a>
3025
       */
3026
      @Getter
3027
      @Setter
3028
      @EqualsAndHashCode(callSuper = false)
3029
      public static class Store extends StripeObject {
×
3030
        /**
3031
         * The name of the convenience store chain where the payment was completed.
3032
         *
3033
         * <p>One of {@code familymart}, {@code lawson}, {@code ministop}, or {@code seicomart}.
3034
         */
3035
        @SerializedName("chain")
3036
        String chain;
3037
      }
3038
    }
3039

3040
    /**
3041
     * For more details about KrCard, please refer to the <a href="https://docs.stripe.com/api">API
3042
     * Reference.</a>
3043
     */
3044
    @Getter
3045
    @Setter
3046
    @EqualsAndHashCode(callSuper = false)
3047
    public static class KrCard extends StripeObject {
×
3048
      /**
3049
       * The local credit or debit card brand.
3050
       *
3051
       * <p>One of {@code bc}, {@code citi}, {@code hana}, {@code hyundai}, {@code jeju}, {@code
3052
       * jeonbuk}, {@code kakaobank}, {@code kbank}, {@code kdbbank}, {@code kookmin}, {@code
3053
       * kwangju}, {@code lotte}, {@code mg}, {@code nh}, {@code post}, {@code samsung}, {@code
3054
       * savingsbank}, {@code shinhan}, {@code shinhyup}, {@code suhyup}, {@code tossbank}, or
3055
       * {@code woori}.
3056
       */
3057
      @SerializedName("brand")
3058
      String brand;
3059

3060
      /** A unique identifier for the buyer as determined by the local payment processor. */
3061
      @SerializedName("buyer_id")
3062
      String buyerId;
3063

3064
      /** The last four digits of the card. This may not be present for American Express cards. */
3065
      @SerializedName("last4")
3066
      String last4;
3067
    }
3068

3069
    /**
3070
     * For more details about Link, please refer to the <a href="https://docs.stripe.com/api">API
3071
     * Reference.</a>
3072
     */
3073
    @Getter
3074
    @Setter
3075
    @EqualsAndHashCode(callSuper = false)
3076
    public static class Link extends StripeObject {
×
3077
      /**
3078
       * Two-letter ISO code representing the funding source country beneath the Link payment. You
3079
       * could use this attribute to get a sense of international fees.
3080
       */
3081
      @SerializedName("country")
3082
      String country;
3083
    }
3084

3085
    /**
3086
     * For more details about MbWay, please refer to the <a href="https://docs.stripe.com/api">API
3087
     * Reference.</a>
3088
     */
3089
    @Getter
3090
    @Setter
3091
    @EqualsAndHashCode(callSuper = false)
3092
    public static class MbWay extends StripeObject {}
×
3093

3094
    /**
3095
     * For more details about Mobilepay, please refer to the <a
3096
     * href="https://docs.stripe.com/api">API Reference.</a>
3097
     */
3098
    @Getter
3099
    @Setter
3100
    @EqualsAndHashCode(callSuper = false)
3101
    public static class Mobilepay extends StripeObject {
×
3102
      /** Internal card details. */
3103
      @SerializedName("card")
3104
      Card card;
3105

3106
      /**
3107
       * For more details about Card, please refer to the <a href="https://docs.stripe.com/api">API
3108
       * Reference.</a>
3109
       */
3110
      @Getter
3111
      @Setter
3112
      @EqualsAndHashCode(callSuper = false)
3113
      public static class Card extends StripeObject {
×
3114
        /** Brand of the card used in the transaction. */
3115
        @SerializedName("brand")
3116
        String brand;
3117

3118
        /** Two-letter ISO code representing the country of the card. */
3119
        @SerializedName("country")
3120
        String country;
3121

3122
        /** Two digit number representing the card's expiration month. */
3123
        @SerializedName("exp_month")
3124
        Long expMonth;
3125

3126
        /** Two digit number representing the card's expiration year. */
3127
        @SerializedName("exp_year")
3128
        Long expYear;
3129

3130
        /** The last 4 digits of the card. */
3131
        @SerializedName("last4")
3132
        String last4;
3133
      }
3134
    }
3135

3136
    /**
3137
     * For more details about Multibanco, please refer to the <a
3138
     * href="https://docs.stripe.com/api">API Reference.</a>
3139
     */
3140
    @Getter
3141
    @Setter
3142
    @EqualsAndHashCode(callSuper = false)
3143
    public static class Multibanco extends StripeObject {
×
3144
      /** Entity number associated with this Multibanco payment. */
3145
      @SerializedName("entity")
3146
      String entity;
3147

3148
      /** Reference number associated with this Multibanco payment. */
3149
      @SerializedName("reference")
3150
      String reference;
3151
    }
3152

3153
    /**
3154
     * For more details about NaverPay, please refer to the <a
3155
     * href="https://docs.stripe.com/api">API Reference.</a>
3156
     */
3157
    @Getter
3158
    @Setter
3159
    @EqualsAndHashCode(callSuper = false)
3160
    public static class NaverPay extends StripeObject {
×
3161
      /** A unique identifier for the buyer as determined by the local payment processor. */
3162
      @SerializedName("buyer_id")
3163
      String buyerId;
3164
    }
3165

3166
    /**
3167
     * For more details about Oxxo, please refer to the <a href="https://docs.stripe.com/api">API
3168
     * Reference.</a>
3169
     */
3170
    @Getter
3171
    @Setter
3172
    @EqualsAndHashCode(callSuper = false)
3173
    public static class Oxxo extends StripeObject {
×
3174
      /** OXXO reference number. */
3175
      @SerializedName("number")
3176
      String number;
3177
    }
3178

3179
    /**
3180
     * For more details about P24, please refer to the <a href="https://docs.stripe.com/api">API
3181
     * Reference.</a>
3182
     */
3183
    @Getter
3184
    @Setter
3185
    @EqualsAndHashCode(callSuper = false)
3186
    public static class P24 extends StripeObject {
×
3187
      /**
3188
       * The customer's bank. Can be one of {@code ing}, {@code citi_handlowy}, {@code
3189
       * tmobile_usbugi_bankowe}, {@code plus_bank}, {@code etransfer_pocztowy24}, {@code
3190
       * banki_spbdzielcze}, {@code bank_nowy_bfg_sa}, {@code getin_bank}, {@code velobank}, {@code
3191
       * blik}, {@code noble_pay}, {@code ideabank}, {@code envelobank}, {@code
3192
       * santander_przelew24}, {@code nest_przelew}, {@code mbank_mtransfer}, {@code inteligo},
3193
       * {@code pbac_z_ipko}, {@code bnp_paribas}, {@code credit_agricole}, {@code toyota_bank},
3194
       * {@code bank_pekao_sa}, {@code volkswagen_bank}, {@code bank_millennium}, {@code
3195
       * alior_bank}, or {@code boz}.
3196
       */
3197
      @SerializedName("bank")
3198
      String bank;
3199

3200
      /** Unique reference for this Przelewy24 payment. */
3201
      @SerializedName("reference")
3202
      String reference;
3203

3204
      /**
3205
       * Owner's verified full name. Values are verified or provided by Przelewy24 directly (if
3206
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
3207
       * Przelewy24 rarely provides this information so the attribute is usually empty.
3208
       */
3209
      @SerializedName("verified_name")
3210
      String verifiedName;
3211
    }
3212

3213
    /**
3214
     * For more details about Payco, please refer to the <a href="https://docs.stripe.com/api">API
3215
     * Reference.</a>
3216
     */
3217
    @Getter
3218
    @Setter
3219
    @EqualsAndHashCode(callSuper = false)
3220
    public static class Payco extends StripeObject {
×
3221
      /** A unique identifier for the buyer as determined by the local payment processor. */
3222
      @SerializedName("buyer_id")
3223
      String buyerId;
3224
    }
3225

3226
    /**
3227
     * For more details about Paynow, please refer to the <a href="https://docs.stripe.com/api">API
3228
     * Reference.</a>
3229
     */
3230
    @Getter
3231
    @Setter
3232
    @EqualsAndHashCode(callSuper = false)
3233
    public static class Paynow extends StripeObject {
×
3234
      /** Reference number associated with this PayNow payment. */
3235
      @SerializedName("reference")
3236
      String reference;
3237
    }
3238

3239
    /**
3240
     * For more details about Paypal, please refer to the <a href="https://docs.stripe.com/api">API
3241
     * Reference.</a>
3242
     */
3243
    @Getter
3244
    @Setter
3245
    @EqualsAndHashCode(callSuper = false)
3246
    public static class Paypal extends StripeObject {
×
3247
      /**
3248
       * Owner's email. Values are provided by PayPal directly (if supported) at the time of
3249
       * authorization or settlement. They cannot be set or mutated.
3250
       */
3251
      @SerializedName("payer_email")
3252
      String payerEmail;
3253

3254
      /** PayPal account PayerID. This identifier uniquely identifies the PayPal customer. */
3255
      @SerializedName("payer_id")
3256
      String payerId;
3257

3258
      /**
3259
       * Owner's full name. Values provided by PayPal directly (if supported) at the time of
3260
       * authorization or settlement. They cannot be set or mutated.
3261
       */
3262
      @SerializedName("payer_name")
3263
      String payerName;
3264

3265
      /**
3266
       * The level of protection offered as defined by PayPal Seller Protection for Merchants, for
3267
       * this transaction.
3268
       */
3269
      @SerializedName("seller_protection")
3270
      SellerProtection sellerProtection;
3271

3272
      /**
3273
       * The shipping address for the customer, as supplied by the merchant at the point of payment
3274
       * execution. This shipping address will not be updated if the merchant updates the shipping
3275
       * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
3276
       */
3277
      @SerializedName("shipping")
3278
      com.stripe.model.Address shipping;
3279

3280
      /** A unique ID generated by PayPal for this transaction. */
3281
      @SerializedName("transaction_id")
3282
      String transactionId;
3283

3284
      /**
3285
       * The shipping address for the customer, as supplied by the merchant at the point of payment
3286
       * execution. This shipping address will not be updated if the merchant updates the shipping
3287
       * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
3288
       */
3289
      @SerializedName("verified_address")
3290
      com.stripe.model.Address verifiedAddress;
3291

3292
      /**
3293
       * Owner's verified email. Values are verified or provided by PayPal directly (if supported)
3294
       * at the time of authorization or settlement. They cannot be set or mutated.
3295
       */
3296
      @SerializedName("verified_email")
3297
      String verifiedEmail;
3298

3299
      /**
3300
       * Owner's verified full name. Values are verified or provided by PayPal directly (if
3301
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
3302
       */
3303
      @SerializedName("verified_name")
3304
      String verifiedName;
3305

3306
      /**
3307
       * For more details about SellerProtection, please refer to the <a
3308
       * href="https://docs.stripe.com/api">API Reference.</a>
3309
       */
3310
      @Getter
3311
      @Setter
3312
      @EqualsAndHashCode(callSuper = false)
3313
      public static class SellerProtection extends StripeObject {
×
3314
        /** An array of conditions that are covered for the transaction, if applicable. */
3315
        @SerializedName("dispute_categories")
3316
        List<String> disputeCategories;
3317

3318
        /**
3319
         * Indicates whether the transaction is eligible for PayPal's seller protection.
3320
         *
3321
         * <p>One of {@code eligible}, {@code not_eligible}, or {@code partially_eligible}.
3322
         */
3323
        @SerializedName("status")
3324
        String status;
3325
      }
3326
    }
3327

3328
    /**
3329
     * For more details about Payto, please refer to the <a href="https://docs.stripe.com/api">API
3330
     * Reference.</a>
3331
     */
3332
    @Getter
3333
    @Setter
3334
    @EqualsAndHashCode(callSuper = false)
3335
    public static class Payto extends StripeObject {
×
3336
      /** Bank-State-Branch number of the bank account. */
3337
      @SerializedName("bsb_number")
3338
      String bsbNumber;
3339

3340
      /** Last four digits of the bank account number. */
3341
      @SerializedName("last4")
3342
      String last4;
3343

3344
      /** ID of the mandate used to make this payment. */
3345
      @SerializedName("mandate")
3346
      String mandate;
3347

3348
      /** The PayID alias for the bank account. */
3349
      @SerializedName("pay_id")
3350
      String payId;
3351
    }
3352

3353
    /**
3354
     * For more details about Pix, please refer to the <a href="https://docs.stripe.com/api">API
3355
     * Reference.</a>
3356
     */
3357
    @Getter
3358
    @Setter
3359
    @EqualsAndHashCode(callSuper = false)
3360
    public static class Pix extends StripeObject {
×
3361
      /** Unique transaction id generated by BCB. */
3362
      @SerializedName("bank_transaction_id")
3363
      String bankTransactionId;
3364
    }
3365

3366
    /**
3367
     * For more details about Promptpay, please refer to the <a
3368
     * href="https://docs.stripe.com/api">API Reference.</a>
3369
     */
3370
    @Getter
3371
    @Setter
3372
    @EqualsAndHashCode(callSuper = false)
3373
    public static class Promptpay extends StripeObject {
×
3374
      /** Bill reference generated by PromptPay. */
3375
      @SerializedName("reference")
3376
      String reference;
3377
    }
3378

3379
    /**
3380
     * For more details about Qris, please refer to the <a href="https://docs.stripe.com/api">API
3381
     * Reference.</a>
3382
     */
3383
    @Getter
3384
    @Setter
3385
    @EqualsAndHashCode(callSuper = false)
NEW
3386
    public static class Qris extends StripeObject {}
×
3387

3388
    /**
3389
     * For more details about Rechnung, please refer to the <a
3390
     * href="https://docs.stripe.com/api">API Reference.</a>
3391
     */
3392
    @Getter
3393
    @Setter
3394
    @EqualsAndHashCode(callSuper = false)
3395
    public static class Rechnung extends StripeObject {}
×
3396

3397
    /**
3398
     * For more details about RevolutPay, please refer to the <a
3399
     * href="https://docs.stripe.com/api">API Reference.</a>
3400
     */
3401
    @Getter
3402
    @Setter
3403
    @EqualsAndHashCode(callSuper = false)
3404
    public static class RevolutPay extends StripeObject {}
×
3405

3406
    /**
3407
     * For more details about SamsungPay, please refer to the <a
3408
     * href="https://docs.stripe.com/api">API Reference.</a>
3409
     */
3410
    @Getter
3411
    @Setter
3412
    @EqualsAndHashCode(callSuper = false)
3413
    public static class SamsungPay extends StripeObject {
×
3414
      /** A unique identifier for the buyer as determined by the local payment processor. */
3415
      @SerializedName("buyer_id")
3416
      String buyerId;
3417
    }
3418

3419
    /**
3420
     * For more details about SepaCreditTransfer, please refer to the <a
3421
     * href="https://docs.stripe.com/api">API Reference.</a>
3422
     */
3423
    @Getter
3424
    @Setter
3425
    @EqualsAndHashCode(callSuper = false)
3426
    public static class SepaCreditTransfer extends StripeObject {
×
3427
      /** Name of the bank associated with the bank account. */
3428
      @SerializedName("bank_name")
3429
      String bankName;
3430

3431
      /** Bank Identifier Code of the bank associated with the bank account. */
3432
      @SerializedName("bic")
3433
      String bic;
3434

3435
      /** IBAN of the bank account to transfer funds to. */
3436
      @SerializedName("iban")
3437
      String iban;
3438
    }
3439

3440
    /**
3441
     * For more details about SepaDebit, please refer to the <a
3442
     * href="https://docs.stripe.com/api">API Reference.</a>
3443
     */
3444
    @Getter
3445
    @Setter
3446
    @EqualsAndHashCode(callSuper = false)
3447
    public static class SepaDebit extends StripeObject {
×
3448
      /** Bank code of bank associated with the bank account. */
3449
      @SerializedName("bank_code")
3450
      String bankCode;
3451

3452
      /** Branch code of bank associated with the bank account. */
3453
      @SerializedName("branch_code")
3454
      String branchCode;
3455

3456
      /** Two-letter ISO code representing the country the bank account is located in. */
3457
      @SerializedName("country")
3458
      String country;
3459

3460
      /**
3461
       * Uniquely identifies this particular bank account. You can use this attribute to check
3462
       * whether two bank accounts are the same.
3463
       */
3464
      @SerializedName("fingerprint")
3465
      String fingerprint;
3466

3467
      /** Last four characters of the IBAN. */
3468
      @SerializedName("last4")
3469
      String last4;
3470

3471
      /**
3472
       * Find the ID of the mandate used for this payment under the <a
3473
       * href="https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate">payment_method_details.sepa_debit.mandate</a>
3474
       * property on the Charge. Use this mandate ID to <a
3475
       * href="https://stripe.com/docs/api/mandates/retrieve">retrieve the Mandate</a>.
3476
       */
3477
      @SerializedName("mandate")
3478
      String mandate;
3479
    }
3480

3481
    /**
3482
     * For more details about Shopeepay, please refer to the <a
3483
     * href="https://docs.stripe.com/api">API Reference.</a>
3484
     */
3485
    @Getter
3486
    @Setter
3487
    @EqualsAndHashCode(callSuper = false)
NEW
3488
    public static class Shopeepay extends StripeObject {}
×
3489

3490
    /**
3491
     * For more details about Sofort, please refer to the <a href="https://docs.stripe.com/api">API
3492
     * Reference.</a>
3493
     */
3494
    @Getter
3495
    @Setter
3496
    @EqualsAndHashCode(callSuper = false)
3497
    public static class Sofort extends StripeObject {
×
3498
      /** Bank code of bank associated with the bank account. */
3499
      @SerializedName("bank_code")
3500
      String bankCode;
3501

3502
      /** Name of the bank associated with the bank account. */
3503
      @SerializedName("bank_name")
3504
      String bankName;
3505

3506
      /** Bank Identifier Code of the bank associated with the bank account. */
3507
      @SerializedName("bic")
3508
      String bic;
3509

3510
      /** Two-letter ISO code representing the country the bank account is located in. */
3511
      @SerializedName("country")
3512
      String country;
3513

3514
      /** The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
3515
      @SerializedName("generated_sepa_debit")
3516
      @Getter(lombok.AccessLevel.NONE)
3517
      @Setter(lombok.AccessLevel.NONE)
3518
      ExpandableField<PaymentMethod> generatedSepaDebit;
3519

3520
      /** The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
3521
      @SerializedName("generated_sepa_debit_mandate")
3522
      @Getter(lombok.AccessLevel.NONE)
3523
      @Setter(lombok.AccessLevel.NONE)
3524
      ExpandableField<Mandate> generatedSepaDebitMandate;
3525

3526
      /** Last four characters of the IBAN. */
3527
      @SerializedName("iban_last4")
3528
      String ibanLast4;
3529

3530
      /**
3531
       * Preferred language of the SOFORT authorization page that the customer is redirected to. Can
3532
       * be one of {@code de}, {@code en}, {@code es}, {@code fr}, {@code it}, {@code nl}, or {@code
3533
       * pl}
3534
       */
3535
      @SerializedName("preferred_language")
3536
      String preferredLanguage;
3537

3538
      /**
3539
       * Owner's verified full name. Values are verified or provided by SOFORT directly (if
3540
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
3541
       */
3542
      @SerializedName("verified_name")
3543
      String verifiedName;
3544

3545
      /** Get ID of expandable {@code generatedSepaDebit} object. */
3546
      public String getGeneratedSepaDebit() {
3547
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getId() : null;
×
3548
      }
3549

3550
      public void setGeneratedSepaDebit(String id) {
3551
        this.generatedSepaDebit = ApiResource.setExpandableFieldId(id, this.generatedSepaDebit);
×
3552
      }
×
3553

3554
      /** Get expanded {@code generatedSepaDebit}. */
3555
      public PaymentMethod getGeneratedSepaDebitObject() {
3556
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getExpanded() : null;
×
3557
      }
3558

3559
      public void setGeneratedSepaDebitObject(PaymentMethod expandableObject) {
3560
        this.generatedSepaDebit =
×
3561
            new ExpandableField<PaymentMethod>(expandableObject.getId(), expandableObject);
×
3562
      }
×
3563

3564
      /** Get ID of expandable {@code generatedSepaDebitMandate} object. */
3565
      public String getGeneratedSepaDebitMandate() {
3566
        return (this.generatedSepaDebitMandate != null)
×
3567
            ? this.generatedSepaDebitMandate.getId()
×
3568
            : null;
×
3569
      }
3570

3571
      public void setGeneratedSepaDebitMandate(String id) {
3572
        this.generatedSepaDebitMandate =
×
3573
            ApiResource.setExpandableFieldId(id, this.generatedSepaDebitMandate);
×
3574
      }
×
3575

3576
      /** Get expanded {@code generatedSepaDebitMandate}. */
3577
      public Mandate getGeneratedSepaDebitMandateObject() {
3578
        return (this.generatedSepaDebitMandate != null)
×
3579
            ? this.generatedSepaDebitMandate.getExpanded()
×
3580
            : null;
×
3581
      }
3582

3583
      public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) {
3584
        this.generatedSepaDebitMandate =
×
3585
            new ExpandableField<Mandate>(expandableObject.getId(), expandableObject);
×
3586
      }
×
3587
    }
3588

3589
    /**
3590
     * For more details about StripeAccount, please refer to the <a
3591
     * href="https://docs.stripe.com/api">API Reference.</a>
3592
     */
3593
    @Getter
3594
    @Setter
3595
    @EqualsAndHashCode(callSuper = false)
3596
    public static class StripeAccount extends StripeObject {}
×
3597

3598
    /**
3599
     * For more details about Swish, please refer to the <a href="https://docs.stripe.com/api">API
3600
     * Reference.</a>
3601
     */
3602
    @Getter
3603
    @Setter
3604
    @EqualsAndHashCode(callSuper = false)
3605
    public static class Swish extends StripeObject {
×
3606
      /**
3607
       * Uniquely identifies the payer's Swish account. You can use this attribute to check whether
3608
       * two Swish transactions were paid for by the same payer
3609
       */
3610
      @SerializedName("fingerprint")
3611
      String fingerprint;
3612

3613
      /** Payer bank reference number for the payment. */
3614
      @SerializedName("payment_reference")
3615
      String paymentReference;
3616

3617
      /** The last four digits of the Swish account phone number. */
3618
      @SerializedName("verified_phone_last4")
3619
      String verifiedPhoneLast4;
3620
    }
3621

3622
    /**
3623
     * For more details about Twint, please refer to the <a href="https://docs.stripe.com/api">API
3624
     * Reference.</a>
3625
     */
3626
    @Getter
3627
    @Setter
3628
    @EqualsAndHashCode(callSuper = false)
3629
    public static class Twint extends StripeObject {}
×
3630

3631
    /**
3632
     * For more details about UsBankAccount, please refer to the <a
3633
     * href="https://docs.stripe.com/api">API Reference.</a>
3634
     */
3635
    @Getter
3636
    @Setter
3637
    @EqualsAndHashCode(callSuper = false)
3638
    public static class UsBankAccount extends StripeObject {
×
3639
      /**
3640
       * Account holder type: individual or company.
3641
       *
3642
       * <p>One of {@code company}, or {@code individual}.
3643
       */
3644
      @SerializedName("account_holder_type")
3645
      String accountHolderType;
3646

3647
      /**
3648
       * Account type: checkings or savings. Defaults to checking if omitted.
3649
       *
3650
       * <p>One of {@code checking}, or {@code savings}.
3651
       */
3652
      @SerializedName("account_type")
3653
      String accountType;
3654

3655
      /** Name of the bank associated with the bank account. */
3656
      @SerializedName("bank_name")
3657
      String bankName;
3658

3659
      /**
3660
       * Uniquely identifies this particular bank account. You can use this attribute to check
3661
       * whether two bank accounts are the same.
3662
       */
3663
      @SerializedName("fingerprint")
3664
      String fingerprint;
3665

3666
      /** Last four digits of the bank account number. */
3667
      @SerializedName("last4")
3668
      String last4;
3669

3670
      /** ID of the mandate used to make this payment. */
3671
      @SerializedName("mandate")
3672
      @Getter(lombok.AccessLevel.NONE)
3673
      @Setter(lombok.AccessLevel.NONE)
3674
      ExpandableField<Mandate> mandate;
3675

3676
      /** Reference number to locate ACH payments with customer's bank. */
3677
      @SerializedName("payment_reference")
3678
      String paymentReference;
3679

3680
      /** Routing number of the bank account. */
3681
      @SerializedName("routing_number")
3682
      String routingNumber;
3683

3684
      /** Get ID of expandable {@code mandate} object. */
3685
      public String getMandate() {
3686
        return (this.mandate != null) ? this.mandate.getId() : null;
×
3687
      }
3688

3689
      public void setMandate(String id) {
3690
        this.mandate = ApiResource.setExpandableFieldId(id, this.mandate);
×
3691
      }
×
3692

3693
      /** Get expanded {@code mandate}. */
3694
      public Mandate getMandateObject() {
3695
        return (this.mandate != null) ? this.mandate.getExpanded() : null;
×
3696
      }
3697

3698
      public void setMandateObject(Mandate expandableObject) {
3699
        this.mandate = new ExpandableField<Mandate>(expandableObject.getId(), expandableObject);
×
3700
      }
×
3701
    }
3702

3703
    /**
3704
     * For more details about Wechat, please refer to the <a href="https://docs.stripe.com/api">API
3705
     * Reference.</a>
3706
     */
3707
    @Getter
3708
    @Setter
3709
    @EqualsAndHashCode(callSuper = false)
3710
    public static class Wechat extends StripeObject {}
×
3711

3712
    /**
3713
     * For more details about WechatPay, please refer to the <a
3714
     * href="https://docs.stripe.com/api">API Reference.</a>
3715
     */
3716
    @Getter
3717
    @Setter
3718
    @EqualsAndHashCode(callSuper = false)
3719
    public static class WechatPay extends StripeObject {
×
3720
      /**
3721
       * Uniquely identifies this particular WeChat Pay account. You can use this attribute to check
3722
       * whether two WeChat accounts are the same.
3723
       */
3724
      @SerializedName("fingerprint")
3725
      String fingerprint;
3726

3727
      /** Transaction ID of this particular WeChat Pay transaction. */
3728
      @SerializedName("transaction_id")
3729
      String transactionId;
3730
    }
3731

3732
    /**
3733
     * For more details about Zip, please refer to the <a href="https://docs.stripe.com/api">API
3734
     * Reference.</a>
3735
     */
3736
    @Getter
3737
    @Setter
3738
    @EqualsAndHashCode(callSuper = false)
3739
    public static class Zip extends StripeObject {}
×
3740
  }
3741

3742
  /**
3743
   * Options to configure Radar. See <a href="https://stripe.com/docs/radar/radar-session">Radar
3744
   * Session</a> for more information.
3745
   */
3746
  @Getter
3747
  @Setter
3748
  @EqualsAndHashCode(callSuper = false)
3749
  public static class RadarOptions extends StripeObject {
×
3750
    /**
3751
     * A <a href="https://stripe.com/docs/radar/radar-session">Radar Session</a> is a snapshot of
3752
     * the browser metadata and device details that help Radar make more accurate predictions on
3753
     * your payments.
3754
     */
3755
    @SerializedName("session")
3756
    String session;
3757
  }
3758

3759
  /**
3760
   * For more details about TransferData, please refer to the <a
3761
   * href="https://docs.stripe.com/api">API Reference.</a>
3762
   */
3763
  @Getter
3764
  @Setter
3765
  @EqualsAndHashCode(callSuper = false)
3766
  public static class TransferData extends StripeObject {
1✔
3767
    /**
3768
     * The amount transferred to the destination account, if specified. By default, the entire
3769
     * charge amount is transferred to the destination account.
3770
     */
3771
    @SerializedName("amount")
3772
    Long amount;
3773

3774
    /**
3775
     * ID of an existing, connected Stripe account to transfer funds to if {@code transfer_data} was
3776
     * specified in the charge request.
3777
     */
3778
    @SerializedName("destination")
3779
    @Getter(lombok.AccessLevel.NONE)
3780
    @Setter(lombok.AccessLevel.NONE)
3781
    ExpandableField<Account> destination;
3782

3783
    /** Get ID of expandable {@code destination} object. */
3784
    public String getDestination() {
3785
      return (this.destination != null) ? this.destination.getId() : null;
1✔
3786
    }
3787

3788
    public void setDestination(String id) {
3789
      this.destination = ApiResource.setExpandableFieldId(id, this.destination);
×
3790
    }
×
3791

3792
    /** Get expanded {@code destination}. */
3793
    public Account getDestinationObject() {
3794
      return (this.destination != null) ? this.destination.getExpanded() : null;
1✔
3795
    }
3796

3797
    public void setDestinationObject(Account expandableObject) {
3798
      this.destination = new ExpandableField<Account>(expandableObject.getId(), expandableObject);
×
3799
    }
×
3800
  }
3801

3802
  @Override
3803
  public void setResponseGetter(StripeResponseGetter responseGetter) {
3804
    super.setResponseGetter(responseGetter);
1✔
3805
    trySetResponseGetter(application, responseGetter);
1✔
3806
    trySetResponseGetter(applicationFee, responseGetter);
1✔
3807
    trySetResponseGetter(balanceTransaction, responseGetter);
1✔
3808
    trySetResponseGetter(billingDetails, responseGetter);
1✔
3809
    trySetResponseGetter(customer, responseGetter);
1✔
3810
    trySetResponseGetter(failureBalanceTransaction, responseGetter);
1✔
3811
    trySetResponseGetter(fraudDetails, responseGetter);
1✔
3812
    trySetResponseGetter(invoice, responseGetter);
1✔
3813
    trySetResponseGetter(level3, responseGetter);
1✔
3814
    trySetResponseGetter(onBehalfOf, responseGetter);
1✔
3815
    trySetResponseGetter(outcome, responseGetter);
1✔
3816
    trySetResponseGetter(paymentIntent, responseGetter);
1✔
3817
    trySetResponseGetter(paymentMethodDetails, responseGetter);
1✔
3818
    trySetResponseGetter(radarOptions, responseGetter);
1✔
3819
    trySetResponseGetter(refunds, responseGetter);
1✔
3820
    trySetResponseGetter(review, responseGetter);
1✔
3821
    trySetResponseGetter(shipping, responseGetter);
1✔
3822
    trySetResponseGetter(source, responseGetter);
1✔
3823
    trySetResponseGetter(sourceTransfer, responseGetter);
1✔
3824
    trySetResponseGetter(transfer, responseGetter);
1✔
3825
    trySetResponseGetter(transferData, responseGetter);
1✔
3826
  }
1✔
3827
}
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