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.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +202 -0
  3. data/README.md +6 -10
  4. data/docs/AffiliateApi.md +845 -0
  5. data/docs/BillingApi.md +68 -0
  6. data/docs/BrandsApi.md +286 -0
  7. data/docs/Business.md +56 -0
  8. data/docs/BusinessCreate.md +18 -0
  9. data/docs/BusinessFullCreate.md +26 -0
  10. data/docs/BusinessFullCreateResponse.md +20 -0
  11. data/docs/BusinessesApi.md +350 -0
  12. data/docs/ChatApi.md +246 -0
  13. data/docs/CollectionProductDto.md +0 -6
  14. data/docs/CommunityApi.md +497 -0
  15. data/docs/DefaultApi.md +0 -284
  16. data/docs/EntitlementGrantResponseDto.md +0 -8
  17. data/docs/PartnerApi.md +125 -0
  18. data/docs/PayoutAccessToken.md +20 -0
  19. data/docs/PayoutAccount.md +22 -0
  20. data/docs/PayoutAccountLink.md +20 -0
  21. data/docs/PayoutMethod.md +24 -0
  22. data/docs/PayoutMethodList.md +18 -0
  23. data/docs/PayoutVerification.md +24 -0
  24. data/docs/PayoutVerificationList.md +18 -0
  25. data/docs/PayoutsApi.md +579 -0
  26. data/docs/Product.md +0 -6
  27. data/docs/ProductCreate.md +0 -6
  28. data/docs/ProductUpdate.md +0 -6
  29. data/docs/TicketApi.md +318 -0
  30. data/docs/UserPage.md +26 -0
  31. data/docs/UserProfileThemesApi.md +345 -0
  32. data/docs/UserSettings.md +34 -0
  33. data/docs/UserSettingsUpdate.md +76 -0
  34. data/docs/UserStats.md +20 -0
  35. data/docs/UserTheme.md +26 -0
  36. data/docs/UserThemeUpdate.md +22 -0
  37. data/docs/WhopApiKeysRotation.md +18 -0
  38. data/docs/Withdrawal.md +46 -0
  39. data/docs/WithdrawalCreate.md +22 -0
  40. data/docs/WithdrawalList.md +20 -0
  41. data/git_push.sh +2 -2
  42. data/lib/solifyn/api/affiliate_api.rb +760 -0
  43. data/lib/solifyn/api/billing_api.rb +77 -0
  44. data/lib/solifyn/api/brands_api.rb +284 -0
  45. data/lib/solifyn/api/businesses_api.rb +338 -0
  46. data/lib/solifyn/api/chat_api.rb +232 -0
  47. data/lib/solifyn/api/community_api.rb +466 -0
  48. data/lib/solifyn/api/default_api.rb +0 -248
  49. data/lib/solifyn/api/{discord_integration_api.rb → partner_api.rb} +19 -32
  50. data/lib/solifyn/api/payouts_api.rb +520 -0
  51. data/lib/solifyn/api/ticket_api.rb +328 -0
  52. data/lib/solifyn/api/user_profile_themes_api.rb +313 -0
  53. data/lib/solifyn/models/business.rb +482 -0
  54. data/lib/solifyn/models/business_create.rb +241 -0
  55. data/lib/solifyn/models/business_full_create.rb +288 -0
  56. data/lib/solifyn/models/business_full_create_response.rb +239 -0
  57. data/lib/solifyn/models/collection_product_dto.rb +1 -52
  58. data/lib/solifyn/models/entitlement_grant_response_dto.rb +1 -41
  59. data/lib/solifyn/models/payout_access_token.rb +239 -0
  60. data/lib/solifyn/models/payout_account.rb +249 -0
  61. data/lib/solifyn/models/payout_account_link.rb +239 -0
  62. data/lib/solifyn/models/{discord_roles_response_dto.rb → payout_method.rb} +34 -41
  63. data/lib/solifyn/models/payout_method_list.rb +224 -0
  64. data/lib/solifyn/models/{webhook_entitlement_grant_payload.rb → payout_verification.rb} +41 -118
  65. data/lib/solifyn/models/payout_verification_list.rb +224 -0
  66. data/lib/solifyn/models/product.rb +1 -52
  67. data/lib/solifyn/models/product_create.rb +1 -33
  68. data/lib/solifyn/models/product_update.rb +1 -33
  69. data/lib/solifyn/models/user_page.rb +290 -0
  70. data/lib/solifyn/models/user_settings.rb +337 -0
  71. data/lib/solifyn/models/user_settings_update.rb +505 -0
  72. data/lib/solifyn/models/user_stats.rb +241 -0
  73. data/lib/solifyn/models/user_theme.rb +276 -0
  74. data/lib/solifyn/models/user_theme_update.rb +235 -0
  75. data/lib/solifyn/models/whop_api_keys_rotation.rb +222 -0
  76. data/lib/solifyn/models/withdrawal.rb +411 -0
  77. data/lib/solifyn/models/withdrawal_create.rb +249 -0
  78. data/lib/solifyn/models/withdrawal_list.rb +241 -0
  79. data/lib/solifyn/version.rb +1 -1
  80. data/lib/solifyn.rb +0 -3
  81. data/spec/api/affiliate_api_spec.rb +165 -0
  82. data/spec/api/billing_api_spec.rb +46 -0
  83. data/spec/api/brands_api_spec.rb +83 -0
  84. data/spec/api/businesses_api_spec.rb +93 -0
  85. data/spec/api/chat_api_spec.rb +72 -0
  86. data/spec/api/checkout_api_spec.rb +0 -12
  87. data/spec/api/community_api_spec.rb +113 -0
  88. data/spec/api/default_api_spec.rb +11 -59
  89. data/spec/api/developer_api_spec.rb +29 -52
  90. data/spec/api/{discord_integration_api_spec.rb → partner_api_spec.rb} +11 -16
  91. data/spec/api/payouts_api_spec.rb +133 -0
  92. data/spec/api/ticket_api_spec.rb +86 -0
  93. data/spec/api/user_profile_themes_api_spec.rb +91 -0
  94. data/spec/models/business_create_spec.rb +36 -0
  95. data/spec/models/business_full_create_response_spec.rb +42 -0
  96. data/spec/models/business_full_create_spec.rb +60 -0
  97. data/spec/models/business_spec.rb +150 -0
  98. data/spec/models/checkout_session_details_dto_spec.rb +0 -6
  99. data/spec/models/collection_product_dto_spec.rb +0 -28
  100. data/spec/models/order_spec.rb +0 -6
  101. data/spec/models/payout_access_token_spec.rb +42 -0
  102. data/spec/models/payout_account_link_spec.rb +42 -0
  103. data/spec/models/payout_account_spec.rb +48 -0
  104. data/spec/models/payout_method_list_spec.rb +36 -0
  105. data/spec/models/{discord_roles_response_dto_spec.rb → payout_method_spec.rb} +9 -9
  106. data/spec/models/payout_verification_list_spec.rb +36 -0
  107. data/spec/models/payout_verification_spec.rb +54 -0
  108. data/spec/models/product_create_spec.rb +0 -28
  109. data/spec/models/product_spec.rb +0 -28
  110. data/spec/models/product_update_spec.rb +0 -28
  111. data/spec/models/user_page_spec.rb +60 -0
  112. data/spec/models/user_settings_spec.rb +84 -0
  113. data/spec/models/user_settings_update_spec.rb +210 -0
  114. data/spec/models/user_stats_spec.rb +42 -0
  115. data/spec/models/user_theme_spec.rb +60 -0
  116. data/spec/models/user_theme_update_spec.rb +48 -0
  117. data/spec/models/whop_api_keys_rotation_spec.rb +36 -0
  118. data/spec/models/withdrawal_create_spec.rb +48 -0
  119. data/spec/models/withdrawal_list_spec.rb +42 -0
  120. data/spec/models/{webhook_entitlement_grant_payload_spec.rb → withdrawal_spec.rb} +23 -17
  121. metadata +258 -145
  122. data/docs/DiscordIntegrationApi.md +0 -135
  123. data/docs/DiscordRolesResponseDto.md +0 -24
  124. data/docs/WebhookEntitlementGrantPayload.md +0 -44
