whop_sdk 0.0.19 → 0.0.22

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 (130) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +41 -0
  3. data/README.md +10 -1
  4. data/lib/whop_sdk/client.rb +12 -0
  5. data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/whop_sdk/internal/util.rb +7 -2
  7. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +11 -1
  8. data/lib/whop_sdk/models/company_create_params.rb +17 -1
  9. data/lib/whop_sdk/models/company_update_params.rb +17 -1
  10. data/lib/whop_sdk/models/lead_create_params.rb +58 -0
  11. data/lib/whop_sdk/models/lead_create_response.rb +149 -0
  12. data/lib/whop_sdk/models/lead_list_params.rb +78 -0
  13. data/lib/whop_sdk/models/lead_list_response.rb +149 -0
  14. data/lib/whop_sdk/models/lead_retrieve_params.rb +14 -0
  15. data/lib/whop_sdk/models/lead_retrieve_response.rb +149 -0
  16. data/lib/whop_sdk/models/lead_update_params.rb +30 -0
  17. data/lib/whop_sdk/models/lead_update_response.rb +149 -0
  18. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +128 -2
  19. data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +53 -0
  20. data/lib/whop_sdk/models/membership_status.rb +1 -0
  21. data/lib/whop_sdk/models/payment.rb +3 -3
  22. data/lib/whop_sdk/models/payment_create_params.rb +9 -1
  23. data/lib/whop_sdk/models/payment_list_fees_response.rb +1 -0
  24. data/lib/whop_sdk/models/payment_list_response.rb +3 -3
  25. data/lib/whop_sdk/models/payment_method_list_params.rb +16 -8
  26. data/lib/whop_sdk/models/payment_method_retrieve_params.rb +13 -5
  27. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +168 -0
  28. data/lib/whop_sdk/models/payout_method_list_response.rb +31 -1
  29. data/lib/whop_sdk/models/payout_method_retrieve_params.rb +14 -0
  30. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +125 -0
  31. data/lib/whop_sdk/models/support_channel_create_params.rb +2 -2
  32. data/lib/whop_sdk/models/topup_create_params.rb +46 -0
  33. data/lib/whop_sdk/models/topup_create_response.rb +67 -0
  34. data/lib/whop_sdk/models/unwrap_webhook_event.rb +8 -1
  35. data/lib/whop_sdk/models/verification_retrieve_params.rb +14 -0
  36. data/lib/whop_sdk/models/verification_retrieve_response.rb +99 -0
  37. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +142 -0
  38. data/lib/whop_sdk/models.rb +21 -0
  39. data/lib/whop_sdk/resources/companies.rb +10 -2
  40. data/lib/whop_sdk/resources/leads.rb +158 -0
  41. data/lib/whop_sdk/resources/payment_methods.rb +12 -8
  42. data/lib/whop_sdk/resources/payments.rb +3 -1
  43. data/lib/whop_sdk/resources/payout_methods.rb +24 -0
  44. data/lib/whop_sdk/resources/support_channels.rb +1 -1
  45. data/lib/whop_sdk/resources/topups.rb +46 -0
  46. data/lib/whop_sdk/resources/verifications.rb +38 -0
  47. data/lib/whop_sdk/resources/webhooks.rb +1 -1
  48. data/lib/whop_sdk/version.rb +1 -1
  49. data/lib/whop_sdk.rb +20 -0
  50. data/rbi/whop_sdk/client.rbi +9 -0
  51. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +12 -0
  52. data/rbi/whop_sdk/models/company_create_params.rbi +16 -0
  53. data/rbi/whop_sdk/models/company_update_params.rbi +16 -0
  54. data/rbi/whop_sdk/models/lead_create_params.rbi +77 -0
  55. data/rbi/whop_sdk/models/lead_create_response.rbi +234 -0
  56. data/rbi/whop_sdk/models/lead_list_params.rbi +99 -0
  57. data/rbi/whop_sdk/models/lead_list_response.rbi +230 -0
  58. data/rbi/whop_sdk/models/lead_retrieve_params.rbi +27 -0
  59. data/rbi/whop_sdk/models/lead_retrieve_response.rbi +238 -0
  60. data/rbi/whop_sdk/models/lead_update_params.rbi +51 -0
  61. data/rbi/whop_sdk/models/lead_update_response.rbi +234 -0
  62. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +336 -0
  63. data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +77 -0
  64. data/rbi/whop_sdk/models/membership_status.rbi +1 -0
  65. data/rbi/whop_sdk/models/payment.rbi +4 -4
  66. data/rbi/whop_sdk/models/payment_create_params.rbi +8 -0
  67. data/rbi/whop_sdk/models/payment_list_fees_response.rbi +5 -0
  68. data/rbi/whop_sdk/models/payment_list_response.rbi +4 -4
  69. data/rbi/whop_sdk/models/payment_method_list_params.rbi +16 -8
  70. data/rbi/whop_sdk/models/payment_method_retrieve_params.rbi +17 -6
  71. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +340 -0
  72. data/rbi/whop_sdk/models/payout_method_list_response.rbi +58 -0
  73. data/rbi/whop_sdk/models/payout_method_retrieve_params.rbi +27 -0
  74. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +262 -0
  75. data/rbi/whop_sdk/models/support_channel_create_params.rbi +2 -2
  76. data/rbi/whop_sdk/models/topup_create_params.rbi +67 -0
  77. data/rbi/whop_sdk/models/topup_create_response.rbi +89 -0
  78. data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +4 -1
  79. data/rbi/whop_sdk/models/verification_retrieve_params.rbi +27 -0
  80. data/rbi/whop_sdk/models/verification_retrieve_response.rbi +290 -0
  81. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +367 -0
  82. data/rbi/whop_sdk/models.rbi +23 -0
  83. data/rbi/whop_sdk/resources/companies.rbi +12 -0
  84. data/rbi/whop_sdk/resources/leads.rbi +138 -0
  85. data/rbi/whop_sdk/resources/payment_methods.rbi +13 -7
  86. data/rbi/whop_sdk/resources/payments.rbi +3 -0
  87. data/rbi/whop_sdk/resources/payout_methods.rbi +18 -0
  88. data/rbi/whop_sdk/resources/support_channels.rbi +1 -1
  89. data/rbi/whop_sdk/resources/topups.rbi +39 -0
  90. data/rbi/whop_sdk/resources/verifications.rbi +30 -0
  91. data/rbi/whop_sdk/resources/webhooks.rbi +4 -1
  92. data/sig/whop_sdk/client.rbs +6 -0
  93. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
  94. data/sig/whop_sdk/models/company_create_params.rbs +10 -0
  95. data/sig/whop_sdk/models/company_update_params.rbs +10 -0
  96. data/sig/whop_sdk/models/lead_create_params.rbs +46 -0
  97. data/sig/whop_sdk/models/lead_create_response.rbs +104 -0
  98. data/sig/whop_sdk/models/lead_list_params.rbs +61 -0
  99. data/sig/whop_sdk/models/lead_list_response.rbs +104 -0
  100. data/sig/whop_sdk/models/lead_retrieve_params.rbs +15 -0
  101. data/sig/whop_sdk/models/lead_retrieve_response.rbs +104 -0
  102. data/sig/whop_sdk/models/lead_update_params.rbs +28 -0
  103. data/sig/whop_sdk/models/lead_update_response.rbs +104 -0
  104. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +134 -1
  105. data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +40 -0
  106. data/sig/whop_sdk/models/membership_status.rbs +2 -0
  107. data/sig/whop_sdk/models/payment_create_params.rbs +5 -0
  108. data/sig/whop_sdk/models/payment_list_fees_response.rbs +2 -0
  109. data/sig/whop_sdk/models/payment_method_list_params.rbs +11 -6
  110. data/sig/whop_sdk/models/payment_method_retrieve_params.rbs +9 -4
  111. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +140 -0
  112. data/sig/whop_sdk/models/payout_method_list_response.rbs +20 -0
  113. data/sig/whop_sdk/models/payout_method_retrieve_params.rbs +15 -0
  114. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +103 -0
  115. data/sig/whop_sdk/models/topup_create_params.rbs +41 -0
  116. data/sig/whop_sdk/models/topup_create_response.rbs +50 -0
  117. data/sig/whop_sdk/models/unwrap_webhook_event.rbs +3 -0
  118. data/sig/whop_sdk/models/verification_retrieve_params.rbs +15 -0
  119. data/sig/whop_sdk/models/verification_retrieve_response.rbs +117 -0
  120. data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +154 -0
  121. data/sig/whop_sdk/models.rbs +20 -0
  122. data/sig/whop_sdk/resources/companies.rbs +4 -0
  123. data/sig/whop_sdk/resources/leads.rbs +40 -0
  124. data/sig/whop_sdk/resources/payment_methods.rbs +4 -2
  125. data/sig/whop_sdk/resources/payments.rbs +1 -0
  126. data/sig/whop_sdk/resources/payout_methods.rbs +5 -0
  127. data/sig/whop_sdk/resources/topups.rbs +15 -0
  128. data/sig/whop_sdk/resources/verifications.rbs +12 -0
  129. data/sig/whop_sdk/resources/webhooks.rbs +4 -1
  130. metadata +62 -2
