whop_sdk 0.0.22 → 0.0.23

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 (153) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +4 -0
  5. data/lib/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rb +9 -1
  6. data/lib/whop_sdk/models/dispute_created_webhook_event.rb +9 -1
  7. data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +9 -1
  8. data/lib/whop_sdk/models/entry_approved_webhook_event.rb +9 -1
  9. data/lib/whop_sdk/models/entry_created_webhook_event.rb +9 -1
  10. data/lib/whop_sdk/models/entry_deleted_webhook_event.rb +9 -1
  11. data/lib/whop_sdk/models/entry_denied_webhook_event.rb +9 -1
  12. data/lib/whop_sdk/models/file_create_params.rb +22 -0
  13. data/lib/whop_sdk/models/file_create_response.rb +90 -0
  14. data/lib/whop_sdk/models/file_retrieve_params.rb +14 -0
  15. data/lib/whop_sdk/models/file_retrieve_response.rb +74 -0
  16. data/lib/whop_sdk/models/invoice_created_webhook_event.rb +9 -1
  17. data/lib/whop_sdk/models/invoice_paid_webhook_event.rb +9 -1
  18. data/lib/whop_sdk/models/invoice_past_due_webhook_event.rb +9 -1
  19. data/lib/whop_sdk/models/invoice_voided_webhook_event.rb +9 -1
  20. data/lib/whop_sdk/models/membership_activated_webhook_event.rb +9 -1
  21. data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +9 -1
  22. data/lib/whop_sdk/models/membership_deactivated_webhook_event.rb +9 -1
  23. data/lib/whop_sdk/models/payment_created_webhook_event.rb +9 -1
  24. data/lib/whop_sdk/models/payment_failed_webhook_event.rb +9 -1
  25. data/lib/whop_sdk/models/payment_method_types.rb +30 -30
  26. data/lib/whop_sdk/models/payment_pending_webhook_event.rb +9 -1
  27. data/lib/whop_sdk/models/payment_succeeded_webhook_event.rb +9 -1
  28. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +9 -1
  29. data/lib/whop_sdk/models/plan_create_params.rb +9 -1
  30. data/lib/whop_sdk/models/plan_update_params.rb +9 -1
  31. data/lib/whop_sdk/models/refund_created_webhook_event.rb +9 -1
  32. data/lib/whop_sdk/models/refund_updated_webhook_event.rb +9 -1
  33. data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +9 -1
  34. data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +9 -1
  35. data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +9 -1
  36. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +9 -1
  37. data/lib/whop_sdk/models/webhook_create_params.rb +117 -0
  38. data/lib/whop_sdk/models/webhook_create_response.rb +184 -0
  39. data/lib/whop_sdk/models/webhook_delete_params.rb +14 -0
  40. data/lib/whop_sdk/models/webhook_delete_response.rb +8 -0
  41. data/lib/whop_sdk/models/webhook_list_params.rb +54 -0
  42. data/lib/whop_sdk/models/webhook_list_response.rb +123 -0
  43. data/lib/whop_sdk/models/webhook_retrieve_params.rb +14 -0
  44. data/lib/whop_sdk/models/webhook_retrieve_response.rb +176 -0
  45. data/lib/whop_sdk/models/webhook_update_params.rb +104 -0
  46. data/lib/whop_sdk/models/webhook_update_response.rb +176 -0
  47. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +9 -1
  48. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +9 -1
  49. data/lib/whop_sdk/models.rb +14 -0
  50. data/lib/whop_sdk/resources/files.rb +56 -0
  51. data/lib/whop_sdk/resources/plans.rb +6 -2
  52. data/lib/whop_sdk/resources/webhooks.rb +158 -0
  53. data/lib/whop_sdk/version.rb +1 -1
  54. data/lib/whop_sdk.rb +15 -0
  55. data/rbi/whop_sdk/client.rbi +3 -0
  56. data/rbi/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbi +9 -1
  57. data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +9 -1
  58. data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +9 -1
  59. data/rbi/whop_sdk/models/entry_approved_webhook_event.rbi +9 -1
  60. data/rbi/whop_sdk/models/entry_created_webhook_event.rbi +9 -1
  61. data/rbi/whop_sdk/models/entry_deleted_webhook_event.rbi +9 -1
  62. data/rbi/whop_sdk/models/entry_denied_webhook_event.rbi +9 -1
  63. data/rbi/whop_sdk/models/file_create_params.rbi +40 -0
  64. data/rbi/whop_sdk/models/file_create_response.rbi +140 -0
  65. data/rbi/whop_sdk/models/file_retrieve_params.rbi +27 -0
  66. data/rbi/whop_sdk/models/file_retrieve_response.rbi +129 -0
  67. data/rbi/whop_sdk/models/invoice_created_webhook_event.rbi +9 -1
  68. data/rbi/whop_sdk/models/invoice_paid_webhook_event.rbi +9 -1
  69. data/rbi/whop_sdk/models/invoice_past_due_webhook_event.rbi +9 -1
  70. data/rbi/whop_sdk/models/invoice_voided_webhook_event.rbi +9 -1
  71. data/rbi/whop_sdk/models/membership_activated_webhook_event.rbi +9 -1
  72. data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +9 -1
  73. data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +9 -1
  74. data/rbi/whop_sdk/models/payment_created_webhook_event.rbi +9 -1
  75. data/rbi/whop_sdk/models/payment_failed_webhook_event.rbi +9 -1
  76. data/rbi/whop_sdk/models/payment_method_types.rbi +33 -33
  77. data/rbi/whop_sdk/models/payment_pending_webhook_event.rbi +9 -1
  78. data/rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi +9 -1
  79. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +9 -1
  80. data/rbi/whop_sdk/models/plan_create_params.rbi +8 -0
  81. data/rbi/whop_sdk/models/plan_update_params.rbi +8 -0
  82. data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +9 -1
  83. data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +9 -1
  84. data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +9 -1
  85. data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +9 -1
  86. data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +9 -1
  87. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +9 -1
  88. data/rbi/whop_sdk/models/webhook_create_params.rbi +275 -0
  89. data/rbi/whop_sdk/models/webhook_create_response.rbi +494 -0
  90. data/rbi/whop_sdk/models/webhook_delete_params.rbi +27 -0
  91. data/rbi/whop_sdk/models/webhook_delete_response.rbi +8 -0
  92. data/rbi/whop_sdk/models/webhook_list_params.rbi +75 -0
  93. data/rbi/whop_sdk/models/webhook_list_response.rbi +297 -0
  94. data/rbi/whop_sdk/models/webhook_retrieve_params.rbi +27 -0
  95. data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +491 -0
  96. data/rbi/whop_sdk/models/webhook_update_params.rbi +263 -0
  97. data/rbi/whop_sdk/models/webhook_update_response.rbi +486 -0
  98. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +9 -1
  99. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +9 -1
  100. data/rbi/whop_sdk/models.rbi +14 -0
  101. data/rbi/whop_sdk/resources/files.rbi +40 -0
  102. data/rbi/whop_sdk/resources/plans.rbi +6 -0
  103. data/rbi/whop_sdk/resources/webhooks.rbi +140 -0
  104. data/sig/whop_sdk/client.rbs +2 -0
  105. data/sig/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbs +7 -2
  106. data/sig/whop_sdk/models/dispute_created_webhook_event.rbs +7 -2
  107. data/sig/whop_sdk/models/dispute_updated_webhook_event.rbs +7 -2
  108. data/sig/whop_sdk/models/entry_approved_webhook_event.rbs +7 -2
  109. data/sig/whop_sdk/models/entry_created_webhook_event.rbs +7 -2
  110. data/sig/whop_sdk/models/entry_deleted_webhook_event.rbs +7 -2
  111. data/sig/whop_sdk/models/entry_denied_webhook_event.rbs +7 -2
  112. data/sig/whop_sdk/models/file_create_params.rbs +23 -0
  113. data/sig/whop_sdk/models/file_create_response.rbs +68 -0
  114. data/sig/whop_sdk/models/file_retrieve_params.rbs +15 -0
  115. data/sig/whop_sdk/models/file_retrieve_response.rbs +58 -0
  116. data/sig/whop_sdk/models/invoice_created_webhook_event.rbs +7 -2
  117. data/sig/whop_sdk/models/invoice_paid_webhook_event.rbs +7 -2
  118. data/sig/whop_sdk/models/invoice_past_due_webhook_event.rbs +7 -2
  119. data/sig/whop_sdk/models/invoice_voided_webhook_event.rbs +7 -2
  120. data/sig/whop_sdk/models/membership_activated_webhook_event.rbs +7 -2
  121. data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +7 -2
  122. data/sig/whop_sdk/models/membership_deactivated_webhook_event.rbs +7 -2
  123. data/sig/whop_sdk/models/payment_created_webhook_event.rbs +7 -2
  124. data/sig/whop_sdk/models/payment_failed_webhook_event.rbs +7 -2
  125. data/sig/whop_sdk/models/payment_method_types.rbs +61 -61
  126. data/sig/whop_sdk/models/payment_pending_webhook_event.rbs +7 -2
  127. data/sig/whop_sdk/models/payment_succeeded_webhook_event.rbs +7 -2
  128. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +7 -2
  129. data/sig/whop_sdk/models/plan_create_params.rbs +5 -0
  130. data/sig/whop_sdk/models/plan_update_params.rbs +5 -0
  131. data/sig/whop_sdk/models/refund_created_webhook_event.rbs +7 -2
  132. data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +7 -2
  133. data/sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs +7 -2
  134. data/sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs +7 -2
  135. data/sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs +7 -2
  136. data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +7 -2
  137. data/sig/whop_sdk/models/webhook_create_params.rbs +126 -0
  138. data/sig/whop_sdk/models/webhook_create_response.rbs +203 -0
  139. data/sig/whop_sdk/models/webhook_delete_params.rbs +15 -0
  140. data/sig/whop_sdk/models/webhook_delete_response.rbs +5 -0
  141. data/sig/whop_sdk/models/webhook_list_params.rbs +46 -0
  142. data/sig/whop_sdk/models/webhook_list_response.rbs +125 -0
  143. data/sig/whop_sdk/models/webhook_retrieve_params.rbs +15 -0
  144. data/sig/whop_sdk/models/webhook_retrieve_response.rbs +198 -0
  145. data/sig/whop_sdk/models/webhook_update_params.rbs +121 -0
  146. data/sig/whop_sdk/models/webhook_update_response.rbs +198 -0
  147. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +7 -2
  148. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +7 -2
  149. data/sig/whop_sdk/models.rbs +14 -0
  150. data/sig/whop_sdk/resources/files.rbs +17 -0
  151. data/sig/whop_sdk/resources/plans.rbs +2 -0
  152. data/sig/whop_sdk/resources/webhooks.rbs +36 -0
  153. metadata +47 -2
