Skip to content

Commit c95f2f8

Browse files
Merge pull request #2127 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 5142142 + 5e9f26c commit c95f2f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2480
-349
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3602014a6583f6c0fbfdde3c575839ac7d0b4e9c
1+
5abe0e44caedb3474ee672265284096ec89e0fa3

CHANGELOG.md

Lines changed: 68 additions & 31 deletions
Large diffs are not rendered by default.

CODEGEN_VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
88aa59022b32620f4d66d6196e3b42d5a0f86bbb

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2141
1+
v2150

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ public final class EventDataClassLookup {
234234
classLookup.put("tax.calculation", com.stripe.model.tax.Calculation.class);
235235
classLookup.put("tax.calculation_line_item", com.stripe.model.tax.CalculationLineItem.class);
236236
classLookup.put("tax.form", com.stripe.model.tax.Form.class);
237+
classLookup.put("tax.location", com.stripe.model.tax.Location.class);
237238
classLookup.put("tax.registration", com.stripe.model.tax.Registration.class);
238239
classLookup.put("tax.settings", com.stripe.model.tax.Settings.class);
239240
classLookup.put("tax.transaction", com.stripe.model.tax.Transaction.class);

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2382,6 +2382,31 @@ public static class ScheduleDetails extends StripeObject {
23822382
/** The schedule that generated this invoice. */
23832383
@SerializedName("schedule")
23842384
String schedule;
2385+
2386+
/** The subscription associated with this schedule. */
2387+
@SerializedName("subscription")
2388+
@Getter(lombok.AccessLevel.NONE)
2389+
@Setter(lombok.AccessLevel.NONE)
2390+
ExpandableField<Subscription> subscription;
2391+
2392+
/** Get ID of expandable {@code subscription} object. */
2393+
public String getSubscription() {
2394+
return (this.subscription != null) ? this.subscription.getId() : null;
2395+
}
2396+
2397+
public void setSubscription(String id) {
2398+
this.subscription = ApiResource.setExpandableFieldId(id, this.subscription);
2399+
}
2400+
2401+
/** Get expanded {@code subscription}. */
2402+
public Subscription getSubscriptionObject() {
2403+
return (this.subscription != null) ? this.subscription.getExpanded() : null;
2404+
}
2405+
2406+
public void setSubscriptionObject(Subscription expandableObject) {
2407+
this.subscription =
2408+
new ExpandableField<Subscription>(expandableObject.getId(), expandableObject);
2409+
}
23852410
}
23862411

23872412
/**

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ public class Plan extends ApiResource implements HasId, MetadataStore<Plan> {
8989
@SerializedName("deleted")
9090
Boolean deleted;
9191

92+
/**
93+
* A custom identifier for this price, such as a SKU number or product code, that can be used to
94+
* reference records from external systems.
95+
*/
96+
@SerializedName("external_reference")
97+
String externalReference;
98+
9299
/** Unique identifier for the object. */
93100
@Getter(onMethod_ = {@Override})
94101
@SerializedName("id")

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ public class Price extends ApiResource implements HasId, MetadataStore<Price> {
8989
@SerializedName("deleted")
9090
Boolean deleted;
9191

92+
/**
93+
* A custom identifier for this price, such as a SKU number or product code, that can be used to
94+
* reference records from external systems.
95+
*/
96+
@SerializedName("external_reference")
97+
String externalReference;
98+
9299
/** Unique identifier for the object. */
93100
@Getter(onMethod_ = {@Override})
94101
@SerializedName("id")

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

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,14 +2027,10 @@ public static class SubscriptionData extends StripeObject {
20272027
Map<String, String> metadata;
20282028

20292029
/**
2030-
* Configures how the quote handles billing for line transitions. Possible values are {@code
2031-
* line_start} (default) or {@code billing_period_start}. {@code line_start} bills based on the
2032-
* current state of the line, ignoring changes scheduled for future lines. {@code
2033-
* billing_period_start} bills predictively for upcoming line transitions within the current
2034-
* billing cycle, including pricing changes and service period adjustments that will occur
2035-
* before the next invoice.
2030+
* Configures how the subscription schedule handles billing for phase transitions when the quote
2031+
* is accepted.
20362032
*
2037-
* <p>One of {@code billing_period_start}, or {@code line_start}.
2033+
* <p>One of {@code billing_period_start}, or {@code phase_start}.
20382034
*/
20392035
@SerializedName("phase_effective_at")
20402036
String phaseEffectiveAt;
@@ -2494,14 +2490,10 @@ public static class SubscriptionDataOverride extends StripeObject {
24942490
String endBehavior;
24952491

24962492
/**
2497-
* Configures how the quote handles billing for line transitions. Possible values are {@code
2498-
* line_start} (default) or {@code billing_period_start}. {@code line_start} bills based on the
2499-
* current state of the line, ignoring changes scheduled for future lines. {@code
2500-
* billing_period_start} bills predictively for upcoming line transitions within the current
2501-
* billing cycle, including pricing changes and service period adjustments that will occur
2502-
* before the next invoice.
2493+
* Configures how the subscription schedule handles billing for phase transitions when the quote
2494+
* is accepted.
25032495
*
2504-
* <p>One of {@code billing_period_start}, or {@code line_start}.
2496+
* <p>One of {@code billing_period_start}, or {@code phase_start}.
25052497
*/
25062498
@SerializedName("phase_effective_at")
25072499
String phaseEffectiveAt;

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,7 @@ public class QuoteLine extends StripeObject implements HasId {
4848
CancelSubscriptionSchedule cancelSubscriptionSchedule;
4949

5050
/**
51-
* Configures how the subscription schedule handles billing for phase transitions. Possible values
52-
* are {@code phase_start} (default) or {@code billing_period_start}. {@code phase_start} bills
53-
* based on the current state of the subscription, ignoring changes scheduled in future phases.
54-
* {@code billing_period_start} bills predictively for upcoming phase transitions within the
55-
* current billing cycle, including pricing changes and service period adjustments that will occur
56-
* before the next invoice.
51+
* Configures how the subscription schedule handles billing for phase transitions.
5752
*
5853
* <p>One of {@code billing_period_start}, or {@code line_start}.
5954
*/

0 commit comments

Comments
 (0)