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

stripe / stripe-java / #16707

14 Dec 2024 12:12AM UTC coverage: 15.91% (-0.08%) from 15.988%
#16707

Pull #1931

github

web-flow
Merge 90c2dfd77 into cf528f2c8
Pull Request #1931: Update generated code

43 of 1442 new or added lines in 28 files covered. (2.98%)

137 existing lines in 17 files now uncovered.

18625 of 117068 relevant lines covered (15.91%)

0.16 hits per line

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

31.89
/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
     * For charges declined by the network, a 2 digit code which indicates the advice returned by
1033
     * the network on how to proceed with an error.
1034
     */
1035
    @SerializedName("network_advice_code")
1036
    String networkAdviceCode;
1037

1038
    /**
1039
     * For charges declined by the network, a brand specific 2, 3, or 4 digit code which indicates
1040
     * the reason the authorization failed.
1041
     */
1042
    @SerializedName("network_decline_code")
1043
    String networkDeclineCode;
1044

1045
    /**
1046
     * Possible values are {@code approved_by_network}, {@code declined_by_network}, {@code
1047
     * not_sent_to_network}, and {@code reversed_after_approval}. The value {@code
1048
     * reversed_after_approval} indicates the payment was <a
1049
     * href="https://stripe.com/docs/declines#blocked-payments">blocked by Stripe</a> after bank
1050
     * authorization, and may temporarily appear as &quot;pending&quot; on a cardholder's statement.
1051
     */
1052
    @SerializedName("network_status")
1053
    String networkStatus;
1054

1055
    /**
1056
     * An enumerated value providing a more detailed explanation of the outcome's {@code type}.
1057
     * Charges blocked by Radar's default block rule have the value {@code highest_risk_level}.
1058
     * Charges placed in review by Radar's default review rule have the value {@code
1059
     * elevated_risk_level}. Charges authorized, blocked, or placed in review by custom rules have
1060
     * the value {@code rule}. See <a href="https://stripe.com/docs/declines">understanding
1061
     * declines</a> for more details.
1062
     */
1063
    @SerializedName("reason")
1064
    String reason;
1065

1066
    /**
1067
     * Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated
1068
     * payments are {@code normal}, {@code elevated}, {@code highest}. For non-card payments, and
1069
     * card-based payments predating the public assignment of risk levels, this field will have the
1070
     * value {@code not_assessed}. In the event of an error in the evaluation, this field will have
1071
     * the value {@code unknown}. This field is only available with Radar.
1072
     */
1073
    @SerializedName("risk_level")
1074
    String riskLevel;
1075

1076
    /**
1077
     * Stripe Radar's evaluation of the riskiness of the payment. Possible values for evaluated
1078
     * payments are between 0 and 100. For non-card payments, card-based payments predating the
1079
     * public assignment of risk scores, or in the event of an error during evaluation, this field
1080
     * will not be present. This field is only available with Radar for Fraud Teams.
1081
     */
1082
    @SerializedName("risk_score")
1083
    Long riskScore;
1084

1085
    /** The ID of the Radar rule that matched the payment, if applicable. */
1086
    @SerializedName("rule")
1087
    @Getter(lombok.AccessLevel.NONE)
1088
    @Setter(lombok.AccessLevel.NONE)
1089
    ExpandableField<Rule> rule;
1090

1091
    /**
1092
     * A human-readable description of the outcome type and reason, designed for you (the recipient
1093
     * of the payment), not your customer.
1094
     */
1095
    @SerializedName("seller_message")
1096
    String sellerMessage;
1097

1098
    /**
1099
     * Possible values are {@code authorized}, {@code manual_review}, {@code issuer_declined},
1100
     * {@code blocked}, and {@code invalid}. See <a
1101
     * href="https://stripe.com/docs/declines">understanding declines</a> and <a
1102
     * href="https://stripe.com/docs/radar/reviews">Radar reviews</a> for details.
1103
     */
1104
    @SerializedName("type")
1105
    String type;
1106

1107
    /** Get ID of expandable {@code rule} object. */
1108
    public String getRule() {
1109
      return (this.rule != null) ? this.rule.getId() : null;
×
1110
    }
1111

1112
    public void setRule(String id) {
1113
      this.rule = ApiResource.setExpandableFieldId(id, this.rule);
×
1114
    }
×
1115

1116
    /** Get expanded {@code rule}. */
1117
    public Rule getRuleObject() {
1118
      return (this.rule != null) ? this.rule.getExpanded() : null;
×
1119
    }
1120

1121
    public void setRuleObject(Rule expandableObject) {
1122
      this.rule = new ExpandableField<Rule>(expandableObject.getId(), expandableObject);
×
1123
    }
×
1124

1125
    /**
1126
     * For more details about Rule, please refer to the <a href="https://docs.stripe.com/api">API
1127
     * Reference.</a>
1128
     */
1129
    @Getter
1130
    @Setter
1131
    @EqualsAndHashCode(callSuper = false)
1132
    public static class Rule extends StripeObject implements HasId {
×
1133
      /** The action taken on the payment. */
1134
      @SerializedName("action")
1135
      String action;
1136

1137
      /** Unique identifier for the object. */
1138
      @Getter(onMethod_ = {@Override})
1139
      @SerializedName("id")
1140
      String id;
1141

1142
      /** The predicate to evaluate the payment against. */
1143
      @SerializedName("predicate")
1144
      String predicate;
1145
    }
1146
  }
1147

1148
  /**
1149
   * For more details about PaymentMethodDetails, please refer to the <a
1150
   * href="https://docs.stripe.com/api">API Reference.</a>
1151
   */
1152
  @Getter
1153
  @Setter
1154
  @EqualsAndHashCode(callSuper = false)
1155
  public static class PaymentMethodDetails extends StripeObject {
1✔
1156
    @SerializedName("ach_credit_transfer")
1157
    AchCreditTransfer achCreditTransfer;
1158

1159
    @SerializedName("ach_debit")
1160
    AchDebit achDebit;
1161

1162
    @SerializedName("acss_debit")
1163
    AcssDebit acssDebit;
1164

1165
    @SerializedName("affirm")
1166
    Affirm affirm;
1167

1168
    @SerializedName("afterpay_clearpay")
1169
    AfterpayClearpay afterpayClearpay;
1170

1171
    @SerializedName("alipay")
1172
    Alipay alipay;
1173

1174
    @SerializedName("alma")
1175
    Alma alma;
1176

1177
    @SerializedName("amazon_pay")
1178
    AmazonPay amazonPay;
1179

1180
    @SerializedName("au_becs_debit")
1181
    AuBecsDebit auBecsDebit;
1182

1183
    @SerializedName("bacs_debit")
1184
    BacsDebit bacsDebit;
1185

1186
    @SerializedName("bancontact")
1187
    Bancontact bancontact;
1188

1189
    @SerializedName("blik")
1190
    Blik blik;
1191

1192
    @SerializedName("boleto")
1193
    Boleto boleto;
1194

1195
    @SerializedName("card")
1196
    Card card;
1197

1198
    @SerializedName("card_present")
1199
    CardPresent cardPresent;
1200

1201
    @SerializedName("cashapp")
1202
    Cashapp cashapp;
1203

1204
    @SerializedName("customer_balance")
1205
    CustomerBalance customerBalance;
1206

1207
    @SerializedName("eps")
1208
    Eps eps;
1209

1210
    @SerializedName("fpx")
1211
    Fpx fpx;
1212

1213
    @SerializedName("giropay")
1214
    Giropay giropay;
1215

1216
    @SerializedName("grabpay")
1217
    Grabpay grabpay;
1218

1219
    @SerializedName("ideal")
1220
    Ideal ideal;
1221

1222
    @SerializedName("interac_present")
1223
    InteracPresent interacPresent;
1224

1225
    @SerializedName("kakao_pay")
1226
    KakaoPay kakaoPay;
1227

1228
    @SerializedName("klarna")
1229
    Klarna klarna;
1230

1231
    @SerializedName("konbini")
1232
    Konbini konbini;
1233

1234
    @SerializedName("kr_card")
1235
    KrCard krCard;
1236

1237
    @SerializedName("link")
1238
    Link link;
1239

1240
    @SerializedName("mobilepay")
1241
    Mobilepay mobilepay;
1242

1243
    @SerializedName("multibanco")
1244
    Multibanco multibanco;
1245

1246
    @SerializedName("naver_pay")
1247
    NaverPay naverPay;
1248

1249
    @SerializedName("oxxo")
1250
    Oxxo oxxo;
1251

1252
    @SerializedName("p24")
1253
    P24 p24;
1254

1255
    @SerializedName("payco")
1256
    Payco payco;
1257

1258
    @SerializedName("paynow")
1259
    Paynow paynow;
1260

1261
    @SerializedName("paypal")
1262
    Paypal paypal;
1263

1264
    @SerializedName("pix")
1265
    Pix pix;
1266

1267
    @SerializedName("promptpay")
1268
    Promptpay promptpay;
1269

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

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

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

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

1282
    @SerializedName("sofort")
1283
    Sofort sofort;
1284

1285
    @SerializedName("stripe_account")
1286
    StripeAccount stripeAccount;
1287

1288
    @SerializedName("swish")
1289
    Swish swish;
1290

1291
    @SerializedName("twint")
1292
    Twint twint;
1293

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

1306
    @SerializedName("us_bank_account")
1307
    UsBankAccount usBankAccount;
1308

1309
    @SerializedName("wechat")
1310
    Wechat wechat;
1311

1312
    @SerializedName("wechat_pay")
1313
    WechatPay wechatPay;
1314

1315
    @SerializedName("zip")
1316
    Zip zip;
1317

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

1330
      /** Name of the bank associated with the routing number. */
1331
      @SerializedName("bank_name")
1332
      String bankName;
1333

1334
      /** Routing transit number for the bank account to transfer funds to. */
1335
      @SerializedName("routing_number")
1336
      String routingNumber;
1337

1338
      /** SWIFT code of the bank associated with the routing number. */
1339
      @SerializedName("swift_code")
1340
      String swiftCode;
1341
    }
1342

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

1360
      /** Name of the bank associated with the bank account. */
1361
      @SerializedName("bank_name")
1362
      String bankName;
1363

1364
      /** Two-letter ISO code representing the country the bank account is located in. */
1365
      @SerializedName("country")
1366
      String country;
1367

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

1375
      /** Last four digits of the bank account number. */
1376
      @SerializedName("last4")
1377
      String last4;
1378

1379
      /** Routing transit number of the bank account. */
1380
      @SerializedName("routing_number")
1381
      String routingNumber;
1382
    }
1383

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

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

1403
      /** Institution number of the bank account. */
1404
      @SerializedName("institution_number")
1405
      String institutionNumber;
1406

1407
      /** Last four digits of the bank account number. */
1408
      @SerializedName("last4")
1409
      String last4;
1410

1411
      /** ID of the mandate used to make this payment. */
1412
      @SerializedName("mandate")
1413
      String mandate;
1414

1415
      /** Transit number of the bank account. */
1416
      @SerializedName("transit_number")
1417
      String transitNumber;
1418
    }
1419

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

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

1445
      /** Order identifier shown to the merchant in Afterpay’s online portal. */
1446
      @SerializedName("reference")
1447
      String reference;
1448
    }
1449

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

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

1472
      /** Transaction ID of this particular Alipay transaction. */
1473
      @SerializedName("transaction_id")
1474
      String transactionId;
1475
    }
1476

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

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

1497
      /**
1498
       * For more details about Funding, please refer to the <a
1499
       * href="https://docs.stripe.com/api">API Reference.</a>
1500
       */
1501
      @Getter
1502
      @Setter
1503
      @EqualsAndHashCode(callSuper = false)