@@ -0,0 +1,328 @@
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 TicketApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param body [Object]
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [nil]
25
+ def ticket_controller_create_ticket(body, opts = {})
26
+ ticket_controller_create_ticket_with_http_info(body, opts)
27
+ nil
28
+ end
29
+
30
+ # @param body [Object]
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
33
+ def ticket_controller_create_ticket_with_http_info(body, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: TicketApi.ticket_controller_create_ticket ...'
36
+ end
37
+ # verify the required parameter 'body' is set
38
+ if @api_client.config.client_side_validation && body.nil?
39
+ fail ArgumentError, "Missing the required parameter 'body' when calling TicketApi.ticket_controller_create_ticket"
40
+ end
41
+ # resource path
42
+ local_var_path = '/v1/tickets'
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Content-Type'
50
+ content_type = @api_client.select_header_content_type(['application/json'])
51
+ if !content_type.nil?
52
+ header_params['Content-Type'] = content_type
53
+ end
54
+
55
+ # form parameters
56
+ form_params = opts[:form_params] || {}
57
+
58
+ # http body (model)
59
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
60
+
61
+ # return_type
62
+ return_type = opts[:debug_return_type]
63
+
64
+ # auth_names
65
+ auth_names = opts[:debug_auth_names] || []
66
+
67
+ new_options = opts.merge(
68
+ :operation => :"TicketApi.ticket_controller_create_ticket",
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => return_type
75
+ )
76
+
77
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: TicketApi#ticket_controller_create_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+
84
+ # @param id [String]
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [nil]
87
+ def ticket_controller_get_ticket_details(id, opts = {})
88
+ ticket_controller_get_ticket_details_with_http_info(id, opts)
89
+ nil
90
+ end
91
+
92
+ # @param id [String]
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
95
+ def ticket_controller_get_ticket_details_with_http_info(id, opts = {})
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug 'Calling API: TicketApi.ticket_controller_get_ticket_details ...'
98
+ end
99
+ # verify the required parameter 'id' is set
100
+ if @api_client.config.client_side_validation && id.nil?
101
+ fail ArgumentError, "Missing the required parameter 'id' when calling TicketApi.ticket_controller_get_ticket_details"
102
+ end
103
+ # resource path
104
+ local_var_path = '/v1/tickets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
105
+
106
+ # query parameters
107
+ query_params = opts[:query_params] || {}
108
+
109
+ # header parameters
110
+ header_params = opts[:header_params] || {}
111
+
112
+ # form parameters
113
+ form_params = opts[:form_params] || {}
114
+
115
+ # http body (model)
116
+ post_body = opts[:debug_body]
117
+
118
+ # return_type
119
+ return_type = opts[:debug_return_type]
120
+
121
+ # auth_names
122
+ auth_names = opts[:debug_auth_names] || []
123
+
124
+ new_options = opts.merge(
125
+ :operation => :"TicketApi.ticket_controller_get_ticket_details",
126
+ :header_params => header_params,
127
+ :query_params => query_params,
128
+ :form_params => form_params,
129
+ :body => post_body,
130
+ :auth_names => auth_names,
131
+ :return_type => return_type
132
+ )
133
+
134
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
135
+ if @api_client.config.debugging
136
+ @api_client.config.logger.debug "API called: TicketApi#ticket_controller_get_ticket_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
137
+ end
138
+ return data, status_code, headers
139
+ end
140
+
141
+ # @param [Hash] opts the optional parameters
142
+ # @return [nil]
143
+ def ticket_controller_get_tickets(opts = {})
144
+ ticket_controller_get_tickets_with_http_info(opts)
145
+ nil
146
+ end
147
+
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
150
+ def ticket_controller_get_tickets_with_http_info(opts = {})
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug 'Calling API: TicketApi.ticket_controller_get_tickets ...'
153
+ end
154
+ # resource path
155
+ local_var_path = '/v1/tickets'
156
+
157
+ # query parameters
158
+ query_params = opts[:query_params] || {}
159
+
160
+ # header parameters
161
+ header_params = opts[:header_params] || {}
162
+
163
+ # form parameters
164
+ form_params = opts[:form_params] || {}
165
+
166
+ # http body (model)
167
+ post_body = opts[:debug_body]
168
+
169
+ # return_type
170
+ return_type = opts[:debug_return_type]
171
+
172
+ # auth_names
173
+ auth_names = opts[:debug_auth_names] || []
174
+
175
+ new_options = opts.merge(
176
+ :operation => :"TicketApi.ticket_controller_get_tickets",
177
+ :header_params => header_params,
178
+ :query_params => query_params,
179
+ :form_params => form_params,
180
+ :body => post_body,
181
+ :auth_names => auth_names,
182
+ :return_type => return_type
183
+ )
184
+
185
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
186
+ if @api_client.config.debugging
187
+ @api_client.config.logger.debug "API called: TicketApi#ticket_controller_get_tickets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
188
+ end
189
+ return data, status_code, headers
190
+ end
191
+
192
+ # @param id [String]
193
+ # @param body [Object]
194
+ # @param [Hash] opts the optional parameters
195
+ # @return [nil]
196
+ def ticket_controller_reply_ticket(id, body, opts = {})
197
+ ticket_controller_reply_ticket_with_http_info(id, body, opts)
198
+ nil
199
+ end
200
+
201
+ # @param id [String]
202
+ # @param body [Object]
203
+ # @param [Hash] opts the optional parameters
204
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
205
+ def ticket_controller_reply_ticket_with_http_info(id, body, opts = {})
206
+ if @api_client.config.debugging
207
+ @api_client.config.logger.debug 'Calling API: TicketApi.ticket_controller_reply_ticket ...'
208
+ end
209
+ # verify the required parameter 'id' is set
210
+ if @api_client.config.client_side_validation && id.nil?
211
+ fail ArgumentError, "Missing the required parameter 'id' when calling TicketApi.ticket_controller_reply_ticket"
212
+ end
213
+ # verify the required parameter 'body' is set
214
+ if @api_client.config.client_side_validation && body.nil?
215
+ fail ArgumentError, "Missing the required parameter 'body' when calling TicketApi.ticket_controller_reply_ticket"
216
+ end
217
+ # resource path
218
+ local_var_path = '/v1/tickets/{id}/replies'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
219
+
220
+ # query parameters
221
+ query_params = opts[:query_params] || {}
222
+
223
+ # header parameters
224
+ header_params = opts[:header_params] || {}
225
+ # HTTP header 'Content-Type'
226
+ content_type = @api_client.select_header_content_type(['application/json'])
227
+ if !content_type.nil?
228
+ header_params['Content-Type'] = content_type
229
+ end
230
+
231
+ # form parameters
232
+ form_params = opts[:form_params] || {}
233
+
234
+ # http body (model)
235
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
236
+
237
+ # return_type
238
+ return_type = opts[:debug_return_type]
239
+
240
+ # auth_names
241
+ auth_names = opts[:debug_auth_names] || []
242
+
243
+ new_options = opts.merge(
244
+ :operation => :"TicketApi.ticket_controller_reply_ticket",
245
+ :header_params => header_params,
246
+ :query_params => query_params,
247
+ :form_params => form_params,
248
+ :body => post_body,
249
+ :auth_names => auth_names,
250
+ :return_type => return_type
251
+ )
252
+
253
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
254
+ if @api_client.config.debugging
255
+ @api_client.config.logger.debug "API called: TicketApi#ticket_controller_reply_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
256
+ end
257
+ return data, status_code, headers
258
+ end
259
+
260
+ # @param id [String]
261
+ # @param body [Object]
262
+ # @param [Hash] opts the optional parameters
263
+ # @return [nil]
264
+ def ticket_controller_update_ticket(id, body, opts = {})
265
+ ticket_controller_update_ticket_with_http_info(id, body, opts)
266
+ nil
267
+ end
268
+
269
+ # @param id [String]
270
+ # @param body [Object]
271
+ # @param [Hash] opts the optional parameters
272
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
273
+ def ticket_controller_update_ticket_with_http_info(id, body, opts = {})
274
+ if @api_client.config.debugging
275
+ @api_client.config.logger.debug 'Calling API: TicketApi.ticket_controller_update_ticket ...'
276
+ end
277
+ # verify the required parameter 'id' is set
278
+ if @api_client.config.client_side_validation && id.nil?
279
+ fail ArgumentError, "Missing the required parameter 'id' when calling TicketApi.ticket_controller_update_ticket"
280
+ end
281
+ # verify the required parameter 'body' is set
282
+ if @api_client.config.client_side_validation && body.nil?
283
+ fail ArgumentError, "Missing the required parameter 'body' when calling TicketApi.ticket_controller_update_ticket"
284
+ end
285
+ # resource path
286
+ local_var_path = '/v1/tickets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
287
+
288
+ # query parameters
289
+ query_params = opts[:query_params] || {}
290
+
291
+ # header parameters
292
+ header_params = opts[:header_params] || {}
293
+ # HTTP header 'Content-Type'
294
+ content_type = @api_client.select_header_content_type(['application/json'])
295
+ if !content_type.nil?
296
+ header_params['Content-Type'] = content_type
297
+ end
298
+
299
+ # form parameters
300
+ form_params = opts[:form_params] || {}
301
+
302
+ # http body (model)
303
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
304
+
305
+ # return_type
306
+ return_type = opts[:debug_return_type]
307
+
308
+ # auth_names
309
+ auth_names = opts[:debug_auth_names] || []
310
+
311
+ new_options = opts.merge(
312
+ :operation => :"TicketApi.ticket_controller_update_ticket",
313
+ :header_params => header_params,
314
+ :query_params => query_params,
315
+ :form_params => form_params,
316
+ :body => post_body,
317
+ :auth_names => auth_names,
318
+ :return_type => return_type
319
+ )
320
+
321
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
322
+ if @api_client.config.debugging
323
+ @api_client.config.logger.debug "API called: TicketApi#ticket_controller_update_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
324
+ end
325
+ return data, status_code, headers
326
+ end
327
+ end
328
+ end
@@ -0,0 +1,313 @@
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 UserProfileThemesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get My Page details
23
+ # Retrieve page settings and custom content configured for the store.
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [UserPage]
26
+ def users_get_my_page(opts = {})
27
+ data, _status_code, _headers = users_get_my_page_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Get My Page details
32
+ # Retrieve page settings and custom content configured for the store.
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(UserPage, Integer, Hash)>] UserPage data, response status code and response headers
35
+ def users_get_my_page_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: UserProfileThemesApi.users_get_my_page ...'
38
+ end
39
+ # resource path
40
+ local_var_path = '/v1/user/my-page'
41
+
42
+ # query parameters
43
+ query_params = opts[:query_params] || {}
44
+
45
+ # header parameters
46
+ header_params = opts[:header_params] || {}
47
+ # HTTP header 'Accept' (if needed)
48
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
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] || 'UserPage'
58
+
59
+ # auth_names
60
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
61
+
62
+ new_options = opts.merge(
63
+ :operation => :"UserProfileThemesApi.users_get_my_page",
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(:GET, local_var_path, new_options)
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: UserProfileThemesApi#users_get_my_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ # Get My Theme
80
+ # Retrieve theme configurations for the active business context.
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [UserTheme]
83
+ def users_get_my_theme(opts = {})
84
+ data, _status_code, _headers = users_get_my_theme_with_http_info(opts)
85
+ data
86
+ end
87
+
88
+ # Get My Theme
89
+ # Retrieve theme configurations for the active business context.
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [Array<(UserTheme, Integer, Hash)>] UserTheme data, response status code and response headers
92
+ def users_get_my_theme_with_http_info(opts = {})
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug 'Calling API: UserProfileThemesApi.users_get_my_theme ...'
95
+ end
96
+ # resource path
97
+ local_var_path = '/v1/user/my-theme'
98
+
99
+ # query parameters
100
+ query_params = opts[:query_params] || {}
101
+
102
+ # header parameters
103
+ header_params = opts[:header_params] || {}
104
+ # HTTP header 'Accept' (if needed)
105
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
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] || 'UserTheme'
115
+
116
+ # auth_names
117
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
118
+
119
+ new_options = opts.merge(
120
+ :operation => :"UserProfileThemesApi.users_get_my_theme",
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(:GET, local_var_path, new_options)
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug "API called: UserProfileThemesApi#users_get_my_theme\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
+ end
133
+ return data, status_code, headers
134
+ end
135
+
136
+ # Retrieve User Settings
137
+ # Retrieve profile settings and notification preferences for the user.
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [UserSettings]
140
+ def users_get_settings(opts = {})
141
+ data, _status_code, _headers = users_get_settings_with_http_info(opts)
142
+ data
143
+ end
144
+
145
+ # Retrieve User Settings
146
+ # Retrieve profile settings and notification preferences for the user.
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [Array<(UserSettings, Integer, Hash)>] UserSettings data, response status code and response headers
149
+ def users_get_settings_with_http_info(opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug 'Calling API: UserProfileThemesApi.users_get_settings ...'
152
+ end
153
+ # resource path
154
+ local_var_path = '/v1/user/settings'
155
+
156
+ # query parameters
157
+ query_params = opts[:query_params] || {}
158
+
159
+ # header parameters
160
+ header_params = opts[:header_params] || {}
161
+ # HTTP header 'Accept' (if needed)
162
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
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] || 'UserSettings'
172
+
173
+ # auth_names
174
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
175
+
176
+ new_options = opts.merge(
177
+ :operation => :"UserProfileThemesApi.users_get_settings",
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(:GET, local_var_path, new_options)
187
+ if @api_client.config.debugging
188
+ @api_client.config.logger.debug "API called: UserProfileThemesApi#users_get_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ end
190
+ return data, status_code, headers
191
+ end
192
+
193
+ # Get Dashboard Statistics
194
+ # Retrieve general analytics stats (revenue, order counts, etc.) for dashboard graphs.
195
+ # @param [Hash] opts the optional parameters
196
+ # @return [UserStats]
197
+ def users_get_stats(opts = {})
198
+ data, _status_code, _headers = users_get_stats_with_http_info(opts)
199
+ data
200
+ end
201
+
202
+ # Get Dashboard Statistics
203
+ # Retrieve general analytics stats (revenue, order counts, etc.) for dashboard graphs.
204
+ # @param [Hash] opts the optional parameters
205
+ # @return [Array<(UserStats, Integer, Hash)>] UserStats data, response status code and response headers
206
+ def users_get_stats_with_http_info(opts = {})
207
+ if @api_client.config.debugging
208
+ @api_client.config.logger.debug 'Calling API: UserProfileThemesApi.users_get_stats ...'
209
+ end
210
+ # resource path
211
+ local_var_path = '/v1/user/dashboard-stats'
212
+
213
+ # query parameters
214
+ query_params = opts[:query_params] || {}
215
+
216
+ # header parameters
217
+ header_params = opts[:header_params] || {}
218
+ # HTTP header 'Accept' (if needed)
219
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
220
+
221
+ # form parameters
222
+ form_params = opts[:form_params] || {}
223
+
224
+ # http body (model)
225
+ post_body = opts[:debug_body]
226
+
227
+ # return_type
228
+ return_type = opts[:debug_return_type] || 'UserStats'
229
+
230
+ # auth_names
231
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
232
+
233
+ new_options = opts.merge(
234
+ :operation => :"UserProfileThemesApi.users_get_stats",
235
+ :header_params => header_params,
236
+ :query_params => query_params,
237
+ :form_params => form_params,
238
+ :body => post_body,
239
+ :auth_names => auth_names,
240
+ :return_type => return_type
241
+ )
242
+
243
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
244
+ if @api_client.config.debugging
245
+ @api_client.config.logger.debug "API called: UserProfileThemesApi#users_get_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
246
+ end
247
+ return data, status_code, headers
248
+ end
249
+
250
+ # Get Theme by Subdomain
251
+ # Retrieve public theme configuration details by store subdomain.
252
+ # @param subdomain [String] The subdomain of the store
253
+ # @param [Hash] opts the optional parameters
254
+ # @return [UserTheme]
255
+ def users_get_theme_by_subdomain(subdomain, opts = {})
256
+ data, _status_code, _headers = users_get_theme_by_subdomain_with_http_info(subdomain, opts)
257
+ data
258
+ end
259
+
260
+ # Get Theme by Subdomain
261
+ # Retrieve public theme configuration details by store subdomain.
262
+ # @param subdomain [String] The subdomain of the store
263
+ # @param [Hash] opts the optional parameters
264
+ # @return [Array<(UserTheme, Integer, Hash)>] UserTheme data, response status code and response headers
265
+ def users_get_theme_by_subdomain_with_http_info(subdomain, opts = {})
266
+ if @api_client.config.debugging
267
+ @api_client.config.logger.debug 'Calling API: UserProfileThemesApi.users_get_theme_by_subdomain ...'
268
+ end
269
+ # verify the required parameter 'subdomain' is set
270
+ if @api_client.config.client_side_validation && subdomain.nil?
271
+ fail ArgumentError, "Missing the required parameter 'subdomain' when calling UserProfileThemesApi.users_get_theme_by_subdomain"
272
+ end
273
+ # resource path
274
+ local_var_path = '/v1/user/theme/{subdomain}'.sub('{' + 'subdomain' + '}', CGI.escape(subdomain.to_s))
275
+
276
+ # query parameters
277
+ query_params = opts[:query_params] || {}
278
+
279
+ # header parameters
280
+ header_params = opts[:header_params] || {}
281
+ # HTTP header 'Accept' (if needed)
282
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
283
+
284
+ # form parameters
285
+ form_params = opts[:form_params] || {}
286
+
287
+ # http body (model)
288
+ post_body = opts[:debug_body]
289
+
290
+ # return_type
291
+ return_type = opts[:debug_return_type] || 'UserTheme'
292
+
293
+ # auth_names
294
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
295
+
296
+ new_options = opts.merge(
297
+ :operation => :"UserProfileThemesApi.users_get_theme_by_subdomain",
298
+ :header_params => header_params,
299
+ :query_params => query_params,
300
+ :form_params => form_params,
301
+ :body => post_body,
302
+ :auth_names => auth_names,
303
+ :return_type => return_type
304
+ )
305
+
306
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
307
+ if @api_client.config.debugging
308
+ @api_client.config.logger.debug "API called: UserProfileThemesApi#users_get_theme_by_subdomain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
309
+ end
310
+ return data, status_code, headers
311
+ end
312
+ end
313
+ end