@@ -62,6 +62,7 @@ module WhopSDK
62
62
  | :three_ds_fixed_fee
63
63
  | :billing_percentage_fee
64
64
  | :revshare_percentage_fee
65
+ | :application_fee
65
66
 
66
67
  module Type
67
68
  extend WhopSDK::Internal::Type::Enum
@@ -96,6 +97,7 @@ module WhopSDK
96
97
  THREE_DS_FIXED_FEE: :three_ds_fixed_fee
97
98
  BILLING_PERCENTAGE_FEE: :billing_percentage_fee
98
99
  REVSHARE_PERCENTAGE_FEE: :revshare_percentage_fee
100
+ APPLICATION_FEE: :application_fee
99
101
 
100
102
  def self?.values: -> ::Array[WhopSDK::Models::PaymentListFeesResponse::type_]
101
103
  end
@@ -2,14 +2,15 @@ module WhopSDK
2
2
  module Models
3
3
  type payment_method_list_params =
4
4
  {
5
- member_id: String,
6
5
  after: String?,
7
6
  before: String?,
7
+ company_id: String?,
8
8
  created_after: Time?,
9
9
  created_before: Time?,
10
10
  direction: WhopSDK::Models::direction?,
11
11
  first: Integer?,
12
- last: Integer?
12
+ last: Integer?,
13
+ member_id: String?
13
14
  }
