kintsugi_sdk 5.6.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/types.rb +11 -3
  3. data/lib/kintsugi_sdk/addressvalidation.rb +26 -16
  4. data/lib/kintsugi_sdk/customers.rb +148 -123
  5. data/lib/kintsugi_sdk/exemptions.rb +102 -85
  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.rb → backend_src_products_schemas_responses_validationerrorresponse.rb} +3 -3
  11. data/lib/kintsugi_sdk/models/errors/backend_src_products_schemas_responses_validationerrorresponse.rbi +13 -0
  12. data/lib/kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rbi +1 -1
  13. data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rbi +1 -1
  14. data/lib/kintsugi_sdk/models/errors/errorresponse.rbi +1 -1
  15. data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rbi +1 -1
  16. data/lib/kintsugi_sdk/models/errors.rb +1 -1
  17. data/lib/kintsugi_sdk/models/ops/{search_v1_address_validation_search_post_security.rb → country.rb} +3 -8
  18. data/lib/kintsugi_sdk/models/{shared/registration.rbi → ops/country.rbi} +3 -3
  19. data/lib/kintsugi_sdk/models/ops/country_code.rb +27 -0
  20. data/lib/kintsugi_sdk/models/ops/country_code.rbi +11 -0
  21. data/lib/kintsugi_sdk/models/ops/create_customer_v1_customers_post_request.rb +36 -0
  22. data/lib/kintsugi_sdk/models/ops/create_customer_v1_customers_post_request.rbi +15 -0
  23. data/lib/kintsugi_sdk/models/ops/create_exemption_v1_exemptions_post_request.rb +36 -0
  24. data/lib/kintsugi_sdk/models/ops/create_exemption_v1_exemptions_post_request.rbi +15 -0
  25. data/lib/kintsugi_sdk/models/ops/create_transaction_v1_transactions_post_request.rb +36 -0
  26. data/lib/kintsugi_sdk/models/ops/create_transaction_v1_transactions_post_request.rbi +15 -0
  27. data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rb +6 -2
  28. data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rbi +3 -1
  29. data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rb +6 -2
  30. data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rbi +3 -1
  31. data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rb +6 -2
  32. data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rbi +3 -1
  33. data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rb +6 -2
  34. data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rbi +3 -1
  35. data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rb +13 -5
  36. data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rbi +5 -1
  37. data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rb +6 -2
  38. data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rbi +3 -1
  39. data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rb +17 -9
  40. data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rbi +7 -3
  41. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rb +29 -13
  42. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rbi +15 -7
  43. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_response_get_nexus_for_org_v1_nexus_get.rb +27 -0
  44. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_response_get_nexus_for_org_v1_nexus_get.rbi +11 -0
  45. data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rb +6 -2
  46. data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rbi +3 -1
  47. data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rb +6 -2
  48. data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rbi +3 -1
  49. data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rb +44 -18
  50. data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rbi +15 -5
  51. data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rb +6 -2
  52. data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rbi +3 -1
  53. data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rb +6 -2
  54. data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rbi +3 -1
  55. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rb +14 -2
  56. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rbi +7 -1
  57. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_response_get_transactions_by_customer_id_v1_cus_6a2c85.rb +27 -0
  58. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_response_get_transactions_by_customer_id_v1_cus_6a2c85.rbi +11 -0
  59. data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rb +6 -2
  60. data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rbi +3 -1
  61. data/lib/kintsugi_sdk/models/ops/queryparam_country.rb +27 -0
  62. data/lib/kintsugi_sdk/models/ops/queryparam_country.rbi +11 -0
  63. data/lib/kintsugi_sdk/models/ops/suggestions_v1_address_validation_suggestions_post_request.rb +36 -0
  64. data/lib/kintsugi_sdk/models/ops/suggestions_v1_address_validation_suggestions_post_request.rbi +15 -0
  65. data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rb +6 -2
  66. data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rbi +3 -1
  67. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_product.rb +27 -0
  68. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_product.rbi +11 -0
  69. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rb +9 -5
  70. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rbi +5 -3
  71. data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rb +6 -2
  72. data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rbi +3 -1
  73. data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rb +6 -2
  74. data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rbi +3 -1
  75. data/lib/kintsugi_sdk/models/ops.rb +10 -1
  76. data/lib/kintsugi_sdk/models/shared/addressbase.rb +1 -1
  77. data/lib/kintsugi_sdk/models/shared/addressbase.rbi +1 -1
  78. data/lib/kintsugi_sdk/models/shared/addresses.rb +7 -3
  79. data/lib/kintsugi_sdk/models/shared/addresses.rbi +3 -1
  80. data/lib/kintsugi_sdk/models/shared/addressresponsedata.rbi +1 -1
  81. data/lib/kintsugi_sdk/models/shared/addresssearchresponse.rbi +1 -1
  82. data/lib/kintsugi_sdk/models/shared/addressstatus.rbi +1 -1
  83. data/lib/kintsugi_sdk/models/shared/addresssubmittedresponse.rbi +1 -1
  84. data/lib/kintsugi_sdk/models/shared/addresstype.rbi +1 -1
  85. data/lib/kintsugi_sdk/models/shared/amount.rb +27 -0
  86. data/lib/kintsugi_sdk/models/shared/amount.rbi +11 -0
  87. data/lib/kintsugi_sdk/models/shared/appliedto.rbi +1 -1
  88. data/lib/kintsugi_sdk/models/shared/attachmentread.rbi +1 -1
  89. data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rbi +1 -1
  90. data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rbi +1 -1
  91. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rbi +1 -1
  92. data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rb → backend_src_exemptions_schemas_exemption_exemptionread.rb} +11 -10
  93. data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rbi → backend_src_exemptions_schemas_exemption_exemptionread.rbi} +5 -5
  94. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb +9 -9
  95. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rbi +3 -3
  96. data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rb → backend_src_products_schemas_responses_validationerroritem.rb} +1 -1
  97. data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rbi → backend_src_products_schemas_responses_validationerroritem.rbi} +3 -3
  98. data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rbi +1 -1
  99. data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rbi +1 -1
  100. data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rb +2 -2
  101. data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rbi +1 -1
  102. data/lib/kintsugi_sdk/models/shared/{registration.rb → context.rb} +1 -1
  103. data/lib/kintsugi_sdk/models/shared/context.rbi +11 -0
  104. data/lib/kintsugi_sdk/models/shared/conversion_rate.rb +27 -0
  105. data/lib/kintsugi_sdk/models/shared/conversion_rate.rbi +11 -0
  106. data/lib/kintsugi_sdk/models/shared/converted_amount.rb +27 -0
  107. data/lib/kintsugi_sdk/models/shared/converted_amount.rbi +11 -0
  108. data/lib/kintsugi_sdk/models/shared/converted_subtotal.rb +27 -0
  109. data/lib/kintsugi_sdk/models/shared/converted_subtotal.rbi +11 -0
  110. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_calculated.rb +27 -0
  111. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_calculated.rbi +11 -0
  112. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_imported.rb +27 -0
  113. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_imported.rbi +11 -0
  114. data/lib/kintsugi_sdk/models/shared/converted_taxable_amount.rb +27 -0
  115. data/lib/kintsugi_sdk/models/shared/converted_taxable_amount.rbi +11 -0
  116. data/lib/kintsugi_sdk/models/shared/converted_total_amount.rb +27 -0
  117. data/lib/kintsugi_sdk/models/shared/converted_total_amount.rbi +11 -0
  118. data/lib/kintsugi_sdk/models/shared/converted_total_discount.rb +27 -0
  119. data/lib/kintsugi_sdk/models/shared/converted_total_discount.rbi +11 -0
  120. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rb +27 -0
  121. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rbi +11 -0
  122. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rb +27 -0
  123. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rbi +11 -0
  124. data/lib/kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rb +27 -0
  125. data/lib/kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rbi +11 -0
  126. data/lib/kintsugi_sdk/models/shared/countrycodeenum.rbi +1 -1
  127. data/lib/kintsugi_sdk/models/shared/currencyenum.rbi +1 -1
  128. data/lib/kintsugi_sdk/models/shared/customer.rb +27 -0
  129. data/lib/kintsugi_sdk/models/shared/customer.rbi +11 -0
  130. data/lib/kintsugi_sdk/models/shared/customerbase.rb +16 -12
  131. data/lib/kintsugi_sdk/models/shared/customerbase.rbi +7 -5
  132. data/lib/kintsugi_sdk/models/shared/customerbasebase.rb +16 -12
  133. data/lib/kintsugi_sdk/models/shared/customerbasebase.rbi +7 -5
  134. data/lib/kintsugi_sdk/models/shared/customerbasepublic.rb +16 -12
  135. data/lib/kintsugi_sdk/models/shared/customerbasepublic.rbi +7 -5
  136. data/lib/kintsugi_sdk/models/shared/customercreate.rb +20 -16
  137. data/lib/kintsugi_sdk/models/shared/customercreate.rbi +9 -7
  138. data/lib/kintsugi_sdk/models/shared/customerread.rb +24 -16
  139. data/lib/kintsugi_sdk/models/shared/customerread.rbi +11 -7
  140. data/lib/kintsugi_sdk/models/shared/customertaxregistrationread.rbi +1 -1
  141. data/lib/kintsugi_sdk/models/shared/customertaxtypeenum.rbi +1 -1
  142. data/lib/kintsugi_sdk/models/shared/customerupdate.rb +13 -9
  143. data/lib/kintsugi_sdk/models/shared/customerupdate.rbi +5 -3
  144. data/lib/kintsugi_sdk/models/shared/discount_amount.rb +27 -0
  145. data/lib/kintsugi_sdk/models/shared/discount_amount.rbi +11 -0
  146. data/lib/kintsugi_sdk/models/shared/discountbuilder.rb +6 -6
  147. data/lib/kintsugi_sdk/models/shared/discountbuilder.rbi +3 -3
  148. data/lib/kintsugi_sdk/models/shared/disregardedtypeenum.rb +20 -0
  149. data/lib/kintsugi_sdk/models/shared/disregardedtypeenum.rbi +11 -0
  150. data/lib/kintsugi_sdk/models/shared/documenttypeenum.rb +21 -0
  151. data/lib/kintsugi_sdk/models/shared/documenttypeenum.rbi +11 -0
  152. data/lib/kintsugi_sdk/models/shared/exemption.rb +23 -14
  153. data/lib/kintsugi_sdk/models/shared/exemption.rbi +9 -5
  154. data/lib/kintsugi_sdk/models/shared/exemptioncreate.rb +3 -3
  155. data/lib/kintsugi_sdk/models/shared/exemptioncreate.rbi +1 -1
  156. data/lib/kintsugi_sdk/models/shared/exemptionrequired.rb +22 -2
  157. data/lib/kintsugi_sdk/models/shared/exemptionrequired.rbi +11 -1
  158. data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rb +42 -0
  159. data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rbi +11 -0
  160. data/lib/kintsugi_sdk/models/shared/exemptionstatus.rbi +1 -1
  161. data/lib/kintsugi_sdk/models/shared/exemptiontype.rb +1 -0
  162. data/lib/kintsugi_sdk/models/shared/exemptiontype.rbi +1 -1
  163. data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rb +2 -2
  164. data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rbi +1 -1
  165. data/lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rbi +1 -1
  166. data/lib/kintsugi_sdk/models/shared/jurisdictiontype.rbi +1 -1
  167. data/lib/kintsugi_sdk/models/shared/loc.rb +27 -0
  168. data/lib/kintsugi_sdk/models/shared/loc.rbi +11 -0
  169. data/lib/kintsugi_sdk/models/shared/nexusresponse.rb +112 -82
  170. data/lib/kintsugi_sdk/models/shared/nexusresponse.rbi +53 -41
  171. data/lib/kintsugi_sdk/models/shared/nexusstateenum.rbi +1 -1
  172. data/lib/kintsugi_sdk/models/shared/nexusstatusenum.rbi +1 -1
  173. data/lib/kintsugi_sdk/models/shared/nexustypeenum.rb +1 -0
  174. data/lib/kintsugi_sdk/models/shared/nexustypeenum.rbi +1 -1
  175. data/lib/kintsugi_sdk/models/shared/page_customerread_.rbi +1 -1
  176. data/lib/kintsugi_sdk/models/shared/page_nexusresponse_.rbi +1 -1
  177. data/lib/kintsugi_sdk/models/shared/page_transactionread_.rbi +1 -1
  178. data/lib/kintsugi_sdk/models/shared/periodmodelenum.rb +2 -0
  179. data/lib/kintsugi_sdk/models/shared/periodmodelenum.rbi +1 -1
  180. data/lib/kintsugi_sdk/models/shared/processingstatusenum.rb +1 -0
  181. data/lib/kintsugi_sdk/models/shared/processingstatusenum.rbi +1 -1
  182. data/lib/kintsugi_sdk/models/shared/productread.rb +40 -12
  183. data/lib/kintsugi_sdk/models/shared/productread.rbi +19 -5
  184. data/lib/kintsugi_sdk/models/shared/productstatusenum.rb +1 -0
  185. data/lib/kintsugi_sdk/models/shared/productstatusenum.rbi +1 -1
  186. data/lib/kintsugi_sdk/models/shared/productupdate.rb +6 -6
  187. data/lib/kintsugi_sdk/models/shared/productupdate.rbi +3 -3
  188. data/lib/kintsugi_sdk/models/shared/productupdatev2.rb +64 -0
  189. data/lib/kintsugi_sdk/models/shared/productupdatev2.rbi +29 -0
  190. data/lib/kintsugi_sdk/models/shared/quantity.rb +27 -0
  191. data/lib/kintsugi_sdk/models/shared/quantity.rbi +11 -0
  192. data/lib/kintsugi_sdk/models/shared/quantity_of_the_product_.rb +27 -0
  193. data/lib/kintsugi_sdk/models/shared/quantity_of_the_product_.rbi +11 -0
  194. data/lib/kintsugi_sdk/models/shared/rate.rb +27 -0
  195. data/lib/kintsugi_sdk/models/shared/rate.rbi +11 -0
  196. data/lib/kintsugi_sdk/models/shared/registrationsregimeenum.rbi +1 -1
  197. data/lib/kintsugi_sdk/models/shared/relatedentitytype.rbi +1 -1
  198. data/lib/kintsugi_sdk/models/shared/salesortransactionsenum.rbi +1 -1
  199. data/lib/kintsugi_sdk/models/shared/security.rb +2 -6
  200. data/lib/kintsugi_sdk/models/shared/security.rbi +1 -3
  201. data/lib/kintsugi_sdk/models/shared/sourceenum.rb +15 -0
  202. data/lib/kintsugi_sdk/models/shared/sourceenum.rbi +1 -1
  203. data/lib/kintsugi_sdk/models/shared/statusenum.rbi +1 -1
  204. data/lib/kintsugi_sdk/models/shared/tax_amount_calculated.rb +27 -0
  205. data/lib/kintsugi_sdk/models/shared/tax_amount_calculated.rbi +11 -0
  206. data/lib/kintsugi_sdk/models/shared/tax_amount_imported.rb +27 -0
  207. data/lib/kintsugi_sdk/models/shared/tax_amount_imported.rbi +11 -0
  208. data/lib/kintsugi_sdk/models/shared/tax_rate_calculated.rb +27 -0
  209. data/lib/kintsugi_sdk/models/shared/tax_rate_calculated.rbi +11 -0
  210. data/lib/kintsugi_sdk/models/shared/tax_rate_imported.rb +27 -0
  211. data/lib/kintsugi_sdk/models/shared/tax_rate_imported.rbi +11 -0
  212. data/lib/kintsugi_sdk/models/shared/taxable_amount.rb +27 -0
  213. data/lib/kintsugi_sdk/models/shared/taxable_amount.rbi +11 -0
  214. data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rb +1 -0
  215. data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rbi +1 -1
  216. data/lib/kintsugi_sdk/models/shared/taxitembuilder.rb +14 -14
  217. data/lib/kintsugi_sdk/models/shared/taxitembuilder.rbi +5 -5
  218. data/lib/kintsugi_sdk/models/shared/taxitembuilder_amount.rb +27 -0
  219. data/lib/kintsugi_sdk/models/shared/taxitembuilder_amount.rbi +11 -0
  220. data/lib/kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rb +27 -0
  221. data/lib/kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rbi +11 -0
  222. data/lib/kintsugi_sdk/models/shared/taxitemestimate.rb +10 -10
  223. data/lib/kintsugi_sdk/models/shared/taxitemestimate.rbi +5 -5
  224. data/lib/kintsugi_sdk/models/shared/taxitemread.rb +10 -10
  225. data/lib/kintsugi_sdk/models/shared/taxitemread.rbi +5 -5
  226. data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rb +1 -0
  227. data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rbi +1 -1
  228. data/lib/kintsugi_sdk/models/shared/taxitemtypeenum.rbi +1 -1
  229. data/lib/kintsugi_sdk/models/shared/taxliabilitysourceenum.rbi +1 -1
  230. data/lib/kintsugi_sdk/models/shared/taxtypeenum.rb +26 -0
  231. data/lib/kintsugi_sdk/models/shared/taxtypeenum.rbi +11 -0
  232. data/lib/kintsugi_sdk/models/shared/total_amount.rb +27 -0
  233. data/lib/kintsugi_sdk/models/shared/total_amount.rbi +11 -0
  234. data/lib/kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rb +27 -0
  235. data/lib/kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rbi +11 -0
  236. data/lib/kintsugi_sdk/models/shared/total_tax_amount_calculated.rb +27 -0
  237. data/lib/kintsugi_sdk/models/shared/total_tax_amount_calculated.rbi +11 -0
  238. data/lib/kintsugi_sdk/models/shared/total_tax_amount_imported.rb +27 -0
  239. data/lib/kintsugi_sdk/models/shared/total_tax_amount_imported.rbi +11 -0
  240. data/lib/kintsugi_sdk/models/shared/total_tax_liability_amount.rb +27 -0
  241. data/lib/kintsugi_sdk/models/shared/total_tax_liability_amount.rbi +11 -0
  242. data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rb +11 -7
  243. data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rbi +5 -3
  244. data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rb +8 -4
  245. data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rbi +3 -1
  246. data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rb +11 -7
  247. data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rbi +5 -3
  248. data/lib/kintsugi_sdk/models/shared/transactioncreate.rb +84 -78
  249. data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +35 -29
  250. data/lib/kintsugi_sdk/models/shared/transactiondirectionenum.rb +19 -0
  251. data/lib/kintsugi_sdk/models/shared/transactiondirectionenum.rbi +11 -0
  252. data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb +9 -7
  253. data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rbi +3 -3
  254. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rb +10 -8
  255. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rbi +3 -3
  256. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb +7 -3
  257. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rbi +3 -1
  258. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_type.rbi +1 -1
  259. data/lib/kintsugi_sdk/models/shared/transactionexemptstatusenum.rbi +1 -1
  260. data/lib/kintsugi_sdk/models/shared/transactionimportcustomer.rb +104 -0
  261. data/lib/kintsugi_sdk/models/shared/transactionimportcustomer.rbi +49 -0
  262. data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rb +53 -53
  263. data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rbi +21 -21
  264. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_amount.rb +27 -0
  265. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_amount.rbi +11 -0
  266. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rb +27 -0
  267. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rbi +11 -0
  268. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rb +27 -0
  269. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rbi +11 -0
  270. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rb +27 -0
  271. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rbi +11 -0
  272. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rb +27 -0
  273. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rbi +11 -0
  274. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rb +27 -0
  275. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rbi +11 -0
  276. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rb +27 -0
  277. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rbi +11 -0
  278. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_quantity.rb +27 -0
  279. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_quantity.rbi +11 -0
  280. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rb +27 -0
  281. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rbi +11 -0
  282. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rb +27 -0
  283. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rbi +11 -0
  284. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rb +27 -0
  285. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rbi +11 -0
  286. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rb +27 -0
  287. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rbi +11 -0
  288. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rb +27 -0
  289. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rbi +11 -0
  290. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rb +53 -53
  291. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rbi +21 -21
  292. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rb +27 -0
  293. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rbi +11 -0
  294. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rb +27 -0
  295. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rbi +11 -0
  296. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rb +27 -0
  297. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rbi +11 -0
  298. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rb +27 -0
  299. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rbi +11 -0
  300. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rb +27 -0
  301. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rbi +11 -0
  302. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rb +27 -0
  303. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rbi +11 -0
  304. data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rb +17 -7
  305. data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rbi +5 -3
  306. data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb +20 -10
  307. data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rbi +7 -5
  308. data/lib/kintsugi_sdk/models/shared/transactionitemread.rb +51 -43
  309. data/lib/kintsugi_sdk/models/shared/transactionitemread.rbi +23 -19
  310. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb +64 -62
  311. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +29 -25
  312. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rb +27 -0
  313. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rbi +11 -0
  314. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rb +27 -0
  315. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rbi +11 -0
  316. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rb +27 -0
  317. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rbi +11 -0
  318. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rb +27 -0
  319. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rbi +11 -0
  320. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rb +27 -0
  321. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rbi +11 -0
  322. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rb +27 -0
  323. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rbi +11 -0
  324. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rb +27 -0
  325. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rbi +11 -0
  326. data/lib/kintsugi_sdk/models/shared/transactionread.rb +89 -71
  327. data/lib/kintsugi_sdk/models/shared/transactionread.rbi +41 -29
  328. data/lib/kintsugi_sdk/models/shared/transactionrefundstatus.rbi +1 -1
  329. data/lib/kintsugi_sdk/models/shared/transactionstatusenum.rbi +1 -1
  330. data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rb +1 -0
  331. data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rbi +1 -1
  332. data/lib/kintsugi_sdk/models/shared/transactionupdate.rb +63 -61
  333. data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +29 -25
  334. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rb +27 -0
  335. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rbi +11 -0
  336. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rb +27 -0
  337. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rbi +11 -0
  338. data/lib/kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rb +27 -0
  339. data/lib/kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rbi +11 -0
  340. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_amount.rb +27 -0
  341. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_amount.rbi +11 -0
  342. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rb +27 -0
  343. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rbi +11 -0
  344. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rb +27 -0
  345. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rbi +11 -0
  346. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rb +27 -0
  347. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rbi +11 -0
  348. data/lib/kintsugi_sdk/models/shared/treatmentenum.rbi +1 -1
  349. data/lib/kintsugi_sdk/models/shared/type.rbi +1 -1
  350. data/lib/kintsugi_sdk/models/shared/validationaddress.rb +12 -12
  351. data/lib/kintsugi_sdk/models/shared/validationaddress.rbi +5 -5
  352. data/lib/kintsugi_sdk/models/shared/validationerror.rb +11 -3
  353. data/lib/kintsugi_sdk/models/shared/validationerror.rbi +5 -1
  354. data/lib/kintsugi_sdk/models/shared.rb +73 -5
  355. data/lib/kintsugi_sdk/nexus.rb +15 -10
  356. data/lib/kintsugi_sdk/openapisdk.rb +7 -6
  357. data/lib/kintsugi_sdk/products.rb +32 -22
  358. data/lib/kintsugi_sdk/sdkconfiguration.rb +10 -11
  359. data/lib/kintsugi_sdk/taxestimation.rb +17 -12
  360. data/lib/kintsugi_sdk/transactions.rb +125 -105
  361. data/lib/kintsugi_sdk/utils/retries.rb +43 -1
  362. data/lib/kintsugi_sdk/utils/security.rb +22 -11
  363. data/lib/kintsugi_sdk/utils/utils.rb +6 -2
  364. data/lib/kintsugi_sdk.rb +1 -1
  365. metadata +172 -18
  366. data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rbi +0 -13
  367. data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rbi +0 -13
  368. data/lib/kintsugi_sdk/models/shared/file.rb +0 -36
  369. data/lib/kintsugi_sdk/models/shared/file.rbi +0 -15
  370. data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rb +0 -48
  371. data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rbi +0 -21