NEW
1504
      public static class Funding extends StripeObject {
×
1505
        @SerializedName("card")
1506
        Card card;
1507

1508
        /**
1509
         * funding type of the underlying payment method.
1510
         *
1511
         * <p>Equal to {@code card}.
1512
         */
1513
        @SerializedName("type")
1514
        String type;
1515

1516
        /**
1517
         * For more details about Card, please refer to the <a
1518
         * href="https://docs.stripe.com/api">API Reference.</a>
1519
         */
1520
        @Getter
1521
        @Setter
1522
        @EqualsAndHashCode(callSuper = false)
NEW
1523
        public static class Card extends StripeObject {
×
1524
          /**
1525
           * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1526
           * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
1527
           * {@code unknown}.
1528
           */
1529
          @SerializedName("brand")
1530
          String brand;
1531

1532
          /**
1533
           * Two-letter ISO code representing the country of the card. You could use this attribute
1534
           * to get a sense of the international breakdown of cards you've collected.
1535
           */
1536
          @SerializedName("country")
1537
          String country;
1538

1539
          /** Two-digit number representing the card's expiration month. */
1540
          @SerializedName("exp_month")
1541
          Long expMonth;
1542

1543
          /** Four-digit number representing the card's expiration year. */
1544
          @SerializedName("exp_year")
1545
          Long expYear;
1546

1547
          /**
1548
           * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
1549
           * unknown}.
1550
           */
1551
          @SerializedName("funding")
1552
          String funding;
1553

1554
          /** The last four digits of the card. */
1555
          @SerializedName("last4")
1556
          String last4;
1557
        }
1558
      }
1559
    }
1560

1561
    /**
1562
     * For more details about AuBecsDebit, please refer to the <a
1563
     * href="https://docs.stripe.com/api">API Reference.</a>
1564
     */
1565
    @Getter
1566
    @Setter
1567
    @EqualsAndHashCode(callSuper = false)
1568
    public static class AuBecsDebit extends StripeObject {
×
1569
      /** Bank-State-Branch number of the bank account. */
1570
      @SerializedName("bsb_number")
1571
      String bsbNumber;
1572

1573
      /**
1574
       * Uniquely identifies this particular bank account. You can use this attribute to check
1575
       * whether two bank accounts are the same.
1576
       */
1577
      @SerializedName("fingerprint")
1578
      String fingerprint;
1579

1580
      /** Last four digits of the bank account number. */
1581
      @SerializedName("last4")
1582
      String last4;
1583

1584
      /** ID of the mandate used to make this payment. */
1585
      @SerializedName("mandate")
1586
      String mandate;
1587
    }
1588

1589
    /**
1590
     * For more details about BacsDebit, please refer to the <a
1591
     * href="https://docs.stripe.com/api">API Reference.</a>
1592
     */
1593
    @Getter
1594
    @Setter
1595
    @EqualsAndHashCode(callSuper = false)
1596
    public static class BacsDebit extends StripeObject {
×
1597
      /**
1598
       * Uniquely identifies this particular bank account. You can use this attribute to check
1599
       * whether two bank accounts are the same.
1600
       */
1601
      @SerializedName("fingerprint")
1602
      String fingerprint;
1603

1604
      /** Last four digits of the bank account number. */
1605
      @SerializedName("last4")
1606
      String last4;
1607

1608
      /** ID of the mandate used to make this payment. */
1609
      @SerializedName("mandate")
1610
      String mandate;
1611

1612
      /** Sort code of the bank account. (e.g., {@code 10-20-30}) */
1613
      @SerializedName("sort_code")
1614
      String sortCode;
1615
    }
1616

1617
    /**
1618
     * For more details about Bancontact, please refer to the <a
1619
     * href="https://docs.stripe.com/api">API Reference.</a>
1620
     */
1621
    @Getter
1622
    @Setter
1623
    @EqualsAndHashCode(callSuper = false)
1624
    public static class Bancontact extends StripeObject {
×
1625
      /** Bank code of bank associated with the bank account. */
1626
      @SerializedName("bank_code")
1627
      String bankCode;
1628

1629
      /** Name of the bank associated with the bank account. */
1630
      @SerializedName("bank_name")
1631
      String bankName;
1632

1633
      /** Bank Identifier Code of the bank associated with the bank account. */
1634
      @SerializedName("bic")
1635
      String bic;
1636

1637
      /** The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
1638
      @SerializedName("generated_sepa_debit")
1639
      @Getter(lombok.AccessLevel.NONE)
1640
      @Setter(lombok.AccessLevel.NONE)
1641
      ExpandableField<PaymentMethod> generatedSepaDebit;
1642

1643
      /** The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
1644
      @SerializedName("generated_sepa_debit_mandate")
1645
      @Getter(lombok.AccessLevel.NONE)
1646
      @Setter(lombok.AccessLevel.NONE)
1647
      ExpandableField<Mandate> generatedSepaDebitMandate;
1648

1649
      /** Last four characters of the IBAN. */
1650
      @SerializedName("iban_last4")
1651
      String ibanLast4;
1652

1653
      /**
1654
       * Preferred language of the Bancontact authorization page that the customer is redirected to.
1655
       * Can be one of {@code en}, {@code de}, {@code fr}, or {@code nl}
1656
       */
1657
      @SerializedName("preferred_language")
1658
      String preferredLanguage;
1659

1660
      /**
1661
       * Owner's verified full name. Values are verified or provided by Bancontact directly (if
1662
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
1663
       */
1664
      @SerializedName("verified_name")
1665
      String verifiedName;
1666

1667
      /** Get ID of expandable {@code generatedSepaDebit} object. */
1668
      public String getGeneratedSepaDebit() {
1669
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getId() : null;
×
1670
      }
1671

1672
      public void setGeneratedSepaDebit(String id) {
1673
        this.generatedSepaDebit = ApiResource.setExpandableFieldId(id, this.generatedSepaDebit);
×
1674
      }
×
1675

1676
      /** Get expanded {@code generatedSepaDebit}. */
1677
      public PaymentMethod getGeneratedSepaDebitObject() {
1678
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getExpanded() : null;
×
1679
      }
1680

1681
      public void setGeneratedSepaDebitObject(PaymentMethod expandableObject) {
1682
        this.generatedSepaDebit =
×
1683
            new ExpandableField<PaymentMethod>(expandableObject.getId(), expandableObject);
×
1684
      }
×
1685

1686
      /** Get ID of expandable {@code generatedSepaDebitMandate} object. */
1687
      public String getGeneratedSepaDebitMandate() {
1688
        return (this.generatedSepaDebitMandate != null)
×
1689
            ? this.generatedSepaDebitMandate.getId()
×
1690
            : null;
×
1691
      }
1692

1693
      public void setGeneratedSepaDebitMandate(String id) {
1694
        this.generatedSepaDebitMandate =
×
1695
            ApiResource.setExpandableFieldId(id, this.generatedSepaDebitMandate);
×
1696
      }
×
1697

1698
      /** Get expanded {@code generatedSepaDebitMandate}. */
1699
      public Mandate getGeneratedSepaDebitMandateObject() {
1700
        return (this.generatedSepaDebitMandate != null)
×
1701
            ? this.generatedSepaDebitMandate.getExpanded()
×
1702
            : null;
×
1703
      }
1704

1705
      public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) {
1706
        this.generatedSepaDebitMandate =
×
1707
            new ExpandableField<Mandate>(expandableObject.getId(), expandableObject);
×
1708
      }
×
1709
    }
1710

1711
    /**
1712
     * For more details about Blik, please refer to the <a href="https://docs.stripe.com/api">API
1713
     * Reference.</a>
1714
     */
1715
    @Getter
1716
    @Setter
1717
    @EqualsAndHashCode(callSuper = false)
1718
    public static class Blik extends StripeObject {
×
1719
      /** A unique and immutable identifier assigned by BLIK to every buyer. */
1720
      @SerializedName("buyer_id")
1721
      String buyerId;
1722
    }
1723

1724
    /**
1725
     * For more details about Boleto, please refer to the <a href="https://docs.stripe.com/api">API
1726
     * Reference.</a>
1727
     */
1728
    @Getter
1729
    @Setter
1730
    @EqualsAndHashCode(callSuper = false)
1731
    public static class Boleto extends StripeObject {
×
1732
      /**
1733
       * The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses
1734
       * consumers).
1735
       */
1736
      @SerializedName("tax_id")
1737
      String taxId;
1738
    }
1739

1740
    /**
1741
     * For more details about Card, please refer to the <a href="https://docs.stripe.com/api">API
1742
     * Reference.</a>
1743
     */
1744
    @Getter
1745
    @Setter
1746
    @EqualsAndHashCode(callSuper = false)
