kintsugi_sdk 5.6.0 → 5.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/types.rb +11 -3
  3. data/lib/kintsugi_sdk/addressvalidation.rb +21 -13
  4. data/lib/kintsugi_sdk/customers.rb +66 -43
  5. data/lib/kintsugi_sdk/exemptions.rb +48 -31
  6. data/lib/kintsugi_sdk/models/errors/apierror.rbi +2 -1
  7. data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rbi +1 -1
  8. data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rbi +1 -1
  9. data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rbi +1 -1
  10. data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rbi +1 -1
  11. data/lib/kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rbi +1 -1
  12. data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rbi +1 -1
  13. data/lib/kintsugi_sdk/models/errors/errorresponse.rbi +1 -1
  14. data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rbi +1 -1
  15. data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rbi +1 -1
  16. data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rbi +1 -1
  17. data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rbi +1 -1
  18. data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rbi +1 -1
  19. data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rbi +1 -1
  20. data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rbi +1 -1
  21. data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rbi +1 -1
  22. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rbi +1 -1
  23. data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rbi +1 -1
  24. data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rbi +1 -1
  25. data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rbi +1 -1
  26. data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rbi +1 -1
  27. data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rbi +1 -1
  28. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rbi +1 -1
  29. data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rbi +1 -1
  30. data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rbi +1 -1
  31. data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rbi +1 -1
  32. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rbi +1 -1
  33. data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rbi +1 -1
  34. data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rbi +1 -1
  35. data/lib/kintsugi_sdk/models/shared/addressbase.rbi +1 -1
  36. data/lib/kintsugi_sdk/models/shared/addresses.rbi +1 -1
  37. data/lib/kintsugi_sdk/models/shared/addressresponsedata.rbi +1 -1
  38. data/lib/kintsugi_sdk/models/shared/addresssearchresponse.rbi +1 -1
  39. data/lib/kintsugi_sdk/models/shared/addressstatus.rbi +1 -1
  40. data/lib/kintsugi_sdk/models/shared/addresssubmittedresponse.rbi +1 -1
  41. data/lib/kintsugi_sdk/models/shared/addresstype.rbi +1 -1
  42. data/lib/kintsugi_sdk/models/shared/appliedto.rbi +1 -1
  43. data/lib/kintsugi_sdk/models/shared/attachmentread.rbi +1 -1
  44. data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rbi +1 -1
  45. data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rbi +1 -1
  46. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_models_exemptionread.rbi +1 -1
  47. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rbi +1 -1
  48. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rbi +1 -1
  49. data/lib/kintsugi_sdk/models/shared/backend_src_products_responses_validationerroritem.rbi +1 -1
  50. data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rbi +1 -1
  51. data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rbi +1 -1
  52. data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rbi +1 -1
  53. data/lib/kintsugi_sdk/models/shared/countrycodeenum.rbi +1 -1
  54. data/lib/kintsugi_sdk/models/shared/currencyenum.rbi +1 -1
  55. data/lib/kintsugi_sdk/models/shared/customerbase.rbi +1 -1
  56. data/lib/kintsugi_sdk/models/shared/customerbasebase.rbi +1 -1
  57. data/lib/kintsugi_sdk/models/shared/customerbasepublic.rbi +1 -1
  58. data/lib/kintsugi_sdk/models/shared/customercreate.rbi +1 -1
  59. data/lib/kintsugi_sdk/models/shared/customerread.rbi +1 -1
  60. data/lib/kintsugi_sdk/models/shared/customertaxregistrationread.rbi +1 -1
  61. data/lib/kintsugi_sdk/models/shared/customertaxtypeenum.rbi +1 -1
  62. data/lib/kintsugi_sdk/models/shared/customerupdate.rbi +1 -1
  63. data/lib/kintsugi_sdk/models/shared/discountbuilder.rbi +1 -1
  64. data/lib/kintsugi_sdk/models/shared/exemption.rbi +1 -1
  65. data/lib/kintsugi_sdk/models/shared/exemptioncreate.rbi +1 -1
  66. data/lib/kintsugi_sdk/models/shared/exemptionrequired.rbi +1 -1
  67. data/lib/kintsugi_sdk/models/shared/exemptionstatus.rbi +1 -1
  68. data/lib/kintsugi_sdk/models/shared/exemptiontype.rbi +1 -1
  69. data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rbi +1 -1
  70. data/lib/kintsugi_sdk/models/shared/file.rbi +1 -1
  71. data/lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rbi +1 -1
  72. data/lib/kintsugi_sdk/models/shared/jurisdictiontype.rbi +1 -1
  73. data/lib/kintsugi_sdk/models/shared/nexusresponse.rbi +1 -1
  74. data/lib/kintsugi_sdk/models/shared/nexusstateenum.rbi +1 -1
  75. data/lib/kintsugi_sdk/models/shared/nexusstatusenum.rbi +1 -1
  76. data/lib/kintsugi_sdk/models/shared/nexustypeenum.rbi +1 -1
  77. data/lib/kintsugi_sdk/models/shared/page_customerread_.rbi +1 -1
  78. data/lib/kintsugi_sdk/models/shared/page_nexusresponse_.rbi +1 -1
  79. data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rbi +1 -1
  80. data/lib/kintsugi_sdk/models/shared/page_transactionread_.rbi +1 -1
  81. data/lib/kintsugi_sdk/models/shared/periodmodelenum.rbi +1 -1
  82. data/lib/kintsugi_sdk/models/shared/processingstatusenum.rbi +1 -1
  83. data/lib/kintsugi_sdk/models/shared/productread.rbi +1 -1
  84. data/lib/kintsugi_sdk/models/shared/productstatusenum.rbi +1 -1
  85. data/lib/kintsugi_sdk/models/shared/productupdate.rbi +1 -1
  86. data/lib/kintsugi_sdk/models/shared/registration.rbi +1 -1
  87. data/lib/kintsugi_sdk/models/shared/registrationsregimeenum.rbi +1 -1
  88. data/lib/kintsugi_sdk/models/shared/relatedentitytype.rbi +1 -1
  89. data/lib/kintsugi_sdk/models/shared/salesortransactionsenum.rbi +1 -1
  90. data/lib/kintsugi_sdk/models/shared/security.rb +2 -2
  91. data/lib/kintsugi_sdk/models/shared/security.rbi +1 -1
  92. data/lib/kintsugi_sdk/models/shared/sourceenum.rbi +1 -1
  93. data/lib/kintsugi_sdk/models/shared/statusenum.rbi +1 -1
  94. data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rbi +1 -1
  95. data/lib/kintsugi_sdk/models/shared/taxitembuilder.rbi +1 -1
  96. data/lib/kintsugi_sdk/models/shared/taxitemestimate.rbi +1 -1
  97. data/lib/kintsugi_sdk/models/shared/taxitemread.rbi +1 -1
  98. data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rbi +1 -1
  99. data/lib/kintsugi_sdk/models/shared/taxitemtypeenum.rbi +1 -1
  100. data/lib/kintsugi_sdk/models/shared/taxliabilitysourceenum.rbi +1 -1
  101. data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rbi +1 -1
  102. data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rbi +1 -1
  103. data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rbi +1 -1
  104. data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +1 -1
  105. data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rbi +1 -1
  106. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rbi +1 -1
  107. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rbi +1 -1
  108. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_type.rbi +1 -1
  109. data/lib/kintsugi_sdk/models/shared/transactionexemptstatusenum.rbi +1 -1
  110. data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rbi +1 -1
  111. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rbi +1 -1
  112. data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rbi +1 -1
  113. data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rbi +1 -1
  114. data/lib/kintsugi_sdk/models/shared/transactionitemread.rbi +1 -1
  115. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +1 -1
  116. data/lib/kintsugi_sdk/models/shared/transactionread.rbi +1 -1
  117. data/lib/kintsugi_sdk/models/shared/transactionrefundstatus.rbi +1 -1
  118. data/lib/kintsugi_sdk/models/shared/transactionstatusenum.rbi +1 -1
  119. data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rbi +1 -1
  120. data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +1 -1
  121. data/lib/kintsugi_sdk/models/shared/treatmentenum.rbi +1 -1
  122. data/lib/kintsugi_sdk/models/shared/type.rbi +1 -1
  123. data/lib/kintsugi_sdk/models/shared/validationaddress.rbi +1 -1
  124. data/lib/kintsugi_sdk/models/shared/validationerror.rbi +1 -1
  125. data/lib/kintsugi_sdk/nexus.rb +12 -7
  126. data/lib/kintsugi_sdk/openapisdk.rb +2 -1
  127. data/lib/kintsugi_sdk/products.rb +21 -13
  128. data/lib/kintsugi_sdk/sdkconfiguration.rb +5 -6
  129. data/lib/kintsugi_sdk/taxestimation.rb +12 -7
  130. data/lib/kintsugi_sdk/transactions.rb +57 -37
  131. data/lib/kintsugi_sdk/utils/retries.rb +4 -1
  132. data/lib/kintsugi_sdk/utils/security.rb +22 -11
  133. metadata +4 -4