@@ -39,14 +39,16 @@ 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)
44
- # list - Get Exemptions
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)
46
+ # list - Get exemptions
45
47
  # Retrieve a list of exemptions based on filters.
46
48
  url, params = @sdk_configuration.get_server_details
47
49
  base_url = Utils.template_url(url, params)
48
50
  url = "#{base_url}/v1/exemptions"
49
- headers = {}
51
+ headers = Utils.get_headers(request)
50
52
  headers = T.cast(headers, T::Hash[String, String])
51
53
  query_params = Utils.get_query_params(Models::Ops::GetExemptionsV1ExemptionsGetRequest, request, nil)
52
54
  headers['Accept'] = 'application/json'
@@ -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,18 +186,18 @@ 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)
186
- # create - Create Exemption
189
+ sig { params(request: Models::Ops::CreateExemptionV1ExemptionsPostRequest, 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)
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,
189
194
  # Country, State, validity dates, etc.
190
195
  url, params = @sdk_configuration.get_server_details
191
196
  base_url = Utils.template_url(url, params)
192
197
  url = "#{base_url}/v1/exemptions"
193
- headers = {}
198
+ headers = Utils.get_headers(request)
194
199
  headers = T.cast(headers, T::Hash[String, String])
195
- req_content_type, data, form = Utils.serialize_request_body(request, false, false, :request, :json)
200
+ req_content_type, data, form = Utils.serialize_request_body(request, false, false, :exemption_create, :json)
196
201
  headers['content-type'] = req_content_type
197
202
  raise StandardError, 'request body is required' if data.nil? && form.nil?
198
203
 
@@ -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,9 +343,9 @@ 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)
340
- # get - Get Exemption By Id
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::BackendSrcExemptionsSchemasExemptionExemptionRead) }
347
+ def get(request:, timeout_ms: nil, http_headers: nil)
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
343
351
  # about a particular exemption, including its associated