@@ -35,11 +35,16 @@ module WhopSDK
35
35
  sig { returns(Symbol) }
36
36
  attr_accessor :type
37
37
 
38
+ # The company ID that this webhook event is associated with
39
+ sig { returns(T.nilable(String)) }
40
+ attr_accessor :company_id
41
+
38
42
  sig do
39
43
  params(
40
44
  id: String,
41
45
  data: WhopSDK::Membership::OrHash,
42
46
  timestamp: Time,
47
+ company_id: T.nilable(String),
43
48
  api_version: Symbol,
44
49
  type: Symbol
45
50
  ).returns(T.attached_class)
@@ -52,6 +57,8 @@ module WhopSDK
52
57
  data:,
53
58
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
54
59
  timestamp:,
60
+ # The company ID that this webhook event is associated with
61
+ company_id: nil,
55
62
  # The API version for this webhook
56
63
  api_version: :v1,
57
64
  # The webhook event type
@@ -66,7 +73,8 @@ module WhopSDK
66
73
  api_version: Symbol,
67
74
  data: WhopSDK::Membership,
68
75
  timestamp: Time,
69
- type: Symbol
76
+ type: Symbol,
77
+ company_id: T.nilable(String)
70
78
  }
71
79
  )
72
80
  end
@@ -31,11 +31,16 @@ module WhopSDK
31
31
  sig { returns(Symbol) }
