@whop/sdk 0.0.34 → 0.0.35

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 (85) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +8 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/affiliates/affiliates.d.mts +345 -0
  12. package/resources/affiliates/affiliates.d.mts.map +1 -0
  13. package/resources/affiliates/affiliates.d.ts +345 -0
  14. package/resources/affiliates/affiliates.d.ts.map +1 -0
  15. package/resources/affiliates/affiliates.js +112 -0
  16. package/resources/affiliates/affiliates.js.map +1 -0
  17. package/resources/affiliates/affiliates.mjs +107 -0
  18. package/resources/affiliates/affiliates.mjs.map +1 -0
  19. package/resources/affiliates/index.d.mts +3 -0
  20. package/resources/affiliates/index.d.mts.map +1 -0
  21. package/resources/affiliates/index.d.ts +3 -0
  22. package/resources/affiliates/index.d.ts.map +1 -0
  23. package/resources/affiliates/index.js +9 -0
  24. package/resources/affiliates/index.js.map +1 -0
  25. package/resources/affiliates/index.mjs +4 -0
  26. package/resources/affiliates/index.mjs.map +1 -0
  27. package/resources/affiliates/overrides.d.mts +443 -0
  28. package/resources/affiliates/overrides.d.mts.map +1 -0
  29. package/resources/affiliates/overrides.d.ts +443 -0
  30. package/resources/affiliates/overrides.d.ts.map +1 -0
  31. package/resources/affiliates/overrides.js +117 -0
  32. package/resources/affiliates/overrides.js.map +1 -0
  33. package/resources/affiliates/overrides.mjs +113 -0
  34. package/resources/affiliates/overrides.mjs.map +1 -0
  35. package/resources/affiliates.d.mts +2 -0
  36. package/resources/affiliates.d.mts.map +1 -0
  37. package/resources/affiliates.d.ts +2 -0
  38. package/resources/affiliates.d.ts.map +1 -0
  39. package/resources/affiliates.js +6 -0
  40. package/resources/affiliates.js.map +1 -0
  41. package/resources/affiliates.mjs +3 -0
  42. package/resources/affiliates.mjs.map +1 -0
  43. package/resources/ai-chats.d.mts +21 -2
  44. package/resources/ai-chats.d.mts.map +1 -1
  45. package/resources/ai-chats.d.ts +21 -2
  46. package/resources/ai-chats.d.ts.map +1 -1
  47. package/resources/ai-chats.js +2 -1
  48. package/resources/ai-chats.js.map +1 -1
  49. package/resources/ai-chats.mjs +2 -1
  50. package/resources/ai-chats.mjs.map +1 -1
  51. package/resources/index.d.mts +2 -1
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +2 -1
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +4 -2
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +1 -0
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/payments.d.mts +1 -1
  60. package/resources/payments.d.mts.map +1 -1
  61. package/resources/payments.d.ts +1 -1
  62. package/resources/payments.d.ts.map +1 -1
  63. package/resources/setup-intents.d.mts +74 -0
  64. package/resources/setup-intents.d.mts.map +1 -1
  65. package/resources/setup-intents.d.ts +74 -0
  66. package/resources/setup-intents.d.ts.map +1 -1
  67. package/resources/shared.d.mts +1 -1
  68. package/resources/shared.d.mts.map +1 -1
  69. package/resources/shared.d.ts +1 -1
  70. package/resources/shared.d.ts.map +1 -1
  71. package/src/client.ts +30 -0
  72. package/src/resources/affiliates/affiliates.ts +467 -0
  73. package/src/resources/affiliates/index.ts +32 -0
  74. package/src/resources/affiliates/overrides.ts +585 -0
  75. package/src/resources/affiliates.ts +3 -0
  76. package/src/resources/ai-chats.ts +25 -1
  77. package/src/resources/index.ts +12 -0
  78. package/src/resources/payments.ts +1 -0
  79. package/src/resources/setup-intents.ts +90 -0
  80. package/src/resources/shared.ts +1 -0
  81. package/src/version.ts +1 -1
  82. package/version.d.mts +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/version.mjs +1 -1
