solifyn 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +202 -0
- data/README.md +6 -10
- data/docs/AffiliateApi.md +845 -0
- data/docs/BillingApi.md +68 -0
- data/docs/BrandsApi.md +286 -0
- data/docs/Business.md +56 -0
- data/docs/BusinessCreate.md +18 -0
- data/docs/BusinessFullCreate.md +26 -0
- data/docs/BusinessFullCreateResponse.md +20 -0
- data/docs/BusinessesApi.md +350 -0
- data/docs/ChatApi.md +246 -0
- data/docs/CollectionProductDto.md +0 -6
- data/docs/CommunityApi.md +497 -0
- data/docs/DefaultApi.md +0 -284
- data/docs/EntitlementGrantResponseDto.md +0 -8
- data/docs/PartnerApi.md +125 -0
- data/docs/PayoutAccessToken.md +20 -0
- data/docs/PayoutAccount.md +22 -0
- data/docs/PayoutAccountLink.md +20 -0
- data/docs/PayoutMethod.md +24 -0
- data/docs/PayoutMethodList.md +18 -0
- data/docs/PayoutVerification.md +24 -0
- data/docs/PayoutVerificationList.md +18 -0
- data/docs/PayoutsApi.md +579 -0
- data/docs/Product.md +0 -6
- data/docs/ProductCreate.md +0 -6
- data/docs/ProductUpdate.md +0 -6
- data/docs/TicketApi.md +318 -0
- data/docs/UserPage.md +26 -0
- data/docs/UserProfileThemesApi.md +345 -0
- data/docs/UserSettings.md +34 -0
- data/docs/UserSettingsUpdate.md +76 -0
- data/docs/UserStats.md +20 -0
- data/docs/UserTheme.md +26 -0
- data/docs/UserThemeUpdate.md +22 -0
- data/docs/WhopApiKeysRotation.md +18 -0
- data/docs/Withdrawal.md +46 -0
- data/docs/WithdrawalCreate.md +22 -0
- data/docs/WithdrawalList.md +20 -0
- data/git_push.sh +2 -2
- data/lib/solifyn/api/affiliate_api.rb +760 -0
- data/lib/solifyn/api/billing_api.rb +77 -0
- data/lib/solifyn/api/brands_api.rb +284 -0
- data/lib/solifyn/api/businesses_api.rb +338 -0
- data/lib/solifyn/api/chat_api.rb +232 -0
- data/lib/solifyn/api/community_api.rb +466 -0
- data/lib/solifyn/api/default_api.rb +0 -248
- data/lib/solifyn/api/{discord_integration_api.rb → partner_api.rb} +19 -32
- data/lib/solifyn/api/payouts_api.rb +520 -0
- data/lib/solifyn/api/ticket_api.rb +328 -0
- data/lib/solifyn/api/user_profile_themes_api.rb +313 -0
- data/lib/solifyn/models/business.rb +482 -0
- data/lib/solifyn/models/business_create.rb +241 -0
- data/lib/solifyn/models/business_full_create.rb +288 -0
- data/lib/solifyn/models/business_full_create_response.rb +239 -0
- data/lib/solifyn/models/collection_product_dto.rb +1 -52
- data/lib/solifyn/models/entitlement_grant_response_dto.rb +1 -41
- data/lib/solifyn/models/payout_access_token.rb +239 -0
- data/lib/solifyn/models/payout_account.rb +249 -0
- data/lib/solifyn/models/payout_account_link.rb +239 -0
- data/lib/solifyn/models/{discord_roles_response_dto.rb → payout_method.rb} +34 -41
- data/lib/solifyn/models/payout_method_list.rb +224 -0
- data/lib/solifyn/models/{webhook_entitlement_grant_payload.rb → payout_verification.rb} +41 -118
- data/lib/solifyn/models/payout_verification_list.rb +224 -0
- data/lib/solifyn/models/product.rb +1 -52
- data/lib/solifyn/models/product_create.rb +1 -33
- data/lib/solifyn/models/product_update.rb +1 -33
- data/lib/solifyn/models/user_page.rb +290 -0
- data/lib/solifyn/models/user_settings.rb +337 -0
- data/lib/solifyn/models/user_settings_update.rb +505 -0
- data/lib/solifyn/models/user_stats.rb +241 -0
- data/lib/solifyn/models/user_theme.rb +276 -0
- data/lib/solifyn/models/user_theme_update.rb +235 -0
- data/lib/solifyn/models/whop_api_keys_rotation.rb +222 -0
- data/lib/solifyn/models/withdrawal.rb +411 -0
- data/lib/solifyn/models/withdrawal_create.rb +249 -0
- data/lib/solifyn/models/withdrawal_list.rb +241 -0
- data/lib/solifyn/version.rb +1 -1
- data/lib/solifyn.rb +0 -3
- data/spec/api/affiliate_api_spec.rb +165 -0
- data/spec/api/billing_api_spec.rb +46 -0
- data/spec/api/brands_api_spec.rb +83 -0
- data/spec/api/businesses_api_spec.rb +93 -0
- data/spec/api/chat_api_spec.rb +72 -0
- data/spec/api/checkout_api_spec.rb +0 -12
- data/spec/api/community_api_spec.rb +113 -0
- data/spec/api/default_api_spec.rb +11 -59
- data/spec/api/developer_api_spec.rb +29 -52
- data/spec/api/{discord_integration_api_spec.rb → partner_api_spec.rb} +11 -16
- data/spec/api/payouts_api_spec.rb +133 -0
- data/spec/api/ticket_api_spec.rb +86 -0
- data/spec/api/user_profile_themes_api_spec.rb +91 -0
- data/spec/models/business_create_spec.rb +36 -0
- data/spec/models/business_full_create_response_spec.rb +42 -0
- data/spec/models/business_full_create_spec.rb +60 -0
- data/spec/models/business_spec.rb +150 -0
- data/spec/models/checkout_session_details_dto_spec.rb +0 -6
- data/spec/models/collection_product_dto_spec.rb +0 -28
- data/spec/models/order_spec.rb +0 -6
- data/spec/models/payout_access_token_spec.rb +42 -0
- data/spec/models/payout_account_link_spec.rb +42 -0
- data/spec/models/payout_account_spec.rb +48 -0
- data/spec/models/payout_method_list_spec.rb +36 -0
- data/spec/models/{discord_roles_response_dto_spec.rb → payout_method_spec.rb} +9 -9
- data/spec/models/payout_verification_list_spec.rb +36 -0
- data/spec/models/payout_verification_spec.rb +54 -0
- data/spec/models/product_create_spec.rb +0 -28
- data/spec/models/product_spec.rb +0 -28
- data/spec/models/product_update_spec.rb +0 -28
- data/spec/models/user_page_spec.rb +60 -0
- data/spec/models/user_settings_spec.rb +84 -0
- data/spec/models/user_settings_update_spec.rb +210 -0
- data/spec/models/user_stats_spec.rb +42 -0
- data/spec/models/user_theme_spec.rb +60 -0
- data/spec/models/user_theme_update_spec.rb +48 -0
- data/spec/models/whop_api_keys_rotation_spec.rb +36 -0
- data/spec/models/withdrawal_create_spec.rb +48 -0
- data/spec/models/withdrawal_list_spec.rb +42 -0
- data/spec/models/{webhook_entitlement_grant_payload_spec.rb → withdrawal_spec.rb} +23 -17
- metadata +258 -145
- data/docs/DiscordIntegrationApi.md +0 -135
- data/docs/DiscordRolesResponseDto.md +0 -24
- data/docs/WebhookEntitlementGrantPayload.md +0 -44
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Solifyn API
|
|
3
|
+
|
|
4
|
+
#Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage products and issue, validate, and manage software license keys programmatically.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Solifyn
|
|
16
|
+
class PayoutsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create Withdrawal
|
|
23
|
+
# Initiate a balance withdrawal transfer request.
|
|
24
|
+
# @param withdrawal_create [WithdrawalCreate]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [Withdrawal]
|
|
27
|
+
def payouts_create_withdrawal(withdrawal_create, opts = {})
|
|
28
|
+
data, _status_code, _headers = payouts_create_withdrawal_with_http_info(withdrawal_create, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create Withdrawal
|
|
33
|
+
# Initiate a balance withdrawal transfer request.
|
|
34
|
+
# @param withdrawal_create [WithdrawalCreate]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(Withdrawal, Integer, Hash)>] Withdrawal data, response status code and response headers
|
|
37
|
+
def payouts_create_withdrawal_with_http_info(withdrawal_create, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: PayoutsApi.payouts_create_withdrawal ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'withdrawal_create' is set
|
|
42
|
+
if @api_client.config.client_side_validation && withdrawal_create.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'withdrawal_create' when calling PayoutsApi.payouts_create_withdrawal"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/v1/payouts/withdrawals'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(withdrawal_create)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'Withdrawal'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"PayoutsApi.payouts_create_withdrawal",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: PayoutsApi#payouts_create_withdrawal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Retrieve Payout Account
|
|
91
|
+
# Retrieve general status and information of onboarding payout accounts.
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [PayoutAccount]
|
|
94
|
+
def payouts_get_account(opts = {})
|
|
95
|
+
data, _status_code, _headers = payouts_get_account_with_http_info(opts)
|
|
96
|
+
data
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Retrieve Payout Account
|
|
100
|
+
# Retrieve general status and information of onboarding payout accounts.
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @return [Array<(PayoutAccount, Integer, Hash)>] PayoutAccount data, response status code and response headers
|
|
103
|
+
def payouts_get_account_with_http_info(opts = {})
|
|
104
|
+
if @api_client.config.debugging
|
|
105
|
+
@api_client.config.logger.debug 'Calling API: PayoutsApi.payouts_get_account ...'
|
|
106
|
+
end
|
|
107
|
+
# resource path
|
|
108
|
+
local_var_path = '/v1/payouts/account'
|
|
109
|
+
|
|
110
|
+
# query parameters
|
|
111
|
+
query_params = opts[:query_params] || {}
|
|
112
|
+
|
|
113
|
+
# header parameters
|
|
114
|
+
header_params = opts[:header_params] || {}
|
|
115
|
+
# HTTP header 'Accept' (if needed)
|
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
117
|
+
|
|
118
|
+
# form parameters
|
|
119
|
+
form_params = opts[:form_params] || {}
|
|
120
|
+
|
|
121
|
+
# http body (model)
|
|
122
|
+
post_body = opts[:debug_body]
|
|
123
|
+
|
|
124
|
+
# return_type
|
|
125
|
+
return_type = opts[:debug_return_type] || 'PayoutAccount'
|
|
126
|
+
|
|
127
|
+
# auth_names
|
|
128
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
129
|
+
|
|
130
|
+
new_options = opts.merge(
|
|
131
|
+
:operation => :"PayoutsApi.payouts_get_account",
|
|
132
|
+
:header_params => header_params,
|
|
133
|
+
:query_params => query_params,
|
|
134
|
+
:form_params => form_params,
|
|
135
|
+
:body => post_body,
|
|
136
|
+
:auth_names => auth_names,
|
|
137
|
+
:return_type => return_type
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
141
|
+
if @api_client.config.debugging
|
|
142
|
+
@api_client.config.logger.debug "API called: PayoutsApi#payouts_get_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
143
|
+
end
|
|
144
|
+
return data, status_code, headers
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Create Account Link
|
|
148
|
+
# Generate temporary links for onboarding or viewing portals.
|
|
149
|
+
# @param [Hash] opts the optional parameters
|
|
150
|
+
# @option opts [String] :use_case Onboarding link type context
|
|
151
|
+
# @return [PayoutAccountLink]
|
|
152
|
+
def payouts_get_account_link(opts = {})
|
|
153
|
+
data, _status_code, _headers = payouts_get_account_link_with_http_info(opts)
|
|
154
|
+
data
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Create Account Link
|
|
158
|
+
# Generate temporary links for onboarding or viewing portals.
|
|
159
|
+
# @param [Hash] opts the optional parameters
|
|
160
|
+
# @option opts [String] :use_case Onboarding link type context
|
|
161
|
+
# @return [Array<(PayoutAccountLink, Integer, Hash)>] PayoutAccountLink data, response status code and response headers
|
|
162
|
+
def payouts_get_account_link_with_http_info(opts = {})
|
|
163
|
+
if @api_client.config.debugging
|
|
164
|
+
@api_client.config.logger.debug 'Calling API: PayoutsApi.payouts_get_account_link ...'
|
|
165
|
+
end
|
|
166
|
+
allowable_values = ["account_onboarding", "payouts_portal"]
|
|
167
|
+
if @api_client.config.client_side_validation && opts[:'use_case'] && !allowable_values.include?(opts[:'use_case'])
|
|
168
|
+
fail ArgumentError, "invalid value for \"use_case\", must be one of #{allowable_values}"
|
|
169
|
+
end
|
|
170
|
+
# resource path
|
|
171
|
+
local_var_path = '/v1/payouts/account-link'
|
|
172
|
+
|
|
173
|
+
# query parameters
|
|
174
|
+
query_params = opts[:query_params] || {}
|
|
175
|
+
query_params[:'use_case'] = opts[:'use_case'] if !opts[:'use_case'].nil?
|
|
176
|
+
|
|
177
|
+
# header parameters
|
|
178
|
+
header_params = opts[:header_params] || {}
|
|
179
|
+
# HTTP header 'Accept' (if needed)
|
|
180
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
181
|
+
|
|
182
|
+
# form parameters
|
|
183
|
+
form_params = opts[:form_params] || {}
|
|
184
|
+
|
|
185
|
+
# http body (model)
|
|
186
|
+
post_body = opts[:debug_body]
|
|
187
|
+
|
|
188
|
+
# return_type
|
|
189
|
+
return_type = opts[:debug_return_type] || 'PayoutAccountLink'
|
|
190
|
+
|
|
191
|
+
# auth_names
|
|
192
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
193
|
+
|
|
194
|
+
new_options = opts.merge(
|
|
195
|
+
:operation => :"PayoutsApi.payouts_get_account_link",
|
|
196
|
+
:header_params => header_params,
|
|
197
|
+
:query_params => query_params,
|
|
198
|
+
:form_params => form_params,
|
|
199
|
+
:body => post_body,
|
|
200
|
+
:auth_names => auth_names,
|
|
201
|
+
:return_type => return_type
|
|
202
|
+
)
|
|
203
|
+
|
|
204
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
205
|
+
if @api_client.config.debugging
|
|
206
|
+
@api_client.config.logger.debug "API called: PayoutsApi#payouts_get_account_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
207
|
+
end
|
|
208
|
+
return data, status_code, headers
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Generate Portal Access Token
|
|
212
|
+
# Generate temporary credentials to access the embed portal.
|
|
213
|
+
# @param [Hash] opts the optional parameters
|
|
214
|
+
# @return [PayoutAccessToken]
|
|
215
|
+
def payouts_get_token(opts = {})
|
|
216
|
+
data, _status_code, _headers = payouts_get_token_with_http_info(opts)
|
|
217
|
+
data
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Generate Portal Access Token
|
|
221
|
+
# Generate temporary credentials to access the embed portal.
|
|
222
|
+
# @param [Hash] opts the optional parameters
|
|
223
|
+
# @return [Array<(PayoutAccessToken, Integer, Hash)>] PayoutAccessToken data, response status code and response headers
|
|
224
|
+
def payouts_get_token_with_http_info(opts = {})
|
|
225
|
+
if @api_client.config.debugging
|
|
226
|
+
@api_client.config.logger.debug 'Calling API: PayoutsApi.payouts_get_token ...'
|
|
227
|
+
end
|
|
228
|
+
# resource path
|
|
229
|
+
local_var_path = '/v1/payouts/token'
|
|
230
|
+
|
|
231
|
+
# query parameters
|
|
232
|
+
query_params = opts[:query_params] || {}
|
|
233
|
+
|
|
234
|
+
# header parameters
|
|
235
|
+
header_params = opts[:header_params] || {}
|
|
236
|
+
# HTTP header 'Accept' (if needed)
|
|
237
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
238
|
+
|
|
239
|
+
# form parameters
|
|
240
|
+
form_params = opts[:form_params] || {}
|
|
241
|
+
|
|
242
|
+
# http body (model)
|
|
243
|
+
post_body = opts[:debug_body]
|
|
244
|
+
|
|
245
|
+
# return_type
|
|
246
|
+
return_type = opts[:debug_return_type] || 'PayoutAccessToken'
|
|
247
|
+
|
|
248
|
+
# auth_names
|
|
249
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
250
|
+
|
|
251
|
+
new_options = opts.merge(
|
|
252
|
+
:operation => :"PayoutsApi.payouts_get_token",
|
|
253
|
+
:header_params => header_params,
|
|
254
|
+
:query_params => query_params,
|
|
255
|
+
:form_params => form_params,
|
|
256
|
+
:body => post_body,
|
|
257
|
+
:auth_names => auth_names,
|
|
258
|
+
:return_type => return_type
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
262
|
+
if @api_client.config.debugging
|
|
263
|
+
@api_client.config.logger.debug "API called: PayoutsApi#payouts_get_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
264
|
+
end
|
|
265
|
+
return data, status_code, headers
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Get Withdrawals List
|
|
269
|
+
# Retrieve withdrawal records for the active business.
|
|
270
|
+
# @param [Hash] opts the optional parameters
|
|
271
|
+
# @option opts [Float] :limit Page size limit
|
|
272
|
+
# @option opts [Float] :page Page number
|
|
273
|
+
# @return [WithdrawalList]
|
|
274
|
+
def payouts_get_withdrawals(opts = {})
|
|
275
|
+
data, _status_code, _headers = payouts_get_withdrawals_with_http_info(opts)
|
|
276
|
+
data
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# Get Withdrawals List
|
|
280
|
+
# Retrieve withdrawal records for the active business.
|
|
281
|
+
# @param [Hash] opts the optional parameters
|
|
282
|
+
# @option opts [Float] :limit Page size limit
|
|
283
|
+
# @option opts [Float] :page Page number
|
|
284
|
+
# @return [Array<(WithdrawalList, Integer, Hash)>] WithdrawalList data, response status code and response headers
|
|
285
|
+
def payouts_get_withdrawals_with_http_info(opts = {})
|
|
286
|
+
if @api_client.config.debugging
|
|
287
|
+
@api_client.config.logger.debug 'Calling API: PayoutsApi.payouts_get_withdrawals ...'
|
|
288
|
+
end
|
|
289
|
+
# resource path
|
|
290
|
+
local_var_path = '/v1/payouts/withdrawals'
|
|
291
|
+
|
|
292
|
+
# query parameters
|
|
293
|
+
query_params = opts[:query_params] || {}
|
|
294
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
295
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
296
|
+
|
|
297
|
+
# header parameters
|
|
298
|
+
header_params = opts[:header_params] || {}
|
|
299
|
+
# HTTP header 'Accept' (if needed)
|
|
300
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
301
|
+
|
|
302
|
+
# form parameters
|
|
303
|
+
form_params = opts[:form_params] || {}
|
|
304
|
+
|
|
305
|
+
# http body (model)
|
|
306
|
+
post_body = opts[:debug_body]
|
|
307
|
+
|
|
308
|
+
# return_type
|
|
309
|
+
return_type = opts[:debug_return_type] || 'WithdrawalList'
|
|
310
|
+
|
|
311
|
+
# auth_names
|
|
312
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
313
|
+
|
|
314
|
+
new_options = opts.merge(
|
|
315
|
+
:operation => :"PayoutsApi.payouts_get_withdrawals",
|
|
316
|
+
:header_params => header_params,
|
|
317
|
+
:query_params => query_params,
|
|
318
|
+
:form_params => form_params,
|
|
319
|
+
:body => post_body,
|
|
320
|
+
:auth_names => auth_names,
|
|
321
|
+
:return_type => return_type
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
325
|
+
if @api_client.config.debugging
|
|
326
|
+
@api_client.config.logger.debug "API called: PayoutsApi#payouts_get_withdrawals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
327
|
+
end
|
|
328
|
+
return data, status_code, headers
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# List Payout Methods
|
|
332
|
+
# List saved payout destinations (bank accounts, cards).
|
|
333
|
+
# @param [Hash] opts the optional parameters
|
|
334
|
+
# @option opts [Float] :limit
|
|
335
|
+
# @option opts [Float] :page
|
|
336
|
+
# @return [PayoutMethodList]
|
|
337
|
+
def payouts_list_methods(opts = {})
|
|
338
|
+
data, _status_code, _headers = payouts_list_methods_with_http_info(opts)
|
|
339
|
+
data
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# List Payout Methods
|
|
343
|
+
# List saved payout destinations (bank accounts, cards).
|
|
344
|
+
# @param [Hash] opts the optional parameters
|
|
345
|
+
# @option opts [Float] :limit
|
|
346
|
+
# @option opts [Float] :page
|
|
347
|
+
# @return [Array<(PayoutMethodList, Integer, Hash)>] PayoutMethodList data, response status code and response headers
|
|
348
|
+
def payouts_list_methods_with_http_info(opts = {})
|
|
349
|
+
if @api_client.config.debugging
|
|
350
|
+
@api_client.config.logger.debug 'Calling API: PayoutsApi.payouts_list_methods ...'
|
|
351
|
+
end
|
|
352
|
+
# resource path
|
|
353
|
+
local_var_path = '/v1/payouts/methods'
|
|
354
|
+
|
|
355
|
+
# query parameters
|
|
356
|
+
query_params = opts[:query_params] || {}
|
|
357
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
358
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
359
|
+
|
|
360
|
+
# header parameters
|
|
361
|
+
header_params = opts[:header_params] || {}
|
|
362
|
+
# HTTP header 'Accept' (if needed)
|
|
363
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
364
|
+
|
|
365
|
+
# form parameters
|
|
366
|
+
form_params = opts[:form_params] || {}
|
|
367
|
+
|
|
368
|
+
# http body (model)
|
|
369
|
+
post_body = opts[:debug_body]
|
|
370
|
+
|
|
371
|
+
# return_type
|
|
372
|
+
return_type = opts[:debug_return_type] || 'PayoutMethodList'
|
|
373
|
+
|
|
374
|
+
# auth_names
|
|
375
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
376
|
+
|
|
377
|
+
new_options = opts.merge(
|
|
378
|
+
:operation => :"PayoutsApi.payouts_list_methods",
|
|
379
|
+
:header_params => header_params,
|
|
380
|
+
:query_params => query_params,
|
|
381
|
+
:form_params => form_params,
|
|
382
|
+
:body => post_body,
|
|
383
|
+
:auth_names => auth_names,
|
|
384
|
+
:return_type => return_type
|
|
385
|
+
)
|
|
386
|
+
|
|
387
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
388
|
+
if @api_client.config.debugging
|
|
389
|
+
@api_client.config.logger.debug "API called: PayoutsApi#payouts_list_methods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
390
|
+
end
|
|
391
|
+
return data, status_code, headers
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# List Verifications
|
|
395
|
+
# Retrieve pending or completed KYC verification checks.
|
|
396
|
+
# @param [Hash] opts the optional parameters
|
|
397
|
+
# @option opts [Float] :limit
|
|
398
|
+
# @option opts [Float] :page
|
|
399
|
+
# @return [PayoutVerificationList]
|
|
400
|
+
def payouts_list_verifications(opts = {})
|
|
401
|
+
data, _status_code, _headers = payouts_list_verifications_with_http_info(opts)
|
|
402
|
+
data
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# List Verifications
|
|
406
|
+
# Retrieve pending or completed KYC verification checks.
|
|
407
|
+
# @param [Hash] opts the optional parameters
|
|
408
|
+
# @option opts [Float] :limit
|
|
409
|
+
# @option opts [Float] :page
|
|
410
|
+
# @return [Array<(PayoutVerificationList, Integer, Hash)>] PayoutVerificationList data, response status code and response headers
|
|
411
|
+
def payouts_list_verifications_with_http_info(opts = {})
|
|
412
|
+
if @api_client.config.debugging
|
|
413
|
+
@api_client.config.logger.debug 'Calling API: PayoutsApi.payouts_list_verifications ...'
|
|
414
|
+
end
|
|
415
|
+
# resource path
|
|
416
|
+
local_var_path = '/v1/payouts/verifications'
|
|
417
|
+
|
|
418
|
+
# query parameters
|
|
419
|
+
query_params = opts[:query_params] || {}
|
|
420
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
421
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
422
|
+
|
|
423
|
+
# header parameters
|
|
424
|
+
header_params = opts[:header_params] || {}
|
|
425
|
+
# HTTP header 'Accept' (if needed)
|
|
426
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
427
|
+
|
|
428
|
+
# form parameters
|
|
429
|
+
form_params = opts[:form_params] || {}
|
|
430
|
+
|
|
431
|
+
# http body (model)
|
|
432
|
+
post_body = opts[:debug_body]
|
|
433
|
+
|
|
434
|
+
# return_type
|
|
435
|
+
return_type = opts[:debug_return_type] || 'PayoutVerificationList'
|
|
436
|
+
|
|
437
|
+
# auth_names
|
|
438
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
439
|
+
|
|
440
|
+
new_options = opts.merge(
|
|
441
|
+
:operation => :"PayoutsApi.payouts_list_verifications",
|
|
442
|
+
:header_params => header_params,
|
|
443
|
+
:query_params => query_params,
|
|
444
|
+
:form_params => form_params,
|
|
445
|
+
:body => post_body,
|
|
446
|
+
:auth_names => auth_names,
|
|
447
|
+
:return_type => return_type
|
|
448
|
+
)
|
|
449
|
+
|
|
450
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
451
|
+
if @api_client.config.debugging
|
|
452
|
+
@api_client.config.logger.debug "API called: PayoutsApi#payouts_list_verifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
453
|
+
end
|
|
454
|
+
return data, status_code, headers
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
# List Withdrawals
|
|
458
|
+
# Retrieve a list of past withdrawal history.
|
|
459
|
+
# @param [Hash] opts the optional parameters
|
|
460
|
+
# @option opts [Float] :limit Page size limit
|
|
461
|
+
# @option opts [Float] :page Page number
|
|
462
|
+
# @return [WithdrawalList]
|
|
463
|
+
def payouts_list_withdrawals(opts = {})
|
|
464
|
+
data, _status_code, _headers = payouts_list_withdrawals_with_http_info(opts)
|
|
465
|
+
data
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
# List Withdrawals
|
|
469
|
+
# Retrieve a list of past withdrawal history.
|
|
470
|
+
# @param [Hash] opts the optional parameters
|
|
471
|
+
# @option opts [Float] :limit Page size limit
|
|
472
|
+
# @option opts [Float] :page Page number
|
|
473
|
+
# @return [Array<(WithdrawalList, Integer, Hash)>] WithdrawalList data, response status code and response headers
|
|
474
|
+
def payouts_list_withdrawals_with_http_info(opts = {})
|
|
475
|
+
if @api_client.config.debugging
|
|
476
|
+
@api_client.config.logger.debug 'Calling API: PayoutsApi.payouts_list_withdrawals ...'
|
|
477
|
+
end
|
|
478
|
+
# resource path
|
|
479
|
+
local_var_path = '/v1/payouts'
|
|
480
|
+
|
|
481
|
+
# query parameters
|
|
482
|
+
query_params = opts[:query_params] || {}
|
|
483
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
484
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
485
|
+
|
|
486
|
+
# header parameters
|
|
487
|
+
header_params = opts[:header_params] || {}
|
|
488
|
+
# HTTP header 'Accept' (if needed)
|
|
489
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
490
|
+
|
|
491
|
+
# form parameters
|
|
492
|
+
form_params = opts[:form_params] || {}
|
|
493
|
+
|
|
494
|
+
# http body (model)
|
|
495
|
+
post_body = opts[:debug_body]
|
|
496
|
+
|
|
497
|
+
# return_type
|
|
498
|
+
return_type = opts[:debug_return_type] || 'WithdrawalList'
|
|
499
|
+
|
|
500
|
+
# auth_names
|
|
501
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
502
|
+
|
|
503
|
+
new_options = opts.merge(
|
|
504
|
+
:operation => :"PayoutsApi.payouts_list_withdrawals",
|
|
505
|
+
:header_params => header_params,
|
|
506
|
+
:query_params => query_params,
|
|
507
|
+
:form_params => form_params,
|
|
508
|
+
:body => post_body,
|
|
509
|
+
:auth_names => auth_names,
|
|
510
|
+
:return_type => return_type
|
|
511
|
+
)
|
|
512
|
+
|
|
513
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
514
|
+
if @api_client.config.debugging
|
|
515
|
+
@api_client.config.logger.debug "API called: PayoutsApi#payouts_list_withdrawals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
516
|
+
end
|
|
517
|
+
return data, status_code, headers
|
|
518
|
+
end
|
|
519
|
+
end
|
|
520
|
+
end
|