@paynow-gg/typescript-sdk 1.0.1 → 1.0.5

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.
Files changed (142) hide show
  1. package/README.md +4 -4
  2. package/dist/client.d.ts +71 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +51 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/generate.d.ts +2 -0
  7. package/dist/generate.d.ts.map +1 -0
  8. package/dist/generate.js +97 -0
  9. package/dist/generate.js.map +1 -0
  10. package/dist/generated/management.d.ts +9173 -0
  11. package/dist/generated/management.d.ts.map +1 -0
  12. package/dist/generated/management.js +510 -0
  13. package/dist/generated/management.js.map +1 -0
  14. package/dist/generated/storefront.d.ts +1660 -0
  15. package/dist/generated/storefront.d.ts.map +1 -0
  16. package/dist/generated/storefront.js +62 -0
  17. package/dist/generated/storefront.js.map +1 -0
  18. package/dist/index.d.ts +6 -2
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +19 -5
  21. package/dist/index.js.map +1 -1
  22. package/dist/management.d.ts +6 -21
  23. package/dist/management.d.ts.map +1 -1
  24. package/dist/management.js +8 -58
  25. package/dist/management.js.map +1 -1
  26. package/dist/storefront.d.ts +6 -20
  27. package/dist/storefront.d.ts.map +1 -1
  28. package/dist/storefront.js +9 -59
  29. package/dist/storefront.js.map +1 -1
  30. package/package.json +5 -4
  31. package/dist/base-api.d.ts +0 -58
  32. package/dist/base-api.d.ts.map +0 -1
  33. package/dist/base-api.js +0 -103
  34. package/dist/base-api.js.map +0 -1
  35. package/dist/management-client/client/client.d.ts +0 -3
  36. package/dist/management-client/client/client.d.ts.map +0 -1
  37. package/dist/management-client/client/client.js +0 -100
  38. package/dist/management-client/client/client.js.map +0 -1
  39. package/dist/management-client/client/index.d.ts +0 -8
  40. package/dist/management-client/client/index.d.ts.map +0 -1
  41. package/dist/management-client/client/index.js +0 -14
  42. package/dist/management-client/client/index.js.map +0 -1
  43. package/dist/management-client/client/types.d.ts +0 -94
  44. package/dist/management-client/client/types.d.ts.map +0 -1
  45. package/dist/management-client/client/types.js +0 -3
  46. package/dist/management-client/client/types.js.map +0 -1
  47. package/dist/management-client/client/utils.d.ts +0 -21
  48. package/dist/management-client/client/utils.d.ts.map +0 -1
  49. package/dist/management-client/client/utils.js +0 -226
  50. package/dist/management-client/client/utils.js.map +0 -1
  51. package/dist/management-client/client.gen.d.ts +0 -13
  52. package/dist/management-client/client.gen.d.ts.map +0 -1
  53. package/dist/management-client/client.gen.js +0 -9
  54. package/dist/management-client/client.gen.js.map +0 -1
  55. package/dist/management-client/core/auth.d.ts +0 -19
  56. package/dist/management-client/core/auth.d.ts.map +0 -1
  57. package/dist/management-client/core/auth.js +0 -18
  58. package/dist/management-client/core/auth.js.map +0 -1
  59. package/dist/management-client/core/bodySerializer.d.ts +0 -18
  60. package/dist/management-client/core/bodySerializer.d.ts.map +0 -1
  61. package/dist/management-client/core/bodySerializer.js +0 -57
  62. package/dist/management-client/core/bodySerializer.js.map +0 -1
  63. package/dist/management-client/core/params.d.ts +0 -24
  64. package/dist/management-client/core/params.d.ts.map +0 -1
  65. package/dist/management-client/core/params.js +0 -92
  66. package/dist/management-client/core/params.js.map +0 -1
  67. package/dist/management-client/core/pathSerializer.d.ts +0 -34
  68. package/dist/management-client/core/pathSerializer.d.ts.map +0 -1
  69. package/dist/management-client/core/pathSerializer.js +0 -123
  70. package/dist/management-client/core/pathSerializer.js.map +0 -1
  71. package/dist/management-client/core/types.d.ts +0 -74
  72. package/dist/management-client/core/types.d.ts.map +0 -1
  73. package/dist/management-client/core/types.js +0 -3
  74. package/dist/management-client/core/types.js.map +0 -1
  75. package/dist/management-client/index.d.ts +0 -3
  76. package/dist/management-client/index.d.ts.map +0 -1
  77. package/dist/management-client/index.js +0 -20
  78. package/dist/management-client/index.js.map +0 -1
  79. package/dist/management-client/sdk.gen.d.ts +0 -482
  80. package/dist/management-client/sdk.gen.d.ts.map +0 -1
  81. package/dist/management-client/sdk.gen.js +0 -2169
  82. package/dist/management-client/sdk.gen.js.map +0 -1
  83. package/dist/management-client/types.gen.d.ts +0 -6676
  84. package/dist/management-client/types.gen.d.ts.map +0 -1
  85. package/dist/management-client/types.gen.js +0 -380
  86. package/dist/management-client/types.gen.js.map +0 -1
  87. package/dist/storefront-client/client/client.d.ts +0 -3
  88. package/dist/storefront-client/client/client.d.ts.map +0 -1
  89. package/dist/storefront-client/client/client.js +0 -100
  90. package/dist/storefront-client/client/client.js.map +0 -1
  91. package/dist/storefront-client/client/index.d.ts +0 -8
  92. package/dist/storefront-client/client/index.d.ts.map +0 -1
  93. package/dist/storefront-client/client/index.js +0 -14
  94. package/dist/storefront-client/client/index.js.map +0 -1
  95. package/dist/storefront-client/client/types.d.ts +0 -94
  96. package/dist/storefront-client/client/types.d.ts.map +0 -1
  97. package/dist/storefront-client/client/types.js +0 -3
  98. package/dist/storefront-client/client/types.js.map +0 -1
  99. package/dist/storefront-client/client/utils.d.ts +0 -21
  100. package/dist/storefront-client/client/utils.d.ts.map +0 -1
  101. package/dist/storefront-client/client/utils.js +0 -226
  102. package/dist/storefront-client/client/utils.js.map +0 -1
  103. package/dist/storefront-client/client.gen.d.ts +0 -13
  104. package/dist/storefront-client/client.gen.d.ts.map +0 -1
  105. package/dist/storefront-client/client.gen.js +0 -9
  106. package/dist/storefront-client/client.gen.js.map +0 -1
  107. package/dist/storefront-client/core/auth.d.ts +0 -19
  108. package/dist/storefront-client/core/auth.d.ts.map +0 -1
  109. package/dist/storefront-client/core/auth.js +0 -18
  110. package/dist/storefront-client/core/auth.js.map +0 -1
  111. package/dist/storefront-client/core/bodySerializer.d.ts +0 -18
  112. package/dist/storefront-client/core/bodySerializer.d.ts.map +0 -1
  113. package/dist/storefront-client/core/bodySerializer.js +0 -57
  114. package/dist/storefront-client/core/bodySerializer.js.map +0 -1
  115. package/dist/storefront-client/core/params.d.ts +0 -24
  116. package/dist/storefront-client/core/params.d.ts.map +0 -1
  117. package/dist/storefront-client/core/params.js +0 -92
  118. package/dist/storefront-client/core/params.js.map +0 -1
  119. package/dist/storefront-client/core/pathSerializer.d.ts +0 -34
  120. package/dist/storefront-client/core/pathSerializer.d.ts.map +0 -1
  121. package/dist/storefront-client/core/pathSerializer.js +0 -123
  122. package/dist/storefront-client/core/pathSerializer.js.map +0 -1
  123. package/dist/storefront-client/core/types.d.ts +0 -74
  124. package/dist/storefront-client/core/types.d.ts.map +0 -1
  125. package/dist/storefront-client/core/types.js +0 -3
  126. package/dist/storefront-client/core/types.js.map +0 -1
  127. package/dist/storefront-client/index.d.ts +0 -3
  128. package/dist/storefront-client/index.d.ts.map +0 -1
  129. package/dist/storefront-client/index.js +0 -20
  130. package/dist/storefront-client/index.js.map +0 -1
  131. package/dist/storefront-client/sdk.gen.d.ts +0 -100
  132. package/dist/storefront-client/sdk.gen.d.ts.map +0 -1
  133. package/dist/storefront-client/sdk.gen.js +0 -296
  134. package/dist/storefront-client/sdk.gen.js.map +0 -1
  135. package/dist/storefront-client/types.gen.d.ts +0 -1410
  136. package/dist/storefront-client/types.gen.d.ts.map +0 -1
  137. package/dist/storefront-client/types.gen.js +0 -58
  138. package/dist/storefront-client/types.gen.js.map +0 -1
  139. package/dist/types.d.ts +0 -49
  140. package/dist/types.d.ts.map +0 -1
  141. package/dist/types.js +0 -9
  142. package/dist/types.js.map +0 -1
