You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** <p>Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.</p> */
1056
1056
readonly get: operations["GetProducts"];
1057
-
/** <p>Creates a new product object. To create a product for use with orders, see <a href="#create_product">Products</a>.</p> */
* @description The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
* @description Plans define the base price, currency, and billing cycle for subscriptions.
7961
-
* For example, you might have a $5/month plan
7962
-
* that provides limited access to your products, and a
7963
-
* $15/month plan that allows full access.
7965
+
* @description Plans define the base price, currency, and billing cycle for recurring purchases of products.
7966
+
* Products help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
7967
+
*
7968
+
* For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
7964
7969
*
7965
7970
* Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) and more about [products and plans](https://stripe.com/docs/billing/subscriptions/products-and-plans).
* @description Store representations of products you sell in `Product` objects, used in
8058
-
* conjunction with [SKUs](https://stripe.com/docs/api#skus). Products may be physical goods, to be shipped, or
8059
-
* digital.
8062
+
* @description Products describe the specific goods or services you offer to your customers.
8063
+
* For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product.
8064
+
* They can be used in conjuction with [SKUs](https://stripe.com/docs/api#skus) and [Plans](https://stripe.com/docs/api#plans) to configure pricing in Checkout and Subscriptions.
8060
8065
*
8061
-
* Documentation on `Product`s for use with `Subscription`s can be found at
* Related guide: [Define products and SKUs](https://stripe.com/docs/orders#define-products-skus)
8066
+
* Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) or accept [one-time payments with Checkout](https://stripe.com/docs/payments/checkout/client#create-products) and more about [Products and Plans](https://stripe.com/docs/billing/subscriptions/products-and-plans)
8065
8067
*/
8066
8068
readonly product: {
8067
8069
/** @description Whether the product is currently available for purchase. */
/** List of subscription items, each with an attached plan. */
17947
17953
readonly subscription_items?: readonly unknown[];
17948
-
/** If previewing an update to a subscription, this decides whether the preview will show the result of applying prorations or not. If set, one of `subscription_items` or `subscription`, and one of `subscription_items` or `subscription_trial_end` are required. */
17954
+
/** This field has been renamed to `subscription_proration_behavior`. `subscription_prorate=true` can be replaced with `subscription_proration_behavior=create_prorations` and `subscription_prorate=false` can be replaced with `subscription_proration_behavior=none`. */
17949
17955
readonly subscription_prorate?: boolean;
17950
17956
/**
17951
17957
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. Valid values are `create_prorations`, `none`, or `always_invoice`.
Copy file name to clipboardExpand all lines: test/v2/expected/stripe.ts
+25-19
Original file line number
Diff line number
Diff line change
@@ -333,7 +333,7 @@ export interface paths {
333
333
get: operations["GetBalanceTransactionsId"];
334
334
};
335
335
"/v1/billing_portal/sessions": {
336
-
/** <p>Creates a session of the Self-service Portal.</p> */
336
+
/** <p>Creates a session of the self-serve Portal.</p> */
337
337
post: operations["PostBillingPortalSessions"];
338
338
};
339
339
"/v1/bitcoin/receivers": {
@@ -1054,7 +1054,7 @@ export interface paths {
1054
1054
"/v1/products": {
1055
1055
/** <p>Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.</p> */
1056
1056
get: operations["GetProducts"];
1057
-
/** <p>Creates a new product object. To create a product for use with orders, see <a href="#create_product">Products</a>.</p> */
* @description The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
1600
+
* @enum {string}
1601
+
*/
1602
+
jcb_payments?: "active" | "inactive" | "pending";
1598
1603
/**
1599
1604
* @description The status of the legacy payments capability of the account.
* @description Plans define the base price, currency, and billing cycle for subscriptions.
7949
-
* For example, you might have a $5/month plan
7950
-
* that provides limited access to your products, and a
7951
-
* $15/month plan that allows full access.
7953
+
* @description Plans define the base price, currency, and billing cycle for recurring purchases of products.
7954
+
* Products help you track inventory or provisioning, and plans help you track pricing. Different physical goods or levels of service should be represented by products, and pricing options should be represented by plans. This approach lets you change prices without having to change your provisioning scheme.
7955
+
*
7956
+
* For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year.
7952
7957
*
7953
7958
* Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) and more about [products and plans](https://stripe.com/docs/billing/subscriptions/products-and-plans).
* @description Store representations of products you sell in `Product` objects, used in
8046
-
* conjunction with [SKUs](https://stripe.com/docs/api#skus). Products may be physical goods, to be shipped, or
8047
-
* digital.
8050
+
* @description Products describe the specific goods or services you offer to your customers.
8051
+
* For example, you might offer a Standard and Premium version of your goods or service; each version would be a separate Product.
8052
+
* They can be used in conjuction with [SKUs](https://stripe.com/docs/api#skus) and [Plans](https://stripe.com/docs/api#plans) to configure pricing in Checkout and Subscriptions.
8048
8053
*
8049
-
* Documentation on `Product`s for use with `Subscription`s can be found at
* Related guide: [Define products and SKUs](https://stripe.com/docs/orders#define-products-skus)
8054
+
* Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) or accept [one-time payments with Checkout](https://stripe.com/docs/payments/checkout/client#create-products) and more about [Products and Plans](https://stripe.com/docs/billing/subscriptions/products-and-plans)
8053
8055
*/
8054
8056
product: {
8055
8057
/** @description Whether the product is currently available for purchase. */
/** List of subscription items, each with an attached plan. */
17914
17920
subscription_items?: unknown[];
17915
-
/** If previewing an update to a subscription, this decides whether the preview will show the result of applying prorations or not. If set, one of `subscription_items` or `subscription`, and one of `subscription_items` or `subscription_trial_end` are required. */
17921
+
/** This field has been renamed to `subscription_proration_behavior`. `subscription_prorate=true` can be replaced with `subscription_proration_behavior=create_prorations` and `subscription_prorate=false` can be replaced with `subscription_proration_behavior=none`. */
17916
17922
subscription_prorate?: boolean;
17917
17923
/**
17918
17924
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. Valid values are `create_prorations`, `none`, or `always_invoice`.
0 commit comments