@salable/sdk 1.0.31 → 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.
- package/dist/index.es.js +2 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/sdk/api/checkout/index.d.ts +12 -0
- package/dist/sdk/models/index.d.ts +12 -0
- package/package.json +1 -1
|
@@ -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
|
|
@@ -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";
|