1747
    public static class Card extends StripeObject {
1✔
1748
      /** The authorized amount. */
1749
      @SerializedName("amount_authorized")
1750
      Long amountAuthorized;
1751

1752
      /** Authorization code on the charge. */
1753
      @SerializedName("authorization_code")
1754
      String authorizationCode;
1755

1756
      /**
1757
       * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
1758
       * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
1759
       * unknown}.
1760
       */
1761
      @SerializedName("brand")
1762
      String brand;
1763

1764
      /**
1765
       * When using manual capture, a future timestamp at which the charge will be automatically
1766
       * refunded if uncaptured.
1767
       */
1768
      @SerializedName("capture_before")
1769
      Long captureBefore;
1770

1771
      /** Check results by Card networks on Card address and CVC at time of payment. */
1772
      @SerializedName("checks")
1773
      Checks checks;
1774

1775
      /**
1776
       * Two-letter ISO code representing the country of the card. You could use this attribute to
1777
       * get a sense of the international breakdown of cards you've collected.
1778
       */
1779
      @SerializedName("country")
1780
      String country;
1781

1782
      /**
1783
       * A high-level description of the type of cards issued in this range. (For internal use only
1784
       * and not typically available in standard API requests.)
1785
       */
1786
      @SerializedName("description")
1787
      String description;
1788

1789
      /** Two-digit number representing the card's expiration month. */
1790
      @SerializedName("exp_month")
1791
      Long expMonth;
1792

1793
      /** Four-digit number representing the card's expiration year. */
1794
      @SerializedName("exp_year")
1795
      Long expYear;
1796

1797
      @SerializedName("extended_authorization")
1798
      ExtendedAuthorization extendedAuthorization;
1799

1800
      /**
1801
       * Uniquely identifies this particular card number. You can use this attribute to check
1802
       * whether two customers who’ve signed up with you are using the same card number, for
1803
       * example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
1804
       * tokenized number might be provided instead of the underlying card number.
1805
       *
1806
       * <p><em>As of May 1, 2021, card fingerprint in India for Connect changed to allow two
1807
       * fingerprints for the same card---one for India and one for the rest of the world.</em>
1808
       */
1809
      @SerializedName("fingerprint")
1810
      String fingerprint;
1811

1812
      /**
1813
       * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
1814
       * unknown}.
1815
       */
1816
      @SerializedName("funding")
1817
      String funding;
1818

1819
      /**
1820
       * Issuer identification number of the card. (For internal use only and not typically
1821
       * available in standard API requests.)
1822
       */
1823
      @SerializedName("iin")
1824
      String iin;
1825

1826
      @SerializedName("incremental_authorization")
1827
      IncrementalAuthorization incrementalAuthorization;
1828

1829
      /**
1830
       * Installment details for this payment (Mexico only).
1831
       *
1832
       * <p>For more information, see the <a
1833
       * href="https://stripe.com/docs/payments/installments">installments integration guide</a>.
1834
       */
1835
      @SerializedName("installments")
1836
      Installments installments;
1837

1838
      /**
1839
       * The name of the card's issuing bank. (For internal use only and not typically available in
1840
       * standard API requests.)
1841
       */
1842
      @SerializedName("issuer")
1843
      String issuer;
1844

1845
      /** The last four digits of the card. */
1846
      @SerializedName("last4")
1847
      String last4;
1848

1849
      /** ID of the mandate used to make this payment or created by it. */
1850
      @SerializedName("mandate")
1851
      String mandate;
1852

1853
      /** True if this payment was marked as MOTO and out of scope for SCA. */
1854
      @SerializedName("moto")
1855
      Boolean moto;
1856

1857
      @SerializedName("multicapture")
1858
      Multicapture multicapture;
1859

1860
      /**
1861
       * Identifies which network this charge was processed on. Can be {@code amex}, {@code
1862
       * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
1863
       * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
1864
       * unknown}.
1865
       */
1866
      @SerializedName("network")
1867
      String network;
1868

1869
      /**
1870
       * If this card has network token credentials, this contains the details of the network token
1871
       * credentials.
1872
       */
1873
      @SerializedName("network_token")
1874
      NetworkToken networkToken;
1875

1876
      /**
1877
       * This is used by the financial networks to identify a transaction. Visa calls this the
1878
       * Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
1879
       * Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
1880
       * Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
1881
       * the date (MM/DD). This field will be available for successful Visa, Mastercard, or American
1882
       * Express transactions and always null for other card brands.
1883
       */
1884
      @SerializedName("network_transaction_id")
1885
      String networkTransactionId;
1886

1887
      @SerializedName("overcapture")
1888
      Overcapture overcapture;
1889

1890
      /**
1891
       * Status of a card based on the card issuer.
1892
       *
1893
       * <p>One of {@code regulated}, or {@code unregulated}.
1894
       */
1895
      @SerializedName("regulated_status")
1896
      String regulatedStatus;
1897

1898
      /** Populated if this transaction used 3D Secure authentication. */
1899
      @SerializedName("three_d_secure")
1900
      ThreeDSecure threeDSecure;
1901

1902
      /** If this Card is part of a card wallet, this contains the details of the card wallet. */
1903
      @SerializedName("wallet")
1904
      Wallet wallet;
1905

1906
      /**
1907
       * For more details about Checks, please refer to the <a
1908
       * href="https://docs.stripe.com/api">API Reference.</a>
1909
       */
1910
      @Getter
1911
      @Setter
1912
      @EqualsAndHashCode(callSuper = false)
1913
      public static class Checks extends StripeObject {
1✔
1914
        /**
1915
         * If a address line1 was provided, results of the check, one of {@code pass}, {@code fail},
1916
         * {@code unavailable}, or {@code unchecked}.
1917
         */
1918
        @SerializedName("address_line1_check")
1919
        String addressLine1Check;
1920

1921
        /**
1922
         * If a address postal code was provided, results of the check, one of {@code pass}, {@code
1923
         * fail}, {@code unavailable}, or {@code unchecked}.
1924
         */
1925
        @SerializedName("address_postal_code_check")
1926
        String addressPostalCodeCheck;
1927

1928
        /**
1929
         * If a CVC was provided, results of the check, one of {@code pass}, {@code fail}, {@code
1930
         * unavailable}, or {@code unchecked}.
1931
         */
1932
        @SerializedName("cvc_check")
1933
        String cvcCheck;
1934
      }
1935

1936
      /**
1937
       * For more details about ExtendedAuthorization, please refer to the <a
1938
       * href="https://docs.stripe.com/api">API Reference.</a>
1939
       */
1940
      @Getter
1941
      @Setter
1942
      @EqualsAndHashCode(callSuper = false)
1943
      public static class ExtendedAuthorization extends StripeObject {
1✔
1944
        /**
1945
         * Indicates whether or not the capture window is extended beyond the standard
1946
         * authorization.
1947
         *
1948
         * <p>One of {@code disabled}, or {@code enabled}.
1949
         */
1950
        @SerializedName("status")
1951
        String status;
1952
      }
1953

1954
      /**
1955
       * For more details about IncrementalAuthorization, please refer to the <a
1956
       * href="https://docs.stripe.com/api">API Reference.</a>
1957
       */
1958
      @Getter
1959
      @Setter
1960
      @EqualsAndHashCode(callSuper = false)
1961
      public static class IncrementalAuthorization extends StripeObject {
1✔
1962
        /**
1963
         * Indicates whether or not the incremental authorization feature is supported.
1964
         *
1965
         * <p>One of {@code available}, or {@code unavailable}.
1966
         */
1967
        @SerializedName("status")
1968
        String status;
1969
      }
1970

1971
      /**
1972
       * For more details about Installments, please refer to the <a
1973
       * href="https://docs.stripe.com/api">API Reference.</a>
1974
       */
1975
      @Getter
1976
      @Setter
1977
      @EqualsAndHashCode(callSuper = false)
1978
      public static class Installments extends StripeObject {
×
1979
        /** Installment plan selected for the payment. */
1980
        @SerializedName("plan")
1981
        Plan plan;
1982

1983
        /**
1984
         * For more details about Plan, please refer to the <a
1985
         * href="https://docs.stripe.com/api">API Reference.</a>
1986
         */
1987
        @Getter
1988
        @Setter
1989
        @EqualsAndHashCode(callSuper = false)
1990
        public static class Plan extends StripeObject {
×
1991
          /**
1992
           * For {@code fixed_count} installment plans, this is the number of installment payments
1993
           * your customer will make to their credit card.
1994
           */
1995
          @SerializedName("count")
1996
          Long count;
1997

1998
          /**
1999
           * For {@code fixed_count} installment plans, this is the interval between installment
2000
           * payments your customer will make to their credit card. One of {@code month}.
2001
           */
2002
          @SerializedName("interval")
2003
          String interval;
2004

2005
          /** Type of installment plan, one of {@code fixed_count}. */
2006
          @SerializedName("type")
2007
          String type;
2008
        }
2009
      }
2010

2011
      /**
2012
       * For more details about Multicapture, please refer to the <a
2013
       * href="https://docs.stripe.com/api">API Reference.</a>
2014
       */
2015
      @Getter
2016
      @Setter
2017
      @EqualsAndHashCode(callSuper = false)
2018
      public static class Multicapture extends StripeObject {
1✔
2019
        /**
2020
         * Indicates whether or not multiple captures are supported.
2021
         *
2022
         * <p>One of {@code available}, or {@code unavailable}.
2023
         */
2024
        @SerializedName("status")
2025
        String status;
2026
      }
2027

2028
      /**
2029
       * For more details about NetworkToken, please refer to the <a
2030
       * href="https://docs.stripe.com/api">API Reference.</a>
2031
       */
2032
      @Getter
2033
      @Setter
2034
      @EqualsAndHashCode(callSuper = false)
2035
      public static class NetworkToken extends StripeObject {
1✔
2036
        /**
2037
         * Indicates if Stripe used a network token, either user provided or Stripe managed when
2038
         * processing the transaction.
2039
         */
2040
        @SerializedName("used")
2041
        Boolean used;
2042
      }
2043

2044
      /**
2045
       * For more details about Overcapture, please refer to the <a
2046
       * href="https://docs.stripe.com/api">API Reference.</a>
2047
       */
2048
      @Getter
2049
      @Setter
2050
      @EqualsAndHashCode(callSuper = false)
2051
      public static class Overcapture extends StripeObject {
1✔
2052
        /** The maximum amount that can be captured. */
2053
        @SerializedName("maximum_amount_capturable")
2054
        Long maximumAmountCapturable;
2055

2056
        /**
2057
         * Indicates whether or not the authorized amount can be over-captured.
2058
         *
2059
         * <p>One of {@code available}, or {@code unavailable}.
2060
         */
2061
        @SerializedName("status")
2062
        String status;
2063
      }
2064

2065
      /**
2066
       * For more details about ThreeDSecure, please refer to the <a
2067
       * href="https://docs.stripe.com/api">API Reference.</a>
2068
       */
2069
      @Getter
2070
      @Setter
2071
      @EqualsAndHashCode(callSuper = false)
2072
      public static class ThreeDSecure extends StripeObject {
×
2073
        /**
2074
         * For authenticated transactions: how the customer was authenticated by the issuing bank.
2075
         *
2076
         * <p>One of {@code challenge}, or {@code frictionless}.
2077
         */
2078
        @SerializedName("authentication_flow")
2079
        String authenticationFlow;
2080

2081
        /**
2082
         * The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of
2083
         * authentication was performed.
2084
         *
2085
         * <p>One of {@code 01}, {@code 02}, {@code 05}, {@code 06}, or {@code 07}.
2086
         */
2087
        @SerializedName("electronic_commerce_indicator")
2088
        String electronicCommerceIndicator;
2089

2090
        /**
2091
         * The exemption requested via 3DS and accepted by the issuer at authentication time.
2092
         *
2093
         * <p>One of {@code low_risk}, or {@code none}.
2094
         */
2095
        @SerializedName("exemption_indicator")
2096
        String exemptionIndicator;
2097

2098
        /**
2099
         * Whether Stripe requested the value of {@code exemption_indicator} in the transaction.
2100
         * This will depend on the outcome of Stripe's internal risk assessment.
2101
         */
2102
        @SerializedName("exemption_indicator_applied")
2103
        Boolean exemptionIndicatorApplied;
2104

2105
        /**
2106
         * Indicates the outcome of 3D Secure authentication.
2107
         *
2108
         * <p>One of {@code attempt_acknowledged}, {@code authenticated}, {@code exempted}, {@code
2109
         * failed}, {@code not_supported}, or {@code processing_error}.
2110
         */
2111
        @SerializedName("result")
2112
        String result;
2113

2114
        /**
2115
         * Additional information about why 3D Secure succeeded or failed based on the {@code
2116
         * result}.
2117
         *
2118
         * <p>One of {@code abandoned}, {@code bypassed}, {@code canceled}, {@code
2119
         * card_not_enrolled}, {@code network_not_supported}, {@code protocol_error}, or {@code
2120
         * rejected}.
2121
         */
2122
        @SerializedName("result_reason")
2123
        String resultReason;
2124

2125
        /**
2126
         * The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID (dsTransId) for this
2127
         * payment.
2128
         */
2129
        @SerializedName("transaction_id")
2130
        String transactionId;
2131

2132
        /**
2133
         * The version of 3D Secure that was used.
2134
         *
2135
         * <p>One of {@code 1.0.2}, {@code 2.1.0}, or {@code 2.2.0}.
2136
         */
2137
        @SerializedName("version")
2138
        String version;
2139
      }
2140

2141
      /**
2142
       * For more details about Wallet, please refer to the <a
2143
       * href="https://docs.stripe.com/api">API Reference.</a>
2144
       */
2145
      @Getter
2146
      @Setter
2147
      @EqualsAndHashCode(callSuper = false)
2148
      public static class Wallet extends StripeObject {
×
2149
        @SerializedName("amex_express_checkout")
2150
        AmexExpressCheckout amexExpressCheckout;
2151

2152
        @SerializedName("apple_pay")
2153
        ApplePay applePay;
2154

2155
        /** (For tokenized numbers only.) The last four digits of the device account number. */
2156
        @SerializedName("dynamic_last4")
2157
        String dynamicLast4;
2158

2159
        @SerializedName("google_pay")
2160
        GooglePay googlePay;
2161

2162
        @SerializedName("link")
2163
        Link link;
2164

2165
        @SerializedName("masterpass")
2166
        Masterpass masterpass;
2167

2168
        @SerializedName("samsung_pay")
2169
        SamsungPay samsungPay;
2170

2171
        /**
2172
         * The type of the card wallet, one of {@code amex_express_checkout}, {@code apple_pay},
2173
         * {@code google_pay}, {@code masterpass}, {@code samsung_pay}, {@code visa_checkout}, or
2174
         * {@code link}. An additional hash is included on the Wallet subhash with a name matching
2175
         * this value. It contains additional information specific to the card wallet type.
2176
         */
2177
        @SerializedName("type")
2178
        String type;
2179

2180
        @SerializedName("visa_checkout")
2181
        VisaCheckout visaCheckout;
2182

2183
        /**
2184
         * For more details about AmexExpressCheckout, please refer to the <a
2185
         * href="https://docs.stripe.com/api">API Reference.</a>
2186
         */
2187
        @Getter
2188
        @Setter
2189
        @EqualsAndHashCode(callSuper = false)
2190
        public static class AmexExpressCheckout extends StripeObject {}
×
2191

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

2201
        /**
2202
         * For more details about GooglePay, please refer to the <a
2203
         * href="https://docs.stripe.com/api">API Reference.</a>
2204
         */
2205
        @Getter
2206
        @Setter
2207
        @EqualsAndHashCode(callSuper = false)
2208
        public static class GooglePay extends StripeObject {}
×
2209

2210
        /**
2211
         * For more details about Link, please refer to the <a
2212
         * href="https://docs.stripe.com/api">API Reference.</a>
2213
         */
2214
        @Getter
2215
        @Setter
2216
        @EqualsAndHashCode(callSuper = false)
2217
        public static class Link extends StripeObject {}
×
2218

2219
        /**
2220
         * For more details about Masterpass, please refer to the <a
2221
         * href="https://docs.stripe.com/api">API Reference.</a>
2222
         */
2223
        @Getter
2224
        @Setter
2225
        @EqualsAndHashCode(callSuper = false)
2226
        public static class Masterpass extends StripeObject {
×
2227
          /**
2228
           * Owner's verified billing address. Values are verified or provided by the wallet
2229
           * directly (if supported) at the time of authorization or settlement. They cannot be set
2230
           * or mutated.
2231
           */
2232
          @SerializedName("billing_address")
2233
          com.stripe.model.Address billingAddress;
2234

2235
          /**
2236
           * Owner's verified email. Values are verified or provided by the wallet directly (if
2237
           * supported) at the time of authorization or settlement. They cannot be set or mutated.
2238
           */
2239
          @SerializedName("email")
2240
          String email;
2241

2242
          /**
2243
           * Owner's verified full name. Values are verified or provided by the wallet directly (if
2244
           * supported) at the time of authorization or settlement. They cannot be set or mutated.
2245
           */
2246
          @SerializedName("name")
2247
          String name;
2248

2249
          /**
2250
           * Owner's verified shipping address. Values are verified or provided by the wallet
2251
           * directly (if supported) at the time of authorization or settlement. They cannot be set
2252
           * or mutated.
2253
           */
2254
          @SerializedName("shipping_address")
2255
          com.stripe.model.Address shippingAddress;
2256
        }
2257

2258
        /**
2259
         * For more details about SamsungPay, please refer to the <a
2260
         * href="https://docs.stripe.com/api">API Reference.</a>
2261
         */
2262
        @Getter
2263
        @Setter
2264
        @EqualsAndHashCode(callSuper = false)
2265
        public static class SamsungPay extends StripeObject {}
×
2266

2267
        /**
2268
         * For more details about VisaCheckout, please refer to the <a
2269
         * href="https://docs.stripe.com/api">API Reference.</a>
2270
         */
2271
        @Getter
2272
        @Setter
2273
        @EqualsAndHashCode(callSuper = false)
2274
        public static class VisaCheckout extends StripeObject {
×
2275
          /**
2276
           * Owner's verified billing address. Values are verified or provided by the wallet
2277
           * directly (if supported) at the time of authorization or settlement. They cannot be set
2278
           * or mutated.
2279
           */
2280
          @SerializedName("billing_address")
2281
          com.stripe.model.Address billingAddress;
2282

2283
          /**
2284
           * Owner's verified email. Values are verified or provided by the wallet directly (if
2285
           * supported) at the time of authorization or settlement. They cannot be set or mutated.
2286
           */
2287
          @SerializedName("email")
2288
          String email;
2289

2290
          /**
2291
           * Owner's verified full name. Values are verified or provided by the wallet directly (if
2292
           * supported) at the time of authorization or settlement. They cannot be set or mutated.
2293
           */
2294
          @SerializedName("name")
2295
          String name;
2296

2297
          /**
2298
           * Owner's verified shipping address. Values are verified or provided by the wallet
2299
           * directly (if supported) at the time of authorization or settlement. They cannot be set
2300
           * or mutated.
2301
           */
2302
          @SerializedName("shipping_address")
2303
          com.stripe.model.Address shippingAddress;
2304
        }
2305
      }
2306
    }
