Skip to content

Commit

Permalink
Update generated code for v1377
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 25, 2024
1 parent e6b80e5 commit 5511a2c
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1374
v1377
9 changes: 9 additions & 0 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -2516,6 +2516,15 @@ public static class AmountsDue extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
/**
* If Stripe disabled automatic tax, this enum describes why.
*
* <p>One of {@code finalization_requires_location_inputs}, or {@code
* finalization_system_error}.
*/
@SerializedName("disabled_reason")
String disabledReason;

/**
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice
* items (invoice items with manually specified <a
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/stripe/model/QuotePreviewInvoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,15 @@ public static class AppliesTo extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
/**
* If Stripe disabled automatic tax, this enum describes why.
*
* <p>One of {@code finalization_requires_location_inputs}, or {@code
* finalization_system_error}.
*/
@SerializedName("disabled_reason")
String disabledReason;

/**
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice
* items (invoice items with manually specified <a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,14 @@ public void setOnBehalfOfObject(Account expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
/**
* If Stripe disabled automatic tax, this enum describes why.
*
* <p>Equal to {@code requires_location_inputs}.
*/
@SerializedName("disabled_reason")
String disabledReason;

/** Whether Stripe automatically computes tax on invoices created during this phase. */
@SerializedName("enabled")
Boolean enabled;
Expand Down Expand Up @@ -1130,6 +1138,14 @@ public static class DiscountEnd extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
/**
* If Stripe disabled automatic tax, this enum describes why.
*
* <p>Equal to {@code requires_location_inputs}.
*/
@SerializedName("disabled_reason")
String disabledReason;

/** Whether Stripe automatically computes tax on invoices created during this phase. */
@SerializedName("enabled")
Boolean enabled;
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/stripe/model/Subscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,14 @@ public Subscription update(SubscriptionUpdateParams params, RequestOptions optio
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
/**
* If Stripe disabled automatic tax, this enum describes why.
*
* <p>Equal to {@code requires_location_inputs}.
*/
@SerializedName("disabled_reason")
String disabledReason;

/** Whether Stripe automatically computes tax on this subscription. */
@SerializedName("enabled")
Boolean enabled;
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/stripe/model/SubscriptionSchedule.java
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,14 @@ public void setOnBehalfOfObject(Account expandableObject) {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
/**
* If Stripe disabled automatic tax, this enum describes why.
*
* <p>Equal to {@code requires_location_inputs}.
*/
@SerializedName("disabled_reason")
String disabledReason;

/** Whether Stripe automatically computes tax on invoices created during this phase. */
@SerializedName("enabled")
Boolean enabled;
Expand Down Expand Up @@ -1444,6 +1452,14 @@ public static class DiscountEnd extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AutomaticTax extends StripeObject {
/**
* If Stripe disabled automatic tax, this enum describes why.
*
* <p>Equal to {@code requires_location_inputs}.
*/
@SerializedName("disabled_reason")
String disabledReason;

/** Whether Stripe automatically computes tax on invoices created during this phase. */
@SerializedName("enabled")
Boolean enabled;
Expand Down

0 comments on commit 5511a2c

Please sign in to comment.