@@ -350,7 +358,7 @@ module KintsugiSDK
350
358
  '/v1/exemptions/{exemption_id}',
351
359
  request
352
360
  )
353
- headers = {}
361
+ headers = Utils.get_headers(request)
354
362
  headers = T.cast(headers, T::Hash[String, String])
355
363
  headers['Accept'] = 'application/json'
356
364
  headers['user-agent'] = @sdk_configuration.user_agent
@@ -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')
@@ -424,7 +435,7 @@ module KintsugiSDK
424
435
  response: http_response
425
436
  )
426
437
  response_data = http_response.env.response_body
427
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::BackendSrcExemptionsModelsExemptionRead)
438
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::BackendSrcExemptionsSchemasExemptionExemptionRead)
428
439
 
429
440
  return obj
430
441
  else
@@ -483,34 +494,23 @@ 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)
488
- # upload_certificate - Upload Exemption Certificate
489
- # The Upload Exemption Certificate API allows you
490
- # to upload a file attachment (e.g., exemption certificate) for a specific exemption.
491
- # This is primarily used to associate supporting documents with an exemption record
492
- # to ensure compliance and facilitate verification.
497
+ 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]) }
498
+ def get_attachments(request:, timeout_ms: nil, http_headers: nil)
499
+ # get_attachments - Get attachments for exemption
500
+ # The Get Attachments for Exemption API retrieves all
501
+ # attachments associated with a specific exemption.
502
+ # This is used to view and manage supporting documents
503
+ # like exemption certificates uploaded for a particular exemption record.
493
504
  url, params = @sdk_configuration.get_server_details
