@paynow-gg/typescript-sdk 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Generated from OpenAPI spec. Do not edit by hand.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ManagementClient = exports.WebhooksResource = exports.UpsellSettingsResource = exports.TrialsResource = exports.TierGroupsResource = exports.TagsResource = exports.SubscriptionsResource = exports.StoreResource = exports.SalesResource = exports.RegionalPricingResource = exports.ProductsResource = exports.ProductDependentMigrationsResource = exports.PaymentSettingsResource = exports.PaymentsResource = exports.PaymentMethodTypesResource = exports.OrdersResource = exports.NavlinksResource = exports.MarketingResource = exports.InvoicesResource = exports.GlobalCommandsResource = exports.GiftcardsResource = exports.GameServersResource = exports.DownloadableFilesResource = exports.DiscordResource = exports.DeliveryResource = exports.DataMigrationsResource = exports.DashboardResource = exports.CustomVariablesResource = exports.CustomersResource = exports.CustomerPortalSessionsResource = exports.CouponsResource = exports.CheckoutResource = exports.BansResource = exports.AffiliateLinksResource = void 0;
4
+ exports.ManagementClient = exports.WebstoreResource = exports.WebhooksResource = exports.UpsellSettingsResource = exports.TrialsResource = exports.TierGroupsResource = exports.TagsResource = exports.SubscriptionsResource = exports.StoreResource = exports.SalesResource = exports.RolesResource = exports.RegionalPricingResource = exports.ProductsResource = exports.ProductDependentMigrationsResource = exports.PaymentSettingsResource = exports.PaymentsResource = exports.PaymentMethodTypesResource = exports.OrdersResource = exports.NavlinksResource = exports.MarketingResource = exports.InvoicesResource = exports.InvitesResource = exports.GlobalCommandsResource = exports.GiftcardsResource = exports.GameServersResource = exports.DownloadableFilesResource = exports.DiscordResource = exports.DeliveryResource = exports.DataMigrationsResource = exports.DashboardResource = exports.CustomVariablesResource = exports.CustomersResource = exports.CustomerPortalSessionsResource = exports.CouponsResource = exports.CheckoutStyleResource = exports.CheckoutResource = exports.BillingResource = exports.BansResource = exports.AffiliateLinksResource = void 0;
5
5
  exports.createManagementClient = createManagementClient;
6
6
  const http_js_1 = require("../../runtime/http.js");
7
7
  class AffiliateLinksResource {
@@ -64,6 +64,92 @@ class BansResource {
64
64
  }
65
65
  }
66
66
  exports.BansResource = BansResource;