@@ -39,8 +39,10 @@ module KintsugiSDK
39
39
  end
40
40
 
41
41
 
42
- sig { params(request: Models::Ops::GetExemptionsV1ExemptionsGetRequest, timeout_ms: T.nilable(Integer)).returns(Models::Shared::FastapiPaginationDefaultPageExemptionRead2) }
43
- def list(request:, timeout_ms: nil)
42
+
43
+
44
+ sig { params(request: Models::Ops::GetExemptionsV1ExemptionsGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::FastapiPaginationDefaultPageExemptionRead2) }
45
+ def list(request:, timeout_ms: nil, http_headers: nil)
44
46
  # list - Get Exemptions
45
47
  # Retrieve a list of exemptions based on filters.
46
48
  url, params = @sdk_configuration.get_server_details
@@ -56,7 +58,7 @@ module KintsugiSDK
56
58
 
57
59
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
58
60
  timeout ||= @sdk_configuration.timeout
59
-
61
+
60
62
 
61
63
  connection = @sdk_configuration.client
62
64
 
@@ -71,13 +73,16 @@ module KintsugiSDK
71
73
  error = T.let(nil, T.nilable(StandardError))
72
74
  http_response = T.let(nil, T.nilable(Faraday::Response))
73
75
 
74
-
76
+
75
77
  begin
