arky-sdk 0.3.37 → 0.3.39
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.cjs +2 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -10
- package/dist/index.js.map +1 -1
- package/dist/types.cjs +7 -7
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +6 -8
- package/dist/types.d.ts +6 -8
- package/dist/types.js +7 -7
- package/dist/types.js.map +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -312,13 +312,6 @@ var createBusinessApi = (apiConfig) => {
|
|
|
312
312
|
params: { immediately: params.immediately || false }
|
|
313
313
|
});
|
|
314
314
|
},
|
|
315
|
-
async reactivateSubscription(params, options) {
|
|
316
|
-
return apiConfig.httpClient.post(
|
|
317
|
-
`/v1/businesses/${apiConfig.businessId}/subscription/reactivate`,
|
|
318
|
-
params,
|
|
319
|
-
options
|
|
320
|
-
);
|
|
321
|
-
},
|
|
322
315
|
async createPortalSession(params, options) {
|
|
323
316
|
return apiConfig.httpClient.post(
|
|
324
317
|
`/v1/businesses/${apiConfig.businessId}/subscription/portal`,
|
|
@@ -850,9 +843,8 @@ var createCmsApi = (apiConfig) => {
|
|
|
850
843
|
return apiConfig.httpClient.post(
|
|
851
844
|
`/v1/businesses/${apiConfig.businessId}/collections/${params.collectionId}/subscribe`,
|
|
852
845
|
{
|
|
853
|
-
email: params.email,
|
|
854
846
|
market: apiConfig.market,
|
|
855
|
-
|
|
847
|
+
...params
|
|
856
848
|
},
|
|
857
849
|
options
|
|
858
850
|
);
|
|
@@ -1406,7 +1398,7 @@ function createPaymentForCheckout(subtotalMinor, marketId, currency, paymentMeth
|
|
|
1406
1398
|
tax,
|
|
1407
1399
|
total,
|
|
1408
1400
|
promoCodeId,
|
|
1409
|
-
|
|
1401
|
+
type: paymentMethod
|
|
1410
1402
|
};
|
|
1411
1403
|
}
|
|
1412
1404
|
|