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,845 @@
|
|
|
1
|
+
# Solifyn::AffiliateApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8000*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**affiliate_controller_approve_connection**](AffiliateApi.md#affiliate_controller_approve_connection) | **POST** /v1/affiliate/program/connections/{id}/approve | |
|
|
8
|
+
| [**affiliate_controller_archive_connection**](AffiliateApi.md#affiliate_controller_archive_connection) | **POST** /v1/affiliate/program/connections/{id}/archive | |
|
|
9
|
+
| [**affiliate_controller_delete_override**](AffiliateApi.md#affiliate_controller_delete_override) | **DELETE** /v1/affiliate/program/override/{id} | |
|
|
10
|
+
| [**affiliate_controller_get_earnings_connections**](AffiliateApi.md#affiliate_controller_get_earnings_connections) | **GET** /v1/affiliate/earnings/connections | |
|
|
11
|
+
| [**affiliate_controller_get_earnings_ledger**](AffiliateApi.md#affiliate_controller_get_earnings_ledger) | **GET** /v1/affiliate/earnings/ledger | |
|
|
12
|
+
| [**affiliate_controller_get_earnings_stats**](AffiliateApi.md#affiliate_controller_get_earnings_stats) | **GET** /v1/affiliate/earnings/stats | |
|
|
13
|
+
| [**affiliate_controller_get_marketplace**](AffiliateApi.md#affiliate_controller_get_marketplace) | **GET** /v1/affiliate/marketplace | |
|
|
14
|
+
| [**affiliate_controller_get_program_connections**](AffiliateApi.md#affiliate_controller_get_program_connections) | **GET** /v1/affiliate/program/connections | |
|
|
15
|
+
| [**affiliate_controller_get_program_ledger**](AffiliateApi.md#affiliate_controller_get_program_ledger) | **GET** /v1/affiliate/program/ledger | |
|
|
16
|
+
| [**affiliate_controller_get_program_settings**](AffiliateApi.md#affiliate_controller_get_program_settings) | **GET** /v1/affiliate/program/settings | |
|
|
17
|
+
| [**affiliate_controller_join_program**](AffiliateApi.md#affiliate_controller_join_program) | **POST** /v1/affiliate/marketplace/join | |
|
|
18
|
+
| [**affiliate_controller_reject_connection**](AffiliateApi.md#affiliate_controller_reject_connection) | **POST** /v1/affiliate/program/connections/{id}/reject | |
|
|
19
|
+
| [**affiliate_controller_save_override**](AffiliateApi.md#affiliate_controller_save_override) | **POST** /v1/affiliate/program/override | |
|
|
20
|
+
| [**affiliate_controller_save_program_settings**](AffiliateApi.md#affiliate_controller_save_program_settings) | **POST** /v1/affiliate/program/settings | |
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## affiliate_controller_approve_connection
|
|
24
|
+
|
|
25
|
+
> affiliate_controller_approve_connection(id)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Examples
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
require 'time'
|
|
33
|
+
require 'solifyn'
|
|
34
|
+
|
|
35
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
36
|
+
id = 'id_example' # String |
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
|
|
40
|
+
api_instance.affiliate_controller_approve_connection(id)
|
|
41
|
+
rescue Solifyn::ApiError => e
|
|
42
|
+
puts "Error when calling AffiliateApi->affiliate_controller_approve_connection: #{e}"
|
|
43
|
+
end
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### Using the affiliate_controller_approve_connection_with_http_info variant
|
|
47
|
+
|
|
48
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
49
|
+
|
|
50
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_approve_connection_with_http_info(id)
|
|
51
|
+
|
|
52
|
+
```ruby
|
|
53
|
+
begin
|
|
54
|
+
|
|
55
|
+
data, status_code, headers = api_instance.affiliate_controller_approve_connection_with_http_info(id)
|
|
56
|
+
p status_code # => 2xx
|
|
57
|
+
p headers # => { ... }
|
|
58
|
+
p data # => nil
|
|
59
|
+
rescue Solifyn::ApiError => e
|
|
60
|
+
puts "Error when calling AffiliateApi->affiliate_controller_approve_connection_with_http_info: #{e}"
|
|
61
|
+
end
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Parameters
|
|
65
|
+
|
|
66
|
+
| Name | Type | Description | Notes |
|
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
|
68
|
+
| **id** | **String** | | |
|
|
69
|
+
|
|
70
|
+
### Return type
|
|
71
|
+
|
|
72
|
+
nil (empty response body)
|
|
73
|
+
|
|
74
|
+
### Authorization
|
|
75
|
+
|
|
76
|
+
No authorization required
|
|
77
|
+
|
|
78
|
+
### HTTP request headers
|
|
79
|
+
|
|
80
|
+
- **Content-Type**: Not defined
|
|
81
|
+
- **Accept**: Not defined
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## affiliate_controller_archive_connection
|
|
85
|
+
|
|
86
|
+
> affiliate_controller_archive_connection(id)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Examples
|
|
91
|
+
|
|
92
|
+
```ruby
|
|
93
|
+
require 'time'
|
|
94
|
+
require 'solifyn'
|
|
95
|
+
|
|
96
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
97
|
+
id = 'id_example' # String |
|
|
98
|
+
|
|
99
|
+
begin
|
|
100
|
+
|
|
101
|
+
api_instance.affiliate_controller_archive_connection(id)
|
|
102
|
+
rescue Solifyn::ApiError => e
|
|
103
|
+
puts "Error when calling AffiliateApi->affiliate_controller_archive_connection: #{e}"
|
|
104
|
+
end
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
#### Using the affiliate_controller_archive_connection_with_http_info variant
|
|
108
|
+
|
|
109
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
110
|
+
|
|
111
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_archive_connection_with_http_info(id)
|
|
112
|
+
|
|
113
|
+
```ruby
|
|
114
|
+
begin
|
|
115
|
+
|
|
116
|
+
data, status_code, headers = api_instance.affiliate_controller_archive_connection_with_http_info(id)
|
|
117
|
+
p status_code # => 2xx
|
|
118
|
+
p headers # => { ... }
|
|
119
|
+
p data # => nil
|
|
120
|
+
rescue Solifyn::ApiError => e
|
|
121
|
+
puts "Error when calling AffiliateApi->affiliate_controller_archive_connection_with_http_info: #{e}"
|
|
122
|
+
end
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Parameters
|
|
126
|
+
|
|
127
|
+
| Name | Type | Description | Notes |
|
|
128
|
+
| ---- | ---- | ----------- | ----- |
|
|
129
|
+
| **id** | **String** | | |
|
|
130
|
+
|
|
131
|
+
### Return type
|
|
132
|
+
|
|
133
|
+
nil (empty response body)
|
|
134
|
+
|
|
135
|
+
### Authorization
|
|
136
|
+
|
|
137
|
+
No authorization required
|
|
138
|
+
|
|
139
|
+
### HTTP request headers
|
|
140
|
+
|
|
141
|
+
- **Content-Type**: Not defined
|
|
142
|
+
- **Accept**: Not defined
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## affiliate_controller_delete_override
|
|
146
|
+
|
|
147
|
+
> affiliate_controller_delete_override(id)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Examples
|
|
152
|
+
|
|
153
|
+
```ruby
|
|
154
|
+
require 'time'
|
|
155
|
+
require 'solifyn'
|
|
156
|
+
|
|
157
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
158
|
+
id = 'id_example' # String |
|
|
159
|
+
|
|
160
|
+
begin
|
|
161
|
+
|
|
162
|
+
api_instance.affiliate_controller_delete_override(id)
|
|
163
|
+
rescue Solifyn::ApiError => e
|
|
164
|
+
puts "Error when calling AffiliateApi->affiliate_controller_delete_override: #{e}"
|
|
165
|
+
end
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
#### Using the affiliate_controller_delete_override_with_http_info variant
|
|
169
|
+
|
|
170
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
171
|
+
|
|
172
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_delete_override_with_http_info(id)
|
|
173
|
+
|
|
174
|
+
```ruby
|
|
175
|
+
begin
|
|
176
|
+
|
|
177
|
+
data, status_code, headers = api_instance.affiliate_controller_delete_override_with_http_info(id)
|
|
178
|
+
p status_code # => 2xx
|
|
179
|
+
p headers # => { ... }
|
|
180
|
+
p data # => nil
|
|
181
|
+
rescue Solifyn::ApiError => e
|
|
182
|
+
puts "Error when calling AffiliateApi->affiliate_controller_delete_override_with_http_info: #{e}"
|
|
183
|
+
end
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### Parameters
|
|
187
|
+
|
|
188
|
+
| Name | Type | Description | Notes |
|
|
189
|
+
| ---- | ---- | ----------- | ----- |
|
|
190
|
+
| **id** | **String** | | |
|
|
191
|
+
|
|
192
|
+
### Return type
|
|
193
|
+
|
|
194
|
+
nil (empty response body)
|
|
195
|
+
|
|
196
|
+
### Authorization
|
|
197
|
+
|
|
198
|
+
No authorization required
|
|
199
|
+
|
|
200
|
+
### HTTP request headers
|
|
201
|
+
|
|
202
|
+
- **Content-Type**: Not defined
|
|
203
|
+
- **Accept**: Not defined
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
## affiliate_controller_get_earnings_connections
|
|
207
|
+
|
|
208
|
+
> affiliate_controller_get_earnings_connections
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### Examples
|
|
213
|
+
|
|
214
|
+
```ruby
|
|
215
|
+
require 'time'
|
|
216
|
+
require 'solifyn'
|
|
217
|
+
|
|
218
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
219
|
+
|
|
220
|
+
begin
|
|
221
|
+
|
|
222
|
+
api_instance.affiliate_controller_get_earnings_connections
|
|
223
|
+
rescue Solifyn::ApiError => e
|
|
224
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_earnings_connections: #{e}"
|
|
225
|
+
end
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
#### Using the affiliate_controller_get_earnings_connections_with_http_info variant
|
|
229
|
+
|
|
230
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
231
|
+
|
|
232
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_get_earnings_connections_with_http_info
|
|
233
|
+
|
|
234
|
+
```ruby
|
|
235
|
+
begin
|
|
236
|
+
|
|
237
|
+
data, status_code, headers = api_instance.affiliate_controller_get_earnings_connections_with_http_info
|
|
238
|
+
p status_code # => 2xx
|
|
239
|
+
p headers # => { ... }
|
|
240
|
+
p data # => nil
|
|
241
|
+
rescue Solifyn::ApiError => e
|
|
242
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_earnings_connections_with_http_info: #{e}"
|
|
243
|
+
end
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Parameters
|
|
247
|
+
|
|
248
|
+
This endpoint does not need any parameter.
|
|
249
|
+
|
|
250
|
+
### Return type
|
|
251
|
+
|
|
252
|
+
nil (empty response body)
|
|
253
|
+
|
|
254
|
+
### Authorization
|
|
255
|
+
|
|
256
|
+
No authorization required
|
|
257
|
+
|
|
258
|
+
### HTTP request headers
|
|
259
|
+
|
|
260
|
+
- **Content-Type**: Not defined
|
|
261
|
+
- **Accept**: Not defined
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
## affiliate_controller_get_earnings_ledger
|
|
265
|
+
|
|
266
|
+
> affiliate_controller_get_earnings_ledger
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
### Examples
|
|
271
|
+
|
|
272
|
+
```ruby
|
|
273
|
+
require 'time'
|
|
274
|
+
require 'solifyn'
|
|
275
|
+
|
|
276
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
277
|
+
|
|
278
|
+
begin
|
|
279
|
+
|
|
280
|
+
api_instance.affiliate_controller_get_earnings_ledger
|
|
281
|
+
rescue Solifyn::ApiError => e
|
|
282
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_earnings_ledger: #{e}"
|
|
283
|
+
end
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
#### Using the affiliate_controller_get_earnings_ledger_with_http_info variant
|
|
287
|
+
|
|
288
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
289
|
+
|
|
290
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_get_earnings_ledger_with_http_info
|
|
291
|
+
|
|
292
|
+
```ruby
|
|
293
|
+
begin
|
|
294
|
+
|
|
295
|
+
data, status_code, headers = api_instance.affiliate_controller_get_earnings_ledger_with_http_info
|
|
296
|
+
p status_code # => 2xx
|
|
297
|
+
p headers # => { ... }
|
|
298
|
+
p data # => nil
|
|
299
|
+
rescue Solifyn::ApiError => e
|
|
300
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_earnings_ledger_with_http_info: #{e}"
|
|
301
|
+
end
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
### Parameters
|
|
305
|
+
|
|
306
|
+
This endpoint does not need any parameter.
|
|
307
|
+
|
|
308
|
+
### Return type
|
|
309
|
+
|
|
310
|
+
nil (empty response body)
|
|
311
|
+
|
|
312
|
+
### Authorization
|
|
313
|
+
|
|
314
|
+
No authorization required
|
|
315
|
+
|
|
316
|
+
### HTTP request headers
|
|
317
|
+
|
|
318
|
+
- **Content-Type**: Not defined
|
|
319
|
+
- **Accept**: Not defined
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
## affiliate_controller_get_earnings_stats
|
|
323
|
+
|
|
324
|
+
> affiliate_controller_get_earnings_stats
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
### Examples
|
|
329
|
+
|
|
330
|
+
```ruby
|
|
331
|
+
require 'time'
|
|
332
|
+
require 'solifyn'
|
|
333
|
+
|
|
334
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
335
|
+
|
|
336
|
+
begin
|
|
337
|
+
|
|
338
|
+
api_instance.affiliate_controller_get_earnings_stats
|
|
339
|
+
rescue Solifyn::ApiError => e
|
|
340
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_earnings_stats: #{e}"
|
|
341
|
+
end
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
#### Using the affiliate_controller_get_earnings_stats_with_http_info variant
|
|
345
|
+
|
|
346
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
347
|
+
|
|
348
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_get_earnings_stats_with_http_info
|
|
349
|
+
|
|
350
|
+
```ruby
|
|
351
|
+
begin
|
|
352
|
+
|
|
353
|
+
data, status_code, headers = api_instance.affiliate_controller_get_earnings_stats_with_http_info
|
|
354
|
+
p status_code # => 2xx
|
|
355
|
+
p headers # => { ... }
|
|
356
|
+
p data # => nil
|
|
357
|
+
rescue Solifyn::ApiError => e
|
|
358
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_earnings_stats_with_http_info: #{e}"
|
|
359
|
+
end
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
### Parameters
|
|
363
|
+
|
|
364
|
+
This endpoint does not need any parameter.
|
|
365
|
+
|
|
366
|
+
### Return type
|
|
367
|
+
|
|
368
|
+
nil (empty response body)
|
|
369
|
+
|
|
370
|
+
### Authorization
|
|
371
|
+
|
|
372
|
+
No authorization required
|
|
373
|
+
|
|
374
|
+
### HTTP request headers
|
|
375
|
+
|
|
376
|
+
- **Content-Type**: Not defined
|
|
377
|
+
- **Accept**: Not defined
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
## affiliate_controller_get_marketplace
|
|
381
|
+
|
|
382
|
+
> affiliate_controller_get_marketplace
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
### Examples
|
|
387
|
+
|
|
388
|
+
```ruby
|
|
389
|
+
require 'time'
|
|
390
|
+
require 'solifyn'
|
|
391
|
+
|
|
392
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
393
|
+
|
|
394
|
+
begin
|
|
395
|
+
|
|
396
|
+
api_instance.affiliate_controller_get_marketplace
|
|
397
|
+
rescue Solifyn::ApiError => e
|
|
398
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_marketplace: #{e}"
|
|
399
|
+
end
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
#### Using the affiliate_controller_get_marketplace_with_http_info variant
|
|
403
|
+
|
|
404
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
405
|
+
|
|
406
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_get_marketplace_with_http_info
|
|
407
|
+
|
|
408
|
+
```ruby
|
|
409
|
+
begin
|
|
410
|
+
|
|
411
|
+
data, status_code, headers = api_instance.affiliate_controller_get_marketplace_with_http_info
|
|
412
|
+
p status_code # => 2xx
|
|
413
|
+
p headers # => { ... }
|
|
414
|
+
p data # => nil
|
|
415
|
+
rescue Solifyn::ApiError => e
|
|
416
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_marketplace_with_http_info: #{e}"
|
|
417
|
+
end
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
### Parameters
|
|
421
|
+
|
|
422
|
+
This endpoint does not need any parameter.
|
|
423
|
+
|
|
424
|
+
### Return type
|
|
425
|
+
|
|
426
|
+
nil (empty response body)
|
|
427
|
+
|
|
428
|
+
### Authorization
|
|
429
|
+
|
|
430
|
+
No authorization required
|
|
431
|
+
|
|
432
|
+
### HTTP request headers
|
|
433
|
+
|
|
434
|
+
- **Content-Type**: Not defined
|
|
435
|
+
- **Accept**: Not defined
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
## affiliate_controller_get_program_connections
|
|
439
|
+
|
|
440
|
+
> affiliate_controller_get_program_connections
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
### Examples
|
|
445
|
+
|
|
446
|
+
```ruby
|
|
447
|
+
require 'time'
|
|
448
|
+
require 'solifyn'
|
|
449
|
+
|
|
450
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
451
|
+
|
|
452
|
+
begin
|
|
453
|
+
|
|
454
|
+
api_instance.affiliate_controller_get_program_connections
|
|
455
|
+
rescue Solifyn::ApiError => e
|
|
456
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_program_connections: #{e}"
|
|
457
|
+
end
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
#### Using the affiliate_controller_get_program_connections_with_http_info variant
|
|
461
|
+
|
|
462
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
463
|
+
|
|
464
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_get_program_connections_with_http_info
|
|
465
|
+
|
|
466
|
+
```ruby
|
|
467
|
+
begin
|
|
468
|
+
|
|
469
|
+
data, status_code, headers = api_instance.affiliate_controller_get_program_connections_with_http_info
|
|
470
|
+
p status_code # => 2xx
|
|
471
|
+
p headers # => { ... }
|
|
472
|
+
p data # => nil
|
|
473
|
+
rescue Solifyn::ApiError => e
|
|
474
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_program_connections_with_http_info: #{e}"
|
|
475
|
+
end
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
### Parameters
|
|
479
|
+
|
|
480
|
+
This endpoint does not need any parameter.
|
|
481
|
+
|
|
482
|
+
### Return type
|
|
483
|
+
|
|
484
|
+
nil (empty response body)
|
|
485
|
+
|
|
486
|
+
### Authorization
|
|
487
|
+
|
|
488
|
+
No authorization required
|
|
489
|
+
|
|
490
|
+
### HTTP request headers
|
|
491
|
+
|
|
492
|
+
- **Content-Type**: Not defined
|
|
493
|
+
- **Accept**: Not defined
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
## affiliate_controller_get_program_ledger
|
|
497
|
+
|
|
498
|
+
> affiliate_controller_get_program_ledger
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
### Examples
|
|
503
|
+
|
|
504
|
+
```ruby
|
|
505
|
+
require 'time'
|
|
506
|
+
require 'solifyn'
|
|
507
|
+
|
|
508
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
509
|
+
|
|
510
|
+
begin
|
|
511
|
+
|
|
512
|
+
api_instance.affiliate_controller_get_program_ledger
|
|
513
|
+
rescue Solifyn::ApiError => e
|
|
514
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_program_ledger: #{e}"
|
|
515
|
+
end
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
#### Using the affiliate_controller_get_program_ledger_with_http_info variant
|
|
519
|
+
|
|
520
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
521
|
+
|
|
522
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_get_program_ledger_with_http_info
|
|
523
|
+
|
|
524
|
+
```ruby
|
|
525
|
+
begin
|
|
526
|
+
|
|
527
|
+
data, status_code, headers = api_instance.affiliate_controller_get_program_ledger_with_http_info
|
|
528
|
+
p status_code # => 2xx
|
|
529
|
+
p headers # => { ... }
|
|
530
|
+
p data # => nil
|
|
531
|
+
rescue Solifyn::ApiError => e
|
|
532
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_program_ledger_with_http_info: #{e}"
|
|
533
|
+
end
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
### Parameters
|
|
537
|
+
|
|
538
|
+
This endpoint does not need any parameter.
|
|
539
|
+
|
|
540
|
+
### Return type
|
|
541
|
+
|
|
542
|
+
nil (empty response body)
|
|
543
|
+
|
|
544
|
+
### Authorization
|
|
545
|
+
|
|
546
|
+
No authorization required
|
|
547
|
+
|
|
548
|
+
### HTTP request headers
|
|
549
|
+
|
|
550
|
+
- **Content-Type**: Not defined
|
|
551
|
+
- **Accept**: Not defined
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
## affiliate_controller_get_program_settings
|
|
555
|
+
|
|
556
|
+
> affiliate_controller_get_program_settings
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
### Examples
|
|
561
|
+
|
|
562
|
+
```ruby
|
|
563
|
+
require 'time'
|
|
564
|
+
require 'solifyn'
|
|
565
|
+
|
|
566
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
567
|
+
|
|
568
|
+
begin
|
|
569
|
+
|
|
570
|
+
api_instance.affiliate_controller_get_program_settings
|
|
571
|
+
rescue Solifyn::ApiError => e
|
|
572
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_program_settings: #{e}"
|
|
573
|
+
end
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
#### Using the affiliate_controller_get_program_settings_with_http_info variant
|
|
577
|
+
|
|
578
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
579
|
+
|
|
580
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_get_program_settings_with_http_info
|
|
581
|
+
|
|
582
|
+
```ruby
|
|
583
|
+
begin
|
|
584
|
+
|
|
585
|
+
data, status_code, headers = api_instance.affiliate_controller_get_program_settings_with_http_info
|
|
586
|
+
p status_code # => 2xx
|
|
587
|
+
p headers # => { ... }
|
|
588
|
+
p data # => nil
|
|
589
|
+
rescue Solifyn::ApiError => e
|
|
590
|
+
puts "Error when calling AffiliateApi->affiliate_controller_get_program_settings_with_http_info: #{e}"
|
|
591
|
+
end
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
### Parameters
|
|
595
|
+
|
|
596
|
+
This endpoint does not need any parameter.
|
|
597
|
+
|
|
598
|
+
### Return type
|
|
599
|
+
|
|
600
|
+
nil (empty response body)
|
|
601
|
+
|
|
602
|
+
### Authorization
|
|
603
|
+
|
|
604
|
+
No authorization required
|
|
605
|
+
|
|
606
|
+
### HTTP request headers
|
|
607
|
+
|
|
608
|
+
- **Content-Type**: Not defined
|
|
609
|
+
- **Accept**: Not defined
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
## affiliate_controller_join_program
|
|
613
|
+
|
|
614
|
+
> affiliate_controller_join_program
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
### Examples
|
|
619
|
+
|
|
620
|
+
```ruby
|
|
621
|
+
require 'time'
|
|
622
|
+
require 'solifyn'
|
|
623
|
+
|
|
624
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
625
|
+
|
|
626
|
+
begin
|
|
627
|
+
|
|
628
|
+
api_instance.affiliate_controller_join_program
|
|
629
|
+
rescue Solifyn::ApiError => e
|
|
630
|
+
puts "Error when calling AffiliateApi->affiliate_controller_join_program: #{e}"
|
|
631
|
+
end
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
#### Using the affiliate_controller_join_program_with_http_info variant
|
|
635
|
+
|
|
636
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
637
|
+
|
|
638
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_join_program_with_http_info
|
|
639
|
+
|
|
640
|
+
```ruby
|
|
641
|
+
begin
|
|
642
|
+
|
|
643
|
+
data, status_code, headers = api_instance.affiliate_controller_join_program_with_http_info
|
|
644
|
+
p status_code # => 2xx
|
|
645
|
+
p headers # => { ... }
|
|
646
|
+
p data # => nil
|
|
647
|
+
rescue Solifyn::ApiError => e
|
|
648
|
+
puts "Error when calling AffiliateApi->affiliate_controller_join_program_with_http_info: #{e}"
|
|
649
|
+
end
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
### Parameters
|
|
653
|
+
|
|
654
|
+
This endpoint does not need any parameter.
|
|
655
|
+
|
|
656
|
+
### Return type
|
|
657
|
+
|
|
658
|
+
nil (empty response body)
|
|
659
|
+
|
|
660
|
+
### Authorization
|
|
661
|
+
|
|
662
|
+
No authorization required
|
|
663
|
+
|
|
664
|
+
### HTTP request headers
|
|
665
|
+
|
|
666
|
+
- **Content-Type**: Not defined
|
|
667
|
+
- **Accept**: Not defined
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
## affiliate_controller_reject_connection
|
|
671
|
+
|
|
672
|
+
> affiliate_controller_reject_connection(id)
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
### Examples
|
|
677
|
+
|
|
678
|
+
```ruby
|
|
679
|
+
require 'time'
|
|
680
|
+
require 'solifyn'
|
|
681
|
+
|
|
682
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
683
|
+
id = 'id_example' # String |
|
|
684
|
+
|
|
685
|
+
begin
|
|
686
|
+
|
|
687
|
+
api_instance.affiliate_controller_reject_connection(id)
|
|
688
|
+
rescue Solifyn::ApiError => e
|
|
689
|
+
puts "Error when calling AffiliateApi->affiliate_controller_reject_connection: #{e}"
|
|
690
|
+
end
|
|
691
|
+
```
|
|
692
|
+
|
|
693
|
+
#### Using the affiliate_controller_reject_connection_with_http_info variant
|
|
694
|
+
|
|
695
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
696
|
+
|
|
697
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_reject_connection_with_http_info(id)
|
|
698
|
+
|
|
699
|
+
```ruby
|
|
700
|
+
begin
|
|
701
|
+
|
|
702
|
+
data, status_code, headers = api_instance.affiliate_controller_reject_connection_with_http_info(id)
|
|
703
|
+
p status_code # => 2xx
|
|
704
|
+
p headers # => { ... }
|
|
705
|
+
p data # => nil
|
|
706
|
+
rescue Solifyn::ApiError => e
|
|
707
|
+
puts "Error when calling AffiliateApi->affiliate_controller_reject_connection_with_http_info: #{e}"
|
|
708
|
+
end
|
|
709
|
+
```
|
|
710
|
+
|
|
711
|
+
### Parameters
|
|
712
|
+
|
|
713
|
+
| Name | Type | Description | Notes |
|
|
714
|
+
| ---- | ---- | ----------- | ----- |
|
|
715
|
+
| **id** | **String** | | |
|
|
716
|
+
|
|
717
|
+
### Return type
|
|
718
|
+
|
|
719
|
+
nil (empty response body)
|
|
720
|
+
|
|
721
|
+
### Authorization
|
|
722
|
+
|
|
723
|
+
No authorization required
|
|
724
|
+
|
|
725
|
+
### HTTP request headers
|
|
726
|
+
|
|
727
|
+
- **Content-Type**: Not defined
|
|
728
|
+
- **Accept**: Not defined
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
## affiliate_controller_save_override
|
|
732
|
+
|
|
733
|
+
> affiliate_controller_save_override
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
### Examples
|
|
738
|
+
|
|
739
|
+
```ruby
|
|
740
|
+
require 'time'
|
|
741
|
+
require 'solifyn'
|
|
742
|
+
|
|
743
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
744
|
+
|
|
745
|
+
begin
|
|
746
|
+
|
|
747
|
+
api_instance.affiliate_controller_save_override
|
|
748
|
+
rescue Solifyn::ApiError => e
|
|
749
|
+
puts "Error when calling AffiliateApi->affiliate_controller_save_override: #{e}"
|
|
750
|
+
end
|
|
751
|
+
```
|
|
752
|
+
|
|
753
|
+
#### Using the affiliate_controller_save_override_with_http_info variant
|
|
754
|
+
|
|
755
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
756
|
+
|
|
757
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_save_override_with_http_info
|
|
758
|
+
|
|
759
|
+
```ruby
|
|
760
|
+
begin
|
|
761
|
+
|
|
762
|
+
data, status_code, headers = api_instance.affiliate_controller_save_override_with_http_info
|
|
763
|
+
p status_code # => 2xx
|
|
764
|
+
p headers # => { ... }
|
|
765
|
+
p data # => nil
|
|
766
|
+
rescue Solifyn::ApiError => e
|
|
767
|
+
puts "Error when calling AffiliateApi->affiliate_controller_save_override_with_http_info: #{e}"
|
|
768
|
+
end
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
### Parameters
|
|
772
|
+
|
|
773
|
+
This endpoint does not need any parameter.
|
|
774
|
+
|
|
775
|
+
### Return type
|
|
776
|
+
|
|
777
|
+
nil (empty response body)
|
|
778
|
+
|
|
779
|
+
### Authorization
|
|
780
|
+
|
|
781
|
+
No authorization required
|
|
782
|
+
|
|
783
|
+
### HTTP request headers
|
|
784
|
+
|
|
785
|
+
- **Content-Type**: Not defined
|
|
786
|
+
- **Accept**: Not defined
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
## affiliate_controller_save_program_settings
|
|
790
|
+
|
|
791
|
+
> affiliate_controller_save_program_settings
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
### Examples
|
|
796
|
+
|
|
797
|
+
```ruby
|
|
798
|
+
require 'time'
|
|
799
|
+
require 'solifyn'
|
|
800
|
+
|
|
801
|
+
api_instance = Solifyn::AffiliateApi.new
|
|
802
|
+
|
|
803
|
+
begin
|
|
804
|
+
|
|
805
|
+
api_instance.affiliate_controller_save_program_settings
|
|
806
|
+
rescue Solifyn::ApiError => e
|
|
807
|
+
puts "Error when calling AffiliateApi->affiliate_controller_save_program_settings: #{e}"
|
|
808
|
+
end
|
|
809
|
+
```
|
|
810
|
+
|
|
811
|
+
#### Using the affiliate_controller_save_program_settings_with_http_info variant
|
|
812
|
+
|
|
813
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
814
|
+
|
|
815
|
+
> <Array(nil, Integer, Hash)> affiliate_controller_save_program_settings_with_http_info
|
|
816
|
+
|
|
817
|
+
```ruby
|
|
818
|
+
begin
|
|
819
|
+
|
|
820
|
+
data, status_code, headers = api_instance.affiliate_controller_save_program_settings_with_http_info
|
|
821
|
+
p status_code # => 2xx
|
|
822
|
+
p headers # => { ... }
|
|
823
|
+
p data # => nil
|
|
824
|
+
rescue Solifyn::ApiError => e
|
|
825
|
+
puts "Error when calling AffiliateApi->affiliate_controller_save_program_settings_with_http_info: #{e}"
|
|
826
|
+
end
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
### Parameters
|
|
830
|
+
|
|
831
|
+
This endpoint does not need any parameter.
|
|
832
|
+
|
|
833
|
+
### Return type
|
|
834
|
+
|
|
835
|
+
nil (empty response body)
|
|
836
|
+
|
|
837
|
+
### Authorization
|
|
838
|
+
|
|
839
|
+
No authorization required
|
|
840
|
+
|
|
841
|
+
### HTTP request headers
|
|
842
|
+
|
|
843
|
+
- **Content-Type**: Not defined
|
|
844
|
+
- **Accept**: Not defined
|
|
845
|
+
|