76
78
  http_response = T.must(connection).get(url) do |req|
77
79
  req.headers.merge!(headers)
78
80
  req.options.timeout = timeout unless timeout.nil?
79
81
  req.params = query_params
80
82
  Utils.configure_request_security(req, security)
83
+ http_headers&.each do |key, value|
84
+ req.headers[key.to_s] = value
85
+ end
81
86
 
82
87
  @sdk_configuration.hooks.before_request(
83
88
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -105,13 +110,13 @@ module KintsugiSDK
105
110
  response: http_response
106
111
  )
107
112
  end
108
-
113
+
109
114
  if http_response.nil?
110
115
  raise error if !error.nil?
111
116
  raise 'no response'
112
117
  end
113
118
  end
114
-
119
+
115
120
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
116
121
  if Utils.match_status_code(http_response.status, ['200'])
117
122
  if Utils.match_content_type(content_type, 'application/json')
@@ -181,8 +186,8 @@ module KintsugiSDK
181
186
  end
182
187
 
183
188
 
184
- sig { params(request: Models::Shared::ExemptionCreate, timeout_ms: T.nilable(Integer)).returns(Models::Shared::BackendSrcExemptionsSerializersExemptionRead) }
185
- def create(request:, timeout_ms: nil)
189
+ sig { params(request: Models::Shared::ExemptionCreate, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::BackendSrcExemptionsSerializersExemptionRead) }
190
+ def create(request:, timeout_ms: nil, http_headers: nil)
186
191
  # create - Create Exemption