@@ -1,2169 +0,0 @@
1
- "use strict";
2
- // This file is auto-generated by @hey-api/openapi-ts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Webhooks = exports.Trust = exports.Trials = exports.TrialEligibility = exports.Tags = exports.Subscriptions = exports.Sales = exports.RegionalPricing = exports.Products = exports.Orders = exports.Navlinks = exports.Marketing = exports.GlobalCommands = exports.Giftcards = exports.GameServers = exports.DownloadableFiles = exports.Discord = exports.Deliverables = exports.DataMigrations = exports.Customers = exports.CustomVariables = exports.Coupons = exports.CommandDelivery = exports.Checkout = exports.Bans = exports.AffiliateLinks = void 0;
5
- const client_gen_1 = require("./client.gen");
6
- class AffiliateLinks {
7
- static getAffiliateLinks(options) {
8
- return (options.client ?? client_gen_1.client).get({
9
- responseType: 'json',
10
- security: [
11
- {
12
- name: 'Authorization',
13
- type: 'apiKey'
14
- }
15
- ],
16
- url: '/v1/stores/{storeId}/affiliate-links',
17
- ...options
18
- });
19
- }
20
- static createAffiliateLink(options) {
21
- return (options.client ?? client_gen_1.client).post({
22
- responseType: 'json',
23
- security: [
24
- {
25
- name: 'Authorization',
26
- type: 'apiKey'
27
- }
28
- ],
29
- url: '/v1/stores/{storeId}/affiliate-links',
30
- ...options,
31
- headers: {
32
- 'Content-Type': 'application/json',
33
- ...options.headers
34
- }
35
- });
36
- }
37
- static deleteAffiliateLink(options) {
38
- return (options.client ?? client_gen_1.client).delete({
39
- security: [
40
- {
41
- name: 'Authorization',
42
- type: 'apiKey'
43
- }
44
- ],
45
- url: '/v1/stores/{storeId}/affiliate-links/{affiliateLinkId}',
46
- ...options
47
- });
48
- }
49
- static getAffiliateLink(options) {
50
- return (options.client ?? client_gen_1.client).get({
51
- responseType: 'json',
52
- security: [
53
- {
54
- name: 'Authorization',
55
- type: 'apiKey'
56
- }
57
- ],
58
- url: '/v1/stores/{storeId}/affiliate-links/{affiliateLinkId}',
59
- ...options
60
- });
61
- }
62
- static updateAffiliateLink(options) {
63
- return (options.client ?? client_gen_1.client).patch({
64
- responseType: 'json',
65
- security: [
66
- {
67
- name: 'Authorization',
68
- type: 'apiKey'
69
- }
70
- ],
71
- url: '/v1/stores/{storeId}/affiliate-links/{affiliateLinkId}',
72
- ...options,
73
- headers: {
74
- 'Content-Type': 'application/json',
75
- ...options.headers
76
- }
77
- });
78
- }
79
- }
80
- exports.AffiliateLinks = AffiliateLinks;
81
- class Bans {
82
- static getBans(options) {
83
- return (options.client ?? client_gen_1.client).get({
84
- responseType: 'json',
85
- security: [
86
- {
87
- name: 'Authorization',
88
- type: 'apiKey'
89
- }
90
- ],
91
- url: '/v1/stores/{storeId}/bans',
92
- ...options
93
- });
94
- }
95
- static createBan(options) {
96
- return (options.client ?? client_gen_1.client).post({
97
- responseType: 'json',
98
- security: [
99
- {
100
- name: 'Authorization',
101
- type: 'apiKey'
102
- }
103
- ],
104
- url: '/v1/stores/{storeId}/bans',
105
- ...options,
106
- headers: {
107
- 'Content-Type': 'application/json',
108
- ...options.headers
109
- }
110
- });
111
- }
112
- static deleteBan(options) {
113
- return (options.client ?? client_gen_1.client).delete({
114
- security: [
115
- {
116
- name: 'Authorization',
117
- type: 'apiKey'
118
- }
119
- ],
120
- url: '/v1/stores/{storeId}/bans/{banId}',
121
- ...options
122
- });
123
- }
124
- static getBan(options) {
125
- return (options.client ?? client_gen_1.client).get({
126
- responseType: 'json',
127
- security: [
128
- {
129
- name: 'Authorization',
130
- type: 'apiKey'
131
- }
132
- ],
133
- url: '/v1/stores/{storeId}/bans/{banId}',
134
- ...options
135
- });
136
- }
137
- static updateBan(options) {
138
- return (options.client ?? client_gen_1.client).patch({
139
- responseType: 'json',
140
- security: [
141
- {
142
- name: 'Authorization',
143
- type: 'apiKey'
144
- }
145
- ],
146
- url: '/v1/stores/{storeId}/bans/{banId}',
147
- ...options,
148
- headers: {
149
- 'Content-Type': 'application/json',
150
- ...options.headers
151
- }
152
- });
153
- }
154
- static checkForBanByIdentities(options) {
155
- return (options.client ?? client_gen_1.client).post({
156
- responseType: 'json',
157
- security: [
158
- {
159
- name: 'Authorization',
160
- type: 'apiKey'
161
- }
162
- ],
163
- url: '/v1/stores/{storeId}/bans/check',
164
- ...options,
165
- headers: {
166
- 'Content-Type': 'application/json',
167
- ...options.headers
168
- }
169
- });
170
- }
171
- }
172
- exports.Bans = Bans;
173
- class Checkout {
174
- /**
175
- * Create a checkout session
176
- * Creates a checkout session from a secure server using an API Key.
177
- * If you have a Customer token, see the Storefront API Create Checkout endpoint.
178
- */
179
- static createCheckoutSession(options) {
180
- return (options.client ?? client_gen_1.client).post({
181
- responseType: 'json',
182
- security: [
183
- {
184
- name: 'Authorization',
185
- type: 'apiKey'
186
- }
187
- ],
188
- url: '/v1/stores/{storeId}/checkouts',
189
- ...options,
190
- headers: {
191
- 'Content-Type': 'application/json',
192
- ...options.headers
193
- }
194
- });
195
- }
196
- }
197
- exports.Checkout = Checkout;
198
- class CommandDelivery {
199
- /**
200
- * Get delivery items associated with an order
201
- * Retrieves all delivery items associated with a specific order.
202
- */
203
- static getOrderDeliveryItems(options) {
204
- return (options.client ?? client_gen_1.client).get({
205
- responseType: 'json',
206
- security: [
207
- {
208
- name: 'Authorization',
209
- type: 'apiKey'
210
- }
211
- ],
212
- url: '/v1/stores/{storeId}/orders/{orderId}/command-delivery',
213
- ...options
214
- });
215
- }
216
- /**
217
- * Get delivery items associated with a customer
218
- * Retrieves delivery items associated with a customer
219
- */
220
- static getDeliveryItems(options) {
221
- return (options.client ?? client_gen_1.client).get({
222
- responseType: 'json',
223
- security: [
224
- {
225
- name: 'Authorization',
226
- type: 'apiKey'
227
- }
228
- ],
229
- url: '/v1/stores/{storeId}/customers/{customerId}/command-delivery',
230
- ...options
231
- });
232
- }
233
- /**
234
- * Assign a delivery item to a customer
235
- * Allows you to assign a delivery item to a customer
236
- */
237
- static assignDeliveryItem(options) {
238
- return (options.client ?? client_gen_1.client).post({
239
- responseType: 'json',
240
- security: [
241
- {
242
- name: 'Authorization',
243
- type: 'apiKey'
244
- }
245
- ],
246
- url: '/v1/stores/{storeId}/customers/{customerId}/command-delivery',
247
- ...options,
248
- headers: {
249
- 'Content-Type': 'application/json',
250
- ...options.headers
251
- }
252
- });
253
- }
254
- /**
255
- * Revoke a delivery item for a customer
256
- * Allows you to revoke a delivery item associated with a customer
257
- */
258
- static revokeDeliveryItem(options) {
259
- return (options.client ?? client_gen_1.client).delete({
260
- security: [
261
- {
262
- name: 'Authorization',
263
- type: 'apiKey'
264
- }
265
- ],
266
- url: '/v1/stores/{storeId}/customers/{customerId}/command-delivery/{deliveryItemId}',
267
- ...options
268
- });
269
- }
270
- /**
271
- * Assign delivery items in bulk
272
- * Allows you to assign multiple delivery items for multiple customers in bulk
273
- */
274
- static assignDeliveryItemsBulk(options) {
275
- return (options.client ?? client_gen_1.client).post({
276
- responseType: 'json',
277
- security: [
278
- {
279
- name: 'Authorization',
280
- type: 'apiKey'
281
- }
282
- ],
283
- url: '/v1/stores/{storeId}/command-delivery',
284
- ...options,
285
- headers: {
286
- 'Content-Type': 'application/json',
287
- ...options.headers
288
- }
289
- });
290
- }
291
- /**
292
- * Update product version id for inventory items of given product id
293
- */
294
- static updateInventoryItemProductVersion(options) {
295
- return (options.client ?? client_gen_1.client).post({
296
- responseType: 'json',
297
- security: [
298
- {
299
- name: 'Authorization',
300
- type: 'apiKey'
301
- }
302
- ],
303
- url: '/v1/stores/{storeId}/command-delivery/inventory-item/update-product-versions',
304
- ...options,
305
- headers: {
306
- 'Content-Type': 'application/json',
307
- ...options.headers
308
- }
309
- });
310
- }
311
- /**
312
- * Unqueue commands by attempt IDs
313
- */
314
- static unqueueCommands(options) {
315
- return (options.client ?? client_gen_1.client).post({
316
- responseType: 'json',
317
- security: [
318
- {
319
- name: 'Authorization',
320
- type: 'apiKey'
321
- }
322
- ],
323
- url: '/v1/stores/{storeId}/command-delivery/unqueue',
324
- ...options,
325
- headers: {
326
- 'Content-Type': 'application/json',
327
- ...options.headers
328
- }
329
- });
330
- }
331
- }
332
- exports.CommandDelivery = CommandDelivery;
333
- class Coupons {
334
- /**
335
- * Fetches all coupons for a store id
336
- */
337
- static getCouponsForStore(options) {
338
- return (options.client ?? client_gen_1.client).get({
339
- responseType: 'json',
340
- security: [
341
- {
342
- name: 'Authorization',
343
- type: 'apiKey'
344
- }
345
- ],
346
- url: '/v1/stores/{storeId}/coupons',
347
- ...options
348
- });
349
- }
350
- static createCouponForStore(options) {
351
- return (options.client ?? client_gen_1.client).post({
352
- responseType: 'json',
353
- security: [
354
- {
355
- name: 'Authorization',
356
- type: 'apiKey'
357
- }
358
- ],
359
- url: '/v1/stores/{storeId}/coupons',
360
- ...options,
361
- headers: {
362
- 'Content-Type': 'application/json',
363
- ...options.headers
364
- }
365
- });
366
- }
367
- /**
368
- * Deletes a coupon
369
- */
370
- static deleteCouponForStore(options) {
371
- return (options.client ?? client_gen_1.client).delete({
372
- security: [
373
- {
374
- name: 'Authorization',
375
- type: 'apiKey'
376
- }
377
- ],
378
- url: '/v1/stores/{storeId}/coupons/{couponId}',
379
- ...options
380
- });
381
- }
382
- /**
383
- * Retrieves a coupon by ID
384
- */
385
- static getCouponByIdForStore(options) {
386
- return (options.client ?? client_gen_1.client).get({
387
- responseType: 'json',
388
- security: [
389
- {
390
- name: 'Authorization',
391
- type: 'apiKey'
392
- }
393
- ],
394
- url: '/v1/stores/{storeId}/coupons/{couponId}',
395
- ...options
396
- });
397
- }
398
- /**
399
- * Performs a Delta Update of a Coupon
400
- */
401
- static updateCouponForStore(options) {
402
- return (options.client ?? client_gen_1.client).patch({
403
- responseType: 'json',
404
- security: [
405
- {
406
- name: 'Authorization',
407
- type: 'apiKey'
408
- }
409
- ],
410
- url: '/v1/stores/{storeId}/coupons/{couponId}',
411
- ...options,
412
- headers: {
413
- 'Content-Type': 'application/json',
414
- ...options.headers
415
- }
416
- });
417
- }
418
- }
419
- exports.Coupons = Coupons;
420
- class CustomVariables {
421
- /**
422
- * Get custom variables
423
- * Retrieves all custom variables for the specified store.
424
- */
425
- static getCustomVariablesForStore(options) {
426
- return (options.client ?? client_gen_1.client).get({
427
- responseType: 'json',
428
- security: [
429
- {
430
- name: 'Authorization',
431
- type: 'apiKey'
432
- }
433
- ],
434
- url: '/v1/stores/{storeId}/custom-variables',
435
- ...options
436
- });
437
- }
438
- /**
439
- * Create custom variable
440
- * Creates a new custom variable for the specified store.
441
- * Custom variables allow customers to provide additional input when purchasing products.
442
- */
443
- static createCustomVariableForStore(options) {
444
- return (options.client ?? client_gen_1.client).post({
445
- responseType: 'json',
446
- security: [
447
- {
448
- name: 'Authorization',
449
- type: 'apiKey'
450
- }
451
- ],
452
- url: '/v1/stores/{storeId}/custom-variables',
453
- ...options,
454
- headers: {
455
- 'Content-Type': 'application/json',
456
- ...options.headers
457
- }
458
- });
459
- }
460
- /**
461
- * Delete custom variable
462
- * Deletes a custom variable from the specified store.
463
- * This will also delete all associated options and cannot be undone.
464
- */
465
- static deleteCustomVariableForStore(options) {
466
- return (options.client ?? client_gen_1.client).delete({
467
- security: [
468
- {
469
- name: 'Authorization',
470
- type: 'apiKey'
471
- }
472
- ],
473
- url: '/v1/stores/{storeId}/custom-variables/{customVariableId}',
474
- ...options
475
- });
476
- }
477
- /**
478
- * Get custom variable
479
- * Retrieves a specific custom variable by ID from the specified store.
480
- */
481
- static getCustomVariableByIdForStore(options) {
482
- return (options.client ?? client_gen_1.client).get({
483
- responseType: 'json',
484
- security: [
485
- {
486
- name: 'Authorization',
487
- type: 'apiKey'
488
- }
489
- ],
490
- url: '/v1/stores/{storeId}/custom-variables/{customVariableId}',
491
- ...options
492
- });
493
- }
494
- /**
495
- * Update custom variable
496
- * Performs a partial update of a custom variable using field mask.
497
- * Only the fields specified in the request will be updated.
498
- */
499
- static updateCustomVariableForStore(options) {
500
- return (options.client ?? client_gen_1.client).patch({
501
- responseType: 'json',
502
- security: [
503
- {
504
- name: 'Authorization',
505
- type: 'apiKey'
506
- }
507
- ],
508
- url: '/v1/stores/{storeId}/custom-variables/{customVariableId}',
509
- ...options,
510
- headers: {
511
- 'Content-Type': 'application/json',
512
- ...options.headers
513
- }
514
- });
515
- }
516
- }
517
- exports.CustomVariables = CustomVariables;
518
- class Customers {
519
- /**
520
- * Get customers
521
- * Retrieves all customers for the specified store.
522
- */
523
- static getCustomers(options) {
524
- return (options.client ?? client_gen_1.client).get({
525
- responseType: 'json',
526
- security: [
527
- {
528
- name: 'Authorization',
529
- type: 'apiKey'
530
- }
531
- ],
532
- url: '/v1/stores/{storeId}/customers',
533
- ...options
534
- });
535
- }
536
- /**
537
- * Create customer
538
- * Creates a new customer based on the fields passed.
539
- */
540
- static createCustomer(options) {
541
- return (options.client ?? client_gen_1.client).post({
542
- responseType: 'json',
543
- security: [
544
- {
545
- name: 'Authorization',
546
- type: 'apiKey'
547
- }
548
- ],
549
- url: '/v1/stores/{storeId}/customers',
550
- ...options,
551
- headers: {
552
- 'Content-Type': 'application/json',
553
- ...options.headers
554
- }
555
- });
556
- }
557
- /**
558
- * Get customer by ID
559
- * Retrieves a customer by the ID for the specified store.
560
- */
561
- static getCustomerById(options) {
562
- return (options.client ?? client_gen_1.client).get({
563
- responseType: 'json',
564
- security: [
565
- {
566
- name: 'Authorization',
567
- type: 'apiKey'
568
- }
569
- ],
570
- url: '/v1/stores/{storeId}/customers/{customerId}',
571
- ...options
572
- });
573
- }
574
- /**
575
- * Update customer
576
- * Updates an existing customer based on the fields passed.
577
- */
578
- static updateCustomer(options) {
579
- return (options.client ?? client_gen_1.client).patch({
580
- responseType: 'json',
581
- security: [
582
- {
583
- name: 'Authorization',
584
- type: 'apiKey'
585
- }
586
- ],
587
- url: '/v1/stores/{storeId}/customers/{customerId}',
588
- ...options,
589
- headers: {
590
- 'Content-Type': 'application/json',
591
- ...options.headers
592
- }
593
- });
594
- }
595
- /**
596
- * Invalidate customer tokens
597
- * Invalidates all generated customer tokens.
598
- */
599
- static invalidateCustomerTokens(options) {
600
- return (options.client ?? client_gen_1.client).delete({
601
- security: [
602
- {
603
- name: 'Authorization',
604
- type: 'apiKey'
605
- }
606
- ],
607
- url: '/v1/stores/{storeId}/customers/{customerId}/tokens',
608
- ...options
609
- });
610
- }
611
- /**
612
- * Create customer token
613
- * Generates a customer token that can be used by the Storefront (Headless) API.
614
- */
615
- static createCustomerToken(options) {
616
- return (options.client ?? client_gen_1.client).post({
617
- responseType: 'json',
618
- security: [
619
- {
620
- name: 'Authorization',
621
- type: 'apiKey'
622
- }
623
- ],
624
- url: '/v1/stores/{storeId}/customers/{customerId}/tokens',
625
- ...options
626
- });
627
- }
628
- /**
629
- * Lookup customer
630
- * Looks up a customer by an external platform ID.
631
- */
632
- static lookupCustomer(options) {
633
- return (options.client ?? client_gen_1.client).get({
634
- responseType: 'json',
635
- security: [
636
- {
637
- name: 'Authorization',
638
- type: 'apiKey'
639
- }
640
- ],
641
- url: '/v1/stores/{storeId}/customers/lookup',
642
- ...options
643
- });
644
- }
645
- /**
646
- * Bulk create customers
647
- * Creates up to 200 customers at once.
648
- */
649
- static bulkCreateCustomers(options) {
650
- return (options.client ?? client_gen_1.client).post({
651
- responseType: 'json',
652
- security: [
653
- {
654
- name: 'Authorization',
655
- type: 'apiKey'
656
- }
657
- ],
658
- url: '/v1/stores/{storeId}/customers/bulk',
659
- ...options,
660
- headers: {
661
- 'Content-Type': 'application/json',
662
- ...options.headers
663
- }
664
- });
665
- }
666
- }
667
- exports.Customers = Customers;
668
- class DataMigrations {
669
- static getDataMigrations(options) {
670
- return (options.client ?? client_gen_1.client).get({
671
- responseType: 'json',
672
- security: [
673
- {
674
- name: 'Authorization',
675
- type: 'apiKey'
676
- }
677
- ],
678
- url: '/v1/stores/{storeId}/data-migrations',
679
- ...options
680
- });
681
- }
682
- static startDataMigrationFromTebex(options) {
683
- return (options.client ?? client_gen_1.client).post({
684
- responseType: 'json',
685
- security: [
686
- {
687
- name: 'Authorization',
688
- type: 'apiKey'
689
- }
690
- ],
691
- url: '/v1/stores/{storeId}/data-migrations/tebex',
692
- ...options,
693
- headers: {
694
- 'Content-Type': 'application/json',
695
- ...options.headers
696
- }
697
- });
698
- }
699
- }
700
- exports.DataMigrations = DataMigrations;
701
- class Deliverables {
702
- static resendCommandsForGameServer(options) {
703
- return (options.client ?? client_gen_1.client).post({
704
- responseType: 'json',
705
- security: [
706
- {
707
- name: 'Authorization',
708
- type: 'apiKey'
709
- }
710
- ],
711
- url: '/v1/stores/{storeId}/deliverables/{deliverableId}/commands/resend',
712
- ...options,
713
- headers: {
714
- 'Content-Type': 'application/json',
715
- ...options.headers
716
- }
717
- });
718
- }
719
- }
720
- exports.Deliverables = Deliverables;
721
- class Discord {
722
- static getActions(options) {
723
- return (options.client ?? client_gen_1.client).get({
724
- responseType: 'json',
725
- security: [
726
- {
727
- name: 'Authorization',
728
- type: 'apiKey'
729
- }
730
- ],
731
- url: '/v1/stores/{storeId}/product_versions/{productVersionId}/discord_actions',
732
- ...options
733
- });
734
- }
735
- static createAction(options) {
736
- return (options.client ?? client_gen_1.client).put({
737
- responseType: 'json',
738
- security: [
739
- {
740
- name: 'Authorization',
741
- type: 'apiKey'
742
- }
743
- ],
744
- url: '/v1/stores/{storeId}/product_versions/{productVersionId}/discord_actions',
745
- ...options,
746
- headers: {
747
- 'Content-Type': 'application/json',
748
- ...options.headers
749
- }
750
- });
751
- }
752
- static getLinkedDiscordAccounts(options) {
753
- return (options.client ?? client_gen_1.client).get({
754
- responseType: 'json',
755
- security: [
756
- {
757
- name: 'Authorization',
758
- type: 'apiKey'
759
- }
760
- ],
761
- url: '/v1/stores/{storeId}/orders/{orderId}/discord',
762
- ...options
763
- });
764
- }
765
- static getDiscordActionExecutionHistory(options) {
766
- return (options.client ?? client_gen_1.client).get({
767
- responseType: 'json',
768
- security: [
769
- {
770
- name: 'Authorization',
771
- type: 'apiKey'
772
- }
773
- ],
774
- url: '/v1/stores/{storeId}/orders/{orderId}/discord/queued',
775
- ...options
776
- });
777
- }
778
- static getQueuedDiscordActionForDeliveryItem(options) {
779
- return (options.client ?? client_gen_1.client).get({
780
- responseType: 'json',
781
- security: [
782
- {
783
- name: 'Authorization',
784
- type: 'apiKey'
785
- }
786
- ],
787
- url: '/v1/stores/{storeId}/inventory/{inventoryItemId}/discord/queued',
788
- ...options
789
- });
790
- }
791
- static deleteUserToDeliveryItemLink(options) {
792
- return (options.client ?? client_gen_1.client).delete({
793
- security: [
794
- {
795
- name: 'Authorization',
796
- type: 'apiKey'
797
- }
798
- ],
799
- url: '/v1/stores/{storeId}/inventory/{inventoryItemId}/discord/link',
800
- ...options
801
- });
802
- }
803
- static getUserToDeliveryItemLinks(options) {
804
- return (options.client ?? client_gen_1.client).get({
805
- responseType: 'json',
806
- security: [
807
- {
808
- name: 'Authorization',
809
- type: 'apiKey'
810
- }
811
- ],
812
- url: '/v1/stores/{storeId}/inventory/{inventoryItemId}/discord/link',
813
- ...options
814
- });
815
- }
816
- static setUserToDeliveryItemLink(options) {
817
- return (options.client ?? client_gen_1.client).put({
818
- security: [
819
- {
820
- name: 'Authorization',
821
- type: 'apiKey'
822
- }
823
- ],
824
- url: '/v1/stores/{storeId}/inventory/{inventoryItemId}/discord/link',
825
- ...options
826
- });
827
- }
828
- static getDiscordServerLinks(options) {
829
- return (options.client ?? client_gen_1.client).get({
830
- responseType: 'json',
831
- security: [
832
- {
833
- name: 'Authorization',
834
- type: 'apiKey'
835
- }
836
- ],
837
- url: '/v1/stores/{storeId}/discord/links',
838
- ...options
839
- });
840
- }
841
- static createDiscordServerLink(options) {
842
- return (options.client ?? client_gen_1.client).post({
843
- responseType: 'json',
844
- security: [
845
- {
846
- name: 'Authorization',
847
- type: 'apiKey'
848
- }
849
- ],
850
- url: '/v1/stores/{storeId}/discord/links',
851
- ...options
852
- });
853
- }
854
- static deleteDiscordServerLinks(options) {
855
- return (options.client ?? client_gen_1.client).delete({
856
- responseType: 'json',
857
- security: [
858
- {
859
- name: 'Authorization',
860
- type: 'apiKey'
861
- }
862
- ],
863
- url: '/v1/stores/{storeId}/discord/links/{token}',
864
- ...options
865
- });
866
- }
867
- static getDiscordServerRoles(options) {
868
- return (options.client ?? client_gen_1.client).get({
869
- responseType: 'json',
870
- security: [
871
- {
872
- name: 'Authorization',
873
- type: 'apiKey'
874
- }
875
- ],
876
- url: '/v1/stores/{storeId}/discord/{discordServerId}/roles',
877
- ...options
878
- });
879
- }
880
- static getDiscordServerTextChannels(options) {
881
- return (options.client ?? client_gen_1.client).get({
882
- responseType: 'json',
883
- security: [
884
- {
885
- name: 'Authorization',
886
- type: 'apiKey'
887
- }
888
- ],
889
- url: '/v1/stores/{storeId}/discord/{discordServerId}/discord/text_channels',
890
- ...options
891
- });
892
- }
893
- }
894
- exports.Discord = Discord;
895
- class DownloadableFiles {
896
- static getDownloadableFiles(options) {
897
- return (options.client ?? client_gen_1.client).get({
898
- responseType: 'json',
899
- security: [
900
- {
901
- name: 'Authorization',
902
- type: 'apiKey'
903
- }
904
- ],
905
- url: '/v1/stores/{storeId}/products/{productId}/downloadable-files',
906
- ...options
907
- });
908
- }
909
- static startDownloadableFileUpload(options) {
910
- return (options.client ?? client_gen_1.client).post({
911
- security: [
912
- {
913
- name: 'Authorization',
914
- type: 'apiKey'
915
- }
916
- ],
917
- url: '/v1/stores/{storeId}/products/{productId}/downloadable-files',
918
- ...options,
919
- headers: {
920
- 'Content-Type': 'application/json',
921
- ...options.headers
922
- }
923
- });
924
- }
925
- static finishDownloadableFileUpload(options) {
926
- return (options.client ?? client_gen_1.client).post({
927
- security: [
928
- {
929
- name: 'Authorization',
930
- type: 'apiKey'
931
- }
932
- ],
933
- url: '/v1/stores/{storeId}/products/{productId}/downloadable-files/{downloadableFileId}/finish',
934
- ...options
935
- });
936
- }
937
- static createDownloadUrl(options) {
938
- return (options.client ?? client_gen_1.client).get({
939
- responseType: 'json',
940
- security: [
941
- {
942
- name: 'Authorization',
943
- type: 'apiKey'
944
- }
945
- ],
946
- url: '/v1/stores/{storeId}/products/{productId}/downloadable-files/{downloadableFileId}/download-url',
947
- ...options
948
- });
949
- }
950
- static deleteDownloadableFile(options) {
951
- return (options.client ?? client_gen_1.client).delete({
952
- security: [
953
- {
954
- name: 'Authorization',
955
- type: 'apiKey'
956
- }
957
- ],
958
- url: '/v1/stores/{storeId}/products/{productId}/downloadable-files/{downloadableFileId}',
959
- ...options
960
- });
961
- }
962
- }
963
- exports.DownloadableFiles = DownloadableFiles;
964
- class GameServers {
965
- /**
966
- * Get Game Servers for a store
967
- */
968
- static getGameServers(options) {
969
- return (options.client ?? client_gen_1.client).get({
970
- responseType: 'json',
971
- security: [
972
- {
973
- name: 'Authorization',
974
- type: 'apiKey'
975
- }
976
- ],
977
- url: '/v1/stores/{storeId}/gameservers',
978
- ...options
979
- });
980
- }
981
- /**
982
- * Create a new Game Server for a store
983
- */
984
- static createGameServer(options) {
985
- return (options.client ?? client_gen_1.client).post({
986
- responseType: 'json',
987
- security: [
988
- {
989
- name: 'Authorization',
990
- type: 'apiKey'
991
- }
992
- ],
993
- url: '/v1/stores/{storeId}/gameservers',
994
- ...options,
995
- headers: {
996
- 'Content-Type': 'application/json',
997
- ...options.headers
998
- }
999
- });
1000
- }
1001
- /**
1002
- * Delete a Game Server by ID for a store
1003
- */
1004
- static deleteGameServer(options) {
1005
- return (options.client ?? client_gen_1.client).delete({
1006
- security: [
1007
- {
1008
- name: 'Authorization',
1009
- type: 'apiKey'
1010
- }
1011
- ],
1012
- url: '/v1/stores/{storeId}/gameservers/{gameServerId}',
1013
- ...options
1014
- });
1015
- }
1016
- /**
1017
- * Get a Game Server by ID for a store
1018
- */
1019
- static getGameServer(options) {
1020
- return (options.client ?? client_gen_1.client).get({
1021
- responseType: 'json',
1022
- security: [
1023
- {
1024
- name: 'Authorization',
1025
- type: 'apiKey'
1026
- }
1027
- ],
1028
- url: '/v1/stores/{storeId}/gameservers/{gameServerId}',
1029
- ...options
1030
- });
1031
- }
1032
- /**
1033
- * Update a Game Server By ID for a store
1034
- */
1035
- static updateGameServer(options) {
1036
- return (options.client ?? client_gen_1.client).patch({
1037
- responseType: 'json',
1038
- security: [
1039
- {
1040
- name: 'Authorization',
1041
- type: 'apiKey'
1042
- }
1043
- ],
1044
- url: '/v1/stores/{storeId}/gameservers/{gameServerId}',
1045
- ...options,
1046
- headers: {
1047
- 'Content-Type': 'application/json',
1048
- ...options.headers
1049
- }
1050
- });
1051
- }
1052
- /**
1053
- * Reset the API Key Token for a Game Server for a store
1054
- */
1055
- static resetGameServerToken(options) {
1056
- return (options.client ?? client_gen_1.client).post({
1057
- responseType: 'json',
1058
- security: [
1059
- {
1060
- name: 'Authorization',
1061
- type: 'apiKey'
1062
- }
1063
- ],
1064
- url: '/v1/stores/{storeId}/gameservers/{gameServerId}/reset-token',
1065
- ...options
1066
- });
1067
- }
1068
- }
1069
- exports.GameServers = GameServers;
1070
- class Giftcards {
1071
- /**
1072
- * Get Gift Cards for a store
1073
- */
1074
- static getGiftCards(options) {
1075
- return (options.client ?? client_gen_1.client).get({
1076
- responseType: 'json',
1077
- security: [
1078
- {
1079
- name: 'Authorization',
1080
- type: 'apiKey'
1081
- }
1082
- ],
1083
- url: '/v1/stores/{storeId}/giftcards',
1084
- ...options
1085
- });
1086
- }
1087
- /**
1088
- * Create a Gift Card for a store
1089
- */
1090
- static createGiftCard(options) {
1091
- return (options.client ?? client_gen_1.client).post({
1092
- responseType: 'json',
1093
- security: [
1094
- {
1095
- name: 'Authorization',
1096
- type: 'apiKey'
1097
- }
1098
- ],
1099
- url: '/v1/stores/{storeId}/giftcards',
1100
- ...options,
1101
- headers: {
1102
- 'Content-Type': 'application/json',
1103
- ...options.headers
1104
- }
1105
- });
1106
- }
1107
- /**
1108
- * Delete a Gift Card By ID for a store
1109
- */
1110
- static deleteGiftCard(options) {
1111
- return (options.client ?? client_gen_1.client).delete({
1112
- responseType: 'json',
1113
- security: [
1114
- {
1115
- name: 'Authorization',
1116
- type: 'apiKey'
1117
- }
1118
- ],
1119
- url: '/v1/stores/{storeId}/giftcards/{giftCardId}',
1120
- ...options
1121
- });
1122
- }
1123
- /**
1124
- * Get a Gift Card By ID for a store
1125
- */
1126
- static getGiftCard(options) {
1127
- return (options.client ?? client_gen_1.client).get({
1128
- responseType: 'json',
1129
- security: [
1130
- {
1131
- name: 'Authorization',
1132
- type: 'apiKey'
1133
- }
1134
- ],
1135
- url: '/v1/stores/{storeId}/giftcards/{giftCardId}',
1136
- ...options
1137
- });
1138
- }
1139
- /**
1140
- * Update a Gift Card By ID for a store
1141
- */
1142
- static updateGiftCard(options) {
1143
- return (options.client ?? client_gen_1.client).patch({
1144
- responseType: 'json',
1145
- security: [
1146
- {
1147
- name: 'Authorization',
1148
- type: 'apiKey'
1149
- }
1150
- ],
1151
- url: '/v1/stores/{storeId}/giftcards/{giftCardId}',
1152
- ...options,
1153
- headers: {
1154
- 'Content-Type': 'application/json',
1155
- ...options.headers
1156
- }
1157
- });
1158
- }
1159
- }
1160
- exports.Giftcards = Giftcards;
1161
- class GlobalCommands {
1162
- /**
1163
- * Get global commands
1164
- * Retrieves all global commands for the specified store.
1165
- */
1166
- static getGlobalCommands(options) {
1167
- return (options.client ?? client_gen_1.client).get({
1168
- responseType: 'json',
1169
- security: [
1170
- {
1171
- name: 'Authorization',
1172
- type: 'apiKey'
1173
- }
1174
- ],
1175
- url: '/v1/stores/{storeId}/global-commands',
1176
- ...options
1177
- });
1178
- }
1179
- /**
1180
- * Create global command
1181
- * Creates a global command for a store.
1182
- */
1183
- static createGlobalCommand(options) {
1184
- return (options.client ?? client_gen_1.client).post({
1185
- responseType: 'json',
1186
- security: [
1187
- {
1188
- name: 'Authorization',
1189
- type: 'apiKey'
1190
- }
1191
- ],
1192
- url: '/v1/stores/{storeId}/global-commands',
1193
- ...options,
1194
- headers: {
1195
- 'Content-Type': 'application/json',
1196
- ...options.headers
1197
- }
1198
- });
1199
- }
1200
- /**
1201
- * Delete global command
1202
- * Deletes a global command for a store.
1203
- */
1204
- static deleteGlobalCommand(options) {
1205
- return (options.client ?? client_gen_1.client).delete({
1206
- security: [
1207
- {
1208
- name: 'Authorization',
1209
- type: 'apiKey'
1210
- }
1211
- ],
1212
- url: '/v1/stores/{storeId}/global-commands/{globalCommandId}',
1213
- ...options
1214
- });
1215
- }
1216
- /**
1217
- * Update global command
1218
- * Updates a global command for a store.
1219
- */
1220
- static updateGlobalCommand(options) {
1221
- return (options.client ?? client_gen_1.client).patch({
1222
- responseType: 'json',
1223
- security: [
1224
- {
1225
- name: 'Authorization',
1226
- type: 'apiKey'
1227
- }
1228
- ],
1229
- url: '/v1/stores/{storeId}/global-commands/{globalCommandId}',
1230
- ...options,
1231
- headers: {
1232
- 'Content-Type': 'application/json',
1233
- ...options.headers
1234
- }
1235
- });
1236
- }
1237
- }
1238
- exports.GlobalCommands = GlobalCommands;
1239
- class Marketing {
1240
- /**
1241
- * Gets the abandoned checkout behaviour for a store
1242
- */
1243
- static getStoreAbandonedCheckoutConfigurationOptions(options) {
1244
- return (options.client ?? client_gen_1.client).get({
1245
- responseType: 'json',
1246
- security: [
1247
- {
1248
- name: 'Authorization',
1249
- type: 'apiKey'
1250
- }
1251
- ],
1252
- url: '/v1/stores/{storeId}/marketing/abandoned-checkouts/configuration',
1253
- ...options
1254
- });
1255
- }
1256
- /**
1257
- * Sets the abandoned checkout behaviour for a store
1258
- */
1259
- static setStoreAbandonedCheckoutConfigurationOptions(options) {
1260
- return (options.client ?? client_gen_1.client).put({
1261
- responseType: 'json',
1262
- security: [
1263
- {
1264
- name: 'Authorization',
1265
- type: 'apiKey'
1266
- }
1267
- ],
1268
- url: '/v1/stores/{storeId}/marketing/abandoned-checkouts/configuration',
1269
- ...options,
1270
- headers: {
1271
- 'Content-Type': 'application/json',
1272
- ...options.headers
1273
- }
1274
- });
1275
- }
1276
- /**
1277
- * Gets the purchase follow up behaviour for a store
1278
- */
1279
- static getStorePurchaseFollowUpConfigurationOptions(options) {
1280
- return (options.client ?? client_gen_1.client).get({
1281
- responseType: 'json',
1282
- security: [
1283
- {
1284
- name: 'Authorization',
1285
- type: 'apiKey'
1286
- }
1287
- ],
1288
- url: '/v1/stores/{storeId}/marketing/purchase-follow-ups/configuration',
1289
- ...options
1290
- });
1291
- }
1292
- /**
1293
- * Sets the purchase follow up behaviour for a store
1294
- */
1295
- static setStorePurchaseFollowUpConfigurationOptions(options) {
1296
- return (options.client ?? client_gen_1.client).put({
1297
- responseType: 'json',
1298
- security: [
1299
- {
1300
- name: 'Authorization',
1301
- type: 'apiKey'
1302
- }
1303
- ],
1304
- url: '/v1/stores/{storeId}/marketing/purchase-follow-ups/configuration',
1305
- ...options,
1306
- headers: {
1307
- 'Content-Type': 'application/json',
1308
- ...options.headers
1309
- }
1310
- });
1311
- }
1312
- }
1313
- exports.Marketing = Marketing;
1314
- class Navlinks {
1315
- /**
1316
- * Get all NavLinks for a store
1317
- */
1318
- static getNavLinks(options) {
1319
- return (options.client ?? client_gen_1.client).get({
1320
- responseType: 'json',
1321
- security: [
1322
- {
1323
- name: 'Authorization',
1324
- type: 'apiKey'
1325
- }
1326
- ],
1327
- url: '/v1/stores/{storeId}/navlinks',
1328
- ...options
1329
- });
1330
- }
1331
- /**
1332
- * Create a new NavLink for a store
1333
- */
1334
- static createNavLink(options) {
1335
- return (options.client ?? client_gen_1.client).post({
1336
- responseType: 'json',
1337
- security: [
1338
- {
1339
- name: 'Authorization',
1340
- type: 'apiKey'
1341
- }
1342
- ],
1343
- url: '/v1/stores/{storeId}/navlinks',
1344
- ...options,
1345
- headers: {
1346
- 'Content-Type': 'application/json',
1347
- ...options.headers
1348
- }
1349
- });
1350
- }
1351
- /**
1352
- * Delete a NavLink for a store
1353
- */
1354
- static deleteNavLink(options) {
1355
- return (options.client ?? client_gen_1.client).delete({
1356
- security: [
1357
- {
1358
- name: 'Authorization',
1359
- type: 'apiKey'
1360
- }
1361
- ],
1362
- url: '/v1/stores/{storeId}/navlinks/{navLinkId}',
1363
- ...options
1364
- });
1365
- }
1366
- /**
1367
- * Get a NavLink by ID for a store
1368
- */
1369
- static getNavLink(options) {
1370
- return (options.client ?? client_gen_1.client).get({
1371
- responseType: 'json',
1372
- security: [
1373
- {
1374
- name: 'Authorization',
1375
- type: 'apiKey'
1376
- }
1377
- ],
1378
- url: '/v1/stores/{storeId}/navlinks/{navLinkId}',
1379
- ...options
1380
- });
1381
- }
1382
- /**
1383
- * Update a NavLink By ID for a store
1384
- */
1385
- static updateNavLink(options) {
1386
- return (options.client ?? client_gen_1.client).patch({
1387
- responseType: 'json',
1388
- security: [
1389
- {
1390
- name: 'Authorization',
1391
- type: 'apiKey'
1392
- }
1393
- ],
1394
- url: '/v1/stores/{storeId}/navlinks/{navLinkId}',
1395
- ...options,
1396
- headers: {
1397
- 'Content-Type': 'application/json',
1398
- ...options.headers
1399
- }
1400
- });
1401
- }
1402
- /**
1403
- * Update the sort orders of NavLinks for a Store
1404
- */
1405
- static updateNavLinkOrder(options) {
1406
- return (options.client ?? client_gen_1.client).patch({
1407
- security: [
1408
- {
1409
- name: 'Authorization',
1410
- type: 'apiKey'
1411
- }
1412
- ],
1413
- url: '/v1/stores/{storeId}/navlinks/sort-orders',
1414
- ...options,
1415
- headers: {
1416
- 'Content-Type': 'application/json',
1417
- ...options.headers
1418
- }
1419
- });
1420
- }
1421
- }
1422
- exports.Navlinks = Navlinks;
1423
- class Orders {
1424
- /**
1425
- * Get orders
1426
- * Retrieves all orders for the specified store.
1427
- */
1428
- static getOrders(options) {
1429
- return (options.client ?? client_gen_1.client).get({
1430
- responseType: 'json',
1431
- security: [
1432
- {
1433
- name: 'Authorization',
1434
- type: 'apiKey'
1435
- }
1436
- ],
1437
- url: '/v1/stores/{storeId}/orders',
1438
- ...options
1439
- });
1440
- }
1441
- /**
1442
- * Get order by ID
1443
- * Retrieves an order by the ID for the specified store.
1444
- */
1445
- static getOrderById(options) {
1446
- return (options.client ?? client_gen_1.client).get({
1447
- responseType: 'json',
1448
- security: [
1449
- {
1450
- name: 'Authorization',
1451
- type: 'apiKey'
1452
- }
1453
- ],
1454
- url: '/v1/stores/{storeId}/orders/{orderId}',
1455
- ...options
1456
- });
1457
- }
1458
- /**
1459
- * Refund order by ID
1460
- * Creates a refund for an order by the ID for the specified store.
1461
- */
1462
- static refundOrder(options) {
1463
- return (options.client ?? client_gen_1.client).post({
1464
- responseType: 'json',
1465
- security: [
1466
- {
1467
- name: 'Authorization',
1468
- type: 'apiKey'
1469
- }
1470
- ],
1471
- url: '/v1/stores/{storeId}/orders/{orderId}/refund',
1472
- ...options,
1473
- headers: {
1474
- 'Content-Type': 'application/json',
1475
- ...options.headers
1476
- }
1477
- });
1478
- }
1479
- }
1480
- exports.Orders = Orders;
1481
- class Products {
1482
- /**
1483
- * Get products
1484
- * Retrieves all products for the specified store.
1485
- * DO NOT USE THIS ROUTE FOR DISPLAYING PRODUCTS ON YOUR STOREFRONT, use the storefront API instead.
1486
- */
1487
- static getProducts(options) {
1488
- return (options.client ?? client_gen_1.client).get({
1489
- responseType: 'json',
1490
- security: [
1491
- {
1492
- name: 'Authorization',
1493
- type: 'apiKey'
1494
- }
1495
- ],
1496
- url: '/v1/stores/{storeId}/products',
1497
- ...options
1498
- });
1499
- }
1500
- /**
1501
- * Create product
1502
- * Creates a new product in the specified store.
1503
- * Creating dynamic products while creating a checkout session via this endpoint without prior approval is prohibited and will result in store deactivation per our User Agreement.
1504
- */
1505
- static createProduct(options) {
1506
- return (options.client ?? client_gen_1.client).post({
1507
- responseType: 'json',
1508
- security: [
1509
- {
1510
- name: 'Authorization',
1511
- type: 'apiKey'
1512
- }
1513
- ],
1514
- url: '/v1/stores/{storeId}/products',
1515
- ...options,
1516
- headers: {
1517
- 'Content-Type': 'application/json',
1518
- ...options.headers
1519
- }
1520
- });
1521
- }
1522
- /**
1523
- * Delete product
1524
- * Deletes a product from the specified store.
1525
- */
1526
- static deleteProduct(options) {
1527
- return (options.client ?? client_gen_1.client).delete({
1528
- security: [
1529
- {
1530
- name: 'Authorization',
1531
- type: 'apiKey'
1532
- }
1533
- ],
1534
- url: '/v1/stores/{storeId}/products/{productId}',
1535
- ...options
1536
- });
1537
- }
1538
- /**
1539
- * Get product
1540
- * Retrieves a specific product by ID from the specified store.
1541
- * DO NOT USE THIS ROUTE FOR DISPLAYING PRODUCTS ON YOUR STOREFRONT, use the storefront API instead.
1542
- */
1543
- static getProduct(options) {
1544
- return (options.client ?? client_gen_1.client).get({
1545
- responseType: 'json',
1546
- security: [
1547
- {
1548
- name: 'Authorization',
1549
- type: 'apiKey'
1550
- }
1551
- ],
1552
- url: '/v1/stores/{storeId}/products/{productId}',
1553
- ...options
1554
- });
1555
- }
1556
- /**
1557
- * Update product
1558
- * Updates an existing product in the specified store.
1559
- */
1560
- static updateProduct(options) {
1561
- return (options.client ?? client_gen_1.client).patch({
1562
- responseType: 'json',
1563
- security: [
1564
- {
1565
- name: 'Authorization',
1566
- type: 'apiKey'
1567
- }
1568
- ],
1569
- url: '/v1/stores/{storeId}/products/{productId}',
1570
- ...options,
1571
- headers: {
1572
- 'Content-Type': 'application/json',
1573
- ...options.headers
1574
- }
1575
- });
1576
- }
1577
- /**
1578
- * Update product sort order
1579
- * Updates the sort order of products in the specified store.
1580
- */
1581
- static updateProductSortOrder(options) {
1582
- return (options.client ?? client_gen_1.client).post({
1583
- responseType: 'json',
1584
- security: [
1585
- {
1586
- name: 'Authorization',
1587
- type: 'apiKey'
1588
- }
1589
- ],
1590
- url: '/v1/stores/{storeId}/products/sort-order',
1591
- ...options,
1592
- headers: {
1593
- 'Content-Type': 'application/json',
1594
- ...options.headers
1595
- }
1596
- });
1597
- }
1598
- }
1599
- exports.Products = Products;
1600
- class RegionalPricing {
1601
- static getProductPricingRegions(options) {
1602
- return (options.client ?? client_gen_1.client).get({
1603
- responseType: 'json',
1604
- security: [
1605
- {
1606
- name: 'Authorization',
1607
- type: 'apiKey'
1608
- }
1609
- ],
1610
- url: '/v1/stores/{storeId}/products/{productId}/pricing/regions',
1611
- ...options
1612
- });
1613
- }
1614
- static setProductPricingRegionOverride(options) {
1615
- return (options.client ?? client_gen_1.client).patch({
1616
- security: [
1617
- {
1618
- name: 'Authorization',
1619
- type: 'apiKey'
1620
- }
1621
- ],
1622
- url: '/v1/stores/{storeId}/products/{productId}/pricing/regions/{regionId}',
1623
- ...options,
1624
- headers: {
1625
- 'Content-Type': 'application/json',
1626
- ...options.headers
1627
- }
1628
- });
1629
- }
1630
- static getStorePricingRegions(options) {
1631
- return (options.client ?? client_gen_1.client).get({
1632
- responseType: 'json',
1633
- security: [
1634
- {
1635
- name: 'Authorization',
1636
- type: 'apiKey'
1637
- }
1638
- ],
1639
- url: '/v1/stores/{storeId}/products/pricing/regions',
1640
- ...options
1641
- });
1642
- }
1643
- static setStorePricingRegionOverride(options) {
1644
- return (options.client ?? client_gen_1.client).patch({
1645
- security: [
1646
- {
1647
- name: 'Authorization',
1648
- type: 'apiKey'
1649
- }
1650
- ],
1651
- url: '/v1/stores/{storeId}/products/pricing/regions/{regionId}',
1652
- ...options,
1653
- headers: {
1654
- 'Content-Type': 'application/json',
1655
- ...options.headers
1656
- }
1657
- });
1658
- }
1659
- static getStorePricingRegionGroups(options) {
1660
- return (options.client ?? client_gen_1.client).get({
1661
- responseType: 'json',
1662
- security: [
1663
- {
1664
- name: 'Authorization',
1665
- type: 'apiKey'
1666
- }
1667
- ],
1668
- url: '/v1/stores/{storeId}/products/pricing/region-groups',
1669
- ...options
1670
- });
1671
- }
1672
- }
1673
- exports.RegionalPricing = RegionalPricing;
1674
- class Sales {
1675
- /**
1676
- * Get sales associated with a store.
1677
- */
1678
- static getSales(options) {
1679
- return (options.client ?? client_gen_1.client).get({
1680
- responseType: 'json',
1681
- security: [
1682
- {
1683
- name: 'Authorization',
1684
- type: 'apiKey'
1685
- }
1686
- ],
1687
- url: '/v1/stores/{storeId}/sales',
1688
- ...options
1689
- });
1690
- }
1691
- /**
1692
- * Create a sale by ID for a store
1693
- */
1694
- static createSale(options) {
1695
- return (options.client ?? client_gen_1.client).post({
1696
- responseType: 'json',
1697
- security: [
1698
- {
1699
- name: 'Authorization',
1700
- type: 'apiKey'
1701
- }
1702
- ],
1703
- url: '/v1/stores/{storeId}/sales',
1704
- ...options,
1705
- headers: {
1706
- 'Content-Type': 'application/json',
1707
- ...options.headers
1708
- }
1709
- });
1710
- }
1711
- /**
1712
- * Delete a sale by ID for a store
1713
- */
1714
- static deleteSaleById(options) {
1715
- return (options.client ?? client_gen_1.client).delete({
1716
- security: [
1717
- {
1718
- name: 'Authorization',
1719
- type: 'apiKey'
1720
- }
1721
- ],
1722
- url: '/v1/stores/{storeId}/sales/{saleId}',
1723
- ...options
1724
- });
1725
- }
1726
- /**
1727
- * Get a sale by ID for a store
1728
- */
1729
- static getSale(options) {
1730
- return (options.client ?? client_gen_1.client).get({
1731
- responseType: 'json',
1732
- security: [
1733
- {
1734
- name: 'Authorization',
1735
- type: 'apiKey'
1736
- }
1737
- ],
1738
- url: '/v1/stores/{storeId}/sales/{saleId}',
1739
- ...options
1740
- });
1741
- }
1742
- /**
1743
- * Update a sale by ID for a store
1744
- */
1745
- static updateSale(options) {
1746
- return (options.client ?? client_gen_1.client).patch({
1747
- responseType: 'json',
1748
- security: [
1749
- {
1750
- name: 'Authorization',
1751
- type: 'apiKey'
1752
- }
1753
- ],
1754
- url: '/v1/stores/{storeId}/sales/{saleId}',
1755
- ...options,
1756
- headers: {
1757
- 'Content-Type': 'application/json',
1758
- ...options.headers
1759
- }
1760
- });
1761
- }
1762
- }
1763
- exports.Sales = Sales;
1764
- class Subscriptions {
1765
- /**
1766
- * Get subscriptions
1767
- * Retrieves all subscriptions for the specified store.
1768
- */
1769
- static getSubscriptions(options) {
1770
- return (options.client ?? client_gen_1.client).get({
1771
- responseType: 'json',
1772
- security: [
1773
- {
1774
- name: 'Authorization',
1775
- type: 'apiKey'
1776
- }
1777
- ],
1778
- url: '/v1/stores/{storeId}/subscriptions',
1779
- ...options
1780
- });
1781
- }
1782
- /**
1783
- * Get subscription by ID
1784
- * Retrieves a subscription for the specified store by the supplied ID.
1785
- */
1786
- static getSubscriptionById(options) {
1787
- return (options.client ?? client_gen_1.client).get({
1788
- responseType: 'json',
1789
- security: [
1790
- {
1791
- name: 'Authorization',
1792
- type: 'apiKey'
1793
- }
1794
- ],
1795
- url: '/v1/stores/{storeId}/subscriptions/{subscriptionId}',
1796
- ...options
1797
- });
1798
- }
1799
- /**
1800
- * Cancel subscription by ID
1801
- * Cancels a subscription for the specified store by the supplied ID.
1802
- */
1803
- static cancelSubscription(options) {
1804
- return (options.client ?? client_gen_1.client).post({
1805
- security: [
1806
- {
1807
- name: 'Authorization',
1808
- type: 'apiKey'
1809
- }
1810
- ],
1811
- url: '/v1/stores/{storeId}/subscriptions/{subscriptionId}/cancel',
1812
- ...options
1813
- });
1814
- }
1815
- }
1816
- exports.Subscriptions = Subscriptions;
1817
- class Tags {
1818
- /**
1819
- * Get all tags for a store
1820
- */
1821
- static getTags(options) {
1822
- return (options.client ?? client_gen_1.client).get({
1823
- responseType: 'json',
1824
- security: [
1825
- {
1826
- name: 'Authorization',
1827
- type: 'apiKey'
1828
- }
1829
- ],
1830
- url: '/v1/stores/{storeId}/tags',
1831
- ...options
1832
- });
1833
- }
1834
- /**
1835
- * Create a new tag
1836
- */
1837
- static createTag(options) {
1838
- return (options.client ?? client_gen_1.client).post({
1839
- responseType: 'json',
1840
- security: [
1841
- {
1842
- name: 'Authorization',
1843
- type: 'apiKey'
1844
- }
1845
- ],
1846
- url: '/v1/stores/{storeId}/tags',
1847
- ...options,
1848
- headers: {
1849
- 'Content-Type': 'application/json',
1850
- ...options.headers
1851
- }
1852
- });
1853
- }
1854
- /**
1855
- * Delete a tag by ID
1856
- */
1857
- static deleteTag(options) {
1858
- return (options.client ?? client_gen_1.client).delete({
1859
- security: [
1860
- {
1861
- name: 'Authorization',
1862
- type: 'apiKey'
1863
- }
1864
- ],
1865
- url: '/v1/stores/{storeId}/tags/{tagId}',
1866
- ...options
1867
- });
1868
- }
1869
- /**
1870
- * Get a tag by an ID
1871
- */
1872
- static getTag(options) {
1873
- return (options.client ?? client_gen_1.client).get({
1874
- responseType: 'json',
1875
- security: [
1876
- {
1877
- name: 'Authorization',
1878
- type: 'apiKey'
1879
- }
1880
- ],
1881
- url: '/v1/stores/{storeId}/tags/{tagId}',
1882
- ...options
1883
- });
1884
- }
1885
- /**
1886
- * Update a tag by ID
1887
- */
1888
- static updateTag(options) {
1889
- return (options.client ?? client_gen_1.client).patch({
1890
- responseType: 'json',
1891
- security: [
1892
- {
1893
- name: 'Authorization',
1894
- type: 'apiKey'
1895
- }
1896
- ],
1897
- url: '/v1/stores/{storeId}/tags/{tagId}',
1898
- ...options,
1899
- headers: {
1900
- 'Content-Type': 'application/json',
1901
- ...options.headers
1902
- }
1903
- });
1904
- }
1905
- /**
1906
- * Get upload URL for tag image
1907
- * Gets a pre-signed upload URL for uploading an image to a tag
1908
- */
1909
- static getTagImageUploadUrl(options) {
1910
- return (options.client ?? client_gen_1.client).get({
1911
- responseType: 'json',
1912
- security: [
1913
- {
1914
- name: 'Authorization',
1915
- type: 'apiKey'
1916
- }
1917
- ],
1918
- url: '/v1/stores/{storeId}/tags/{tagId}/image-upload-url',
1919
- ...options
1920
- });
1921
- }
1922
- /**
1923
- * Finish tag image upload
1924
- * Finishes an image upload for a tag
1925
- */
1926
- static finishTagImageUpload(options) {
1927
- return (options.client ?? client_gen_1.client).post({
1928
- security: [
1929
- {
1930
- name: 'Authorization',
1931
- type: 'apiKey'
1932
- }
1933
- ],
1934
- url: '/v1/stores/{storeId}/tags/{tagId}/image-upload-finish',
1935
- ...options,
1936
- headers: {
1937
- 'Content-Type': 'application/json',
1938
- ...options.headers
1939
- }
1940
- });
1941
- }
1942
- /**
1943
- * Delete tag image
1944
- * Deletes an image for a tag
1945
- */
1946
- static deleteTagImage(options) {
1947
- return (options.client ?? client_gen_1.client).delete({
1948
- security: [
1949
- {
1950
- name: 'Authorization',
1951
- type: 'apiKey'
1952
- }
1953
- ],
1954
- url: '/v1/stores/{storeId}/tags/{tagId}/image',
1955
- ...options
1956
- });
1957
- }
1958
- }
1959
- exports.Tags = Tags;
1960
- class TrialEligibility {
1961
- /**
1962
- * Get trial eligibility overrides
1963
- * Retrieves all trial eligibility overrides for the specified customer.
1964
- */
1965
- static getOverrides(options) {
1966
- return (options.client ?? client_gen_1.client).get({
1967
- responseType: 'json',
1968
- security: [
1969
- {
1970
- name: 'Authorization',
1971
- type: 'apiKey'
1972
- }
1973
- ],
1974
- url: '/v1/stores/{storeId}/customers/{customerId}/trial-eligibility/overrides',
1975
- ...options
1976
- });
1977
- }
1978
- /**
1979
- * Create trial eligibility override
1980
- * Creates a new trial eligibility override for the specified customer.
1981
- */
1982
- static createOverride(options) {
1983
- return (options.client ?? client_gen_1.client).post({
1984
- responseType: 'json',
1985
- security: [
1986
- {
1987
- name: 'Authorization',
1988
- type: 'apiKey'
1989
- }
1990
- ],
1991
- url: '/v1/stores/{storeId}/customers/{customerId}/trial-eligibility/overrides',
1992
- ...options,
1993
- headers: {
1994
- 'Content-Type': 'application/json',
1995
- ...options.headers
1996
- }
1997
- });
1998
- }
1999
- /**
2000
- * Delete trial eligibility override
2001
- * Deletes an existing trial eligibility override.
2002
- */
2003
- static deleteOverride(options) {
2004
- return (options.client ?? client_gen_1.client).delete({
2005
- security: [
2006
- {
2007
- name: 'Authorization',
2008
- type: 'apiKey'
2009
- }
2010
- ],
2011
- url: '/v1/stores/{storeId}/customers/{customerId}/trial-eligibility/overrides/{trialEligibilityOverrideId}',
2012
- ...options
2013
- });
2014
- }
2015
- }
2016
- exports.TrialEligibility = TrialEligibility;
2017
- class Trials {
2018
- /**
2019
- * Get trials for a store
2020
- */
2021
- static getTrials(options) {
2022
- return (options.client ?? client_gen_1.client).get({
2023
- responseType: 'json',
2024
- security: [
2025
- {
2026
- name: 'Authorization',
2027
- type: 'apiKey'
2028
- }
2029
- ],
2030
- url: '/v1/stores/{storeId}/trials',
2031
- ...options
2032
- });
2033
- }
2034
- /**
2035
- * Get a trial by ID for a store
2036
- */
2037
- static getTrial(options) {
2038
- return (options.client ?? client_gen_1.client).get({
2039
- responseType: 'json',
2040
- security: [
2041
- {
2042
- name: 'Authorization',
2043
- type: 'apiKey'
2044
- }
2045
- ],
2046
- url: '/v1/stores/{storeId}/trials/{trialId}',
2047
- ...options
2048
- });
2049
- }
2050
- }
2051
- exports.Trials = Trials;
2052
- class Trust {
2053
- static getStoreOnboardingStatus(options) {
2054
- return (options.client ?? client_gen_1.client).get({
2055
- responseType: 'json',
2056
- security: [
2057
- {
2058
- name: 'Authorization',
2059
- type: 'apiKey'
2060
- }
2061
- ],
2062
- url: '/v1/stores/{storeId}/trust/onboarding/status',
2063
- ...options
2064
- });
2065
- }
2066
- static getStoreTrustRequirements(options) {
2067
- return (options.client ?? client_gen_1.client).get({
2068
- responseType: 'json',
2069
- security: [
2070
- {
2071
- name: 'Authorization',
2072
- type: 'apiKey'
2073
- }
2074
- ],
2075
- url: '/v1/stores/{storeId}/trust/requirements',
2076
- ...options
2077
- });
2078
- }
2079
- }
2080
- exports.Trust = Trust;
2081
- class Webhooks {
2082
- static getSubscriptions(options) {
2083
- return (options.client ?? client_gen_1.client).get({
2084
- responseType: 'json',
2085
- security: [
2086
- {
2087
- name: 'Authorization',
2088
- type: 'apiKey'
2089
- }
2090
- ],
2091
- url: '/v1/stores/{storeId}/webhooks',
2092
- ...options
2093
- });
2094
- }
2095
- static createSubscription(options) {
2096
- return (options.client ?? client_gen_1.client).post({
2097
- responseType: 'json',
2098
- security: [
2099
- {
2100
- name: 'Authorization',
2101
- type: 'apiKey'
2102
- }
2103
- ],
2104
- url: '/v1/stores/{storeId}/webhooks',
2105
- ...options,
2106
- headers: {
2107
- 'Content-Type': 'application/json',
2108
- ...options.headers
2109
- }
2110
- });
2111
- }
2112
- static getVariables(options) {
2113
- return (options.client ?? client_gen_1.client).get({
2114
- responseType: 'json',
2115
- security: [
2116
- {
2117
- name: 'Authorization',
2118
- type: 'apiKey'
2119
- }
2120
- ],
2121
- url: '/v1/stores/{storeId}/webhooks/variables',
2122
- ...options
2123
- });
2124
- }
2125
- static deleteSubscription(options) {
2126
- return (options.client ?? client_gen_1.client).delete({
2127
- security: [
2128
- {
2129
- name: 'Authorization',
2130
- type: 'apiKey'
2131
- }
2132
- ],
2133
- url: '/v1/stores/{storeId}/webhooks/{webhookId}',
2134
- ...options
2135
- });
2136
- }
2137
- static updateSubscription(options) {
2138
- return (options.client ?? client_gen_1.client).patch({
2139
- responseType: 'json',
2140
- security: [
2141
- {
2142
- name: 'Authorization',
2143
- type: 'apiKey'
2144
- }
2145
- ],
2146
- url: '/v1/stores/{storeId}/webhooks/{webhookId}',
2147
- ...options,
2148
- headers: {
2149
- 'Content-Type': 'application/json',
2150
- ...options.headers
2151
- }
2152
- });
2153
- }
2154
- static getHistory(options) {
2155
- return (options.client ?? client_gen_1.client).get({
2156
- responseType: 'json',
2157
- security: [
2158
- {
2159
- name: 'Authorization',
2160
- type: 'apiKey'
2161
- }
2162
- ],
2163
- url: '/v1/stores/{storeId}/webhooks/{webhookId}/history',
2164
- ...options
2165
- });
2166
- }
2167
- }
2168
- exports.Webhooks = Webhooks;
2169
- //# sourceMappingURL=sdk.gen.js.map