2307

2308
    /**
2309
     * For more details about CardPresent, please refer to the <a
2310
     * href="https://docs.stripe.com/api">API Reference.</a>
2311
     */
2312
    @Getter
2313
    @Setter
2314
    @EqualsAndHashCode(callSuper = false)
2315
    public static class CardPresent extends StripeObject {
×
2316
      /** The authorized amount. */
2317
      @SerializedName("amount_authorized")
2318
      Long amountAuthorized;
2319

2320
      /**
2321
       * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
2322
       * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
2323
       * unknown}.
2324
       */
2325
      @SerializedName("brand")
2326
      String brand;
2327

2328
      /**
2329
       * The <a href="https://stripe.com/docs/card-product-codes">product code</a> that identifies
2330
       * the specific program or product associated with a card.
2331
       */
2332
      @SerializedName("brand_product")
2333
      String brandProduct;
2334

2335
      /**
2336
       * When using manual capture, a future timestamp after which the charge will be automatically
2337
       * refunded if uncaptured.
2338
       */
2339
      @SerializedName("capture_before")
2340
      Long captureBefore;
2341

2342
      /**
2343
       * The cardholder name as read from the card, in <a
2344
       * href="https://en.wikipedia.org/wiki/ISO/IEC_7813">ISO 7813</a> format. May include
2345
       * alphanumeric characters, special characters and first/last name separator ({@code /}). In
2346
       * some cases, the cardholder name may not be available depending on how the issuer has
2347
       * configured the card. Cardholder name is typically not available on swipe or contactless
2348
       * payments, such as those made with Apple Pay and Google Pay.
2349
       */
2350
      @SerializedName("cardholder_name")
2351
      String cardholderName;
2352

2353
      /**
2354
       * Two-letter ISO code representing the country of the card. You could use this attribute to
2355
       * get a sense of the international breakdown of cards you've collected.
2356
       */
2357
      @SerializedName("country")
2358
      String country;
2359

2360
      /**
2361
       * A high-level description of the type of cards issued in this range. (For internal use only
2362
       * and not typically available in standard API requests.)
2363
       */
2364
      @SerializedName("description")
2365
      String description;
2366

2367
      /** Authorization response cryptogram. */
2368
      @SerializedName("emv_auth_data")
2369
      String emvAuthData;
2370

2371
      /** Two-digit number representing the card's expiration month. */
2372
      @SerializedName("exp_month")
2373
      Long expMonth;
2374

2375
      /** Four-digit number representing the card's expiration year. */
2376
      @SerializedName("exp_year")
2377
      Long expYear;
2378

2379
      /**
2380
       * Uniquely identifies this particular card number. You can use this attribute to check
2381
       * whether two customers who’ve signed up with you are using the same card number, for
2382
       * example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
2383
       * tokenized number might be provided instead of the underlying card number.
2384
       *
2385
       * <p><em>As of May 1, 2021, card fingerprint in India for Connect changed to allow two
2386
       * fingerprints for the same card---one for India and one for the rest of the world.</em>
2387
       */
2388
      @SerializedName("fingerprint")
2389
      String fingerprint;
2390

2391
      /**
2392
       * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
2393
       * unknown}.
2394
       */
2395
      @SerializedName("funding")
2396
      String funding;
2397

2398
      /**
2399
       * ID of a card PaymentMethod generated from the card_present PaymentMethod that may be
2400
       * attached to a Customer for future transactions. Only present if it was possible to generate
2401
       * a card PaymentMethod.
2402
       */
2403
      @SerializedName("generated_card")
2404
      String generatedCard;
2405

2406
      /**
2407
       * Issuer identification number of the card. (For internal use only and not typically
2408
       * available in standard API requests.)
2409
       */
2410
      @SerializedName("iin")
2411
      String iin;
2412

2413
      /**
2414
       * Whether this <a href="https://stripe.com/docs/api/payment_intents">PaymentIntent</a> is
2415
       * eligible for incremental authorizations. Request support using <a
2416
       * 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>.
2417
       */
2418
      @SerializedName("incremental_authorization_supported")
2419
      Boolean incrementalAuthorizationSupported;
2420

2421
      /**
2422
       * The name of the card's issuing bank. (For internal use only and not typically available in
2423
       * standard API requests.)
2424
       */
2425
      @SerializedName("issuer")
2426
      String issuer;
2427

2428
      /** The last four digits of the card. */
2429
      @SerializedName("last4")
2430
      String last4;
2431

2432
      /**
2433
       * Identifies which network this charge was processed on. Can be {@code amex}, {@code
2434
       * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
2435
       * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
2436
       * unknown}.
2437
       */
2438
      @SerializedName("network")
2439
      String network;
2440

2441
      /**
2442
       * This is used by the financial networks to identify a transaction. Visa calls this the
2443
       * Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
2444
       * Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
2445
       * Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
2446
       * the date (MM/DD). This field will be available for successful Visa, Mastercard, or American
2447
       * Express transactions and always null for other card brands.
2448
       */
2449
      @SerializedName("network_transaction_id")
2450
      String networkTransactionId;
2451

2452
      /** Details about payments collected offline. */
2453
      @SerializedName("offline")
2454
      Offline offline;
2455

2456
      /** Defines whether the authorized amount can be over-captured or not. */
2457
      @SerializedName("overcapture_supported")
2458
      Boolean overcaptureSupported;
2459

2460
      /** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */
2461
      @SerializedName("preferred_locales")
2462
      List<String> preferredLocales;
2463

2464
      /**
2465
       * How card details were read in this transaction.
2466
       *
2467
       * <p>One of {@code contact_emv}, {@code contactless_emv}, {@code contactless_magstripe_mode},
2468
       * {@code magnetic_stripe_fallback}, or {@code magnetic_stripe_track2}.
2469
       */
2470
      @SerializedName("read_method")
2471
      String readMethod;
2472

2473
      /**
2474
       * A collection of fields required to be displayed on receipts. Only required for EMV
2475
       * transactions.
2476
       */
2477
      @SerializedName("receipt")
2478
      Receipt receipt;
2479

2480
      @SerializedName("wallet")
2481
      Wallet wallet;
2482

2483
      /**
2484
       * For more details about Offline, please refer to the <a
2485
       * href="https://docs.stripe.com/api">API Reference.</a>
2486
       */
2487
      @Getter
2488
      @Setter
2489
      @EqualsAndHashCode(callSuper = false)
2490
      public static class Offline extends StripeObject {
×
2491
        /** Time at which the payment was collected while offline. */
2492
        @SerializedName("stored_at")
2493
        Long storedAt;
2494

2495
        /**
2496
         * The method used to process this payment method offline. Only deferred is allowed.
2497
         *
2498
         * <p>Equal to {@code deferred}.
2499
         */
2500
        @SerializedName("type")
2501
        String type;
2502
      }
2503

2504
      /**
2505
       * For more details about Receipt, please refer to the <a
2506
       * href="https://docs.stripe.com/api">API Reference.</a>
2507
       */
2508
      @Getter
2509
      @Setter
2510
      @EqualsAndHashCode(callSuper = false)
2511
      public static class Receipt extends StripeObject {
×
2512
        /**
2513
         * The type of account being debited or credited
2514
         *
2515
         * <p>One of {@code checking}, {@code credit}, {@code prepaid}, or {@code unknown}.
2516
         */
2517
        @SerializedName("account_type")
2518
        String accountType;
2519

2520
        /** EMV tag 9F26, cryptogram generated by the integrated circuit chip. */
2521
        @SerializedName("application_cryptogram")
2522
        String applicationCryptogram;
2523

2524
        /** Mnenomic of the Application Identifier. */
2525
        @SerializedName("application_preferred_name")
2526
        String applicationPreferredName;
2527

2528
        /** Identifier for this transaction. */
2529
        @SerializedName("authorization_code")
2530
        String authorizationCode;
2531

2532
        /** EMV tag 8A. A code returned by the card issuer. */
2533
        @SerializedName("authorization_response_code")
2534
        String authorizationResponseCode;
2535

2536
        /**
2537
         * Describes the method used by the cardholder to verify ownership of the card. One of the
2538
         * following: {@code approval}, {@code failure}, {@code none}, {@code offline_pin}, {@code
2539
         * offline_pin_and_signature}, {@code online_pin}, or {@code signature}.
2540
         */
2541
        @SerializedName("cardholder_verification_method")
2542
        String cardholderVerificationMethod;
2543

2544
        /**
2545
         * EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
2546
         */
2547
        @SerializedName("dedicated_file_name")
2548
        String dedicatedFileName;
2549

2550
        /** The outcome of a series of EMV functions performed by the card reader. */
2551
        @SerializedName("terminal_verification_results")
2552
        String terminalVerificationResults;
2553

2554
        /** An indication of various EMV functions performed during the transaction. */
2555
        @SerializedName("transaction_status_information")
2556
        String transactionStatusInformation;
2557
      }
2558

2559
      /**
2560
       * For more details about Wallet, please refer to the <a
2561
       * href="https://docs.stripe.com/api">API Reference.</a>
2562
       */
2563
      @Getter
2564
      @Setter
2565
      @EqualsAndHashCode(callSuper = false)
2566
      public static class Wallet extends StripeObject {
×
2567
        /**
2568
         * The type of mobile wallet, one of {@code apple_pay}, {@code google_pay}, {@code
2569
         * samsung_pay}, or {@code unknown}.
2570
         */
2571
        @SerializedName("type")
2572
        String type;
2573
      }
2574
    }
2575

2576
    /**
2577
     * For more details about Cashapp, please refer to the <a href="https://docs.stripe.com/api">API
2578
     * Reference.</a>
2579
     */
2580
    @Getter
2581
    @Setter
2582
    @EqualsAndHashCode(callSuper = false)
