@rechargeapps/storefront-client 1.90.0 → 1.91.0
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/cjs/api/auth.js +1 -1
- package/dist/cjs/api/bundleData.js +1 -1
- package/dist/cjs/utils/request.js +1 -1
- package/dist/esm/api/auth.js +1 -1
- package/dist/esm/api/bundleData.js +1 -1
- package/dist/esm/utils/request.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/umd/recharge-client.min.js +10 -10
- package/package.json +1 -1
package/dist/cjs/api/auth.js
CHANGED
|
@@ -190,7 +190,7 @@ async function rechargeAdminRequest(method, url, { id, query, data, headers } =
|
|
|
190
190
|
...storefrontAccessToken ? { "X-Recharge-Storefront-Access-Token": storefrontAccessToken } : {},
|
|
191
191
|
...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
|
|
192
192
|
...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
|
|
193
|
-
"X-Recharge-Sdk-Version": "1.
|
|
193
|
+
"X-Recharge-Sdk-Version": "1.91.0",
|
|
194
194
|
...headers ? headers : {}
|
|
195
195
|
};
|
|
196
196
|
return request.request(method, `${rechargeBaseUrl}${url}`, { id, query, data, headers: reqHeaders });
|
|
@@ -16,7 +16,7 @@ async function loadFromOnlineStore(id, country_code) {
|
|
|
16
16
|
const { appName, appVersion } = options.getOptions();
|
|
17
17
|
const headers = {
|
|
18
18
|
"X-Recharge-Sdk-Fn": "loadFromOnlineStore",
|
|
19
|
-
"X-Recharge-Sdk-Version": "1.
|
|
19
|
+
"X-Recharge-Sdk-Version": "1.91.0",
|
|
20
20
|
...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
|
|
21
21
|
...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {}
|
|
22
22
|
};
|
|
@@ -51,7 +51,7 @@ async function rechargeApiRequest(method, url, { id, query, data, headers } = {}
|
|
|
51
51
|
"X-Recharge-Sdk-Fn": session.internalFnCall,
|
|
52
52
|
...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
|
|
53
53
|
...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
|
|
54
|
-
"X-Recharge-Sdk-Version": "1.
|
|
54
|
+
"X-Recharge-Sdk-Version": "1.91.0",
|
|
55
55
|
"X-Request-Id": session.internalRequestId,
|
|
56
56
|
...session.tmp_fn_identifier ? { "X-Recharge-Sdk-Fn-Identifier": session.tmp_fn_identifier } : {},
|
|
57
57
|
...headers ? headers : {}
|
package/dist/esm/api/auth.js
CHANGED
|
@@ -188,7 +188,7 @@ async function rechargeAdminRequest(method, url, { id, query, data, headers } =
|
|
|
188
188
|
...storefrontAccessToken ? { "X-Recharge-Storefront-Access-Token": storefrontAccessToken } : {},
|
|
189
189
|
...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
|
|
190
190
|
...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
|
|
191
|
-
"X-Recharge-Sdk-Version": "1.
|
|
191
|
+
"X-Recharge-Sdk-Version": "1.91.0",
|
|
192
192
|
...headers ? headers : {}
|
|
193
193
|
};
|
|
194
194
|
return request(method, `${rechargeBaseUrl}${url}`, { id, query, data, headers: reqHeaders });
|
|
@@ -14,7 +14,7 @@ async function loadFromOnlineStore(id, country_code) {
|
|
|
14
14
|
const { appName, appVersion } = getOptions();
|
|
15
15
|
const headers = {
|
|
16
16
|
"X-Recharge-Sdk-Fn": "loadFromOnlineStore",
|
|
17
|
-
"X-Recharge-Sdk-Version": "1.
|
|
17
|
+
"X-Recharge-Sdk-Version": "1.91.0",
|
|
18
18
|
...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
|
|
19
19
|
...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {}
|
|
20
20
|
};
|
|
@@ -49,7 +49,7 @@ async function rechargeApiRequest(method, url, { id, query, data, headers } = {}
|
|
|
49
49
|
"X-Recharge-Sdk-Fn": session.internalFnCall,
|
|
50
50
|
...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
|
|
51
51
|
...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
|
|
52
|
-
"X-Recharge-Sdk-Version": "1.
|
|
52
|
+
"X-Recharge-Sdk-Version": "1.91.0",
|
|
53
53
|
"X-Request-Id": session.internalRequestId,
|
|
54
54
|
...session.tmp_fn_identifier ? { "X-Recharge-Sdk-Fn-Identifier": session.tmp_fn_identifier } : {},
|
|
55
55
|
...headers ? headers : {}
|
package/dist/index.d.ts
CHANGED
|
@@ -1665,6 +1665,12 @@ interface CancelSubscriptionRequest {
|
|
|
1665
1665
|
cancellation_reason: string;
|
|
1666
1666
|
cancellation_reason_comments?: string;
|
|
1667
1667
|
send_email?: boolean;
|
|
1668
|
+
/**
|
|
1669
|
+
* Identifier of the cancellation prevention offer the customer was shown and declined, as returned by
|
|
1670
|
+
* `getCustomerSurveyOffers`. Records the declined offer against the cancellation.
|
|
1671
|
+
* @internal
|
|
1672
|
+
*/
|
|
1673
|
+
claim_id?: string;
|
|
1668
1674
|
}
|
|
1669
1675
|
interface CreateSubscriptionsRequest extends Omit<CreateSubscriptionRequest, 'plan_id'> {
|
|
1670
1676
|
}
|