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

Commit 1b1435e

Browse files
feat: added update for subscriptions settings (#923)
1 parent 6e77cb8 commit 1b1435e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/endpoints/settings.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ class Settings {
4545
return this.request.send(`${this.endpoint}/subscriptions`, 'GET')
4646
}
4747

48+
UpdateSubscriptions(body) {
49+
return this.request.send(`${this.endpoint}/subscriptions`, 'PUT', body)
50+
}
51+
4852
Promotions() {
4953
return this.request.send(`${this.endpoint}/promotions`, 'GET')
5054
}

src/types/settings.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ export interface SettingsEndpoint {
115115
*/
116116
Subscriptions(): Promise<Resource<SubscriptionSettings>>
117117

118+
/**
119+
* Update Subscriptions Settings
120+
* Description: You can update the Subscriptions Settings using this endpoint
121+
*/
122+
UpdateSubscriptions(body: SubscriptionSettings): Promise<Resource<SubscriptionSettings>>
123+
118124
/**
119125
* Get Promotions Settings
120126
* Description: You can get the Promotions Settings using this endpoint

0 commit comments

Comments
 (0)