@whop/sdk 0.0.28 → 0.0.29

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 +34 -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/companies.d.mts +6 -0
  12. package/resources/companies.d.mts.map +1 -1
  13. package/resources/companies.d.ts +6 -0
  14. package/resources/companies.d.ts.map +1 -1
  15. package/resources/dispute-alerts.d.mts +325 -0
  16. package/resources/dispute-alerts.d.mts.map +1 -0
  17. package/resources/dispute-alerts.d.ts +325 -0
  18. package/resources/dispute-alerts.d.ts.map +1 -0
  19. package/resources/dispute-alerts.js +42 -0
  20. package/resources/dispute-alerts.js.map +1 -0
  21. package/resources/dispute-alerts.mjs +38 -0
  22. package/resources/dispute-alerts.mjs.map +1 -0
  23. package/resources/experiences.d.mts +0 -4
  24. package/resources/experiences.d.mts.map +1 -1
  25. package/resources/experiences.d.ts +0 -4
  26. package/resources/experiences.d.ts.map +1 -1
  27. package/resources/experiences.js +0 -4
  28. package/resources/experiences.js.map +1 -1
  29. package/resources/experiences.mjs +0 -4
  30. package/resources/experiences.mjs.map +1 -1
  31. package/resources/index.d.mts +2 -1
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +2 -1
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +3 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +1 -0
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/messages.d.mts +4 -0
  40. package/resources/messages.d.mts.map +1 -1
  41. package/resources/messages.d.ts +4 -0
  42. package/resources/messages.d.ts.map +1 -1
  43. package/resources/payments.d.mts +1 -1
  44. package/resources/payments.d.mts.map +1 -1
  45. package/resources/payments.d.ts +1 -1
  46. package/resources/payments.d.ts.map +1 -1
  47. package/resources/products.d.mts +1 -1
  48. package/resources/products.d.mts.map +1 -1
  49. package/resources/products.d.ts +1 -1
  50. package/resources/products.d.ts.map +1 -1
  51. package/resources/refunds.d.mts +1 -1
  52. package/resources/refunds.d.mts.map +1 -1
  53. package/resources/refunds.d.ts +1 -1
  54. package/resources/refunds.d.ts.map +1 -1
  55. package/resources/shared.d.mts +2 -2
  56. package/resources/shared.d.mts.map +1 -1
  57. package/resources/shared.d.ts +2 -2
  58. package/resources/shared.d.ts.map +1 -1
  59. package/resources/support-channels.d.mts +4 -0
  60. package/resources/support-channels.d.mts.map +1 -1
  61. package/resources/support-channels.d.ts +4 -0
  62. package/resources/support-channels.d.ts.map +1 -1
  63. package/resources/webhooks.d.mts +224 -3
  64. package/resources/webhooks.d.mts.map +1 -1
  65. package/resources/webhooks.d.ts +224 -3
  66. package/resources/webhooks.d.ts.map +1 -1
  67. package/resources/webhooks.js.map +1 -1
  68. package/resources/webhooks.mjs.map +1 -1
  69. package/src/client.ts +21 -0
  70. package/src/resources/companies.ts +7 -0
  71. package/src/resources/dispute-alerts.ts +404 -0
  72. package/src/resources/experiences.ts +0 -4
  73. package/src/resources/index.ts +9 -0
  74. package/src/resources/messages.ts +5 -0
  75. package/src/resources/payments.ts +1 -0
  76. package/src/resources/products.ts +7 -3
  77. package/src/resources/refunds.ts +2 -1
  78. package/src/resources/shared.ts +51 -40
  79. package/src/resources/support-channels.ts +5 -0
  80. package/src/resources/webhooks.ts +268 -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
@@ -128,16 +128,19 @@ export type IndustryGroups =
128
128
  | 'automotive'
129
129
  | 'b2b_and_professional_marketplaces'
130
130
  | 'baby_and_kids'
131
+ | 'bars_and_breweries'
131
132
  | 'beauty_and_personal_care'
132
133
  | 'beauty_and_wellness'