14
15
  & WhopSDK::Internal::Type::request_parameters
15
16
 
@@ -17,12 +18,12 @@ module WhopSDK
17
18
  extend WhopSDK::Internal::Type::RequestParameters::Converter
18
19
  include WhopSDK::Internal::Type::RequestParameters
19
20
 
20
- attr_accessor member_id: String
21
-
22
21
  attr_accessor after: String?
23
22
 
24
23
  attr_accessor before: String?
25
24
 
25
+ attr_accessor company_id: String?
26
+
26
27
  attr_accessor created_after: Time?
27
28
 
28
29
  attr_accessor created_before: Time?
@@ -33,27 +34,31 @@ module WhopSDK
33
34
 
34
35
  attr_accessor last: Integer?
35
36
 
37
+ attr_accessor member_id: String?
38
+
36
39
  def initialize: (
37
- member_id: String,
38
40
  ?after: String?,
39
41
  ?before: String?,
42
+ ?company_id: String?,
40
43
  ?created_after: Time?,
41
44
  ?created_before: Time?,
42
45
  ?direction: WhopSDK::Models::direction?,
43
46
  ?first: Integer?,
44
47
  ?last: Integer?,
48
+ ?member_id: String?,
45
49
  ?request_options: WhopSDK::request_opts
46
50
  ) -> void
