Class: Hubspot::Crm::Extensions::Accounting::CallbacksApi
- Inherits:
-
Object
- Object
- Hubspot::Crm::Extensions::Accounting::CallbacksApi
- Defined in:
- lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_customer(request_id, result_id_accounting_response, opts = {}) ⇒ nil
Endpoint for customer creation response Call this endpoint with the response to a customer creation request.
-
#create_customer_with_http_info(request_id, result_id_accounting_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for customer creation response Call this endpoint with the response to a customer creation request.
-
#create_exchange_rate(request_id, exchange_rate_response, opts = {}) ⇒ nil
Endpoint for exchange rate response Call this endpoint with the response to an exchange rate request.
-
#create_exchange_rate_with_http_info(request_id, exchange_rate_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for exchange rate response Call this endpoint with the response to an exchange rate request.
-
#create_invoice(request_id, result_id_accounting_response, opts = {}) ⇒ nil
Endpoint for invoice creation response Call this endpoint with the response to a invoice creation request.
-
#create_invoice_with_http_info(request_id, result_id_accounting_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for invoice creation response Call this endpoint with the response to a invoice creation request.
-
#create_term(request_id, terms_response, opts = {}) ⇒ nil
Endpoint for terms search response Call this endpoint with the response to a terms search request.
-
#create_term_with_http_info(request_id, terms_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for terms search response Call this endpoint with the response to a terms search request.
-
#do_customer_search(request_id, customer_search_response_external, opts = {}) ⇒ nil
Endpoint for customer search response Call this endpoint with the response to a customer search request.
-
#do_customer_search_with_http_info(request_id, customer_search_response_external, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for customer search response Call this endpoint with the response to a customer search request.
-
#do_invoice_search(request_id, invoice_search_response, opts = {}) ⇒ nil
Endpoint for invoice search response Call this endpoint with the response to a invoice search request.
-
#do_invoice_search_with_http_info(request_id, invoice_search_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for invoice search response Call this endpoint with the response to a invoice search request.
-
#do_product_search(request_id, product_search_response, opts = {}) ⇒ nil
Endpoint for product search response Call this endpoint with the response to a product search request.
-
#do_product_search_with_http_info(request_id, product_search_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for product search response Call this endpoint with the response to a product search request.
-
#do_tax_search(request_id, tax_search_response, opts = {}) ⇒ nil
Endpoint for taxes search response Call this endpoint with the response to a taxes search request.
-
#do_tax_search_with_http_info(request_id, tax_search_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for taxes search response Call this endpoint with the response to a taxes search request.
-
#get_by_id(request_id, invoices_response_external, opts = {}) ⇒ nil
Endpoint for invoice get-by-id response Call this endpoint with the response to a invoice get-by-id request.
-
#get_by_id_with_http_info(request_id, invoices_response_external, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for invoice get-by-id response Call this endpoint with the response to a invoice get-by-id request.
-
#initialize(api_client = ApiClient.default) ⇒ CallbacksApi
constructor
A new instance of CallbacksApi.
-
#invoice_pdf(request_id, invoice_pdf_response, opts = {}) ⇒ nil
Endpoint for PDF content of invoice Call this endpoint with the PDF content of a requested invoice.
-
#invoice_pdf_with_http_info(request_id, invoice_pdf_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for PDF content of invoice Call this endpoint with the PDF content of a requested invoice.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ CallbacksApi
Returns a new instance of CallbacksApi.
22 23 24 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 22 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
20 21 22 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 20 def api_client @api_client end |
Instance Method Details
#create_customer(request_id, result_id_accounting_response, opts = {}) ⇒ nil
Endpoint for customer creation response Call this endpoint with the response to a customer creation request.
31 32 33 34 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 31 def create_customer(request_id, result_id_accounting_response, opts = {}) create_customer_with_http_info(request_id, result_id_accounting_response, opts) nil end |
#create_customer_with_http_info(request_id, result_id_accounting_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for customer creation response Call this endpoint with the response to a customer creation request.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 42 def create_customer_with_http_info(request_id, result_id_accounting_response, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbacksApi.create_customer ...' end # verify the required parameter 'request_id' is set if @api_client.config.client_side_validation && request_id.nil? fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.create_customer" end # verify the required parameter 'result_id_accounting_response' is set if @api_client.config.client_side_validation && result_id_accounting_response.nil? fail ArgumentError, "Missing the required parameter 'result_id_accounting_response' when calling CallbacksApi.create_customer" end # resource path local_var_path = '/crm/v3/extensions/accounting/callback/customer-create/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(result_id_accounting_response) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] = opts.merge( :operation => :"CallbacksApi.create_customer", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbacksApi#create_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_exchange_rate(request_id, exchange_rate_response, opts = {}) ⇒ nil
Endpoint for exchange rate response Call this endpoint with the response to an exchange rate request.
105 106 107 108 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 105 def create_exchange_rate(request_id, exchange_rate_response, opts = {}) create_exchange_rate_with_http_info(request_id, exchange_rate_response, opts) nil end |
#create_exchange_rate_with_http_info(request_id, exchange_rate_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for exchange rate response Call this endpoint with the response to an exchange rate request.
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 116 def create_exchange_rate_with_http_info(request_id, exchange_rate_response, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbacksApi.create_exchange_rate ...' end # verify the required parameter 'request_id' is set if @api_client.config.client_side_validation && request_id.nil? fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.create_exchange_rate" end # verify the required parameter 'exchange_rate_response' is set if @api_client.config.client_side_validation && exchange_rate_response.nil? fail ArgumentError, "Missing the required parameter 'exchange_rate_response' when calling CallbacksApi.create_exchange_rate" end # resource path local_var_path = '/crm/v3/extensions/accounting/callback/exchange-rate/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(exchange_rate_response) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] = opts.merge( :operation => :"CallbacksApi.create_exchange_rate", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbacksApi#create_exchange_rate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_invoice(request_id, result_id_accounting_response, opts = {}) ⇒ nil
Endpoint for invoice creation response Call this endpoint with the response to a invoice creation request.
179 180 181 182 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 179 def create_invoice(request_id, result_id_accounting_response, opts = {}) create_invoice_with_http_info(request_id, result_id_accounting_response, opts) nil end |
#create_invoice_with_http_info(request_id, result_id_accounting_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for invoice creation response Call this endpoint with the response to a invoice creation request.
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 190 def create_invoice_with_http_info(request_id, result_id_accounting_response, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbacksApi.create_invoice ...' end # verify the required parameter 'request_id' is set if @api_client.config.client_side_validation && request_id.nil? fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.create_invoice" end # verify the required parameter 'result_id_accounting_response' is set if @api_client.config.client_side_validation && result_id_accounting_response.nil? fail ArgumentError, "Missing the required parameter 'result_id_accounting_response' when calling CallbacksApi.create_invoice" end # resource path local_var_path = '/crm/v3/extensions/accounting/callback/invoice-create/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(result_id_accounting_response) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] = opts.merge( :operation => :"CallbacksApi.create_invoice", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbacksApi#create_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_term(request_id, terms_response, opts = {}) ⇒ nil
Endpoint for terms search response Call this endpoint with the response to a terms search request.
253 254 255 256 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 253 def create_term(request_id, terms_response, opts = {}) create_term_with_http_info(request_id, terms_response, opts) nil end |
#create_term_with_http_info(request_id, terms_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for terms search response Call this endpoint with the response to a terms search request.
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 264 def create_term_with_http_info(request_id, terms_response, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbacksApi.create_term ...' end # verify the required parameter 'request_id' is set if @api_client.config.client_side_validation && request_id.nil? fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.create_term" end # verify the required parameter 'terms_response' is set if @api_client.config.client_side_validation && terms_response.nil? fail ArgumentError, "Missing the required parameter 'terms_response' when calling CallbacksApi.create_term" end # resource path local_var_path = '/crm/v3/extensions/accounting/callback/terms/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(terms_response) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] = opts.merge( :operation => :"CallbacksApi.create_term", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbacksApi#create_term\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#do_customer_search(request_id, customer_search_response_external, opts = {}) ⇒ nil
Endpoint for customer search response Call this endpoint with the response to a customer search request.
327 328 329 330 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 327 def do_customer_search(request_id, customer_search_response_external, opts = {}) do_customer_search_with_http_info(request_id, customer_search_response_external, opts) nil end |
#do_customer_search_with_http_info(request_id, customer_search_response_external, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for customer search response Call this endpoint with the response to a customer search request.
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 338 def do_customer_search_with_http_info(request_id, customer_search_response_external, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbacksApi.do_customer_search ...' end # verify the required parameter 'request_id' is set if @api_client.config.client_side_validation && request_id.nil? fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.do_customer_search" end # verify the required parameter 'customer_search_response_external' is set if @api_client.config.client_side_validation && customer_search_response_external.nil? fail ArgumentError, "Missing the required parameter 'customer_search_response_external' when calling CallbacksApi.do_customer_search" end # resource path local_var_path = '/crm/v3/extensions/accounting/callback/customer-search/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(customer_search_response_external) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] = opts.merge( :operation => :"CallbacksApi.do_customer_search", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbacksApi#do_customer_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#do_invoice_search(request_id, invoice_search_response, opts = {}) ⇒ nil
Endpoint for invoice search response Call this endpoint with the response to a invoice search request.
401 402 403 404 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 401 def do_invoice_search(request_id, invoice_search_response, opts = {}) do_invoice_search_with_http_info(request_id, invoice_search_response, opts) nil end |
#do_invoice_search_with_http_info(request_id, invoice_search_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for invoice search response Call this endpoint with the response to a invoice search request.
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 412 def do_invoice_search_with_http_info(request_id, invoice_search_response, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbacksApi.do_invoice_search ...' end # verify the required parameter 'request_id' is set if @api_client.config.client_side_validation && request_id.nil? fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.do_invoice_search" end # verify the required parameter 'invoice_search_response' is set if @api_client.config.client_side_validation && invoice_search_response.nil? fail ArgumentError, "Missing the required parameter 'invoice_search_response' when calling CallbacksApi.do_invoice_search" end # resource path local_var_path = '/crm/v3/extensions/accounting/callback/invoice-search/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(invoice_search_response) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] = opts.merge( :operation => :"CallbacksApi.do_invoice_search", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbacksApi#do_invoice_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#do_product_search(request_id, product_search_response, opts = {}) ⇒ nil
Endpoint for product search response Call this endpoint with the response to a product search request.
475 476 477 478 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 475 def do_product_search(request_id, product_search_response, opts = {}) do_product_search_with_http_info(request_id, product_search_response, opts) nil end |
#do_product_search_with_http_info(request_id, product_search_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for product search response Call this endpoint with the response to a product search request.
486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 486 def do_product_search_with_http_info(request_id, product_search_response, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbacksApi.do_product_search ...' end # verify the required parameter 'request_id' is set if @api_client.config.client_side_validation && request_id.nil? fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.do_product_search" end # verify the required parameter 'product_search_response' is set if @api_client.config.client_side_validation && product_search_response.nil? fail ArgumentError, "Missing the required parameter 'product_search_response' when calling CallbacksApi.do_product_search" end # resource path local_var_path = '/crm/v3/extensions/accounting/callback/product-search/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(product_search_response) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] = opts.merge( :operation => :"CallbacksApi.do_product_search", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbacksApi#do_product_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#do_tax_search(request_id, tax_search_response, opts = {}) ⇒ nil
Endpoint for taxes search response Call this endpoint with the response to a taxes search request.
549 550 551 552 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 549 def do_tax_search(request_id, tax_search_response, opts = {}) do_tax_search_with_http_info(request_id, tax_search_response, opts) nil end |
#do_tax_search_with_http_info(request_id, tax_search_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for taxes search response Call this endpoint with the response to a taxes search request.
560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 560 def do_tax_search_with_http_info(request_id, tax_search_response, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbacksApi.do_tax_search ...' end # verify the required parameter 'request_id' is set if @api_client.config.client_side_validation && request_id.nil? fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.do_tax_search" end # verify the required parameter 'tax_search_response' is set if @api_client.config.client_side_validation && tax_search_response.nil? fail ArgumentError, "Missing the required parameter 'tax_search_response' when calling CallbacksApi.do_tax_search" end # resource path local_var_path = '/crm/v3/extensions/accounting/callback/tax-search/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(tax_search_response) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] = opts.merge( :operation => :"CallbacksApi.do_tax_search", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbacksApi#do_tax_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_by_id(request_id, invoices_response_external, opts = {}) ⇒ nil
Endpoint for invoice get-by-id response Call this endpoint with the response to a invoice get-by-id request.
623 624 625 626 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 623 def get_by_id(request_id, invoices_response_external, opts = {}) get_by_id_with_http_info(request_id, invoices_response_external, opts) nil end |
#get_by_id_with_http_info(request_id, invoices_response_external, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for invoice get-by-id response Call this endpoint with the response to a invoice get-by-id request.
634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 634 def get_by_id_with_http_info(request_id, invoices_response_external, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbacksApi.get_by_id ...' end # verify the required parameter 'request_id' is set if @api_client.config.client_side_validation && request_id.nil? fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.get_by_id" end # verify the required parameter 'invoices_response_external' is set if @api_client.config.client_side_validation && invoices_response_external.nil? fail ArgumentError, "Missing the required parameter 'invoices_response_external' when calling CallbacksApi.get_by_id" end # resource path local_var_path = '/crm/v3/extensions/accounting/callback/invoices/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(invoices_response_external) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] = opts.merge( :operation => :"CallbacksApi.get_by_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbacksApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#invoice_pdf(request_id, invoice_pdf_response, opts = {}) ⇒ nil
Endpoint for PDF content of invoice Call this endpoint with the PDF content of a requested invoice.
697 698 699 700 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 697 def invoice_pdf(request_id, invoice_pdf_response, opts = {}) invoice_pdf_with_http_info(request_id, invoice_pdf_response, opts) nil end |
#invoice_pdf_with_http_info(request_id, invoice_pdf_response, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Endpoint for PDF content of invoice Call this endpoint with the PDF content of a requested invoice.
708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 708 def invoice_pdf_with_http_info(request_id, invoice_pdf_response, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CallbacksApi.invoice_pdf ...' end # verify the required parameter 'request_id' is set if @api_client.config.client_side_validation && request_id.nil? fail ArgumentError, "Missing the required parameter 'request_id' when calling CallbacksApi.invoice_pdf" end # verify the required parameter 'invoice_pdf_response' is set if @api_client.config.client_side_validation && invoice_pdf_response.nil? fail ArgumentError, "Missing the required parameter 'invoice_pdf_response' when calling CallbacksApi.invoice_pdf" end # resource path local_var_path = '/crm/v3/extensions/accounting/callback/invoice-pdf/{requestId}'.sub('{' + 'requestId' + '}', CGI.escape(request_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(invoice_pdf_response) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] = opts.merge( :operation => :"CallbacksApi.invoice_pdf", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: CallbacksApi#invoice_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |