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,760 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Solifyn API
|
|
3
|
+
|
|
4
|
+
#Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage products and issue, validate, and manage software license keys programmatically.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Solifyn
|
|
16
|
+
class AffiliateApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param id [String]
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @return [nil]
|
|
25
|
+
def affiliate_controller_approve_connection(id, opts = {})
|
|
26
|
+
affiliate_controller_approve_connection_with_http_info(id, opts)
|
|
27
|
+
nil
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# @param id [String]
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
33
|
+
def affiliate_controller_approve_connection_with_http_info(id, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_approve_connection ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'id' is set
|
|
38
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AffiliateApi.affiliate_controller_approve_connection"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/v1/affiliate/program/connections/{id}/approve'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
|
|
50
|
+
# form parameters
|
|
51
|
+
form_params = opts[:form_params] || {}
|
|
52
|
+
|
|
53
|
+
# http body (model)
|
|
54
|
+
post_body = opts[:debug_body]
|
|
55
|
+
|
|
56
|
+
# return_type
|
|
57
|
+
return_type = opts[:debug_return_type]
|
|
58
|
+
|
|
59
|
+
# auth_names
|
|
60
|
+
auth_names = opts[:debug_auth_names] || []
|
|
61
|
+
|
|
62
|
+
new_options = opts.merge(
|
|
63
|
+
:operation => :"AffiliateApi.affiliate_controller_approve_connection",
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
73
|
+
if @api_client.config.debugging
|
|
74
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_approve_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
75
|
+
end
|
|
76
|
+
return data, status_code, headers
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# @param id [String]
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @return [nil]
|
|
82
|
+
def affiliate_controller_archive_connection(id, opts = {})
|
|
83
|
+
affiliate_controller_archive_connection_with_http_info(id, opts)
|
|
84
|
+
nil
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# @param id [String]
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
90
|
+
def affiliate_controller_archive_connection_with_http_info(id, opts = {})
|
|
91
|
+
if @api_client.config.debugging
|
|
92
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_archive_connection ...'
|
|
93
|
+
end
|
|
94
|
+
# verify the required parameter 'id' is set
|
|
95
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
96
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AffiliateApi.affiliate_controller_archive_connection"
|
|
97
|
+
end
|
|
98
|
+
# resource path
|
|
99
|
+
local_var_path = '/v1/affiliate/program/connections/{id}/archive'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
100
|
+
|
|
101
|
+
# query parameters
|
|
102
|
+
query_params = opts[:query_params] || {}
|
|
103
|
+
|
|
104
|
+
# header parameters
|
|
105
|
+
header_params = opts[:header_params] || {}
|
|
106
|
+
|
|
107
|
+
# form parameters
|
|
108
|
+
form_params = opts[:form_params] || {}
|
|
109
|
+
|
|
110
|
+
# http body (model)
|
|
111
|
+
post_body = opts[:debug_body]
|
|
112
|
+
|
|
113
|
+
# return_type
|
|
114
|
+
return_type = opts[:debug_return_type]
|
|
115
|
+
|
|
116
|
+
# auth_names
|
|
117
|
+
auth_names = opts[:debug_auth_names] || []
|
|
118
|
+
|
|
119
|
+
new_options = opts.merge(
|
|
120
|
+
:operation => :"AffiliateApi.affiliate_controller_archive_connection",
|
|
121
|
+
:header_params => header_params,
|
|
122
|
+
:query_params => query_params,
|
|
123
|
+
:form_params => form_params,
|
|
124
|
+
:body => post_body,
|
|
125
|
+
:auth_names => auth_names,
|
|
126
|
+
:return_type => return_type
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
130
|
+
if @api_client.config.debugging
|
|
131
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_archive_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# @param id [String]
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [nil]
|
|
139
|
+
def affiliate_controller_delete_override(id, opts = {})
|
|
140
|
+
affiliate_controller_delete_override_with_http_info(id, opts)
|
|
141
|
+
nil
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# @param id [String]
|
|
145
|
+
# @param [Hash] opts the optional parameters
|
|
146
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
147
|
+
def affiliate_controller_delete_override_with_http_info(id, opts = {})
|
|
148
|
+
if @api_client.config.debugging
|
|
149
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_delete_override ...'
|
|
150
|
+
end
|
|
151
|
+
# verify the required parameter 'id' is set
|
|
152
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
153
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AffiliateApi.affiliate_controller_delete_override"
|
|
154
|
+
end
|
|
155
|
+
# resource path
|
|
156
|
+
local_var_path = '/v1/affiliate/program/override/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
157
|
+
|
|
158
|
+
# query parameters
|
|
159
|
+
query_params = opts[:query_params] || {}
|
|
160
|
+
|
|
161
|
+
# header parameters
|
|
162
|
+
header_params = opts[:header_params] || {}
|
|
163
|
+
|
|
164
|
+
# form parameters
|
|
165
|
+
form_params = opts[:form_params] || {}
|
|
166
|
+
|
|
167
|
+
# http body (model)
|
|
168
|
+
post_body = opts[:debug_body]
|
|
169
|
+
|
|
170
|
+
# return_type
|
|
171
|
+
return_type = opts[:debug_return_type]
|
|
172
|
+
|
|
173
|
+
# auth_names
|
|
174
|
+
auth_names = opts[:debug_auth_names] || []
|
|
175
|
+
|
|
176
|
+
new_options = opts.merge(
|
|
177
|
+
:operation => :"AffiliateApi.affiliate_controller_delete_override",
|
|
178
|
+
:header_params => header_params,
|
|
179
|
+
:query_params => query_params,
|
|
180
|
+
:form_params => form_params,
|
|
181
|
+
:body => post_body,
|
|
182
|
+
:auth_names => auth_names,
|
|
183
|
+
:return_type => return_type
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_delete_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# @param [Hash] opts the optional parameters
|
|
194
|
+
# @return [nil]
|
|
195
|
+
def affiliate_controller_get_earnings_connections(opts = {})
|
|
196
|
+
affiliate_controller_get_earnings_connections_with_http_info(opts)
|
|
197
|
+
nil
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# @param [Hash] opts the optional parameters
|
|
201
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
202
|
+
def affiliate_controller_get_earnings_connections_with_http_info(opts = {})
|
|
203
|
+
if @api_client.config.debugging
|
|
204
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_get_earnings_connections ...'
|
|
205
|
+
end
|
|
206
|
+
# resource path
|
|
207
|
+
local_var_path = '/v1/affiliate/earnings/connections'
|
|
208
|
+
|
|
209
|
+
# query parameters
|
|
210
|
+
query_params = opts[:query_params] || {}
|
|
211
|
+
|
|
212
|
+
# header parameters
|
|
213
|
+
header_params = opts[:header_params] || {}
|
|
214
|
+
|
|
215
|
+
# form parameters
|
|
216
|
+
form_params = opts[:form_params] || {}
|
|
217
|
+
|
|
218
|
+
# http body (model)
|
|
219
|
+
post_body = opts[:debug_body]
|
|
220
|
+
|
|
221
|
+
# return_type
|
|
222
|
+
return_type = opts[:debug_return_type]
|
|
223
|
+
|
|
224
|
+
# auth_names
|
|
225
|
+
auth_names = opts[:debug_auth_names] || []
|
|
226
|
+
|
|
227
|
+
new_options = opts.merge(
|
|
228
|
+
:operation => :"AffiliateApi.affiliate_controller_get_earnings_connections",
|
|
229
|
+
:header_params => header_params,
|
|
230
|
+
:query_params => query_params,
|
|
231
|
+
:form_params => form_params,
|
|
232
|
+
:body => post_body,
|
|
233
|
+
:auth_names => auth_names,
|
|
234
|
+
:return_type => return_type
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
238
|
+
if @api_client.config.debugging
|
|
239
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_get_earnings_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
240
|
+
end
|
|
241
|
+
return data, status_code, headers
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# @param [Hash] opts the optional parameters
|
|
245
|
+
# @return [nil]
|
|
246
|
+
def affiliate_controller_get_earnings_ledger(opts = {})
|
|
247
|
+
affiliate_controller_get_earnings_ledger_with_http_info(opts)
|
|
248
|
+
nil
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# @param [Hash] opts the optional parameters
|
|
252
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
253
|
+
def affiliate_controller_get_earnings_ledger_with_http_info(opts = {})
|
|
254
|
+
if @api_client.config.debugging
|
|
255
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_get_earnings_ledger ...'
|
|
256
|
+
end
|
|
257
|
+
# resource path
|
|
258
|
+
local_var_path = '/v1/affiliate/earnings/ledger'
|
|
259
|
+
|
|
260
|
+
# query parameters
|
|
261
|
+
query_params = opts[:query_params] || {}
|
|
262
|
+
|
|
263
|
+
# header parameters
|
|
264
|
+
header_params = opts[:header_params] || {}
|
|
265
|
+
|
|
266
|
+
# form parameters
|
|
267
|
+
form_params = opts[:form_params] || {}
|
|
268
|
+
|
|
269
|
+
# http body (model)
|
|
270
|
+
post_body = opts[:debug_body]
|
|
271
|
+
|
|
272
|
+
# return_type
|
|
273
|
+
return_type = opts[:debug_return_type]
|
|
274
|
+
|
|
275
|
+
# auth_names
|
|
276
|
+
auth_names = opts[:debug_auth_names] || []
|
|
277
|
+
|
|
278
|
+
new_options = opts.merge(
|
|
279
|
+
:operation => :"AffiliateApi.affiliate_controller_get_earnings_ledger",
|
|
280
|
+
:header_params => header_params,
|
|
281
|
+
:query_params => query_params,
|
|
282
|
+
:form_params => form_params,
|
|
283
|
+
:body => post_body,
|
|
284
|
+
:auth_names => auth_names,
|
|
285
|
+
:return_type => return_type
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
289
|
+
if @api_client.config.debugging
|
|
290
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_get_earnings_ledger\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
291
|
+
end
|
|
292
|
+
return data, status_code, headers
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# @param [Hash] opts the optional parameters
|
|
296
|
+
# @return [nil]
|
|
297
|
+
def affiliate_controller_get_earnings_stats(opts = {})
|
|
298
|
+
affiliate_controller_get_earnings_stats_with_http_info(opts)
|
|
299
|
+
nil
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# @param [Hash] opts the optional parameters
|
|
303
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
304
|
+
def affiliate_controller_get_earnings_stats_with_http_info(opts = {})
|
|
305
|
+
if @api_client.config.debugging
|
|
306
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_get_earnings_stats ...'
|
|
307
|
+
end
|
|
308
|
+
# resource path
|
|
309
|
+
local_var_path = '/v1/affiliate/earnings/stats'
|
|
310
|
+
|
|
311
|
+
# query parameters
|
|
312
|
+
query_params = opts[:query_params] || {}
|
|
313
|
+
|
|
314
|
+
# header parameters
|
|
315
|
+
header_params = opts[:header_params] || {}
|
|
316
|
+
|
|
317
|
+
# form parameters
|
|
318
|
+
form_params = opts[:form_params] || {}
|
|
319
|
+
|
|
320
|
+
# http body (model)
|
|
321
|
+
post_body = opts[:debug_body]
|
|
322
|
+
|
|
323
|
+
# return_type
|
|
324
|
+
return_type = opts[:debug_return_type]
|
|
325
|
+
|
|
326
|
+
# auth_names
|
|
327
|
+
auth_names = opts[:debug_auth_names] || []
|
|
328
|
+
|
|
329
|
+
new_options = opts.merge(
|
|
330
|
+
:operation => :"AffiliateApi.affiliate_controller_get_earnings_stats",
|
|
331
|
+
:header_params => header_params,
|
|
332
|
+
:query_params => query_params,
|
|
333
|
+
:form_params => form_params,
|
|
334
|
+
:body => post_body,
|
|
335
|
+
:auth_names => auth_names,
|
|
336
|
+
:return_type => return_type
|
|
337
|
+
)
|
|
338
|
+
|
|
339
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
340
|
+
if @api_client.config.debugging
|
|
341
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_get_earnings_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
342
|
+
end
|
|
343
|
+
return data, status_code, headers
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# @param [Hash] opts the optional parameters
|
|
347
|
+
# @return [nil]
|
|
348
|
+
def affiliate_controller_get_marketplace(opts = {})
|
|
349
|
+
affiliate_controller_get_marketplace_with_http_info(opts)
|
|
350
|
+
nil
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# @param [Hash] opts the optional parameters
|
|
354
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
355
|
+
def affiliate_controller_get_marketplace_with_http_info(opts = {})
|
|
356
|
+
if @api_client.config.debugging
|
|
357
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_get_marketplace ...'
|
|
358
|
+
end
|
|
359
|
+
# resource path
|
|
360
|
+
local_var_path = '/v1/affiliate/marketplace'
|
|
361
|
+
|
|
362
|
+
# query parameters
|
|
363
|
+
query_params = opts[:query_params] || {}
|
|
364
|
+
|
|
365
|
+
# header parameters
|
|
366
|
+
header_params = opts[:header_params] || {}
|
|
367
|
+
|
|
368
|
+
# form parameters
|
|
369
|
+
form_params = opts[:form_params] || {}
|
|
370
|
+
|
|
371
|
+
# http body (model)
|
|
372
|
+
post_body = opts[:debug_body]
|
|
373
|
+
|
|
374
|
+
# return_type
|
|
375
|
+
return_type = opts[:debug_return_type]
|
|
376
|
+
|
|
377
|
+
# auth_names
|
|
378
|
+
auth_names = opts[:debug_auth_names] || []
|
|
379
|
+
|
|
380
|
+
new_options = opts.merge(
|
|
381
|
+
:operation => :"AffiliateApi.affiliate_controller_get_marketplace",
|
|
382
|
+
:header_params => header_params,
|
|
383
|
+
:query_params => query_params,
|
|
384
|
+
:form_params => form_params,
|
|
385
|
+
:body => post_body,
|
|
386
|
+
:auth_names => auth_names,
|
|
387
|
+
:return_type => return_type
|
|
388
|
+
)
|
|
389
|
+
|
|
390
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
391
|
+
if @api_client.config.debugging
|
|
392
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_get_marketplace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
393
|
+
end
|
|
394
|
+
return data, status_code, headers
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# @param [Hash] opts the optional parameters
|
|
398
|
+
# @return [nil]
|
|
399
|
+
def affiliate_controller_get_program_connections(opts = {})
|
|
400
|
+
affiliate_controller_get_program_connections_with_http_info(opts)
|
|
401
|
+
nil
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
# @param [Hash] opts the optional parameters
|
|
405
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
406
|
+
def affiliate_controller_get_program_connections_with_http_info(opts = {})
|
|
407
|
+
if @api_client.config.debugging
|
|
408
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_get_program_connections ...'
|
|
409
|
+
end
|
|
410
|
+
# resource path
|
|
411
|
+
local_var_path = '/v1/affiliate/program/connections'
|
|
412
|
+
|
|
413
|
+
# query parameters
|
|
414
|
+
query_params = opts[:query_params] || {}
|
|
415
|
+
|
|
416
|
+
# header parameters
|
|
417
|
+
header_params = opts[:header_params] || {}
|
|
418
|
+
|
|
419
|
+
# form parameters
|
|
420
|
+
form_params = opts[:form_params] || {}
|
|
421
|
+
|
|
422
|
+
# http body (model)
|
|
423
|
+
post_body = opts[:debug_body]
|
|
424
|
+
|
|
425
|
+
# return_type
|
|
426
|
+
return_type = opts[:debug_return_type]
|
|
427
|
+
|
|
428
|
+
# auth_names
|
|
429
|
+
auth_names = opts[:debug_auth_names] || []
|
|
430
|
+
|
|
431
|
+
new_options = opts.merge(
|
|
432
|
+
:operation => :"AffiliateApi.affiliate_controller_get_program_connections",
|
|
433
|
+
:header_params => header_params,
|
|
434
|
+
:query_params => query_params,
|
|
435
|
+
:form_params => form_params,
|
|
436
|
+
:body => post_body,
|
|
437
|
+
:auth_names => auth_names,
|
|
438
|
+
:return_type => return_type
|
|
439
|
+
)
|
|
440
|
+
|
|
441
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
442
|
+
if @api_client.config.debugging
|
|
443
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_get_program_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
444
|
+
end
|
|
445
|
+
return data, status_code, headers
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
# @param [Hash] opts the optional parameters
|
|
449
|
+
# @return [nil]
|
|
450
|
+
def affiliate_controller_get_program_ledger(opts = {})
|
|
451
|
+
affiliate_controller_get_program_ledger_with_http_info(opts)
|
|
452
|
+
nil
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# @param [Hash] opts the optional parameters
|
|
456
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
457
|
+
def affiliate_controller_get_program_ledger_with_http_info(opts = {})
|
|
458
|
+
if @api_client.config.debugging
|
|
459
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_get_program_ledger ...'
|
|
460
|
+
end
|
|
461
|
+
# resource path
|
|
462
|
+
local_var_path = '/v1/affiliate/program/ledger'
|
|
463
|
+
|
|
464
|
+
# query parameters
|
|
465
|
+
query_params = opts[:query_params] || {}
|
|
466
|
+
|
|
467
|
+
# header parameters
|
|
468
|
+
header_params = opts[:header_params] || {}
|
|
469
|
+
|
|
470
|
+
# form parameters
|
|
471
|
+
form_params = opts[:form_params] || {}
|
|
472
|
+
|
|
473
|
+
# http body (model)
|
|
474
|
+
post_body = opts[:debug_body]
|
|
475
|
+
|
|
476
|
+
# return_type
|
|
477
|
+
return_type = opts[:debug_return_type]
|
|
478
|
+
|
|
479
|
+
# auth_names
|
|
480
|
+
auth_names = opts[:debug_auth_names] || []
|
|
481
|
+
|
|
482
|
+
new_options = opts.merge(
|
|
483
|
+
:operation => :"AffiliateApi.affiliate_controller_get_program_ledger",
|
|
484
|
+
:header_params => header_params,
|
|
485
|
+
:query_params => query_params,
|
|
486
|
+
:form_params => form_params,
|
|
487
|
+
:body => post_body,
|
|
488
|
+
:auth_names => auth_names,
|
|
489
|
+
:return_type => return_type
|
|
490
|
+
)
|
|
491
|
+
|
|
492
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
493
|
+
if @api_client.config.debugging
|
|
494
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_get_program_ledger\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
495
|
+
end
|
|
496
|
+
return data, status_code, headers
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
# @param [Hash] opts the optional parameters
|
|
500
|
+
# @return [nil]
|
|
501
|
+
def affiliate_controller_get_program_settings(opts = {})
|
|
502
|
+
affiliate_controller_get_program_settings_with_http_info(opts)
|
|
503
|
+
nil
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
# @param [Hash] opts the optional parameters
|
|
507
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
508
|
+
def affiliate_controller_get_program_settings_with_http_info(opts = {})
|
|
509
|
+
if @api_client.config.debugging
|
|
510
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_get_program_settings ...'
|
|
511
|
+
end
|
|
512
|
+
# resource path
|
|
513
|
+
local_var_path = '/v1/affiliate/program/settings'
|
|
514
|
+
|
|
515
|
+
# query parameters
|
|
516
|
+
query_params = opts[:query_params] || {}
|
|
517
|
+
|
|
518
|
+
# header parameters
|
|
519
|
+
header_params = opts[:header_params] || {}
|
|
520
|
+
|
|
521
|
+
# form parameters
|
|
522
|
+
form_params = opts[:form_params] || {}
|
|
523
|
+
|
|
524
|
+
# http body (model)
|
|
525
|
+
post_body = opts[:debug_body]
|
|
526
|
+
|
|
527
|
+
# return_type
|
|
528
|
+
return_type = opts[:debug_return_type]
|
|
529
|
+
|
|
530
|
+
# auth_names
|
|
531
|
+
auth_names = opts[:debug_auth_names] || []
|
|
532
|
+
|
|
533
|
+
new_options = opts.merge(
|
|
534
|
+
:operation => :"AffiliateApi.affiliate_controller_get_program_settings",
|
|
535
|
+
:header_params => header_params,
|
|
536
|
+
:query_params => query_params,
|
|
537
|
+
:form_params => form_params,
|
|
538
|
+
:body => post_body,
|
|
539
|
+
:auth_names => auth_names,
|
|
540
|
+
:return_type => return_type
|
|
541
|
+
)
|
|
542
|
+
|
|
543
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
544
|
+
if @api_client.config.debugging
|
|
545
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_get_program_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
546
|
+
end
|
|
547
|
+
return data, status_code, headers
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# @param [Hash] opts the optional parameters
|
|
551
|
+
# @return [nil]
|
|
552
|
+
def affiliate_controller_join_program(opts = {})
|
|
553
|
+
affiliate_controller_join_program_with_http_info(opts)
|
|
554
|
+
nil
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
# @param [Hash] opts the optional parameters
|
|
558
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
559
|
+
def affiliate_controller_join_program_with_http_info(opts = {})
|
|
560
|
+
if @api_client.config.debugging
|
|
561
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_join_program ...'
|
|
562
|
+
end
|
|
563
|
+
# resource path
|
|
564
|
+
local_var_path = '/v1/affiliate/marketplace/join'
|
|
565
|
+
|
|
566
|
+
# query parameters
|
|
567
|
+
query_params = opts[:query_params] || {}
|
|
568
|
+
|
|
569
|
+
# header parameters
|
|
570
|
+
header_params = opts[:header_params] || {}
|
|
571
|
+
|
|
572
|
+
# form parameters
|
|
573
|
+
form_params = opts[:form_params] || {}
|
|
574
|
+
|
|
575
|
+
# http body (model)
|
|
576
|
+
post_body = opts[:debug_body]
|
|
577
|
+
|
|
578
|
+
# return_type
|
|
579
|
+
return_type = opts[:debug_return_type]
|
|
580
|
+
|
|
581
|
+
# auth_names
|
|
582
|
+
auth_names = opts[:debug_auth_names] || []
|
|
583
|
+
|
|
584
|
+
new_options = opts.merge(
|
|
585
|
+
:operation => :"AffiliateApi.affiliate_controller_join_program",
|
|
586
|
+
:header_params => header_params,
|
|
587
|
+
:query_params => query_params,
|
|
588
|
+
:form_params => form_params,
|
|
589
|
+
:body => post_body,
|
|
590
|
+
:auth_names => auth_names,
|
|
591
|
+
:return_type => return_type
|
|
592
|
+
)
|
|
593
|
+
|
|
594
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
595
|
+
if @api_client.config.debugging
|
|
596
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_join_program\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
597
|
+
end
|
|
598
|
+
return data, status_code, headers
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# @param id [String]
|
|
602
|
+
# @param [Hash] opts the optional parameters
|
|
603
|
+
# @return [nil]
|
|
604
|
+
def affiliate_controller_reject_connection(id, opts = {})
|
|
605
|
+
affiliate_controller_reject_connection_with_http_info(id, opts)
|
|
606
|
+
nil
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
# @param id [String]
|
|
610
|
+
# @param [Hash] opts the optional parameters
|
|
611
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
612
|
+
def affiliate_controller_reject_connection_with_http_info(id, opts = {})
|
|
613
|
+
if @api_client.config.debugging
|
|
614
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_reject_connection ...'
|
|
615
|
+
end
|
|
616
|
+
# verify the required parameter 'id' is set
|
|
617
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
618
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AffiliateApi.affiliate_controller_reject_connection"
|
|
619
|
+
end
|
|
620
|
+
# resource path
|
|
621
|
+
local_var_path = '/v1/affiliate/program/connections/{id}/reject'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
622
|
+
|
|
623
|
+
# query parameters
|
|
624
|
+
query_params = opts[:query_params] || {}
|
|
625
|
+
|
|
626
|
+
# header parameters
|
|
627
|
+
header_params = opts[:header_params] || {}
|
|
628
|
+
|
|
629
|
+
# form parameters
|
|
630
|
+
form_params = opts[:form_params] || {}
|
|
631
|
+
|
|
632
|
+
# http body (model)
|
|
633
|
+
post_body = opts[:debug_body]
|
|
634
|
+
|
|
635
|
+
# return_type
|
|
636
|
+
return_type = opts[:debug_return_type]
|
|
637
|
+
|
|
638
|
+
# auth_names
|
|
639
|
+
auth_names = opts[:debug_auth_names] || []
|
|
640
|
+
|
|
641
|
+
new_options = opts.merge(
|
|
642
|
+
:operation => :"AffiliateApi.affiliate_controller_reject_connection",
|
|
643
|
+
:header_params => header_params,
|
|
644
|
+
:query_params => query_params,
|
|
645
|
+
:form_params => form_params,
|
|
646
|
+
:body => post_body,
|
|
647
|
+
:auth_names => auth_names,
|
|
648
|
+
:return_type => return_type
|
|
649
|
+
)
|
|
650
|
+
|
|
651
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
652
|
+
if @api_client.config.debugging
|
|
653
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_reject_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
654
|
+
end
|
|
655
|
+
return data, status_code, headers
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
# @param [Hash] opts the optional parameters
|
|
659
|
+
# @return [nil]
|
|
660
|
+
def affiliate_controller_save_override(opts = {})
|
|
661
|
+
affiliate_controller_save_override_with_http_info(opts)
|
|
662
|
+
nil
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
# @param [Hash] opts the optional parameters
|
|
666
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
667
|
+
def affiliate_controller_save_override_with_http_info(opts = {})
|
|
668
|
+
if @api_client.config.debugging
|
|
669
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_save_override ...'
|
|
670
|
+
end
|
|
671
|
+
# resource path
|
|
672
|
+
local_var_path = '/v1/affiliate/program/override'
|
|
673
|
+
|
|
674
|
+
# query parameters
|
|
675
|
+
query_params = opts[:query_params] || {}
|
|
676
|
+
|
|
677
|
+
# header parameters
|
|
678
|
+
header_params = opts[:header_params] || {}
|
|
679
|
+
|
|
680
|
+
# form parameters
|
|
681
|
+
form_params = opts[:form_params] || {}
|
|
682
|
+
|
|
683
|
+
# http body (model)
|
|
684
|
+
post_body = opts[:debug_body]
|
|
685
|
+
|
|
686
|
+
# return_type
|
|
687
|
+
return_type = opts[:debug_return_type]
|
|
688
|
+
|
|
689
|
+
# auth_names
|
|
690
|
+
auth_names = opts[:debug_auth_names] || []
|
|
691
|
+
|
|
692
|
+
new_options = opts.merge(
|
|
693
|
+
:operation => :"AffiliateApi.affiliate_controller_save_override",
|
|
694
|
+
:header_params => header_params,
|
|
695
|
+
:query_params => query_params,
|
|
696
|
+
:form_params => form_params,
|
|
697
|
+
:body => post_body,
|
|
698
|
+
:auth_names => auth_names,
|
|
699
|
+
:return_type => return_type
|
|
700
|
+
)
|
|
701
|
+
|
|
702
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
703
|
+
if @api_client.config.debugging
|
|
704
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_save_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
705
|
+
end
|
|
706
|
+
return data, status_code, headers
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
# @param [Hash] opts the optional parameters
|
|
710
|
+
# @return [nil]
|
|
711
|
+
def affiliate_controller_save_program_settings(opts = {})
|
|
712
|
+
affiliate_controller_save_program_settings_with_http_info(opts)
|
|
713
|
+
nil
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
# @param [Hash] opts the optional parameters
|
|
717
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
718
|
+
def affiliate_controller_save_program_settings_with_http_info(opts = {})
|
|
719
|
+
if @api_client.config.debugging
|
|
720
|
+
@api_client.config.logger.debug 'Calling API: AffiliateApi.affiliate_controller_save_program_settings ...'
|
|
721
|
+
end
|
|
722
|
+
# resource path
|
|
723
|
+
local_var_path = '/v1/affiliate/program/settings'
|
|
724
|
+
|
|
725
|
+
# query parameters
|
|
726
|
+
query_params = opts[:query_params] || {}
|
|
727
|
+
|
|
728
|
+
# header parameters
|
|
729
|
+
header_params = opts[:header_params] || {}
|
|
730
|
+
|
|
731
|
+
# form parameters
|
|
732
|
+
form_params = opts[:form_params] || {}
|
|
733
|
+
|
|
734
|
+
# http body (model)
|
|
735
|
+
post_body = opts[:debug_body]
|
|
736
|
+
|
|
737
|
+
# return_type
|
|
738
|
+
return_type = opts[:debug_return_type]
|
|
739
|
+
|
|
740
|
+
# auth_names
|
|
741
|
+
auth_names = opts[:debug_auth_names] || []
|
|
742
|
+
|
|
743
|
+
new_options = opts.merge(
|
|
744
|
+
:operation => :"AffiliateApi.affiliate_controller_save_program_settings",
|
|
745
|
+
:header_params => header_params,
|
|
746
|
+
:query_params => query_params,
|
|
747
|
+
:form_params => form_params,
|
|
748
|
+
:body => post_body,
|
|
749
|
+
:auth_names => auth_names,
|
|
750
|
+
:return_type => return_type
|
|
751
|
+
)
|
|
752
|
+
|
|
753
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
754
|
+
if @api_client.config.debugging
|
|
755
|
+
@api_client.config.logger.debug "API called: AffiliateApi#affiliate_controller_save_program_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
756
|
+
end
|
|
757
|
+
return data, status_code, headers
|
|
758
|
+
end
|
|
759
|
+
end
|
|
760
|
+
end
|