2583
    public static class Cashapp extends StripeObject {
×
2584
      /** A unique and immutable identifier assigned by Cash App to every buyer. */
2585
      @SerializedName("buyer_id")
2586
      String buyerId;
2587

2588
      /** A public identifier for buyers using Cash App. */
2589
      @SerializedName("cashtag")
2590
      String cashtag;
2591
    }
2592

2593
    /**
2594
     * For more details about CustomerBalance, please refer to the <a
2595
     * href="https://docs.stripe.com/api">API Reference.</a>
2596
     */
2597
    @Getter
2598
    @Setter
2599
    @EqualsAndHashCode(callSuper = false)
2600
    public static class CustomerBalance extends StripeObject {}
×
2601

2602
    /**
2603
     * For more details about Eps, please refer to the <a href="https://docs.stripe.com/api">API
2604
     * Reference.</a>
2605
     */
2606
    @Getter
2607
    @Setter
2608
    @EqualsAndHashCode(callSuper = false)
2609
    public static class Eps extends StripeObject {
×
2610
      /**
2611
       * The customer's bank. Should be one of {@code arzte_und_apotheker_bank}, {@code
2612
       * austrian_anadi_bank_ag}, {@code bank_austria}, {@code bankhaus_carl_spangler}, {@code
2613
       * bankhaus_schelhammer_und_schattera_ag}, {@code bawag_psk_ag}, {@code bks_bank_ag}, {@code
2614
       * brull_kallmus_bank_ag}, {@code btv_vier_lander_bank}, {@code capital_bank_grawe_gruppe_ag},
2615
       * {@code deutsche_bank_ag}, {@code dolomitenbank}, {@code easybank_ag}, {@code
2616
       * erste_bank_und_sparkassen}, {@code hypo_alpeadriabank_international_ag}, {@code
2617
       * hypo_noe_lb_fur_niederosterreich_u_wien}, {@code hypo_oberosterreich_salzburg_steiermark},
2618
       * {@code hypo_tirol_bank_ag}, {@code hypo_vorarlberg_bank_ag}, {@code
2619
       * hypo_bank_burgenland_aktiengesellschaft}, {@code marchfelder_bank}, {@code oberbank_ag},
2620
       * {@code raiffeisen_bankengruppe_osterreich}, {@code schoellerbank_ag}, {@code
2621
       * sparda_bank_wien}, {@code volksbank_gruppe}, {@code volkskreditbank_ag}, or {@code
2622
       * vr_bank_braunau}.
2623
       */
2624
      @SerializedName("bank")
2625
      String bank;
2626

2627
      /**
2628
       * Owner's verified full name. Values are verified or provided by EPS directly (if supported)
2629
       * at the time of authorization or settlement. They cannot be set or mutated. EPS rarely
2630
       * provides this information so the attribute is usually empty.
2631
       */
2632
      @SerializedName("verified_name")
2633
      String verifiedName;
2634
    }
2635

2636
    /**
2637
     * For more details about Fpx, please refer to the <a href="https://docs.stripe.com/api">API
2638
     * Reference.</a>
2639
     */
2640
    @Getter
2641
    @Setter
2642
    @EqualsAndHashCode(callSuper = false)
2643
    public static class Fpx extends StripeObject {
×
2644
      /** Account holder type, if provided. Can be one of {@code individual} or {@code company}. */
2645
      @SerializedName("account_holder_type")
2646
      String accountHolderType;
2647

2648
      /**
2649
       * The customer's bank. Can be one of {@code affin_bank}, {@code agrobank}, {@code
2650
       * alliance_bank}, {@code ambank}, {@code bank_islam}, {@code bank_muamalat}, {@code
2651
       * bank_rakyat}, {@code bsn}, {@code cimb}, {@code hong_leong_bank}, {@code hsbc}, {@code
2652
       * kfh}, {@code maybank2u}, {@code ocbc}, {@code public_bank}, {@code rhb}, {@code
2653
       * standard_chartered}, {@code uob}, {@code deutsche_bank}, {@code maybank2e}, {@code
2654
       * pb_enterprise}, or {@code bank_of_china}.
2655
       */
2656
      @SerializedName("bank")
2657
      String bank;
2658

2659
      /** Unique transaction id generated by FPX for every request from the merchant. */
2660
      @SerializedName("transaction_id")
2661
      String transactionId;
2662
    }
2663

2664
    /**
2665
     * For more details about Giropay, please refer to the <a href="https://docs.stripe.com/api">API
2666
     * Reference.</a>
2667
     */
2668
    @Getter
2669
    @Setter
2670
    @EqualsAndHashCode(callSuper = false)
2671
    public static class Giropay extends StripeObject {
×
2672
      /** Bank code of bank associated with the bank account. */
2673
      @SerializedName("bank_code")
2674
      String bankCode;
2675

2676
      /** Name of the bank associated with the bank account. */
2677
      @SerializedName("bank_name")
2678
      String bankName;
2679

2680
      /** Bank Identifier Code of the bank associated with the bank account. */
2681
      @SerializedName("bic")
2682
      String bic;
2683

2684
      /**
2685
       * Owner's verified full name. Values are verified or provided by Giropay directly (if
2686
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
2687
       * Giropay rarely provides this information so the attribute is usually empty.
2688
       */
2689
      @SerializedName("verified_name")
2690
      String verifiedName;
2691
    }
2692

2693
    /**
2694
     * For more details about Grabpay, please refer to the <a href="https://docs.stripe.com/api">API
2695
     * Reference.</a>
2696
     */
2697
    @Getter
2698
    @Setter
2699
    @EqualsAndHashCode(callSuper = false)
2700
    public static class Grabpay extends StripeObject {
×
2701
      /** Unique transaction id generated by GrabPay. */
2702
      @SerializedName("transaction_id")
2703
      String transactionId;
2704
    }
2705

2706
    /**
2707
     * For more details about Ideal, please refer to the <a href="https://docs.stripe.com/api">API
2708
     * Reference.</a>
2709
     */
2710
    @Getter
2711
    @Setter
2712
    @EqualsAndHashCode(callSuper = false)
2713
    public static class Ideal extends StripeObject {
×
2714
      /**
2715
       * The customer's bank. Can be one of {@code abn_amro}, {@code asn_bank}, {@code bunq}, {@code
2716
       * handelsbanken}, {@code ing}, {@code knab}, {@code moneyou}, {@code n26}, {@code nn}, {@code
2717
       * rabobank}, {@code regiobank}, {@code revolut}, {@code sns_bank}, {@code triodos_bank},
2718
       * {@code van_lanschot}, or {@code yoursafe}.
2719
       */
2720
      @SerializedName("bank")
2721
      String bank;
2722

2723
      /**
2724
       * The Bank Identifier Code of the customer's bank.
2725
       *
2726
       * <p>One of {@code ABNANL2A}, {@code ASNBNL21}, {@code BITSNL2A}, {@code BUNQNL2A}, {@code
2727
       * FVLBNL22}, {@code HANDNL2A}, {@code INGBNL2A}, {@code KNABNL2H}, {@code MOYONL21}, {@code
2728
       * NNBANL2G}, {@code NTSBDEB1}, {@code RABONL2U}, {@code RBRBNL21}, {@code REVOIE23}, {@code
2729
       * REVOLT21}, {@code SNSBNL2A}, or {@code TRIONL2U}.
2730
       */
2731
      @SerializedName("bic")
2732
      String bic;
2733

2734
      /** The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
2735
      @SerializedName("generated_sepa_debit")
2736
      @Getter(lombok.AccessLevel.NONE)
2737
      @Setter(lombok.AccessLevel.NONE)
2738
      ExpandableField<PaymentMethod> generatedSepaDebit;
2739

2740
      /** The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
2741
      @SerializedName("generated_sepa_debit_mandate")
2742
      @Getter(lombok.AccessLevel.NONE)
2743
      @Setter(lombok.AccessLevel.NONE)
2744
      ExpandableField<Mandate> generatedSepaDebitMandate;
2745

2746
      /** Last four characters of the IBAN. */
2747
      @SerializedName("iban_last4")
2748
      String ibanLast4;
2749

2750
      /**
2751
       * Owner's verified full name. Values are verified or provided by iDEAL directly (if
2752
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
2753
       */
2754
      @SerializedName("verified_name")
2755
      String verifiedName;
2756

2757
      /** Get ID of expandable {@code generatedSepaDebit} object. */
2758
      public String getGeneratedSepaDebit() {
2759
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getId() : null;
×
2760
      }
2761

2762
      public void setGeneratedSepaDebit(String id) {
2763
        this.generatedSepaDebit = ApiResource.setExpandableFieldId(id, this.generatedSepaDebit);
×
2764
      }
×
2765

2766
      /** Get expanded {@code generatedSepaDebit}. */
2767
      public PaymentMethod getGeneratedSepaDebitObject() {
2768
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getExpanded() : null;
×
2769
      }
2770

2771
      public void setGeneratedSepaDebitObject(PaymentMethod expandableObject) {
2772
        this.generatedSepaDebit =
×
2773
            new ExpandableField<PaymentMethod>(expandableObject.getId(), expandableObject);
×
2774
      }
×
2775

2776
      /** Get ID of expandable {@code generatedSepaDebitMandate} object. */
2777
      public String getGeneratedSepaDebitMandate() {
2778
        return (this.generatedSepaDebitMandate != null)
×
2779
            ? this.generatedSepaDebitMandate.getId()
×
2780
            : null;
×
2781
      }
2782

2783
      public void setGeneratedSepaDebitMandate(String id) {
2784
        this.generatedSepaDebitMandate =
×
2785
            ApiResource.setExpandableFieldId(id, this.generatedSepaDebitMandate);
×
2786
      }
×
2787

2788
      /** Get expanded {@code generatedSepaDebitMandate}. */
2789
      public Mandate getGeneratedSepaDebitMandateObject() {
2790
        return (this.generatedSepaDebitMandate != null)
×
2791
            ? this.generatedSepaDebitMandate.getExpanded()
×
2792
            : null;
×
2793
      }
2794

2795
      public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) {
2796
        this.generatedSepaDebitMandate =
×
2797
            new ExpandableField<Mandate>(expandableObject.getId(), expandableObject);
×
2798
      }
×
2799
    }
2800

2801
    /**
2802
     * For more details about InteracPresent, please refer to the <a
2803
     * href="https://docs.stripe.com/api">API Reference.</a>
2804
     */
2805
    @Getter
2806
    @Setter
2807
    @EqualsAndHashCode(callSuper = false)
