Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
441c0fcde75bcbf836f1a1810d5b9cfe8e8a7da4
f7784849b5189b7bdf4d850b41365cec53d174b2
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2116
v2120
7 changes: 7 additions & 0 deletions src/main/java/com/stripe/model/Discount.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ public class Discount extends StripeObject implements HasId {
@Setter(lombok.AccessLevel.NONE)
ExpandableField<PromotionCode> promotionCode;

/**
* The subscription schedule that this coupon is applied to, if it is applied to a particular
* subscription schedule.
*/
@SerializedName("schedule")
String schedule;

@SerializedName("source")
Source source;

Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/stripe/model/EventDataClassLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ public final class EventDataClassLookup {
classLookup.put(
"issuing.personalization_design", com.stripe.model.issuing.PersonalizationDesign.class);
classLookup.put("issuing.physical_bundle", com.stripe.model.issuing.PhysicalBundle.class);
classLookup.put("issuing.program", com.stripe.model.issuing.Program.class);
classLookup.put("issuing.settlement", com.stripe.model.issuing.Settlement.class);
classLookup.put("issuing.token", com.stripe.model.issuing.Token.class);
classLookup.put("issuing.transaction", com.stripe.model.issuing.Transaction.class);
Expand Down
21 changes: 19 additions & 2 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2327,15 +2327,19 @@ public static class Parent extends StripeObject {
@SerializedName("quote_details")
QuoteDetails quoteDetails;

/** Details about the schedule that generated this invoice. */
@SerializedName("schedule_details")
ScheduleDetails scheduleDetails;

/** Details about the subscription that generated this invoice. */
@SerializedName("subscription_details")
SubscriptionDetails subscriptionDetails;

/**
* The type of parent that generated this invoice
*
* <p>One of {@code billing_cadence_details}, {@code quote_details}, or {@code
* subscription_details}.
* <p>One of {@code billing_cadence_details}, {@code quote_details}, {@code schedule_details},
* or {@code subscription_details}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -2366,6 +2370,19 @@ public static class QuoteDetails extends StripeObject {
String quote;
}

/**
* For more details about ScheduleDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ScheduleDetails extends StripeObject {
/** The schedule that generated this invoice. */
@SerializedName("schedule")
String schedule;
}

/**
* For more details about SubscriptionDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
19 changes: 18 additions & 1 deletion src/main/java/com/stripe/model/InvoiceItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,10 @@ public static class Parent extends StripeObject {
@SerializedName("rate_card_subscription_details")
RateCardSubscriptionDetails rateCardSubscriptionDetails;

/** Details about the subscription schedule that generated this invoice item. */
@SerializedName("schedule_details")
ScheduleDetails scheduleDetails;

/** Details about the subscription that generated this invoice item. */
@SerializedName("subscription_details")
SubscriptionDetails subscriptionDetails;
Expand All @@ -555,7 +559,7 @@ public static class Parent extends StripeObject {
* The type of parent that generated this invoice item
*
* <p>One of {@code license_fee_subscription_details}, {@code rate_card_subscription_details},
* or {@code subscription_details}.
* {@code schedule_details}, or {@code subscription_details}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -610,6 +614,19 @@ public static class RateCardSubscriptionDetails extends StripeObject {
String rateCardVersion;
}

/**
* For more details about ScheduleDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ScheduleDetails extends StripeObject {
/** The subscription schedule that generated this invoice item. */
@SerializedName("schedule")
String schedule;
}

/**
* For more details about SubscriptionDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
20 changes: 19 additions & 1 deletion src/main/java/com/stripe/model/InvoiceLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ public static class Parent extends StripeObject {
@SerializedName("rate_card_subscription_details")
RateCardSubscriptionDetails rateCardSubscriptionDetails;

/** Details about the subscription schedule that generated this line item. */
@SerializedName("schedule_details")
ScheduleDetails scheduleDetails;

/** Details about the subscription item that generated this line item. */
@SerializedName("subscription_item_details")
SubscriptionItemDetails subscriptionItemDetails;
Expand All @@ -411,7 +415,8 @@ public static class Parent extends StripeObject {
* The type of parent that generated this line item
*
* <p>One of {@code invoice_item_details}, {@code license_fee_subscription_details}, {@code
* rate_card_subscription_details}, or {@code subscription_item_details}.
* rate_card_subscription_details}, {@code schedule_details}, or {@code
* subscription_item_details}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -532,6 +537,19 @@ public static class RateCardSubscriptionDetails extends StripeObject {
String rateCardVersion;
}

/**
* For more details about ScheduleDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ScheduleDetails extends StripeObject {
/** The subscription schedule that generated this line item. */
@SerializedName("schedule")
String schedule;
}

/**
* For more details about SubscriptionItemDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
21 changes: 19 additions & 2 deletions src/main/java/com/stripe/model/QuotePreviewInvoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -1195,15 +1195,19 @@ public static class Parent extends StripeObject {
@SerializedName("quote_details")
QuoteDetails quoteDetails;

/** Details about the schedule that generated this invoice. */
@SerializedName("schedule_details")
ScheduleDetails scheduleDetails;

/** Details about the subscription that generated this invoice. */
@SerializedName("subscription_details")
SubscriptionDetails subscriptionDetails;

/**
* The type of parent that generated this invoice
*
* <p>One of {@code billing_cadence_details}, {@code quote_details}, or {@code
* subscription_details}.
* <p>One of {@code billing_cadence_details}, {@code quote_details}, {@code schedule_details},
* or {@code subscription_details}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -1234,6 +1238,19 @@ public static class QuoteDetails extends StripeObject {
String quote;
}

/**
* For more details about ScheduleDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ScheduleDetails extends StripeObject {
/** The schedule that generated this invoice. */
@SerializedName("schedule")
String schedule;
}

/**
* For more details about SubscriptionDetails, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
Expand Down
Loading
Loading