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
|
@@ -205,254 +205,6 @@ module Solifyn
|
|
|
205
205
|
return data, status_code, headers
|
|
206
206
|
end
|
|
207
207
|
|
|
208
|
-
# Entitlement Grant Created
|
|
209
|
-
# Occurs when a new entitlement grant is created (e.g., at checkout completion if the product has GitHub access). The collaborator invitation is pending.
|
|
210
|
-
# @param [Hash] opts the optional parameters
|
|
211
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
212
|
-
# @return [nil]
|
|
213
|
-
def entitlement_grant_created_post(opts = {})
|
|
214
|
-
entitlement_grant_created_post_with_http_info(opts)
|
|
215
|
-
nil
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
# Entitlement Grant Created
|
|
219
|
-
# Occurs when a new entitlement grant is created (e.g., at checkout completion if the product has GitHub access). The collaborator invitation is pending.
|
|
220
|
-
# @param [Hash] opts the optional parameters
|
|
221
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
222
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
223
|
-
def entitlement_grant_created_post_with_http_info(opts = {})
|
|
224
|
-
if @api_client.config.debugging
|
|
225
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.entitlement_grant_created_post ...'
|
|
226
|
-
end
|
|
227
|
-
# resource path
|
|
228
|
-
local_var_path = '/entitlement_grant.created'
|
|
229
|
-
|
|
230
|
-
# query parameters
|
|
231
|
-
query_params = opts[:query_params] || {}
|
|
232
|
-
|
|
233
|
-
# header parameters
|
|
234
|
-
header_params = opts[:header_params] || {}
|
|
235
|
-
# HTTP header 'Content-Type'
|
|
236
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
237
|
-
if !content_type.nil?
|
|
238
|
-
header_params['Content-Type'] = content_type
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
# form parameters
|
|
242
|
-
form_params = opts[:form_params] || {}
|
|
243
|
-
|
|
244
|
-
# http body (model)
|
|
245
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_entitlement_grant_payload'])
|
|
246
|
-
|
|
247
|
-
# return_type
|
|
248
|
-
return_type = opts[:debug_return_type]
|
|
249
|
-
|
|
250
|
-
# auth_names
|
|
251
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
252
|
-
|
|
253
|
-
new_options = opts.merge(
|
|
254
|
-
:operation => :"DefaultApi.entitlement_grant_created_post",
|
|
255
|
-
:header_params => header_params,
|
|
256
|
-
:query_params => query_params,
|
|
257
|
-
:form_params => form_params,
|
|
258
|
-
:body => post_body,
|
|
259
|
-
:auth_names => auth_names,
|
|
260
|
-
:return_type => return_type
|
|
261
|
-
)
|
|
262
|
-
|
|
263
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
264
|
-
if @api_client.config.debugging
|
|
265
|
-
@api_client.config.logger.debug "API called: DefaultApi#entitlement_grant_created_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
266
|
-
end
|
|
267
|
-
return data, status_code, headers
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
# Entitlement Grant Delivered
|
|
271
|
-
# Occurs when the customer successfully connects their GitHub account and the collaborator invitation is successfully delivered.
|
|
272
|
-
# @param [Hash] opts the optional parameters
|
|
273
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
274
|
-
# @return [nil]
|
|
275
|
-
def entitlement_grant_delivered_post(opts = {})
|
|
276
|
-
entitlement_grant_delivered_post_with_http_info(opts)
|
|
277
|
-
nil
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
# Entitlement Grant Delivered
|
|
281
|
-
# Occurs when the customer successfully connects their GitHub account and the collaborator invitation is successfully delivered.
|
|
282
|
-
# @param [Hash] opts the optional parameters
|
|
283
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
284
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
285
|
-
def entitlement_grant_delivered_post_with_http_info(opts = {})
|
|
286
|
-
if @api_client.config.debugging
|
|
287
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.entitlement_grant_delivered_post ...'
|
|
288
|
-
end
|
|
289
|
-
# resource path
|
|
290
|
-
local_var_path = '/entitlement_grant.delivered'
|
|
291
|
-
|
|
292
|
-
# query parameters
|
|
293
|
-
query_params = opts[:query_params] || {}
|
|
294
|
-
|
|
295
|
-
# header parameters
|
|
296
|
-
header_params = opts[:header_params] || {}
|
|
297
|
-
# HTTP header 'Content-Type'
|
|
298
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
299
|
-
if !content_type.nil?
|
|
300
|
-
header_params['Content-Type'] = content_type
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
# form parameters
|
|
304
|
-
form_params = opts[:form_params] || {}
|
|
305
|
-
|
|
306
|
-
# http body (model)
|
|
307
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_entitlement_grant_payload'])
|
|
308
|
-
|
|
309
|
-
# return_type
|
|
310
|
-
return_type = opts[:debug_return_type]
|
|
311
|
-
|
|
312
|
-
# auth_names
|
|
313
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
314
|
-
|
|
315
|
-
new_options = opts.merge(
|
|
316
|
-
:operation => :"DefaultApi.entitlement_grant_delivered_post",
|
|
317
|
-
:header_params => header_params,
|
|
318
|
-
:query_params => query_params,
|
|
319
|
-
:form_params => form_params,
|
|
320
|
-
:body => post_body,
|
|
321
|
-
:auth_names => auth_names,
|
|
322
|
-
:return_type => return_type
|
|
323
|
-
)
|
|
324
|
-
|
|
325
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
326
|
-
if @api_client.config.debugging
|
|
327
|
-
@api_client.config.logger.debug "API called: DefaultApi#entitlement_grant_delivered_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
328
|
-
end
|
|
329
|
-
return data, status_code, headers
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
# Entitlement Grant Failed
|
|
333
|
-
# Occurs when invitation delivery fails (e.g., if the user GitHub account is flagged or invitation limit is reached).
|
|
334
|
-
# @param [Hash] opts the optional parameters
|
|
335
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
336
|
-
# @return [nil]
|
|
337
|
-
def entitlement_grant_failed_post(opts = {})
|
|
338
|
-
entitlement_grant_failed_post_with_http_info(opts)
|
|
339
|
-
nil
|
|
340
|
-
end
|
|
341
|
-
|
|
342
|
-
# Entitlement Grant Failed
|
|
343
|
-
# Occurs when invitation delivery fails (e.g., if the user GitHub account is flagged or invitation limit is reached).
|
|
344
|
-
# @param [Hash] opts the optional parameters
|
|
345
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
346
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
347
|
-
def entitlement_grant_failed_post_with_http_info(opts = {})
|
|
348
|
-
if @api_client.config.debugging
|
|
349
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.entitlement_grant_failed_post ...'
|
|
350
|
-
end
|
|
351
|
-
# resource path
|
|
352
|
-
local_var_path = '/entitlement_grant.failed'
|
|
353
|
-
|
|
354
|
-
# query parameters
|
|
355
|
-
query_params = opts[:query_params] || {}
|
|
356
|
-
|
|
357
|
-
# header parameters
|
|
358
|
-
header_params = opts[:header_params] || {}
|
|
359
|
-
# HTTP header 'Content-Type'
|
|
360
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
361
|
-
if !content_type.nil?
|
|
362
|
-
header_params['Content-Type'] = content_type
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
# form parameters
|
|
366
|
-
form_params = opts[:form_params] || {}
|
|
367
|
-
|
|
368
|
-
# http body (model)
|
|
369
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_entitlement_grant_payload'])
|
|
370
|
-
|
|
371
|
-
# return_type
|
|
372
|
-
return_type = opts[:debug_return_type]
|
|
373
|
-
|
|
374
|
-
# auth_names
|
|
375
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
376
|
-
|
|
377
|
-
new_options = opts.merge(
|
|
378
|
-
:operation => :"DefaultApi.entitlement_grant_failed_post",
|
|
379
|
-
:header_params => header_params,
|
|
380
|
-
:query_params => query_params,
|
|
381
|
-
:form_params => form_params,
|
|
382
|
-
:body => post_body,
|
|
383
|
-
:auth_names => auth_names,
|
|
384
|
-
:return_type => return_type
|
|
385
|
-
)
|
|
386
|
-
|
|
387
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
388
|
-
if @api_client.config.debugging
|
|
389
|
-
@api_client.config.logger.debug "API called: DefaultApi#entitlement_grant_failed_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
390
|
-
end
|
|
391
|
-
return data, status_code, headers
|
|
392
|
-
end
|
|
393
|
-
|
|
394
|
-
# Entitlement Grant Revoked
|
|
395
|
-
# Occurs when the customer access is removed from the repository (manually or automatically via subscription cancel/refund).
|
|
396
|
-
# @param [Hash] opts the optional parameters
|
|
397
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
398
|
-
# @return [nil]
|
|
399
|
-
def entitlement_grant_revoked_post(opts = {})
|
|
400
|
-
entitlement_grant_revoked_post_with_http_info(opts)
|
|
401
|
-
nil
|
|
402
|
-
end
|
|
403
|
-
|
|
404
|
-
# Entitlement Grant Revoked
|
|
405
|
-
# Occurs when the customer access is removed from the repository (manually or automatically via subscription cancel/refund).
|
|
406
|
-
# @param [Hash] opts the optional parameters
|
|
407
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
408
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
409
|
-
def entitlement_grant_revoked_post_with_http_info(opts = {})
|
|
410
|
-
if @api_client.config.debugging
|
|
411
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.entitlement_grant_revoked_post ...'
|
|
412
|
-
end
|
|
413
|
-
# resource path
|
|
414
|
-
local_var_path = '/entitlement_grant.revoked'
|
|
415
|
-
|
|
416
|
-
# query parameters
|
|
417
|
-
query_params = opts[:query_params] || {}
|
|
418
|
-
|
|
419
|
-
# header parameters
|
|
420
|
-
header_params = opts[:header_params] || {}
|
|
421
|
-
# HTTP header 'Content-Type'
|
|
422
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
423
|
-
if !content_type.nil?
|
|
424
|
-
header_params['Content-Type'] = content_type
|
|
425
|
-
end
|
|
426
|
-
|
|
427
|
-
# form parameters
|
|
428
|
-
form_params = opts[:form_params] || {}
|
|
429
|
-
|
|
430
|
-
# http body (model)
|
|
431
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_entitlement_grant_payload'])
|
|
432
|
-
|
|
433
|
-
# return_type
|
|
434
|
-
return_type = opts[:debug_return_type]
|
|
435
|
-
|
|
436
|
-
# auth_names
|
|
437
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
438
|
-
|
|
439
|
-
new_options = opts.merge(
|
|
440
|
-
:operation => :"DefaultApi.entitlement_grant_revoked_post",
|
|
441
|
-
:header_params => header_params,
|
|
442
|
-
:query_params => query_params,
|
|
443
|
-
:form_params => form_params,
|
|
444
|
-
:body => post_body,
|
|
445
|
-
:auth_names => auth_names,
|
|
446
|
-
:return_type => return_type
|
|
447
|
-
)
|
|
448
|
-
|
|
449
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
450
|
-
if @api_client.config.debugging
|
|
451
|
-
@api_client.config.logger.debug "API called: DefaultApi#entitlement_grant_revoked_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
452
|
-
end
|
|
453
|
-
return data, status_code, headers
|
|
454
|
-
end
|
|
455
|
-
|
|
456
208
|
# License Created
|
|
457
209
|
# Occurs when a new software license key is created or assigned to a customer purchase.
|
|
458
210
|
# @param [Hash] opts the optional parameters
|
|
@@ -13,37 +13,30 @@ Generator version: 7.10.0
|
|
|
13
13
|
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module Solifyn
|
|
16
|
-
class
|
|
16
|
+
class PartnerApi
|
|
17
17
|
attr_accessor :api_client
|
|
18
18
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Get Discord Bot Installation URL
|
|
23
|
-
# Generates the URL to invite the system-wide Discord Bot onto the merchant's Discord server.
|
|
24
22
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @option opts [String] :product_id Optional Product ID to redirect back to after installation
|
|
26
23
|
# @return [nil]
|
|
27
|
-
def
|
|
28
|
-
|
|
24
|
+
def partner_controller_get_partner_commissions(opts = {})
|
|
25
|
+
partner_controller_get_partner_commissions_with_http_info(opts)
|
|
29
26
|
nil
|
|
30
27
|
end
|
|
31
28
|
|
|
32
|
-
# Get Discord Bot Installation URL
|
|
33
|
-
# Generates the URL to invite the system-wide Discord Bot onto the merchant's Discord server.
|
|
34
29
|
# @param [Hash] opts the optional parameters
|
|
35
|
-
# @option opts [String] :product_id Optional Product ID to redirect back to after installation
|
|
36
30
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
37
|
-
def
|
|
31
|
+
def partner_controller_get_partner_commissions_with_http_info(opts = {})
|
|
38
32
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
|
33
|
+
@api_client.config.logger.debug 'Calling API: PartnerApi.partner_controller_get_partner_commissions ...'
|
|
40
34
|
end
|
|
41
35
|
# resource path
|
|
42
|
-
local_var_path = '/v1/
|
|
36
|
+
local_var_path = '/v1/partner/commissions'
|
|
43
37
|
|
|
44
38
|
# query parameters
|
|
45
39
|
query_params = opts[:query_params] || {}
|
|
46
|
-
query_params[:'productId'] = opts[:'product_id'] if !opts[:'product_id'].nil?
|
|
47
40
|
|
|
48
41
|
# header parameters
|
|
49
42
|
header_params = opts[:header_params] || {}
|
|
@@ -61,7 +54,7 @@ module Solifyn
|
|
|
61
54
|
auth_names = opts[:debug_auth_names] || []
|
|
62
55
|
|
|
63
56
|
new_options = opts.merge(
|
|
64
|
-
:operation => :"
|
|
57
|
+
:operation => :"PartnerApi.partner_controller_get_partner_commissions",
|
|
65
58
|
:header_params => header_params,
|
|
66
59
|
:query_params => query_params,
|
|
67
60
|
:form_params => form_params,
|
|
@@ -72,38 +65,32 @@ module Solifyn
|
|
|
72
65
|
|
|
73
66
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
74
67
|
if @api_client.config.debugging
|
|
75
|
-
@api_client.config.logger.debug "API called:
|
|
68
|
+
@api_client.config.logger.debug "API called: PartnerApi#partner_controller_get_partner_commissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
76
69
|
end
|
|
77
70
|
return data, status_code, headers
|
|
78
71
|
end
|
|
79
72
|
|
|
80
|
-
# List Guild Discord Roles
|
|
81
|
-
# Retrieves all roles available in the connected merchant's Discord server/guild.
|
|
82
73
|
# @param [Hash] opts the optional parameters
|
|
83
|
-
# @return [
|
|
84
|
-
def
|
|
85
|
-
|
|
86
|
-
|
|
74
|
+
# @return [nil]
|
|
75
|
+
def partner_controller_get_partner_stats(opts = {})
|
|
76
|
+
partner_controller_get_partner_stats_with_http_info(opts)
|
|
77
|
+
nil
|
|
87
78
|
end
|
|
88
79
|
|
|
89
|
-
# List Guild Discord Roles
|
|
90
|
-
# Retrieves all roles available in the connected merchant's Discord server/guild.
|
|
91
80
|
# @param [Hash] opts the optional parameters
|
|
92
|
-
# @return [Array<(
|
|
93
|
-
def
|
|
81
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
82
|
+
def partner_controller_get_partner_stats_with_http_info(opts = {})
|
|
94
83
|
if @api_client.config.debugging
|
|
95
|
-
@api_client.config.logger.debug 'Calling API:
|
|
84
|
+
@api_client.config.logger.debug 'Calling API: PartnerApi.partner_controller_get_partner_stats ...'
|
|
96
85
|
end
|
|
97
86
|
# resource path
|
|
98
|
-
local_var_path = '/v1/
|
|
87
|
+
local_var_path = '/v1/partner/stats'
|
|
99
88
|
|
|
100
89
|
# query parameters
|
|
101
90
|
query_params = opts[:query_params] || {}
|
|
102
91
|
|
|
103
92
|
# header parameters
|
|
104
93
|
header_params = opts[:header_params] || {}
|
|
105
|
-
# HTTP header 'Accept' (if needed)
|
|
106
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
107
94
|
|
|
108
95
|
# form parameters
|
|
109
96
|
form_params = opts[:form_params] || {}
|
|
@@ -112,13 +99,13 @@ module Solifyn
|
|
|
112
99
|
post_body = opts[:debug_body]
|
|
113
100
|
|
|
114
101
|
# return_type
|
|
115
|
-
return_type = opts[:debug_return_type]
|
|
102
|
+
return_type = opts[:debug_return_type]
|
|
116
103
|
|
|
117
104
|
# auth_names
|
|
118
105
|
auth_names = opts[:debug_auth_names] || []
|
|
119
106
|
|
|
120
107
|
new_options = opts.merge(
|
|
121
|
-
:operation => :"
|
|
108
|
+
:operation => :"PartnerApi.partner_controller_get_partner_stats",
|
|
122
109
|
:header_params => header_params,
|
|
123
110
|
:query_params => query_params,
|
|
124
111
|
:form_params => form_params,
|
|
@@ -129,7 +116,7 @@ module Solifyn
|
|
|
129
116
|
|
|
130
117
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
131
118
|
if @api_client.config.debugging
|
|
132
|
-
@api_client.config.logger.debug "API called:
|
|
119
|
+
@api_client.config.logger.debug "API called: PartnerApi#partner_controller_get_partner_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
133
120
|
end
|
|
134
121
|
return data, status_code, headers
|
|
135
122
|
end
|