32
32
  attr_accessor :type
33
33
 
34
+ # The company ID that this webhook event is associated with
35
+ sig { returns(T.nilable(String)) }
36
+ attr_accessor :company_id
37
+
34
38
  sig do
35
39
  params(
36
40
  id: String,
37
41
  data: WhopSDK::Payment::OrHash,
38
42
  timestamp: Time,
43
+ company_id: T.nilable(String),
39
44
  api_version: Symbol,
40
45
  type: Symbol
41
46
  ).returns(T.attached_class)
@@ -47,6 +52,8 @@ module WhopSDK
47
52
  data:,
48
53
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
49
54
  timestamp:,
55
+ # The company ID that this webhook event is associated with
56
+ company_id: nil,
50
57
  # The API version for this webhook
51
58
  api_version: :v1,
52
59
  # The webhook event type
@@ -61,7 +68,8 @@ module WhopSDK
61
68
  api_version: Symbol,
62
69
  data: WhopSDK::Payment,
63
70
  timestamp: Time,
64
- type: Symbol
71
+ type: Symbol,
72
+ company_id: T.nilable(String)
65
73
  }
66
74
  )
67
75
  end
@@ -31,11 +31,16 @@ module WhopSDK
31
31
  sig { returns(Symbol) }
32
32
  attr_accessor :type
33
33
 
34
+ # The company ID that this webhook event is associated with
35
+ sig { returns(T.nilable(String)) }
36
+ attr_accessor :company_id
37
+
34
38
  sig do
35
39
  params(
36
40
  id: String,
37
41
  data: WhopSDK::Payment::OrHash,
38
42
  timestamp: Time,
43
+ company_id: T.nilable(String),
39
44
  api_version: Symbol,
40
45
  type: Symbol
41
46
  ).returns(T.attached_class)