187
192
  # The Create Exemption API allows you to create a new exemption record.
188
193
  # This includes defining details such as exemption type, jurisdiction,
@@ -210,7 +215,7 @@ module KintsugiSDK
210
215
 
211
216
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
212
217
  timeout ||= @sdk_configuration.timeout
213
-
218
+
214
219
 
215
220
  connection = @sdk_configuration.client
216
221
 
@@ -225,13 +230,16 @@ module KintsugiSDK
225
230
  error = T.let(nil, T.nilable(StandardError))
226
231
  http_response = T.let(nil, T.nilable(Faraday::Response))
227
232
 
228
-
233
+
229
234
  begin
230
235
  http_response = T.must(connection).post(url) do |req|
231
236
  req.body = body
232
237
  req.headers.merge!(headers)
233
238
  req.options.timeout = timeout unless timeout.nil?
234
239
  Utils.configure_request_security(req, security)
240
+ http_headers&.each do |key, value|
241
+ req.headers[key.to_s] = value
242
+ end
235
243
 
236
244
  @sdk_configuration.hooks.before_request(
237
245
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -259,13 +267,13 @@ module KintsugiSDK
259
267
  response: http_response
260
268
  )
261
269
  end
262
-
270
+
263
271
  if http_response.nil?
264
272
  raise error if !error.nil?
265
273
  raise 'no response'
266
274
  end
267
275
  end
268
-
276
+
269
277
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
270
278
  if Utils.match_status_code(http_response.status, ['200'])
271
279
  if Utils.match_content_type(content_type, 'application/json')
@@ -335,8 +343,8 @@ module KintsugiSDK
335
343
  end
336
344
 
337
345
 
338
- sig { params(request: Models::Ops::GetExemptionByIdV1ExemptionsExemptionIdGetRequest, timeout_ms: T.nilable(Integer)).returns(Models::Shared::BackendSrcExemptionsModelsExemptionRead) }
339
- def get(request:, timeout_ms: nil)
346
+ sig { params(request: Models::Ops::GetExemptionByIdV1ExemptionsExemptionIdGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::BackendSrcExemptionsModelsExemptionRead) }
347
+ def get(request:, timeout_ms: nil, http_headers: nil)
340
348
  # get - Get Exemption By Id
341
349
  # The Get Exemption By ID API retrieves a specific exemption record by
342
350
  # its unique ID. This API is useful for retrieving detailed information
@@ -359,7 +367,7 @@ module KintsugiSDK
359
367
 
360
368
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
361
369
  timeout ||= @sdk_configuration.timeout
362
-
370
+
363
371
 
364
372
  connection = @sdk_configuration.client
365
373
 
@@ -374,12 +382,15 @@ module KintsugiSDK
374
382
  error = T.let(nil, T.nilable(StandardError))
375
383
  http_response = T.let(nil, T.nilable(Faraday::Response))
376
384
 
377
-
385
+
378
386
  begin
379
387
  http_response = T.must(connection).get(url) do |req|
380
388
  req.headers.merge!(headers)
381
389
  req.options.timeout = timeout unless timeout.nil?
382
390
  Utils.configure_request_security(req, security)
391
+ http_headers&.each do |key, value|
392
+ req.headers[key.to_s] = value
393
+ end
383
394
 
384
395
  @sdk_configuration.hooks.before_request(
385
396
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -407,13 +418,13 @@ module KintsugiSDK
407
418
  response: http_response
408
419
  )
409
420
  end
