Skip to content

Commit

Permalink
Merge pull request #167 from internxt/feat/update-subscription-with-c…
Browse files Browse the repository at this point in the history
…oupon-code

[PB-692]: feat/allow coupon code in updateSubscriptionPrice
  • Loading branch information
masterprog-cmd authored Sep 8, 2023
2 parents 2160209 + ed2f856 commit 7ad8e33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.46",
"version": "1.4.47",
"description": "An sdk for interacting with Internxt's services",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/drive/payments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export class Payments {
return this.client.post('/licenses', { code: payload.code, provider: payload.provider }, this.headers());
}

public updateSubscriptionPrice(priceId: string): Promise<UserSubscription> {
return this.client.put('/subscriptions', { price_id: priceId }, this.headers());
public updateSubscriptionPrice(priceId: string, couponCode?: string): Promise<UserSubscription> {
return this.client.put('/subscriptions', { price_id: priceId, couponCode: couponCode }, this.headers());
}

public cancelSubscription(): Promise<void> {
Expand Down

0 comments on commit 7ad8e33

Please sign in to comment.