@@ -47,6 +52,8 @@ module WhopSDK
47
52
  data:,
48
53
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
49
54
  timestamp:,
55
+ # The company ID that this webhook event is associated with
56
+ company_id: nil,
50
57
  # The API version for this webhook
51
58
  api_version: :v1,
52
59
  # The webhook event type
@@ -61,7 +68,8 @@ module WhopSDK
61
68
  api_version: Symbol,
62
69
  data: WhopSDK::Payment,
63
70
  timestamp: Time,
64
- type: Symbol
71
+ type: Symbol,
72
+ company_id: T.nilable(String)
65
73
  }
66
74
  )
67
75
  end
@@ -9,37 +9,37 @@ module WhopSDK
9
9
  TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::PaymentMethodTypes) }
10
10
  OrSymbol = T.type_alias { T.any(Symbol, String) }
11
11
 
12
- ACSS_DEBIT = T.let(:acss_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
13
- AFFIRM = T.let(:affirm, WhopSDK::PaymentMethodTypes::TaggedSymbol)
14
12
  AFTERPAY_CLEARPAY =
15
13
  T.let(:afterpay_clearpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
16
14
  ALIPAY = T.let(:alipay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
17
- ALMA = T.let(:alma, WhopSDK::PaymentMethodTypes::TaggedSymbol)
18
15
  AMAZON_PAY = T.let(:amazon_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
19
16
  APPLE_PAY = T.let(:apple_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
20
- AU_BECS_DEBIT =
21
- T.let(:au_becs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
22
- BACS_DEBIT = T.let(:bacs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
23
17
  BANCONTACT = T.let(:bancontact, WhopSDK::PaymentMethodTypes::TaggedSymbol)
24
- BILLIE = T.let(:billie, WhopSDK::PaymentMethodTypes::TaggedSymbol)
25
- BLIK = T.let(:blik, WhopSDK::PaymentMethodTypes::TaggedSymbol)
26
- BOLETO = T.let(:boleto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
27
18
  CARD = T.let(:card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
28
19
  CASHAPP = T.let(:cashapp, WhopSDK::PaymentMethodTypes::TaggedSymbol)
29
20
  CRYPTO = T.let(:crypto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
30
- EPS = T.let(:eps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
31
- FPX = T.let(:fpx, WhopSDK::PaymentMethodTypes::TaggedSymbol)
32
- GIROPAY = T.let(:giropay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
33
21
  GOOGLE_PAY = T.let(:google_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
34
- GRABPAY = T.let(:grabpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
35
22
  IDEAL = T.let(:ideal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
36
- KAKAO_PAY = T.let(:kakao_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
37
23
  KLARNA = T.let(:klarna, WhopSDK::PaymentMethodTypes::TaggedSymbol)
38
- KONBINI = T.let(:konbini, WhopSDK::PaymentMethodTypes::TaggedSymbol)
39
- KR_CARD = T.let(:kr_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
40
- LINK = T.let(:link, WhopSDK::PaymentMethodTypes::TaggedSymbol)
41
24
  MOBILEPAY = T.let(:mobilepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
25
+ SEPA_DEBIT = T.let(:sepa_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
26
+ SWISH = T.let(:swish, WhopSDK::PaymentMethodTypes::TaggedSymbol)
27
+ TWINT = T.let(:twint, WhopSDK::PaymentMethodTypes::TaggedSymbol)
28
+ US_BANK_ACCOUNT =
29
+ T.let(:us_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
30
+ ZIP = T.let(:zip, WhopSDK::PaymentMethodTypes::TaggedSymbol)
31
+ VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
32
+ PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
33
+ SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
34
+ COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
35
+ SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
36
+ PLATFORM_BALANCE =
37
+ T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
38
+ APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
39
+ VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
40
+ AFFIRM = T.let(:affirm, WhopSDK::PaymentMethodTypes::TaggedSymbol)
42
41
  MULTIBANCO = T.let(:multibanco, WhopSDK::PaymentMethodTypes::TaggedSymbol)
42
+ WECHAT_PAY = T.let(:wechat_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
43
43
  NAVER_PAY = T.let(:naver_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
44
44
  NZ_BANK_ACCOUNT =
45
45
  T.let(:nz_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
@@ -56,14 +56,23 @@ module WhopSDK
56
56
  SAMSUNG_PAY =
57
57
  T.let(:samsung_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
58
58
  SATISPAY = T.let(:satispay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
59
- SEPA_DEBIT = T.let(:sepa_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
60
59
  SOFORT = T.let(:sofort, WhopSDK::PaymentMethodTypes::TaggedSymbol)
61
- SWISH = T.let(:swish, WhopSDK::PaymentMethodTypes::TaggedSymbol)
62
- TWINT = T.let(:twint, WhopSDK::PaymentMethodTypes::TaggedSymbol)
63
- US_BANK_ACCOUNT =
64
- T.let(:us_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
65
- WECHAT_PAY = T.let(:wechat_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
66
- ZIP = T.let(:zip, WhopSDK::PaymentMethodTypes::TaggedSymbol)
60
+ KONBINI = T.let(:konbini, WhopSDK::PaymentMethodTypes::TaggedSymbol)
61
+ KR_CARD = T.let(:kr_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
62
+ LINK = T.let(:link, WhopSDK::PaymentMethodTypes::TaggedSymbol)
63
+ GRABPAY = T.let(:grabpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
64
+ KAKAO_PAY = T.let(:kakao_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
65
+ BILLIE = T.let(:billie, WhopSDK::PaymentMethodTypes::TaggedSymbol)
66
+ BLIK = T.let(:blik, WhopSDK::PaymentMethodTypes::TaggedSymbol)
67
+ BOLETO = T.let(:boleto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
68
+ EPS = T.let(:eps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
69
+ FPX = T.let(:fpx, WhopSDK::PaymentMethodTypes::TaggedSymbol)
70
+ GIROPAY = T.let(:giropay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
71
+ ACSS_DEBIT = T.let(:acss_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
72
+ ALMA = T.let(:alma, WhopSDK::PaymentMethodTypes::TaggedSymbol)
73
+ AU_BECS_DEBIT =
74
+ T.let(:au_becs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
75
+ BACS_DEBIT = T.let(:bacs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
67
76
  BIZUM = T.let(:bizum, WhopSDK::PaymentMethodTypes::TaggedSymbol)
68
77
  CAPCHASE_PAY =
69
78
  T.let(:capchase_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
@@ -73,7 +82,6 @@ module WhopSDK
73
82
  PAYPAY = T.let(:paypay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
74
83
  SEQURA = T.let(:sequra, WhopSDK::PaymentMethodTypes::TaggedSymbol)
75
84
  SCALAPAY = T.let(:scalapay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
76
- VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
77
85
  CUSTOM = T.let(:custom, WhopSDK::PaymentMethodTypes::TaggedSymbol)
78
86
  CUSTOMER_BALANCE =
79
87
  T.let(:customer_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
@@ -85,7 +93,6 @@ module WhopSDK
85
93
  NG_CARD = T.let(:ng_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
86
94
  NG_MARKET = T.let(:ng_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
87
95
  NG_USSD = T.let(:ng_ussd, WhopSDK::PaymentMethodTypes::TaggedSymbol)
88
- PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
89
96
  PAYTO = T.let(:payto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
90
97
  QRIS = T.let(:qris, WhopSDK::PaymentMethodTypes::TaggedSymbol)
91
98
  RECHNUNG = T.let(:rechnung, WhopSDK::PaymentMethodTypes::TaggedSymbol)
@@ -100,13 +107,6 @@ module WhopSDK
100
107
  T.let(:id_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
101
108
  DEMO_PAY = T.let(:demo_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
102
109
  SHOP_PAY = T.let(:shop_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
103
- SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
104
- COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
105
- SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
106
- PLATFORM_BALANCE =
107
- T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
108
- APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
109
- VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
110
110
  UNKNOWN = T.let(:unknown, WhopSDK::PaymentMethodTypes::TaggedSymbol)
111
111
 
112
112
  sig do
@@ -31,11 +31,16 @@ module WhopSDK
31
31
  sig { returns(Symbol) }
32
32
  attr_accessor :type
33
33
 
34
+ # The company ID that this webhook event is associated with
35
+ sig { returns(T.nilable(String)) }
36
+ attr_accessor :company_id
37
+
34
38
  sig do
35
39
  params(
36
40
  id: String,
37
41
  data: WhopSDK::Payment::OrHash,
38
42
  timestamp: Time,
43
+ company_id: T.nilable(String),
39
44
  api_version: Symbol,
40
45
  type: Symbol
41
46
  ).returns(T.attached_class)
@@ -47,6 +52,8 @@ module WhopSDK
47
52
  data:,
48
53
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
49
54
  timestamp:,
55
+ # The company ID that this webhook event is associated with
56
+ company_id: nil,
50
57
  # The API version for this webhook
51
58
  api_version: :v1,
52
59
  # The webhook event type
@@ -61,7 +68,8 @@ module WhopSDK
61
68
  api_version: Symbol,
62
69
  data: WhopSDK::Payment,
63
70
  timestamp: Time,
64
- type: Symbol
71
+ type: Symbol,
72
+ company_id: T.nilable(String)
65
73
  }
66
74
  )
67
75
  end
@@ -34,11 +34,16 @@ module WhopSDK
34
34
  sig { returns(Symbol) }
35
35
  attr_accessor :type
36
36
 
37
+ # The company ID that this webhook event is associated with
38
+ sig { returns(T.nilable(String)) }
39
+ attr_accessor :company_id
40
+
37
41
  sig do
38
42
  params(
39
43
  id: String,
40
44
  data: WhopSDK::Payment::OrHash,
41
45
  timestamp: Time,
46
+ company_id: T.nilable(String),
42
47
  api_version: Symbol,
43
48
  type: Symbol
44
49
  ).returns(T.attached_class)
@@ -50,6 +55,8 @@ module WhopSDK
50
55
  data:,
51
56
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
52
57
  timestamp:,
58
+ # The company ID that this webhook event is associated with
59
+ company_id: nil,
53
60
  # The API version for this webhook
54
61
  api_version: :v1,
55
62
  # The webhook event type
@@ -64,7 +71,8 @@ module WhopSDK
64
71
  api_version: Symbol,
65
72
  data: WhopSDK::Payment,
66
73
  timestamp: Time,
67
- type: Symbol
74
+ type: Symbol,
75
+ company_id: T.nilable(String)
68
76
  }
69
77
  )
70
78
  end
@@ -38,11 +38,16 @@ module WhopSDK
38
38
  sig { returns(Symbol) }
39
39
  attr_accessor :type
40
40
 
41
+ # The company ID that this webhook event is associated with
42
+ sig { returns(T.nilable(String)) }
43
+ attr_accessor :company_id
44
+
41
45
  sig do
42
46
  params(
43
47
  id: String,
44
48
  data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::OrHash,
45
49
  timestamp: Time,
50
+ company_id: T.nilable(String),
46
51
  api_version: Symbol,
47
52
  type: Symbol
48
53
  ).returns(T.attached_class)
@@ -54,6 +59,8 @@ module WhopSDK
54
59
  data:,
55
60
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
56
61
  timestamp:,
62
+ # The company ID that this webhook event is associated with
63
+ company_id: nil,
57
64
  # The API version for this webhook
58
65
  api_version: :v1,
59
66
  # The webhook event type
@@ -68,7 +75,8 @@ module WhopSDK
68
75
  api_version: Symbol,
69
76
  data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
70
77
  timestamp: Time,
71
- type: Symbol
78
+ type: Symbol,
79
+ company_id: T.nilable(String)
72
80
  }
73
81
  )
74
82
  end
@@ -64,6 +64,10 @@ module WhopSDK
64
64
  sig { returns(T.nilable(String)) }
65
65
  attr_accessor :internal_notes
66
66
 
67
+ # Whether this plan uses legacy payment method controls
68
+ sig { returns(T.nilable(T::Boolean)) }
69
+ attr_accessor :legacy_payment_method_controls
70
+
67
71
  # Whether or not the tax is included in a plan's price (or if it hasn't been set
68
72
  # up)
69
73
  sig { returns(T.nilable(WhopSDK::TaxType::OrSymbol)) }
@@ -144,6 +148,7 @@ module WhopSDK
144
148
  ),
145
149
  initial_price: T.nilable(Float),
146
150
  internal_notes: T.nilable(String),
151
+ legacy_payment_method_controls: T.nilable(T::Boolean),
147
152
  override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
148
153
  payment_method_configuration:
149
154
  T.nilable(
@@ -184,6 +189,8 @@ module WhopSDK
184
189
  initial_price: nil,
185
190
  # A personal description or notes section for the business.
186
191
  internal_notes: nil,
192
+ # Whether this plan uses legacy payment method controls
193
+ legacy_payment_method_controls: nil,
187
194
  # Whether or not the tax is included in a plan's price (or if it hasn't been set
188
195
  # up)
189
196
  override_tax_type: nil,
@@ -233,6 +240,7 @@ module WhopSDK
233
240
  ),
234
241
  initial_price: T.nilable(Float),
235
242
  internal_notes: T.nilable(String),
243
+ legacy_payment_method_controls: T.nilable(T::Boolean),
236
244
  override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
237
245
  payment_method_configuration:
238
246
  T.nilable(WhopSDK::PlanCreateParams::PaymentMethodConfiguration),
@@ -54,6 +54,10 @@ module WhopSDK
54
54
  sig { returns(T.nilable(String)) }
55
55
  attr_accessor :internal_notes
56
56
 
57
+ # Whether this plan uses legacy payment method controls
58
+ sig { returns(T.nilable(T::Boolean)) }
59
+ attr_accessor :legacy_payment_method_controls
60
+
57
61
  # Whether or not to offer a discount to cancel a subscription.
58
62
  sig { returns(T.nilable(T::Boolean)) }
59
63
  attr_accessor :offer_cancel_discount
@@ -133,6 +137,7 @@ module WhopSDK
133
137
  ),
134
138
  initial_price: T.nilable(Float),
135
139
  internal_notes: T.nilable(String),
140
+ legacy_payment_method_controls: T.nilable(T::Boolean),
136
141
  offer_cancel_discount: T.nilable(T::Boolean),
137
142
  override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
138
143
  payment_method_configuration:
@@ -167,6 +172,8 @@ module WhopSDK
167
172
  initial_price: nil,
168
173
  # A personal description or notes section for the business.
169
174
  internal_notes: nil,
175
+ # Whether this plan uses legacy payment method controls
176
+ legacy_payment_method_controls: nil,
170
177
  # Whether or not to offer a discount to cancel a subscription.
171
178
  offer_cancel_discount: nil,
172
179
  # Whether or not the tax is included in a plan's price (or if it hasn't been set
@@ -215,6 +222,7 @@ module WhopSDK
215
222
  ),
216
223
  initial_price: T.nilable(Float),
217
224
  internal_notes: T.nilable(String),
225
+ legacy_payment_method_controls: T.nilable(T::Boolean),
218
226
  offer_cancel_discount: T.nilable(T::Boolean),
219
227
  override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
220
228
  payment_method_configuration:
@@ -33,11 +33,16 @@ module WhopSDK
33
33
  sig { returns(Symbol) }
34
34
  attr_accessor :type
35
35
 
36
+ # The company ID that this webhook event is associated with
37
+ sig { returns(T.nilable(String)) }
38
+ attr_accessor :company_id
39
+
36
40
  sig do
37
41
  params(
38
42
  id: String,
39
43
  data: WhopSDK::RefundCreatedWebhookEvent::Data::OrHash,
40
44
  timestamp: Time,
45
+ company_id: T.nilable(String),
41
46
  api_version: Symbol,
42
47
  type: Symbol
43
48
  ).returns(T.attached_class)
@@ -49,6 +54,8 @@ module WhopSDK
49
54
  data:,
50
55
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
51
56
  timestamp:,
57
+ # The company ID that this webhook event is associated with
58
+ company_id: nil,
52
59
  # The API version for this webhook
53
60
  api_version: :v1,
54
61
  # The webhook event type
@@ -63,7 +70,8 @@ module WhopSDK
63
70
  api_version: Symbol,
64
71
  data: WhopSDK::RefundCreatedWebhookEvent::Data,
65
72
  timestamp: Time,
66
- type: Symbol
73
+ type: Symbol,
74
+ company_id: T.nilable(String)
67
75
  }
68
76
  )
69
77
  end
@@ -33,11 +33,16 @@ module WhopSDK
33
33
  sig { returns(Symbol) }
34
34
  attr_accessor :type
35
35
 
36
+ # The company ID that this webhook event is associated with
37
+ sig { returns(T.nilable(String)) }
38
+ attr_accessor :company_id
39
+
36
40
  sig do
37
41
  params(
38
42
  id: String,
39
43
  data: WhopSDK::RefundUpdatedWebhookEvent::Data::OrHash,
40
44
  timestamp: Time,
45
+ company_id: T.nilable(String),
41
46
  api_version: Symbol,
42
47
  type: Symbol
43
48
  ).returns(T.attached_class)
@@ -49,6 +54,8 @@ module WhopSDK
49
54
  data:,
50
55
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
51
56
  timestamp:,
57
+ # The company ID that this webhook event is associated with
58
+ company_id: nil,
52
59
  # The API version for this webhook
53
60
  api_version: :v1,
54
61
  # The webhook event type
@@ -63,7 +70,8 @@ module WhopSDK
63
70
  api_version: Symbol,
64
71
  data: WhopSDK::RefundUpdatedWebhookEvent::Data,
65
72
  timestamp: Time,
66
- type: Symbol
73
+ type: Symbol,
74
+ company_id: T.nilable(String)
67
75
  }
68
76
  )
69
77
  end
@@ -35,11 +35,16 @@ module WhopSDK
35
35
  sig { returns(Symbol) }
36
36
  attr_accessor :type
37
37
 
38
+ # The company ID that this webhook event is associated with
39
+ sig { returns(T.nilable(String)) }
40
+ attr_accessor :company_id
41
+
38
42
  sig do
39
43
  params(
40
44
  id: String,
41
45
  data: WhopSDK::SetupIntent::OrHash,
42
46
  timestamp: Time,
47
+ company_id: T.nilable(String),
43
48
  api_version: Symbol,
44
49
  type: Symbol
45
50
  ).returns(T.attached_class)
@@ -52,6 +57,8 @@ module WhopSDK
52
57
  data:,
53
58
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
54
59
  timestamp:,
60
+ # The company ID that this webhook event is associated with
61
+ company_id: nil,
55
62
  # The API version for this webhook
56
63
  api_version: :v1,
57
64
  # The webhook event type
@@ -66,7 +73,8 @@ module WhopSDK
66
73
  api_version: Symbol,
67
74
  data: WhopSDK::SetupIntent,
68
75
  timestamp: Time,
69
- type: Symbol
76
+ type: Symbol,
77
+ company_id: T.nilable(String)
70
78
  }
71
79
  )
72
80
  end
@@ -35,11 +35,16 @@ module WhopSDK
35
35
  sig { returns(Symbol) }
36
36
  attr_accessor :type
37
37
 
38
+ # The company ID that this webhook event is associated with
39
+ sig { returns(T.nilable(String)) }
40
+ attr_accessor :company_id
41
+
38
42
  sig do
39
43
  params(
40
44
  id: String,
41
45
  data: WhopSDK::SetupIntent::OrHash,
42
46
  timestamp: Time,
47
+ company_id: T.nilable(String),
43
48
  api_version: Symbol,
44
49
  type: Symbol
45
50
  ).returns(T.attached_class)
@@ -52,6 +57,8 @@ module WhopSDK
52
57
  data:,
53
58
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
54
59
  timestamp:,
60
+ # The company ID that this webhook event is associated with
61
+ company_id: nil,
55
62
  # The API version for this webhook
56
63
  api_version: :v1,
57
64
  # The webhook event type
@@ -66,7 +73,8 @@ module WhopSDK
66
73
  api_version: Symbol,
67
74
  data: WhopSDK::SetupIntent,
68
75
  timestamp: Time,
69
- type: Symbol
76
+ type: Symbol,
77
+ company_id: T.nilable(String)
70
78
  }
71
79
  )
72
80
  end
@@ -35,11 +35,16 @@ module WhopSDK
35
35
  sig { returns(Symbol) }
36
36
  attr_accessor :type
37
37
 
38
+ # The company ID that this webhook event is associated with
39
+ sig { returns(T.nilable(String)) }
40
+ attr_accessor :company_id
41
+
38
42
  sig do
39
43
  params(
40
44
  id: String,
41
45
  data: WhopSDK::SetupIntent::OrHash,
42
46
  timestamp: Time,
47
+ company_id: T.nilable(String),
43
48
  api_version: Symbol,
44
49
  type: Symbol
45
50
  ).returns(T.attached_class)
@@ -52,6 +57,8 @@ module WhopSDK
52
57
  data:,
53
58
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
54
59
  timestamp:,
60
+ # The company ID that this webhook event is associated with
61
+ company_id: nil,
55
62
  # The API version for this webhook
56
63
  api_version: :v1,
57
64
  # The webhook event type
@@ -66,7 +73,8 @@ module WhopSDK
66
73
  api_version: Symbol,
67
74
  data: WhopSDK::SetupIntent,
68
75
  timestamp: Time,
69
- type: Symbol
76
+ type: Symbol,
77
+ company_id: T.nilable(String)
70
78
  }
71
79
  )
72
80
  end
@@ -38,11 +38,16 @@ module WhopSDK
38
38
  sig { returns(Symbol) }
39
39
  attr_accessor :type
40
40
 
41
+ # The company ID that this webhook event is associated with
42
+ sig { returns(T.nilable(String)) }
43
+ attr_accessor :company_id
44
+
41
45
  sig do
42
46
  params(
43
47
  id: String,
44
48
  data: WhopSDK::VerificationSucceededWebhookEvent::Data::OrHash,
45
49
  timestamp: Time,
50
+ company_id: T.nilable(String),
46
51
  api_version: Symbol,
47
52
  type: Symbol
48
53
  ).returns(T.attached_class)
@@ -54,6 +59,8 @@ module WhopSDK
54
59
  data:,
55
60
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
56
61
  timestamp:,
62
+ # The company ID that this webhook event is associated with
63
+ company_id: nil,
57
64
  # The API version for this webhook
58
65
  api_version: :v1,
59
66
  # The webhook event type
@@ -68,7 +75,8 @@ module WhopSDK
68
75
  api_version: Symbol,
69
76
  data: WhopSDK::VerificationSucceededWebhookEvent::Data,
70
77
  timestamp: Time,
71
- type: Symbol
78
+ type: Symbol,
79
+ company_id: T.nilable(String)
72
80
  }
73
81
  )
74
82
  end