494
505
  base_url = Utils.template_url(url, params)
495
506
  url = Utils.generate_url(
496
- Models::Ops::UploadExemptionCertRequest,
507
+ Models::Ops::GetExemptionAttachmentsRequest,
497
508
  base_url,
498
509
  '/v1/exemptions/{exemption_id}/attachments',
499
510
  request
500
511
  )
501
- headers = {}
512
+ headers = Utils.get_headers(request)
502
513
  headers = T.cast(headers, T::Hash[String, String])
503
- req_content_type, data, form = Utils.serialize_request_body(request, false, false, :body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post, :multipart)
504
- headers['content-type'] = req_content_type
505
- raise StandardError, 'request body is required' if data.nil? && form.nil?
506
-
507
- if form && !form.empty?
508
- body = Utils.encode_form(form)
509
- elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
510
- body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
511
- else
512
- body = data
513
- end
514
514
  headers['Accept'] = 'application/json'
515
515
  headers['user-agent'] = @sdk_configuration.user_agent
516
516
 
@@ -518,7 +518,7 @@ module KintsugiSDK
518
518
 
519
519
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
520
520
  timeout ||= @sdk_configuration.timeout
521
-
521
+
522
522
 
523
523
  connection = @sdk_configuration.client
524
524
 
@@ -526,20 +526,22 @@ module KintsugiSDK
526
526
  config: @sdk_configuration,
