@salable/sdk 1.0.31 → 1.0.33

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
  */
@@ -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
@@ -10213,6 +10218,10 @@ export interface GetPlanListSchema_data_lineItems_data extends AdditionalDataHol
10213
10218
  * The createdAt property
10214
10219
  */
10215
10220
  createdAt?: string | null;
10221
+ /**
10222
+ * Whether this line item has been purchased and has associated subscriptions/receipts.
10223
+ */
10224
+ hasBeenPurchased?: boolean | null;
10216
10225
  /**
10217
10226
  * The id property
10218
10227
  */
@@ -18151,6 +18160,13 @@ export declare const GenerateCheckoutLinkRequestSchema_cardPrefillPreferenceObje
18151
18160
  readonly Always: "always";
18152
18161
  readonly Choice: "choice";
18153
18162
  };
18163
+ /**
18164
+ * 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`.
18165
+ */
18166
+ export declare const GenerateCheckoutLinkRequestSchema_paymentMethodCollectionObject: {
18167
+ readonly Always: "always";
18168
+ readonly If_required: "if_required";
18169
+ };
18154
18170
  export declare const SavePlanRequestSchema_lineItems_billingSchemeObject: {
18155
18171
  readonly Fixed: "fixed";
18156
18172
  readonly Per_unit: "per_unit";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salable/sdk",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",