Skip to content

Commit 9c8e6d1

Browse files
Codegen for openapi 4d4a107 (#850)
* Codegen for openapi 4d4a107
1 parent e8c4af9 commit 9c8e6d1

24 files changed

+1948
-173
lines changed

src/main/java/com/stripe/model/Account.java

+19-19
Original file line numberDiff line numberDiff line change
@@ -337,51 +337,51 @@ public static Account create(AccountCreateParams params, RequestOptions options)
337337
}
338338

339339
/**
340-
* With <a href="/docs/connect">Connect</a>, you may delete Custom accounts you manage.
340+
* With <a href="/docs/connect">Connect</a>, you can delete Custom or Express accounts you manage.
341341
*
342-
* <p>Custom accounts created using test-mode keys can be deleted at any time. Custom accounts
343-
* created using live-mode keys may only be deleted once all balances are zero.
342+
* <p>Accounts created using test-mode keys can be deleted at any time. Accounts created using
343+
* live-mode keys can only be deleted once all balances are zero.
344344
*
345-
* <p>If you are looking to close your own account, use the <a
345+
* <p>If you want to delete your own account, use the <a
346346
* href="https://dashboard.stripe.com/account/data">data tab in your account settings</a> instead.
347347
*/
348348
public Account delete() throws StripeException {
349349
return delete((Map<String, Object>) null, (RequestOptions) null);
350350
}
351351

352352
/**
353-
* With <a href="/docs/connect">Connect</a>, you may delete Custom accounts you manage.
353+
* With <a href="/docs/connect">Connect</a>, you can delete Custom or Express accounts you manage.
354354
*
355-
* <p>Custom accounts created using test-mode keys can be deleted at any time. Custom accounts
356-
* created using live-mode keys may only be deleted once all balances are zero.
355+
* <p>Accounts created using test-mode keys can be deleted at any time. Accounts created using
356+
* live-mode keys can only be deleted once all balances are zero.
357357
*
358-
* <p>If you are looking to close your own account, use the <a
358+
* <p>If you want to delete your own account, use the <a
359359
* href="https://dashboard.stripe.com/account/data">data tab in your account settings</a> instead.
360360
*/
361361
public Account delete(RequestOptions options) throws StripeException {
362362
return delete((Map<String, Object>) null, options);
363363
}
364364

365365
/**
366-
* With <a href="/docs/connect">Connect</a>, you may delete Custom accounts you manage.
366+
* With <a href="/docs/connect">Connect</a>, you can delete Custom or Express accounts you manage.
367367
*
368-
* <p>Custom accounts created using test-mode keys can be deleted at any time. Custom accounts
369-
* created using live-mode keys may only be deleted once all balances are zero.
368+
* <p>Accounts created using test-mode keys can be deleted at any time. Accounts created using
369+
* live-mode keys can only be deleted once all balances are zero.
370370
*
371-
* <p>If you are looking to close your own account, use the <a
371+
* <p>If you want to delete your own account, use the <a
372372
* href="https://dashboard.stripe.com/account/data">data tab in your account settings</a> instead.
373373
*/
374374
public Account delete(Map<String, Object> params) throws StripeException {
375375
return delete(params, (RequestOptions) null);
376376
}
377377

