Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
feat: added update for subscriptions settings (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
rostyk-kanafotskyy authored Apr 1, 2024
1 parent 6e77cb8 commit 1b1435e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/endpoints/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class Settings {
return this.request.send(`${this.endpoint}/subscriptions`, 'GET')
}

UpdateSubscriptions(body) {
return this.request.send(`${this.endpoint}/subscriptions`, 'PUT', body)
}

Promotions() {
return this.request.send(`${this.endpoint}/promotions`, 'GET')
}
Expand Down
6 changes: 6 additions & 0 deletions src/types/settings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ export interface SettingsEndpoint {
*/
Subscriptions(): Promise<Resource<SubscriptionSettings>>

/**
* Update Subscriptions Settings
* Description: You can update the Subscriptions Settings using this endpoint
*/
UpdateSubscriptions(body: SubscriptionSettings): Promise<Resource<SubscriptionSettings>>

/**
* Get Promotions Settings
* Description: You can get the Promotions Settings using this endpoint
Expand Down

0 comments on commit 1b1435e

Please sign in to comment.