mailsafepro 1.0.0
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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +256 -0
- data/Rakefile +10 -0
- data/docs/APIKeyCreateRequest.md +20 -0
- data/docs/APIKeyListResponse.md +22 -0
- data/docs/APIKeyMeta.md +34 -0
- data/docs/APIKeysApi.md +1241 -0
- data/docs/AuthenticationApi.md +1171 -0
- data/docs/BatchEmailResponse.md +28 -0
- data/docs/BatchValidationRequest.md +26 -0
- data/docs/BillingApi.md +689 -0
- data/docs/BodyChangePlanBillingBillingChangePlanPost.md +18 -0
- data/docs/CheckoutRequest.md +18 -0
- data/docs/CheckoutSessionResponse.md +18 -0
- data/docs/DNSInfo.md +26 -0
- data/docs/DNSRecordDKIM.md +26 -0
- data/docs/DNSRecordDMARC.md +24 -0
- data/docs/DNSRecordSPF.md +24 -0
- data/docs/DefaultApi.md +141 -0
- data/docs/DeveloperToolsApi.md +154 -0
- data/docs/EmailResponse.md +46 -0
- data/docs/EmailValidationApi.md +479 -0
- data/docs/EmailValidationRequest.md +26 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/HealthApi.md +937 -0
- data/docs/JobCreateRequest.md +32 -0
- data/docs/JobCreateResponse.md +22 -0
- data/docs/JobResultEntry.md +34 -0
- data/docs/JobResultsPage.md +26 -0
- data/docs/JobStatusResponse.md +28 -0
- data/docs/JobsApi.md +433 -0
- data/docs/KeyRotationRequest.md +22 -0
- data/docs/LogsApi.md +154 -0
- data/docs/PlanEnum.md +15 -0
- data/docs/PriorityEnum.md +15 -0
- data/docs/RegisterEndpoint.md +18 -0
- data/docs/ResponseTestNotificationBillingBillingTestNotificationPostValue.md +15 -0
- data/docs/RiskLevelEnum.md +15 -0
- data/docs/RotateSecret.md +18 -0
- data/docs/SMTPInfo.md +26 -0
- data/docs/SubscriptionResponse.md +24 -0
- data/docs/UserLogin.md +20 -0
- data/docs/UserRegister.md +22 -0
- data/docs/ValidationApi.md +479 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/WebhookCreate.md +24 -0
- data/docs/WebhookResponse.md +22 -0
- data/docs/WebhookUpdate.md +24 -0
- data/docs/WebhooksApi.md +776 -0
- data/docs/WebhooksManagementApi.md +500 -0
- data/git_push.sh +57 -0
- data/lib/mailsafepro/api/api_keys_api.rb +1148 -0
- data/lib/mailsafepro/api/authentication_api.rb +1114 -0
- data/lib/mailsafepro/api/billing_api.rb +670 -0
- data/lib/mailsafepro/api/default_api.rb +149 -0
- data/lib/mailsafepro/api/developer_tools_api.rb +155 -0
- data/lib/mailsafepro/api/email_validation_api.rb +486 -0
- data/lib/mailsafepro/api/health_api.rb +877 -0
- data/lib/mailsafepro/api/jobs_api.rb +452 -0
- data/lib/mailsafepro/api/logs_api.rb +155 -0
- data/lib/mailsafepro/api/validation_api.rb +486 -0
- data/lib/mailsafepro/api/webhooks_api.rb +768 -0
- data/lib/mailsafepro/api/webhooks_management_api.rb +480 -0
- data/lib/mailsafepro/api_client.rb +397 -0
- data/lib/mailsafepro/api_error.rb +58 -0
- data/lib/mailsafepro/api_model_base.rb +88 -0
- data/lib/mailsafepro/configuration.rb +316 -0
- data/lib/mailsafepro/models/api_key_create_request.rb +185 -0
- data/lib/mailsafepro/models/api_key_list_response.rb +240 -0
- data/lib/mailsafepro/models/api_key_meta.rb +338 -0
- data/lib/mailsafepro/models/batch_email_response.rb +348 -0
- data/lib/mailsafepro/models/batch_validation_request.rb +290 -0
- data/lib/mailsafepro/models/body_change_plan_billing_billing_change_plan_post.rb +164 -0
- data/lib/mailsafepro/models/checkout_request.rb +166 -0
- data/lib/mailsafepro/models/checkout_session_response.rb +165 -0
- data/lib/mailsafepro/models/dns_info.rb +193 -0
- data/lib/mailsafepro/models/dns_record_dkim.rb +189 -0
- data/lib/mailsafepro/models/dns_record_dmarc.rb +179 -0
- data/lib/mailsafepro/models/dns_record_spf.rb +179 -0
- data/lib/mailsafepro/models/email_response.rb +454 -0
- data/lib/mailsafepro/models/email_validation_request.rb +252 -0
- data/lib/mailsafepro/models/http_validation_error.rb +149 -0
- data/lib/mailsafepro/models/job_create_request.rb +251 -0
- data/lib/mailsafepro/models/job_create_response.rb +216 -0
- data/lib/mailsafepro/models/job_result_entry.rb +257 -0
- data/lib/mailsafepro/models/job_results_page.rb +270 -0
- data/lib/mailsafepro/models/job_status_response.rb +231 -0
- data/lib/mailsafepro/models/key_rotation_request.rb +269 -0
- data/lib/mailsafepro/models/plan_enum.rb +41 -0
- data/lib/mailsafepro/models/priority_enum.rb +41 -0
- data/lib/mailsafepro/models/register_endpoint.rb +173 -0
- data/lib/mailsafepro/models/response_test_notification_billing_billing_test_notification_post_value.rb +103 -0
- data/lib/mailsafepro/models/risk_level_enum.rb +42 -0
- data/lib/mailsafepro/models/rotate_secret.rb +164 -0
- data/lib/mailsafepro/models/smtp_info.rb +206 -0
- data/lib/mailsafepro/models/subscription_response.rb +196 -0
- data/lib/mailsafepro/models/user_login.rb +211 -0
- data/lib/mailsafepro/models/user_register.rb +243 -0
- data/lib/mailsafepro/models/validation_error.rb +218 -0
- data/lib/mailsafepro/models/validation_error_loc_inner.rb +103 -0
- data/lib/mailsafepro/models/webhook_create.rb +213 -0
- data/lib/mailsafepro/models/webhook_response.rb +185 -0
- data/lib/mailsafepro/models/webhook_update.rb +204 -0
- data/lib/mailsafepro/version.rb +15 -0
- data/lib/mailsafepro.rb +88 -0
- data/mailsafepro.gemspec +39 -0
- data/spec/api/api_keys_api_spec.rb +245 -0
- data/spec/api/authentication_api_spec.rb +239 -0
- data/spec/api/billing_api_spec.rb +155 -0
- data/spec/api/default_api_spec.rb +60 -0
- data/spec/api/developer_tools_api_spec.rb +62 -0
- data/spec/api/email_validation_api_spec.rb +125 -0
- data/spec/api/health_api_spec.rb +200 -0
- data/spec/api/jobs_api_spec.rb +119 -0
- data/spec/api/logs_api_spec.rb +62 -0
- data/spec/api/validation_api_spec.rb +125 -0
- data/spec/api/webhooks_api_spec.rb +172 -0
- data/spec/api/webhooks_management_api_spec.rb +120 -0
- data/spec/models/api_key_create_request_spec.rb +42 -0
- data/spec/models/api_key_list_response_spec.rb +48 -0
- data/spec/models/api_key_meta_spec.rb +84 -0
- data/spec/models/batch_email_response_spec.rb +66 -0
- data/spec/models/batch_validation_request_spec.rb +60 -0
- data/spec/models/body_change_plan_billing_billing_change_plan_post_spec.rb +36 -0
- data/spec/models/checkout_request_spec.rb +36 -0
- data/spec/models/checkout_session_response_spec.rb +36 -0
- data/spec/models/dns_info_spec.rb +60 -0
- data/spec/models/dns_record_dkim_spec.rb +60 -0
- data/spec/models/dns_record_dmarc_spec.rb +54 -0
- data/spec/models/dns_record_spf_spec.rb +54 -0
- data/spec/models/email_response_spec.rb +120 -0
- data/spec/models/email_validation_request_spec.rb +60 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/job_create_request_spec.rb +78 -0
- data/spec/models/job_create_response_spec.rb +48 -0
- data/spec/models/job_result_entry_spec.rb +84 -0
- data/spec/models/job_results_page_spec.rb +60 -0
- data/spec/models/job_status_response_spec.rb +66 -0
- data/spec/models/key_rotation_request_spec.rb +48 -0
- data/spec/models/plan_enum_spec.rb +30 -0
- data/spec/models/priority_enum_spec.rb +30 -0
- data/spec/models/register_endpoint_spec.rb +36 -0
- data/spec/models/response_test_notification_billing_billing_test_notification_post_value_spec.rb +21 -0
- data/spec/models/risk_level_enum_spec.rb +30 -0
- data/spec/models/rotate_secret_spec.rb +36 -0
- data/spec/models/smtp_info_spec.rb +60 -0
- data/spec/models/subscription_response_spec.rb +54 -0
- data/spec/models/user_login_spec.rb +42 -0
- data/spec/models/user_register_spec.rb +48 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/webhook_create_spec.rb +54 -0
- data/spec/models/webhook_response_spec.rb +48 -0
- data/spec/models/webhook_update_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +291 -0
|
@@ -0,0 +1,670 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Email Validation API — Enterprise-grade Email Verification
|
|
3
|
+
|
|
4
|
+
#API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module MailSafePro
|
|
16
|
+
class BillingApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Change Plan
|
|
23
|
+
# Cambiar el plan del usuario.
|
|
24
|
+
# @param body_change_plan_billing_billing_change_plan_post [BodyChangePlanBillingBillingChangePlanPost]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [Object]
|
|
27
|
+
def change_plan_billing_billing_change_plan_post(body_change_plan_billing_billing_change_plan_post, opts = {})
|
|
28
|
+
data, _status_code, _headers = change_plan_billing_billing_change_plan_post_with_http_info(body_change_plan_billing_billing_change_plan_post, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Change Plan
|
|
33
|
+
# Cambiar el plan del usuario.
|
|
34
|
+
# @param body_change_plan_billing_billing_change_plan_post [BodyChangePlanBillingBillingChangePlanPost]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
37
|
+
def change_plan_billing_billing_change_plan_post_with_http_info(body_change_plan_billing_billing_change_plan_post, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.change_plan_billing_billing_change_plan_post ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'body_change_plan_billing_billing_change_plan_post' is set
|
|
42
|
+
if @api_client.config.client_side_validation && body_change_plan_billing_billing_change_plan_post.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'body_change_plan_billing_billing_change_plan_post' when calling BillingApi.change_plan_billing_billing_change_plan_post"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/billing/billing/change-plan'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body_change_plan_billing_billing_change_plan_post)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"BillingApi.change_plan_billing_billing_change_plan_post",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: BillingApi#change_plan_billing_billing_change_plan_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Change Plan
|
|
91
|
+
# Cambiar el plan del usuario.
|
|
92
|
+
# @param body_change_plan_billing_billing_change_plan_post [BodyChangePlanBillingBillingChangePlanPost]
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [Object]
|
|
95
|
+
def change_plan_billing_billing_change_plan_post_0(body_change_plan_billing_billing_change_plan_post, opts = {})
|
|
96
|
+
data, _status_code, _headers = change_plan_billing_billing_change_plan_post_0_with_http_info(body_change_plan_billing_billing_change_plan_post, opts)
|
|
97
|
+
data
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Change Plan
|
|
101
|
+
# Cambiar el plan del usuario.
|
|
102
|
+
# @param body_change_plan_billing_billing_change_plan_post [BodyChangePlanBillingBillingChangePlanPost]
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
105
|
+
def change_plan_billing_billing_change_plan_post_0_with_http_info(body_change_plan_billing_billing_change_plan_post, opts = {})
|
|
106
|
+
if @api_client.config.debugging
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.change_plan_billing_billing_change_plan_post_0 ...'
|
|
108
|
+
end
|
|
109
|
+
# verify the required parameter 'body_change_plan_billing_billing_change_plan_post' is set
|
|
110
|
+
if @api_client.config.client_side_validation && body_change_plan_billing_billing_change_plan_post.nil?
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'body_change_plan_billing_billing_change_plan_post' when calling BillingApi.change_plan_billing_billing_change_plan_post_0"
|
|
112
|
+
end
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = '/billing/billing/change-plan'
|
|
115
|
+
|
|
116
|
+
# query parameters
|
|
117
|
+
query_params = opts[:query_params] || {}
|
|
118
|
+
|
|
119
|
+
# header parameters
|
|
120
|
+
header_params = opts[:header_params] || {}
|
|
121
|
+
# HTTP header 'Accept' (if needed)
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
123
|
+
# HTTP header 'Content-Type'
|
|
124
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
125
|
+
if !content_type.nil?
|
|
126
|
+
header_params['Content-Type'] = content_type
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# form parameters
|
|
130
|
+
form_params = opts[:form_params] || {}
|
|
131
|
+
|
|
132
|
+
# http body (model)
|
|
133
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body_change_plan_billing_billing_change_plan_post)
|
|
134
|
+
|
|
135
|
+
# return_type
|
|
136
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
137
|
+
|
|
138
|
+
# auth_names
|
|
139
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
140
|
+
|
|
141
|
+
new_options = opts.merge(
|
|
142
|
+
:operation => :"BillingApi.change_plan_billing_billing_change_plan_post_0",
|
|
143
|
+
:header_params => header_params,
|
|
144
|
+
:query_params => query_params,
|
|
145
|
+
:form_params => form_params,
|
|
146
|
+
:body => post_body,
|
|
147
|
+
:auth_names => auth_names,
|
|
148
|
+
:return_type => return_type
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
152
|
+
if @api_client.config.debugging
|
|
153
|
+
@api_client.config.logger.debug "API called: BillingApi#change_plan_billing_billing_change_plan_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
154
|
+
end
|
|
155
|
+
return data, status_code, headers
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Create Checkout Session
|
|
159
|
+
# Crea una checkout session de Stripe para suscripción.
|
|
160
|
+
# @param checkout_request [CheckoutRequest]
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @return [CheckoutSessionResponse]
|
|
163
|
+
def create_checkout_session_billing_billing_create_checkout_session_post(checkout_request, opts = {})
|
|
164
|
+
data, _status_code, _headers = create_checkout_session_billing_billing_create_checkout_session_post_with_http_info(checkout_request, opts)
|
|
165
|
+
data
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Create Checkout Session
|
|
169
|
+
# Crea una checkout session de Stripe para suscripción.
|
|
170
|
+
# @param checkout_request [CheckoutRequest]
|
|
171
|
+
# @param [Hash] opts the optional parameters
|
|
172
|
+
# @return [Array<(CheckoutSessionResponse, Integer, Hash)>] CheckoutSessionResponse data, response status code and response headers
|
|
173
|
+
def create_checkout_session_billing_billing_create_checkout_session_post_with_http_info(checkout_request, opts = {})
|
|
174
|
+
if @api_client.config.debugging
|
|
175
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.create_checkout_session_billing_billing_create_checkout_session_post ...'
|
|
176
|
+
end
|
|
177
|
+
# verify the required parameter 'checkout_request' is set
|
|
178
|
+
if @api_client.config.client_side_validation && checkout_request.nil?
|
|
179
|
+
fail ArgumentError, "Missing the required parameter 'checkout_request' when calling BillingApi.create_checkout_session_billing_billing_create_checkout_session_post"
|
|
180
|
+
end
|
|
181
|
+
# resource path
|
|
182
|
+
local_var_path = '/billing/billing/create-checkout-session'
|
|
183
|
+
|
|
184
|
+
# query parameters
|
|
185
|
+
query_params = opts[:query_params] || {}
|
|
186
|
+
|
|
187
|
+
# header parameters
|
|
188
|
+
header_params = opts[:header_params] || {}
|
|
189
|
+
# HTTP header 'Accept' (if needed)
|
|
190
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
191
|
+
# HTTP header 'Content-Type'
|
|
192
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
193
|
+
if !content_type.nil?
|
|
194
|
+
header_params['Content-Type'] = content_type
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# form parameters
|
|
198
|
+
form_params = opts[:form_params] || {}
|
|
199
|
+
|
|
200
|
+
# http body (model)
|
|
201
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(checkout_request)
|
|
202
|
+
|
|
203
|
+
# return_type
|
|
204
|
+
return_type = opts[:debug_return_type] || 'CheckoutSessionResponse'
|
|
205
|
+
|
|
206
|
+
# auth_names
|
|
207
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
208
|
+
|
|
209
|
+
new_options = opts.merge(
|
|
210
|
+
:operation => :"BillingApi.create_checkout_session_billing_billing_create_checkout_session_post",
|
|
211
|
+
:header_params => header_params,
|
|
212
|
+
:query_params => query_params,
|
|
213
|
+
:form_params => form_params,
|
|
214
|
+
:body => post_body,
|
|
215
|
+
:auth_names => auth_names,
|
|
216
|
+
:return_type => return_type
|
|
217
|
+
)
|
|
218
|
+
|
|
219
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
220
|
+
if @api_client.config.debugging
|
|
221
|
+
@api_client.config.logger.debug "API called: BillingApi#create_checkout_session_billing_billing_create_checkout_session_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
222
|
+
end
|
|
223
|
+
return data, status_code, headers
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Create Checkout Session
|
|
227
|
+
# Crea una checkout session de Stripe para suscripción.
|
|
228
|
+
# @param checkout_request [CheckoutRequest]
|
|
229
|
+
# @param [Hash] opts the optional parameters
|
|
230
|
+
# @return [CheckoutSessionResponse]
|
|
231
|
+
def create_checkout_session_billing_billing_create_checkout_session_post_0(checkout_request, opts = {})
|
|
232
|
+
data, _status_code, _headers = create_checkout_session_billing_billing_create_checkout_session_post_0_with_http_info(checkout_request, opts)
|
|
233
|
+
data
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# Create Checkout Session
|
|
237
|
+
# Crea una checkout session de Stripe para suscripción.
|
|
238
|
+
# @param checkout_request [CheckoutRequest]
|
|
239
|
+
# @param [Hash] opts the optional parameters
|
|
240
|
+
# @return [Array<(CheckoutSessionResponse, Integer, Hash)>] CheckoutSessionResponse data, response status code and response headers
|
|
241
|
+
def create_checkout_session_billing_billing_create_checkout_session_post_0_with_http_info(checkout_request, opts = {})
|
|
242
|
+
if @api_client.config.debugging
|
|
243
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.create_checkout_session_billing_billing_create_checkout_session_post_0 ...'
|
|
244
|
+
end
|
|
245
|
+
# verify the required parameter 'checkout_request' is set
|
|
246
|
+
if @api_client.config.client_side_validation && checkout_request.nil?
|
|
247
|
+
fail ArgumentError, "Missing the required parameter 'checkout_request' when calling BillingApi.create_checkout_session_billing_billing_create_checkout_session_post_0"
|
|
248
|
+
end
|
|
249
|
+
# resource path
|
|
250
|
+
local_var_path = '/billing/billing/create-checkout-session'
|
|
251
|
+
|
|
252
|
+
# query parameters
|
|
253
|
+
query_params = opts[:query_params] || {}
|
|
254
|
+
|
|
255
|
+
# header parameters
|
|
256
|
+
header_params = opts[:header_params] || {}
|
|
257
|
+
# HTTP header 'Accept' (if needed)
|
|
258
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
259
|
+
# HTTP header 'Content-Type'
|
|
260
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
261
|
+
if !content_type.nil?
|
|
262
|
+
header_params['Content-Type'] = content_type
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# form parameters
|
|
266
|
+
form_params = opts[:form_params] || {}
|
|
267
|
+
|
|
268
|
+
# http body (model)
|
|
269
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(checkout_request)
|
|
270
|
+
|
|
271
|
+
# return_type
|
|
272
|
+
return_type = opts[:debug_return_type] || 'CheckoutSessionResponse'
|
|
273
|
+
|
|
274
|
+
# auth_names
|
|
275
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
276
|
+
|
|
277
|
+
new_options = opts.merge(
|
|
278
|
+
:operation => :"BillingApi.create_checkout_session_billing_billing_create_checkout_session_post_0",
|
|
279
|
+
:header_params => header_params,
|
|
280
|
+
:query_params => query_params,
|
|
281
|
+
:form_params => form_params,
|
|
282
|
+
:body => post_body,
|
|
283
|
+
:auth_names => auth_names,
|
|
284
|
+
:return_type => return_type
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
288
|
+
if @api_client.config.debugging
|
|
289
|
+
@api_client.config.logger.debug "API called: BillingApi#create_checkout_session_billing_billing_create_checkout_session_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
290
|
+
end
|
|
291
|
+
return data, status_code, headers
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# Get Subscription
|
|
295
|
+
# Devuelve información de suscripción (plan y próxima fecha de cobro).
|
|
296
|
+
# @param [Hash] opts the optional parameters
|
|
297
|
+
# @option opts [String] :x_api_key
|
|
298
|
+
# @option opts [String] :authorization
|
|
299
|
+
# @return [SubscriptionResponse]
|
|
300
|
+
def get_subscription_billing_billing_subscription_get(opts = {})
|
|
301
|
+
data, _status_code, _headers = get_subscription_billing_billing_subscription_get_with_http_info(opts)
|
|
302
|
+
data
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Get Subscription
|
|
306
|
+
# Devuelve información de suscripción (plan y próxima fecha de cobro).
|
|
307
|
+
# @param [Hash] opts the optional parameters
|
|
308
|
+
# @option opts [String] :x_api_key
|
|
309
|
+
# @option opts [String] :authorization
|
|
310
|
+
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
|
311
|
+
def get_subscription_billing_billing_subscription_get_with_http_info(opts = {})
|
|
312
|
+
if @api_client.config.debugging
|
|
313
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.get_subscription_billing_billing_subscription_get ...'
|
|
314
|
+
end
|
|
315
|
+
# resource path
|
|
316
|
+
local_var_path = '/billing/billing/subscription'
|
|
317
|
+
|
|
318
|
+
# query parameters
|
|
319
|
+
query_params = opts[:query_params] || {}
|
|
320
|
+
|
|
321
|
+
# header parameters
|
|
322
|
+
header_params = opts[:header_params] || {}
|
|
323
|
+
# HTTP header 'Accept' (if needed)
|
|
324
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
325
|
+
header_params[:'X-API-Key'] = opts[:'x_api_key'] if !opts[:'x_api_key'].nil?
|
|
326
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
|
327
|
+
|
|
328
|
+
# form parameters
|
|
329
|
+
form_params = opts[:form_params] || {}
|
|
330
|
+
|
|
331
|
+
# http body (model)
|
|
332
|
+
post_body = opts[:debug_body]
|
|
333
|
+
|
|
334
|
+
# return_type
|
|
335
|
+
return_type = opts[:debug_return_type] || 'SubscriptionResponse'
|
|
336
|
+
|
|
337
|
+
# auth_names
|
|
338
|
+
auth_names = opts[:debug_auth_names] || []
|
|
339
|
+
|
|
340
|
+
new_options = opts.merge(
|
|
341
|
+
:operation => :"BillingApi.get_subscription_billing_billing_subscription_get",
|
|
342
|
+
:header_params => header_params,
|
|
343
|
+
:query_params => query_params,
|
|
344
|
+
:form_params => form_params,
|
|
345
|
+
:body => post_body,
|
|
346
|
+
:auth_names => auth_names,
|
|
347
|
+
:return_type => return_type
|
|
348
|
+
)
|
|
349
|
+
|
|
350
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
351
|
+
if @api_client.config.debugging
|
|
352
|
+
@api_client.config.logger.debug "API called: BillingApi#get_subscription_billing_billing_subscription_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
353
|
+
end
|
|
354
|
+
return data, status_code, headers
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
# Get Subscription
|
|
358
|
+
# Devuelve información de suscripción (plan y próxima fecha de cobro).
|
|
359
|
+
# @param [Hash] opts the optional parameters
|
|
360
|
+
# @option opts [String] :x_api_key
|
|
361
|
+
# @option opts [String] :authorization
|
|
362
|
+
# @return [SubscriptionResponse]
|
|
363
|
+
def get_subscription_billing_billing_subscription_get_0(opts = {})
|
|
364
|
+
data, _status_code, _headers = get_subscription_billing_billing_subscription_get_0_with_http_info(opts)
|
|
365
|
+
data
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# Get Subscription
|
|
369
|
+
# Devuelve información de suscripción (plan y próxima fecha de cobro).
|
|
370
|
+
# @param [Hash] opts the optional parameters
|
|
371
|
+
# @option opts [String] :x_api_key
|
|
372
|
+
# @option opts [String] :authorization
|
|
373
|
+
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
|
374
|
+
def get_subscription_billing_billing_subscription_get_0_with_http_info(opts = {})
|
|
375
|
+
if @api_client.config.debugging
|
|
376
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.get_subscription_billing_billing_subscription_get_0 ...'
|
|
377
|
+
end
|
|
378
|
+
# resource path
|
|
379
|
+
local_var_path = '/billing/billing/subscription'
|
|
380
|
+
|
|
381
|
+
# query parameters
|
|
382
|
+
query_params = opts[:query_params] || {}
|
|
383
|
+
|
|
384
|
+
# header parameters
|
|
385
|
+
header_params = opts[:header_params] || {}
|
|
386
|
+
# HTTP header 'Accept' (if needed)
|
|
387
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
388
|
+
header_params[:'X-API-Key'] = opts[:'x_api_key'] if !opts[:'x_api_key'].nil?
|
|
389
|
+
header_params[:'authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil?
|
|
390
|
+
|
|
391
|
+
# form parameters
|
|
392
|
+
form_params = opts[:form_params] || {}
|
|
393
|
+
|
|
394
|
+
# http body (model)
|
|
395
|
+
post_body = opts[:debug_body]
|
|
396
|
+
|
|
397
|
+
# return_type
|
|
398
|
+
return_type = opts[:debug_return_type] || 'SubscriptionResponse'
|
|
399
|
+
|
|
400
|
+
# auth_names
|
|
401
|
+
auth_names = opts[:debug_auth_names] || []
|
|
402
|
+
|
|
403
|
+
new_options = opts.merge(
|
|
404
|
+
:operation => :"BillingApi.get_subscription_billing_billing_subscription_get_0",
|
|
405
|
+
:header_params => header_params,
|
|
406
|
+
:query_params => query_params,
|
|
407
|
+
:form_params => form_params,
|
|
408
|
+
:body => post_body,
|
|
409
|
+
:auth_names => auth_names,
|
|
410
|
+
:return_type => return_type
|
|
411
|
+
)
|
|
412
|
+
|
|
413
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
414
|
+
if @api_client.config.debugging
|
|
415
|
+
@api_client.config.logger.debug "API called: BillingApi#get_subscription_billing_billing_subscription_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
416
|
+
end
|
|
417
|
+
return data, status_code, headers
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Stripe Webhook
|
|
421
|
+
# Webhook de Stripe.
|
|
422
|
+
# @param [Hash] opts the optional parameters
|
|
423
|
+
# @return [WebhookResponse]
|
|
424
|
+
def stripe_webhook_billing_billing_webhook_post(opts = {})
|
|
425
|
+
data, _status_code, _headers = stripe_webhook_billing_billing_webhook_post_with_http_info(opts)
|
|
426
|
+
data
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# Stripe Webhook
|
|
430
|
+
# Webhook de Stripe.
|
|
431
|
+
# @param [Hash] opts the optional parameters
|
|
432
|
+
# @return [Array<(WebhookResponse, Integer, Hash)>] WebhookResponse data, response status code and response headers
|
|
433
|
+
def stripe_webhook_billing_billing_webhook_post_with_http_info(opts = {})
|
|
434
|
+
if @api_client.config.debugging
|
|
435
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.stripe_webhook_billing_billing_webhook_post ...'
|
|
436
|
+
end
|
|
437
|
+
# resource path
|
|
438
|
+
local_var_path = '/billing/billing/webhook'
|
|
439
|
+
|
|
440
|
+
# query parameters
|
|
441
|
+
query_params = opts[:query_params] || {}
|
|
442
|
+
|
|
443
|
+
# header parameters
|
|
444
|
+
header_params = opts[:header_params] || {}
|
|
445
|
+
# HTTP header 'Accept' (if needed)
|
|
446
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
447
|
+
|
|
448
|
+
# form parameters
|
|
449
|
+
form_params = opts[:form_params] || {}
|
|
450
|
+
|
|
451
|
+
# http body (model)
|
|
452
|
+
post_body = opts[:debug_body]
|
|
453
|
+
|
|
454
|
+
# return_type
|
|
455
|
+
return_type = opts[:debug_return_type] || 'WebhookResponse'
|
|
456
|
+
|
|
457
|
+
# auth_names
|
|
458
|
+
auth_names = opts[:debug_auth_names] || []
|
|
459
|
+
|
|
460
|
+
new_options = opts.merge(
|
|
461
|
+
:operation => :"BillingApi.stripe_webhook_billing_billing_webhook_post",
|
|
462
|
+
:header_params => header_params,
|
|
463
|
+
:query_params => query_params,
|
|
464
|
+
:form_params => form_params,
|
|
465
|
+
:body => post_body,
|
|
466
|
+
:auth_names => auth_names,
|
|
467
|
+
:return_type => return_type
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
471
|
+
if @api_client.config.debugging
|
|
472
|
+
@api_client.config.logger.debug "API called: BillingApi#stripe_webhook_billing_billing_webhook_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
473
|
+
end
|
|
474
|
+
return data, status_code, headers
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Stripe Webhook
|
|
478
|
+
# Webhook de Stripe.
|
|
479
|
+
# @param [Hash] opts the optional parameters
|
|
480
|
+
# @return [WebhookResponse]
|
|
481
|
+
def stripe_webhook_billing_billing_webhook_post_0(opts = {})
|
|
482
|
+
data, _status_code, _headers = stripe_webhook_billing_billing_webhook_post_0_with_http_info(opts)
|
|
483
|
+
data
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
# Stripe Webhook
|
|
487
|
+
# Webhook de Stripe.
|
|
488
|
+
# @param [Hash] opts the optional parameters
|
|
489
|
+
# @return [Array<(WebhookResponse, Integer, Hash)>] WebhookResponse data, response status code and response headers
|
|
490
|
+
def stripe_webhook_billing_billing_webhook_post_0_with_http_info(opts = {})
|
|
491
|
+
if @api_client.config.debugging
|
|
492
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.stripe_webhook_billing_billing_webhook_post_0 ...'
|
|
493
|
+
end
|
|
494
|
+
# resource path
|
|
495
|
+
local_var_path = '/billing/billing/webhook'
|
|
496
|
+
|
|
497
|
+
# query parameters
|
|
498
|
+
query_params = opts[:query_params] || {}
|
|
499
|
+
|
|
500
|
+
# header parameters
|
|
501
|
+
header_params = opts[:header_params] || {}
|
|
502
|
+
# HTTP header 'Accept' (if needed)
|
|
503
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
504
|
+
|
|
505
|
+
# form parameters
|
|
506
|
+
form_params = opts[:form_params] || {}
|
|
507
|
+
|
|
508
|
+
# http body (model)
|
|
509
|
+
post_body = opts[:debug_body]
|
|
510
|
+
|
|
511
|
+
# return_type
|
|
512
|
+
return_type = opts[:debug_return_type] || 'WebhookResponse'
|
|
513
|
+
|
|
514
|
+
# auth_names
|
|
515
|
+
auth_names = opts[:debug_auth_names] || []
|
|
516
|
+
|
|
517
|
+
new_options = opts.merge(
|
|
518
|
+
:operation => :"BillingApi.stripe_webhook_billing_billing_webhook_post_0",
|
|
519
|
+
:header_params => header_params,
|
|
520
|
+
:query_params => query_params,
|
|
521
|
+
:form_params => form_params,
|
|
522
|
+
:body => post_body,
|
|
523
|
+
:auth_names => auth_names,
|
|
524
|
+
:return_type => return_type
|
|
525
|
+
)
|
|
526
|
+
|
|
527
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
528
|
+
if @api_client.config.debugging
|
|
529
|
+
@api_client.config.logger.debug "API called: BillingApi#stripe_webhook_billing_billing_webhook_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
530
|
+
end
|
|
531
|
+
return data, status_code, headers
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
# Test Notification
|
|
535
|
+
# Envía un email de prueba de cambio de plan.
|
|
536
|
+
# @param request_body [Hash<String, String>]
|
|
537
|
+
# @param [Hash] opts the optional parameters
|
|
538
|
+
# @return [Hash<String, ResponseTestNotificationBillingBillingTestNotificationPostValue>]
|
|
539
|
+
def test_notification_billing_billing_test_notification_post(request_body, opts = {})
|
|
540
|
+
data, _status_code, _headers = test_notification_billing_billing_test_notification_post_with_http_info(request_body, opts)
|
|
541
|
+
data
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# Test Notification
|
|
545
|
+
# Envía un email de prueba de cambio de plan.
|
|
546
|
+
# @param request_body [Hash<String, String>]
|
|
547
|
+
# @param [Hash] opts the optional parameters
|
|
548
|
+
# @return [Array<(Hash<String, ResponseTestNotificationBillingBillingTestNotificationPostValue>, Integer, Hash)>] Hash<String, ResponseTestNotificationBillingBillingTestNotificationPostValue> data, response status code and response headers
|
|
549
|
+
def test_notification_billing_billing_test_notification_post_with_http_info(request_body, opts = {})
|
|
550
|
+
if @api_client.config.debugging
|
|
551
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.test_notification_billing_billing_test_notification_post ...'
|
|
552
|
+
end
|
|
553
|
+
# verify the required parameter 'request_body' is set
|
|
554
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
555
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling BillingApi.test_notification_billing_billing_test_notification_post"
|
|
556
|
+
end
|
|
557
|
+
# resource path
|
|
558
|
+
local_var_path = '/billing/billing/test-notification'
|
|
559
|
+
|
|
560
|
+
# query parameters
|
|
561
|
+
query_params = opts[:query_params] || {}
|
|
562
|
+
|
|
563
|
+
# header parameters
|
|
564
|
+
header_params = opts[:header_params] || {}
|
|
565
|
+
# HTTP header 'Accept' (if needed)
|
|
566
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
567
|
+
# HTTP header 'Content-Type'
|
|
568
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
569
|
+
if !content_type.nil?
|
|
570
|
+
header_params['Content-Type'] = content_type
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
# form parameters
|
|
574
|
+
form_params = opts[:form_params] || {}
|
|
575
|
+
|
|
576
|
+
# http body (model)
|
|
577
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
578
|
+
|
|
579
|
+
# return_type
|
|
580
|
+
return_type = opts[:debug_return_type] || 'Hash<String, ResponseTestNotificationBillingBillingTestNotificationPostValue>'
|
|
581
|
+
|
|
582
|
+
# auth_names
|
|
583
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
584
|
+
|
|
585
|
+
new_options = opts.merge(
|
|
586
|
+
:operation => :"BillingApi.test_notification_billing_billing_test_notification_post",
|
|
587
|
+
:header_params => header_params,
|
|
588
|
+
:query_params => query_params,
|
|
589
|
+
:form_params => form_params,
|
|
590
|
+
:body => post_body,
|
|
591
|
+
:auth_names => auth_names,
|
|
592
|
+
:return_type => return_type
|
|
593
|
+
)
|
|
594
|
+
|
|
595
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
596
|
+
if @api_client.config.debugging
|
|
597
|
+
@api_client.config.logger.debug "API called: BillingApi#test_notification_billing_billing_test_notification_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
598
|
+
end
|
|
599
|
+
return data, status_code, headers
|
|
600
|
+
end
|
|
601
|
+
|
|
602
|
+
# Test Notification
|
|
603
|
+
# Envía un email de prueba de cambio de plan.
|
|
604
|
+
# @param request_body [Hash<String, String>]
|
|
605
|
+
# @param [Hash] opts the optional parameters
|
|
606
|
+
# @return [Hash<String, ResponseTestNotificationBillingBillingTestNotificationPostValue>]
|
|
607
|
+
def test_notification_billing_billing_test_notification_post_0(request_body, opts = {})
|
|
608
|
+
data, _status_code, _headers = test_notification_billing_billing_test_notification_post_0_with_http_info(request_body, opts)
|
|
609
|
+
data
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
# Test Notification
|
|
613
|
+
# Envía un email de prueba de cambio de plan.
|
|
614
|
+
# @param request_body [Hash<String, String>]
|
|
615
|
+
# @param [Hash] opts the optional parameters
|
|
616
|
+
# @return [Array<(Hash<String, ResponseTestNotificationBillingBillingTestNotificationPostValue>, Integer, Hash)>] Hash<String, ResponseTestNotificationBillingBillingTestNotificationPostValue> data, response status code and response headers
|
|
617
|
+
def test_notification_billing_billing_test_notification_post_0_with_http_info(request_body, opts = {})
|
|
618
|
+
if @api_client.config.debugging
|
|
619
|
+
@api_client.config.logger.debug 'Calling API: BillingApi.test_notification_billing_billing_test_notification_post_0 ...'
|
|
620
|
+
end
|
|
621
|
+
# verify the required parameter 'request_body' is set
|
|
622
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
|
623
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling BillingApi.test_notification_billing_billing_test_notification_post_0"
|
|
624
|
+
end
|
|
625
|
+
# resource path
|
|
626
|
+
local_var_path = '/billing/billing/test-notification'
|
|
627
|
+
|
|
628
|
+
# query parameters
|
|
629
|
+
query_params = opts[:query_params] || {}
|
|
630
|
+
|
|
631
|
+
# header parameters
|
|
632
|
+
header_params = opts[:header_params] || {}
|
|
633
|
+
# HTTP header 'Accept' (if needed)
|
|
634
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
635
|
+
# HTTP header 'Content-Type'
|
|
636
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
637
|
+
if !content_type.nil?
|
|
638
|
+
header_params['Content-Type'] = content_type
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
# form parameters
|
|
642
|
+
form_params = opts[:form_params] || {}
|
|
643
|
+
|
|
644
|
+
# http body (model)
|
|
645
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
646
|
+
|
|
647
|
+
# return_type
|
|
648
|
+
return_type = opts[:debug_return_type] || 'Hash<String, ResponseTestNotificationBillingBillingTestNotificationPostValue>'
|
|
649
|
+
|
|
650
|
+
# auth_names
|
|
651
|
+
auth_names = opts[:debug_auth_names] || ['Bearer']
|
|
652
|
+
|
|
653
|
+
new_options = opts.merge(
|
|
654
|
+
:operation => :"BillingApi.test_notification_billing_billing_test_notification_post_0",
|
|
655
|
+
:header_params => header_params,
|
|
656
|
+
:query_params => query_params,
|
|
657
|
+
:form_params => form_params,
|
|
658
|
+
:body => post_body,
|
|
659
|
+
:auth_names => auth_names,
|
|
660
|
+
:return_type => return_type
|
|
661
|
+
)
|
|
662
|
+
|
|
663
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
664
|
+
if @api_client.config.debugging
|
|
665
|
+
@api_client.config.logger.debug "API called: BillingApi#test_notification_billing_billing_test_notification_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
666
|
+
end
|
|
667
|
+
return data, status_code, headers
|
|
668
|
+
end
|
|
669
|
+
end
|
|
670
|
+
end
|