67
+ class BillingResource {
68
+ http;
69
+ constructor(http) {
70
+ this.http = http;
71
+ }
72
+ /**
73
+ * Change subscription payment method
74
+ *
75
+ * Starts a session for the store owner to replace the card the subscription is billed to.
76
+ */
77
+ changeSubscriptionPaymentMethod(opts) {
78
+ return this.http.request("POST", "/v1/stores/{storeId}/billing/payment-method/change", { opts });
79
+ }
80
+ /**
81
+ * Change subscription plan
82
+ *
83
+ * Moves the store onto a different plan. When the change needs paying for, the response
84
+ * carries a 'session_url' the store owner must complete.
85
+ */
86
+ changeSubscriptionPlan(body, opts) {
87
+ return this.http.request("POST", "/v1/stores/{storeId}/billing/plans/change", { body, opts });
88
+ }
89
+ /**
90
+ * Continue current subscription
91
+ *
92
+ * Cancels a pending downgrade or cancellation, keeping the store on its current plan.
93
+ */
94
+ continueCurrentSubscription(opts) {
95
+ return this.http.request("POST", "/v1/stores/{storeId}/billing/plans/continue", { opts });
96
+ }
97
+ /**
98
+ * Get available plans
99
+ *
100
+ * Retrieves the plans a store can subscribe to.
101
+ */
102
+ getPublicPlans(opts) {
103
+ return this.http.request("GET", "/v1/stores/{storeId}/billing/plans", {
104
+ opts,
105
+ });
106
+ }
107
+ /**
108
+ * Get billing details
109
+ *
110
+ * Retrieves the billing address and tax details the store is invoiced under.
111
+ */
112
+ getStoreBillingDetails(opts) {
113
+ return this.http.request("GET", "/v1/stores/{storeId}/billing/details", { opts });
114
+ }
115
+ /**
116
+ * Get billing status
117
+ *
118
+ * Retrieves the store's plan, limits, feature flags and subscription state.
119
+ */
120
+ getStoreBillingStatus(opts) {
121
+ return this.http.request("GET", "/v1/stores/{storeId}/billing/status", {
122
+ opts,
123
+ });
124
+ }
125
+ /**
126
+ * Get subscription invoices
127
+ *
128
+ * Retrieves the invoices raised against the store's own subscription.
129
+ */
130
+ getStoreInvoices(query, opts) {
131
+ return this.http.request("GET", "/v1/stores/{storeId}/billing/invoices", { query, opts });
132
+ }
133
+ /**
134
+ * Get invoice URL
135
+ *
136
+ * Issues a fresh link to the hosted invoice. Prefer this over the 'invoice_url' carried by
137
+ * the invoice list, which is recorded once and may have expired.
138
+ * @param invoiceId The ID of the invoice to link to.
139
+ */
140
+ getStoreInvoiceUrl(invoiceId, opts) {
141
+ return this.http.request("GET", "/v1/stores/{storeId}/billing/invoices/{invoiceId}/url", { path: { invoiceId }, opts });
142
+ }
143
+ /**
144
+ * Update billing details
145
+ *
146
+ * Replaces the billing address and tax details the store is invoiced under.
147
+ */
148
+ updateStoreBillingDetails(body, opts) {
149
+ return this.http.request("PUT", "/v1/stores/{storeId}/billing/details", { body, opts });
150
+ }
151
+ }
152
+ exports.BillingResource = BillingResource;
67
153
  class CheckoutResource {
68
154
  http;
69
155
  constructor(http) {
@@ -80,6 +166,58 @@ class CheckoutResource {
80
166
  }
81
167
  }
82
168
  exports.CheckoutResource = CheckoutResource;
169
+ class CheckoutStyleResource {
170
+ http;
171
+ constructor(http) {
172
+ this.http = http;
173
+ }
174
+ /**
175
+ * Delete checkout background image
176
+ *
177
+ * Removes the hosted checkout background image for the store.
178
+ */
179
+ deleteStoreCheckoutStyleBackgroundImage(opts) {
180
+ return this.http.request("DELETE", "/v1/stores/{storeId}/checkout-style/background-image", { opts });
181
+ }
182
+ /**
183
+ * Finish checkout background image upload
184
+ *
185
+ * Finishes an upload of the hosted checkout background image.
186
+ */
187
+ finishStoreCheckoutStyleBackgroundImageUpload(body, opts) {
188
+ return this.http.request("POST", "/v1/stores/{storeId}/checkout-style/background-image/upload_finish", { body, opts });
189
+ }
190
+ /**
191
+ * Get store checkout style
192
+ *
193
+ * Retrieves the checkout styling for the store.
194
+ */
195
+ getStoreCheckoutStyle(opts) {
196
+ return this.http.request("GET", "/v1/stores/{storeId}/checkout-style", {
197
+ opts,
198
+ });
199
+ }
200
+ /**
201
+ * Get upload URL for checkout background image
202
+ *
203
+ * Gets a pre-signed upload URL for uploading the hosted checkout background image.
204
+ */
205
+ getStoreCheckoutStyleBackgroundImageUploadUrl(opts) {
206
+ return this.http.request("GET", "/v1/stores/{storeId}/checkout-style/background-image/upload_url", { opts });
207
+ }
208
+ /**
209
+ * Update store checkout style
210
+ *
211
+ * Updates the stores checkout style.
212
+ */
213
+ updateStoreCheckoutStyle(body, opts) {
214
+ return this.http.request("PATCH", "/v1/stores/{storeId}/checkout-style", {
215
+ body,
216
+ opts,
217
+ });
218
+ }
219
+ }
220
+ exports.CheckoutStyleResource = CheckoutStyleResource;
83
221
  class CouponsResource {
84
222
  http;
85
223
  constructor(http) {
@@ -648,6 +786,51 @@ class GlobalCommandsResource {
648
786
  }
649
787
  }
650
788
  exports.GlobalCommandsResource = GlobalCommandsResource;
789
+ class InvitesResource {
790
+ http;
791
+ constructor(http) {
792
+ this.http = http;
793
+ }
794
+ /**
795
+ * Cancel an invite
796
+ *
797
+ * Cancels a pending store member invite.
798
+ */
799
+ cancelInvite(inviteId, opts) {
800
+ return this.http.request("DELETE", "/v1/stores/{storeId}/invites/{inviteId}", {
801
+ path: { inviteId },
802
+ opts,
803
+ });
804
+ }
805
+ /**
806
+ * Create an invite
807
+ *
808
+ * Invites a user to join the store with the specified role.
809
+ */
810
+ createInvite(body, opts) {
811
+ return this.http.request("POST", "/v1/stores/{storeId}/invites", { body, opts });
812
+ }
813
+ /**
814
+ * Get an invite
815
+ *
816
+ * Retrieves a single store member invite.
817
+ */
818
+ getInvite(inviteId, opts) {
819
+ return this.http.request("GET", "/v1/stores/{storeId}/invites/{inviteId}", {
820
+ path: { inviteId },
821
+ opts,
822
+ });
823
+ }
824
+ /**
825
+ * Get invites
826
+ *
827
+ * Retrieves all store member invites for the specified store.
828
+ */
829
+ getInvites(opts) {
830
+ return this.http.request("GET", "/v1/stores/{storeId}/invites", { opts });
831
+ }
832
+ }
833
+ exports.InvitesResource = InvitesResource;
651
834
  class InvoicesResource {
652
835
  http;
653
836
  constructor(http) {
@@ -981,6 +1164,25 @@ class ProductsResource {
981
1164
  opts,
982
1165
  });
983
1166
  }
1167
+ /**
1168
+ * Delete product image
1169
+ *
1170
+ * Deletes the image for a product.
1171
+ */
1172
+ deleteProductImage(productId, opts) {
1173
+ return this.http.request("DELETE", "/v1/stores/{storeId}/products/{productId}/image", {
1174
+ path: { productId },
1175
+ opts,
1176
+ });
1177
+ }
1178
+ /**
1179
+ * Finish product image upload
1180
+ *
1181
+ * Finishes an image upload for a product, attaching the uploaded image to the product.
1182
+ */
1183
+ finishProductImageUpload(productId, body, opts) {
1184
+ return this.http.request("POST", "/v1/stores/{storeId}/products/{productId}/image-upload-finish", { path: { productId }, body, opts });
1185
+ }
984
1186
  /**
985
1187
  * Get product
986
1188
  *
@@ -994,6 +1196,14 @@ class ProductsResource {
994
1196
  opts,
995
1197
  });
996
1198
  }
1199
+ /**
1200
+ * Get upload URL for product image
1201
+ *
1202
+ * Gets a pre-signed upload URL for uploading an image to a product.
1203
+ */
1204
+ getProductImageUploadUrl(productId, opts) {
1205
+ return this.http.request("GET", "/v1/stores/{storeId}/products/{productId}/image-upload-url", { path: { productId }, opts });
1206
+ }
997
1207
  /**
998
1208
  * Get products
999
1209
  *
@@ -1051,6 +1261,41 @@ class RegionalPricingResource {
1051
1261
  }
1052
1262
  }
1053
1263
  exports.RegionalPricingResource = RegionalPricingResource;
1264
+ class RolesResource {
1265
+ http;
1266
+ constructor(http) {
1267
+ this.http = http;
1268
+ }
1269
+ createRole(body, opts) {
1270
+ return this.http.request("POST", "/v1/stores/{storeId}/roles", { body, opts });
1271
+ }
1272
+ deleteRole(roleId, opts) {
1273
+ return this.http.request("DELETE", "/v1/stores/{storeId}/roles/{roleId}", {
1274
+ path: { roleId },
1275
+ opts,
1276
+ });
1277
+ }
1278
+ getAvailablePermissions(opts) {
1279
+ return this.http.request("GET", "/v1/stores/{storeId}/roles/permissions", { opts });
1280
+ }
1281
+ getRole(roleId, opts) {
1282
+ return this.http.request("GET", "/v1/stores/{storeId}/roles/{roleId}", {
1283
+ path: { roleId },
1284
+ opts,
1285
+ });
1286
+ }
1287
+ getRoles(opts) {
1288
+ return this.http.request("GET", "/v1/stores/{storeId}/roles", { opts });
1289
+ }
1290
+ updateRole(roleId, body, opts) {
1291
+ return this.http.request("PATCH", "/v1/stores/{storeId}/roles/{roleId}", {
1292
+ path: { roleId },
1293
+ body,
1294
+ opts,
1295
+ });
1296
+ }
1297
+ }
1298
+ exports.RolesResource = RolesResource;
1054
1299
  class SalesResource {
1055
1300
  http;
1056
1301
  constructor(http) {
@@ -1103,6 +1348,25 @@ class StoreResource {
1103
1348
  constructor(http) {
1104
1349
  this.http = http;
1105
1350
  }
1351
+ /**
1352
+ * Delete store logo
1353
+ *
1354
+ * Deletes a logo for a store.
1355
+ */
1356
+ deleteStoreLogo(query, opts) {
1357
+ return this.http.request("DELETE", "/v1/stores/{storeId}/logo", { query, opts });
1358
+ }
1359
+ /**
1360
+ * Finish store logo upload
1361
+ *
1362
+ * Finishes a logo upload for a store, attaching the uploaded image to the store.
1363
+ */
1364
+ finishStoreLogoUpload(body, opts) {
1365
+ return this.http.request("POST", "/v1/stores/{storeId}/logo-upload-finish", {
1366
+ body,
1367
+ opts,
1368
+ });
1369
+ }
1106
1370
  /**
1107
1371
  * Get a store
1108
1372
  *
@@ -1111,6 +1375,14 @@ class StoreResource {
1111
1375
  getStore(opts) {
1112
1376
  return this.http.request("GET", "/v1/stores/{storeId}", { opts });
1113
1377
  }
1378
+ /**
1379
+ * Get upload URL for store logo
1380
+ *
1381
+ * Gets a pre-signed upload URL for uploading a logo to a store.
1382
+ */
1383
+ getStoreLogoUploadUrl(opts) {
1384
+ return this.http.request("GET", "/v1/stores/{storeId}/logo-upload-url", { opts });
1385
+ }
1114
1386
  /**
1115
1387
  * Get store member permissions
1116
1388
  *
@@ -1493,13 +1765,143 @@ class WebhooksResource {
1493
1765
  }
1494
1766
  }
1495
1767
  exports.WebhooksResource = WebhooksResource;
1768
+ class WebstoreResource {
1769
+ http;
1770
+ constructor(http) {
1771
+ this.http = http;
1772
+ }
1773
+ createWebstoreModule(body, opts) {
1774
+ return this.http.request("PUT", "/v1/webstores/{storeId}/modules", {
1775
+ body,
1776
+ opts,
1777
+ });
1778
+ }
1779
+ createWebstoreTemplate(body, opts) {
1780
+ return this.http.request("PUT", "/v1/webstores/{storeId}/templates", {
1781
+ body,
1782
+ opts,
1783
+ });
1784
+ }
1785
+ createWebstoreTemplateFile(templateId, body, opts) {
1786
+ return this.http.request("PUT", "/v1/webstores/{storeId}/templates/{templateId}/files", { path: { templateId }, body, opts });
1787
+ }
1788
+ createWebstoreTemplateVariable(templateId, body, opts) {
1789
+ return this.http.request("PUT", "/v1/webstores/{storeId}/templates/{templateId}/variables", { path: { templateId }, body, opts });
1790
+ }
1791
+ deleteWebstoreCustomDomain(opts) {
1792
+ return this.http.request("DELETE", "/v1/webstores/{storeId}/custom-domain", { opts });
1793
+ }
1794
+ deleteWebstoreModule(moduleId, opts) {
1795
+ return this.http.request("DELETE", "/v1/webstores/{storeId}/modules/{moduleId}", {
1796
+ path: { moduleId },
1797
+ opts,
1798
+ });
1799
+ }
1800
+ deleteWebstoreTemplate(templateId, opts) {
1801
+ return this.http.request("DELETE", "/v1/webstores/{storeId}/templates/{templateId}", {
1802
+ path: { templateId },
1803
+ opts,
1804
+ });
1805
+ }
1806
+ deleteWebstoreTemplateFile(templateId, templateFileId, opts) {
1807
+ return this.http.request("DELETE", "/v1/webstores/{storeId}/templates/{templateId}/files/{templateFileId}", { path: { templateId, templateFileId }, opts });
1808
+ }
1809
+ deleteWebstoreTemplateVariable(templateId, templateVariableId, opts) {
1810
+ return this.http.request("DELETE", "/v1/webstores/{storeId}/templates/{templateId}/variables/{templateVariableId}", { path: { templateId, templateVariableId }, opts });
1811
+ }
1812
+ downloadWebstoreTemplateUpdate(templateId, opts) {
1813
+ return this.http.request("POST", "/v1/webstores/{storeId}/templates/{templateId}/update", { path: { templateId }, opts });
1814
+ }
1815
+ duplicateWebstoreTemplate(templateId, opts) {
1816
+ return this.http.request("POST", "/v1/webstores/{storeId}/templates/{templateId}/duplicate", { path: { templateId }, opts });
1817
+ }
1818
+ finishWebstoreTemplateUpload(templateId, opts) {
1819
+ return this.http.request("POST", "/v1/webstores/{storeId}/templates/{templateId}/upload_finish", { path: { templateId }, opts });
1820
+ }
1821
+ getWebstore(opts) {
1822
+ return this.http.request("GET", "/v1/webstores/{storeId}", { opts });
1823
+ }
1824
+ getWebstoreCustomDomain(opts) {
1825
+ return this.http.request("GET", "/v1/webstores/{storeId}/custom-domain", { opts });
1826
+ }
1827
+ getWebstoreModules(opts) {
1828
+ return this.http.request("GET", "/v1/webstores/{storeId}/modules", {
1829
+ opts,
1830
+ });
1831
+ }
1832
+ getWebstoreTemplate(templateId, query, opts) {
1833
+ return this.http.request("GET", "/v1/webstores/{storeId}/templates/{templateId}", { path: { templateId }, query, opts });
1834
+ }
1835
+ getWebstoreTemplateArchive(templateId, opts) {
1836
+ return this.http.request("GET", "/v1/webstores/{storeId}/templates/{templateId}/archive", { path: { templateId }, opts });
1837
+ }
1838
+ getWebstoreTemplateFile(templateId, templateFileId, opts) {
1839
+ return this.http.request("GET", "/v1/webstores/{storeId}/templates/{templateId}/files/{templateFileId}", { path: { templateId, templateFileId }, opts });
1840
+ }
1841
+ getWebstoreTemplateFiles(templateId, opts) {
1842
+ return this.http.request("GET", "/v1/webstores/{storeId}/templates/{templateId}/files", { path: { templateId }, opts });
1843
+ }
1844
+ getWebstoreTemplateLatestVersion(templateId, opts) {
1845
+ return this.http.request("GET", "/v1/webstores/{storeId}/templates/{templateId}/update", { path: { templateId }, opts });
1846
+ }
1847
+ getWebstoreTemplates(opts) {
1848
+ return this.http.request("GET", "/v1/webstores/{storeId}/templates", { opts });
1849
+ }
1850
+ getWebstoreTemplateSchema(templateId, opts) {
1851
+ return this.http.request("GET", "/v1/webstores/{storeId}/templates/{templateId}/schema", { path: { templateId }, opts });
1852
+ }
1853
+ getWebstoreTemplateUploadUrl(templateId, query, opts) {
1854
+ return this.http.request("GET", "/v1/webstores/{storeId}/templates/{templateId}/upload_url", { path: { templateId }, query, opts });
1855
+ }
1856
+ getWebstoreTemplateVariables(templateId, opts) {
1857
+ return this.http.request("GET", "/v1/webstores/{storeId}/templates/{templateId}/variables", { path: { templateId }, opts });
1858
+ }
1859
+ previewWebstoreTemplate(templateId, opts) {
1860
+ return this.http.request("GET", "/v1/webstores/{storeId}/templates/{templateId}/preview", { path: { templateId }, opts });
1861
+ }
1862
+ setWebstoreCustomDomain(body, opts) {
1863
+ return this.http.request("POST", "/v1/webstores/{storeId}/custom-domain", { body, opts });
1864
+ }
1865
+ setWebstoreDefaultTemplate(body, opts) {
1866
+ return this.http.request("POST", "/v1/webstores/{storeId}/set-default-template", {
1867
+ body,
1868
+ opts,
1869
+ });
1870
+ }
1871
+ setWebstoreSlug(body, opts) {
1872
+ return this.http.request("POST", "/v1/webstores/{storeId}/set-slug", { body, opts });
1873
+ }
1874
+ updateWebstoreModule(moduleId, body, opts) {
1875
+ return this.http.request("PUT", "/v1/webstores/{storeId}/modules/{moduleId}", { path: { moduleId }, body, opts });
1876
+ }
1877
+ updateWebstoreTemplate(templateId, body, opts) {
1878
+ return this.http.request("PUT", "/v1/webstores/{storeId}/templates/{templateId}", { path: { templateId }, body, opts });
1879
+ }
1880
+ updateWebstoreTemplateFile(templateId, templateFileId, body, opts) {
1881
+ return this.http.request("PUT", "/v1/webstores/{storeId}/templates/{templateId}/files/{templateFileId}", { path: { templateId, templateFileId }, body, opts });
1882
+ }
1883
+ updateWebstoreTemplateSchemaVariables(templateId, body, opts) {
1884
+ return this.http.request("PUT", "/v1/webstores/{storeId}/templates/{templateId}/schema/variables", { path: { templateId }, body, opts });
1885
+ }
1886
+ updateWebstoreTemplateVariable(templateId, templateVariableId, body, opts) {
1887
+ return this.http.request("PUT", "/v1/webstores/{storeId}/templates/{templateId}/variables/{templateVariableId}", { path: { templateId, templateVariableId }, body, opts });
1888
+ }
1889
+ verifyWebstoreCustomDomain(opts) {
1890
+ return this.http.request("POST", "/v1/webstores/{storeId}/custom-domain/verify", {
1891
+ opts,
1892
+ });
1893
+ }
1894
+ }
1895
+ exports.WebstoreResource = WebstoreResource;
1496
1896
  /** Typed client for the PayNow management API. */
1497
1897
  class ManagementClient {
1498
1898
  /** Escape hatch for endpoints this SDK does not model. */
1499
1899
  $http;
1500
1900
  affiliateLinks;
1501
1901
  bans;
1902
+ billing;
1502
1903
  checkout;
1904
+ checkoutStyle;
1503
1905
  coupons;
1504
1906
  customer_portal_sessions;
1505
1907
  customers;
@@ -1512,6 +1914,7 @@ class ManagementClient {
1512
1914
  gameServers;
1513
1915
  giftcards;
1514
1916
  globalCommands;
1917
+ invites;
1515
1918
  invoices;
1516
1919
  marketing;
1517
1920
  navlinks;
@@ -1522,6 +1925,7 @@ class ManagementClient {
1522
1925
  productDependentMigrations;
1523
1926
  products;
1524
1927
  regionalPricing;
1928
+ roles;
1525
1929
  sales;
1526
1930
  store;
1527
1931
  subscriptions;
@@ -1530,11 +1934,14 @@ class ManagementClient {
1530
1934
  trials;
1531
1935
  upsellSettings;
1532
1936
  webhooks;
1937
+ webstore;
1533
1938
  constructor(http) {
1534
1939
  this.$http = http;
1535
1940
  this.affiliateLinks = new AffiliateLinksResource(http);
1536
1941
  this.bans = new BansResource(http);
1942
+ this.billing = new BillingResource(http);
1537
1943
  this.checkout = new CheckoutResource(http);
1944
+ this.checkoutStyle = new CheckoutStyleResource(http);
1538
1945
  this.coupons = new CouponsResource(http);
1539
1946
  this.customer_portal_sessions = new CustomerPortalSessionsResource(http);
1540
1947
  this.customers = new CustomersResource(http);
@@ -1547,6 +1954,7 @@ class ManagementClient {
1547
1954
  this.gameServers = new GameServersResource(http);
1548
1955
  this.giftcards = new GiftcardsResource(http);
1549
1956
  this.globalCommands = new GlobalCommandsResource(http);
1957
+ this.invites = new InvitesResource(http);
1550
1958
  this.invoices = new InvoicesResource(http);
1551
1959
  this.marketing = new MarketingResource(http);
1552
1960
  this.navlinks = new NavlinksResource(http);
@@ -1557,6 +1965,7 @@ class ManagementClient {
1557
1965
  this.productDependentMigrations = new ProductDependentMigrationsResource(http);
1558
1966
  this.products = new ProductsResource(http);
1559
1967
  this.regionalPricing = new RegionalPricingResource(http);
1968
+ this.roles = new RolesResource(http);
1560
1969
  this.sales = new SalesResource(http);
1561
1970
  this.store = new StoreResource(http);
1562
1971
  this.subscriptions = new SubscriptionsResource(http);
@@ -1565,6 +1974,7 @@ class ManagementClient {
1565
1974
  this.trials = new TrialsResource(http);
1566
1975
  this.upsellSettings = new UpsellSettingsResource(http);
1567
1976
  this.webhooks = new WebhooksResource(http);
1977
+ this.webstore = new WebstoreResource(http);
1568
1978
  }
1569
1979
  }
1570
1980
  exports.ManagementClient = ManagementClient;