@whop/sdk 0.0.2 → 0.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.
Files changed (196) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/client.d.mts +30 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +30 -12
  5. package/client.d.ts.map +1 -1
  6. package/client.js +19 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +21 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/app-builds.d.mts +16 -13
  12. package/resources/app-builds.d.mts.map +1 -1
  13. package/resources/app-builds.d.ts +16 -13
  14. package/resources/app-builds.d.ts.map +1 -1
  15. package/resources/app-builds.js +1 -1
  16. package/resources/app-builds.mjs +1 -1
  17. package/resources/apps.d.mts +15 -10
  18. package/resources/apps.d.mts.map +1 -1
  19. package/resources/apps.d.ts +15 -10
  20. package/resources/apps.d.ts.map +1 -1
  21. package/resources/checkout-configurations.d.mts +252 -140
  22. package/resources/checkout-configurations.d.mts.map +1 -1
  23. package/resources/checkout-configurations.d.ts +252 -140
  24. package/resources/checkout-configurations.d.ts.map +1 -1
  25. package/resources/checkout-configurations.js +6 -20
  26. package/resources/checkout-configurations.js.map +1 -1
  27. package/resources/checkout-configurations.mjs +6 -20
  28. package/resources/checkout-configurations.mjs.map +1 -1
  29. package/resources/companies.d.mts +157 -0
  30. package/resources/companies.d.mts.map +1 -1
  31. package/resources/companies.d.ts +157 -0
  32. package/resources/companies.d.ts.map +1 -1
  33. package/resources/companies.js +22 -0
  34. package/resources/companies.js.map +1 -1
  35. package/resources/companies.mjs +22 -0
  36. package/resources/companies.mjs.map +1 -1
  37. package/resources/course-chapters.d.mts +185 -0
  38. package/resources/course-chapters.d.mts.map +1 -0
  39. package/resources/course-chapters.d.ts +185 -0
  40. package/resources/course-chapters.d.ts.map +1 -0
  41. package/resources/course-chapters.js +103 -0
  42. package/resources/course-chapters.js.map +1 -0
  43. package/resources/course-chapters.mjs +99 -0
  44. package/resources/course-chapters.mjs.map +1 -0
  45. package/resources/course-lesson-interactions.d.mts +2 -2
  46. package/resources/course-lesson-interactions.d.ts +2 -2
  47. package/resources/course-lesson-interactions.js +2 -2
  48. package/resources/course-lesson-interactions.mjs +2 -2
  49. package/resources/course-lessons.d.mts +563 -0
  50. package/resources/course-lessons.d.mts.map +1 -0
  51. package/resources/course-lessons.d.ts +563 -0
  52. package/resources/course-lessons.d.ts.map +1 -0
  53. package/resources/course-lessons.js +101 -0
  54. package/resources/course-lessons.js.map +1 -0
  55. package/resources/course-lessons.mjs +97 -0
  56. package/resources/course-lessons.mjs.map +1 -0
  57. package/resources/course-students.d.mts +187 -0
  58. package/resources/course-students.d.mts.map +1 -0
  59. package/resources/course-students.d.ts +187 -0
  60. package/resources/course-students.d.ts.map +1 -0
  61. package/resources/course-students.js +36 -0
  62. package/resources/course-students.js.map +1 -0
  63. package/resources/course-students.mjs +32 -0
  64. package/resources/course-students.mjs.map +1 -0
  65. package/resources/courses.d.mts +485 -0
  66. package/resources/courses.d.mts.map +1 -0
  67. package/resources/courses.d.ts +485 -0
  68. package/resources/courses.d.ts.map +1 -0
  69. package/resources/courses.js +98 -0
  70. package/resources/courses.js.map +1 -0
  71. package/resources/courses.mjs +94 -0
  72. package/resources/courses.mjs.map +1 -0
  73. package/resources/experiences.d.mts +42 -11
  74. package/resources/experiences.d.mts.map +1 -1
  75. package/resources/experiences.d.ts +42 -11
  76. package/resources/experiences.d.ts.map +1 -1
  77. package/resources/experiences.js +22 -0
  78. package/resources/experiences.js.map +1 -1
  79. package/resources/experiences.mjs +22 -0
  80. package/resources/experiences.mjs.map +1 -1
  81. package/resources/forum-posts.d.mts +75 -10
  82. package/resources/forum-posts.d.mts.map +1 -1
  83. package/resources/forum-posts.d.ts +75 -10
  84. package/resources/forum-posts.d.ts.map +1 -1
  85. package/resources/forum-posts.js +11 -0
  86. package/resources/forum-posts.js.map +1 -1
  87. package/resources/forum-posts.mjs +11 -0
  88. package/resources/forum-posts.mjs.map +1 -1
  89. package/resources/index.d.mts +12 -6
  90. package/resources/index.d.mts.map +1 -1
  91. package/resources/index.d.ts +12 -6
  92. package/resources/index.d.ts.map +1 -1
  93. package/resources/index.js +13 -1
  94. package/resources/index.js.map +1 -1
  95. package/resources/index.mjs +7 -1
  96. package/resources/index.mjs.map +1 -1
  97. package/resources/invoices.d.mts +529 -146
  98. package/resources/invoices.d.mts.map +1 -1
  99. package/resources/invoices.d.ts +529 -146
  100. package/resources/invoices.d.ts.map +1 -1
  101. package/resources/invoices.js +2 -24
  102. package/resources/invoices.js.map +1 -1
  103. package/resources/invoices.mjs +2 -24
  104. package/resources/invoices.mjs.map +1 -1
  105. package/resources/ledger-accounts.d.mts +1 -1
  106. package/resources/ledger-accounts.d.mts.map +1 -1
  107. package/resources/ledger-accounts.d.ts +1 -1
  108. package/resources/ledger-accounts.d.ts.map +1 -1
  109. package/resources/members.d.mts +4 -0
  110. package/resources/members.d.mts.map +1 -1
  111. package/resources/members.d.ts +4 -0
  112. package/resources/members.d.ts.map +1 -1
  113. package/resources/memberships.d.mts +26 -5
  114. package/resources/memberships.d.mts.map +1 -1
  115. package/resources/memberships.d.ts +26 -5
  116. package/resources/memberships.d.ts.map +1 -1
  117. package/resources/memberships.js +1 -1
  118. package/resources/memberships.js.map +1 -1
  119. package/resources/memberships.mjs +1 -1
  120. package/resources/memberships.mjs.map +1 -1
  121. package/resources/messages.d.mts +57 -10
  122. package/resources/messages.d.mts.map +1 -1
  123. package/resources/messages.d.ts +57 -10
  124. package/resources/messages.d.ts.map +1 -1
  125. package/resources/messages.js +6 -0
  126. package/resources/messages.js.map +1 -1
  127. package/resources/messages.mjs +6 -0
  128. package/resources/messages.mjs.map +1 -1
  129. package/resources/payments.d.mts +35 -13
  130. package/resources/payments.d.mts.map +1 -1
  131. package/resources/payments.d.ts +35 -13
  132. package/resources/payments.d.ts.map +1 -1
  133. package/resources/plans.d.mts +161 -17
  134. package/resources/plans.d.mts.map +1 -1
  135. package/resources/plans.d.ts +161 -17
  136. package/resources/plans.d.ts.map +1 -1
  137. package/resources/plans.js.map +1 -1
  138. package/resources/plans.mjs.map +1 -1
  139. package/resources/products.d.mts +30 -33
  140. package/resources/products.d.mts.map +1 -1
  141. package/resources/products.d.ts +30 -33
  142. package/resources/products.d.ts.map +1 -1
  143. package/resources/promo-codes.d.mts +394 -0
  144. package/resources/promo-codes.d.mts.map +1 -0
  145. package/resources/promo-codes.d.ts +394 -0
  146. package/resources/promo-codes.d.ts.map +1 -0
  147. package/resources/promo-codes.js +91 -0
  148. package/resources/promo-codes.js.map +1 -0
  149. package/resources/promo-codes.mjs +87 -0
  150. package/resources/promo-codes.mjs.map +1 -0
  151. package/resources/reviews.d.mts +277 -0
  152. package/resources/reviews.d.mts.map +1 -0
  153. package/resources/reviews.d.ts +277 -0
  154. package/resources/reviews.d.ts.map +1 -0
  155. package/resources/reviews.js +23 -0
  156. package/resources/reviews.js.map +1 -0
  157. package/resources/reviews.mjs +19 -0
  158. package/resources/reviews.mjs.map +1 -0
  159. package/resources/shared.d.mts +117 -14
  160. package/resources/shared.d.mts.map +1 -1
  161. package/resources/shared.d.ts +117 -14
  162. package/resources/shared.d.ts.map +1 -1
  163. package/resources/transfers.d.mts +12 -0
  164. package/resources/transfers.d.mts.map +1 -1
  165. package/resources/transfers.d.ts +12 -0
  166. package/resources/transfers.d.ts.map +1 -1
  167. package/src/client.ts +166 -11
  168. package/src/resources/app-builds.ts +19 -14
  169. package/src/resources/apps.ts +16 -11
  170. package/src/resources/checkout-configurations.ts +278 -143
  171. package/src/resources/companies.ts +196 -0
  172. package/src/resources/course-chapters.ts +236 -0
  173. package/src/resources/course-lesson-interactions.ts +2 -2
  174. package/src/resources/course-lessons.ts +699 -0
  175. package/src/resources/course-students.ts +238 -0
  176. package/src/resources/courses.ts +622 -0
  177. package/src/resources/experiences.ts +54 -11
  178. package/src/resources/forum-posts.ts +95 -10
  179. package/src/resources/index.ts +73 -2
  180. package/src/resources/invoices.ts +620 -149
  181. package/src/resources/ledger-accounts.ts +13 -1
  182. package/src/resources/members.ts +5 -0
  183. package/src/resources/memberships.ts +31 -6
  184. package/src/resources/messages.ts +74 -10
  185. package/src/resources/payments.ts +146 -19
  186. package/src/resources/plans.ts +184 -17
  187. package/src/resources/products.ts +36 -37
  188. package/src/resources/promo-codes.ts +490 -0
  189. package/src/resources/reviews.ts +348 -0
  190. package/src/resources/shared.ts +128 -14
  191. package/src/resources/transfers.ts +10 -0
  192. package/src/version.ts +1 -1
  193. package/version.d.mts +1 -1
  194. package/version.d.ts +1 -1
  195. package/version.js +1 -1
  196. package/version.mjs +1 -1
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
+ import * as PaymentsAPI from './payments';
4
5
  import * as Shared from './shared';