2808
    public static class InteracPresent extends StripeObject {
×
2809
      /** Card brand. Can be {@code interac}, {@code mastercard} or {@code visa}. */
2810
      @SerializedName("brand")
2811
      String brand;
2812

2813
      /**
2814
       * The cardholder name as read from the card, in <a
2815
       * href="https://en.wikipedia.org/wiki/ISO/IEC_7813">ISO 7813</a> format. May include
2816
       * alphanumeric characters, special characters and first/last name separator ({@code /}). In
2817
       * some cases, the cardholder name may not be available depending on how the issuer has
2818
       * configured the card. Cardholder name is typically not available on swipe or contactless
2819
       * payments, such as those made with Apple Pay and Google Pay.
2820
       */
2821
      @SerializedName("cardholder_name")
2822
      String cardholderName;
2823

2824
      /**
2825
       * Two-letter ISO code representing the country of the card. You could use this attribute to
2826
       * get a sense of the international breakdown of cards you've collected.
2827
       */
2828
      @SerializedName("country")
2829
      String country;
2830

2831
      /**
2832
       * A high-level description of the type of cards issued in this range. (For internal use only
2833
       * and not typically available in standard API requests.)
2834
       */
2835
      @SerializedName("description")
2836
      String description;
2837

2838
      /** Authorization response cryptogram. */
2839
      @SerializedName("emv_auth_data")
2840
      String emvAuthData;
2841

2842
      /** Two-digit number representing the card's expiration month. */
2843
      @SerializedName("exp_month")
2844
      Long expMonth;
2845

2846
      /** Four-digit number representing the card's expiration year. */
2847
      @SerializedName("exp_year")
2848
      Long expYear;
2849

2850
      /**
2851
       * Uniquely identifies this particular card number. You can use this attribute to check
2852
       * whether two customers who’ve signed up with you are using the same card number, for
2853
       * example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
2854
       * tokenized number might be provided instead of the underlying card number.
2855
       *
2856
       * <p><em>As of May 1, 2021, card fingerprint in India for Connect changed to allow two
2857
       * fingerprints for the same card---one for India and one for the rest of the world.</em>
2858
       */
2859
      @SerializedName("fingerprint")
2860
      String fingerprint;
2861

2862
      /**
2863
       * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
2864
       * unknown}.
2865
       */
2866
      @SerializedName("funding")
2867
      String funding;
2868

2869
      /**
2870
       * ID of a card PaymentMethod generated from the card_present PaymentMethod that may be
2871
       * attached to a Customer for future transactions. Only present if it was possible to generate
2872
       * a card PaymentMethod.
2873
       */
2874
      @SerializedName("generated_card")
2875
      String generatedCard;
2876

2877
      /**
2878
       * Issuer identification number of the card. (For internal use only and not typically
2879
       * available in standard API requests.)
2880
       */
2881
      @SerializedName("iin")
2882
      String iin;
2883

2884
      /**
2885
       * The name of the card's issuing bank. (For internal use only and not typically available in
2886
       * standard API requests.)
2887
       */
2888
      @SerializedName("issuer")
2889
      String issuer;
2890

2891
      /** The last four digits of the card. */
2892
      @SerializedName("last4")
2893
      String last4;
2894

2895
      /**
2896
       * Identifies which network this charge was processed on. Can be {@code amex}, {@code
2897
       * cartes_bancaires}, {@code diners}, {@code discover}, {@code eftpos_au}, {@code interac},
2898
       * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code
2899
       * unknown}.
2900
       */
2901
      @SerializedName("network")
2902
      String network;
2903

2904
      /**
2905
       * This is used by the financial networks to identify a transaction. Visa calls this the
2906
       * Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
2907
       * Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
2908
       * Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
2909
       * the date (MM/DD). This field will be available for successful Visa, Mastercard, or American
2910
       * Express transactions and always null for other card brands.
2911
       */
2912
      @SerializedName("network_transaction_id")
2913
      String networkTransactionId;
2914

2915
      /** EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. */
2916
      @SerializedName("preferred_locales")
2917
      List<String> preferredLocales;
2918

2919
      /**
2920
       * How card details were read in this transaction.
2921
       *
2922
       * <p>One of {@code contact_emv}, {@code contactless_emv}, {@code contactless_magstripe_mode},
2923
       * {@code magnetic_stripe_fallback}, or {@code magnetic_stripe_track2}.
2924
       */
2925
      @SerializedName("read_method")
2926
      String readMethod;
2927

2928
      /**
2929
       * A collection of fields required to be displayed on receipts. Only required for EMV
2930
       * transactions.
2931
       */
2932
      @SerializedName("receipt")
2933
      Receipt receipt;
2934

2935
      /**
2936
       * For more details about Receipt, please refer to the <a
2937
       * href="https://docs.stripe.com/api">API Reference.</a>
2938
       */
2939
      @Getter
2940
      @Setter
2941
      @EqualsAndHashCode(callSuper = false)
2942
      public static class Receipt extends StripeObject {
×
2943
        /**
2944
         * The type of account being debited or credited
2945
         *
2946
         * <p>One of {@code checking}, {@code savings}, or {@code unknown}.
2947
         */
2948
        @SerializedName("account_type")
2949
        String accountType;
2950

2951
        /** EMV tag 9F26, cryptogram generated by the integrated circuit chip. */
2952
        @SerializedName("application_cryptogram")
2953
        String applicationCryptogram;
2954

2955
        /** Mnenomic of the Application Identifier. */
2956
        @SerializedName("application_preferred_name")
2957
        String applicationPreferredName;
2958

2959
        /** Identifier for this transaction. */
2960
        @SerializedName("authorization_code")
2961
        String authorizationCode;
2962

2963
        /** EMV tag 8A. A code returned by the card issuer. */
2964
        @SerializedName("authorization_response_code")
2965
        String authorizationResponseCode;
2966

2967
        /**
2968
         * Describes the method used by the cardholder to verify ownership of the card. One of the
2969
         * following: {@code approval}, {@code failure}, {@code none}, {@code offline_pin}, {@code
2970
         * offline_pin_and_signature}, {@code online_pin}, or {@code signature}.
2971
         */
2972
        @SerializedName("cardholder_verification_method")
2973
        String cardholderVerificationMethod;
2974

2975
        /**
2976
         * EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
2977
         */
2978
        @SerializedName("dedicated_file_name")
2979
        String dedicatedFileName;
2980

2981
        /** The outcome of a series of EMV functions performed by the card reader. */
2982
        @SerializedName("terminal_verification_results")
2983
        String terminalVerificationResults;
2984

2985
        /** An indication of various EMV functions performed during the transaction. */
2986
        @SerializedName("transaction_status_information")
2987
        String transactionStatusInformation;
2988
      }
2989
    }
2990

2991
    /**
2992
     * For more details about KakaoPay, please refer to the <a
2993
     * href="https://docs.stripe.com/api">API Reference.</a>
2994
     */
2995
    @Getter
2996
    @Setter
2997
    @EqualsAndHashCode(callSuper = false)
2998
    public static class KakaoPay extends StripeObject {
×
2999
      /** A unique identifier for the buyer as determined by the local payment processor. */
3000
      @SerializedName("buyer_id")
3001
      String buyerId;
3002
    }
3003

3004
    /**
3005
     * For more details about Klarna, please refer to the <a href="https://docs.stripe.com/api">API
3006
     * Reference.</a>
3007
     */
3008
    @Getter
3009
    @Setter
3010
    @EqualsAndHashCode(callSuper = false)
3011
    public static class Klarna extends StripeObject {
×
3012
      /** The payer details for this transaction. */
3013
      @SerializedName("payer_details")
3014
      PayerDetails payerDetails;
3015

3016
      /**
3017
       * The Klarna payment method used for this transaction. Can be one of {@code pay_later},
3018
       * {@code pay_now}, {@code pay_with_financing}, or {@code pay_in_installments}
3019
       */
3020
      @SerializedName("payment_method_category")
3021
      String paymentMethodCategory;
3022

3023
      /**
3024
       * Preferred language of the Klarna authorization page that the customer is redirected to. Can
3025
       * be one of {@code de-AT}, {@code en-AT}, {@code nl-BE}, {@code fr-BE}, {@code en-BE}, {@code
3026
       * de-DE}, {@code en-DE}, {@code da-DK}, {@code en-DK}, {@code es-ES}, {@code en-ES}, {@code
3027
       * fi-FI}, {@code sv-FI}, {@code en-FI}, {@code en-GB}, {@code en-IE}, {@code it-IT}, {@code
3028
       * en-IT}, {@code nl-NL}, {@code en-NL}, {@code nb-NO}, {@code en-NO}, {@code sv-SE}, {@code
3029
       * en-SE}, {@code en-US}, {@code es-US}, {@code fr-FR}, {@code en-FR}, {@code cs-CZ}, {@code
3030
       * en-CZ}, {@code ro-RO}, {@code en-RO}, {@code el-GR}, {@code en-GR}, {@code en-AU}, {@code
3031
       * en-NZ}, {@code en-CA}, {@code fr-CA}, {@code pl-PL}, {@code en-PL}, {@code pt-PT}, {@code
3032
       * en-PT}, {@code de-CH}, {@code fr-CH}, {@code it-CH}, or {@code en-CH}
3033
       */
3034
      @SerializedName("preferred_locale")
3035
      String preferredLocale;
3036

3037
      /**
3038
       * For more details about PayerDetails, please refer to the <a
3039
       * href="https://docs.stripe.com/api">API Reference.</a>
3040
       */
3041
      @Getter
3042
      @Setter
3043
      @EqualsAndHashCode(callSuper = false)
3044
      public static class PayerDetails extends StripeObject {
×
3045
        /** The payer's address. */
3046
        @SerializedName("address")
3047
        com.stripe.model.Charge.PaymentMethodDetails.Klarna.PayerDetails.Address address;
3048

3049
        /**
3050
         * For more details about Address, please refer to the <a
3051
         * href="https://docs.stripe.com/api">API Reference.</a>
3052
         */
3053
        @Getter
3054
        @Setter
3055
        @EqualsAndHashCode(callSuper = false)
3056
        public static class Address extends StripeObject {
×
3057
          /** The payer address country. */
3058
          @SerializedName("country")
3059
          String country;
3060
        }
3061
      }
3062
    }
3063

3064
    /**
3065
     * For more details about Konbini, please refer to the <a href="https://docs.stripe.com/api">API
3066
     * Reference.</a>
3067
     */
3068
    @Getter
3069
    @Setter
3070
    @EqualsAndHashCode(callSuper = false)
3071
    public static class Konbini extends StripeObject {
×
3072
      /**
3073
       * If the payment succeeded, this contains the details of the convenience store where the
3074
       * payment was completed.
3075
       */
3076
      @SerializedName("store")
3077
      Store store;
3078

3079
      /**
3080
       * For more details about Store, please refer to the <a href="https://docs.stripe.com/api">API
3081
       * Reference.</a>
3082
       */
3083
      @Getter
3084
      @Setter
3085
      @EqualsAndHashCode(callSuper = false)
3086
      public static class Store extends StripeObject {
×
3087
        /**
3088
         * The name of the convenience store chain where the payment was completed.
3089
         *
3090
         * <p>One of {@code familymart}, {@code lawson}, {@code ministop}, or {@code seicomart}.
3091
         */
3092
        @SerializedName("chain")
3093
        String chain;
3094
      }
3095
    }
3096

3097
    /**
3098
     * For more details about KrCard, please refer to the <a href="https://docs.stripe.com/api">API
3099
     * Reference.</a>
3100
     */
3101
    @Getter
3102
    @Setter
3103
    @EqualsAndHashCode(callSuper = false)
3104
    public static class KrCard extends StripeObject {
×
3105
      /**
3106
       * The local credit or debit card brand.
3107
       *
3108
       * <p>One of {@code bc}, {@code citi}, {@code hana}, {@code hyundai}, {@code jeju}, {@code
3109
       * jeonbuk}, {@code kakaobank}, {@code kbank}, {@code kdbbank}, {@code kookmin}, {@code
3110
       * kwangju}, {@code lotte}, {@code mg}, {@code nh}, {@code post}, {@code samsung}, {@code
3111
       * savingsbank}, {@code shinhan}, {@code shinhyup}, {@code suhyup}, {@code tossbank}, or
3112
       * {@code woori}.
3113
       */
3114
      @SerializedName("brand")
3115
      String brand;
3116

3117
      /** A unique identifier for the buyer as determined by the local payment processor. */
3118
      @SerializedName("buyer_id")
3119
      String buyerId;
3120

3121
      /** The last four digits of the card. This may not be present for American Express cards. */
3122
      @SerializedName("last4")
3123
      String last4;
3124
    }
3125

3126
    /**
3127
     * For more details about Link, please refer to the <a href="https://docs.stripe.com/api">API
3128
     * Reference.</a>
3129
     */
3130
    @Getter
3131
    @Setter
3132
    @EqualsAndHashCode(callSuper = false)
3133
    public static class Link extends StripeObject {
×
3134
      /**
3135
       * Two-letter ISO code representing the funding source country beneath the Link payment. You
3136
       * could use this attribute to get a sense of international fees.
3137
       */
3138
      @SerializedName("country")
3139
      String country;
3140
    }
3141

3142
    /**
3143
     * For more details about Mobilepay, please refer to the <a
3144
     * href="https://docs.stripe.com/api">API Reference.</a>
3145
     */
3146
    @Getter
3147
    @Setter
3148
    @EqualsAndHashCode(callSuper = false)
3149
    public static class Mobilepay extends StripeObject {
×
3150
      /** Internal card details. */
3151
      @SerializedName("card")
3152
      Card card;
3153

3154
      /**
3155
       * For more details about Card, please refer to the <a href="https://docs.stripe.com/api">API
3156
       * Reference.</a>
3157
       */
3158
      @Getter
3159
      @Setter
3160
      @EqualsAndHashCode(callSuper = false)
3161
      public static class Card extends StripeObject {
×
3162
        /** Brand of the card used in the transaction. */
3163
        @SerializedName("brand")
3164
        String brand;
3165

3166
        /** Two-letter ISO code representing the country of the card. */
3167
        @SerializedName("country")
3168
        String country;
3169

3170
        /** Two digit number representing the card's expiration month. */
3171
        @SerializedName("exp_month")
3172
        Long expMonth;
3173

3174
        /** Two digit number representing the card's expiration year. */
3175
        @SerializedName("exp_year")
3176
        Long expYear;
3177

3178
        /** The last 4 digits of the card. */
3179
        @SerializedName("last4")
3180
        String last4;
3181
      }
3182
    }