47
51
 
48
52
  def to_hash: -> {
49
- member_id: String,
50
53
  after: String?,
51
54
  before: String?,
55
+ company_id: String?,
52
56
  created_after: Time?,
53
57
  created_before: Time?,
54
58
  direction: WhopSDK::Models::direction?,
55
59
  first: Integer?,
56
60
  last: Integer?,
61
+ member_id: String?,
57
62
  request_options: WhopSDK::RequestOptions
58
63
  }
59
64
  end
@@ -1,21 +1,26 @@
1
1
  module WhopSDK
2
2
  module Models
3
3
  type payment_method_retrieve_params =
4
- { member_id: String } & WhopSDK::Internal::Type::request_parameters
4
+ { company_id: String?, member_id: String? }
5
+ & WhopSDK::Internal::Type::request_parameters
5
6
 
6
7
  class PaymentMethodRetrieveParams < WhopSDK::Internal::Type::BaseModel
7
8
  extend WhopSDK::Internal::Type::RequestParameters::Converter
8
9
  include WhopSDK::Internal::Type::RequestParameters
9
10
 
10
- attr_accessor member_id: String
11
+ attr_accessor company_id: String?
12
+
13
+ attr_accessor member_id: String?
11
14
 
12
15
  def initialize: (
13
- member_id: String,
16
+ ?company_id: String?,
17
+ ?member_id: String?,
14
18
  ?request_options: WhopSDK::request_opts
15
19
  ) -> void
16
20
 
17
21
  def to_hash: -> {
18
- member_id: String,
22
+ company_id: String?,
23
+ member_id: String?,
19
24
  request_options: WhopSDK::RequestOptions
20
25
  }
21
26
  end
@@ -0,0 +1,140 @@
1
+ module WhopSDK
2
+ module Models
3
+ type payout_method_created_webhook_event =
4
+ {
5
+ id: String,
6
+ api_version: :v1,
7
+ data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
8
+ timestamp: Time,
9
+ type: :"payout_method.created"
10
+ }
11
+
12
+ class PayoutMethodCreatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
13
+ attr_accessor id: String
14
+
15
+ attr_accessor api_version: :v1
16
+
17
+ attr_accessor data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data
18
+
19
+ attr_accessor timestamp: Time
20
+
21
+ attr_accessor type: :"payout_method.created"
22
+
23
+ def initialize: (
24
+ id: String,
25
+ data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
26
+ timestamp: Time,
27
+ ?api_version: :v1,
28
+ ?type: :"payout_method.created"
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ id: String,
33
+ api_version: :v1,
34
+ data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
35
+ timestamp: Time,
36
+ type: :"payout_method.created"
37
+ }
38
+
39
+ type data =
40
+ {
41
+ id: String,
42
+ company: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company?,
43
+ currency: String,
44
+ destination: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination?,
45
+ is_default: bool,
46
+ nickname: String?
47
+ }
48
+
49
+ class Data < WhopSDK::Internal::Type::BaseModel
50
+ attr_accessor id: String
51
+
52
+ attr_accessor company: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company?
53
+
54
+ attr_accessor currency: String
55
+
56
+ attr_accessor destination: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination?
57
+
58
+ attr_accessor is_default: bool
59
+
60
+ attr_accessor nickname: String?
61
+
62
+ def initialize: (
63
+ id: String,
64
+ company: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company?,
65
+ currency: String,
66
+ destination: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination?,
67
+ is_default: bool,
68
+ nickname: String?
69
+ ) -> void
70
+
71
+ def to_hash: -> {
72
+ id: String,
73
+ company: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company?,
74
+ currency: String,
75
+ destination: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination?,
76
+ is_default: bool,
77
+ nickname: String?
78
+ }
79
+
80
+ type company = { id: String }
81
+
82
+ class Company < WhopSDK::Internal::Type::BaseModel
83
+ attr_accessor id: String
84
+
85
+ def initialize: (id: String) -> void
86
+
87
+ def to_hash: -> { id: String }
88
+ end
89
+
90
+ type destination =
91
+ {
92
+ category: WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category,
93
+ country_code: String,
94
+ name: String
95
+ }
96
+
97
+ class Destination < WhopSDK::Internal::Type::BaseModel
98
+ attr_accessor category: WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category
99
+
100
+ attr_accessor country_code: String
101
+
102
+ attr_accessor name: String
103
+
104
+ def initialize: (
105
+ category: WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category,
106
+ country_code: String,
107
+ name: String
108
+ ) -> void
109
+
110
+ def to_hash: -> {
111
+ category: WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category,
112
+ country_code: String,
113
+ name: String
114
+ }
115
+
116
+ type category =
117
+ :crypto
118
+ | :rtp
119
+ | :next_day_bank
120
+ | :bank_wire
121
+ | :digital_wallet
122
+ | :unknown
123
+
124
+ module Category
125
+ extend WhopSDK::Internal::Type::Enum
126
+
127
+ CRYPTO: :crypto
128
+ RTP: :rtp
129
+ NEXT_DAY_BANK: :next_day_bank
130
+ BANK_WIRE: :bank_wire
131
+ DIGITAL_WALLET: :digital_wallet
132
+ UNKNOWN: :unknown
133
+
134
+ def self?.values: -> ::Array[WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category]
135
+ end
136
+ end
137
+ end
138
+ end
139
+ end
140
+ end
@@ -3,34 +3,54 @@ module WhopSDK
3
3
  type payout_method_list_response =
