solifyn 1.0.0 → 1.0.5
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/README.md +20 -7
- data/docs/BalanceApi.md +1 -1
- data/docs/CheckoutApi.md +1 -1
- data/docs/CheckoutLinksApi.md +1 -1
- data/docs/CheckoutSessionDetailsDto.md +3 -1
- data/docs/CollectionProductDto.md +12 -0
- data/docs/CollectionsApi.md +1 -1
- data/docs/CustomersApi.md +1 -1
- data/docs/DefaultApi.md +285 -1
- data/docs/DeveloperApi.md +1 -1
- data/docs/DigitalFileApi.md +1 -1
- data/docs/DiscordIntegrationApi.md +135 -0
- data/docs/DiscordRolesResponseDto.md +24 -0
- data/docs/DiscountsApi.md +1 -1
- data/docs/DisputesApi.md +1 -1
- data/docs/EntitlementGrantResponseDto.md +54 -0
- data/docs/EntitlementGrantsApi.md +289 -0
- data/docs/GitHubIntegrationApi.md +145 -0
- data/docs/GithubReposResponseDto.md +22 -0
- data/docs/LicenseApi.md +1 -1
- data/docs/LicenseKeysApi.md +1 -1
- data/docs/LicenseKeysClientApi.md +1 -1
- data/docs/MetersApi.md +1 -1
- data/docs/OrdersApi.md +1 -1
- data/docs/Product.md +12 -0
- data/docs/ProductAddOnsApi.md +1 -1
- data/docs/ProductCreate.md +12 -0
- data/docs/ProductUpdate.md +12 -0
- data/docs/ProductsApi.md +1 -1
- data/docs/RefundRequestsApi.md +1 -1
- data/docs/RefundsChargebacksApi.md +1 -1
- data/docs/SubscriptionsApi.md +1 -1
- data/docs/SyncLoginDto.md +18 -0
- data/docs/WebhookApi.md +1 -1
- data/docs/WebhookEndpointApi.md +55 -10
- data/docs/WebhookEntitlementGrantPayload.md +44 -0
- data/git_push.sh +2 -2
- data/lib/solifyn/api/default_api.rb +248 -0
- data/lib/solifyn/api/{partner_api.rb → discord_integration_api.rb} +32 -19
- data/lib/solifyn/api/entitlement_grants_api.rb +271 -0
- data/lib/solifyn/api/git_hub_integration_api.rb +137 -0
- data/lib/solifyn/api/webhook_endpoint_api.rb +9 -9
- data/lib/solifyn/configuration.rb +4 -4
- data/lib/solifyn/models/checkout_session_details_dto.rb +16 -4
- data/lib/solifyn/models/collection_product_dto.rb +115 -1
- data/lib/solifyn/models/{payout_method.rb → discord_roles_response_dto.rb} +41 -34
- data/lib/solifyn/models/{withdrawal.rb → entitlement_grant_response_dto.rb} +149 -109
- data/lib/solifyn/models/{payout_account.rb → github_repos_response_dto.rb} +31 -24
- data/lib/solifyn/models/product.rb +115 -1
- data/lib/solifyn/models/product_create.rb +77 -1
- data/lib/solifyn/models/product_update.rb +77 -1
- data/lib/solifyn/models/{payout_method_list.rb → sync_login_dto.rb} +15 -17
- data/lib/solifyn/models/{payout_verification.rb → webhook_entitlement_grant_payload.rb} +118 -41
- data/lib/solifyn/version.rb +1 -1
- data/lib/solifyn.rb +8 -0
- data/spec/api/checkout_api_spec.rb +12 -0
- data/spec/api/default_api_spec.rb +59 -11
- data/spec/api/developer_api_spec.rb +52 -29
- data/spec/api/{partner_api_spec.rb → discord_integration_api_spec.rb} +16 -11
- data/spec/api/entitlement_grants_api_spec.rb +83 -0
- data/spec/api/git_hub_integration_api_spec.rb +58 -0
- data/spec/models/checkout_session_details_dto_spec.rb +6 -0
- data/spec/models/collection_product_dto_spec.rb +28 -0
- data/spec/models/{payout_method_spec.rb → discord_roles_response_dto_spec.rb} +9 -9
- data/spec/models/{withdrawal_spec.rb → entitlement_grant_response_dto_spec.rb} +18 -18
- data/spec/models/{payout_account_spec.rb → github_repos_response_dto_spec.rb} +8 -8
- data/spec/models/order_spec.rb +6 -0
- data/spec/models/product_create_spec.rb +28 -0
- data/spec/models/product_spec.rb +28 -0
- data/spec/models/product_update_spec.rb +28 -0
- data/spec/models/{business_create_spec.rb → sync_login_dto_spec.rb} +7 -7
- data/spec/models/{business_spec.rb → webhook_entitlement_grant_payload_spec.rb} +17 -53
- metadata +162 -254
- data/docs/AffiliateApi.md +0 -845
- data/docs/BillingApi.md +0 -68
- data/docs/BrandsApi.md +0 -286
- data/docs/Business.md +0 -56
- data/docs/BusinessCreate.md +0 -18
- data/docs/BusinessFullCreate.md +0 -26
- data/docs/BusinessFullCreateResponse.md +0 -20
- data/docs/BusinessesApi.md +0 -350
- data/docs/ChatApi.md +0 -246
- data/docs/CommunityApi.md +0 -497
- data/docs/PartnerApi.md +0 -125
- data/docs/PayoutAccessToken.md +0 -20
- data/docs/PayoutAccount.md +0 -22
- data/docs/PayoutAccountLink.md +0 -20
- data/docs/PayoutMethod.md +0 -24
- data/docs/PayoutMethodList.md +0 -18
- data/docs/PayoutVerification.md +0 -24
- data/docs/PayoutVerificationList.md +0 -18
- data/docs/PayoutsApi.md +0 -579
- data/docs/TicketApi.md +0 -318
- data/docs/UserPage.md +0 -26
- data/docs/UserProfileThemesApi.md +0 -345
- data/docs/UserSettings.md +0 -34
- data/docs/UserSettingsUpdate.md +0 -76
- data/docs/UserStats.md +0 -20
- data/docs/UserTheme.md +0 -26
- data/docs/UserThemeUpdate.md +0 -22
- data/docs/WhopApiKeysRotation.md +0 -18
- data/docs/Withdrawal.md +0 -46
- data/docs/WithdrawalCreate.md +0 -22
- data/docs/WithdrawalList.md +0 -20
- data/lib/solifyn/api/affiliate_api.rb +0 -760
- data/lib/solifyn/api/billing_api.rb +0 -77
- data/lib/solifyn/api/brands_api.rb +0 -284
- data/lib/solifyn/api/businesses_api.rb +0 -338
- data/lib/solifyn/api/chat_api.rb +0 -232
- data/lib/solifyn/api/community_api.rb +0 -466
- data/lib/solifyn/api/payouts_api.rb +0 -520
- data/lib/solifyn/api/ticket_api.rb +0 -328
- data/lib/solifyn/api/user_profile_themes_api.rb +0 -313
- data/lib/solifyn/models/business.rb +0 -482
- data/lib/solifyn/models/business_create.rb +0 -241
- data/lib/solifyn/models/business_full_create.rb +0 -288
- data/lib/solifyn/models/business_full_create_response.rb +0 -239
- data/lib/solifyn/models/payout_access_token.rb +0 -239
- data/lib/solifyn/models/payout_account_link.rb +0 -239
- data/lib/solifyn/models/payout_verification_list.rb +0 -224
- data/lib/solifyn/models/user_page.rb +0 -290
- data/lib/solifyn/models/user_settings.rb +0 -337
- data/lib/solifyn/models/user_settings_update.rb +0 -505
- data/lib/solifyn/models/user_stats.rb +0 -241
- data/lib/solifyn/models/user_theme.rb +0 -276
- data/lib/solifyn/models/user_theme_update.rb +0 -235
- data/lib/solifyn/models/whop_api_keys_rotation.rb +0 -222
- data/lib/solifyn/models/withdrawal_create.rb +0 -249
- data/lib/solifyn/models/withdrawal_list.rb +0 -241
- data/spec/api/affiliate_api_spec.rb +0 -165
- data/spec/api/billing_api_spec.rb +0 -46
- data/spec/api/brands_api_spec.rb +0 -83
- data/spec/api/businesses_api_spec.rb +0 -93
- data/spec/api/chat_api_spec.rb +0 -72
- data/spec/api/community_api_spec.rb +0 -113
- data/spec/api/payouts_api_spec.rb +0 -133
- data/spec/api/ticket_api_spec.rb +0 -86
- data/spec/api/user_profile_themes_api_spec.rb +0 -91
- data/spec/models/business_full_create_response_spec.rb +0 -42
- data/spec/models/business_full_create_spec.rb +0 -60
- data/spec/models/payout_access_token_spec.rb +0 -42
- data/spec/models/payout_account_link_spec.rb +0 -42
- data/spec/models/payout_method_list_spec.rb +0 -36
- data/spec/models/payout_verification_list_spec.rb +0 -36
- data/spec/models/payout_verification_spec.rb +0 -54
- data/spec/models/user_page_spec.rb +0 -60
- data/spec/models/user_settings_spec.rb +0 -84
- data/spec/models/user_settings_update_spec.rb +0 -210
- data/spec/models/user_stats_spec.rb +0 -42
- data/spec/models/user_theme_spec.rb +0 -60
- data/spec/models/user_theme_update_spec.rb +0 -48
- data/spec/models/whop_api_keys_rotation_spec.rb +0 -36
- data/spec/models/withdrawal_create_spec.rb +0 -48
- data/spec/models/withdrawal_list_spec.rb +0 -42
data/docs/PayoutMethodList.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Solifyn::PayoutMethodList
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **data** | [**Array<PayoutMethod>**](PayoutMethod.md) | List of payout methods available for the business | |
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'solifyn'
|
|
13
|
-
|
|
14
|
-
instance = Solifyn::PayoutMethodList.new(
|
|
15
|
-
data: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
data/docs/PayoutVerification.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Solifyn::PayoutVerification
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** | The verification check ID | |
|
|
8
|
-
| **status** | **String** | Status of verification (pending, verified, rejected) | |
|
|
9
|
-
| **type** | **String** | Verification type (identity, business, address) | |
|
|
10
|
-
| **details** | **Object** | Details and requirements of the verification check | [optional] |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'solifyn'
|
|
16
|
-
|
|
17
|
-
instance = Solifyn::PayoutVerification.new(
|
|
18
|
-
id: ver_123,
|
|
19
|
-
status: verified,
|
|
20
|
-
type: identity,
|
|
21
|
-
details: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Solifyn::PayoutVerificationList
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **data** | [**Array<PayoutVerification>**](PayoutVerification.md) | List of verifications for the payout account | |
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'solifyn'
|
|
13
|
-
|
|
14
|
-
instance = Solifyn::PayoutVerificationList.new(
|
|
15
|
-
data: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
data/docs/PayoutsApi.md
DELETED
|
@@ -1,579 +0,0 @@
|
|
|
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
|
-
|