378378
/**
379-
* With <a href="/docs/connect">Connect</a>, you may delete Custom accounts you manage.
379+
* With <a href="/docs/connect">Connect</a>, you can delete Custom or Express accounts you manage.
380380
*
381-
* <p>Custom accounts created using test-mode keys can be deleted at any time. Custom accounts
382-
* created using live-mode keys may only be deleted once all balances are zero.
381+
* <p>Accounts created using test-mode keys can be deleted at any time. Accounts created using
382+
* live-mode keys can only be deleted once all balances are zero.
383383
*
384-
* <p>If you are looking to close your own account, use the <a
384+
* <p>If you want to delete your own account, use the <a
385385
* href="https://dashboard.stripe.com/account/data">data tab in your account settings</a> instead.
386386
*/
387387
public Account delete(Map<String, Object> params, RequestOptions options) throws StripeException {
@@ -857,9 +857,9 @@ public static class Requirements extends StripeObject {
857857
List<String> pastDue;
858858

859859
/**
860-
* Additional fields that may be required depending on the results of verification or review for
861-
* provided requirements. If any of these fields become required, they appear in `currently_due`
862-
* or `past_due`.
860+
* Fields that may become required depending on the results of verification or review. An empty
861+
* array unless an asynchronous verification is pending. If verification fails, the fields in
862+
* this array become required and move to `currently_due` or `past_due`.
863863
*/
864864
@SerializedName("pending_verification")
865865
List<String> pendingVerification;

src/main/java/com/stripe/model/Capability.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ public static class Requirements extends StripeObject {
145145
List<String> pastDue;
146146

147147
/**
148-
* Additional fields that may be required depending on the results of verification or review for
149-
* provided requirements. If any of these fields become required, they appear in `currently_due`
150-
* or `past_due`.
148+
* Fields that may become required depending on the results of verification or review. An empty
149+
* array unless an asynchronous verification is pending. If verification fails, the fields in
150+
* this array become required and move to `currently_due` or `past_due`.
151151
*/
152152
@SerializedName("pending_verification")
153153
List<String> pendingVerification;

src/main/java/com/stripe/model/Charge.java

+4
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,10 @@ public static class SepaDebit extends StripeObject {
16751675
/** Last four characters of the IBAN. */
16761676
@SerializedName("last4")
16771677
String last4;
1678+
1679+
/** ID of the mandate used to make this payment. */
1680+
@SerializedName("mandate")
1681+
String mandate;
16781682
}
16791683

16801684
@Getter

src/main/java/com/stripe/model/Person.java

+12-11
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ public static class Requirements extends StripeObject {
324324
List<String> pastDue;
325325

326326
/**
327-
* Additional fields that may be required depending on the results of verification or review for
328-
* provided requirements. If any of these fields become required, they appear in `currently_due`
329-
* or `past_due`.
327+
* Fields that may become required depending on the results of verification or review. An empty
328+
* array unless an asynchronous verification is pending. If verification fails, the fields in
329+
* this array become required and move to `currently_due` or `past_due`.
330330
*/
331331
@SerializedName("pending_verification")
332332
List<String> pendingVerification;
@@ -351,8 +351,9 @@ public static class Verification extends StripeObject {
351351
String details;
352352

353353
/**
354-
* One of `scan_name_mismatch`, `failed_keyed_identity`, or `failed_other`. A machine-readable
355-
* code specifying the verification state for the person.
354+
* One of `document_address_mismatch`, `document_dob_mismatch`, `document_duplicate_type`,
355+
* `document_id_number_mismatch`, `document_name_mismatch`, `failed_keyed_identity`, or
356+
* `failed_other`. A machine-readable code specifying the verification state for the person.
356357
*/
357358
@SerializedName("details_code")
358359
String detailsCode;
@@ -390,13 +391,13 @@ public static class VerificationDocument extends StripeObject {
390391
String details;
391392

392393
/**
393-
* One of `document_corrupt`, `document_failed_copy`, `document_not_readable`,
394-
* `document_failed_greyscale`, `document_not_uploaded`, `document_id_type_not_supported`,
395-
* `document_id_country_not_supported`, `document_failed_other`, `document_fraudulent`,
394+
* One of `document_corrupt`, `document_country_not_supported`, `document_expired`,
395+
* `document_failed_copy`, `document_failed_other`, `document_failed_test_mode`,
396+
* `document_fraudulent`, `document_failed_greyscale`, `document_incomplete`,
396397
* `document_invalid`, `document_manipulated`, `document_missing_back`,
397-
* `document_missing_front`, `document_photo_mismatch`, `document_too_large`, or
398-
* `document_failed_test_mode`. A machine-readable code specifying the verification state for
399-
* this document.
398+
* `document_missing_front`, `document_not_readable`, `document_not_uploaded`,
399+
* `document_photo_mismatch`, `document_too_large`, or `document_type_not_supported`. A
400+
* machine-readable code specifying the verification state for this document.
400401
*/
401402
@SerializedName("details_code")
402403
String detailsCode;

src/main/java/com/stripe/model/SourceTransaction.java

+4
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ public static class GbpCreditTransferData extends StripeObject {
129129
@SerializedName("last4")
130130
String last4;
131131

132+
/** Sender entered arbitrary information about the transfer. */
133+
@SerializedName("reference")
134+
String reference;
135+
132136
/** Sender name associated with the transfer. */
133137
@SerializedName("sender_name")
134138
String senderName;

src/main/java/com/stripe/model/checkout/Session.java

+8-7
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ public class Session extends ApiResource implements HasId {
4747
String clientReferenceId;
4848

4949
/**
50-
* The ID of the customer for this session. A new customer will be created unless an existing
51-
* customer was provided in when the session was created.
50+
* The ID of the customer for this session. For Checkout Sessions in `payment` or `subscription`
51+
* mode, Checkout will create a new customer object based on information provided during the
52+
* session unless an existing customer was provided when the session was created.
5253
*/
5354
@SerializedName("customer")
5455
@Getter(lombok.AccessLevel.NONE)
@@ -95,7 +96,7 @@ public class Session extends ApiResource implements HasId {
9596
@SerializedName("object")
9697
String object;
9798

98-
/** The ID of the PaymentIntent for `payment` mode. */
99+
/** The ID of the PaymentIntent for Checkout Sessions in `payment` mode. */
99100
@SerializedName("payment_intent")
100101
@Getter(lombok.AccessLevel.NONE)
101102
@Setter(lombok.AccessLevel.NONE)
@@ -107,7 +108,7 @@ public class Session extends ApiResource implements HasId {
107108
@SerializedName("payment_method_types")
108109
List<String> paymentMethodTypes;
109110

110-
/** The ID of the SetupIntent if mode was set to `setup`. */
111+
/** The ID of the SetupIntent for Checkout Sessions in `setup` mode. */
111112
@SerializedName("setup_intent")
112113
@Getter(lombok.AccessLevel.NONE)
113114
@Setter(lombok.AccessLevel.NONE)
@@ -116,13 +117,13 @@ public class Session extends ApiResource implements HasId {
116117
/**
117118
* Describes the type of transaction being performed by Checkout in order to customize relevant
118119
* text on the page, such as the submit button. `submit_type` can only be specified on Checkout
119-
* Sessions using line items or a SKU, but not Checkout Sessions for subscriptions. Supported
120-
* values are `auto`, `book`, `donate`, or `pay`.
120+
* Sessions in `payment` mode, but not Checkout Sessions in `subscription` or `setup` mode.
121+
* Supported values are `auto`, `book`, `donate`, or `pay`.
121122
*/
122123
@SerializedName("submit_type")
123124
String submitType;
124125

125-
/** The ID of the subscription created if one or more plans were provided. */
126+
/** The ID of the subscription for Checkout Sessions in `subscription` mode. */
126127
@SerializedName("subscription")
127128
@Getter(lombok.AccessLevel.NONE)
128129
@Setter(lombok.AccessLevel.NONE)

src/main/java/com/stripe/model/issuing/Card.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public Card update(CardUpdateParams params, RequestOptions options) throws Strip
274274
}
275275

276276
/**
277-
* For virtual cards only. Retrieves an Issuing <code>Card_details</code> object that contains <a
277+
* For virtual cards only. Retrieves an Issuing <code>card_details</code> object that contains <a
278278
* href="/docs/issuing/cards/management#virtual-card-info">the sensitive details</a> of a virtual
279279
* card.
280280
*/
@@ -283,7 +283,7 @@ public CardDetails details() throws StripeException {
283283
}
284284

285285
/**
286-
* For virtual cards only. Retrieves an Issuing <code>Card_details</code> object that contains <a
286+
* For virtual cards only. Retrieves an Issuing <code>card_details</code> object that contains <a
287287
* href="/docs/issuing/cards/management#virtual-card-info">the sensitive details</a> of a virtual
288288
* card.
289289
*/
@@ -292,7 +292,7 @@ public CardDetails details(Map<String, Object> params) throws StripeException {
292292
}
293293

294294
/**
295-
* For virtual cards only. Retrieves an Issuing <code>Card_details</code> object that contains <a
295+
* For virtual cards only. Retrieves an Issuing <code>card_details</code> object that contains <a
296296
* href="/docs/issuing/cards/management#virtual-card-info">the sensitive details</a> of a virtual
297297
* card.
298298
*/
@@ -308,7 +308,7 @@ public CardDetails details(Map<String, Object> params, RequestOptions options)
308308
}
309309

310310
/**
311-
* For virtual cards only. Retrieves an Issuing <code>Card_details</code> object that contains <a
311+
* For virtual cards only. Retrieves an Issuing <code>card_details</code> object that contains <a
312312
* href="/docs/issuing/cards/management#virtual-card-info">the sensitive details</a> of a virtual
313313
* card.
314314
*/
@@ -317,7 +317,7 @@ public CardDetails details(CardDetailsParams params) throws StripeException {
317317
}
318318

319319
/**
320-
* For virtual cards only. Retrieves an Issuing <code>Card_details</code> object that contains <a
320+
* For virtual cards only. Retrieves an Issuing <code>card_details</code> object that contains <a
321321
* href="/docs/issuing/cards/management#virtual-card-info">the sensitive details</a> of a virtual
322322
* card.
323323
*/

src/main/java/com/stripe/param/AccountCreateParams.java

+24-12
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,8 @@ public Builder putAllExtraParam(Map<String, Object> map) {
14431443
public static class Document {
14441444
/**
14451445
* The back of a document returned by a [file upload](#create_file) with a `purpose` value
1446-
* of `additional_verification`.
1446+
* of `additional_verification`. The uploaded file needs to be a color image (smaller than
1447+
* 8,000px by 8,000px), in JPG or PNG format, and less than 10 MB in size.
14471448
*/
14481449
@SerializedName("back")
14491450
String back;
@@ -1460,7 +1461,8 @@ public static class Document {
14601461

14611462
/**
14621463
* The front of a document returned by a [file upload](#create_file) with a `purpose` value
1463-
* of `additional_verification`.
1464+
* of `additional_verification`. The uploaded file needs to be a color image (smaller than
1465+
* 8,000px by 8,000px), in JPG or PNG format, and less than 10 MB in size.
14641466
*/
14651467
@SerializedName("front")
14661468
String front;
@@ -1489,7 +1491,8 @@ public Document build() {
14891491

14901492
/**
14911493
* The back of a document returned by a [file upload](#create_file) with a `purpose` value
1492-
* of `additional_verification`.
1494+
* of `additional_verification`. The uploaded file needs to be a color image (smaller than
1495+
* 8,000px by 8,000px), in JPG or PNG format, and less than 10 MB in size.
14931496
*/
14941497
public Builder setBack(String back) {
14951498
this.back = back;
@@ -1526,7 +1529,8 @@ public Builder putAllExtraParam(Map<String, Object> map) {
15261529

15271530
/**
15281531
* The front of a document returned by a [file upload](#create_file) with a `purpose`
1529-
* value of `additional_verification`.
1532+
* value of `additional_verification`. The uploaded file needs to be a color image
1533+
* (smaller than 8,000px by 8,000px), in JPG or PNG format, and less than 10 MB in size.
15301534
*/
15311535
public Builder setFront(String front) {
15321536
this.front = front;
@@ -2581,7 +2585,8 @@ public Builder putAllExtraParam(Map<String, Object> map) {
25812585
public static class AdditionalDocument {
25822586
/**
25832587
* The back of an ID returned by a [file upload](#create_file) with a `purpose` value of
2584-
* `identity_document`.
2588+
* `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by
2589+
* 8,000px), in JPG or PNG format, and less than 10 MB in size.
25852590
*/
25862591
@SerializedName("back")
25872592
String back;
@@ -2598,7 +2603,8 @@ public static class AdditionalDocument {
25982603

25992604
/**
26002605
* The front of an ID returned by a [file upload](#create_file) with a `purpose` value of
2601-
* `identity_document`.
2606+
* `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by
2607+
* 8,000px), in JPG or PNG format, and less than 10 MB in size.
26022608
*/
26032609
@SerializedName("front")
26042610
String front;
@@ -2627,7 +2633,8 @@ public AdditionalDocument build() {
26272633

26282634
/**
26292635
* The back of an ID returned by a [file upload](#create_file) with a `purpose` value of
2630-
* `identity_document`.
2636+
* `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px
2637+
* by 8,000px), in JPG or PNG format, and less than 10 MB in size.
26312638
*/
26322639
public Builder setBack(String back) {
26332640
this.back = back;
@@ -2666,7 +2673,8 @@ public Builder putAllExtraParam(Map<String, Object> map) {
26662673

26672674
/**
26682675
* The front of an ID returned by a [file upload](#create_file) with a `purpose` value of
2669-
* `identity_document`.
2676+
* `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px
2677+
* by 8,000px), in JPG or PNG format, and less than 10 MB in size.
26702678
*/
26712679
public Builder setFront(String front) {
26722680
this.front = front;
@@ -2678,7 +2686,8 @@ public Builder setFront(String front) {
26782686
public static class Document {
26792687
/**
26802688
* The back of an ID returned by a [file upload](#create_file) with a `purpose` value of
2681-
* `identity_document`.
2689+
* `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by
2690+
* 8,000px), in JPG or PNG format, and less than 10 MB in size.
26822691
*/
26832692
@SerializedName("back")
26842693
String back;
@@ -2695,7 +2704,8 @@ public static class Document {
26952704

26962705
/**
26972706
* The front of an ID returned by a [file upload](#create_file) with a `purpose` value of
2698-
* `identity_document`.
2707+
* `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by
2708+
* 8,000px), in JPG or PNG format, and less than 10 MB in size.
26992709
*/
27002710
@SerializedName("front")
27012711
String front;
@@ -2724,7 +2734,8 @@ public Document build() {
27242734

27252735
/**
27262736
* The back of an ID returned by a [file upload](#create_file) with a `purpose` value of
2727-
* `identity_document`.
2737+
* `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px
2738+
* by 8,000px), in JPG or PNG format, and less than 10 MB in size.
27282739
*/
27292740
public Builder setBack(String back) {
27302741
this.back = back;
@@ -2761,7 +2772,8 @@ public Builder putAllExtraParam(Map<String, Object> map) {
27612772

27622773
/**
27632774
* The front of an ID returned by a [file upload](#create_file) with a `purpose` value of
2764-
* `identity_document`.
2775+
* `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px
2776+
* by 8,000px), in JPG or PNG format, and less than 10 MB in size.
27652777
*/
27662778
public Builder setFront(String front) {
27672779
this.front = front;

0 commit comments

Comments
 (0)