@@ -192,6 +192,11 @@ export namespace SetupIntent {
192
192
  */
193
193
  created_at: string;
194
194
 
195
+ /**
196
+ * The mailing address associated with the payment method's user
197
+ */
198
+ mailing_address: PaymentMethod.MailingAddress | null;
199
+
195
200
  /**
196
201
  * The payment method type of the payment method
197
202
  */
@@ -224,6 +229,46 @@ export namespace SetupIntent {
224
229
  */
225
230
  last4: string | null;
226
231
  }
232
+
233
+ /**
234
+ * The mailing address associated with the payment method's user
235
+ */
236
+ export interface MailingAddress {
237
+ /**
238
+ * The city of the address.
239
+ */
240
+ city: string | null;
241
+
242
+ /**
243
+ * The country of the address.
244
+ */
245
+ country: string | null;
246
+
247
+ /**
248
+ * The line 1 of the address.
249
+ */
250
+ line1: string | null;
251
+
252
+ /**
253
+ * The line 2 of the address.
254
+ */
255
+ line2: string | null;
256
+
257
+ /**
258
+ * The name of the customer.
259
+ */
260
+ name: string | null;
261
+
262
+ /**
263
+ * The postal code of the address.
264
+ */
265
+ postal_code: string | null;
266
+
267
+ /**
268
+ * The state of the address.
269
+ */
270
+ state: string | null;
271
+ }
227
272
  }
228
273
  }
229
274
 
@@ -375,6 +420,11 @@ export namespace SetupIntentListResponse {
375
420
  */
376
421
  created_at: string;
377
422
 
423
+ /**
424
+ * The mailing address associated with the payment method's user
425
+ */
426
+ mailing_address: PaymentMethod.MailingAddress | null;
427
+
378
428
  /**
379
429
  * The payment method type of the payment method
380
430
  */
@@ -407,6 +457,46 @@ export namespace SetupIntentListResponse {
407
457
  */
408
458
  last4: string | null;
409
459
  }
460
+
461
+ /**
462
+ * The mailing address associated with the payment method's user
463
+ */
464
+ export interface MailingAddress {
465
+ /**
466
+ * The city of the address.
467
+ */
468
+ city: string | null;
469
+
470
+ /**
471
+ * The country of the address.
472
+ */
473
+ country: string | null;
474
+
475
+ /**
476
+ * The line 1 of the address.
477
+ */
478
+ line1: string | null;
479
+
480
+ /**
481
+ * The line 2 of the address.
482
+ */
483
+ line2: string | null;
484
+
485
+ /**
486
+ * The name of the customer.
487
+ */
488
+ name: string | null;
489
+
490
+ /**
491
+ * The postal code of the address.
492
+ */
493
+ postal_code: string | null;
494
+
495
+ /**
496
+ * The state of the address.
497
+ */
498
+ state: string | null;
499
+ }
410
500
  }
411
501
  }
412
502
 
@@ -2660,6 +2660,7 @@ export namespace Payment {
2660
2660
  | 'cancel'
2661
2661
  | 'verify'
2662
2662
  | 'chargeback'
2663
+ | 'pre_chargeback'
2663
2664
  | 'three_d_secure'
2664
2665
  | 'fraud_screening'
2665
2666
  | 'authorization'
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.0.34'; // x-release-please-version
1
+ export const VERSION = '0.0.35'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.34";
1
+ export declare const VERSION = "0.0.35";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.34";
1
+ export declare const VERSION = "0.0.35";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.0.34'; // x-release-please-version
4
+ exports.VERSION = '0.0.35'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.0.34'; // x-release-please-version
1
+ export const VERSION = '0.0.35'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map