527
527
  base_url: base_url,
528
528
  oauth2_scopes: nil,
529
- operation_id: 'uploadExemptionCert',
529
+ operation_id: 'getExemptionAttachments',
530
530
  security_source: @sdk_configuration.security_source
531
531
  )
532
532
 
533
533
  error = T.let(nil, T.nilable(StandardError))
534
534
  http_response = T.let(nil, T.nilable(Faraday::Response))
535
535
 
536
-
536
+
537
537
  begin
538
- http_response = T.must(connection).post(url) do |req|
539
- req.body = body
538
+ http_response = T.must(connection).get(url) do |req|
540
539
  req.headers.merge!(headers)
541
540
  req.options.timeout = timeout unless timeout.nil?
542
541
  Utils.configure_request_security(req, security)
542
+ http_headers&.each do |key, value|
543
+ req.headers[key.to_s] = value
544
+ end
543
545
 
544
546
  @sdk_configuration.hooks.before_request(
545
547
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -567,13 +569,13 @@ module KintsugiSDK
567
569
  response: http_response
568
570
  )
569
571
  end
570
-
572
+
571
573
  if http_response.nil?
572
574
  raise error if !error.nil?
573
575
  raise 'no response'
574
576
  end
575
577
  end
576
-
578
+
577
579
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
578
580
  if Utils.match_status_code(http_response.status, ['200'])
