Skip to content

Commit

Permalink
Merge pull request #170 from internxt/feat/request-3DS-if-needed
Browse files Browse the repository at this point in the history
[_]: feat/request 3DS if needed
  • Loading branch information
fvsegarra authored Sep 12, 2023
2 parents 5f3c1ad + 6a560fd commit a0bc41b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 4 additions & 1 deletion src/drive/payments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<UserSubscription> {
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());
}

Expand Down

0 comments on commit a0bc41b

Please sign in to comment.