3183

3184
    /**
3185
     * For more details about Multibanco, please refer to the <a
3186
     * href="https://docs.stripe.com/api">API Reference.</a>
3187
     */
3188
    @Getter
3189
    @Setter
3190
    @EqualsAndHashCode(callSuper = false)
3191
    public static class Multibanco extends StripeObject {
×
3192
      /** Entity number associated with this Multibanco payment. */
3193
      @SerializedName("entity")
3194
      String entity;
3195

3196
      /** Reference number associated with this Multibanco payment. */
3197
      @SerializedName("reference")
3198
      String reference;
3199
    }
3200

3201
    /**
3202
     * For more details about NaverPay, please refer to the <a
3203
     * href="https://docs.stripe.com/api">API Reference.</a>
3204
     */
3205
    @Getter
3206
    @Setter
3207
    @EqualsAndHashCode(callSuper = false)
3208
    public static class NaverPay extends StripeObject {
×
3209
      /** A unique identifier for the buyer as determined by the local payment processor. */
3210
      @SerializedName("buyer_id")
3211
      String buyerId;
3212
    }
3213

3214
    /**
3215
     * For more details about Oxxo, please refer to the <a href="https://docs.stripe.com/api">API
3216
     * Reference.</a>
3217
     */
3218
    @Getter
3219
    @Setter
3220
    @EqualsAndHashCode(callSuper = false)
3221
    public static class Oxxo extends StripeObject {
×
3222
      /** OXXO reference number. */
3223
      @SerializedName("number")
3224
      String number;
3225
    }
3226

3227
    /**
3228
     * For more details about P24, please refer to the <a href="https://docs.stripe.com/api">API
3229
     * Reference.</a>
3230
     */
3231
    @Getter
3232
    @Setter
3233
    @EqualsAndHashCode(callSuper = false)
3234
    public static class P24 extends StripeObject {
×
3235
      /**
3236
       * The customer's bank. Can be one of {@code ing}, {@code citi_handlowy}, {@code
3237
       * tmobile_usbugi_bankowe}, {@code plus_bank}, {@code etransfer_pocztowy24}, {@code
3238
       * banki_spbdzielcze}, {@code bank_nowy_bfg_sa}, {@code getin_bank}, {@code velobank}, {@code
3239
       * blik}, {@code noble_pay}, {@code ideabank}, {@code envelobank}, {@code
3240
       * santander_przelew24}, {@code nest_przelew}, {@code mbank_mtransfer}, {@code inteligo},
3241
       * {@code pbac_z_ipko}, {@code bnp_paribas}, {@code credit_agricole}, {@code toyota_bank},
3242
       * {@code bank_pekao_sa}, {@code volkswagen_bank}, {@code bank_millennium}, {@code
3243
       * alior_bank}, or {@code boz}.
3244
       */
3245
      @SerializedName("bank")
3246
      String bank;
3247

3248
      /** Unique reference for this Przelewy24 payment. */
3249
      @SerializedName("reference")
3250
      String reference;
3251

3252
      /**
3253
       * Owner's verified full name. Values are verified or provided by Przelewy24 directly (if
3254
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
3255
       * Przelewy24 rarely provides this information so the attribute is usually empty.
3256
       */
3257
      @SerializedName("verified_name")
3258
      String verifiedName;
3259
    }
3260

3261
    /**
3262
     * For more details about Payco, please refer to the <a href="https://docs.stripe.com/api">API
3263
     * Reference.</a>
3264
     */
3265
    @Getter
3266
    @Setter
3267
    @EqualsAndHashCode(callSuper = false)
3268
    public static class Payco extends StripeObject {
×
3269
      /** A unique identifier for the buyer as determined by the local payment processor. */
3270
      @SerializedName("buyer_id")
3271
      String buyerId;
3272
    }
3273

3274
    /**
3275
     * For more details about Paynow, please refer to the <a href="https://docs.stripe.com/api">API
3276
     * Reference.</a>
3277
     */
3278
    @Getter
3279
    @Setter
3280
    @EqualsAndHashCode(callSuper = false)
3281
    public static class Paynow extends StripeObject {
×
3282
      /** Reference number associated with this PayNow payment. */
3283
      @SerializedName("reference")
3284
      String reference;
3285
    }
3286

3287
    /**
3288
     * For more details about Paypal, please refer to the <a href="https://docs.stripe.com/api">API
3289
     * Reference.</a>
3290
     */
3291
    @Getter
3292
    @Setter
3293
    @EqualsAndHashCode(callSuper = false)
3294
    public static class Paypal extends StripeObject {
×
3295
      /**
3296
       * Owner's email. Values are provided by PayPal directly (if supported) at the time of
3297
       * authorization or settlement. They cannot be set or mutated.
3298
       */
3299
      @SerializedName("payer_email")
3300
      String payerEmail;
3301

3302
      /** PayPal account PayerID. This identifier uniquely identifies the PayPal customer. */
3303
      @SerializedName("payer_id")
3304
      String payerId;
3305

3306
      /**
3307
       * Owner's full name. Values provided by PayPal directly (if supported) at the time of
3308
       * authorization or settlement. They cannot be set or mutated.
3309
       */
3310
      @SerializedName("payer_name")
3311
      String payerName;
3312

3313
      /**
3314
       * The level of protection offered as defined by PayPal Seller Protection for Merchants, for
3315
       * this transaction.
3316
       */
3317
      @SerializedName("seller_protection")
3318
      SellerProtection sellerProtection;
3319

3320
      /** A unique ID generated by PayPal for this transaction. */
3321
      @SerializedName("transaction_id")
3322
      String transactionId;
3323

3324
      /**
3325
       * For more details about SellerProtection, please refer to the <a
3326
       * href="https://docs.stripe.com/api">API Reference.</a>
3327
       */
3328
      @Getter
3329
      @Setter
3330
      @EqualsAndHashCode(callSuper = false)
3331
      public static class SellerProtection extends StripeObject {
×
3332
        /** An array of conditions that are covered for the transaction, if applicable. */
3333
        @SerializedName("dispute_categories")
3334
        List<String> disputeCategories;
3335

3336
        /**
3337
         * Indicates whether the transaction is eligible for PayPal's seller protection.
3338
         *
3339
         * <p>One of {@code eligible}, {@code not_eligible}, or {@code partially_eligible}.
3340
         */
3341
        @SerializedName("status")
3342
        String status;
3343
      }
3344
    }
3345

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

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

3372
    /**
3373
     * For more details about RevolutPay, please refer to the <a
3374
     * href="https://docs.stripe.com/api">API Reference.</a>
3375
     */
3376
    @Getter
3377
    @Setter
3378
    @EqualsAndHashCode(callSuper = false)
NEW
3379
    public static class RevolutPay extends StripeObject {
×
3380
      @SerializedName("funding")
3381
      Funding funding;
3382

3383
      /**
3384
       * For more details about Funding, please refer to the <a
3385
       * href="https://docs.stripe.com/api">API Reference.</a>
3386
       */
3387
      @Getter
3388
      @Setter
3389
      @EqualsAndHashCode(callSuper = false)
NEW
3390
      public static class Funding extends StripeObject {
×
3391
        @SerializedName("card")
3392
        Card card;
3393

3394
        /**
3395
         * funding type of the underlying payment method.
3396
         *
3397
         * <p>Equal to {@code card}.
3398
         */
3399
        @SerializedName("type")
3400
        String type;
3401

3402
        /**
3403
         * For more details about Card, please refer to the <a
3404
         * href="https://docs.stripe.com/api">API Reference.</a>
3405
         */
3406
        @Getter
3407
        @Setter
3408
        @EqualsAndHashCode(callSuper = false)
NEW
3409
        public static class Card extends StripeObject {
×
3410
          /**
3411
           * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
3412
           * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
3413
           * {@code unknown}.
3414
           */
3415
          @SerializedName("brand")
3416
          String brand;
3417

3418
          /**
3419
           * Two-letter ISO code representing the country of the card. You could use this attribute
3420
           * to get a sense of the international breakdown of cards you've collected.
3421
           */
3422
          @SerializedName("country")
3423
          String country;
3424

3425
          /** Two-digit number representing the card's expiration month. */
3426
          @SerializedName("exp_month")
3427
          Long expMonth;
3428

3429
          /** Four-digit number representing the card's expiration year. */
3430
          @SerializedName("exp_year")
3431
          Long expYear;
3432

3433
          /**
3434
           * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
3435
           * unknown}.
3436
           */
3437
          @SerializedName("funding")
3438
          String funding;
3439

3440
          /** The last four digits of the card. */
3441
          @SerializedName("last4")
3442
          String last4;
3443
        }
3444
      }
3445
    }
3446

3447
    /**
3448
     * For more details about SamsungPay, please refer to the <a
3449
     * href="https://docs.stripe.com/api">API Reference.</a>
3450
     */
3451
    @Getter
3452
    @Setter
3453
    @EqualsAndHashCode(callSuper = false)
3454
    public static class SamsungPay extends StripeObject {
×
3455
      /** A unique identifier for the buyer as determined by the local payment processor. */
3456
      @SerializedName("buyer_id")
3457
      String buyerId;
3458
    }
3459

3460
    /**
3461
     * For more details about SepaCreditTransfer, please refer to the <a
3462
     * href="https://docs.stripe.com/api">API Reference.</a>
3463
     */
3464
    @Getter
3465
    @Setter
3466
    @EqualsAndHashCode(callSuper = false)
3467
    public static class SepaCreditTransfer extends StripeObject {
×
3468
      /** Name of the bank associated with the bank account. */
3469
      @SerializedName("bank_name")
3470
      String bankName;
3471

3472
      /** Bank Identifier Code of the bank associated with the bank account. */
3473
      @SerializedName("bic")
3474
      String bic;
3475

3476
      /** IBAN of the bank account to transfer funds to. */
3477
      @SerializedName("iban")
3478
      String iban;
3479
    }
3480

3481
    /**
3482
     * For more details about SepaDebit, please refer to the <a
3483
     * href="https://docs.stripe.com/api">API Reference.</a>
3484
     */
3485
    @Getter
3486
    @Setter
3487
    @EqualsAndHashCode(callSuper = false)
3488
    public static class SepaDebit extends StripeObject {
×
3489
      /** Bank code of bank associated with the bank account. */
3490
      @SerializedName("bank_code")
3491
      String bankCode;
3492

3493
      /** Branch code of bank associated with the bank account. */
3494
      @SerializedName("branch_code")
3495
      String branchCode;
3496

3497
      /** Two-letter ISO code representing the country the bank account is located in. */
3498
      @SerializedName("country")
3499
      String country;
3500

3501
      /**
3502
       * Uniquely identifies this particular bank account. You can use this attribute to check
3503
       * whether two bank accounts are the same.
3504
       */
3505
      @SerializedName("fingerprint")
3506
      String fingerprint;
3507

3508
      /** Last four characters of the IBAN. */
3509
      @SerializedName("last4")
3510
      String last4;
3511

3512
      /**
3513
       * Find the ID of the mandate used for this payment under the <a
3514
       * href="https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate">payment_method_details.sepa_debit.mandate</a>
3515
       * property on the Charge. Use this mandate ID to <a
3516
       * href="https://stripe.com/docs/api/mandates/retrieve">retrieve the Mandate</a>.
3517
       */
3518
      @SerializedName("mandate")
3519
      String mandate;
3520
    }
3521

3522
    /**
3523
     * For more details about Sofort, please refer to the <a href="https://docs.stripe.com/api">API
3524
     * Reference.</a>
3525
     */
3526
    @Getter
3527
    @Setter
3528
    @EqualsAndHashCode(callSuper = false)