579
581
  if Utils.match_content_type(content_type, 'application/json')
@@ -584,7 +586,7 @@ module KintsugiSDK
584
586
  response: http_response
585
587
  )
586
588
  response_data = http_response.env.response_body
587
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AttachmentRead)
589
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Shared::AttachmentRead))
588
590
 
589
591
  return obj
590
592
  else
@@ -618,20 +620,6 @@ module KintsugiSDK
618
620
  else
619
621
  raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
620
622
  end
621
- elsif Utils.match_status_code(http_response.status, ['500'])
622
- if Utils.match_content_type(content_type, 'application/json')
623
- @sdk_configuration.hooks.after_success(
624
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
625
- hook_ctx: hook_ctx
626
- ),
627
- response: http_response
628
- )
629
- response_data = http_response.env.response_body
630
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
631
- raise obj
632
- else
633
- raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
634
- end
635
623
  elsif Utils.match_status_code(http_response.status, ['4XX'])
636
624
  raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
637
625
  elsif Utils.match_status_code(http_response.status, ['5XX'])
@@ -643,23 +631,34 @@ module KintsugiSDK
643
631
  end
644
632
 
645
633
 
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)
648
- # get_attachments - Get Attachments For Exemption
649
- # The Get Attachments for Exemption API retrieves all
650
- # attachments associated with a specific exemption.
651
- # This is used to view and manage supporting documents
652
- # like exemption certificates uploaded for a particular exemption record.
634
+ 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) }
635
+ def upload_certificate(request:, timeout_ms: nil, http_headers: nil)
636
+ # upload_certificate - Upload exemption certificate
637
+ # The Upload Exemption Certificate API allows you
638
+ # to upload a file attachment (e.g., exemption certificate) for a specific exemption.
639
+ # This is primarily used to associate supporting documents with an exemption record
640
+ # to ensure compliance and facilitate verification.
653
641
  url, params = @sdk_configuration.get_server_details
