Skip to content

Commit bcbbac7

Browse files
Update generated code for v2121 and
1 parent b0dab08 commit bcbbac7

22 files changed

+3223
-8
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
441c0fcde75bcbf836f1a1810d5b9cfe8e8a7da4
1+
ece18a988c812df07ae8223d214b27932ebc20ab

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2116
1+
v2121

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ public class Discount extends StripeObject implements HasId {
8585
@Setter(lombok.AccessLevel.NONE)
8686
ExpandableField<PromotionCode> promotionCode;
8787

88+
/**
89+
* The subscription schedule that this coupon is applied to, if it is applied to a particular
90+
* subscription schedule.
91+
*/
92+
@SerializedName("schedule")
93+
String schedule;
94+
8895
@SerializedName("source")
8996
Source source;
9097

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public final class EventDataClassLookup {
203203
classLookup.put(
204204
"issuing.personalization_design", com.stripe.model.issuing.PersonalizationDesign.class);
205205
classLookup.put("issuing.physical_bundle", com.stripe.model.issuing.PhysicalBundle.class);
206+
classLookup.put("issuing.program", com.stripe.model.issuing.Program.class);
206207
classLookup.put("issuing.settlement", com.stripe.model.issuing.Settlement.class);
207208
classLookup.put("issuing.token", com.stripe.model.issuing.Token.class);
208209
classLookup.put("issuing.transaction", com.stripe.model.issuing.Transaction.class);

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

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2327,15 +2327,19 @@ public static class Parent extends StripeObject {
23272327
@SerializedName("quote_details")
23282328
QuoteDetails quoteDetails;
23292329

2330+
/** Details about the schedule that generated this invoice. */
2331+
@SerializedName("schedule_details")
2332+
ScheduleDetails scheduleDetails;
2333+
23302334
/** Details about the subscription that generated this invoice. */
23312335
@SerializedName("subscription_details")
23322336
SubscriptionDetails subscriptionDetails;
23332337

23342338
/**
23352339
* The type of parent that generated this invoice
23362340
*
2337-
* <p>One of {@code billing_cadence_details}, {@code quote_details}, or {@code
2338-
* subscription_details}.
2341+
* <p>One of {@code billing_cadence_details}, {@code quote_details}, {@code schedule_details},
2342+
* or {@code subscription_details}.
23392343
*/
23402344
@SerializedName("type")
23412345
String type;
@@ -2366,6 +2370,19 @@ public static class QuoteDetails extends StripeObject {
23662370
String quote;
23672371
}
23682372

2373+
/**
2374+
* For more details about ScheduleDetails, please refer to the <a
2375+
* href="https://docs.stripe.com/api">API Reference.</a>
2376+
*/
2377+
@Getter
2378+
@Setter
2379+
@EqualsAndHashCode(callSuper = false)
2380+
public static class ScheduleDetails extends StripeObject {
2381+
/** The schedule that generated this invoice. */
2382+
@SerializedName("schedule")
2383+
String schedule;
2384+
}
2385+
23692386
/**
23702387
* For more details about SubscriptionDetails, please refer to the <a
23712388
* href="https://docs.stripe.com/api">API Reference.</a>

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,10 @@ public static class Parent extends StripeObject {
547547
@SerializedName("rate_card_subscription_details")
548548
RateCardSubscriptionDetails rateCardSubscriptionDetails;
549549

550+
/** Details about the subscription schedule that generated this invoice item. */
551+
@SerializedName("schedule_details")
552+
ScheduleDetails scheduleDetails;
553+
550554
/** Details about the subscription that generated this invoice item. */
551555
@SerializedName("subscription_details")
552556
SubscriptionDetails subscriptionDetails;
@@ -555,7 +559,7 @@ public static class Parent extends StripeObject {
555559
* The type of parent that generated this invoice item
556560
*
557561
* <p>One of {@code license_fee_subscription_details}, {@code rate_card_subscription_details},
558-
* or {@code subscription_details}.
562+
* {@code schedule_details}, or {@code subscription_details}.
559563
*/
560564
@SerializedName("type")
561565
String type;
@@ -610,6 +614,19 @@ public static class RateCardSubscriptionDetails extends StripeObject {
610614
String rateCardVersion;
611615
}
612616

617+
/**
618+
* For more details about ScheduleDetails, please refer to the <a
619+
* href="https://docs.stripe.com/api">API Reference.</a>
620+
*/
621+
@Getter
622+
@Setter
623+
@EqualsAndHashCode(callSuper = false)
624+
public static class ScheduleDetails extends StripeObject {
625+
/** The subscription schedule that generated this invoice item. */
626+
@SerializedName("schedule")
627+
String schedule;
628+
}
629+
613630
/**
614631
* For more details about SubscriptionDetails, please refer to the <a
615632
* href="https://docs.stripe.com/api">API Reference.</a>

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,10 @@ public static class Parent extends StripeObject {
403403
@SerializedName("rate_card_subscription_details")
404404
RateCardSubscriptionDetails rateCardSubscriptionDetails;
405405

406+
/** Details about the subscription schedule that generated this line item. */
407+
@SerializedName("schedule_details")
408+
ScheduleDetails scheduleDetails;
409+
406410
/** Details about the subscription item that generated this line item. */
407411
@SerializedName("subscription_item_details")
408412
SubscriptionItemDetails subscriptionItemDetails;
@@ -411,7 +415,8 @@ public static class Parent extends StripeObject {
411415
* The type of parent that generated this line item
412416
*
413417
* <p>One of {@code invoice_item_details}, {@code license_fee_subscription_details}, {@code
414-
* rate_card_subscription_details}, or {@code subscription_item_details}.
418+
* rate_card_subscription_details}, {@code schedule_details}, or {@code
419+
* subscription_item_details}.
415420
*/
416421
@SerializedName("type")
417422
String type;
@@ -532,6 +537,19 @@ public static class RateCardSubscriptionDetails extends StripeObject {
532537
String rateCardVersion;
533538
}
534539

540+
/**
541+
* For more details about ScheduleDetails, please refer to the <a
542+
* href="https://docs.stripe.com/api">API Reference.</a>
543+
*/
544+
@Getter
545+
@Setter
546+
@EqualsAndHashCode(callSuper = false)
547+
public static class ScheduleDetails extends StripeObject {
548+
/** The subscription schedule that generated this line item. */
549+
@SerializedName("schedule")
550+
String schedule;
551+
}
552+
535553
/**
536554
* For more details about SubscriptionItemDetails, please refer to the <a
537555
* href="https://docs.stripe.com/api">API Reference.</a>

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

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,15 +1195,19 @@ public static class Parent extends StripeObject {
11951195
@SerializedName("quote_details")
11961196
QuoteDetails quoteDetails;
11971197

1198+
/** Details about the schedule that generated this invoice. */
1199+
@SerializedName("schedule_details")
1200+
ScheduleDetails scheduleDetails;
1201+
11981202
/** Details about the subscription that generated this invoice. */
11991203
@SerializedName("subscription_details")
12001204
SubscriptionDetails subscriptionDetails;
12011205

12021206
/**
12031207
* The type of parent that generated this invoice
12041208
*
1205-
* <p>One of {@code billing_cadence_details}, {@code quote_details}, or {@code
1206-
* subscription_details}.
1209+
* <p>One of {@code billing_cadence_details}, {@code quote_details}, {@code schedule_details},
1210+
* or {@code subscription_details}.
12071211
*/
12081212
@SerializedName("type")
12091213
String type;
@@ -1234,6 +1238,19 @@ public static class QuoteDetails extends StripeObject {
12341238
String quote;
12351239
}
12361240

1241+
/**
1242+
* For more details about ScheduleDetails, please refer to the <a
1243+
* href="https://docs.stripe.com/api">API Reference.</a>
1244+
*/
1245+
@Getter
1246+
@Setter
1247+
@EqualsAndHashCode(callSuper = false)
1248+
public static class ScheduleDetails extends StripeObject {
1249+
/** The schedule that generated this invoice. */
1250+
@SerializedName("schedule")
1251+
String schedule;
1252+
}
1253+
12371254
/**
12381255
* For more details about SubscriptionDetails, please refer to the <a
12391256
* href="https://docs.stripe.com/api">API Reference.</a>

0 commit comments

Comments
 (0)