@whop/sdk 0.0.6 → 0.0.7

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 (78) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +5 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/access-tokens.d.mts +48 -26
  12. package/resources/access-tokens.d.mts.map +1 -1
  13. package/resources/access-tokens.d.ts +48 -26
  14. package/resources/access-tokens.d.ts.map +1 -1
  15. package/resources/access-tokens.js +5 -5
  16. package/resources/access-tokens.mjs +5 -5
  17. package/resources/checkout-configurations.d.mts +4 -4
  18. package/resources/checkout-configurations.d.mts.map +1 -1
  19. package/resources/checkout-configurations.d.ts +4 -4
  20. package/resources/checkout-configurations.d.ts.map +1 -1
  21. package/resources/disputes.d.mts +704 -0
  22. package/resources/disputes.d.mts.map +1 -0
  23. package/resources/disputes.d.ts +704 -0
  24. package/resources/disputes.d.ts.map +1 -0
  25. package/resources/disputes.js +77 -0
  26. package/resources/disputes.js.map +1 -0
  27. package/resources/disputes.mjs +73 -0
  28. package/resources/disputes.mjs.map +1 -0
  29. package/resources/forum-posts.d.mts +8 -0
  30. package/resources/forum-posts.d.mts.map +1 -1
  31. package/resources/forum-posts.d.ts +8 -0
  32. package/resources/forum-posts.d.ts.map +1 -1
  33. package/resources/index.d.mts +2 -1
  34. package/resources/index.d.mts.map +1 -1
  35. package/resources/index.d.ts +2 -1
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js +3 -1
  38. package/resources/index.js.map +1 -1
  39. package/resources/index.mjs +1 -0
  40. package/resources/index.mjs.map +1 -1
  41. package/resources/ledger-accounts.d.mts +1 -1
  42. package/resources/ledger-accounts.d.mts.map +1 -1
  43. package/resources/ledger-accounts.d.ts +1 -1
  44. package/resources/ledger-accounts.d.ts.map +1 -1
  45. package/resources/payments.d.mts +1 -1
  46. package/resources/payments.d.mts.map +1 -1
  47. package/resources/payments.d.ts +1 -1
  48. package/resources/payments.d.ts.map +1 -1
  49. package/resources/shared.d.mts +3 -3
  50. package/resources/shared.d.mts.map +1 -1
  51. package/resources/shared.d.ts +3 -3
  52. package/resources/shared.d.ts.map +1 -1
  53. package/resources/shipments.d.mts +1 -1
  54. package/resources/shipments.d.mts.map +1 -1
  55. package/resources/shipments.d.ts +1 -1
  56. package/resources/shipments.d.ts.map +1 -1
  57. package/resources/webhooks.d.mts +47 -2
  58. package/resources/webhooks.d.mts.map +1 -1
  59. package/resources/webhooks.d.ts +47 -2
  60. package/resources/webhooks.d.ts.map +1 -1
  61. package/resources/webhooks.js.map +1 -1
  62. package/resources/webhooks.mjs.map +1 -1
  63. package/src/client.ts +25 -0
  64. package/src/resources/access-tokens.ts +53 -26
  65. package/src/resources/checkout-configurations.ts +4 -4
  66. package/src/resources/disputes.ts +873 -0
  67. package/src/resources/forum-posts.ts +10 -0
  68. package/src/resources/index.ts +11 -0
  69. package/src/resources/ledger-accounts.ts +1 -0
  70. package/src/resources/payments.ts +1 -0
  71. package/src/resources/shared.ts +13 -3
  72. package/src/resources/shipments.ts +1 -1
  73. package/src/resources/webhooks.ts +60 -1
  74. package/src/version.ts +1 -1
  75. package/version.d.mts +1 -1
  76. package/version.d.ts +1 -1
  77. package/version.js +1 -1
  78. package/version.mjs +1 -1