654
642
  base_url = Utils.template_url(url, params)
655
643
  url = Utils.generate_url(
656
- Models::Ops::GetExemptionAttachmentsRequest,
644
+ Models::Ops::UploadExemptionCertRequest,
657
645
  base_url,
658
646
  '/v1/exemptions/{exemption_id}/attachments',
659
647
  request
660
648
  )
661
- headers = {}
649
+ headers = Utils.get_headers(request)
662
650
  headers = T.cast(headers, T::Hash[String, String])
651
+ req_content_type, data, form = Utils.serialize_request_body(request, false, false, :body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post, :multipart)
652
+ headers['content-type'] = req_content_type
653
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
654
+
655
+ if form && !form.empty?
656
+ body = Utils.encode_form(form)
657
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
658
+ body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
659
+ else
660
+ body = data
661
+ end
663
662
  headers['Accept'] = 'application/json'
664
663
  headers['user-agent'] = @sdk_configuration.user_agent
665
664
 
@@ -667,7 +666,7 @@ module KintsugiSDK
667
666
 
668
667
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
669
668
  timeout ||= @sdk_configuration.timeout
670
-
669
+
671
670
 
672
671
  connection = @sdk_configuration.client
673
672
 
@@ -675,19 +674,23 @@ module KintsugiSDK
675
674
  config: @sdk_configuration,
676
675
  base_url: base_url,
677
676
  oauth2_scopes: nil,
678
- operation_id: 'getExemptionAttachments',
677
+ operation_id: 'uploadExemptionCert',
679
678
  security_source: @sdk_configuration.security_source
680
679
  )
681
680
 
682
681
  error = T.let(nil, T.nilable(StandardError))
683
682
  http_response = T.let(nil, T.nilable(Faraday::Response))
684
683
 
685
-
684
+
686
685
  begin
687
- http_response = T.must(connection).get(url) do |req|
686
+ http_response = T.must(connection).post(url) do |req|
687
+ req.body = body
688
688
  req.headers.merge!(headers)
689
689
  req.options.timeout = timeout unless timeout.nil?
690
690
  Utils.configure_request_security(req, security)
691
+ http_headers&.each do |key, value|
692
+ req.headers[key.to_s] = value
693
+ end
691
694
 
