shred-api-client 2.4.5 → 2.4.6
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.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -582,7 +582,7 @@ interface IAPI$9 {
|
|
|
582
582
|
pause: (ctx: Context) => Promise<boolean>;
|
|
583
583
|
resume: (ctx: Context) => Promise<boolean>;
|
|
584
584
|
updatePlan: (ctx: Context, planId: string) => Promise<boolean>;
|
|
585
|
-
createCheckout: (planId: string | null, ctx: Context) => Promise<string>;
|
|
585
|
+
createCheckout: (planId: string | null, ctx: Context, callbackUrl?: string) => Promise<string>;
|
|
586
586
|
getSubscriptionsSummary: (ctx: Context) => Promise<SubscriptionSummary[]>;
|
|
587
587
|
}
|
|
588
588
|
declare const Endpoints$8: {
|
package/dist/index.js
CHANGED
|
@@ -4600,13 +4600,13 @@ var SubscriptionAPI = class {
|
|
|
4600
4600
|
);
|
|
4601
4601
|
return data;
|
|
4602
4602
|
}
|
|
4603
|
-
async createCheckout(planId, ctx) {
|
|
4603
|
+
async createCheckout(planId, ctx, callbackUrl) {
|
|
4604
4604
|
const endpointInfo = subscription_exports.Endpoints.Checkout;
|
|
4605
4605
|
const data = await this.clientHTTP.makeRequest(
|
|
4606
4606
|
this.env,
|
|
4607
4607
|
endpointInfo.uri,
|
|
4608
4608
|
endpointInfo.method,
|
|
4609
|
-
{ planId },
|
|
4609
|
+
{ planId, callbackUrl },
|
|
4610
4610
|
ctx
|
|
4611
4611
|
);
|
|
4612
4612
|
return data.url;
|