From 6a560fd55e5f120269e3549ef60602aaf8ebc828 Mon Sep 17 00:00:00 2001 From: Xavi <77491413+masterprog-cmd@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:13:11 +0200 Subject: [PATCH] feat: request 3DS if needed when updating subscription --- package.json | 2 +- src/drive/payments/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 34202ac..7fa7997 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@internxt/sdk", - "version": "1.4.49", + "version": "1.4.50", "description": "An sdk for interacting with Internxt's services", "repository": { "type": "git", diff --git a/src/drive/payments/index.ts b/src/drive/payments/index.ts index b332caa..69ad6db 100644 --- a/src/drive/payments/index.ts +++ b/src/drive/payments/index.ts @@ -98,7 +98,10 @@ export class Payments { return this.client.post('/licenses', { code: payload.code, provider: payload.provider }, this.headers()); } - public updateSubscriptionPrice(priceId: string, couponCode?: string): Promise { + public updateSubscriptionPrice( + priceId: string, + couponCode?: string, + ): Promise<{ userSubscription: UserSubscription; request3DSecure: boolean; clientSecret: string }> { return this.client.put('/subscriptions', { price_id: priceId, couponCode: couponCode }, this.headers()); }