Skip to content

Commit 0378005

Browse files
committed
Codegen for openapi 1e11348
1 parent ba22d5a commit 0378005

16 files changed

+978
-29
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ public class AccountLink extends ApiResource {
3232
String url;
3333

3434
/**
35-
* Creates an AccountLink object that returns a Stripe URL that the user can redirect their user
36-
* to in order to take them through the Connect Onboarding flow.
35+
* Creates an AccountLink object that returns a single-use Stripe URL that the user can redirect
36+
* their user to in order to take them through the Connect Onboarding flow.
3737
*/
3838
public static AccountLink create(Map<String, Object> params) throws StripeException {
3939
return create(params, (RequestOptions) null);
4040
}
4141

4242
/**
43-
* Creates an AccountLink object that returns a Stripe URL that the user can redirect their user
44-
* to in order to take them through the Connect Onboarding flow.
43+
* Creates an AccountLink object that returns a single-use Stripe URL that the user can redirect
44+
* their user to in order to take them through the Connect Onboarding flow.
4545
*/
4646
public static AccountLink create(Map<String, Object> params, RequestOptions options)
4747
throws StripeException {
@@ -51,16 +51,16 @@ public static AccountLink create(Map<String, Object> params, RequestOptions opti
5151
}
5252

5353
/**
54-
* Creates an AccountLink object that returns a Stripe URL that the user can redirect their user
55-
* to in order to take them through the Connect Onboarding flow.
54+
* Creates an AccountLink object that returns a single-use Stripe URL that the user can redirect
55+
* their user to in order to take them through the Connect Onboarding flow.
5656
*/
5757
public static AccountLink create(AccountLinkCreateParams params) throws StripeException {
5858
return create(params, (RequestOptions) null);
5959
}
6060

6161
/**
62-
* Creates an AccountLink object that returns a Stripe URL that the user can redirect their user
63-
* to in order to take them through the Connect Onboarding flow.
62+
* Creates an AccountLink object that returns a single-use Stripe URL that the user can redirect
63+
* their user to in order to take them through the Connect Onboarding flow.
6464
*/
6565
public static AccountLink create(AccountLinkCreateParams params, RequestOptions options)
6666
throws StripeException {

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

+18
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,15 @@ public static class Card extends StripeObject {
12351235
@SerializedName("iin")
12361236
String iin;
12371237

1238+
/**
1239+
* Installment details for this payment (Mexico only).
1240+
*
1241+
* <p>For more information, see the [installments integration
1242+
* guide](https://stripe.com/docs/payments/installments).
1243+
*/
1244+
@SerializedName("installments")
1245+
Installments installments;
1246+
12381247
/**
12391248
* Issuer bank name of the card. (Only for internal use only and not typically available in
12401249
* standard API requests.)
@@ -1284,6 +1293,15 @@ public static class Checks extends StripeObject {
12841293
String cvcCheck;
12851294
}
12861295

1296+
@Getter
1297+
@Setter
1298+
@EqualsAndHashCode(callSuper = false)
1299+
public static class Installments extends StripeObject {
1300+
/** Installment plan selected for the payment. */
1301+
@SerializedName("plan")
1302+
PaymentIntent.PaymentMethodOptions.Card.Installments.Plan plan;
1303+
}
1304+
12871305
@Getter
12881306
@Setter
12891307
@EqualsAndHashCode(callSuper = false)

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,8 @@ public static class CustomField extends StripeObject {
12451245
@EqualsAndHashCode(callSuper = false)
12461246
public static class CustomerTaxId extends StripeObject {
12471247
/**
1248-
* The type of the tax ID, one of `au_abn`, `ch_vat`, `eu_vat`, `in_gst`, `no_vat`, `nz_gst`,
1249-
* `unknown`, or `za_vat`.
1248+
* The type of the tax ID, one of `au_abn`, `ch_vat`, `eu_vat`, `in_gst`, `mx_rfc`, `no_vat`,
1249+
* `nz_gst`, `unknown`, or `za_vat`.
12501250
*/
12511251
@SerializedName("type")
12521252
String type;

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

+49
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,15 @@ public static class PaymentMethodOptions extends StripeObject {
10851085
@Setter
10861086
@EqualsAndHashCode(callSuper = false)
10871087
public static class Card extends StripeObject {
1088+
/**
1089+
* Installment details for this payment (Mexico only).
1090+
*
1091+
* <p>For more information, see the [installments integration
1092+
* guide](https://stripe.com/docs/payments/installments).
1093+
*/
1094+
@SerializedName("installments")
1095+
Installments installments;
1096+
10881097
/**
10891098
* We strongly recommend that you rely on our SCA Engine to automatically prompt your
10901099
* customers for authentication based on risk level and [other
@@ -1097,6 +1106,46 @@ public static class Card extends StripeObject {
10971106
*/
10981107
@SerializedName("request_three_d_secure")
10991108
String requestThreeDSecure;
1109+
1110+
@Getter
1111+
@Setter
1112+
@EqualsAndHashCode(callSuper = false)
1113+
public static class Installments extends StripeObject {
1114+
/** Installment plans that may be selected for this PaymentIntent. */
1115+
@SerializedName("available_plans")
1116+
List<PaymentIntent.PaymentMethodOptions.Card.Installments.Plan> availablePlans;
1117+
1118+
/** Whether Installments are enabled for this PaymentIntent. */
1119+
@SerializedName("enabled")
1120+
Boolean enabled;
1121+
1122+
/** Installment plan selected for this PaymentIntent. */
1123+
@SerializedName("plan")
1124+
Plan plan;
1125+
1126+
@Getter
1127+
@Setter
1128+
@EqualsAndHashCode(callSuper = false)
1129+
public static class Plan extends StripeObject {
1130+
/**
1131+
* For `fixed_count` installment plans, this is the number of installment payments your
1132+
* customer will make to their credit card.
1133+
*/
1134+
@SerializedName("count")
1135+
Long count;
1136+
1137+
/**
1138+
* For `fixed_count` installment plans, this is the interval between installment payments
1139+
* your customer will make to their credit card. One of `month`.
1140+
*/
1141+
@SerializedName("interval")
1142+
String interval;
1143+
1144+
/** Type of installment plan, one of `fixed_count`. */
1145+
@SerializedName("type")
1146+
String type;
1147+
}
1148+
}
11001149
}
11011150
}
11021151

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

+32
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,25 @@ public class Subscription extends ApiResource implements HasId, MetadataStore<Su
170170
@SerializedName("metadata")
171171
Map<String, String> metadata;
172172

173+
/**
174+
* Specifies the approximate timestamp on which any pending invoice items will be billed according
175+
* to the schedule provided at `pending_invoice_item_interval`.
176+
*/
177+
@SerializedName("next_pending_invoice_item_invoice")
178+
Long nextPendingInvoiceItemInvoice;
179+
173180
/** String representing the object's type. Objects of the same type share the same value. */
174181
@SerializedName("object")
175182
String object;
176183

184+
/**
185+
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to
186+
* calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given
187+
* subscription at the specified interval.
188+
*/
189+
@SerializedName("pending_invoice_item_interval")
190+
PendingInvoiceItemInterval pendingInvoiceItemInterval;
191+
177192
/**
178193
* You can use this [SetupIntent](https://stripe.com/docs/api/setup_intents) to collect user
179194
* authentication when creating a subscription without immediate payment or updating a
@@ -684,4 +699,21 @@ public static class BillingThresholds extends StripeObject {
684699
@SerializedName("reset_billing_cycle_anchor")
685700
Boolean resetBillingCycleAnchor;
686701
}
702+
703+
@Getter
704+
@Setter
705+
@EqualsAndHashCode(callSuper = false)
706+
public static class PendingInvoiceItemInterval extends StripeObject {
707+
/** Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. */
708+
@SerializedName("interval")
709+
String interval;
710+
711+
/**
712+
* The number of intervals between invoices. For example, `interval=month` and
713+
* `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12
714+
* months, or 52 weeks).
715+
*/
716+
@SerializedName("interval_count")
717+
Long intervalCount;
718+
}
687719
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public class TaxId extends ApiResource implements HasId {
4949
String object;
5050

5151
/**
52-
* Type of the tax ID, one of `au_abn`, `ch_vat`, `eu_vat`, `in_gst`, `no_vat`, `nz_gst`,
53-
* `unknown`, or `za_vat`.
52+
* Type of the tax ID, one of `au_abn`, `ch_vat`, `eu_vat`, `in_gst`, `mx_rfc`, `no_vat`,
53+
* `nz_gst`, `za_vat`, or `unknown`.
5454
*/
5555
@SerializedName("type")
5656
String type;

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public class WebhookEndpoint extends ApiResource implements HasId {
3636
Boolean deleted;
3737

3838
/**
39-
* The list of events to enable for this endpoint. You may specify `['*']` to enable all events.
39+
* The list of events to enable for this endpoint. `['*']` indicates that all events are enabled,
40+
* except those that require explicit selection.
4041
*/
4142
@SerializedName("enabled_events")
4243
List<String> enabledEvents;

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

+8-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ public class AccountLinkCreateParams extends ApiRequestParams {
3838
@SerializedName("failure_url")
3939
String failureUrl;
4040

41-
/** The URL that the user will be redirected to upon completing the linked flow successfully. */
41+
/**
42+
* The URL that the user will be redirected to upon leaving or completing the linked flow
43+
* successfully.
44+
*/
4245
@SerializedName("success_url")
4346
String successUrl;
4447

@@ -170,7 +173,10 @@ public Builder setFailureUrl(String failureUrl) {
170173
return this;
171174
}
172175

173-
/** The URL that the user will be redirected to upon completing the linked flow successfully. */
176+
/**
177+
* The URL that the user will be redirected to upon leaving or completing the linked flow
178+
* successfully.
179+
*/
174180
public Builder setSuccessUrl(String successUrl) {
175181
this.successUrl = successUrl;
176182
return this;

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

+7-4
Original file line numberDiff line numberDiff line change
@@ -1062,8 +1062,8 @@ public static class TaxIdData {
10621062
Map<String, Object> extraParams;
10631063

10641064
/**
1065-
* Type of the tax ID, one of `au_abn`, `ch_vat`, `eu_vat`, `in_gst`, `no_vat`, `nz_gst`, or
1066-
* `za_vat`.
1065+
* Type of the tax ID, one of `au_abn`, `ch_vat`, `eu_vat`, `in_gst`, `mx_rfc`, `no_vat`,
1066+
* `nz_gst`, or `za_vat`.
10671067
*/
10681068
@SerializedName("type")
10691069
Type type;
@@ -1121,8 +1121,8 @@ public Builder putAllExtraParam(Map<String, Object> map) {
11211121
}
11221122

11231123
/**
1124-
* Type of the tax ID, one of `au_abn`, `ch_vat`, `eu_vat`, `in_gst`, `no_vat`, `nz_gst`, or
1125-
* `za_vat`.
1124+
* Type of the tax ID, one of `au_abn`, `ch_vat`, `eu_vat`, `in_gst`, `mx_rfc`, `no_vat`,
1125+
* `nz_gst`, or `za_vat`.
11261126
*/
11271127
public Builder setType(Type type) {
11281128
this.type = type;
@@ -1149,6 +1149,9 @@ public enum Type implements ApiRequestParams.EnumParam {
11491149
@SerializedName("in_gst")
11501150
IN_GST("in_gst"),
11511151

1152+
@SerializedName("mx_rfc")
1153+
MX_RFC("mx_rfc"),
1154+
11521155
@SerializedName("no_vat")
11531156
NO_VAT("no_vat"),
11541157

0 commit comments

Comments
 (0)