133
134
  | 'business_and_entrepreneurship'
134
135
  | 'business_and_money_groups'
136
+ | 'cafes_and_quick_service'
135
137
  | 'career_and_professional'
136
138
  | 'charity_and_cause_events'
137
139
  | 'class_action_settlement'
138
140
  | 'clothing_and_apparel'
139
141
  | 'communication_and_messaging_software'
140
142
  | 'community_and_education_software'
143
+ | 'conference_and_expo_events'
141
144
  | 'consulting'
142
145
  | 'content_and_clipping_agencies'
143
146
  | 'creative_and_content_creation'
@@ -156,18 +159,16 @@ export type IndustryGroups =
156
159
  | 'digital_and_education_marketplaces'
157
160
  | 'digital_goods_and_accounts'
158
161
  | 'e_commerce_software'
159
- | 'education_and_business_events'
160
162
  | 'education_and_childcare'
163
+ | 'educational_training_events'
161
164
  | 'electronics_and_gadgets'
162
165
  | 'entertainment_and_leisure'
163
- | 'entertainment_events'
164
166
  | 'family_and_community_events'
165
167
  | 'finance_and_investing'
166
168
  | 'fitness_and_athletics'
167
169
  | 'fitness_and_health_groups'
168
170
  | 'fitness_and_recreation'
169
171
  | 'fitness_equipment_and_gear'
170
- | 'food_and_beverage'
171
172
  | 'food_and_beverages'
172
173
  | 'food_and_hospitality_marketplaces'
173
174
  | 'funeral_and_death_care'
@@ -206,6 +207,7 @@ export type IndustryGroups =
206
207
  | 'nonprofit_and_charity'
207
208
  | 'office_and_business_supplies'
208
209
  | 'outdoor_and_sports'
210
+ | 'performance_and_show_events'
209
211
  | 'personal_development'
210
212
  | 'personal_finance'
211
213
  | 'personal_services'
@@ -223,6 +225,7 @@ export type IndustryGroups =
223
225
  | 'recruiting_and_staffing'
224
226
  | 'rehabilitation_and_therapy'
225
227
  | 'rental_marketplaces'
228
+ | 'restaurants'
226
229
  | 'retail'
227
230
  | 'sales_agencies'
228
231
  | 'sales_and_revenue'
@@ -231,6 +234,7 @@ export type IndustryGroups =
231
234
  | 'service_marketplaces'
232
235
  | 'sleep_and_chronic_conditions'
233
236
  | 'social_and_networking_events'
237
+ | 'social_entertainment_events'
234
238
  | 'specialized_gigs'
235
239
  | 'specialty_medical_care'
236
240
  | 'spirituality_and_mindfulness'
@@ -55,7 +55,8 @@ export type PaymentProvider =
55
55
  | 'multi_psp'
56
56
  | 'adyen'
57
57
  | 'claritypay'
58
- | 'checkout_dot_com';
58
+ | 'checkout_dot_com'
59
+ | 'airwallex';
59
60
 