692
695
  @sdk_configuration.hooks.before_request(
693
696
  hook_ctx: SDKHooks::BeforeRequestHookContext.new(
@@ -715,13 +718,13 @@ module KintsugiSDK
715
718
  response: http_response
716
719
  )
717
720
  end
718
-
721
+
719
722
  if http_response.nil?
720
723
  raise error if !error.nil?
721
724
  raise 'no response'
722
725
  end
723
726
  end
724
-
727
+
725
728
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
726
729
  if Utils.match_status_code(http_response.status, ['200'])
727
730
  if Utils.match_content_type(content_type, 'application/json')
@@ -732,7 +735,7 @@ module KintsugiSDK
732
735
  response: http_response
733
736
  )
734
737
  response_data = http_response.env.response_body
735
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Shared::AttachmentRead))
738
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AttachmentRead)
736
739
 
737
740
  return obj
738
741
  else
@@ -766,6 +769,20 @@ module KintsugiSDK
766
769
  else
767
770
  raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
768
771
  end
772
+ elsif Utils.match_status_code(http_response.status, ['500'])
773
+ if Utils.match_content_type(content_type, 'application/json')
774
+ @sdk_configuration.hooks.after_success(
775
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
776
+ hook_ctx: hook_ctx
777
+ ),
778
+ response: http_response
779
+ )
780
+ response_data = http_response.env.response_body
781
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
782
+ raise obj
783
+ else
784
+ raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
785
+ end
769
786
  elsif Utils.match_status_code(http_response.status, ['4XX'])
770
787
  raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
771
788
  elsif Utils.match_status_code(http_response.status, ['5XX'])
@@ -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
@@ -8,14 +8,14 @@ module KintsugiSDK
8
8
  module Models
9
9
  module Errors
10
10
 
11
- class BackendSrcProductsResponsesValidationErrorResponse < StandardError
11
+ class BackendSrcProductsSchemasResponsesValidationErrorResponse < StandardError
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
15
15
 
16
- field :detail, Crystalline::Array.new(Models::Shared::BackendSrcProductsResponsesValidationErrorItem), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('detail'), required: true } }
16
+ field :detail, Crystalline::Array.new(Models::Shared::BackendSrcProductsSchemasResponsesValidationErrorItem), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('detail'), required: true } }
17
17
 
18
- sig { params(detail: T::Array[Models::Shared::BackendSrcProductsResponsesValidationErrorItem]).void }
18
+ sig { params(detail: T::Array[Models::Shared::BackendSrcProductsSchemasResponsesValidationErrorItem]).void }
19
19
  def initialize(detail:)
20
20
  @detail = detail
21
21
  end
@@ -0,0 +1,13 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class KintsugiSDK::Models::Errors::BackendSrcProductsSchemasResponsesValidationErrorResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Errors::BackendSrcProductsSchemasResponsesValidationErrorResponse
11
+ def detail(); end
12
+ def detail=(str_); 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,7 +12,7 @@ module KintsugiSDK
12
12
  autoload :BackendSrcAddressValidationResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rb'
13
13
  autoload :BackendSrcCustomersResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rb'
14
14
  autoload :BackendSrcExemptionsResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rb'
15
- autoload :BackendSrcProductsResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rb'
15
+ autoload :BackendSrcProductsSchemasResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_products_schemas_responses_validationerrorresponse.rb'
16
16
  autoload :BackendSrcTaxEstimationResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rb'
17
17
  autoload :BackendSrcTransactionsResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rb'
18
18
  end
@@ -8,22 +8,17 @@ module KintsugiSDK
8
8
  module Models
9
9
  module Ops
10
10
 
11
- class SearchV1AddressValidationSearchPostSecurity
11
+ class Country
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
15
15
 
16
- field :api_key_header, ::String, { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'X-API-KEY' } }
17
-
18
- sig { params(api_key_header: ::String).void }
19
- def initialize(api_key_header:)
20
- @api_key_header = api_key_header
21
- end
16
+
17
+ def initialize; end
22
18
 
23
19
  sig { params(other: T.untyped).returns(T::Boolean) }
24
20
  def ==(other)
25
21
  return false unless other.is_a? self.class
26
- return false unless @api_key_header == other.api_key_header
27
22
  true
28
23
  end
29
24
  end
@@ -2,10 +2,10 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
 
5
- class KintsugiSDK::Models::Shared::Registration
5
+ class KintsugiSDK::Models::Ops::Country
6
6
  extend ::Crystalline::MetadataFields::ClassMethods
7
7
  end
8
8
 
9
9
 
10
- class KintsugiSDK::Models::Shared::Registration
11
- end
10
+ class KintsugiSDK::Models::Ops::Country
11
+ end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module KintsugiSDK
8
+ module Models
9
+ module Ops
10
+
11
+ class CountryCode
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+
16
+
17
+ def initialize; end
18
+
19
+ sig { params(other: T.untyped).returns(T::Boolean) }
20
+ def ==(other)
21
+ return false unless other.is_a? self.class
22
+ true
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,11 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class KintsugiSDK::Models::Ops::CountryCode
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Ops::CountryCode
11
+ end