@salable/sdk 1.0.30 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,6 +56,10 @@ export interface CheckoutPostRequestBody extends Parsable {
56
56
  * The unique identifier for the owner who will purchase the subscription
57
57
  */
58
58
  owner?: string | null;
59
+ /**
60
+ * Controls whether Stripe always collects a payment method for subscription Checkout or only collects one when payment is due. If any plans contain one-off line items, the payment method collection will fallback to `always`. Defaults to `always`.
61
+ */
62
+ paymentMethodCollection?: CheckoutPostRequestBody_paymentMethodCollection | null;
59
63
  /**
60
64
  * The unique identifier of the plan to checkout
61
65
  */
@@ -87,6 +91,7 @@ export type CheckoutPostRequestBody_interval = (typeof CheckoutPostRequestBody_i
87
91
  */
88
92
  export interface CheckoutPostRequestBody_metadata extends AdditionalDataHolder, Parsable {
89
93
  }
94
+ export type CheckoutPostRequestBody_paymentMethodCollection = (typeof CheckoutPostRequestBody_paymentMethodCollectionObject)[keyof typeof CheckoutPostRequestBody_paymentMethodCollectionObject];
90
95
  export interface CheckoutPostResponse extends AdditionalDataHolder, Parsable {
91
96
  /**
92
97
  * The data property
@@ -388,6 +393,13 @@ export declare const CheckoutPostRequestBody_intervalObject: {
388
393
  readonly Month: "month";
389
394
  readonly Year: "year";
390
395
  };
396
+ /**
397
+ * Controls whether Stripe always collects a payment method for subscription Checkout or only collects one when payment is due. If any plans contain one-off line items, the payment method collection will fallback to `always`. Defaults to `always`.
398
+ */
399
+ export declare const CheckoutPostRequestBody_paymentMethodCollectionObject: {
400
+ readonly Always: "always";
401
+ readonly If_required: "if_required";
402
+ };
391
403
  /**
392
404
  * Metadata for all the requests in the request builder.
393
405
  */
@@ -124,7 +124,7 @@ export interface SubscriptionsPostRequestBody extends Parsable {
124
124
  */
125
125
  isPerpetual?: boolean | null;
126
126
  /**
127
- * An owner is an identifier used to scope Subscriptions, carts, and usage records in Salable. Typically a user ID for individual subscriptions or organization ID for team subscriptions.
127
+ * An owner is the tenant a subscription, cart, receipt, or usage record belongs to. Usually a team, organization, or workspace ID, or the user ID for single-user products.
128
128
  */
129
129
  owner?: string | null;
130
130
  /**
@@ -408,7 +408,7 @@ export interface CreateCartRequestSchema extends Parsable {
408
408
  */
409
409
  intervalCount?: number | null;
410
410
  /**
411
- * An owner is an identifier used to scope Subscriptions, carts, and usage records in Salable. Typically a user ID for individual subscriptions or organization ID for team subscriptions.
411
+ * An owner is the tenant a subscription, cart, receipt, or usage record belongs to. Usually a team, organization, or workspace ID, or the user ID for single-user products.
412
412
  */
413
413
  owner?: string | null;
414
414
  }
@@ -5980,6 +5980,10 @@ export interface GenerateCheckoutLinkRequestSchema extends Parsable {
5980
5980
  * The email property
5981
5981
  */
5982
5982
  email?: string | null;
5983
+ /**
5984
+ * Controls whether Stripe always collects a payment method for subscription Checkout or only collects one when payment is due. If any plans contain one-off line items, the payment method collection will fallback to `always`. Defaults to `always`.
5985
+ */
5986
+ paymentMethodCollection?: GenerateCheckoutLinkRequestSchema_paymentMethodCollection | null;
5983
5987
  /**
5984
5988
  * The successUrl property
5985
5989
  */
@@ -6000,6 +6004,7 @@ export interface GenerateCheckoutLinkRequestSchema_discounts extends Parsable {
6000
6004
  */
6001
6005
  promotionCode?: string | null;
6002
6006
  }
6007
+ export type GenerateCheckoutLinkRequestSchema_paymentMethodCollection = (typeof GenerateCheckoutLinkRequestSchema_paymentMethodCollectionObject)[keyof typeof GenerateCheckoutLinkRequestSchema_paymentMethodCollectionObject];
6003
6008
  export interface GenerateCheckoutLinkSchema extends AdditionalDataHolder, Parsable {
6004
6009
  /**
6005
6010
  * The data property
@@ -18151,6 +18156,13 @@ export declare const GenerateCheckoutLinkRequestSchema_cardPrefillPreferenceObje
18151
18156
  readonly Always: "always";
18152
18157
  readonly Choice: "choice";
18153
18158
  };
18159
+ /**
18160
+ * Controls whether Stripe always collects a payment method for subscription Checkout or only collects one when payment is due. If any plans contain one-off line items, the payment method collection will fallback to `always`. Defaults to `always`.
18161
+ */
18162
+ export declare const GenerateCheckoutLinkRequestSchema_paymentMethodCollectionObject: {
18163
+ readonly Always: "always";
18164
+ readonly If_required: "if_required";
18165
+ };
18154
18166
  export declare const SavePlanRequestSchema_lineItems_billingSchemeObject: {
18155
18167
  readonly Fixed: "fixed";
18156
18168
  readonly Per_unit: "per_unit";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salable/sdk",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",