5
6
  import { APIPromise } from '../core/api-promise';
6
7
  import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
@@ -175,6 +176,11 @@ export interface PlanListResponse {
175
176
  */
176
177
  member_count: number | null;
177
178
 
179
+ /**
180
+ * The explicit payment method configuration for the plan, if any.
181
+ */
182
+ payment_method_configuration: PlanListResponse.PaymentMethodConfiguration | null;
183
+
178
184
  /**
179
185
  * Indicates if the plan is a one time payment or recurring.
180
186
  */
@@ -200,11 +206,26 @@ export interface PlanListResponse {
200
206
  */
201
207
  renewal_price: number;
202
208
 
209
+ /**
210
+ * The number of units available for purchase. Only displayed to authorized actors
211
+ */
212
+ stock: number | null;
213
+
214
+ /**
215
+ * The title of the plan. This will be visible on the product page to customers.
216
+ */
217
+ title: string | null;
218
+
203
219
  /**
204
220
  * The number of free trial days added before a renewal plan.
205
221
  */
206
222
  trial_period_days: number | null;
207
223
 
224
+ /**
225
+ * Limits/doesn't limit the number of units available for purchase.
226
+ */
227
+ unlimited_stock: boolean;
228
+
208
229
  /**
209
230
  * When the plan was last updated.
210
231
  */
@@ -242,6 +263,32 @@ export namespace PlanListResponse {
242
263
  id: string;
243
264
  }
244
265
 
266
+ /**
267
+ * The explicit payment method configuration for the plan, if any.
268
+ */
269
+ export interface PaymentMethodConfiguration {
270
+ /**
271
+ * An array of payment method identifiers that are explicitly disabled. Only
272
+ * applies if the include_platform_defaults is true.
273
+ */
274
+ disabled: Array<PaymentsAPI.PaymentMethodTypes>;
275
+
276
+ /**
277
+ * An array of payment method identifiers that are explicitly enabled. This means
278
+ * these payment methods will be shown on checkout. Example use case is to only
279
+ * enable a specific payment method like cashapp, or extending the platform
280
+ * defaults with additional methods.
281
+ */
282
+ enabled: Array<PaymentsAPI.PaymentMethodTypes>;
283
+
284
+ /**
285
+ * Whether Whop's platform default payment method enablement settings are included
286
+ * in this configuration. The full list of default payment methods can be found in
287
+ * the documentation at docs.whop.com/payments.
288
+ */
289
+ include_platform_defaults: boolean;
290
+ }
291
+
245
292
  /**
246
293
  * The access pass for the plan.
247
294
  */
@@ -275,7 +322,7 @@ export interface PlanCreateParams {
275
322
  product_id: string;
276
323
 
277
324
  /**
278
- * The interval at which the plan charges (renewal plans).
325
+ * The interval in days at which the plan charges (renewal plans).
279
326
  */
280
327
  billing_period?: number | null;
281
328
 
@@ -302,7 +349,7 @@ export interface PlanCreateParams {
302
349
  /**
303
350
  * An image for the plan. This will be visible on the product page to customers.
304
351
  */
305
- image?: PlanCreateParams.Image | null;
352
+ image?: PlanCreateParams.AttachmentInputWithDirectUploadID | PlanCreateParams.AttachmentInputWithID | null;
306
353
 
307
354
  /**
308
355
  * An additional amount charged upon first purchase. Use only if a one time payment
@@ -322,6 +369,12 @@ export interface PlanCreateParams {
322
369
  */
323
370
  override_tax_type?: Shared.TaxType | null;
324
371
 
372
+ /**
373
+ * The explicit payment method configuration for the plan. If not provided, the
374
+ * platform or company's defaults will apply.
375
+ */
376
+ payment_method_configuration?: PlanCreateParams.PaymentMethodConfiguration | null;
377
+
325
378
  /**
326
379
  * The type of plan that can be attached to an access pass
327
380
  */
@@ -338,6 +391,23 @@ export interface PlanCreateParams {
338
391
  */
339
392
  renewal_price?: number | null;
340
393
 
394
+ /**
395
+ * The number of units available for purchase.
396
+ */
397
+ stock?: number | null;
398
+
399
+ /**
400
+ * The price to display with a strikethrough for the initial price. Provided as a
401
+ * number in dollars. Eg: 19.99 for $19.99
402
+ */
403
+ strike_through_initial_price?: number | null;
404
+
405
+ /**
406
+ * The price to display with a strikethrough for the renewal price. Provided as a
407
+ * number in dollars. Eg: 19.99 for $19.99
408
+ */
409
+ strike_through_renewal_price?: number | null;
410
+
341
411
  /**
342
412
  * The title of the plan. This will be visible on the product page to customers.
343
413
  */
@@ -348,6 +418,11 @@ export interface PlanCreateParams {
348
418
  */
349
419
  trial_period_days?: number | null;
350
420
 
421
+ /**
422
+ * Limits/doesn't limit the number of units available for purchase.
423
+ */
424
+ unlimited_stock?: boolean | null;
425
+
351
426
  /**
352
427
  * Visibility of a resource
353
428
  */
@@ -388,22 +463,54 @@ export namespace PlanCreateParams {
388
463
  }
389
464
 
390
465
  /**
391
- * An image for the plan. This will be visible on the product page to customers.
466
+ * Input for an attachment
392
467
  */
393
- export interface Image {
468
+ export interface AttachmentInputWithDirectUploadID {
469
+ /**
470
+ * This ID should be used the first time you upload an attachment. It is the ID of
471
+ * the direct upload that was created when uploading the file to S3 via the
472
+ * mediaDirectUpload mutation.
473
+ */
474
+ direct_upload_id: string;
475
+ }
476
+
477
+ /**
478
+ * Input for an attachment
479
+ */
480
+ export interface AttachmentInputWithID {
394
481
  /**
395
482
  * The ID of an existing attachment object. Use this when updating a resource and
396
483
  * keeping a subset of the attachments. Don't use this unless you know what you're
397
484
  * doing.
398
485
  */
399
- id?: string | null;
486
+ id: string;
487
+ }
400
488
 
489
+ /**
490
+ * The explicit payment method configuration for the plan. If not provided, the
491
+ * platform or company's defaults will apply.
492
+ */
493
+ export interface PaymentMethodConfiguration {
401
494
  /**
402
- * This ID should be used the first time you upload an attachment. It is the ID of
403
- * the direct upload that was created when uploading the file to S3 via the
404
- * mediaDirectUpload mutation.
495
+ * An array of payment method identifiers that are explicitly disabled. Only
496
+ * applies if the include_platform_defaults is true.
497
+ */
498
+ disabled: Array<PaymentsAPI.PaymentMethodTypes>;
499
+
500
+ /**
501
+ * An array of payment method identifiers that are explicitly enabled. This means
502
+ * these payment methods will be shown on checkout. Example use case is to only
503
+ * enable a specific payment method like cashapp, or extending the platform
504
+ * defaults with additional methods.
505
+ */
506
+ enabled: Array<PaymentsAPI.PaymentMethodTypes>;
507
+
508
+ /**
509
+ * Whether Whop's platform default payment method enablement settings are included
510
+ * in this configuration. The full list of default payment methods can be found in
511
+ * the documentation at docs.whop.com/payments.
405
512
  */
406
- direct_upload_id?: string | null;
513
+ include_platform_defaults: boolean;
407
514
  }
408
515
  }
409
516
 
@@ -436,7 +543,7 @@ export interface PlanUpdateParams {
436
543
  /**
437
544
  * An image for the plan. This will be visible on the product page to customers.
438
545
  */
439
- image?: PlanUpdateParams.Image | null;
546
+ image?: PlanUpdateParams.AttachmentInputWithDirectUploadID | PlanUpdateParams.AttachmentInputWithID | null;
440
547
 
441
548
  /**
442
549
  * An additional amount charged upon first purchase.
@@ -459,11 +566,34 @@ export interface PlanUpdateParams {
459
566
  */
460
567
  override_tax_type?: Shared.TaxType | null;
461
568
 
569
+ /**
570
+ * The explicit payment method configuration for the plan. If sent as null, the
571
+ * custom configuration will be removed.
572
+ */
573
+ payment_method_configuration?: PlanUpdateParams.PaymentMethodConfiguration | null;
574
+
462
575
  /**
463
576
  * The amount the customer is charged every billing period.
464
577
  */
465
578
  renewal_price?: number | null;
466
579
 
580
+ /**
581
+ * The number of units available for purchase.
582
+ */
583
+ stock?: number | null;
584
+
585
+ /**
586
+ * The price to display with a strikethrough for the initial price. Provided as a
587
+ * number in dollars. Eg: 19.99 for $19.99
588
+ */
589
+ strike_through_initial_price?: number | null;
590
+
591
+ /**
592
+ * The price to display with a strikethrough for the renewal price. Provided as a
593
+ * number in dollars. Eg: 19.99 for $19.99
594
+ */
595
+ strike_through_renewal_price?: number | null;
596
+
467
597
  /**
468
598
  * The title of the plan. This will be visible on the product page to customers.
469
599
  */
@@ -474,6 +604,11 @@ export interface PlanUpdateParams {
474
604
  */
475
605
  trial_period_days?: number | null;
476
606
 
607
+ /**
608
+ * Limits/doesn't limit the number of units available for purchase.
609
+ */
610
+ unlimited_stock?: boolean | null;
611
+
477
612
  /**
478
613
  * Visibility of a resource
479
614
  */
@@ -514,22 +649,54 @@ export namespace PlanUpdateParams {
514
649
  }
515
650
 
516
651
  /**
517
- * An image for the plan. This will be visible on the product page to customers.
652
+ * Input for an attachment
518
653
  */
519
- export interface Image {
654
+ export interface AttachmentInputWithDirectUploadID {
655
+ /**
656
+ * This ID should be used the first time you upload an attachment. It is the ID of
657
+ * the direct upload that was created when uploading the file to S3 via the
658
+ * mediaDirectUpload mutation.
659
+ */
660
+ direct_upload_id: string;
661
+ }
662
+
663
+ /**
664
+ * Input for an attachment
665
+ */
666
+ export interface AttachmentInputWithID {
520
667
  /**
521
668
  * The ID of an existing attachment object. Use this when updating a resource and
522
669
  * keeping a subset of the attachments. Don't use this unless you know what you're
523
670
  * doing.
524
671
  */
525
- id?: string | null;
672
+ id: string;
673
+ }
526
674
 
675
+ /**
676
+ * The explicit payment method configuration for the plan. If sent as null, the
677
+ * custom configuration will be removed.
678
+ */
679
+ export interface PaymentMethodConfiguration {
527
680
  /**
528
- * This ID should be used the first time you upload an attachment. It is the ID of
529
- * the direct upload that was created when uploading the file to S3 via the
530
- * mediaDirectUpload mutation.
681
+ * An array of payment method identifiers that are explicitly disabled. Only
682
+ * applies if the include_platform_defaults is true.
683
+ */
684
+ disabled: Array<PaymentsAPI.PaymentMethodTypes>;
685
+
686
+ /**
687
+ * An array of payment method identifiers that are explicitly enabled. This means
688
+ * these payment methods will be shown on checkout. Example use case is to only
689
+ * enable a specific payment method like cashapp, or extending the platform
690
+ * defaults with additional methods.
691
+ */
692
+ enabled: Array<PaymentsAPI.PaymentMethodTypes>;
693
+
694
+ /**
695
+ * Whether Whop's platform default payment method enablement settings are included
696
+ * in this configuration. The full list of default payment methods can be found in
697
+ * the documentation at docs.whop.com/payments.
531
698
  */
532
- direct_upload_id?: string | null;
699
+ include_platform_defaults: boolean;
533
700
  }
534
701
  }
535
702
 
@@ -129,16 +129,6 @@ export interface ProductCreateParams {
129
129
  */
130
130
  title: string;
131
131
 
132
- /**
133
- * The different types an access pass can be.
134
- */
135
- access_pass_type?: Shared.AccessPassType | null;
136
-
137
- /**
138
- * A banner image for the product in png, jpeg format
139
- */
140
- banner_image?: ProductCreateParams.BannerImage | null;
141
-
142
132
  /**
143
133
  * The different business types a company can be.
144
134
  */
@@ -238,25 +228,6 @@ export interface ProductCreateParams {
238
228
  }
239
229
 
240
230
  export namespace ProductCreateParams {
241
- /**
242
- * A banner image for the product in png, jpeg format
243
- */
244
- export interface BannerImage {
245
- /**
246
- * The ID of an existing attachment object. Use this when updating a resource and
247
- * keeping a subset of the attachments. Don't use this unless you know what you're
248
- * doing.
249
- */
250
- id?: string | null;
251
-
252
- /**
253
- * This ID should be used the first time you upload an attachment. It is the ID of
254
- * the direct upload that was created when uploading the file to S3 via the
255
- * mediaDirectUpload mutation.
256
- */
257
- direct_upload_id?: string | null;
258
- }
259
-
260
231
  /**
261
232
  * The details to assign an autogenerated plan.
262
233
  */
@@ -362,7 +333,10 @@ export interface ProductUpdateParams {
362
333
  /**
363
334
  * A banner image for the product in png, jpeg format
364
335
  */
365
- banner_image?: ProductUpdateParams.BannerImage | null;
336
+ banner_image?:
337
+ | ProductUpdateParams.AttachmentInputWithDirectUploadID
338
+ | ProductUpdateParams.AttachmentInputWithID
339
+ | null;
366
340
 
367
341
  /**
368
342
  * The different business types a company can be.
@@ -441,6 +415,11 @@ export interface ProductUpdateParams {
441
415
  */
442
416
  route?: string | null;
443
417
 
418
+ /**
419
+ * Configuration for a product on the company's store page.
420
+ */
421
+ store_page_config?: ProductUpdateParams.StorePageConfig | null;
422
+
444
423
  /**
445
424
  * The title of the product.
446
425
  */
@@ -454,22 +433,42 @@ export interface ProductUpdateParams {
454
433
 
455
434
  export namespace ProductUpdateParams {
456
435
  /**
457
- * A banner image for the product in png, jpeg format
436
+ * Input for an attachment
437
+ */
438
+ export interface AttachmentInputWithDirectUploadID {
439
+ /**
440
+ * This ID should be used the first time you upload an attachment. It is the ID of
441
+ * the direct upload that was created when uploading the file to S3 via the
442
+ * mediaDirectUpload mutation.
443
+ */
444
+ direct_upload_id: string;
445
+ }
446
+
447
+ /**
448
+ * Input for an attachment
458
449
  */
459
- export interface BannerImage {
450
+ export interface AttachmentInputWithID {
460
451
  /**
461
452
  * The ID of an existing attachment object. Use this when updating a resource and
462
453
  * keeping a subset of the attachments. Don't use this unless you know what you're
463
454
  * doing.
464
455
  */
465
- id?: string | null;
456
+ id: string;
457
+ }
466
458
 
459
+ /**
460
+ * Configuration for a product on the company's store page.
461
+ */
462
+ export interface StorePageConfig {
467
463
  /**
468
- * This ID should be used the first time you upload an attachment. It is the ID of
469
- * the direct upload that was created when uploading the file to S3 via the
470
- * mediaDirectUpload mutation.
464
+ * Custom call-to-action text for the product's store page.
465
+ */
466
+ custom_cta?: string | null;
467
+
468
+ /**
469
+ * Whether or not to show the price on the product's store page.
471
470
  */
472
- direct_upload_id?: string | null;
471
+ show_price?: boolean | null;
473
472
  }
474
473
  }
475
474