@@ -0,0 +1,873 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as PaymentsAPI from './payments';
5
+ import * as Shared from './shared';
6
+ import { APIPromise } from '../core/api-promise';
7
+ import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
8
+ import { RequestOptions } from '../internal/request-options';
9
+ import { path } from '../internal/utils/path';
10
+
11
+ export class Disputes extends APIResource {
12
+ /**
13
+ * Retrieves a Dispute by ID
14
+ *
15
+ * Required permissions:
16
+ *
17
+ * - `payment:dispute:read`
18
+ * - `plan:basic:read`
19
+ * - `access_pass:basic:read`
20
+ * - `company:basic:read`
21
+ * - `payment:basic:read`
22
+ * - `member:email:read`
23
+ * - `member:basic:read`
24
+ * - `member:phone:read`
25
+ */
26
+ retrieve(id: string, options?: RequestOptions): APIPromise<Dispute> {
27
+ return this._client.get(path`/disputes/${id}`, options);
28
+ }
29
+
30
+ /**
31
+ * Lists disputes the current actor has access to
32
+ *
33
+ * Required permissions:
34
+ *
35
+ * - `payment:dispute:read`
36
+ * - `plan:basic:read`
37
+ * - `access_pass:basic:read`
38
+ * - `company:basic:read`
39
+ * - `payment:basic:read`
40
+ */
41
+ list(
42
+ query: DisputeListParams,
43
+ options?: RequestOptions,
44
+ ): PagePromise<DisputeListResponsesCursorPage, DisputeListResponse> {
45
+ return this._client.getAPIList('/disputes', CursorPage<DisputeListResponse>, { query, ...options });
46
+ }
47
+
48
+ /**
49
+ * Submit a payment dispute to the payment processor for review. Once submitted, no
50
+ * further edits can be made.
51
+ *
52
+ * Required permissions:
53
+ *
54
+ * - `payment:dispute`
55
+ * - `plan:basic:read`
56
+ * - `access_pass:basic:read`
57
+ * - `company:basic:read`
58
+ * - `payment:basic:read`
59
+ * - `member:email:read`
60
+ * - `member:basic:read`
61
+ * - `member:phone:read`
62
+ */
63
+ submitEvidence(id: string, options?: RequestOptions): APIPromise<Dispute> {
64
+ return this._client.post(path`/disputes/${id}/submit_evidence`, options);
65
+ }
66
+
67
+ /**
68
+ * Update a dispute with evidence data to attempt to win the dispute.
69
+ *
70
+ * Required permissions:
71
+ *
72
+ * - `payment:dispute`
73
+ * - `plan:basic:read`
74
+ * - `access_pass:basic:read`
75
+ * - `company:basic:read`
76
+ * - `payment:basic:read`
77
+ * - `member:email:read`
78
+ * - `member:basic:read`
79
+ * - `member:phone:read`
80
+ */
81
+ updateEvidence(
82
+ id: string,
83
+ body: DisputeUpdateEvidenceParams | null | undefined = {},
84
+ options?: RequestOptions,
85
+ ): APIPromise<Dispute> {
86
+ return this._client.post(path`/disputes/${id}/update_evidence`, { body, ...options });
87
+ }
88
+ }
89
+
90
+ export type DisputeListResponsesCursorPage = CursorPage<DisputeListResponse>;
91
+
92
+ /**
93
+ * An object representing a dispute against a company.
94
+ */
95
+ export interface Dispute {
96
+ /**
97
+ * The internal ID of the dispute.
98
+ */
99
+ id: string;
100
+
101
+ /**
102
+ * An IP access log for the user from Whop.
103
+ */
104
+ access_activity_log: string | null;
105
+
106
+ /**
107
+ * The amount of the dispute (formatted).
108
+ */
109
+ amount: number;
110
+
111
+ /**
112
+ * The billing address of the user from their payment details.
113
+ */
114
+ billing_address: string | null;
115
+
116
+ /**
117
+ * The cancellation policy for this dispute
118
+ */
119
+ cancellation_policy_attachment: Dispute.CancellationPolicyAttachment | null;
120
+
121
+ /**
122
+ * A cancellation policy disclosure from the company.
123
+ */
124
+ cancellation_policy_disclosure: string | null;
125
+
126
+ /**
127
+ * The company the dispute is against.
128
+ */
129
+ company: Dispute.Company | null;
130
+
131
+ /**
132
+ * When it was made.
133
+ */
134
+ created_at: string | null;
135
+
136
+ /**
137
+ * The currency of the dispute.
138
+ */
139
+ currency: Shared.Currency;
140
+
141
+ /**
142
+ * The customer communication for this dispute
143
+ */
144
+ customer_communication_attachment: Dispute.CustomerCommunicationAttachment | null;
145
+
146
+ /**
147
+ * The email of the customer from their payment details. This is submitted in the
148
+ * evidence packet to the payment processor. You can change it before submitting
149
+ * the dispute.
150
+ */
151
+ customer_email_address: string | null;
152
+
153
+ /**
154
+ * The name of the customer from their payment details. This is submitted in the
155
+ * evidence packet to the payment processor. You can change it before submitting
156
+ * the dispute.
157
+ */
158
+ customer_name: string | null;
159
+
160
+ /**
161
+ * Whether or not the dispute data can be edited.
162
+ */
163
+ editable: boolean | null;
164
+
165
+ /**
166
+ * The last date the dispute is allow to be submitted by.
167
+ */
168
+ needs_response_by: string | null;
169
+
170
+ /**
171
+ * Additional notes the company chooses to submit regarding the dispute.
172
+ */
173
+ notes: string | null;
174
+
175
+ /**
176
+ * The payment that got disputed
177
+ */
178
+ payment: Dispute.Payment | null;
179
+
180
+ /**
181
+ * The plan that got disputed
182
+ */
183
+ plan: Dispute.Plan | null;
184
+
185
+ /**
186
+ * The product that got disputed
187
+ */
188
+ product: Dispute.Product | null;
189
+
190
+ /**
191
+ * The description of the product from the company.
192
+ */
193
+ product_description: string | null;
194
+
195
+ /**
196
+ * The reason for the dispute
197
+ */
198
+ reason: string | null;
199
+
200
+ /**
201
+ * The refund policy for this dispute
202
+ */
203
+ refund_policy_attachment: Dispute.RefundPolicyAttachment | null;
204
+
205
+ /**
206
+ * A refund policy disclosure from the company.
207
+ */
208
+ refund_policy_disclosure: string | null;
209
+
210
+ /**
211
+ * A description on why the refund is being refused by the company.
212
+ */
213
+ refund_refusal_explanation: string | null;
214
+
215
+ /**
216
+ * When the product was delivered by the company.
217
+ */
218
+ service_date: string | null;
219
+
220
+ /**
221
+ * The status of the dispute (mimics stripe's dispute status).
222
+ */
223
+ status: DisputeStatuses;
224
+
225
+ /**
226
+ * An attachment that did not fit into the other categories
227
+ */
228
+ uncategorized_attachment: Dispute.UncategorizedAttachment | null;
229
+
230
+ /**
231
+ * Whether or not the dispute is a Visa Rapid Dispute Resolution.
232
+ */
233
+ visa_rdr: boolean;
234
+ }
235
+
236
+ export namespace Dispute {
237
+ /**
238
+ * The cancellation policy for this dispute
239
+ */
240
+ export interface CancellationPolicyAttachment {
241
+ /**
242
+ * The ID of the attachment
243
+ */
244
+ id: string;
245
+
246
+ /**
247
+ * The attachment's content type (e.g., image/jpg, video/mp4)
248
+ */
249
+ content_type: string | null;
250
+
251
+ /**
252
+ * The name of the file
253
+ */
254
+ filename: string | null;
255
+
256
+ /**
257
+ * This is the URL you use to render optimized attachments on the client. This
258
+ * should be used for apps.
259
+ */
260
+ url: string | null;
261
+ }
262
+
263
+ /**
264
+ * The company the dispute is against.
265
+ */
266
+ export interface Company {
267
+ /**
268
+ * The ID of the company
269
+ */
270
+ id: string;
271
+
272
+ /**
273
+ * The written name of the company.
274
+ */
275
+ title: string;
276
+ }
277
+
278
+ /**
279
+ * The customer communication for this dispute
280
+ */
281
+ export interface CustomerCommunicationAttachment {
282
+ /**
283
+ * The ID of the attachment
284
+ */
285
+ id: string;
286
+
287
+ /**
288
+ * The attachment's content type (e.g., image/jpg, video/mp4)
289
+ */
290
+ content_type: string | null;
291
+
292
+ /**
293
+ * The name of the file
294
+ */
295
+ filename: string | null;
296
+
297
+ /**
298
+ * This is the URL you use to render optimized attachments on the client. This
299
+ * should be used for apps.
300
+ */
301
+ url: string | null;
302
+ }
303
+
304
+ /**
305
+ * The payment that got disputed
306
+ */
307
+ export interface Payment {
308
+ /**
309
+ * The payment ID
310
+ */
311
+ id: string;
312
+
313
+ /**
314
+ * The reason why a specific payment was billed
315
+ */
316
+ billing_reason: PaymentsAPI.BillingReasons | null;
317
+
318
+ /**
319
+ * Possible card brands that a payment token can have
320
+ */
321
+ card_brand: PaymentsAPI.CardBrands | null;
322
+
323
+ /**
324
+ * The last 4 digits of the card used to make the payment.
325
+ */
326
+ card_last4: string | null;
327
+
328
+ /**
329
+ * The datetime the payment was created
330
+ */
331
+ created_at: string;
332
+
333
+ /**
334
+ * The available currencies on the platform
335
+ */
336
+ currency: Shared.Currency | null;
337
+
338
+ /**
339
+ * When an alert came in that this transaction will be disputed
340
+ */
341
+ dispute_alerted_at: string | null;
342
+
343
+ /**
344
+ * The member attached to this payment.
345
+ */
346
+ member: Payment.Member | null;
347
+
348
+ /**
349
+ * The membership attached to this payment.
350
+ */
351
+ membership: Payment.Membership | null;
352
+
353
+ /**
354
+ * The datetime the payment was paid
355
+ */
356
+ paid_at: string | null;
357
+
358
+ /**
359
+ * The different types of payment methods that can be used.
360
+ */
361
+ payment_method_type: PaymentsAPI.PaymentMethodTypes | null;
362
+
363
+ /**
364
+ * The subtotal to show to the creator (excluding buyer fees).
365
+ */
366
+ subtotal: number | null;
367
+
368
+ /**
369
+ * The total to show to the creator (excluding buyer fees).
370
+ */
371
+ total: number | null;
372
+
373
+ /**
374
+ * The total in USD to show to the creator (excluding buyer fees).
375
+ */
376
+ usd_total: number | null;
377
+
378
+ /**
379
+ * The user that made this payment.
380
+ */
381
+ user: Payment.User | null;
382
+ }
383
+
384
+ export namespace Payment {
385
+ /**
386
+ * The member attached to this payment.
387
+ */
388
+ export interface Member {
389
+ /**
390
+ * The ID of the member
391
+ */
392
+ id: string;
393
+
394
+ /**
395
+ * The phone number for the member, if available.
396
+ */
397
+ phone: string | null;
398
+ }
399
+
400
+ /**
401
+ * The membership attached to this payment.
402
+ */
403
+ export interface Membership {
404
+ /**
405
+ * The internal ID of the membership.
406
+ */
407
+ id: string;
408
+
409
+ /**
410
+ * The state of the membership.
411
+ */
412
+ status: Shared.MembershipStatus;
413
+ }
414
+
415
+ /**
416
+ * The user that made this payment.
417
+ */
418
+ export interface User {
419
+ /**
420
+ * The internal ID of the user.
421
+ */
422
+ id: string;
423
+
424
+ /**
425
+ * The email of the user
426
+ */
427
+ email: string | null;
428
+
429
+ /**
430
+ * The name of the user from their Whop account.
431
+ */
432
+ name: string | null;
433
+
434
+ /**
435
+ * The username of the user from their Whop account.
436
+ */
437
+ username: string;
438
+ }
439
+ }
440
+
441
+ /**
442
+ * The plan that got disputed
443
+ */
444
+ export interface Plan {
445
+ /**
446
+ * The internal ID of the plan.
447
+ */
448
+ id: string;
449
+ }
450
+
451
+ /**
452
+ * The product that got disputed
453
+ */
454
+ export interface Product {
455
+ /**
456
+ * The internal ID of the public product.
457
+ */
458
+ id: string;
459
+
460
+ /**
461
+ * The title of the product. Use for Whop 4.0.
462
+ */
463
+ title: string;
464
+ }
465
+
466
+ /**
467
+ * The refund policy for this dispute
468
+ */
469
+ export interface RefundPolicyAttachment {
470
+ /**
471
+ * The ID of the attachment
472
+ */
473
+ id: string;
474
+
475
+ /**
476
+ * The attachment's content type (e.g., image/jpg, video/mp4)
477
+ */
478
+ content_type: string | null;
479
+
480
+ /**
481
+ * The name of the file
482
+ */
483
+ filename: string | null;
484
+
485
+ /**
486
+ * This is the URL you use to render optimized attachments on the client. This
487
+ * should be used for apps.
488
+ */
489
+ url: string | null;
490
+ }
491
+
492
+ /**
493
+ * An attachment that did not fit into the other categories
494
+ */
495
+ export interface UncategorizedAttachment {
496
+ /**
497
+ * The ID of the attachment
498
+ */
499
+ id: string;
500
+
501
+ /**
502
+ * The attachment's content type (e.g., image/jpg, video/mp4)
503
+ */
504
+ content_type: string | null;
505
+
506
+ /**
507
+ * The name of the file
508
+ */
509
+ filename: string | null;
510
+
511
+ /**
512
+ * This is the URL you use to render optimized attachments on the client. This
513
+ * should be used for apps.
514
+ */
515
+ url: string | null;
516
+ }
517
+ }
518
+
519
+ /**
520
+ * The possible statuses of a dispute
521
+ */
522
+ export type DisputeStatuses =
523
+ | 'warning_needs_response'
524
+ | 'warning_under_review'
525
+ | 'warning_closed'
526
+ | 'needs_response'
527
+ | 'under_review'
528
+ | 'won'
529
+ | 'lost'
530
+ | 'closed'
531
+ | 'other';
532
+
533
+ /**
534
+ * An object representing a dispute against a company.
535
+ */
536
+ export interface DisputeListResponse {
537
+ /**
538
+ * The internal ID of the dispute.
539
+ */
540
+ id: string;
541
+
542
+ /**
543
+ * The amount of the dispute (formatted).
544
+ */
545
+ amount: number;
546
+
547
+ /**
548
+ * The company the dispute is against.
549
+ */
550
+ company: DisputeListResponse.Company | null;
551
+
552
+ /**
553
+ * When it was made.
554
+ */
555
+ created_at: string | null;
556
+
557
+ /**
558
+ * The currency of the dispute.
559
+ */
560
+ currency: Shared.Currency;
561
+
562
+ /**
563
+ * Whether or not the dispute data can be edited.
564
+ */
565
+ editable: boolean | null;
566
+
567
+ /**
568
+ * The last date the dispute is allow to be submitted by.
569
+ */
570
+ needs_response_by: string | null;
571
+
572
+ /**
573
+ * The payment that got disputed
574
+ */
575
+ payment: DisputeListResponse.Payment | null;
576
+
577
+ /**
578
+ * The plan that got disputed
579
+ */
580
+ plan: DisputeListResponse.Plan | null;
581
+
582
+ /**
583
+ * The product that got disputed
584
+ */
585
+ product: DisputeListResponse.Product | null;
586
+
587
+ /**
588
+ * The reason for the dispute
589
+ */
590
+ reason: string | null;
591
+
592
+ /**
593
+ * The status of the dispute (mimics stripe's dispute status).
594
+ */
595
+ status: DisputeStatuses;
596
+
597
+ /**
598
+ * Whether or not the dispute is a Visa Rapid Dispute Resolution.
599
+ */
600
+ visa_rdr: boolean;
601
+ }
602
+
603
+ export namespace DisputeListResponse {
604
+ /**
605
+ * The company the dispute is against.
606
+ */
607
+ export interface Company {
608
+ /**
609
+ * The ID of the company
610
+ */
611
+ id: string;
612
+
613
+ /**
614
+ * The written name of the company.
615
+ */
616
+ title: string;
617
+ }
618
+
619
+ /**
620
+ * The payment that got disputed
621
+ */
622
+ export interface Payment {
623
+ /**
624
+ * The payment ID
625
+ */
626
+ id: string;
627
+ }
628
+
629
+ /**
630
+ * The plan that got disputed
631
+ */
632
+ export interface Plan {
633
+ /**
634
+ * The internal ID of the plan.
635
+ */
636
+ id: string;
637
+ }
638
+
639
+ /**
640
+ * The product that got disputed
641
+ */
642
+ export interface Product {
643
+ /**
644
+ * The internal ID of the public product.
645
+ */
646
+ id: string;
647
+
648
+ /**
649
+ * The title of the product. Use for Whop 4.0.
650
+ */
651
+ title: string;
652
+ }
653
+ }
654
+
655
+ export interface DisputeListParams extends CursorPageParams {
656
+ /**
657
+ * The ID of the company to list disputes for
658
+ */
659
+ company_id: string;
660
+
661
+ /**
662
+ * Returns the elements in the list that come before the specified cursor.
663
+ */
664
+ before?: string | null;
665
+
666
+ /**
667
+ * The direction of the sort.
668
+ */
669
+ direction?: Shared.Direction | null;
670
+
671
+ /**
672
+ * Returns the first _n_ elements from the list.
673
+ */
674
+ first?: number | null;
675
+
676
+ /**
677
+ * Returns the last _n_ elements from the list.
678
+ */
679
+ last?: number | null;
680
+ }
681
+
682
+ export interface DisputeUpdateEvidenceParams {
683
+ /**
684
+ * An IP access log for the user from Whop.
685
+ */
686
+ access_activity_log?: string | null;
687
+
688
+ /**
689
+ * The billing address of the user from their payment details.
690
+ */
691
+ billing_address?: string | null;
692
+
693
+ /**
694
+ * A file containing the cancellation policy from the company.
695
+ */
696
+ cancellation_policy_attachment?:
697
+ | DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID
698
+ | DisputeUpdateEvidenceParams.AttachmentInputWithID
699
+ | null;
700
+
701
+ /**
702
+ * A cancellation policy disclosure from the company.
703
+ */
704
+ cancellation_policy_disclosure?: string | null;
705
+
706
+ /**
707
+ * A file containing the customer communication from the company (An image).
708
+ */
709
+ customer_communication_attachment?:
710
+ | DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID
711
+ | DisputeUpdateEvidenceParams.AttachmentInputWithID
712
+ | null;
713
+
714
+ /**
715
+ * The email of the customer from their payment details.
716
+ */
717
+ customer_email_address?: string | null;
718
+
719
+ /**
720
+ * The name of the customer from their payment details.
721
+ */
722
+ customer_name?: string | null;
723
+
724
+ /**
725
+ * Additional notes the company chooses to submit regarding the dispute.
726
+ */
727
+ notes?: string | null;
728
+
729
+ /**
730
+ * The description of the product from the company.
731
+ */
732
+ product_description?: string | null;
733
+
734
+ /**
735
+ * A file containing the refund policy from the company.
736
+ */
737
+ refund_policy_attachment?:
738
+ | DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID
739
+ | DisputeUpdateEvidenceParams.AttachmentInputWithID
740
+ | null;
741
+
742
+ /**
743
+ * A refund policy disclosure from the company.
744
+ */
745
+ refund_policy_disclosure?: string | null;
746
+
747
+ /**
748
+ * A description on why the refund is being refused by the company.
749
+ */
750
+ refund_refusal_explanation?: string | null;
751
+
752
+ /**
753
+ * When the product was delivered by the company.
754
+ */
755
+ service_date?: string | null;
756
+
757
+ /**
758
+ * A file that does not fit in the other categories.
759
+ */
760
+ uncategorized_attachment?:
761
+ | DisputeUpdateEvidenceParams.AttachmentInputWithDirectUploadID
762
+ | DisputeUpdateEvidenceParams.AttachmentInputWithID
763
+ | null;
764
+ }
765
+
766
+ export namespace DisputeUpdateEvidenceParams {
767
+ /**
768
+ * Input for an attachment
769
+ */
770
+ export interface AttachmentInputWithDirectUploadID {
771
+ /**
772
+ * This ID should be used the first time you upload an attachment. It is the ID of
773
+ * the direct upload that was created when uploading the file to S3 via the
774
+ * mediaDirectUpload mutation.
775
+ */
776
+ direct_upload_id: string;
777
+ }
778
+
779
+ /**
780
+ * Input for an attachment
781
+ */
782
+ export interface AttachmentInputWithID {
783
+ /**
784
+ * The ID of an existing attachment object. Use this when updating a resource and
785
+ * keeping a subset of the attachments. Don't use this unless you know what you're
786
+ * doing.
787
+ */
788
+ id: string;
789
+ }
790
+
791
+ /**
792
+ * Input for an attachment
793
+ */
794
+ export interface AttachmentInputWithDirectUploadID {
795
+ /**
796
+ * This ID should be used the first time you upload an attachment. It is the ID of
797
+ * the direct upload that was created when uploading the file to S3 via the
798
+ * mediaDirectUpload mutation.
799
+ */
800
+ direct_upload_id: string;
801
+ }
802
+
803
+ /**
804
+ * Input for an attachment
805
+ */
806
+ export interface AttachmentInputWithID {
807
+ /**
808
+ * The ID of an existing attachment object. Use this when updating a resource and
809
+ * keeping a subset of the attachments. Don't use this unless you know what you're
810
+ * doing.
811
+ */
812
+ id: string;
813
+ }
814
+
815
+ /**
816
+ * Input for an attachment
817
+ */
818
+ export interface AttachmentInputWithDirectUploadID {
819
+ /**
820
+ * This ID should be used the first time you upload an attachment. It is the ID of
821
+ * the direct upload that was created when uploading the file to S3 via the
822
+ * mediaDirectUpload mutation.
823
+ */
824
+ direct_upload_id: string;
825
+ }
826
+
827
+ /**
828
+ * Input for an attachment
829
+ */
830
+ export interface AttachmentInputWithID {
831
+ /**
832
+ * The ID of an existing attachment object. Use this when updating a resource and
833
+ * keeping a subset of the attachments. Don't use this unless you know what you're
834
+ * doing.
835
+ */
836
+ id: string;
837
+ }
838
+
839
+ /**
840
+ * Input for an attachment
841
+ */
842
+ export interface AttachmentInputWithDirectUploadID {
843
+ /**
844
+ * This ID should be used the first time you upload an attachment. It is the ID of
845
+ * the direct upload that was created when uploading the file to S3 via the
846
+ * mediaDirectUpload mutation.
847
+ */
848
+ direct_upload_id: string;
849
+ }
850
+
851
+ /**
852
+ * Input for an attachment
853
+ */
854
+ export interface AttachmentInputWithID {
855
+ /**
856
+ * The ID of an existing attachment object. Use this when updating a resource and
857
+ * keeping a subset of the attachments. Don't use this unless you know what you're
858
+ * doing.
859
+ */
860
+ id: string;
861
+ }
862
+ }
863
+
864
+ export declare namespace Disputes {
865
+ export {
866
+ type Dispute as Dispute,
867
+ type DisputeStatuses as DisputeStatuses,
868
+ type DisputeListResponse as DisputeListResponse,
869
+ type DisputeListResponsesCursorPage as DisputeListResponsesCursorPage,
870
+ type DisputeListParams as DisputeListParams,
871
+ type DisputeUpdateEvidenceParams as DisputeUpdateEvidenceParams,
872
+ };
873
+ }