@salable/sdk 1.0.38 → 1.0.40
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.
|
@@ -9,7 +9,7 @@ export interface CheckoutPostRequestBody extends Parsable {
|
|
|
9
9
|
*/
|
|
10
10
|
automaticTax?: boolean | null;
|
|
11
11
|
/**
|
|
12
|
-
* The URL to redirect the customer to if they cancel the checkout. If not provided, falls back to the product default setting.
|
|
12
|
+
* The URL to redirect the customer to if they cancel the checkout. If not provided, falls back to the product default setting, then the Salable-hosted cancel page.
|
|
13
13
|
*/
|
|
14
14
|
cancelUrl?: string | null;
|
|
15
15
|
/**
|
|
@@ -65,7 +65,7 @@ export interface CheckoutPostRequestBody extends Parsable {
|
|
|
65
65
|
*/
|
|
66
66
|
planId?: string | null;
|
|
67
67
|
/**
|
|
68
|
-
* The URL to redirect the customer to after successful payment. If not provided, falls back to the product default setting.
|
|
68
|
+
* The URL to redirect the customer to after successful payment. If not provided, falls back to the product default setting, then the Salable-hosted success page.
|
|
69
69
|
*/
|
|
70
70
|
successUrl?: string | null;
|
|
71
71
|
/**
|
|
@@ -5,7 +5,7 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
|
|
|
5
5
|
*/
|
|
6
6
|
export interface ItemsRequestBuilder extends BaseRequestBuilder<ItemsRequestBuilder> {
|
|
7
7
|
/**
|
|
8
|
-
* Add, remove or replace items on a subscription.
|
|
8
|
+
* Add, remove or replace items on a subscription. Key quantity metadata by line item slug.
|
|
9
9
|
* @param body The request body
|
|
10
10
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
11
|
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
@@ -18,7 +18,7 @@ export interface ItemsRequestBuilder extends BaseRequestBuilder<ItemsRequestBuil
|
|
|
18
18
|
*/
|
|
19
19
|
put(body: UpdateSubscriptionItemsRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
20
20
|
/**
|
|
21
|
-
* Add, remove or replace items on a subscription.
|
|
21
|
+
* Add, remove or replace items on a subscription. Key quantity metadata by line item slug.
|
|
22
22
|
* @param body The request body
|
|
23
23
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
24
24
|
* @returns {RequestInformation}
|
|
@@ -17787,7 +17787,7 @@ export interface UpdateSubscriptionItemsRequestSchema_itemsMember2 extends Parsa
|
|
|
17787
17787
|
*/
|
|
17788
17788
|
grantee?: string | null;
|
|
17789
17789
|
/**
|
|
17790
|
-
* Per-line-item quantity overrides, keyed by line item
|
|
17790
|
+
* Per-line-item quantity overrides, keyed by line item slug. (Deprecated: line item IDs are also accepted for existing integrations; new integrations should use slugs.)
|
|
17791
17791
|
*/
|
|
17792
17792
|
metadata?: UpdateSubscriptionItemsRequestSchema_itemsMember2_metadata | null;
|
|
17793
17793
|
/**
|
|
@@ -17796,7 +17796,7 @@ export interface UpdateSubscriptionItemsRequestSchema_itemsMember2 extends Parsa
|
|
|
17796
17796
|
planId?: string | null;
|
|
17797
17797
|
}
|
|
17798
17798
|
/**
|
|
17799
|
-
* Per-line-item quantity overrides, keyed by line item
|
|
17799
|
+
* Per-line-item quantity overrides, keyed by line item slug. (Deprecated: line item IDs are also accepted for existing integrations; new integrations should use slugs.)
|
|
17800
17800
|
*/
|
|
17801
17801
|
export interface UpdateSubscriptionItemsRequestSchema_itemsMember2_metadata extends AdditionalDataHolder, Parsable {
|
|
17802
17802
|
}
|
|
@@ -17806,7 +17806,7 @@ export interface UpdateSubscriptionItemsRequestSchema_itemsMember3 extends Parsa
|
|
|
17806
17806
|
*/
|
|
17807
17807
|
action?: string | null;
|
|
17808
17808
|
/**
|
|
17809
|
-
* Per-line-item quantity overrides, keyed by line item
|
|
17809
|
+
* Per-line-item quantity overrides, keyed by line item slug. (Deprecated: line item IDs are also accepted for existing integrations; new integrations should use slugs.)
|
|
17810
17810
|
*/
|
|
17811
17811
|
metadata?: UpdateSubscriptionItemsRequestSchema_itemsMember3_metadata | null;
|
|
17812
17812
|
/**
|
|
@@ -17819,7 +17819,7 @@ export interface UpdateSubscriptionItemsRequestSchema_itemsMember3 extends Parsa
|
|
|
17819
17819
|
planId?: string | null;
|
|
17820
17820
|
}
|
|
17821
17821
|
/**
|
|
17822
|
-
* Per-line-item quantity overrides, keyed by line item
|
|
17822
|
+
* Per-line-item quantity overrides, keyed by line item slug. (Deprecated: line item IDs are also accepted for existing integrations; new integrations should use slugs.)
|
|
17823
17823
|
*/
|
|
17824
17824
|
export interface UpdateSubscriptionItemsRequestSchema_itemsMember3_metadata extends AdditionalDataHolder, Parsable {
|
|
17825
17825
|
}
|