4
4
  {
5
5
  id: String,
6
+ company: WhopSDK::Models::PayoutMethodListResponse::Company?,
6
7
  currency: String,
7
8
  destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
9
+ is_default: bool,
8
10
  nickname: String?
9
11
  }
10
12
 
11
13
  class PayoutMethodListResponse < WhopSDK::Internal::Type::BaseModel
12
14
  attr_accessor id: String
13
15
 
16
+ attr_accessor company: WhopSDK::Models::PayoutMethodListResponse::Company?
17
+
14
18
  attr_accessor currency: String
15
19
 
16
20
  attr_accessor destination: WhopSDK::Models::PayoutMethodListResponse::Destination?
17
21
 
22
+ attr_accessor is_default: bool
23
+
18
24
  attr_accessor nickname: String?
19
25
 
20
26
  def initialize: (
21
27
  id: String,
28
+ company: WhopSDK::Models::PayoutMethodListResponse::Company?,
22
29
  currency: String,
23
30
  destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
31
+ is_default: bool,
24
32
  nickname: String?
25
33
  ) -> void
26
34
 
27
35
  def to_hash: -> {
28
36
  id: String,
37
+ company: WhopSDK::Models::PayoutMethodListResponse::Company?,
29
38
  currency: String,
30
39
  destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
40
+ is_default: bool,
31
41
  nickname: String?
32
42
  }
33
43
 
44
+ type company = { id: String }
45
+
46
+ class Company < WhopSDK::Internal::Type::BaseModel
47
+ attr_accessor id: String
48
+
49
+ def initialize: (id: String) -> void
50
+
51
+ def to_hash: -> { id: String }
52
+ end
53
+
34
54
  type destination =