60
61
  /**
61
62
  * The status of the refund reference.
@@ -1057,7 +1057,8 @@ export type Currency =
1057
1057
  | 'uzs'
1058
1058
  | 'rub'
1059
1059
  | 'btc'
1060
- | 'cny';
1060
+ | 'cny'
1061
+ | 'usdt';
1061
1062
 
1062
1063
  /**
1063
1064
  * The different types of custom CTAs that can be selected.
@@ -1675,6 +1676,7 @@ export type IndustryTypes =
1675
1676
  | 'tennis_coaching'
1676
1677
  | 'basketball_training'
1677
1678
  | 'soccer_training'
1679
+ | 'racket_sports_coaching'
1678
1680
  | 'mental_health_coaching'
1679
1681
  | 'life_coaching'
1680
1682
  | 'biohacking'
@@ -1727,11 +1729,6 @@ export type IndustryTypes =
1727
1729
  | 'women_entrepreneurship'
1728
1730
  | 'affiliate_marketing_education'
1729
1731
  | 'coaching_business_coaching'
1730
- | 'dark_pattern_subscriptions'
1731
- | 'income_guarantee_scheme'
1732
- | 'lifetime_access_offers'
1733
- | 'mlm_pyramid_scheme'
1734
- | 'negative_option_billing'
1735
1732
  | 'startup_newsletter'
1736
1733
  | 'ecommerce_newsletter'
1737
1734
  | 'marketing_newsletter'
@@ -1767,6 +1764,7 @@ export type IndustryTypes =
1767
1764
  | 'webinar_marketing'
1768
1765
  | 'event_marketing'
1769
1766
  | 'saas_marketing_coaching'
1767
+ | 'digital_marketing'
1770
1768
  | 'video_editing_education'
1771
1769
  | 'photography_coaching'
1772
1770
  | 'music_production'
@@ -1868,7 +1866,7 @@ export type IndustryTypes =
1868
1866
  | 'leadership_development'
1869
1867
  | 'anger_management'
1870
1868
  | 'neurolinguistic_programming'
1871
- | 'kindle_publishing'
1869
+ | 'appearance_and_grooming_coaching'
1872
1870
  | 'amazon_kdp'
1873
1871
  | 'self_publishing'
1874
1872
  | 'audiobook_publishing'
@@ -1926,6 +1924,7 @@ export type IndustryTypes =
1926
1924
  | 'fashion_styling'
1927
1925
  | 'floral_design'
1928
1926
  | 'travel_planning_service'
1927
+ | 'collectibles_coaching'
1929
1928
  | 'esports_coaching'
1930
1929
  | 'game_specific_coaching'
1931
1930
  | 'legal_education'
@@ -1955,7 +1954,7 @@ export type IndustryTypes =
1955
1954
  | 'branding_agency'
1956
1955
  | 'video_marketing_agency'
1957
1956
  | 'amazon_marketing_agency'
1958
- | 'podcast_production_agency'
1957
+ | 'podcast_marketing_agency'
1959
1958
  | 'tiktok_agency'
1960
1959
  | 'linkedin_agency'
1961
1960
  | 'local_marketing_agency'
@@ -2035,6 +2034,7 @@ export type IndustryTypes =
2035
2034
  | 'multilingual_support_agency'
2036
2035
  | 'community_management_agency'
2037
2036
  | 'video_clipping_agency'
2037
+ | 'video_production_agency'
2038
2038
  | 'ugc_agency'
2039
2039
  | 'content_writing_agency'
2040
2040
  | 'translation_agency'
@@ -2269,6 +2269,7 @@ export type IndustryTypes =
2269
2269
  | 'scrubs_medical_apparel'
2270
2270
  | 'dance_performance_wear'
2271
2271
  | 'hunting_camo_apparel'
2272
+ | 'casual_everyday_clothing'
2272
2273
  | 'protein_supplements'
2273
2274
  | 'vitamins_minerals'
2274
2275
  | 'pre_workout'
@@ -2505,7 +2506,6 @@ export type IndustryTypes =
2505
2506
  | 'auto_parts_marketplace'
2506
2507
  | 'luxury_goods_marketplace'
2507
2508
  | 'collectibles_marketplace'
2508
- | 'nft_digital_marketplace'
2509
2509
  | 'wholesale_marketplace'
2510
2510
  | 'local_goods_marketplace'
2511
2511
  | 'sneaker_marketplace'
@@ -2575,6 +2575,7 @@ export type IndustryTypes =
2575
2575
  | '3d_model_marketplace'
2576
2576
  | 'prompt_marketplace'
2577
2577
  | 'code_snippet_marketplace'
2578
+ | 'affiliate_marketing_platform'
2578
2579
  | 'game_account_selling'
2579
2580
  | 'game_cheats_hacks'
2580
2581
  | 'pirated_digital_content'
@@ -2633,6 +2634,7 @@ export type IndustryTypes =
2633
2634
  | 'social_media_gig'
2634
2635
  | 'dj_gig'
2635
2636
  | 'face_painting_gig'
2637
+ | 'clipping_gig'
2636
2638
  | 'consulting_gig'
2637
2639
  | 'accounting_gig'
2638
2640
  | 'legal_gig'
@@ -2713,6 +2715,7 @@ export type IndustryTypes =
2713
2715
  | 'womens_fitness_community'
2714
2716
  | 'postpartum_fitness_group'
2715
2717
  | 'chronic_illness_support'
2718
+ | 'skincare_community'
2716
2719
  | 'content_creator_community'
2717
2720
  | 'video_editing_community'
2718
2721
  | 'music_producer_community'
@@ -2723,6 +2726,8 @@ export type IndustryTypes =
2723
2726
  | 'tiktok_creator_community'
2724
2727
  | 'podcast_community'
2725
2728
  | 'filmmaker_community'
2729
+ | 'clipping_community'
2730
+ | 'youtube_automation_community'
2726
2731
  | 'developer_community'
2727
2732
  | 'ai_community'
2728
2733
  | 'cybersecurity_community'
@@ -2763,7 +2768,9 @@ export type IndustryTypes =
2763
2768
  | 'hunting_community'
2764
2769
  | 'diy_maker_community'
2765
2770
  | 'golf_community'
2771
+ | 'collectibles_community'
2766
2772
  | 'sweepstakes_raffles'
2773
+ | 'event_ticket_community'
2767
2774
  | 'forex_trading_bot'
2768
2775
  | 'stock_trading_platform'
2769
2776
  | 'crypto_trading_bot'
@@ -2777,7 +2784,9 @@ export type IndustryTypes =
2777
2784
  | 'risk_management_software'
2778
2785
  | 'prop_trading_platform'
2779
2786
  | 'backtesting_software'
2787
+ | 'trading_indicators'
2780
2788
  | 'market_data_feed'
2789
+ | 'stock_research_tool'
2781
2790
  | 'banking_software'
2782
2791
  | 'lending_platform'
2783
2792
  | 'insurance_software'
@@ -2836,6 +2845,8 @@ export type IndustryTypes =
2836
2845
  | 'shipping_software'
2837
2846
  | 'print_on_demand_software'
2838
2847
  | 'marketplace_seller_tool'
2848
+ | 'resale_arbitrage_tool'
2849
+ | 'reseller_management_tool'
2839
2850
  | 'product_review_software'
2840
2851
  | 'returns_management'
2841
2852
  | 'product_feed_management'
@@ -2923,7 +2934,6 @@ export type IndustryTypes =
2923
2934
  | 'pest_control_software'
2924
2935
  | 'tattoo_studio_software'
2925
2936
  | 'cannabis_software'
2926
- | 'vpn_software'
2927
2937
  | 'password_manager'
2928
2938
  | 'cybersecurity_software'
2929
2939
  | 'identity_verification'
@@ -2943,6 +2953,7 @@ export type IndustryTypes =
2943
2953
  | 'animation_software'
2944
2954
  | 'audio_editing_software'
2945
2955
  | 'screen_recording_software'
2956
+ | 'sports_betting_tool'
2946
2957
  | 'fantasy_sports_paid_entry'
2947
2958
  | 'iptv_pirated_streaming'
2948
2959
  | 'loot_boxes_gacha'
@@ -2952,6 +2963,8 @@ export type IndustryTypes =
2952
2963
  | 'customer_messaging'
2953
2964
  | 'digital_key_reselling'
2954
2965
  | 'streaming_account_reselling'
2966
+ | 'subscription_account_sharing'
2967
+ | 'account_generation_tool'
2955
2968
  | 'primary_care_telehealth'
2956
2969
  | 'urgent_care_telehealth'
2957
2970
  | 'pediatric_telehealth'
@@ -3048,19 +3061,19 @@ export type IndustryTypes =
3048
3061
  | 'class_action_settlement'
3049
3062
  | 'mastermind_event'
3050
3063
  | 'webinar_event'
3064
+ | 'virtual_summit'
3051
3065
  | 'bootcamp_event'
3052
- | 'convention_expo'
3053
- | 'conference_summit'
3054
3066
  | 'workshop_seminar'
3055
3067
  | 'hackathon'
3056
- | 'pitch_competition'
3068
+ | 'corporate_training_event'
3057
3069
  | 'training_certification_event'
3070
+ | 'convention_expo'
3071
+ | 'conference_summit'
3072
+ | 'industry_awards_event'
3058
3073
  | 'product_launch_event'
3059
3074
  | 'investor_demo_day'
3060
- | 'industry_awards_event'
3061
3075
  | 'panel_discussion_event'
3062
- | 'virtual_summit'
3063
- | 'corporate_training_event'
3076
+ | 'pitch_competition'
3064
3077
  | 'meetup_event'
3065
3078
  | 'dinner_event'
3066
3079
  | 'alumni_event'
@@ -3071,12 +3084,9 @@ export type IndustryTypes =
3071
3084
  | 'founders_dinner'
3072
3085
  | 'industry_mixer'
3073
3086
  | 'concert_event'
3074
- | 'party_event'
3075
3087
  | 'comedy_show'
3076
3088
  | 'theater_performance'
3077
3089
  | 'film_screening'
3078
- | 'art_exhibition'
3079
- | 'food_festival'
3080
3090
  | 'music_festival'
3081
3091
  | 'cultural_festival'
3082
3092
  | 'fashion_show'
@@ -3084,10 +3094,13 @@ export type IndustryTypes =
3084
3094
  | 'magic_show'
3085
3095
  | 'dance_performance'
3086
3096
  | 'poetry_spoken_word'
3097
+ | 'art_exhibition'
3098
+ | 'party_event'
3087
3099
  | 'trivia_night'
3088
3100
  | 'wine_tasting_event'
3089
3101
  | 'beer_festival'
3090
3102
  | 'car_show'
3103
+ | 'food_festival'
3091
3104
  | 'fitness_challenge_event'
3092
3105
  | 'marathon_race'
3093
3106
  | 'tournament_event'
@@ -3207,24 +3220,11 @@ export type IndustryTypes =
3207
3220
  | 'equestrian_center'
3208
3221
  | 'fine_dining'
3209
3222
  | 'fast_casual_restaurant'
3210
- | 'fast_food'
3211
- | 'food_truck'
3212
- | 'bar_lounge'
3213
- | 'brewery_taproom'
3214
- | 'winery_tasting'
3215
- | 'coffee_shop_cafe'
3216
- | 'bakery'
3217
- | 'juice_smoothie_bar'
3223
+ | 'steakhouse'
3224
+ | 'seafood_restaurant'
3218
3225
  | 'pizza_shop'
3219
3226
  | 'sushi_restaurant'
3220
- | 'ethnic_restaurant'
3221
- | 'catering_kitchen'
3222
- | 'ghost_kitchen'
3223
- | 'ice_cream_shop'
3224
- | 'donut_shop'
3225
3227
  | 'deli_sandwich_shop'
3226
- | 'steakhouse'
3227
- | 'seafood_restaurant'
3228
3228
  | 'bbq_restaurant'
3229
3229
  | 'mexican_restaurant'
3230
3230
  | 'italian_restaurant'
@@ -3237,16 +3237,29 @@ export type IndustryTypes =
3237
3237
  | 'brunch_restaurant'
3238
3238
  | 'ramen_noodle_shop'
3239
3239
  | 'poke_bowl_shop'
3240
+ | 'ethnic_restaurant'
3241
+ | 'coffee_shop_cafe'
3242
+ | 'bakery'
3243
+ | 'juice_smoothie_bar'
3244
+ | 'ice_cream_shop'
3245
+ | 'donut_shop'
3240
3246
  | 'bubble_tea_shop'
3247
+ | 'food_truck'
3248
+ | 'fast_food'
3249
+ | 'ghost_kitchen'
3250
+ | 'food_hall_vendor'
3251
+ | 'catering_kitchen'
3252
+ | 'butcher_shop'
3253
+ | 'cheese_shop'
3254
+ | 'farmers_market_stall'
3255
+ | 'bar_lounge'
3256
+ | 'brewery_taproom'
3257
+ | 'winery_tasting'
3241
3258
  | 'wine_bar'
3242
3259
  | 'cocktail_bar'
3243
3260
  | 'sports_bar'
3244
3261
  | 'hookah_lounge'
3245
3262
  | 'distillery'
3246
- | 'butcher_shop'
3247
- | 'cheese_shop'
3248
- | 'farmers_market_stall'
3249
- | 'food_hall_vendor'
3250
3263
  | 'commercial_farming'
3251
3264
  | 'livestock_ranching'
3252
3265
  | 'hydroponic_vertical_farming'
@@ -3413,12 +3426,10 @@ export type IndustryTypes =
3413
3426
  | 'haunted_house'
3414
3427
  | 'water_park'
3415
3428
  | 'indoor_playground'
3416
- | 'trampoline_park_entertainment'
3417
3429
  | 'concert_venue'
3418
3430
  | 'drive_in_theater'
3419
3431
  | 'billiards_hall'
3420
3432
  | 'dart_bar'
3421
- | 'batting_cage_entertainment'
3422
3433
  | 'indoor_skydiving'
3423
3434
  | 'law_office'
3424
3435
  | 'real_estate_office'
@@ -151,6 +151,11 @@ export interface SupportChannelCreateParams {
151
151
  * channel for.
152
152
  */