410
-
421
+
411
422
  if http_response.nil?
412
423
  raise error if !error.nil?
413
424
  raise 'no response'
414
425
  end
415
426
  end
416
-
427
+
417
428
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
418
429
  if Utils.match_status_code(http_response.status, ['200'])
419
430
  if Utils.match_content_type(content_type, 'application/json')
@@ -483,8 +494,8 @@ module KintsugiSDK
483
494
  end
484
495
 
485
496
 
486
- sig { params(request: Models::Ops::UploadExemptionCertRequest, timeout_ms: T.nilable(Integer)).returns(Models::Shared::AttachmentRead) }
487
- def upload_certificate(request:, timeout_ms: nil)
497
+ sig { params(request: Models::Ops::UploadExemptionCertRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::AttachmentRead) }
498
+ def upload_certificate(request:, timeout_ms: nil, http_headers: nil)
488
499
  # upload_certificate - Upload Exemption Certificate
489
500
  # The Upload Exemption Certificate API allows you
490
501
  # to upload a file attachment (e.g., exemption certificate) for a specific exemption.
@@ -518,7 +529,7 @@ module KintsugiSDK
518
529
 
519
530
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
520
531
  timeout ||= @sdk_configuration.timeout
521
-
532
+
522
533
 
523
534
  connection = @sdk_configuration.client
524
535
 
@@ -533,13 +544,16 @@ module KintsugiSDK
533
544
  error = T.let(nil, T.nilable(StandardError))
534
545
  http_response = T.let(nil, T.nilable(Faraday::Response))
535
546
 
536
-
547
+
537
548
  begin
538
549
  http_response = T.must(connection).post(url) do |req|
539
550
  req.body = body
540
551
  req.headers.merge!(headers)
541
552
  req.options.timeout = timeout unless timeout.nil?
542
553
  Utils.configure_request_security(req, security)
554
+ http_headers&.each do |key, value|
555
+ req.headers[key.to_s] = value
556
+ end
543
557
 
544
558
  @sdk_configuration.hooks.before_request(
545
559
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -567,13 +581,13 @@ module KintsugiSDK
567
581
  response: http_response
568
582
  )
569
583
  end
570
-
584
+
571
585
  if http_response.nil?
572
586
  raise error if !error.nil?
573
587
  raise 'no response'
574
588
  end
575
589
  end
576
-
590
+
577
591
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
578
592
  if Utils.match_status_code(http_response.status, ['200'])
579
593
  if Utils.match_content_type(content_type, 'application/json')
@@ -643,8 +657,8 @@ module KintsugiSDK
643
657
  end
644
658
 
645
659
 