35
55
  {
36
56
  category: WhopSDK::Models::PayoutMethodListResponse::Destination::category,
@@ -0,0 +1,15 @@
1
+ module WhopSDK
2
+ module Models
3
+ type payout_method_retrieve_params =
4
+ { } & WhopSDK::Internal::Type::request_parameters
5
+
6
+ class PayoutMethodRetrieveParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: WhopSDK::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: WhopSDK::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,103 @@
1
+ module WhopSDK
2
+ module Models
3
+ type payout_method_retrieve_response =
4
+ {
5
+ id: String,
6
+ company: WhopSDK::Models::PayoutMethodRetrieveResponse::Company?,
7
+ currency: String,
8
+ destination: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination?,
9
+ is_default: bool,
10
+ nickname: String?
11
+ }
12
+
13
+ class PayoutMethodRetrieveResponse < WhopSDK::Internal::Type::BaseModel
14
+ attr_accessor id: String
15
+
16
+ attr_accessor company: WhopSDK::Models::PayoutMethodRetrieveResponse::Company?
17
+
18
+ attr_accessor currency: String
19
+
20
+ attr_accessor destination: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination?
21
+
22
+ attr_accessor is_default: bool
23
+
24
+ attr_accessor nickname: String?
25
+
26
+ def initialize: (
27
+ id: String,
28
+ company: WhopSDK::Models::PayoutMethodRetrieveResponse::Company?,
29
+ currency: String,
30
+ destination: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination?,
31
+ is_default: bool,
32
+ nickname: String?
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ id: String,
37
+ company: WhopSDK::Models::PayoutMethodRetrieveResponse::Company?,
38
+ currency: String,
39
+ destination: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination?,
40
+ is_default: bool,
41
+ nickname: String?
42
+ }
43
+
44
+ type company = { id: String }
45
+
46
+ class Company < WhopSDK::Internal::Type::BaseModel
47
+ attr_accessor id: String
48
+
49
+ def initialize: (id: String) -> void
50
+
51
+ def to_hash: -> { id: String }
52
+ end
53
+
54
+ type destination =
55
+ {
56
+ category: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category,
57
+ country_code: String,
58
+ name: String
59
+ }
60
+
61
+ class Destination < WhopSDK::Internal::Type::BaseModel
62
+ attr_accessor category: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category
63
+
64
+ attr_accessor country_code: String
65
+
66
+ attr_accessor name: String
67
+
68
+ def initialize: (
69
+ category: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category,
70
+ country_code: String,
71
+ name: String
72
+ ) -> void
73
+
74
+ def to_hash: -> {
75
+ category: WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category,
76
+ country_code: String,
77
+ name: String
78
+ }
79
+
80
+ type category =
81
+ :crypto
82
+ | :rtp
83
+ | :next_day_bank
84
+ | :bank_wire
85
+ | :digital_wallet
86
+ | :unknown
87
+
88
+ module Category
89
+ extend WhopSDK::Internal::Type::Enum
90
+
91
+ CRYPTO: :crypto
92
+ RTP: :rtp
93
+ NEXT_DAY_BANK: :next_day_bank
94
+ BANK_WIRE: :bank_wire
95
+ DIGITAL_WALLET: :digital_wallet
96
+ UNKNOWN: :unknown
97
+
98
+ def self?.values: -> ::Array[WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category]
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,41 @@
1
+ module WhopSDK
2
+ module Models
3
+ type topup_create_params =
4
+ {
5
+ amount: Float,
6
+ company_id: String,
7
+ currency: WhopSDK::Models::currency,
8
+ payment_method_id: String
9
+ }
10
+ & WhopSDK::Internal::Type::request_parameters
11
+
12
+ class TopupCreateParams < WhopSDK::Internal::Type::BaseModel
13
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
14
+ include WhopSDK::Internal::Type::RequestParameters
15
+
16
+ attr_accessor amount: Float
17
+
18
+ attr_accessor company_id: String
19
+
20
+ attr_accessor currency: WhopSDK::Models::currency
21
+
22
+ attr_accessor payment_method_id: String
23
+
24
+ def initialize: (
25
+ amount: Float,
26
+ company_id: String,
27
+ currency: WhopSDK::Models::currency,
28
+ payment_method_id: String,
29
+ ?request_options: WhopSDK::request_opts
30
+ ) -> void
31
+
32
+ def to_hash: -> {
33
+ amount: Float,
34
+ company_id: String,
35
+ currency: WhopSDK::Models::currency,
36
+ payment_method_id: String,
37
+ request_options: WhopSDK::RequestOptions
38
+ }
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,50 @@
1
+ module WhopSDK
2
+ module Models
3
+ type topup_create_response =
4
+ {
5
+ id: String,
6
+ created_at: Time,
7
+ currency: WhopSDK::Models::currency?,
8
+ failure_message: String?,
9
+ paid_at: Time?,
10
+ status: WhopSDK::Models::receipt_status?,
11
+ total: Float?
12
+ }
13
+
14
+ class TopupCreateResponse < WhopSDK::Internal::Type::BaseModel
15
+ attr_accessor id: String
16
+
17
+ attr_accessor created_at: Time
18
+
19
+ attr_accessor currency: WhopSDK::Models::currency?
20
+
21
+ attr_accessor failure_message: String?
22
+
23
+ attr_accessor paid_at: Time?
24
+
25
+ attr_accessor status: WhopSDK::Models::receipt_status?
26
+
27
+ attr_accessor total: Float?
28
+
29
+ def initialize: (
30
+ id: String,
31
+ created_at: Time,
32
+ currency: WhopSDK::Models::currency?,
33
+ failure_message: String?,
34
+ paid_at: Time?,
35
+ status: WhopSDK::Models::receipt_status?,
36
+ total: Float?
37
+ ) -> void
38
+
39
+ def to_hash: -> {
40
+ id: String,
41
+ created_at: Time,
42
+ currency: WhopSDK::Models::currency?,
43
+ failure_message: String?,
44
+ paid_at: Time?,
45
+ status: WhopSDK::Models::receipt_status?,
46
+ total: Float?
47
+ }
48
+ end
49
+ end
50
+ end
@@ -17,6 +17,8 @@ module WhopSDK
17
17
  | WhopSDK::WithdrawalCreatedWebhookEvent
18
18
  | WhopSDK::WithdrawalUpdatedWebhookEvent
19
19
  | WhopSDK::CourseLessonInteractionCompletedWebhookEvent
20
+ | WhopSDK::PayoutMethodCreatedWebhookEvent
21
+ | WhopSDK::VerificationSucceededWebhookEvent
20
22
  | WhopSDK::PaymentCreatedWebhookEvent
21
23
  | WhopSDK::PaymentSucceededWebhookEvent
22
24
  | WhopSDK::PaymentFailedWebhookEvent
@@ -25,6 +27,7 @@ module WhopSDK
25
27
  | WhopSDK::DisputeUpdatedWebhookEvent
26
28
  | WhopSDK::RefundCreatedWebhookEvent
27
29
  | WhopSDK::RefundUpdatedWebhookEvent
30
+ | WhopSDK::MembershipCancelAtPeriodEndChangedWebhookEvent
28
31
 
29
32
  module UnwrapWebhookEvent
30
33
  extend WhopSDK::Internal::Type::Union
@@ -0,0 +1,15 @@
1
+ module WhopSDK
2
+ module Models
3
+ type verification_retrieve_params =
4
+ { } & WhopSDK::Internal::Type::request_parameters
5
+
6
+ class VerificationRetrieveParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: WhopSDK::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: WhopSDK::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,117 @@
1
+ module WhopSDK
2
+ module Models
3
+ type verification_retrieve_response =
4
+ {
5
+ id: String,
6
+ last_error_code: WhopSDK::Models::VerificationRetrieveResponse::last_error_code?,
7
+ last_error_reason: String?,
8
+ status: WhopSDK::Models::VerificationRetrieveResponse::status
9
+ }
10
+
11
+ class VerificationRetrieveResponse < WhopSDK::Internal::Type::BaseModel
12
+ attr_accessor id: String
13
+
14
+ attr_accessor last_error_code: WhopSDK::Models::VerificationRetrieveResponse::last_error_code?
15
+
16
+ attr_accessor last_error_reason: String?
17
+
18
+ attr_accessor status: WhopSDK::Models::VerificationRetrieveResponse::status
19
+
20
+ def initialize: (
21
+ id: String,
22
+ last_error_code: WhopSDK::Models::VerificationRetrieveResponse::last_error_code?,
23
+ last_error_reason: String?,
24
+ status: WhopSDK::Models::VerificationRetrieveResponse::status
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ id: String,
29
+ last_error_code: WhopSDK::Models::VerificationRetrieveResponse::last_error_code?,
30
+ last_error_reason: String?,
31
+ status: WhopSDK::Models::VerificationRetrieveResponse::status
32
+ }
33
+
34
+ type last_error_code =
35
+ :abandoned
36
+ | :consent_declined
37
+ | :country_not_supported
38
+ | :device_not_supported
39
+ | :document_expired
40
+ | :document_type_not_supported
41
+ | :document_unverified_other
42
+ | :email_unverified_other
43
+ | :email_verification_declined
44
+ | :id_number_insufficient_document_data
45
+ | :id_number_mismatch
46
+ | :id_number_unverified_other
47
+ | :phone_unverified_other
48
+ | :phone_verification_declined
49
+ | :selfie_document_missing_photo
50
+ | :selfie_face_mismatch
51
+ | :selfie_manipulated
52
+ | :selfie_unverified_other
53
+ | :under_supported_age
54
+
55
+ module LastErrorCode
56
+ extend WhopSDK::Internal::Type::Enum
57
+
58
+ ABANDONED: :abandoned
59
+ CONSENT_DECLINED: :consent_declined
60
+ COUNTRY_NOT_SUPPORTED: :country_not_supported
61
+ DEVICE_NOT_SUPPORTED: :device_not_supported
62
+ DOCUMENT_EXPIRED: :document_expired
63
+ DOCUMENT_TYPE_NOT_SUPPORTED: :document_type_not_supported
64
+ DOCUMENT_UNVERIFIED_OTHER: :document_unverified_other
65
+ EMAIL_UNVERIFIED_OTHER: :email_unverified_other
66
+ EMAIL_VERIFICATION_DECLINED: :email_verification_declined
67
+ ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA: :id_number_insufficient_document_data
68
+ ID_NUMBER_MISMATCH: :id_number_mismatch
69
+ ID_NUMBER_UNVERIFIED_OTHER: :id_number_unverified_other
70
+ PHONE_UNVERIFIED_OTHER: :phone_unverified_other
71
+ PHONE_VERIFICATION_DECLINED: :phone_verification_declined
72
+ SELFIE_DOCUMENT_MISSING_PHOTO: :selfie_document_missing_photo
73
+ SELFIE_FACE_MISMATCH: :selfie_face_mismatch
74
+ SELFIE_MANIPULATED: :selfie_manipulated
75
+ SELFIE_UNVERIFIED_OTHER: :selfie_unverified_other
76
+ UNDER_SUPPORTED_AGE: :under_supported_age
77
+
78
+ def self?.values: -> ::Array[WhopSDK::Models::VerificationRetrieveResponse::last_error_code]
79
+ end
80
+
81
+ type status =
82
+ :requires_input
83
+ | :processing
84
+ | :verified
85
+ | :canceled
86
+ | :created
87
+ | :started
88
+ | :submitted
89
+ | :approved
90
+ | :declined
91
+ | :resubmission_requested
92
+ | :expired
93
+ | :abandoned
94
+ | :review
95
+
96
+ module Status
97
+ extend WhopSDK::Internal::Type::Enum
98
+
99
+ REQUIRES_INPUT: :requires_input
100
+ PROCESSING: :processing
101
+ VERIFIED: :verified
102
+ CANCELED: :canceled
103
+ CREATED: :created
104
+ STARTED: :started
105
+ SUBMITTED: :submitted
106
+ APPROVED: :approved
107
+ DECLINED: :declined
108
+ RESUBMISSION_REQUESTED: :resubmission_requested
109
+ EXPIRED: :expired
110
+ ABANDONED: :abandoned
111
+ REVIEW: :review
112
+
113
+ def self?.values: -> ::Array[WhopSDK::Models::VerificationRetrieveResponse::status]
114
+ end
115
+ end
116
+ end
117
+ end