3529
    public static class Sofort extends StripeObject {
×
3530
      /** Bank code of bank associated with the bank account. */
3531
      @SerializedName("bank_code")
3532
      String bankCode;
3533

3534
      /** Name of the bank associated with the bank account. */
3535
      @SerializedName("bank_name")
3536
      String bankName;
3537

3538
      /** Bank Identifier Code of the bank associated with the bank account. */
3539
      @SerializedName("bic")
3540
      String bic;
3541

3542
      /** Two-letter ISO code representing the country the bank account is located in. */
3543
      @SerializedName("country")
3544
      String country;
3545

3546
      /** The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
3547
      @SerializedName("generated_sepa_debit")
3548
      @Getter(lombok.AccessLevel.NONE)
3549
      @Setter(lombok.AccessLevel.NONE)
3550
      ExpandableField<PaymentMethod> generatedSepaDebit;
3551

3552
      /** The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. */
3553
      @SerializedName("generated_sepa_debit_mandate")
3554
      @Getter(lombok.AccessLevel.NONE)
3555
      @Setter(lombok.AccessLevel.NONE)
3556
      ExpandableField<Mandate> generatedSepaDebitMandate;
3557

3558
      /** Last four characters of the IBAN. */
3559
      @SerializedName("iban_last4")
3560
      String ibanLast4;
3561

3562
      /**
3563
       * Preferred language of the SOFORT authorization page that the customer is redirected to. Can
3564
       * be one of {@code de}, {@code en}, {@code es}, {@code fr}, {@code it}, {@code nl}, or {@code
3565
       * pl}
3566
       */
3567
      @SerializedName("preferred_language")
3568
      String preferredLanguage;
3569

3570
      /**
3571
       * Owner's verified full name. Values are verified or provided by SOFORT directly (if
3572
       * supported) at the time of authorization or settlement. They cannot be set or mutated.
3573
       */
3574
      @SerializedName("verified_name")
3575
      String verifiedName;
3576

3577
      /** Get ID of expandable {@code generatedSepaDebit} object. */
3578
      public String getGeneratedSepaDebit() {
3579
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getId() : null;
×
3580
      }
3581

3582
      public void setGeneratedSepaDebit(String id) {
3583
        this.generatedSepaDebit = ApiResource.setExpandableFieldId(id, this.generatedSepaDebit);
×
3584
      }
×
3585

3586
      /** Get expanded {@code generatedSepaDebit}. */
3587
      public PaymentMethod getGeneratedSepaDebitObject() {
3588
        return (this.generatedSepaDebit != null) ? this.generatedSepaDebit.getExpanded() : null;
×
3589
      }
3590

3591
      public void setGeneratedSepaDebitObject(PaymentMethod expandableObject) {
3592
        this.generatedSepaDebit =
×
3593
            new ExpandableField<PaymentMethod>(expandableObject.getId(), expandableObject);
×
3594
      }
×
3595

3596
      /** Get ID of expandable {@code generatedSepaDebitMandate} object. */
3597
      public String getGeneratedSepaDebitMandate() {
3598
        return (this.generatedSepaDebitMandate != null)
×
3599
            ? this.generatedSepaDebitMandate.getId()
×
3600
            : null;
×
3601
      }
3602

3603
      public void setGeneratedSepaDebitMandate(String id) {
3604
        this.generatedSepaDebitMandate =
×
3605
            ApiResource.setExpandableFieldId(id, this.generatedSepaDebitMandate);
×
3606
      }
×
3607

3608
      /** Get expanded {@code generatedSepaDebitMandate}. */
3609
      public Mandate getGeneratedSepaDebitMandateObject() {
3610
        return (this.generatedSepaDebitMandate != null)
×
3611
            ? this.generatedSepaDebitMandate.getExpanded()
×
3612
            : null;
×
3613
      }
3614

3615
      public void setGeneratedSepaDebitMandateObject(Mandate expandableObject) {
3616
        this.generatedSepaDebitMandate =
×
3617
            new ExpandableField<Mandate>(expandableObject.getId(), expandableObject);
×
3618
      }
×
3619
    }
3620

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

3630
    /**
3631
     * For more details about Swish, please refer to the <a href="https://docs.stripe.com/api">API
3632
     * Reference.</a>
3633
     */
3634
    @Getter
3635
    @Setter
3636
    @EqualsAndHashCode(callSuper = false)
3637
    public static class Swish extends StripeObject {
×
3638
      /**
3639
       * Uniquely identifies the payer's Swish account. You can use this attribute to check whether
3640
       * two Swish transactions were paid for by the same payer
3641
       */
3642
      @SerializedName("fingerprint")
3643
      String fingerprint;
3644

3645
      /** Payer bank reference number for the payment. */
3646
      @SerializedName("payment_reference")
3647
      String paymentReference;
3648

3649
      /** The last four digits of the Swish account phone number. */
3650
      @SerializedName("verified_phone_last4")
3651
      String verifiedPhoneLast4;
3652
    }
3653

3654
    /**
3655
     * For more details about Twint, please refer to the <a href="https://docs.stripe.com/api">API
3656
     * Reference.</a>
3657
     */
3658
    @Getter
3659
    @Setter
3660
    @EqualsAndHashCode(callSuper = false)
3661
    public static class Twint extends StripeObject {}
×
3662

3663
    /**
3664
     * For more details about UsBankAccount, please refer to the <a
3665
     * href="https://docs.stripe.com/api">API Reference.</a>
3666
     */
3667
    @Getter
3668
    @Setter
3669
    @EqualsAndHashCode(callSuper = false)
3670
    public static class UsBankAccount extends StripeObject {
×
3671
      /**
3672
       * Account holder type: individual or company.
3673
       *
3674
       * <p>One of {@code company}, or {@code individual}.
3675
       */
3676
      @SerializedName("account_holder_type")
3677
      String accountHolderType;
3678

3679
      /**
3680
       * Account type: checkings or savings. Defaults to checking if omitted.
3681
       *
3682
       * <p>One of {@code checking}, or {@code savings}.
3683
       */
3684
      @SerializedName("account_type")
3685
      String accountType;
3686

3687
      /** Name of the bank associated with the bank account. */
3688
      @SerializedName("bank_name")
3689
      String bankName;
3690

3691
      /**
3692
       * Uniquely identifies this particular bank account. You can use this attribute to check
3693
       * whether two bank accounts are the same.
3694
       */
3695
      @SerializedName("fingerprint")
3696
      String fingerprint;
3697

3698
      /** Last four digits of the bank account number. */
3699
      @SerializedName("last4")
3700
      String last4;
3701

3702
      /** ID of the mandate used to make this payment. */
3703
      @SerializedName("mandate")
3704
      @Getter(lombok.AccessLevel.NONE)
3705
      @Setter(lombok.AccessLevel.NONE)
3706
      ExpandableField<Mandate> mandate;
3707

3708
      /** Reference number to locate ACH payments with customer's bank. */
3709
      @SerializedName("payment_reference")
3710
      String paymentReference;
3711

3712
      /** Routing number of the bank account. */
3713
      @SerializedName("routing_number")
3714
      String routingNumber;
3715

3716
      /** Get ID of expandable {@code mandate} object. */
3717
      public String getMandate() {
3718
        return (this.mandate != null) ? this.mandate.getId() : null;
×
3719
      }
3720

3721
      public void setMandate(String id) {
3722
        this.mandate = ApiResource.setExpandableFieldId(id, this.mandate);
×
3723
      }
×
3724

3725
      /** Get expanded {@code mandate}. */
3726
      public Mandate getMandateObject() {
3727
        return (this.mandate != null) ? this.mandate.getExpanded() : null;
×
3728
      }
3729

3730
      public void setMandateObject(Mandate expandableObject) {
3731
        this.mandate = new ExpandableField<Mandate>(expandableObject.getId(), expandableObject);
×
3732
      }
×
3733
    }
3734

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

3744
    /**
3745
     * For more details about WechatPay, please refer to the <a
3746
     * href="https://docs.stripe.com/api">API Reference.</a>
3747
     */
3748
    @Getter
3749
    @Setter
3750
    @EqualsAndHashCode(callSuper = false)
3751
    public static class WechatPay extends StripeObject {
×
3752
      /**
3753
       * Uniquely identifies this particular WeChat Pay account. You can use this attribute to check
3754
       * whether two WeChat accounts are the same.
3755
       */
3756
      @SerializedName("fingerprint")
3757
      String fingerprint;
3758

3759
      /** Transaction ID of this particular WeChat Pay transaction. */
3760
      @SerializedName("transaction_id")
3761
      String transactionId;
3762
    }
3763

3764
    /**
3765
     * For more details about Zip, please refer to the <a href="https://docs.stripe.com/api">API
3766
     * Reference.</a>
3767
     */
3768
    @Getter
3769
    @Setter
3770
    @EqualsAndHashCode(callSuper = false)
3771
    public static class Zip extends StripeObject {}
×
3772
  }
3773

3774
  /**
3775
   * Options to configure Radar. See <a href="https://stripe.com/docs/radar/radar-session">Radar
3776
   * Session</a> for more information.
3777
   */
3778
  @Getter
3779
  @Setter
3780
  @EqualsAndHashCode(callSuper = false)
3781
  public static class RadarOptions extends StripeObject {
×
3782
    /**
3783
     * A <a href="https://stripe.com/docs/radar/radar-session">Radar Session</a> is a snapshot of
3784
     * the browser metadata and device details that help Radar make more accurate predictions on
3785
     * your payments.
3786
     */
3787
    @SerializedName("session")
3788
    String session;
3789
  }
3790

3791
  /**
3792
   * For more details about TransferData, please refer to the <a
3793
   * href="https://docs.stripe.com/api">API Reference.</a>
3794
   */
3795
  @Getter
3796
  @Setter
3797
  @EqualsAndHashCode(callSuper = false)
3798
  public static class TransferData extends StripeObject {
1✔
3799
    /**
3800
     * The amount transferred to the destination account, if specified. By default, the entire
3801
     * charge amount is transferred to the destination account.
3802
     */
3803
    @SerializedName("amount")
3804
    Long amount;
3805

3806
    /**
3807
     * ID of an existing, connected Stripe account to transfer funds to if {@code transfer_data} was
3808
     * specified in the charge request.
3809
     */
3810
    @SerializedName("destination")
3811
    @Getter(lombok.AccessLevel.NONE)
3812
    @Setter(lombok.AccessLevel.NONE)
3813
    ExpandableField<Account> destination;
3814

3815
    /** Get ID of expandable {@code destination} object. */
3816
    public String getDestination() {
3817
      return (this.destination != null) ? this.destination.getId() : null;
1✔
3818
    }
3819

3820
    public void setDestination(String id) {
3821
      this.destination = ApiResource.setExpandableFieldId(id, this.destination);
×
3822
    }
×
3823

3824
    /** Get expanded {@code destination}. */
3825
    public Account getDestinationObject() {
3826
      return (this.destination != null) ? this.destination.getExpanded() : null;
1✔
3827
    }
3828

3829
    public void setDestinationObject(Account expandableObject) {
3830
      this.destination = new ExpandableField<Account>(expandableObject.getId(), expandableObject);
×
3831
    }
×
3832
  }
3833

3834
  @Override
3835
  public void setResponseGetter(StripeResponseGetter responseGetter) {
3836
    super.setResponseGetter(responseGetter);
1✔
3837
    trySetResponseGetter(application, responseGetter);
1✔
3838
    trySetResponseGetter(applicationFee, responseGetter);
1✔
3839
    trySetResponseGetter(balanceTransaction, responseGetter);
1✔
3840
    trySetResponseGetter(billingDetails, responseGetter);
1✔
3841
    trySetResponseGetter(customer, responseGetter);
1✔
3842
    trySetResponseGetter(failureBalanceTransaction, responseGetter);
1✔
3843
    trySetResponseGetter(fraudDetails, responseGetter);
1✔
3844
    trySetResponseGetter(invoice, responseGetter);
1✔
3845
    trySetResponseGetter(level3, responseGetter);
1✔
3846
    trySetResponseGetter(onBehalfOf, responseGetter);
1✔
3847
    trySetResponseGetter(outcome, responseGetter);
1✔
3848
    trySetResponseGetter(paymentIntent, responseGetter);
1✔
3849
    trySetResponseGetter(paymentMethodDetails, responseGetter);
1✔
3850
    trySetResponseGetter(radarOptions, responseGetter);
1✔
3851
    trySetResponseGetter(refunds, responseGetter);
1✔
3852
    trySetResponseGetter(review, responseGetter);
1✔
3853
    trySetResponseGetter(shipping, responseGetter);
1✔
3854
    trySetResponseGetter(source, responseGetter);
1✔
3855
    trySetResponseGetter(sourceTransfer, responseGetter);
1✔
3856
    trySetResponseGetter(transfer, responseGetter);
1✔
3857
    trySetResponseGetter(transferData, responseGetter);
1✔
3858
  }
1✔
3859
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc