solifyn 1.1.3 → 1.1.4

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 (88) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -4
  3. data/docs/Brand.md +2 -2
  4. data/docs/CheckoutLinkResponseDto.md +3 -3
  5. data/docs/CollectionDetailResponseDto.md +3 -3
  6. data/docs/CollectionProductDto.md +11 -5
  7. data/docs/CollectionResponseDto.md +3 -3
  8. data/docs/CreateCustomerDto.md +1 -1
  9. data/docs/CreateMeterDto.md +1 -1
  10. data/docs/CreateWebhookEndpointDto.md +1 -1
  11. data/docs/CustomerResponseDto.md +3 -3
  12. data/docs/CustomerSharedInviteResponseDto.md +1 -1
  13. data/docs/DefaultApi.md +1214 -0
  14. data/docs/DeveloperApi.md +1 -1
  15. data/docs/DiscordIntegrationApi.md +135 -0
  16. data/docs/DiscordRolesResponseDto.md +24 -0
  17. data/docs/Dispute.md +3 -3
  18. data/docs/EntitlementGrantResponseDto.md +13 -5
  19. data/docs/Invoice.md +1 -1
  20. data/docs/MeterDetailResponseDto.md +3 -3
  21. data/docs/MeterIngestEventDto.md +1 -1
  22. data/docs/MeterIngestResponseDto.md +1 -1
  23. data/docs/MeterResponseDto.md +3 -3
  24. data/docs/MeterUsageEventDto.md +3 -3
  25. data/docs/OperationalWebhookEndpointHeadersInDto.md +1 -1
  26. data/docs/OperationalWebhookEndpointHeadersResponseDto.md +2 -2
  27. data/docs/OperationalWebhookEndpointInDto.md +2 -2
  28. data/docs/OperationalWebhookEndpointResponseDto.md +2 -2
  29. data/docs/OperationalWebhookEndpointUpdateDto.md +2 -2
  30. data/docs/Order.md +2 -2
  31. data/docs/OrderRefund.md +1 -1
  32. data/docs/Product.md +11 -5
  33. data/docs/ProductCreate.md +8 -2
  34. data/docs/ProductUpdate.md +8 -2
  35. data/docs/Refund.md +5 -5
  36. data/docs/Subscription.md +4 -4
  37. data/docs/UpdateCustomerDto.md +1 -1
  38. data/docs/UpdateMeterDto.md +1 -1
  39. data/docs/UpdateWebhookEndpointDto.md +1 -1
  40. data/docs/WebhookDeliveryResponseDto.md +1 -1
  41. data/docs/WebhookEndpointApi.md +1 -1
  42. data/docs/WebhookEndpointResponseDto.md +1 -1
  43. data/docs/WebhookEntitlementGrantPayload.md +5 -5
  44. data/lib/solifyn/api/default_api.rb +1076 -0
  45. data/lib/solifyn/api/discord_integration_api.rb +137 -0
  46. data/lib/solifyn/models/addon.rb +10 -2
  47. data/lib/solifyn/models/brand.rb +0 -6
  48. data/lib/solifyn/models/brand_create.rb +5 -6
  49. data/lib/solifyn/models/brand_update.rb +5 -6
  50. data/lib/solifyn/models/checkout_link_response_dto.rb +0 -12
  51. data/lib/solifyn/models/checkout_session_details_dto.rb +0 -1
  52. data/lib/solifyn/models/collection_detail_response_dto.rb +0 -2
  53. data/lib/solifyn/models/collection_product_dto.rb +132 -18
  54. data/lib/solifyn/models/collection_response_dto.rb +0 -2
  55. data/lib/solifyn/models/customer_response_dto.rb +0 -6
  56. data/lib/solifyn/models/discord_roles_response_dto.rb +273 -0
  57. data/lib/solifyn/models/discount.rb +10 -2
  58. data/lib/solifyn/models/discount_create.rb +0 -3
  59. data/lib/solifyn/models/discount_update.rb +0 -3
  60. data/lib/solifyn/models/dispute.rb +0 -10
  61. data/lib/solifyn/models/dispute_evidence_dto.rb +0 -4
  62. data/lib/solifyn/models/entitlement_grant_response_dto.rb +41 -1
  63. data/lib/solifyn/models/instance.rb +20 -4
  64. data/lib/solifyn/models/license.rb +40 -8
  65. data/lib/solifyn/models/license_sub_dto.rb +15 -3
  66. data/lib/solifyn/models/meter_detail_response_dto.rb +0 -4
  67. data/lib/solifyn/models/meter_response_dto.rb +0 -4
  68. data/lib/solifyn/models/meter_usage_event_dto.rb +0 -1
  69. data/lib/solifyn/models/product.rb +132 -18
  70. data/lib/solifyn/models/product_create.rb +33 -3
  71. data/lib/solifyn/models/product_sub_dto.rb +5 -1
  72. data/lib/solifyn/models/product_update.rb +33 -3
  73. data/lib/solifyn/models/refund.rb +0 -5
  74. data/lib/solifyn/models/resolved_addon.rb +5 -1
  75. data/lib/solifyn/models/subscription.rb +35 -10
  76. data/lib/solifyn/models/subscription_detail.rb +5 -1
  77. data/lib/solifyn/models/webhook_dispute_payload.rb +0 -5
  78. data/lib/solifyn/models/webhook_entitlement_grant_payload.rb +0 -6
  79. data/lib/solifyn/models/webhook_license_payload.rb +40 -8
  80. data/lib/solifyn/models/webhook_payment_payload.rb +0 -40
  81. data/lib/solifyn/models/webhook_refund_payload.rb +0 -4
  82. data/lib/solifyn/models/webhook_subscription_payload.rb +0 -9
  83. data/lib/solifyn/version.rb +1 -1
  84. data/lib/solifyn.rb +2 -0
  85. data/spec/api/default_api_spec.rb +239 -0
  86. data/spec/api/discord_integration_api_spec.rb +58 -0
  87. data/spec/models/discord_roles_response_dto_spec.rb +54 -0
  88. metadata +145 -133
@@ -0,0 +1,1076 @@
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 DefaultApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Dispute Created
23
+ # Occurs when a payment charge is disputed by the customer (chargeback initiated).
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [WebhookDisputePayload] :webhook_dispute_payload
26
+ # @return [nil]
27
+ def dispute_created_post(opts = {})
28
+ dispute_created_post_with_http_info(opts)
29
+ nil
30
+ end
31
+
32
+ # Dispute Created
33
+ # Occurs when a payment charge is disputed by the customer (chargeback initiated).
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [WebhookDisputePayload] :webhook_dispute_payload
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def dispute_created_post_with_http_info(opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: DefaultApi.dispute_created_post ...'
40
+ end
41
+ # resource path
42
+ local_var_path = '/dispute.created'
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(opts[:'webhook_dispute_payload'])
60
+
61
+ # return_type
62
+ return_type = opts[:debug_return_type]
63
+
64
+ # auth_names
65
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
66
+
67
+ new_options = opts.merge(
68
+ :operation => :"DefaultApi.dispute_created_post",
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: DefaultApi#dispute_created_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+
84
+ # Dispute Lost
85
+ # Occurs when a dispute challenge is lost and the funds are returned to the cardholder.
86
+ # @param [Hash] opts the optional parameters
87
+ # @option opts [WebhookDisputePayload] :webhook_dispute_payload
88
+ # @return [nil]
89
+ def dispute_lost_post(opts = {})
90
+ dispute_lost_post_with_http_info(opts)
91
+ nil
92
+ end
93
+
94
+ # Dispute Lost
95
+ # Occurs when a dispute challenge is lost and the funds are returned to the cardholder.
96
+ # @param [Hash] opts the optional parameters
97
+ # @option opts [WebhookDisputePayload] :webhook_dispute_payload
98
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
99
+ def dispute_lost_post_with_http_info(opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug 'Calling API: DefaultApi.dispute_lost_post ...'
102
+ end
103
+ # resource path
104
+ local_var_path = '/dispute.lost'
105
+
106
+ # query parameters
107
+ query_params = opts[:query_params] || {}
108
+
109
+ # header parameters
110
+ header_params = opts[:header_params] || {}
111
+ # HTTP header 'Content-Type'
112
+ content_type = @api_client.select_header_content_type(['application/json'])
113
+ if !content_type.nil?
114
+ header_params['Content-Type'] = content_type
115
+ end
116
+
117
+ # form parameters
118
+ form_params = opts[:form_params] || {}
119
+
120
+ # http body (model)
121
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_dispute_payload'])
122
+
123
+ # return_type
124
+ return_type = opts[:debug_return_type]
125
+
126
+ # auth_names
127
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
128
+
129
+ new_options = opts.merge(
130
+ :operation => :"DefaultApi.dispute_lost_post",
131
+ :header_params => header_params,
132
+ :query_params => query_params,
133
+ :form_params => form_params,
134
+ :body => post_body,
135
+ :auth_names => auth_names,
136
+ :return_type => return_type
137
+ )
138
+
139
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: DefaultApi#dispute_lost_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # Dispute Won
147
+ # Occurs when a dispute challenge is won by the merchant.
148
+ # @param [Hash] opts the optional parameters
149
+ # @option opts [WebhookDisputePayload] :webhook_dispute_payload
150
+ # @return [nil]
151
+ def dispute_won_post(opts = {})
152
+ dispute_won_post_with_http_info(opts)
153
+ nil
154
+ end
155
+
156
+ # Dispute Won
157
+ # Occurs when a dispute challenge is won by the merchant.
158
+ # @param [Hash] opts the optional parameters
159
+ # @option opts [WebhookDisputePayload] :webhook_dispute_payload
160
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
161
+ def dispute_won_post_with_http_info(opts = {})
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug 'Calling API: DefaultApi.dispute_won_post ...'
164
+ end
165
+ # resource path
166
+ local_var_path = '/dispute.won'
167
+
168
+ # query parameters
169
+ query_params = opts[:query_params] || {}
170
+
171
+ # header parameters
172
+ header_params = opts[:header_params] || {}
173
+ # HTTP header 'Content-Type'
174
+ content_type = @api_client.select_header_content_type(['application/json'])
175
+ if !content_type.nil?
176
+ header_params['Content-Type'] = content_type
177
+ end
178
+
179
+ # form parameters
180
+ form_params = opts[:form_params] || {}
181
+
182
+ # http body (model)
183
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_dispute_payload'])
184
+
185
+ # return_type
186
+ return_type = opts[:debug_return_type]
187
+
188
+ # auth_names
189
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
190
+
191
+ new_options = opts.merge(
192
+ :operation => :"DefaultApi.dispute_won_post",
193
+ :header_params => header_params,
194
+ :query_params => query_params,
195
+ :form_params => form_params,
196
+ :body => post_body,
197
+ :auth_names => auth_names,
198
+ :return_type => return_type
199
+ )
200
+
201
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
202
+ if @api_client.config.debugging
203
+ @api_client.config.logger.debug "API called: DefaultApi#dispute_won_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
+ end
205
+ return data, status_code, headers
206
+ end
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
+ # License Created
457
+ # Occurs when a new software license key is created or assigned to a customer purchase.
458
+ # @param [Hash] opts the optional parameters
459
+ # @option opts [WebhookLicensePayload] :webhook_license_payload
460
+ # @return [nil]
461
+ def license_created_post(opts = {})
462
+ license_created_post_with_http_info(opts)
463
+ nil
464
+ end
465
+
466
+ # License Created
467
+ # Occurs when a new software license key is created or assigned to a customer purchase.
468
+ # @param [Hash] opts the optional parameters
469
+ # @option opts [WebhookLicensePayload] :webhook_license_payload
470
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
471
+ def license_created_post_with_http_info(opts = {})
472
+ if @api_client.config.debugging
473
+ @api_client.config.logger.debug 'Calling API: DefaultApi.license_created_post ...'
474
+ end
475
+ # resource path
476
+ local_var_path = '/license.created'
477
+
478
+ # query parameters
479
+ query_params = opts[:query_params] || {}
480
+
481
+ # header parameters
482
+ header_params = opts[:header_params] || {}
483
+ # HTTP header 'Content-Type'
484
+ content_type = @api_client.select_header_content_type(['application/json'])
485
+ if !content_type.nil?
486
+ header_params['Content-Type'] = content_type
487
+ end
488
+
489
+ # form parameters
490
+ form_params = opts[:form_params] || {}
491
+
492
+ # http body (model)
493
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_license_payload'])
494
+
495
+ # return_type
496
+ return_type = opts[:debug_return_type]
497
+
498
+ # auth_names
499
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
500
+
501
+ new_options = opts.merge(
502
+ :operation => :"DefaultApi.license_created_post",
503
+ :header_params => header_params,
504
+ :query_params => query_params,
505
+ :form_params => form_params,
506
+ :body => post_body,
507
+ :auth_names => auth_names,
508
+ :return_type => return_type
509
+ )
510
+
511
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
512
+ if @api_client.config.debugging
513
+ @api_client.config.logger.debug "API called: DefaultApi#license_created_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
514
+ end
515
+ return data, status_code, headers
516
+ end
517
+
518
+ # License Revoked
519
+ # Occurs when a software license key is revoked (e.g., due to subscription cancellation, refund, or dispute).
520
+ # @param [Hash] opts the optional parameters
521
+ # @option opts [WebhookLicensePayload] :webhook_license_payload
522
+ # @return [nil]
523
+ def license_revoked_post(opts = {})
524
+ license_revoked_post_with_http_info(opts)
525
+ nil
526
+ end
527
+
528
+ # License Revoked
529
+ # Occurs when a software license key is revoked (e.g., due to subscription cancellation, refund, or dispute).
530
+ # @param [Hash] opts the optional parameters
531
+ # @option opts [WebhookLicensePayload] :webhook_license_payload
532
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
533
+ def license_revoked_post_with_http_info(opts = {})
534
+ if @api_client.config.debugging
535
+ @api_client.config.logger.debug 'Calling API: DefaultApi.license_revoked_post ...'
536
+ end
537
+ # resource path
538
+ local_var_path = '/license.revoked'
539
+
540
+ # query parameters
541
+ query_params = opts[:query_params] || {}
542
+
543
+ # header parameters
544
+ header_params = opts[:header_params] || {}
545
+ # HTTP header 'Content-Type'
546
+ content_type = @api_client.select_header_content_type(['application/json'])
547
+ if !content_type.nil?
548
+ header_params['Content-Type'] = content_type
549
+ end
550
+
551
+ # form parameters
552
+ form_params = opts[:form_params] || {}
553
+
554
+ # http body (model)
555
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_license_payload'])
556
+
557
+ # return_type
558
+ return_type = opts[:debug_return_type]
559
+
560
+ # auth_names
561
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
562
+
563
+ new_options = opts.merge(
564
+ :operation => :"DefaultApi.license_revoked_post",
565
+ :header_params => header_params,
566
+ :query_params => query_params,
567
+ :form_params => form_params,
568
+ :body => post_body,
569
+ :auth_names => auth_names,
570
+ :return_type => return_type
571
+ )
572
+
573
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
574
+ if @api_client.config.debugging
575
+ @api_client.config.logger.debug "API called: DefaultApi#license_revoked_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
576
+ end
577
+ return data, status_code, headers
578
+ end
579
+
580
+ # Payment Created
581
+ # Occurs when a new payment is initiated (e.g., at checkout start or subscription creation). The payment may still be in an incomplete or pending state.
582
+ # @param [Hash] opts the optional parameters
583
+ # @option opts [WebhookPaymentPayload] :webhook_payment_payload
584
+ # @return [nil]
585
+ def payment_created_post(opts = {})
586
+ payment_created_post_with_http_info(opts)
587
+ nil
588
+ end
589
+
590
+ # Payment Created
591
+ # Occurs when a new payment is initiated (e.g., at checkout start or subscription creation). The payment may still be in an incomplete or pending state.
592
+ # @param [Hash] opts the optional parameters
593
+ # @option opts [WebhookPaymentPayload] :webhook_payment_payload
594
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
595
+ def payment_created_post_with_http_info(opts = {})
596
+ if @api_client.config.debugging
597
+ @api_client.config.logger.debug 'Calling API: DefaultApi.payment_created_post ...'
598
+ end
599
+ # resource path
600
+ local_var_path = '/payment.created'
601
+
602
+ # query parameters
603
+ query_params = opts[:query_params] || {}
604
+
605
+ # header parameters
606
+ header_params = opts[:header_params] || {}
607
+ # HTTP header 'Content-Type'
608
+ content_type = @api_client.select_header_content_type(['application/json'])
609
+ if !content_type.nil?
610
+ header_params['Content-Type'] = content_type
611
+ end
612
+
613
+ # form parameters
614
+ form_params = opts[:form_params] || {}
615
+
616
+ # http body (model)
617
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_payment_payload'])
618
+
619
+ # return_type
620
+ return_type = opts[:debug_return_type]
621
+
622
+ # auth_names
623
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
624
+
625
+ new_options = opts.merge(
626
+ :operation => :"DefaultApi.payment_created_post",
627
+ :header_params => header_params,
628
+ :query_params => query_params,
629
+ :form_params => form_params,
630
+ :body => post_body,
631
+ :auth_names => auth_names,
632
+ :return_type => return_type
633
+ )
634
+
635
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
636
+ if @api_client.config.debugging
637
+ @api_client.config.logger.debug "API called: DefaultApi#payment_created_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
638
+ end
639
+ return data, status_code, headers
640
+ end
641
+
642
+ # Payment Failed
643
+ # Occurs when a customer payment attempt fails.
644
+ # @param [Hash] opts the optional parameters
645
+ # @option opts [Order] :order
646
+ # @return [nil]
647
+ def payment_failed_post(opts = {})
648
+ payment_failed_post_with_http_info(opts)
649
+ nil
650
+ end
651
+
652
+ # Payment Failed
653
+ # Occurs when a customer payment attempt fails.
654
+ # @param [Hash] opts the optional parameters
655
+ # @option opts [Order] :order
656
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
657
+ def payment_failed_post_with_http_info(opts = {})
658
+ if @api_client.config.debugging
659
+ @api_client.config.logger.debug 'Calling API: DefaultApi.payment_failed_post ...'
660
+ end
661
+ # resource path
662
+ local_var_path = '/payment.failed'
663
+
664
+ # query parameters
665
+ query_params = opts[:query_params] || {}
666
+
667
+ # header parameters
668
+ header_params = opts[:header_params] || {}
669
+ # HTTP header 'Content-Type'
670
+ content_type = @api_client.select_header_content_type(['application/json'])
671
+ if !content_type.nil?
672
+ header_params['Content-Type'] = content_type
673
+ end
674
+
675
+ # form parameters
676
+ form_params = opts[:form_params] || {}
677
+
678
+ # http body (model)
679
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'order'])
680
+
681
+ # return_type
682
+ return_type = opts[:debug_return_type]
683
+
684
+ # auth_names
685
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
686
+
687
+ new_options = opts.merge(
688
+ :operation => :"DefaultApi.payment_failed_post",
689
+ :header_params => header_params,
690
+ :query_params => query_params,
691
+ :form_params => form_params,
692
+ :body => post_body,
693
+ :auth_names => auth_names,
694
+ :return_type => return_type
695
+ )
696
+
697
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
698
+ if @api_client.config.debugging
699
+ @api_client.config.logger.debug "API called: DefaultApi#payment_failed_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
700
+ end
701
+ return data, status_code, headers
702
+ end
703
+
704
+ # Payment Succeeded
705
+ # Occurs when a customer payment is confirmed as succeeded.
706
+ # @param [Hash] opts the optional parameters
707
+ # @option opts [Order] :order
708
+ # @return [nil]
709
+ def payment_succeeded_post(opts = {})
710
+ payment_succeeded_post_with_http_info(opts)
711
+ nil
712
+ end
713
+
714
+ # Payment Succeeded
715
+ # Occurs when a customer payment is confirmed as succeeded.
716
+ # @param [Hash] opts the optional parameters
717
+ # @option opts [Order] :order
718
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
719
+ def payment_succeeded_post_with_http_info(opts = {})
720
+ if @api_client.config.debugging
721
+ @api_client.config.logger.debug 'Calling API: DefaultApi.payment_succeeded_post ...'
722
+ end
723
+ # resource path
724
+ local_var_path = '/payment.succeeded'
725
+
726
+ # query parameters
727
+ query_params = opts[:query_params] || {}
728
+
729
+ # header parameters
730
+ header_params = opts[:header_params] || {}
731
+ # HTTP header 'Content-Type'
732
+ content_type = @api_client.select_header_content_type(['application/json'])
733
+ if !content_type.nil?
734
+ header_params['Content-Type'] = content_type
735
+ end
736
+
737
+ # form parameters
738
+ form_params = opts[:form_params] || {}
739
+
740
+ # http body (model)
741
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'order'])
742
+
743
+ # return_type
744
+ return_type = opts[:debug_return_type]
745
+
746
+ # auth_names
747
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
748
+
749
+ new_options = opts.merge(
750
+ :operation => :"DefaultApi.payment_succeeded_post",
751
+ :header_params => header_params,
752
+ :query_params => query_params,
753
+ :form_params => form_params,
754
+ :body => post_body,
755
+ :auth_names => auth_names,
756
+ :return_type => return_type
757
+ )
758
+
759
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
760
+ if @api_client.config.debugging
761
+ @api_client.config.logger.debug "API called: DefaultApi#payment_succeeded_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
762
+ end
763
+ return data, status_code, headers
764
+ end
765
+
766
+ # Refund Failed
767
+ # Occurs when a payment refund fails.
768
+ # @param [Hash] opts the optional parameters
769
+ # @option opts [WebhookRefundPayload] :webhook_refund_payload
770
+ # @return [nil]
771
+ def refund_failed_post(opts = {})
772
+ refund_failed_post_with_http_info(opts)
773
+ nil
774
+ end
775
+
776
+ # Refund Failed
777
+ # Occurs when a payment refund fails.
778
+ # @param [Hash] opts the optional parameters
779
+ # @option opts [WebhookRefundPayload] :webhook_refund_payload
780
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
781
+ def refund_failed_post_with_http_info(opts = {})
782
+ if @api_client.config.debugging
783
+ @api_client.config.logger.debug 'Calling API: DefaultApi.refund_failed_post ...'
784
+ end
785
+ # resource path
786
+ local_var_path = '/refund.failed'
787
+
788
+ # query parameters
789
+ query_params = opts[:query_params] || {}
790
+
791
+ # header parameters
792
+ header_params = opts[:header_params] || {}
793
+ # HTTP header 'Content-Type'
794
+ content_type = @api_client.select_header_content_type(['application/json'])
795
+ if !content_type.nil?
796
+ header_params['Content-Type'] = content_type
797
+ end
798
+
799
+ # form parameters
800
+ form_params = opts[:form_params] || {}
801
+
802
+ # http body (model)
803
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_refund_payload'])
804
+
805
+ # return_type
806
+ return_type = opts[:debug_return_type]
807
+
808
+ # auth_names
809
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
810
+
811
+ new_options = opts.merge(
812
+ :operation => :"DefaultApi.refund_failed_post",
813
+ :header_params => header_params,
814
+ :query_params => query_params,
815
+ :form_params => form_params,
816
+ :body => post_body,
817
+ :auth_names => auth_names,
818
+ :return_type => return_type
819
+ )
820
+
821
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
822
+ if @api_client.config.debugging
823
+ @api_client.config.logger.debug "API called: DefaultApi#refund_failed_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
824
+ end
825
+ return data, status_code, headers
826
+ end
827
+
828
+ # Refund Succeeded
829
+ # Occurs when a payment refund is confirmed as succeeded.
830
+ # @param [Hash] opts the optional parameters
831
+ # @option opts [WebhookRefundPayload] :webhook_refund_payload
832
+ # @return [nil]
833
+ def refund_succeeded_post(opts = {})
834
+ refund_succeeded_post_with_http_info(opts)
835
+ nil
836
+ end
837
+
838
+ # Refund Succeeded
839
+ # Occurs when a payment refund is confirmed as succeeded.
840
+ # @param [Hash] opts the optional parameters
841
+ # @option opts [WebhookRefundPayload] :webhook_refund_payload
842
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
843
+ def refund_succeeded_post_with_http_info(opts = {})
844
+ if @api_client.config.debugging
845
+ @api_client.config.logger.debug 'Calling API: DefaultApi.refund_succeeded_post ...'
846
+ end
847
+ # resource path
848
+ local_var_path = '/refund.succeeded'
849
+
850
+ # query parameters
851
+ query_params = opts[:query_params] || {}
852
+
853
+ # header parameters
854
+ header_params = opts[:header_params] || {}
855
+ # HTTP header 'Content-Type'
856
+ content_type = @api_client.select_header_content_type(['application/json'])
857
+ if !content_type.nil?
858
+ header_params['Content-Type'] = content_type
859
+ end
860
+
861
+ # form parameters
862
+ form_params = opts[:form_params] || {}
863
+
864
+ # http body (model)
865
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_refund_payload'])
866
+
867
+ # return_type
868
+ return_type = opts[:debug_return_type]
869
+
870
+ # auth_names
871
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
872
+
873
+ new_options = opts.merge(
874
+ :operation => :"DefaultApi.refund_succeeded_post",
875
+ :header_params => header_params,
876
+ :query_params => query_params,
877
+ :form_params => form_params,
878
+ :body => post_body,
879
+ :auth_names => auth_names,
880
+ :return_type => return_type
881
+ )
882
+
883
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
884
+ if @api_client.config.debugging
885
+ @api_client.config.logger.debug "API called: DefaultApi#refund_succeeded_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
886
+ end
887
+ return data, status_code, headers
888
+ end
889
+
890
+ # Subscription Created
891
+ # Occurs when a customer subscription is successfully started.
892
+ # @param [Hash] opts the optional parameters
893
+ # @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
894
+ # @return [nil]
895
+ def subscription_created_post(opts = {})
896
+ subscription_created_post_with_http_info(opts)
897
+ nil
898
+ end
899
+
900
+ # Subscription Created
901
+ # Occurs when a customer subscription is successfully started.
902
+ # @param [Hash] opts the optional parameters
903
+ # @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
904
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
905
+ def subscription_created_post_with_http_info(opts = {})
906
+ if @api_client.config.debugging
907
+ @api_client.config.logger.debug 'Calling API: DefaultApi.subscription_created_post ...'
908
+ end
909
+ # resource path
910
+ local_var_path = '/subscription.created'
911
+
912
+ # query parameters
913
+ query_params = opts[:query_params] || {}
914
+
915
+ # header parameters
916
+ header_params = opts[:header_params] || {}
917
+ # HTTP header 'Content-Type'
918
+ content_type = @api_client.select_header_content_type(['application/json'])
919
+ if !content_type.nil?
920
+ header_params['Content-Type'] = content_type
921
+ end
922
+
923
+ # form parameters
924
+ form_params = opts[:form_params] || {}
925
+
926
+ # http body (model)
927
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_subscription_payload'])
928
+
929
+ # return_type
930
+ return_type = opts[:debug_return_type]
931
+
932
+ # auth_names
933
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
934
+
935
+ new_options = opts.merge(
936
+ :operation => :"DefaultApi.subscription_created_post",
937
+ :header_params => header_params,
938
+ :query_params => query_params,
939
+ :form_params => form_params,
940
+ :body => post_body,
941
+ :auth_names => auth_names,
942
+ :return_type => return_type
943
+ )
944
+
945
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
946
+ if @api_client.config.debugging
947
+ @api_client.config.logger.debug "API called: DefaultApi#subscription_created_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
948
+ end
949
+ return data, status_code, headers
950
+ end
951
+
952
+ # Subscription Deactivated
953
+ # Occurs when a customer subscription is deactivated or expired.
954
+ # @param [Hash] opts the optional parameters
955
+ # @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
956
+ # @return [nil]
957
+ def subscription_deactivated_post(opts = {})
958
+ subscription_deactivated_post_with_http_info(opts)
959
+ nil
960
+ end
961
+
962
+ # Subscription Deactivated
963
+ # Occurs when a customer subscription is deactivated or expired.
964
+ # @param [Hash] opts the optional parameters
965
+ # @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
966
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
967
+ def subscription_deactivated_post_with_http_info(opts = {})
968
+ if @api_client.config.debugging
969
+ @api_client.config.logger.debug 'Calling API: DefaultApi.subscription_deactivated_post ...'
970
+ end
971
+ # resource path
972
+ local_var_path = '/subscription.deactivated'
973
+
974
+ # query parameters
975
+ query_params = opts[:query_params] || {}
976
+
977
+ # header parameters
978
+ header_params = opts[:header_params] || {}
979
+ # HTTP header 'Content-Type'
980
+ content_type = @api_client.select_header_content_type(['application/json'])
981
+ if !content_type.nil?
982
+ header_params['Content-Type'] = content_type
983
+ end
984
+
985
+ # form parameters
986
+ form_params = opts[:form_params] || {}
987
+
988
+ # http body (model)
989
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_subscription_payload'])
990
+
991
+ # return_type
992
+ return_type = opts[:debug_return_type]
993
+
994
+ # auth_names
995
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
996
+
997
+ new_options = opts.merge(
998
+ :operation => :"DefaultApi.subscription_deactivated_post",
999
+ :header_params => header_params,
1000
+ :query_params => query_params,
1001
+ :form_params => form_params,
1002
+ :body => post_body,
1003
+ :auth_names => auth_names,
1004
+ :return_type => return_type
1005
+ )
1006
+
1007
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1008
+ if @api_client.config.debugging
1009
+ @api_client.config.logger.debug "API called: DefaultApi#subscription_deactivated_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1010
+ end
1011
+ return data, status_code, headers
1012
+ end
1013
+
1014
+ # Subscription Updated
1015
+ # Occurs when a customer subscription is updated (e.g., cancel at period end changes).
1016
+ # @param [Hash] opts the optional parameters
1017
+ # @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
1018
+ # @return [nil]
1019
+ def subscription_updated_post(opts = {})
1020
+ subscription_updated_post_with_http_info(opts)
1021
+ nil
1022
+ end
1023
+
1024
+ # Subscription Updated
1025
+ # Occurs when a customer subscription is updated (e.g., cancel at period end changes).
1026
+ # @param [Hash] opts the optional parameters
1027
+ # @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
1028
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1029
+ def subscription_updated_post_with_http_info(opts = {})
1030
+ if @api_client.config.debugging
1031
+ @api_client.config.logger.debug 'Calling API: DefaultApi.subscription_updated_post ...'
1032
+ end
1033
+ # resource path
1034
+ local_var_path = '/subscription.updated'
1035
+
1036
+ # query parameters
1037
+ query_params = opts[:query_params] || {}
1038
+
1039
+ # header parameters
1040
+ header_params = opts[:header_params] || {}
1041
+ # HTTP header 'Content-Type'
1042
+ content_type = @api_client.select_header_content_type(['application/json'])
1043
+ if !content_type.nil?
1044
+ header_params['Content-Type'] = content_type
1045
+ end
1046
+
1047
+ # form parameters
1048
+ form_params = opts[:form_params] || {}
1049
+
1050
+ # http body (model)
1051
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'webhook_subscription_payload'])
1052
+
1053
+ # return_type
1054
+ return_type = opts[:debug_return_type]
1055
+
1056
+ # auth_names
1057
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
1058
+
1059
+ new_options = opts.merge(
1060
+ :operation => :"DefaultApi.subscription_updated_post",
1061
+ :header_params => header_params,
1062
+ :query_params => query_params,
1063
+ :form_params => form_params,
1064
+ :body => post_body,
1065
+ :auth_names => auth_names,
1066
+ :return_type => return_type
1067
+ )
1068
+
1069
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1070
+ if @api_client.config.debugging
1071
+ @api_client.config.logger.debug "API called: DefaultApi#subscription_updated_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1072
+ end
1073
+ return data, status_code, headers
1074
+ end
1075
+ end
1076
+ end