153
153
  user_id: string;
154
+
155
+ /**
156
+ * Optional custom display name for the support channel.
157
+ */
158
+ custom_name?: string | null;
154
159
  }
155
160
 
156
161
  export interface SupportChannelListParams extends CursorPageParams {
@@ -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 DisputeAlertsAPI from './dispute-alerts';
4
5
  import * as DisputesAPI from './disputes';
5
6
  import * as PaymentsAPI from './payments';
6
7
  import * as PayoutMethodsAPI from './payout-methods';
@@ -221,6 +222,7 @@ export type WebhookEvent =
221
222
  | 'dispute.updated'
222
223
  | 'refund.created'
223
224
  | 'refund.updated'
225
+ | 'dispute_alert.created'
224
226
  | 'membership.cancel_at_period_end_changed';
225
227
 
226
228
  /**
@@ -1733,6 +1735,270 @@ export namespace RefundUpdatedWebhookEvent {
1733
1735
  }
1734
1736
  }
1735
1737
 
1738
+ export interface DisputeAlertCreatedWebhookEvent {
1739
+ /**
1740
+ * A unique ID for every single webhook request
1741
+ */
1742
+ id: string;
1743
+
1744
+ /**
1745
+ * The API version for this webhook
1746
+ */
1747
+ api_version: 'v1';
1748
+
1749
+ /**
1750
+ * A dispute alert represents an early warning notification from a payment
1751
+ * processor about a potential dispute or chargeback.
1752
+ */
1753
+ data: DisputeAlertCreatedWebhookEvent.Data;
1754
+
1755
+ /**
1756
+ * The timestamp in ISO 8601 format that the webhook was sent at on the server
1757
+ */
1758
+ timestamp: string;
1759
+
1760
+ /**
1761
+ * The webhook event type
1762
+ */
1763
+ type: 'dispute_alert.created';
1764
+
1765
+ /**
1766
+ * The company ID that this webhook event is associated with
1767
+ */
1768
+ company_id?: string | null;
1769
+ }
1770
+
1771
+ export namespace DisputeAlertCreatedWebhookEvent {
1772
+ /**
1773
+ * A dispute alert represents an early warning notification from a payment
1774
+ * processor about a potential dispute or chargeback.
1775
+ */
1776
+ export interface Data {
1777
+ /**
1778
+ * The unique identifier of the dispute alert.
1779
+ */
1780
+ id: string;
1781
+
1782
+ /**
1783
+ * The type of the dispute alert.
1784
+ */
1785
+ alert_type: DisputeAlertsAPI.DisputeAlertType;
1786
+
1787
+ /**
1788
+ * The alerted amount in the specified currency.
1789
+ */
1790
+ amount: number;
1791
+
1792
+ /**
1793
+ * Whether this alert incurs a charge.
1794
+ */
1795
+ charge_for_alert: boolean;
1796
+
1797
+ /**
1798
+ * The time the dispute alert was created.
1799
+ */
1800
+ created_at: string;
1801
+
1802
+ /**
1803
+ * The three-letter ISO currency code for the alerted amount.
1804
+ */
1805
+ currency: Shared.Currency;
1806
+
1807
+ /**
1808
+ * The dispute associated with the dispute alert.
1809
+ */
1810
+ dispute: Data.Dispute | null;
1811
+
1812
+ /**
1813
+ * The payment associated with the dispute alert.
1814
+ */
1815
+ payment: Data.Payment | null;
1816
+
1817
+ /**
1818
+ * The date of the original transaction.
1819
+ */
1820
+ transaction_date: string | null;
1821
+ }
1822
+
1823
+ export namespace Data {
1824
+ /**
1825
+ * The dispute associated with the dispute alert.
1826
+ */
1827
+ export interface Dispute {
1828
+ /**
1829
+ * The unique identifier for the dispute.
1830
+ */
1831
+ id: string;
1832
+
1833
+ /**
1834
+ * The disputed amount in the specified currency, formatted as a decimal.
1835
+ */
1836
+ amount: number;
1837
+
1838
+ /**
1839
+ * The datetime the dispute was created.
1840
+ */
1841
+ created_at: string | null;
1842
+
1843
+ /**
1844
+ * The three-letter ISO currency code for the disputed amount.
1845
+ */
1846
+ currency: Shared.Currency;
1847
+
1848
+ /**
1849
+ * A human-readable reason for the dispute.
1850
+ */
1851
+ reason: string | null;
1852
+
1853
+ /**
1854
+ * The current status of the dispute lifecycle, such as needs_response,
1855
+ * under_review, won, or lost.
1856
+ */
1857
+ status: DisputesAPI.DisputeStatuses;
1858
+ }
1859
+
1860
+ /**
1861
+ * The payment associated with the dispute alert.
1862
+ */
1863
+ export interface Payment {
1864
+ /**
1865
+ * The unique identifier for the payment.
1866
+ */
1867
+ id: string;
1868
+
1869
+ /**
1870
+ * The reason why a specific payment was billed
1871
+ */
1872
+ billing_reason: PaymentsAPI.BillingReasons | null;
1873
+
1874
+ /**
1875
+ * Possible card brands that a payment token can have
1876
+ */
1877
+ card_brand: PaymentsAPI.CardBrands | null;
1878
+
1879
+ /**
1880
+ * The last four digits of the card used to make this payment. Null if the payment
1881
+ * was not made with a card.
1882
+ */
1883
+ card_last4: string | null;
1884
+
1885
+ /**
1886
+ * The datetime the payment was created.
1887
+ */
1888
+ created_at: string;
1889
+
1890
+ /**
1891
+ * The available currencies on the platform
1892
+ */
1893
+ currency: Shared.Currency | null;
1894
+
1895
+ /**
1896
+ * When an alert came in that this transaction will be disputed
1897
+ */
1898
+ dispute_alerted_at: string | null;
1899
+
1900
+ /**
1901
+ * The member attached to this payment.
1902
+ */
1903
+ member: Payment.Member | null;
1904
+
1905
+ /**
1906
+ * The membership attached to this payment.
1907
+ */
1908
+ membership: Payment.Membership | null;
1909
+
1910
+ /**
1911
+ * The time at which this payment was successfully collected. Null if the payment
1912
+ * has not yet succeeded. As a Unix timestamp.
1913
+ */
1914
+ paid_at: string | null;
1915
+
1916
+ /**
1917
+ * The different types of payment methods that can be used.
1918
+ */
1919
+ payment_method_type: PaymentsAPI.PaymentMethodTypes | null;
1920
+
1921
+ /**
1922
+ * The subtotal to show to the creator (excluding buyer fees).
1923
+ */
1924
+ subtotal: number | null;
1925
+
1926
+ /**
1927
+ * The total to show to the creator (excluding buyer fees).
1928
+ */
1929
+ total: number | null;
1930
+
1931
+ /**
1932
+ * The total in USD to show to the creator (excluding buyer fees).
1933
+ */
1934
+ usd_total: number | null;
1935
+
1936
+ /**
1937
+ * The user that made this payment.
1938
+ */
1939
+ user: Payment.User | null;
1940
+ }
1941
+
1942
+ export namespace Payment {
1943
+ /**
1944
+ * The member attached to this payment.
1945
+ */
1946
+ export interface Member {
1947
+ /**
1948
+ * The unique identifier for the company member.
1949
+ */
1950
+ id: string;
1951
+
1952
+ /**
1953
+ * The phone number for the member, if available.
1954
+ */
1955
+ phone: string | null;
1956
+ }
1957
+
1958
+ /**
1959
+ * The membership attached to this payment.
1960
+ */
1961
+ export interface Membership {
1962
+ /**
1963
+ * The unique identifier for the membership.
1964
+ */
1965
+ id: string;
1966
+
1967
+ /**
1968
+ * The state of the membership.
1969
+ */
1970
+ status: Shared.MembershipStatus;
1971
+ }
1972
+
1973
+ /**
1974
+ * The user that made this payment.
1975
+ */
1976
+ export interface User {
1977
+ /**
1978
+ * The unique identifier for the user.
1979
+ */
1980
+ id: string;
1981
+
1982
+ /**
1983
+ * The user's email address. Requires the member:email:read permission to access.
1984
+ * Null if not authorized.
1985
+ */
1986
+ email: string | null;
1987
+
1988
+ /**
1989
+ * The user's display name shown on their public profile.
1990
+ */
1991
+ name: string | null;
1992
+
1993
+ /**
1994
+ * The user's unique username shown on their public profile.
1995
+ */
1996
+ username: string;
1997
+ }
1998
+ }
1999
+ }
2000
+ }
2001
+
1736
2002
  export interface MembershipCancelAtPeriodEndChangedWebhookEvent {
1737
2003
  /**
1738
2004
  * A unique ID for every single webhook request
@@ -1793,6 +2059,7 @@ export type UnwrapWebhookEvent =
1793
2059
  | DisputeUpdatedWebhookEvent
1794
2060
  | RefundCreatedWebhookEvent
1795
2061
  | RefundUpdatedWebhookEvent
2062
+ | DisputeAlertCreatedWebhookEvent
1796
2063
  | MembershipCancelAtPeriodEndChangedWebhookEvent;
1797
2064
 
1798
2065
  export interface WebhookCreateParams {
@@ -1912,6 +2179,7 @@ export declare namespace Webhooks {
1912
2179
  type DisputeUpdatedWebhookEvent as DisputeUpdatedWebhookEvent,
1913
2180
  type RefundCreatedWebhookEvent as RefundCreatedWebhookEvent,
1914
2181
  type RefundUpdatedWebhookEvent as RefundUpdatedWebhookEvent,
2182
+ type DisputeAlertCreatedWebhookEvent as DisputeAlertCreatedWebhookEvent,
1915
2183
  type MembershipCancelAtPeriodEndChangedWebhookEvent as MembershipCancelAtPeriodEndChangedWebhookEvent,
1916
2184
  type UnwrapWebhookEvent as UnwrapWebhookEvent,
1917
2185
  type WebhookListResponsesCursorPage as WebhookListResponsesCursorPage,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.0.28'; // x-release-please-version
1
+ export const VERSION = '0.0.29'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.28";
1
+ export declare const VERSION = "0.0.29";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.28";
1
+ export declare const VERSION = "0.0.29";
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.28'; // x-release-please-version
4
+ exports.VERSION = '0.0.29'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map