646
- sig { params(request: Models::Ops::GetExemptionAttachmentsRequest, timeout_ms: T.nilable(Integer)).returns(T::Array[Models::Shared::AttachmentRead]) }
647
- def get_attachments(request:, timeout_ms: nil)
660
+ sig { params(request: Models::Ops::GetExemptionAttachmentsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(T::Array[Models::Shared::AttachmentRead]) }
661
+ def get_attachments(request:, timeout_ms: nil, http_headers: nil)
648
662
  # get_attachments - Get Attachments For Exemption
649
663
  # The Get Attachments for Exemption API retrieves all
650
664
  # attachments associated with a specific exemption.
@@ -667,7 +681,7 @@ module KintsugiSDK
667
681
 
668
682
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
669
683
  timeout ||= @sdk_configuration.timeout
670
-
684
+
671
685
 
672
686
  connection = @sdk_configuration.client
673
687
 
@@ -682,12 +696,15 @@ module KintsugiSDK
682
696
  error = T.let(nil, T.nilable(StandardError))
683
697
  http_response = T.let(nil, T.nilable(Faraday::Response))
684
698
 
685
-
699
+
686
700
  begin
687
701
  http_response = T.must(connection).get(url) do |req|
688
702
  req.headers.merge!(headers)
689
703
  req.options.timeout = timeout unless timeout.nil?
690
704
  Utils.configure_request_security(req, security)
705
+ http_headers&.each do |key, value|
706
+ req.headers[key.to_s] = value
707
+ end
691
708
 
692
709
  @sdk_configuration.hooks.before_request(
693
710
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -715,13 +732,13 @@ module KintsugiSDK
715
732
  response: http_response
716
733
  )
717
734
  end
718
-
735
+
719
736
  if http_response.nil?
720
737
  raise error if !error.nil?
721
738
  raise 'no response'
722
739
  end
723
740
  end
724
-
741
+
725
742
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
726
743
  if Utils.match_status_code(http_response.status, ['200'])
727
744
  if Utils.match_content_type(content_type, 'application/json')
@@ -775,5 +792,5 @@ module KintsugiSDK
775
792
 
776
793
  end
777
794
  end
778
- end
795
+ end
779
796
  end
@@ -1,3 +1,4 @@
1
+
1
2
  # typed: true
2
3
  # frozen_string_literal: true
3
4
 
@@ -13,4 +14,4 @@ class KintsugiSDK::Models::Errors::APIError
13
14
  def raw_response=(raw_response); end
14
15
  def status_code(); end
15
16
  def status_code=(status_code); end
16
- end
17
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Errors::BackendSrcAddressValidationResponsesValidationErrorResponse
11
11
  def detail(); end
12
12
  def detail=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Errors::BackendSrcCustomersResponsesValidationErrorResponse
11
11
  def detail(); end
12
12
  def detail=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse
11
11
  def detail(); end
12
12
  def detail=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Errors::BackendSrcProductsResponsesValidationErrorResponse
11
11
  def detail(); end
12
12
  def detail=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Errors::BackendSrcTaxEstimationResponsesValidationErrorResponse
11
11
  def detail(); end
12
12
  def detail=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Errors::BackendSrcTransactionsResponsesValidationErrorResponse
11
11
  def detail(); end
12
12
  def detail=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Errors::ErrorResponse
11
11
  def detail(); end
12
12
  def detail=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Errors::HTTPValidationError
11
11
  def detail(); end
12
12
  def detail=(str_); end
13
- end
13
+ end
@@ -12,4 +12,4 @@ class KintsugiSDK::Models::Ops::CreateTransactionByCustomerRequest
12
12
  def customer_id=(str_); end
13
13
  def transaction_create(); end
14
14
  def transaction_create=(str_); end
15
- end
15
+ end
@@ -12,4 +12,4 @@ class KintsugiSDK::Models::Ops::EstimateTaxV1TaxEstimatePostRequest
12
12
  def transaction_estimate_public_request=(str_); end
13
13
  def simulate_nexus_met(); end
14
14
  def simulate_nexus_met=(str_); end
15
- end
15
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Ops::GetCustomerByExternalIdV1CustomersExternalExternalIdGetRequest
11
11
  def external_id(); end
12
12
  def external_id=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Ops::GetCustomerByIdV1CustomersCustomerIdGetRequest
11
11
  def customer_id(); end
12
12
  def customer_id=(str_); end
13
- end
13
+ end
@@ -22,4 +22,4 @@ class KintsugiSDK::Models::Ops::GetCustomersV1Request
22
22
  def page=(str_); end
23
23
  def size(); end
24
24
  def size=(str_); end
25
- end
25
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Ops::GetExemptionByIdV1ExemptionsExemptionIdGetRequest
11
11
  def exemption_id(); end
12
12
  def exemption_id=(str_); end
13
- end
13
+ end
@@ -30,4 +30,4 @@ class KintsugiSDK::Models::Ops::GetExemptionsV1ExemptionsGetRequest
30
30
  def page=(str_); end
31
31
  def size(); end
32
32
  def size=(str_); end
33
- end
33
+ end
@@ -26,4 +26,4 @@ class KintsugiSDK::Models::Ops::GetNexusForOrgV1NexusGetRequest
26
26
  def page=(str_); end
27
27
  def size(); end
28
28
  def size=(str_); end
29
- end
29
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Ops::GetProductByIdV1ProductsProductIdGetRequest
11
11
  def product_id(); end
12
12
  def product_id=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Ops::GetTransactionByIdV1TransactionsTransactionIdGetRequest
11
11
  def transaction_id(); end
12
12
  def transaction_id=(str_); end
13
- end
13
+ end
@@ -42,4 +42,4 @@ class KintsugiSDK::Models::Ops::GetTransactionsV1TransactionsGetRequest
42
42
  def page=(str_); end
43
43
  def size(); end
44
44
  def size=(str_); end
45
- end
45
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Ops::GetExemptionAttachmentsRequest
11
11
  def exemption_id(); end
12
12
  def exemption_id=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Ops::GetTransactionByExternalIdRequest
11
11
  def external_id(); end
12
12
  def external_id=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Ops::GetTransactionsByCustomerRequest
11
11
  def customer_id(); end
12
12
  def customer_id=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Ops::GetTransactionsByFilingRequest
11
11
  def filing_id(); end
12
12
  def filing_id=(str_); end
13
- end
13
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Ops::SearchV1AddressValidationSearchPostSecurity
11
11
  def api_key_header(); end
12
12
  def api_key_header=(str_); end
13
- end
13
+ end
@@ -12,4 +12,4 @@ class KintsugiSDK::Models::Ops::UpdateCustomerV1CustomersCustomerIdPutRequest
12
12
  def customer_id=(str_); end
13
13
  def customer_update(); end
14
14
  def customer_update=(str_); end
15
- end
15
+ end
@@ -12,4 +12,4 @@ class KintsugiSDK::Models::Ops::UpdateProductV1ProductsProductIdPutRequest
12
12
  def product_id=(str_); end
13
13
  def product_update(); end
14
14
  def product_update=(str_); end
15
- end
15
+ end
@@ -12,4 +12,4 @@ class KintsugiSDK::Models::Ops::UpdateTransactionV1TransactionsTransactionIdPutR
12
12
  def transaction_id=(str_); end
13
13
  def transaction_update(); end
14
14
  def transaction_update=(str_); end
15
- end
15
+ end
@@ -12,4 +12,4 @@ class KintsugiSDK::Models::Ops::UploadExemptionCertRequest
12
12
  def exemption_id=(str_); end
13
13
  def body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post(); end
14
14
  def body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post=(str_); end
15
- end
15
+ end
@@ -26,4 +26,4 @@ class KintsugiSDK::Models::Shared::AddressBase
26
26
  def country=(str_); end
27
27
  def full_address(); end
28
28
  def full_address=(str_); end
29
- end
29
+ end
@@ -30,4 +30,4 @@ class KintsugiSDK::Models::Shared::Addresses
30
30
  def full_address=(str_); end
31
31
  def status(); end
32
32
  def status=(str_); end
33
- end
33
+ end
@@ -24,4 +24,4 @@ class KintsugiSDK::Models::Shared::AddressResponseData
24
24
  def country=(str_); end
25
25
  def full_address(); end
26
26
  def full_address=(str_); end
27
- end
27
+ end
@@ -16,4 +16,4 @@ class KintsugiSDK::Models::Shared::AddressSearchResponse
16
16
  def verification_status=(str_); end
17
17
  def enrich_fields(); end
18
18
  def enrich_fields=(str_); end
19
- end
19
+ end
@@ -8,4 +8,4 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::AddressStatus
11
- end
11
+ end
@@ -24,4 +24,4 @@ class KintsugiSDK::Models::Shared::AddressSubmittedResponse
24
24
  def country=(str_); end
25
25
  def full_address(); end
26
26
  def full_address=(str_); end
27
- end
27
+ end
@@ -8,4 +8,4 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::AddressType
11
- end
11
+ end
@@ -8,4 +8,4 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::AppliedTo
11
- end
11
+ end
@@ -14,4 +14,4 @@ class KintsugiSDK::Models::Shared::AttachmentRead
14
14
  def related_entity_type=(str_); end
15
15
  def id(); end
16
16
  def id=(str_); end
17
- end
17
+ end
@@ -18,4 +18,4 @@ class KintsugiSDK::Models::Shared::BackendSrcAddressValidationResponsesValidatio
18
18
  def input=(str_); end
19
19
  def ctx(); end
20
20
  def ctx=(str_); end
21
- end
21
+ end
@@ -18,4 +18,4 @@ class KintsugiSDK::Models::Shared::BackendSrcCustomersResponsesValidationErrorIt
18
18
  def input=(str_); end
19
19
  def ctx(); end
20
20
  def ctx=(str_); end
21
- end
21
+ end
@@ -36,4 +36,4 @@ class KintsugiSDK::Models::Shared::BackendSrcExemptionsModelsExemptionRead
36
36
  def attachment_id=(str_); end
37
37
  def reseller(); end
38
38
  def reseller=(str_); end
39
- end
39
+ end
@@ -18,4 +18,4 @@ class KintsugiSDK::Models::Shared::BackendSrcExemptionsResponsesValidationErrorI
18
18
  def input=(str_); end
19
19
  def ctx(); end
20
20
  def ctx=(str_); end
21
- end
21
+ end
@@ -34,4 +34,4 @@ class KintsugiSDK::Models::Shared::BackendSrcExemptionsSerializersExemptionRead
34
34
  def attachment=(str_); end
35
35
  def reseller(); end
36
36
  def reseller=(str_); end
37
- end
37
+ end
@@ -18,4 +18,4 @@ class KintsugiSDK::Models::Shared::BackendSrcProductsResponsesValidationErrorIte
18
18
  def input=(str_); end
19
19
  def ctx(); end
20
20
  def ctx=(str_); end
21
- end
21
+ end
@@ -18,4 +18,4 @@ class KintsugiSDK::Models::Shared::BackendSrcTaxEstimationResponsesValidationErr
18
18
  def input=(str_); end
19
19
  def ctx(); end
20
20
  def ctx=(str_); end
21
- end
21
+ end
@@ -18,4 +18,4 @@ class KintsugiSDK::Models::Shared::BackendSrcTransactionsResponsesValidationErro
18
18
  def input=(str_); end
19
19
  def ctx(); end
20
20
  def ctx=(str_); end
21
- end
21
+ end
@@ -10,4 +10,4 @@ end
10
10
  class KintsugiSDK::Models::Shared::BodyUploadExemptionCertificateV1ExemptionsExemptionIdAttachmentsPost
11
11
  def file(); end
12
12
  def file=(str_); end
13
- end
13
+ end
@@ -8,4 +8,4 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::CountryCodeEnum
11
- end
11
+ end
@@ -8,4 +8,4 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::CurrencyEnum
11
- end
11
+ end
@@ -42,4 +42,4 @@ class KintsugiSDK::Models::Shared::CustomerBase
42
42
  def registration_number=(str_); end
43
43
  def connection_id(); end
44
44
  def connection_id=(str_); end
45
- end
45
+ end
@@ -48,4 +48,4 @@ class KintsugiSDK::Models::Shared::CustomerBaseBase
48
48
  def enriched_fields=(str_); end
49
49
  def is_test_data(); end
50
50
  def is_test_data=(str_); end
51
- end
51
+ end
@@ -42,4 +42,4 @@ class KintsugiSDK::Models::Shared::CustomerBasePublic
42
42
  def registration_number=(str_); end
43
43
  def connection_id(); end
44
44
  def connection_id=(str_); end
45
- end
45
+ end