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 |
# 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' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(result_id_accounting_response) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] = opts.merge( :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.
101 102 103 104 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 101 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.
112 113 114 115 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 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 112 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' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(exchange_rate_response) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] = opts.merge( :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.
171 172 173 174 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 171 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.
182 183 184 185 186 187 188 189 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 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 182 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' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(result_id_accounting_response) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] = opts.merge( :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.
241 242 243 244 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 241 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.
252 253 254 255 256 257 258 259 260 261 262 263 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 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 252 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' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(terms_response) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] = opts.merge( :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.
311 312 313 314 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 311 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.
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 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 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 322 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' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(customer_search_response_external) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] = opts.merge( :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.
381 382 383 384 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 381 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.
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 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 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 392 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' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(invoice_search_response) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] = opts.merge( :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.
451 452 453 454 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 451 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.
462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 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 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 462 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' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(product_search_response) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] = opts.merge( :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.
521 522 523 524 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 521 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.
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 532 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' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tax_search_response) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] = opts.merge( :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.
591 592 593 594 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 591 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.
602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 602 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' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(invoices_response_external) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] = opts.merge( :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.
661 662 663 664 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 661 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.
672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 |
# File 'lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb', line 672 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' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(invoice_pdf_response) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] = opts.merge( :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 |