Skip to content

Commit

Permalink
Update generated code for v1472
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Feb 7, 2025
1 parent 99947d8 commit b8d4e23
Show file tree
Hide file tree
Showing 25 changed files with 769 additions and 119 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1471
v1472
12 changes: 12 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -2353,6 +2353,18 @@ public static class RiskControls extends StripeObject {
@SerializedName("payouts")
Payouts payouts;

/**
* Represents the rejected reason of the account. Empty if account is not rejected, or rejected
* by Stripe. Please see <a href="https://stripe.com/docs/connect/">this page for more
* details</a>
*
* <p>One of {@code credit}, {@code fraud}, {@code fraud_no_intent_to_fulfill}, {@code
* fraud_other}, {@code fraud_payment_method_casher}, {@code fraud_payment_method_tester},
* {@code other}, or {@code terms_of_service}.
*/
@SerializedName("rejected_reason")
String rejectedReason;

/**
* For more details about Charges, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/stripe/model/CreditNote.java
Original file line number Diff line number Diff line change
Expand Up @@ -841,12 +841,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/stripe/model/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -3169,12 +3169,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/stripe/model/LineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/com/stripe/model/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -1845,12 +1845,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down Expand Up @@ -2034,12 +2034,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down
28 changes: 13 additions & 15 deletions src/main/java/com/stripe/model/Quote.java
Original file line number Diff line number Diff line change
Expand Up @@ -1470,13 +1470,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout
* Sessions</a> to collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax
* rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down Expand Up @@ -1610,13 +1609,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout
* Sessions</a> to collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax
* rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down Expand Up @@ -2538,12 +2536,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/stripe/model/QuotePreviewInvoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -1685,12 +1685,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down
13 changes: 6 additions & 7 deletions src/main/java/com/stripe/model/TaxRate.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@
import lombok.Setter;

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* Tax rates can be applied to <a href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>,
* <a href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to collect
* tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@Getter
@Setter
Expand Down Expand Up @@ -149,7 +148,7 @@ public class TaxRate extends ApiResource implements HasId, MetadataStore<TaxRate
String rateType;

/**
* <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US">ISO 3166-2 subdivision code</a>, without
* <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 subdivision code</a>, without
* country prefix. For example, &quot;NY&quot; for New York, United States.
*/
@SerializedName("state")
Expand Down
23 changes: 23 additions & 0 deletions src/main/java/com/stripe/model/billing/CreditGrant.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.stripe.param.billing.CreditGrantRetrieveParams;
import com.stripe.param.billing.CreditGrantUpdateParams;
import com.stripe.param.billing.CreditGrantVoidGrantParams;
import java.util.List;
import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.Getter;
Expand Down Expand Up @@ -459,6 +460,28 @@ public static class Scope extends StripeObject {
*/
@SerializedName("price_type")
String priceType;

/**
* The prices that credit grants can apply to. We currently only support {@code metered}
* prices. This refers to prices that have a <a
* href="https://docs.stripe.com/api/billing/meter">Billing Meter</a> attached to them.
*/
@SerializedName("prices")
List<CreditGrant.ApplicabilityConfig.Scope.Price> prices;

/**
* For more details about Price, please refer to the <a href="https://docs.stripe.com/api">API
* Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Price extends StripeObject implements HasId {
/** Unique identifier for the object. */
@Getter(onMethod_ = {@Override})
@SerializedName("id")
String id;
}
}
}

Expand Down
39 changes: 29 additions & 10 deletions src/main/java/com/stripe/model/checkout/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -2286,6 +2286,9 @@ public static class Card extends StripeObject {
@SerializedName("request_three_d_secure")
String requestThreeDSecure;

@SerializedName("restrictions")
Restrictions restrictions;

/**
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
*
Expand Down Expand Up @@ -2342,6 +2345,22 @@ public static class Installments extends StripeObject {
@SerializedName("enabled")
Boolean enabled;
}

/**
* For more details about Restrictions, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Restrictions extends StripeObject {
/**
* Specify the card brands to block in the Checkout Session. If a customer enters or selects
* a card belonging to a blocked brand, they can't complete the Session.
*/
@SerializedName("brands_blocked")
List<String> brandsBlocked;
}
}

/**
Expand Down Expand Up @@ -3660,12 +3679,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down Expand Up @@ -3827,12 +3846,12 @@ public static class Tax extends StripeObject {

/**
* Tax rates can be applied to <a
* href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
* href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
* href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
* Sessions</a> to collect tax.
* href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
* href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
* href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a> to
* collect tax.
*
* <p>Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>
* <p>Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>
*/
@SerializedName("rate")
TaxRate rate;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/tax/Calculation.java
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ public static class Jurisdiction extends StripeObject {
String level;

/**
* <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US">ISO 3166-2 subdivision code</a>,
* <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 subdivision code</a>,
* without country prefix. For example, &quot;NY&quot; for New York, United States.
*/
@SerializedName("state")
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/stripe/model/tax/CalculationLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ public static class Jurisdiction extends StripeObject {
String level;

/**
* <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US">ISO 3166-2 subdivision code</a>,
* without country prefix. For example, &quot;NY&quot; for New York, United States.
* <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 subdivision code</a>, without
* country prefix. For example, &quot;NY&quot; for New York, United States.
*/
@SerializedName("state")
String state;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/tax/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ public static class Jurisdiction extends StripeObject {
String level;

/**
* <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US">ISO 3166-2 subdivision code</a>,
* <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 subdivision code</a>,
* without country prefix. For example, &quot;NY&quot; for New York, United States.
*/
@SerializedName("state")
Expand Down
Loading

0 comments on commit b8d4e23

Please sign in to comment.