Skip to content

Commit d91240b

Browse files
Update generated code for v2126 and
1 parent 420178b commit d91240b

File tree

6 files changed

+162
-1
lines changed

6 files changed

+162
-1
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2125
1+
v2126

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,19 @@ public static class Phase extends StripeObject {
11411141
@SerializedName("discounts")
11421142
List<QuotePreviewSubscriptionSchedule.Phase.Discount> discounts;
11431143

1144+
/**
1145+
* Configures how the subscription schedule handles billing for phase transitions. Possible
1146+
* values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start}
1147+
* bills based on the current state of the subscription, ignoring changes scheduled in future
1148+
* phases. {@code billing_period_start} bills predictively for upcoming phase transitions within
1149+
* the current billing cycle, including pricing changes and service period adjustments that will
1150+
* occur before the next invoice.
1151+
*
1152+
* <p>One of {@code billing_period_start}, or {@code phase_start}.
1153+
*/
1154+
@SerializedName("effective_at")
1155+
String effectiveAt;
1156+
11441157
/** The end of this phase of the subscription schedule. */
11451158
@SerializedName("end_date")
11461159
Long endDate;

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,19 @@ public static class Phase extends StripeObject {
14551455
@SerializedName("discounts")
14561456
List<SubscriptionSchedule.Phase.Discount> discounts;
14571457

1458+
/**
1459+
* Configures how the subscription schedule handles billing for phase transitions. Possible
1460+
* values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start}
1461+
* bills based on the current state of the subscription, ignoring changes scheduled in future
1462+
* phases. {@code billing_period_start} bills predictively for upcoming phase transitions within
1463+
* the current billing cycle, including pricing changes and service period adjustments that will
1464+
* occur before the next invoice.
1465+
*
1466+
* <p>One of {@code billing_period_start}, or {@code phase_start}.
1467+
*/
1468+
@SerializedName("effective_at")
1469+
String effectiveAt;
1470+
14581471
/** The end of this phase of the subscription schedule. */
14591472
@SerializedName("end_date")
14601473
Long endDate;

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8997,6 +8997,17 @@ public static class Phase {
89978997
@SerializedName("duration")
89988998
Duration duration;
89998999

9000+
/**
9001+
* Configures how the subscription schedule handles billing for phase transitions. Possible
9002+
* values are {@code phase_start} (default) or {@code billing_period_start}. {@code
9003+
* phase_start} bills based on the current state of the subscription, ignoring changes
9004+
* scheduled in future phases. {@code billing_period_start} bills predictively for upcoming
9005+
* phase transitions within the current billing cycle, including pricing changes and service
9006+
* period adjustments that will occur before the next invoice.
9007+
*/
9008+
@SerializedName("effective_at")
9009+
EffectiveAt effectiveAt;
9010+
90009011
/**
90019012
* The date at which this phase of the subscription schedule ends. If set, {@code iterations}
90029013
* must not be set.
@@ -9113,6 +9124,7 @@ private Phase(
91139124
Object description,
91149125
Object discounts,
91159126
Duration duration,
9127+
EffectiveAt effectiveAt,
91169128
Object endDate,
91179129
Map<String, Object> extraParams,
91189130
InvoiceSettings invoiceSettings,
@@ -9139,6 +9151,7 @@ private Phase(
91399151
this.description = description;
91409152
this.discounts = discounts;
91419153
this.duration = duration;
9154+
this.effectiveAt = effectiveAt;
91429155
this.endDate = endDate;
91439156
this.extraParams = extraParams;
91449157
this.invoiceSettings = invoiceSettings;
@@ -9185,6 +9198,8 @@ public static class Builder {
91859198

91869199
private Duration duration;
91879200

9201+
private EffectiveAt effectiveAt;
9202+
91889203
private Object endDate;
91899204

91909205
private Map<String, Object> extraParams;
@@ -9228,6 +9243,7 @@ public InvoiceCreatePreviewParams.ScheduleDetails.Phase build() {
92289243
this.description,
92299244
this.discounts,
92309245
this.duration,
9246+
this.effectiveAt,
92319247
this.endDate,
92329248
this.extraParams,
92339249
this.invoiceSettings,
@@ -9499,6 +9515,20 @@ public Builder setDuration(
94999515
return this;
95009516
}
95019517

9518+
/**
9519+
* Configures how the subscription schedule handles billing for phase transitions. Possible
9520+
* values are {@code phase_start} (default) or {@code billing_period_start}. {@code
9521+
* phase_start} bills based on the current state of the subscription, ignoring changes
9522+
* scheduled in future phases. {@code billing_period_start} bills predictively for upcoming
9523+
* phase transitions within the current billing cycle, including pricing changes and service
9524+
* period adjustments that will occur before the next invoice.
9525+
*/
9526+
public Builder setEffectiveAt(
9527+
InvoiceCreatePreviewParams.ScheduleDetails.Phase.EffectiveAt effectiveAt) {
9528+
this.effectiveAt = effectiveAt;
9529+
return this;
9530+
}
9531+
95029532
/**
95039533
* The date at which this phase of the subscription schedule ends. If set, {@code
95049534
* iterations} must not be set.
@@ -13704,6 +13734,21 @@ public enum CollectionMethod implements ApiRequestParams.EnumParam {
1370413734
}
1370513735
}
1370613736

13737+
public enum EffectiveAt implements ApiRequestParams.EnumParam {
13738+
@SerializedName("billing_period_start")
13739+
BILLING_PERIOD_START("billing_period_start"),
13740+
13741+
@SerializedName("phase_start")
13742+
PHASE_START("phase_start");
13743+
13744+
@Getter(onMethod_ = {@Override})
13745+
private final String value;
13746+
13747+
EffectiveAt(String value) {
13748+
this.value = value;
13749+
}
13750+
}
13751+
1370713752
public enum EndDate implements ApiRequestParams.EnumParam {
1370813753
@SerializedName("now")
1370913754
NOW("now");

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,6 +2271,17 @@ public static class Phase {
22712271
@SerializedName("duration")
22722272
Duration duration;
22732273

2274+
/**
2275+
* Configures how the subscription schedule handles billing for phase transitions. Possible
2276+
* values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start}
2277+
* bills based on the current state of the subscription, ignoring changes scheduled in future
2278+
* phases. {@code billing_period_start} bills predictively for upcoming phase transitions within
2279+
* the current billing cycle, including pricing changes and service period adjustments that will
2280+
* occur before the next invoice.
2281+
*/
2282+
@SerializedName("effective_at")
2283+
EffectiveAt effectiveAt;
2284+
22742285
/**
22752286
* The date at which this phase of the subscription schedule ends. If set, {@code iterations}
22762287
* must not be set.
@@ -2379,6 +2390,7 @@ private Phase(
23792390
Object description,
23802391
Object discounts,
23812392
Duration duration,
2393+
EffectiveAt effectiveAt,
23822394
Long endDate,
23832395
Map<String, Object> extraParams,
23842396
InvoiceSettings invoiceSettings,
@@ -2404,6 +2416,7 @@ private Phase(
24042416
this.description = description;
24052417
this.discounts = discounts;
24062418
this.duration = duration;
2419+
this.effectiveAt = effectiveAt;
24072420
this.endDate = endDate;
24082421
this.extraParams = extraParams;
24092422
this.invoiceSettings = invoiceSettings;
@@ -2448,6 +2461,8 @@ public static class Builder {
24482461

24492462
private Duration duration;
24502463

2464+
private EffectiveAt effectiveAt;
2465+
24512466
private Long endDate;
24522467

24532468
private Map<String, Object> extraParams;
@@ -2489,6 +2504,7 @@ public SubscriptionScheduleCreateParams.Phase build() {
24892504
this.description,
24902505
this.discounts,
24912506
this.duration,
2507+
this.effectiveAt,
24922508
this.endDate,
24932509
this.extraParams,
24942510
this.invoiceSettings,
@@ -2747,6 +2763,20 @@ public Builder setDuration(SubscriptionScheduleCreateParams.Phase.Duration durat
27472763
return this;
27482764
}
27492765

2766+
/**
2767+
* Configures how the subscription schedule handles billing for phase transitions. Possible
2768+
* values are {@code phase_start} (default) or {@code billing_period_start}. {@code
2769+
* phase_start} bills based on the current state of the subscription, ignoring changes
2770+
* scheduled in future phases. {@code billing_period_start} bills predictively for upcoming
2771+
* phase transitions within the current billing cycle, including pricing changes and service
2772+
* period adjustments that will occur before the next invoice.
2773+
*/
2774+
public Builder setEffectiveAt(
2775+
SubscriptionScheduleCreateParams.Phase.EffectiveAt effectiveAt) {
2776+
this.effectiveAt = effectiveAt;
2777+
return this;
2778+
}
2779+
27502780
/**
27512781
* The date at which this phase of the subscription schedule ends. If set, {@code iterations}
27522782
* must not be set.
@@ -6811,6 +6841,21 @@ public enum CollectionMethod implements ApiRequestParams.EnumParam {
68116841
}
68126842
}
68136843

6844+
public enum EffectiveAt implements ApiRequestParams.EnumParam {
6845+
@SerializedName("billing_period_start")
6846+
BILLING_PERIOD_START("billing_period_start"),
6847+
6848+
@SerializedName("phase_start")
6849+
PHASE_START("phase_start");
6850+
6851+
@Getter(onMethod_ = {@Override})
6852+
private final String value;
6853+
6854+
EffectiveAt(String value) {
6855+
this.value = value;
6856+
}
6857+
}
6858+
68146859
public enum ProrationBehavior implements ApiRequestParams.EnumParam {
68156860
@SerializedName("always_invoice")
68166861
ALWAYS_INVOICE("always_invoice"),

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,17 @@ public static class Phase {
20542054
@SerializedName("duration")
20552055
Duration duration;
20562056

2057+
/**
2058+
* Configures how the subscription schedule handles billing for phase transitions. Possible
2059+
* values are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start}
2060+
* bills based on the current state of the subscription, ignoring changes scheduled in future
2061+
* phases. {@code billing_period_start} bills predictively for upcoming phase transitions within
2062+
* the current billing cycle, including pricing changes and service period adjustments that will
2063+
* occur before the next invoice.
2064+
*/
2065+
@SerializedName("effective_at")
2066+
EffectiveAt effectiveAt;
2067+
20572068
/**
20582069
* The date at which this phase of the subscription schedule ends. If set, {@code iterations}
20592070
* must not be set.
@@ -2169,6 +2180,7 @@ private Phase(
21692180
Object description,
21702181
Object discounts,
21712182
Duration duration,
2183+
EffectiveAt effectiveAt,
21722184
Object endDate,
21732185
Map<String, Object> extraParams,
21742186
InvoiceSettings invoiceSettings,
@@ -2195,6 +2207,7 @@ private Phase(
21952207
this.description = description;
21962208
this.discounts = discounts;
21972209
this.duration = duration;
2210+
this.effectiveAt = effectiveAt;
21982211
this.endDate = endDate;
21992212
this.extraParams = extraParams;
22002213
this.invoiceSettings = invoiceSettings;
@@ -2240,6 +2253,8 @@ public static class Builder {
22402253

22412254
private Duration duration;
22422255

2256+
private EffectiveAt effectiveAt;
2257+
22432258
private Object endDate;
22442259

22452260
private Map<String, Object> extraParams;
@@ -2283,6 +2298,7 @@ public SubscriptionScheduleUpdateParams.Phase build() {
22832298
this.description,
22842299
this.discounts,
22852300
this.duration,
2301+
this.effectiveAt,
22862302
this.endDate,
22872303
this.extraParams,
22882304
this.invoiceSettings,
@@ -2562,6 +2578,20 @@ public Builder setDuration(SubscriptionScheduleUpdateParams.Phase.Duration durat
25622578
return this;
25632579
}
25642580

2581+
/**
2582+
* Configures how the subscription schedule handles billing for phase transitions. Possible
2583+
* values are {@code phase_start} (default) or {@code billing_period_start}. {@code
2584+
* phase_start} bills based on the current state of the subscription, ignoring changes
2585+
* scheduled in future phases. {@code billing_period_start} bills predictively for upcoming
2586+
* phase transitions within the current billing cycle, including pricing changes and service
2587+
* period adjustments that will occur before the next invoice.
2588+
*/
2589+
public Builder setEffectiveAt(
2590+
SubscriptionScheduleUpdateParams.Phase.EffectiveAt effectiveAt) {
2591+
this.effectiveAt = effectiveAt;
2592+
return this;
2593+
}
2594+
25652595
/**
25662596
* The date at which this phase of the subscription schedule ends. If set, {@code iterations}
25672597
* must not be set.
@@ -6826,6 +6856,21 @@ public enum CollectionMethod implements ApiRequestParams.EnumParam {
68266856
}
68276857
}
68286858

6859+
public enum EffectiveAt implements ApiRequestParams.EnumParam {
6860+
@SerializedName("billing_period_start")
6861+
BILLING_PERIOD_START("billing_period_start"),
6862+
6863+
@SerializedName("phase_start")
6864+
PHASE_START("phase_start");
6865+
6866+
@Getter(onMethod_ = {@Override})
6867+
private final String value;
6868+
6869+
EffectiveAt(String value) {
6870+
this.value = value;
6871+
}
6872+
}
6873+
68296874
public enum EndDate implements ApiRequestParams.EnumParam {
68306875
@SerializedName("now")
68316876
NOW("now");

0 commit comments

Comments
 (0)