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
data/docs/PayoutsApi.md
ADDED
|
@@ -0,0 +1,579 @@
|
|
|
1
|
+
# Solifyn::PayoutsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8000*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**payouts_create_withdrawal**](PayoutsApi.md#payouts_create_withdrawal) | **POST** /v1/payouts/withdrawals | Create Withdrawal |
|
|
8
|
+
| [**payouts_get_account**](PayoutsApi.md#payouts_get_account) | **GET** /v1/payouts/account | Retrieve Payout Account |
|
|
9
|
+
| [**payouts_get_account_link**](PayoutsApi.md#payouts_get_account_link) | **GET** /v1/payouts/account-link | Create Account Link |
|
|
10
|
+
| [**payouts_get_token**](PayoutsApi.md#payouts_get_token) | **GET** /v1/payouts/token | Generate Portal Access Token |
|
|
11
|
+
| [**payouts_get_withdrawals**](PayoutsApi.md#payouts_get_withdrawals) | **GET** /v1/payouts/withdrawals | Get Withdrawals List |
|
|
12
|
+
| [**payouts_list_methods**](PayoutsApi.md#payouts_list_methods) | **GET** /v1/payouts/methods | List Payout Methods |
|
|
13
|
+
| [**payouts_list_verifications**](PayoutsApi.md#payouts_list_verifications) | **GET** /v1/payouts/verifications | List Verifications |
|
|
14
|
+
| [**payouts_list_withdrawals**](PayoutsApi.md#payouts_list_withdrawals) | **GET** /v1/payouts | List Withdrawals |
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## payouts_create_withdrawal
|
|
18
|
+
|
|
19
|
+
> <Withdrawal> payouts_create_withdrawal(withdrawal_create)
|
|
20
|
+
|
|
21
|
+
Create Withdrawal
|
|
22
|
+
|
|
23
|
+
Initiate a balance withdrawal transfer request.
|
|
24
|
+
|
|
25
|
+
### Examples
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
require 'time'
|
|
29
|
+
require 'solifyn'
|
|
30
|
+
# setup authorization
|
|
31
|
+
Solifyn.configure do |config|
|
|
32
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
33
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = Solifyn::PayoutsApi.new
|
|
37
|
+
withdrawal_create = Solifyn::WithdrawalCreate.new({amount: 1000, currency: 'usd'}) # WithdrawalCreate |
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
# Create Withdrawal
|
|
41
|
+
result = api_instance.payouts_create_withdrawal(withdrawal_create)
|
|
42
|
+
p result
|
|
43
|
+
rescue Solifyn::ApiError => e
|
|
44
|
+
puts "Error when calling PayoutsApi->payouts_create_withdrawal: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
#### Using the payouts_create_withdrawal_with_http_info variant
|
|
49
|
+
|
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
|
51
|
+
|
|
52
|
+
> <Array(<Withdrawal>, Integer, Hash)> payouts_create_withdrawal_with_http_info(withdrawal_create)
|
|
53
|
+
|
|
54
|
+
```ruby
|
|
55
|
+
begin
|
|
56
|
+
# Create Withdrawal
|
|
57
|
+
data, status_code, headers = api_instance.payouts_create_withdrawal_with_http_info(withdrawal_create)
|
|
58
|
+
p status_code # => 2xx
|
|
59
|
+
p headers # => { ... }
|
|
60
|
+
p data # => <Withdrawal>
|
|
61
|
+
rescue Solifyn::ApiError => e
|
|
62
|
+
puts "Error when calling PayoutsApi->payouts_create_withdrawal_with_http_info: #{e}"
|
|
63
|
+
end
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
| Name | Type | Description | Notes |
|
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
|
70
|
+
| **withdrawal_create** | [**WithdrawalCreate**](WithdrawalCreate.md) | | |
|
|
71
|
+
|
|
72
|
+
### Return type
|
|
73
|
+
|
|
74
|
+
[**Withdrawal**](Withdrawal.md)
|
|
75
|
+
|
|
76
|
+
### Authorization
|
|
77
|
+
|
|
78
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
79
|
+
|
|
80
|
+
### HTTP request headers
|
|
81
|
+
|
|
82
|
+
- **Content-Type**: application/json
|
|
83
|
+
- **Accept**: application/json
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## payouts_get_account
|
|
87
|
+
|
|
88
|
+
> <PayoutAccount> payouts_get_account
|
|
89
|
+
|
|
90
|
+
Retrieve Payout Account
|
|
91
|
+
|
|
92
|
+
Retrieve general status and information of onboarding payout accounts.
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'solifyn'
|
|
99
|
+
# setup authorization
|
|
100
|
+
Solifyn.configure do |config|
|
|
101
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
102
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
api_instance = Solifyn::PayoutsApi.new
|
|
106
|
+
|
|
107
|
+
begin
|
|
108
|
+
# Retrieve Payout Account
|
|
109
|
+
result = api_instance.payouts_get_account
|
|
110
|
+
p result
|
|
111
|
+
rescue Solifyn::ApiError => e
|
|
112
|
+
puts "Error when calling PayoutsApi->payouts_get_account: #{e}"
|
|
113
|
+
end
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
#### Using the payouts_get_account_with_http_info variant
|
|
117
|
+
|
|
118
|
+
This returns an Array which contains the response data, status code and headers.
|
|
119
|
+
|
|
120
|
+
> <Array(<PayoutAccount>, Integer, Hash)> payouts_get_account_with_http_info
|
|
121
|
+
|
|
122
|
+
```ruby
|
|
123
|
+
begin
|
|
124
|
+
# Retrieve Payout Account
|
|
125
|
+
data, status_code, headers = api_instance.payouts_get_account_with_http_info
|
|
126
|
+
p status_code # => 2xx
|
|
127
|
+
p headers # => { ... }
|
|
128
|
+
p data # => <PayoutAccount>
|
|
129
|
+
rescue Solifyn::ApiError => e
|
|
130
|
+
puts "Error when calling PayoutsApi->payouts_get_account_with_http_info: #{e}"
|
|
131
|
+
end
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Parameters
|
|
135
|
+
|
|
136
|
+
This endpoint does not need any parameter.
|
|
137
|
+
|
|
138
|
+
### Return type
|
|
139
|
+
|
|
140
|
+
[**PayoutAccount**](PayoutAccount.md)
|
|
141
|
+
|
|
142
|
+
### Authorization
|
|
143
|
+
|
|
144
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
145
|
+
|
|
146
|
+
### HTTP request headers
|
|
147
|
+
|
|
148
|
+
- **Content-Type**: Not defined
|
|
149
|
+
- **Accept**: application/json
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
## payouts_get_account_link
|
|
153
|
+
|
|
154
|
+
> <PayoutAccountLink> payouts_get_account_link(opts)
|
|
155
|
+
|
|
156
|
+
Create Account Link
|
|
157
|
+
|
|
158
|
+
Generate temporary links for onboarding or viewing portals.
|
|
159
|
+
|
|
160
|
+
### Examples
|
|
161
|
+
|
|
162
|
+
```ruby
|
|
163
|
+
require 'time'
|
|
164
|
+
require 'solifyn'
|
|
165
|
+
# setup authorization
|
|
166
|
+
Solifyn.configure do |config|
|
|
167
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
168
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
api_instance = Solifyn::PayoutsApi.new
|
|
172
|
+
opts = {
|
|
173
|
+
use_case: 'account_onboarding' # String | Onboarding link type context
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
begin
|
|
177
|
+
# Create Account Link
|
|
178
|
+
result = api_instance.payouts_get_account_link(opts)
|
|
179
|
+
p result
|
|
180
|
+
rescue Solifyn::ApiError => e
|
|
181
|
+
puts "Error when calling PayoutsApi->payouts_get_account_link: #{e}"
|
|
182
|
+
end
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
#### Using the payouts_get_account_link_with_http_info variant
|
|
186
|
+
|
|
187
|
+
This returns an Array which contains the response data, status code and headers.
|
|
188
|
+
|
|
189
|
+
> <Array(<PayoutAccountLink>, Integer, Hash)> payouts_get_account_link_with_http_info(opts)
|
|
190
|
+
|
|
191
|
+
```ruby
|
|
192
|
+
begin
|
|
193
|
+
# Create Account Link
|
|
194
|
+
data, status_code, headers = api_instance.payouts_get_account_link_with_http_info(opts)
|
|
195
|
+
p status_code # => 2xx
|
|
196
|
+
p headers # => { ... }
|
|
197
|
+
p data # => <PayoutAccountLink>
|
|
198
|
+
rescue Solifyn::ApiError => e
|
|
199
|
+
puts "Error when calling PayoutsApi->payouts_get_account_link_with_http_info: #{e}"
|
|
200
|
+
end
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Parameters
|
|
204
|
+
|
|
205
|
+
| Name | Type | Description | Notes |
|
|
206
|
+
| ---- | ---- | ----------- | ----- |
|
|
207
|
+
| **use_case** | **String** | Onboarding link type context | [optional] |
|
|
208
|
+
|
|
209
|
+
### Return type
|
|
210
|
+
|
|
211
|
+
[**PayoutAccountLink**](PayoutAccountLink.md)
|
|
212
|
+
|
|
213
|
+
### Authorization
|
|
214
|
+
|
|
215
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
216
|
+
|
|
217
|
+
### HTTP request headers
|
|
218
|
+
|
|
219
|
+
- **Content-Type**: Not defined
|
|
220
|
+
- **Accept**: application/json
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
## payouts_get_token
|
|
224
|
+
|
|
225
|
+
> <PayoutAccessToken> payouts_get_token
|
|
226
|
+
|
|
227
|
+
Generate Portal Access Token
|
|
228
|
+
|
|
229
|
+
Generate temporary credentials to access the embed portal.
|
|
230
|
+
|
|
231
|
+
### Examples
|
|
232
|
+
|
|
233
|
+
```ruby
|
|
234
|
+
require 'time'
|
|
235
|
+
require 'solifyn'
|
|
236
|
+
# setup authorization
|
|
237
|
+
Solifyn.configure do |config|
|
|
238
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
239
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
api_instance = Solifyn::PayoutsApi.new
|
|
243
|
+
|
|
244
|
+
begin
|
|
245
|
+
# Generate Portal Access Token
|
|
246
|
+
result = api_instance.payouts_get_token
|
|
247
|
+
p result
|
|
248
|
+
rescue Solifyn::ApiError => e
|
|
249
|
+
puts "Error when calling PayoutsApi->payouts_get_token: #{e}"
|
|
250
|
+
end
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
#### Using the payouts_get_token_with_http_info variant
|
|
254
|
+
|
|
255
|
+
This returns an Array which contains the response data, status code and headers.
|
|
256
|
+
|
|
257
|
+
> <Array(<PayoutAccessToken>, Integer, Hash)> payouts_get_token_with_http_info
|
|
258
|
+
|
|
259
|
+
```ruby
|
|
260
|
+
begin
|
|
261
|
+
# Generate Portal Access Token
|
|
262
|
+
data, status_code, headers = api_instance.payouts_get_token_with_http_info
|
|
263
|
+
p status_code # => 2xx
|
|
264
|
+
p headers # => { ... }
|
|
265
|
+
p data # => <PayoutAccessToken>
|
|
266
|
+
rescue Solifyn::ApiError => e
|
|
267
|
+
puts "Error when calling PayoutsApi->payouts_get_token_with_http_info: #{e}"
|
|
268
|
+
end
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Parameters
|
|
272
|
+
|
|
273
|
+
This endpoint does not need any parameter.
|
|
274
|
+
|
|
275
|
+
### Return type
|
|
276
|
+
|
|
277
|
+
[**PayoutAccessToken**](PayoutAccessToken.md)
|
|
278
|
+
|
|
279
|
+
### Authorization
|
|
280
|
+
|
|
281
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
282
|
+
|
|
283
|
+
### HTTP request headers
|
|
284
|
+
|
|
285
|
+
- **Content-Type**: Not defined
|
|
286
|
+
- **Accept**: application/json
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
## payouts_get_withdrawals
|
|
290
|
+
|
|
291
|
+
> <WithdrawalList> payouts_get_withdrawals(opts)
|
|
292
|
+
|
|
293
|
+
Get Withdrawals List
|
|
294
|
+
|
|
295
|
+
Retrieve withdrawal records for the active business.
|
|
296
|
+
|
|
297
|
+
### Examples
|
|
298
|
+
|
|
299
|
+
```ruby
|
|
300
|
+
require 'time'
|
|
301
|
+
require 'solifyn'
|
|
302
|
+
# setup authorization
|
|
303
|
+
Solifyn.configure do |config|
|
|
304
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
305
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
api_instance = Solifyn::PayoutsApi.new
|
|
309
|
+
opts = {
|
|
310
|
+
limit: 8.14, # Float | Page size limit
|
|
311
|
+
page: 8.14 # Float | Page number
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
begin
|
|
315
|
+
# Get Withdrawals List
|
|
316
|
+
result = api_instance.payouts_get_withdrawals(opts)
|
|
317
|
+
p result
|
|
318
|
+
rescue Solifyn::ApiError => e
|
|
319
|
+
puts "Error when calling PayoutsApi->payouts_get_withdrawals: #{e}"
|
|
320
|
+
end
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
#### Using the payouts_get_withdrawals_with_http_info variant
|
|
324
|
+
|
|
325
|
+
This returns an Array which contains the response data, status code and headers.
|
|
326
|
+
|
|
327
|
+
> <Array(<WithdrawalList>, Integer, Hash)> payouts_get_withdrawals_with_http_info(opts)
|
|
328
|
+
|
|
329
|
+
```ruby
|
|
330
|
+
begin
|
|
331
|
+
# Get Withdrawals List
|
|
332
|
+
data, status_code, headers = api_instance.payouts_get_withdrawals_with_http_info(opts)
|
|
333
|
+
p status_code # => 2xx
|
|
334
|
+
p headers # => { ... }
|
|
335
|
+
p data # => <WithdrawalList>
|
|
336
|
+
rescue Solifyn::ApiError => e
|
|
337
|
+
puts "Error when calling PayoutsApi->payouts_get_withdrawals_with_http_info: #{e}"
|
|
338
|
+
end
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
### Parameters
|
|
342
|
+
|
|
343
|
+
| Name | Type | Description | Notes |
|
|
344
|
+
| ---- | ---- | ----------- | ----- |
|
|
345
|
+
| **limit** | **Float** | Page size limit | [optional] |
|
|
346
|
+
| **page** | **Float** | Page number | [optional] |
|
|
347
|
+
|
|
348
|
+
### Return type
|
|
349
|
+
|
|
350
|
+
[**WithdrawalList**](WithdrawalList.md)
|
|
351
|
+
|
|
352
|
+
### Authorization
|
|
353
|
+
|
|
354
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
355
|
+
|
|
356
|
+
### HTTP request headers
|
|
357
|
+
|
|
358
|
+
- **Content-Type**: Not defined
|
|
359
|
+
- **Accept**: application/json
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
## payouts_list_methods
|
|
363
|
+
|
|
364
|
+
> <PayoutMethodList> payouts_list_methods(opts)
|
|
365
|
+
|
|
366
|
+
List Payout Methods
|
|
367
|
+
|
|
368
|
+
List saved payout destinations (bank accounts, cards).
|
|
369
|
+
|
|
370
|
+
### Examples
|
|
371
|
+
|
|
372
|
+
```ruby
|
|
373
|
+
require 'time'
|
|
374
|
+
require 'solifyn'
|
|
375
|
+
# setup authorization
|
|
376
|
+
Solifyn.configure do |config|
|
|
377
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
378
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
api_instance = Solifyn::PayoutsApi.new
|
|
382
|
+
opts = {
|
|
383
|
+
limit: 8.14, # Float |
|
|
384
|
+
page: 8.14 # Float |
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
begin
|
|
388
|
+
# List Payout Methods
|
|
389
|
+
result = api_instance.payouts_list_methods(opts)
|
|
390
|
+
p result
|
|
391
|
+
rescue Solifyn::ApiError => e
|
|
392
|
+
puts "Error when calling PayoutsApi->payouts_list_methods: #{e}"
|
|
393
|
+
end
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
#### Using the payouts_list_methods_with_http_info variant
|
|
397
|
+
|
|
398
|
+
This returns an Array which contains the response data, status code and headers.
|
|
399
|
+
|
|
400
|
+
> <Array(<PayoutMethodList>, Integer, Hash)> payouts_list_methods_with_http_info(opts)
|
|
401
|
+
|
|
402
|
+
```ruby
|
|
403
|
+
begin
|
|
404
|
+
# List Payout Methods
|
|
405
|
+
data, status_code, headers = api_instance.payouts_list_methods_with_http_info(opts)
|
|
406
|
+
p status_code # => 2xx
|
|
407
|
+
p headers # => { ... }
|
|
408
|
+
p data # => <PayoutMethodList>
|
|
409
|
+
rescue Solifyn::ApiError => e
|
|
410
|
+
puts "Error when calling PayoutsApi->payouts_list_methods_with_http_info: #{e}"
|
|
411
|
+
end
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
### Parameters
|
|
415
|
+
|
|
416
|
+
| Name | Type | Description | Notes |
|
|
417
|
+
| ---- | ---- | ----------- | ----- |
|
|
418
|
+
| **limit** | **Float** | | [optional] |
|
|
419
|
+
| **page** | **Float** | | [optional] |
|
|
420
|
+
|
|
421
|
+
### Return type
|
|
422
|
+
|
|
423
|
+
[**PayoutMethodList**](PayoutMethodList.md)
|
|
424
|
+
|
|
425
|
+
### Authorization
|
|
426
|
+
|
|
427
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
428
|
+
|
|
429
|
+
### HTTP request headers
|
|
430
|
+
|
|
431
|
+
- **Content-Type**: Not defined
|
|
432
|
+
- **Accept**: application/json
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
## payouts_list_verifications
|
|
436
|
+
|
|
437
|
+
> <PayoutVerificationList> payouts_list_verifications(opts)
|
|
438
|
+
|
|
439
|
+
List Verifications
|
|
440
|
+
|
|
441
|
+
Retrieve pending or completed KYC verification checks.
|
|
442
|
+
|
|
443
|
+
### Examples
|
|
444
|
+
|
|
445
|
+
```ruby
|
|
446
|
+
require 'time'
|
|
447
|
+
require 'solifyn'
|
|
448
|
+
# setup authorization
|
|
449
|
+
Solifyn.configure do |config|
|
|
450
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
451
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
api_instance = Solifyn::PayoutsApi.new
|
|
455
|
+
opts = {
|
|
456
|
+
limit: 8.14, # Float |
|
|
457
|
+
page: 8.14 # Float |
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
begin
|
|
461
|
+
# List Verifications
|
|
462
|
+
result = api_instance.payouts_list_verifications(opts)
|
|
463
|
+
p result
|
|
464
|
+
rescue Solifyn::ApiError => e
|
|
465
|
+
puts "Error when calling PayoutsApi->payouts_list_verifications: #{e}"
|
|
466
|
+
end
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
#### Using the payouts_list_verifications_with_http_info variant
|
|
470
|
+
|
|
471
|
+
This returns an Array which contains the response data, status code and headers.
|
|
472
|
+
|
|
473
|
+
> <Array(<PayoutVerificationList>, Integer, Hash)> payouts_list_verifications_with_http_info(opts)
|
|
474
|
+
|
|
475
|
+
```ruby
|
|
476
|
+
begin
|
|
477
|
+
# List Verifications
|
|
478
|
+
data, status_code, headers = api_instance.payouts_list_verifications_with_http_info(opts)
|
|
479
|
+
p status_code # => 2xx
|
|
480
|
+
p headers # => { ... }
|
|
481
|
+
p data # => <PayoutVerificationList>
|
|
482
|
+
rescue Solifyn::ApiError => e
|
|
483
|
+
puts "Error when calling PayoutsApi->payouts_list_verifications_with_http_info: #{e}"
|
|
484
|
+
end
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
### Parameters
|
|
488
|
+
|
|
489
|
+
| Name | Type | Description | Notes |
|
|
490
|
+
| ---- | ---- | ----------- | ----- |
|
|
491
|
+
| **limit** | **Float** | | [optional] |
|
|
492
|
+
| **page** | **Float** | | [optional] |
|
|
493
|
+
|
|
494
|
+
### Return type
|
|
495
|
+
|
|
496
|
+
[**PayoutVerificationList**](PayoutVerificationList.md)
|
|
497
|
+
|
|
498
|
+
### Authorization
|
|
499
|
+
|
|
500
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
501
|
+
|
|
502
|
+
### HTTP request headers
|
|
503
|
+
|
|
504
|
+
- **Content-Type**: Not defined
|
|
505
|
+
- **Accept**: application/json
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
## payouts_list_withdrawals
|
|
509
|
+
|
|
510
|
+
> <WithdrawalList> payouts_list_withdrawals(opts)
|
|
511
|
+
|
|
512
|
+
List Withdrawals
|
|
513
|
+
|
|
514
|
+
Retrieve a list of past withdrawal history.
|
|
515
|
+
|
|
516
|
+
### Examples
|
|
517
|
+
|
|
518
|
+
```ruby
|
|
519
|
+
require 'time'
|
|
520
|
+
require 'solifyn'
|
|
521
|
+
# setup authorization
|
|
522
|
+
Solifyn.configure do |config|
|
|
523
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
524
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
api_instance = Solifyn::PayoutsApi.new
|
|
528
|
+
opts = {
|
|
529
|
+
limit: 8.14, # Float | Page size limit
|
|
530
|
+
page: 8.14 # Float | Page number
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
begin
|
|
534
|
+
# List Withdrawals
|
|
535
|
+
result = api_instance.payouts_list_withdrawals(opts)
|
|
536
|
+
p result
|
|
537
|
+
rescue Solifyn::ApiError => e
|
|
538
|
+
puts "Error when calling PayoutsApi->payouts_list_withdrawals: #{e}"
|
|
539
|
+
end
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
#### Using the payouts_list_withdrawals_with_http_info variant
|
|
543
|
+
|
|
544
|
+
This returns an Array which contains the response data, status code and headers.
|
|
545
|
+
|
|
546
|
+
> <Array(<WithdrawalList>, Integer, Hash)> payouts_list_withdrawals_with_http_info(opts)
|
|
547
|
+
|
|
548
|
+
```ruby
|
|
549
|
+
begin
|
|
550
|
+
# List Withdrawals
|
|
551
|
+
data, status_code, headers = api_instance.payouts_list_withdrawals_with_http_info(opts)
|
|
552
|
+
p status_code # => 2xx
|
|
553
|
+
p headers # => { ... }
|
|
554
|
+
p data # => <WithdrawalList>
|
|
555
|
+
rescue Solifyn::ApiError => e
|
|
556
|
+
puts "Error when calling PayoutsApi->payouts_list_withdrawals_with_http_info: #{e}"
|
|
557
|
+
end
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
### Parameters
|
|
561
|
+
|
|
562
|
+
| Name | Type | Description | Notes |
|
|
563
|
+
| ---- | ---- | ----------- | ----- |
|
|
564
|
+
| **limit** | **Float** | Page size limit | [optional] |
|
|
565
|
+
| **page** | **Float** | Page number | [optional] |
|
|
566
|
+
|
|
567
|
+
### Return type
|
|
568
|
+
|
|
569
|
+
[**WithdrawalList**](WithdrawalList.md)
|
|
570
|
+
|
|
571
|
+
### Authorization
|
|
572
|
+
|
|
573
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
574
|
+
|
|
575
|
+
### HTTP request headers
|
|
576
|
+
|
|
577
|
+
- **Content-Type**: Not defined
|
|
578
|
+
- **Accept**: application/json
|
|
579
|
+
|
data/docs/Product.md
CHANGED
|
@@ -19,9 +19,6 @@
|
|
|
19
19
|
| **has_github_access** | **Boolean** | Whether the product includes GitHub repository access. | |
|
|
20
20
|
| **github_repo** | **String** | GitHub repository to grant access to (format: owner/repo). | |
|
|
21
21
|
| **github_permission** | **String** | GitHub collaborator permission level. | |
|
|
22
|
-
| **has_discord_access** | **Boolean** | Whether the product includes Discord role access. | |
|
|
23
|
-
| **discord_guild_id** | **String** | Discord Guild (Server) ID to grant access to. | |
|
|
24
|
-
| **discord_role_id** | **String** | Discord Role ID to assign to the user. | |
|
|
25
22
|
| **is_tax_inclusive** | **Boolean** | Whether the product price already includes applicable sales taxes. | |
|
|
26
23
|
| **billing_period** | **Integer** | The subscription billing cycle interval in days (for subscription products). | |
|
|
27
24
|
| **trial_period_days** | **Integer** | Trial duration in days for subscription products. | |
|
|
@@ -65,9 +62,6 @@ instance = Solifyn::Product.new(
|
|
|
65
62
|
has_github_access: false,
|
|
66
63
|
github_repo: solifyn/premium-app,
|
|
67
64
|
github_permission: pull,
|
|
68
|
-
has_discord_access: false,
|
|
69
|
-
discord_guild_id: 123456789012345678,
|
|
70
|
-
discord_role_id: 876543210987654321,
|
|
71
65
|
is_tax_inclusive: false,
|
|
72
66
|
billing_period: null,
|
|
73
67
|
trial_period_days: null,
|
data/docs/ProductCreate.md
CHANGED
|
@@ -16,9 +16,6 @@
|
|
|
16
16
|
| **has_github_access** | **Boolean** | Whether the purchase includes GitHub repository access. | [optional][default to false] |
|
|
17
17
|
| **github_repo** | **String** | GitHub repository to grant access to (format: owner/repo). | [optional] |
|
|
18
18
|
| **github_permission** | **String** | GitHub collaborator permission level. | [optional] |
|
|
19
|
-
| **has_discord_access** | **Boolean** | Whether the purchase includes Discord server role access. | [optional][default to false] |
|
|
20
|
-
| **discord_guild_id** | **String** | Discord Guild (Server) ID to grant access to. | [optional] |
|
|
21
|
-
| **discord_role_id** | **String** | Discord Role ID to assign to the user. | [optional] |
|
|
22
19
|
| **is_tax_inclusive** | **Boolean** | Whether tax is included in the base price. | [optional][default to false] |
|
|
23
20
|
| **activation_limit** | **Integer** | Maximum concurrent activated instances allowed per license key. | [optional] |
|
|
24
21
|
| **brand_id** | **String** | Brand id for the product, if not provided will default to primary brand. | [optional] |
|
|
@@ -52,9 +49,6 @@ instance = Solifyn::ProductCreate.new(
|
|
|
52
49
|
has_github_access: false,
|
|
53
50
|
github_repo: solifyn/premium-app,
|
|
54
51
|
github_permission: pull,
|
|
55
|
-
has_discord_access: false,
|
|
56
|
-
discord_guild_id: 123456789012345678,
|
|
57
|
-
discord_role_id: 876543210987654321,
|
|
58
52
|
is_tax_inclusive: false,
|
|
59
53
|
activation_limit: null,
|
|
60
54
|
brand_id: brd_4e29285b8sdf34ff51e07d4,
|
data/docs/ProductUpdate.md
CHANGED
|
@@ -16,9 +16,6 @@
|
|
|
16
16
|
| **has_github_access** | **Boolean** | Whether the purchase includes GitHub repository access. | [optional][default to false] |
|
|
17
17
|
| **github_repo** | **String** | GitHub repository to grant access to (format: owner/repo). | [optional] |
|
|
18
18
|
| **github_permission** | **String** | GitHub collaborator permission level. | [optional] |
|
|
19
|
-
| **has_discord_access** | **Boolean** | Whether the purchase includes Discord server role access. | [optional][default to false] |
|
|
20
|
-
| **discord_guild_id** | **String** | Discord Guild (Server) ID to grant access to. | [optional] |
|
|
21
|
-
| **discord_role_id** | **String** | Discord Role ID to assign to the user. | [optional] |
|
|
22
19
|
| **is_tax_inclusive** | **Boolean** | Whether tax is included in the base price. | [optional][default to false] |
|
|
23
20
|
| **activation_limit** | **Integer** | Maximum concurrent activated instances allowed per license key. | [optional] |
|
|
24
21
|
| **brand_id** | **String** | Brand id for the product, if not provided will default to primary brand. | [optional] |
|
|
@@ -52,9 +49,6 @@ instance = Solifyn::ProductUpdate.new(
|
|
|
52
49
|
has_github_access: false,
|
|
53
50
|
github_repo: solifyn/premium-app,
|
|
54
51
|
github_permission: pull,
|
|
55
|
-
has_discord_access: false,
|
|
56
|
-
discord_guild_id: 123456789012345678,
|
|
57
|
-
discord_role_id: 876543210987654321,
|
|
58
52
|
is_tax_inclusive: false,
|
|
59
53
|
activation_limit: null,
|
|
60
54
|
brand_id: brd_4e29285b8sdf34ff51e07d4,
|