Skip to content

Commit 9ddcb08

Browse files
authored
Merge pull request #17 from updatedotdev/patch/checkout-options
Patch/checkout options
2 parents 4b8abe0 + d5708de commit 9ddcb08

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@updatedev/js",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "Update JavaScript SDK",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

src/UpdateBilling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class UpdateBillingClient {
145145

146146
async createCheckoutSession(
147147
id: string,
148-
options?: CreateCheckoutSessionOptions
148+
options: CreateCheckoutSessionOptions
149149
): Promise<CreateCheckoutSession> {
150150
if (!this.hasSessionToken) {
151151
console.warn(

src/types/billing.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,6 @@ export type UpdateSubscriptionResponse = {
9191
};
9292

9393
export type CreateCheckoutSessionOptions = {
94-
redirect_url?: string;
94+
redirect_url: string;
95+
quantity?: number;
9596
};

0 commit comments

Comments
 (0)