kintsugi_sdk 5.6.1 → 5.7.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 (338) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kintsugi_sdk/addressvalidation.rb +27 -25
  3. data/lib/kintsugi_sdk/customers.rb +133 -131
  4. data/lib/kintsugi_sdk/exemptions.rb +94 -94
  5. data/lib/kintsugi_sdk/models/errors/apierror.rb +1 -1
  6. data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rb +1 -1
  7. data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rb +1 -1
  8. data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rb +1 -1
  9. data/lib/kintsugi_sdk/models/errors/{backend_src_products_responses_validationerrorresponse.rb → backend_src_products_schemas_responses_validationerrorresponse.rb} +3 -3
  10. data/lib/kintsugi_sdk/models/errors/backend_src_products_schemas_responses_validationerrorresponse.rbi +13 -0
  11. data/lib/kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rb +1 -1
  12. data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rb +1 -1
  13. data/lib/kintsugi_sdk/models/errors/errorresponse.rb +1 -1
  14. data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rb +1 -1
  15. data/lib/kintsugi_sdk/models/errors.rb +1 -1
  16. data/lib/kintsugi_sdk/models/ops/{search_v1_address_validation_search_post_security.rb → country.rb} +3 -8
  17. data/lib/kintsugi_sdk/models/{shared/registration.rbi → ops/country.rbi} +2 -2
  18. data/lib/kintsugi_sdk/models/ops/country_code.rb +27 -0
  19. data/lib/kintsugi_sdk/models/ops/country_code.rbi +11 -0
  20. data/lib/kintsugi_sdk/models/ops/create_customer_v1_customers_post_request.rb +36 -0
  21. data/lib/kintsugi_sdk/models/ops/create_customer_v1_customers_post_request.rbi +15 -0
  22. data/lib/kintsugi_sdk/models/ops/create_exemption_v1_exemptions_post_request.rb +36 -0
  23. data/lib/kintsugi_sdk/models/ops/create_exemption_v1_exemptions_post_request.rbi +15 -0
  24. data/lib/kintsugi_sdk/models/ops/create_transaction_v1_transactions_post_request.rb +36 -0
  25. data/lib/kintsugi_sdk/models/ops/create_transaction_v1_transactions_post_request.rbi +15 -0
  26. data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rb +6 -2
  27. data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rbi +2 -0
  28. data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rb +6 -2
  29. data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rbi +2 -0
  30. data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rb +6 -2
  31. data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rbi +2 -0
  32. data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rb +6 -2
  33. data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rbi +2 -0
  34. data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rb +13 -5
  35. data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rbi +4 -0
  36. data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rb +6 -2
  37. data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rbi +2 -0
  38. data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rb +19 -11
  39. data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rbi +6 -2
  40. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rb +29 -13
  41. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rbi +14 -6
  42. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_response_get_nexus_for_org_v1_nexus_get.rb +27 -0
  43. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_response_get_nexus_for_org_v1_nexus_get.rbi +11 -0
  44. data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rb +6 -2
  45. data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rbi +2 -0
  46. data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rb +6 -2
  47. data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rbi +2 -0
  48. data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rb +44 -18
  49. data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rbi +14 -4
  50. data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rb +6 -2
  51. data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rbi +2 -0
  52. data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rb +6 -2
  53. data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rbi +2 -0
  54. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rb +14 -2
  55. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rbi +6 -0
  56. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_response_get_transactions_by_customer_id_v1_cus_6a2c85.rb +27 -0
  57. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_response_get_transactions_by_customer_id_v1_cus_6a2c85.rbi +11 -0
  58. data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rb +6 -2
  59. data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rbi +2 -0
  60. data/lib/kintsugi_sdk/models/ops/queryparam_country.rb +27 -0
  61. data/lib/kintsugi_sdk/models/ops/queryparam_country.rbi +11 -0
  62. data/lib/kintsugi_sdk/models/ops/suggestions_v1_address_validation_suggestions_post_request.rb +36 -0
  63. data/lib/kintsugi_sdk/models/ops/suggestions_v1_address_validation_suggestions_post_request.rbi +15 -0
  64. data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rb +6 -2
  65. data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rbi +2 -0
  66. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_product.rb +27 -0
  67. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_product.rbi +11 -0
  68. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rb +9 -5
  69. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rbi +4 -2
  70. data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rb +6 -2
  71. data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rbi +2 -0
  72. data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rb +6 -2
  73. data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rbi +2 -0
  74. data/lib/kintsugi_sdk/models/ops.rb +10 -1
  75. data/lib/kintsugi_sdk/models/shared/addressbase.rb +1 -1
  76. data/lib/kintsugi_sdk/models/shared/addresses.rb +7 -3
  77. data/lib/kintsugi_sdk/models/shared/addresses.rbi +2 -0
  78. data/lib/kintsugi_sdk/models/shared/amount.rb +27 -0
  79. data/lib/kintsugi_sdk/models/shared/amount.rbi +11 -0
  80. data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rb +2 -2
  81. data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rb +2 -2
  82. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rb +2 -2
  83. data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rb → backend_src_exemptions_schemas_exemption_exemptionread.rb} +15 -10
  84. data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rbi → backend_src_exemptions_schemas_exemption_exemptionread.rbi} +6 -4
  85. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb +13 -9
  86. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rbi +4 -2
  87. data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rb → backend_src_products_schemas_responses_validationerroritem.rb} +3 -3
  88. data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rbi → backend_src_products_schemas_responses_validationerroritem.rbi} +2 -2
  89. data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rb +2 -2
  90. data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rb +2 -2
  91. data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rb +2 -2
  92. data/lib/kintsugi_sdk/models/shared/{registration.rb → context.rb} +1 -1
  93. data/lib/kintsugi_sdk/models/shared/context.rbi +11 -0
  94. data/lib/kintsugi_sdk/models/shared/conversion_rate.rb +27 -0
  95. data/lib/kintsugi_sdk/models/shared/conversion_rate.rbi +11 -0
  96. data/lib/kintsugi_sdk/models/shared/converted_amount.rb +27 -0
  97. data/lib/kintsugi_sdk/models/shared/converted_amount.rbi +11 -0
  98. data/lib/kintsugi_sdk/models/shared/converted_subtotal.rb +27 -0
  99. data/lib/kintsugi_sdk/models/shared/converted_subtotal.rbi +11 -0
  100. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_calculated.rb +27 -0
  101. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_calculated.rbi +11 -0
  102. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_imported.rb +27 -0
  103. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_imported.rbi +11 -0
  104. data/lib/kintsugi_sdk/models/shared/converted_taxable_amount.rb +27 -0
  105. data/lib/kintsugi_sdk/models/shared/converted_taxable_amount.rbi +11 -0
  106. data/lib/kintsugi_sdk/models/shared/converted_total_amount.rb +27 -0
  107. data/lib/kintsugi_sdk/models/shared/converted_total_amount.rbi +11 -0
  108. data/lib/kintsugi_sdk/models/shared/converted_total_discount.rb +27 -0
  109. data/lib/kintsugi_sdk/models/shared/converted_total_discount.rbi +11 -0
  110. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rb +27 -0
  111. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rbi +11 -0
  112. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rb +27 -0
  113. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rbi +11 -0
  114. data/lib/kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rb +27 -0
  115. data/lib/kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rbi +11 -0
  116. data/lib/kintsugi_sdk/models/shared/currencyenum.rb +1 -1
  117. data/lib/kintsugi_sdk/models/shared/customer.rb +27 -0
  118. data/lib/kintsugi_sdk/models/shared/customer.rbi +11 -0
  119. data/lib/kintsugi_sdk/models/shared/customerbase.rb +16 -12
  120. data/lib/kintsugi_sdk/models/shared/customerbase.rbi +6 -4
  121. data/lib/kintsugi_sdk/models/shared/customerbasebase.rb +16 -12
  122. data/lib/kintsugi_sdk/models/shared/customerbasebase.rbi +6 -4
  123. data/lib/kintsugi_sdk/models/shared/customerbasepublic.rb +16 -12
  124. data/lib/kintsugi_sdk/models/shared/customerbasepublic.rbi +6 -4
  125. data/lib/kintsugi_sdk/models/shared/customercreate.rb +20 -16
  126. data/lib/kintsugi_sdk/models/shared/customercreate.rbi +8 -6
  127. data/lib/kintsugi_sdk/models/shared/customerread.rb +24 -16
  128. data/lib/kintsugi_sdk/models/shared/customerread.rbi +10 -6
  129. data/lib/kintsugi_sdk/models/shared/customerupdate.rb +13 -9
  130. data/lib/kintsugi_sdk/models/shared/customerupdate.rbi +4 -2
  131. data/lib/kintsugi_sdk/models/shared/discount_amount.rb +27 -0
  132. data/lib/kintsugi_sdk/models/shared/discount_amount.rbi +11 -0
  133. data/lib/kintsugi_sdk/models/shared/discountbuilder.rb +6 -6
  134. data/lib/kintsugi_sdk/models/shared/discountbuilder.rbi +2 -2
  135. data/lib/kintsugi_sdk/models/shared/disregardedtypeenum.rb +20 -0
  136. data/lib/kintsugi_sdk/models/shared/disregardedtypeenum.rbi +11 -0
  137. data/lib/kintsugi_sdk/models/shared/documenttypeenum.rb +21 -0
  138. data/lib/kintsugi_sdk/models/shared/documenttypeenum.rbi +11 -0
  139. data/lib/kintsugi_sdk/models/shared/exemptioncreate.rb +8 -4
  140. data/lib/kintsugi_sdk/models/shared/exemptioncreate.rbi +2 -0
  141. data/lib/kintsugi_sdk/models/shared/exemptionrequired.rb +22 -2
  142. data/lib/kintsugi_sdk/models/shared/exemptionrequired.rbi +10 -0
  143. data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rb +46 -0
  144. data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rbi +11 -0
  145. data/lib/kintsugi_sdk/models/shared/exemptiontype.rb +2 -0
  146. data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rb +2 -2
  147. data/lib/kintsugi_sdk/models/shared/loc.rb +27 -0
  148. data/lib/kintsugi_sdk/models/shared/loc.rbi +11 -0
  149. data/lib/kintsugi_sdk/models/shared/nexusresponse.rb +130 -90
  150. data/lib/kintsugi_sdk/models/shared/nexusresponse.rbi +58 -44
  151. data/lib/kintsugi_sdk/models/shared/nexustypeenum.rb +1 -0
  152. data/lib/kintsugi_sdk/models/shared/periodmodelenum.rb +2 -0
  153. data/lib/kintsugi_sdk/models/shared/processingstatusenum.rb +1 -0
  154. data/lib/kintsugi_sdk/models/shared/productread.rb +41 -15
  155. data/lib/kintsugi_sdk/models/shared/productread.rbi +18 -4
  156. data/lib/kintsugi_sdk/models/shared/productstatusenum.rb +1 -0
  157. data/lib/kintsugi_sdk/models/shared/productupdate.rb +6 -6
  158. data/lib/kintsugi_sdk/models/shared/productupdate.rbi +2 -2
  159. data/lib/kintsugi_sdk/models/shared/productupdatev2.rb +64 -0
  160. data/lib/kintsugi_sdk/models/shared/productupdatev2.rbi +29 -0
  161. data/lib/kintsugi_sdk/models/shared/quantity.rb +27 -0
  162. data/lib/kintsugi_sdk/models/shared/quantity.rbi +11 -0
  163. data/lib/kintsugi_sdk/models/shared/quantity_of_the_product_.rb +27 -0
  164. data/lib/kintsugi_sdk/models/shared/quantity_of_the_product_.rbi +11 -0
  165. data/lib/kintsugi_sdk/models/shared/rate.rb +27 -0
  166. data/lib/kintsugi_sdk/models/shared/rate.rbi +11 -0
  167. data/lib/kintsugi_sdk/models/shared/relatedentitytype.rb +4 -0
  168. data/lib/kintsugi_sdk/models/shared/security.rb +3 -7
  169. data/lib/kintsugi_sdk/models/shared/security.rbi +0 -2
  170. data/lib/kintsugi_sdk/models/shared/sourceenum.rb +23 -0
  171. data/lib/kintsugi_sdk/models/shared/tax_amount_calculated.rb +27 -0
  172. data/lib/kintsugi_sdk/models/shared/tax_amount_calculated.rbi +11 -0
  173. data/lib/kintsugi_sdk/models/shared/tax_amount_imported.rb +27 -0
  174. data/lib/kintsugi_sdk/models/shared/tax_amount_imported.rbi +11 -0
  175. data/lib/kintsugi_sdk/models/shared/tax_rate_calculated.rb +27 -0
  176. data/lib/kintsugi_sdk/models/shared/tax_rate_calculated.rbi +11 -0
  177. data/lib/kintsugi_sdk/models/shared/tax_rate_imported.rb +27 -0
  178. data/lib/kintsugi_sdk/models/shared/tax_rate_imported.rbi +11 -0
  179. data/lib/kintsugi_sdk/models/shared/taxable_amount.rb +27 -0
  180. data/lib/kintsugi_sdk/models/shared/taxable_amount.rbi +11 -0
  181. data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rb +2 -0
  182. data/lib/kintsugi_sdk/models/shared/taxitembuilder.rb +14 -14
  183. data/lib/kintsugi_sdk/models/shared/taxitembuilder.rbi +4 -4
  184. data/lib/kintsugi_sdk/models/shared/taxitembuilder_amount.rb +27 -0
  185. data/lib/kintsugi_sdk/models/shared/taxitembuilder_amount.rbi +11 -0
  186. data/lib/kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rb +27 -0
  187. data/lib/kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rbi +11 -0
  188. data/lib/kintsugi_sdk/models/shared/taxitemestimate.rb +10 -10
  189. data/lib/kintsugi_sdk/models/shared/taxitemestimate.rbi +4 -4
  190. data/lib/kintsugi_sdk/models/shared/taxitemread.rb +10 -10
  191. data/lib/kintsugi_sdk/models/shared/taxitemread.rbi +4 -4
  192. data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rb +3 -0
  193. data/lib/kintsugi_sdk/models/shared/taxtypeenum.rb +30 -0
  194. data/lib/kintsugi_sdk/models/shared/taxtypeenum.rbi +11 -0
  195. data/lib/kintsugi_sdk/models/shared/total_amount.rb +27 -0
  196. data/lib/kintsugi_sdk/models/shared/total_amount.rbi +11 -0
  197. data/lib/kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rb +27 -0
  198. data/lib/kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rbi +11 -0
  199. data/lib/kintsugi_sdk/models/shared/total_tax_amount_calculated.rb +27 -0
  200. data/lib/kintsugi_sdk/models/shared/total_tax_amount_calculated.rbi +11 -0
  201. data/lib/kintsugi_sdk/models/shared/total_tax_amount_imported.rb +27 -0
  202. data/lib/kintsugi_sdk/models/shared/total_tax_amount_imported.rbi +11 -0
  203. data/lib/kintsugi_sdk/models/shared/total_tax_liability_amount.rb +27 -0
  204. data/lib/kintsugi_sdk/models/shared/total_tax_liability_amount.rbi +11 -0
  205. data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rb +11 -7
  206. data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rbi +4 -2
  207. data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rb +8 -4
  208. data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rbi +2 -0
  209. data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rb +11 -7
  210. data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rbi +4 -2
  211. data/lib/kintsugi_sdk/models/shared/transactioncreate.rb +89 -79
  212. data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +36 -28
  213. data/lib/kintsugi_sdk/models/shared/transactiondirectionenum.rb +19 -0
  214. data/lib/kintsugi_sdk/models/shared/transactiondirectionenum.rbi +11 -0
  215. data/lib/kintsugi_sdk/models/shared/{exemption.rb → transactionembeddedexemption.rb} +38 -16
  216. data/lib/kintsugi_sdk/models/shared/{exemption.rbi → transactionembeddedexemption.rbi} +12 -6
  217. data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb +10 -8
  218. data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rbi +2 -2
  219. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rb +11 -9
  220. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rbi +2 -2
  221. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb +7 -3
  222. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rbi +2 -0
  223. data/lib/kintsugi_sdk/models/shared/transactionimportcustomer.rb +104 -0
  224. data/lib/kintsugi_sdk/models/shared/transactionimportcustomer.rbi +49 -0
  225. data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rb +57 -53
  226. data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rbi +22 -20
  227. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_amount.rb +27 -0
  228. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_amount.rbi +11 -0
  229. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rb +27 -0
  230. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rbi +11 -0
  231. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rb +27 -0
  232. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rbi +11 -0
  233. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rb +27 -0
  234. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rbi +11 -0
  235. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rb +27 -0
  236. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rbi +11 -0
  237. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rb +27 -0
  238. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rbi +11 -0
  239. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rb +27 -0
  240. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rbi +11 -0
  241. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_quantity.rb +27 -0
  242. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_quantity.rbi +11 -0
  243. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rb +27 -0
  244. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rbi +11 -0
  245. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rb +27 -0
  246. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rbi +11 -0
  247. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rb +27 -0
  248. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rbi +11 -0
  249. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rb +27 -0
  250. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rbi +11 -0
  251. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rb +27 -0
  252. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rbi +11 -0
  253. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rb +57 -53
  254. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rbi +22 -20
  255. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rb +27 -0
  256. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rbi +11 -0
  257. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rb +27 -0
  258. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rbi +11 -0
  259. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rb +27 -0
  260. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rbi +11 -0
  261. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rb +27 -0
  262. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rbi +11 -0
  263. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rb +27 -0
  264. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rbi +11 -0
  265. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rb +27 -0
  266. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rbi +11 -0
  267. data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rb +15 -7
  268. data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rbi +4 -2
  269. data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb +18 -10
  270. data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rbi +6 -4
  271. data/lib/kintsugi_sdk/models/shared/transactionitemread.rb +64 -44
  272. data/lib/kintsugi_sdk/models/shared/transactionitemread.rbi +28 -18
  273. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb +69 -63
  274. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +30 -24
  275. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rb +27 -0
  276. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rbi +11 -0
  277. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rb +27 -0
  278. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rbi +11 -0
  279. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rb +27 -0
  280. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rbi +11 -0
  281. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rb +27 -0
  282. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rbi +11 -0
  283. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rb +27 -0
  284. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rbi +11 -0
  285. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rb +27 -0
  286. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rbi +11 -0
  287. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rb +27 -0
  288. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rbi +11 -0
  289. data/lib/kintsugi_sdk/models/shared/transactionread.rb +107 -73
  290. data/lib/kintsugi_sdk/models/shared/transactionread.rbi +48 -28
  291. data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rb +1 -0
  292. data/lib/kintsugi_sdk/models/shared/transactionupdate.rb +68 -62
  293. data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +30 -24
  294. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rb +27 -0
  295. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rbi +11 -0
  296. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rb +27 -0
  297. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rbi +11 -0
  298. data/lib/kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rb +27 -0
  299. data/lib/kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rbi +11 -0
  300. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_amount.rb +27 -0
  301. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_amount.rbi +11 -0
  302. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rb +27 -0
  303. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rbi +11 -0
  304. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rb +27 -0
  305. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rbi +11 -0
  306. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rb +27 -0
  307. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rbi +11 -0
  308. data/lib/kintsugi_sdk/models/shared/usetaxregistrationpath.rb +24 -0
  309. data/lib/kintsugi_sdk/models/shared/usetaxregistrationpath.rbi +11 -0
  310. data/lib/kintsugi_sdk/models/shared/validationaddress.rb +12 -12
  311. data/lib/kintsugi_sdk/models/shared/validationaddress.rbi +4 -4
  312. data/lib/kintsugi_sdk/models/shared/validationerror.rb +11 -3
  313. data/lib/kintsugi_sdk/models/shared/validationerror.rbi +4 -0
  314. data/lib/kintsugi_sdk/models/shared.rb +75 -6
  315. data/lib/kintsugi_sdk/nexus.rb +9 -9
  316. data/lib/kintsugi_sdk/openapisdk.rb +10 -10
  317. data/lib/kintsugi_sdk/products.rb +28 -26
  318. data/lib/kintsugi_sdk/sdk_hooks/hooks.rb +1 -1
  319. data/lib/kintsugi_sdk/sdk_hooks/types.rb +14 -14
  320. data/lib/kintsugi_sdk/sdkconfiguration.rb +22 -22
  321. data/lib/kintsugi_sdk/taxestimation.rb +15 -15
  322. data/lib/kintsugi_sdk/transactions.rb +113 -113
  323. data/lib/kintsugi_sdk/utils/forms.rb +23 -23
  324. data/lib/kintsugi_sdk/utils/headers.rb +4 -4
  325. data/lib/kintsugi_sdk/utils/query_params.rb +14 -14
  326. data/lib/kintsugi_sdk/utils/request_bodies.rb +7 -7
  327. data/lib/kintsugi_sdk/utils/retries.rb +42 -3
  328. data/lib/kintsugi_sdk/utils/security.rb +16 -16
  329. data/lib/kintsugi_sdk/utils/url.rb +6 -6
  330. data/lib/kintsugi_sdk/utils/utils.rb +37 -33
  331. data/lib/kintsugi_sdk.rb +1 -1
  332. metadata +174 -18
  333. data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rbi +0 -13
  334. data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rbi +0 -13
  335. data/lib/kintsugi_sdk/models/shared/file.rb +0 -36
  336. data/lib/kintsugi_sdk/models/shared/file.rbi +0 -15
  337. data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rb +0 -48
  338. data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rbi +0 -21
@@ -23,7 +23,7 @@ module KintsugiSDK
23
23
 
24
24
  end
25
25
 
26
- sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
26
+ sig { params(base_url: ::String, url_variables: T.nilable(T::Hash[::Symbol, T.any(::String, T::Enum)])).returns(::String) }
27
27
  def get_url(base_url:, url_variables: nil)
28
28
  sd_base_url, sd_options = @sdk_configuration.get_server_details
29
29
 
@@ -41,15 +41,15 @@ module KintsugiSDK
41
41
 
42
42
 
43
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) }
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
45
  def list(request:, timeout_ms: nil, http_headers: nil)
46
- # list - Get Exemptions
46
+ # list - Get exemptions
47
47
  # Retrieve a list of exemptions based on filters.
48
48
  url, params = @sdk_configuration.get_server_details
49
49
  base_url = Utils.template_url(url, params)
50
50
  url = "#{base_url}/v1/exemptions"
51
- headers = {}
52
- headers = T.cast(headers, T::Hash[String, String])
51
+ headers = Utils.get_headers(request)
52
+ headers = T.cast(headers, T::Hash[::String, ::String])
53
53
  query_params = Utils.get_query_params(Models::Ops::GetExemptionsV1ExemptionsGetRequest, request, nil)
54
54
  headers['Accept'] = 'application/json'
55
55
  headers['user-agent'] = @sdk_configuration.user_agent
@@ -70,7 +70,7 @@ module KintsugiSDK
70
70
  security_source: @sdk_configuration.security_source
71
71
  )
72
72
 
73
- error = T.let(nil, T.nilable(StandardError))
73
+ error = T.let(nil, T.nilable(::StandardError))
74
74
  http_response = T.let(nil, T.nilable(Faraday::Response))
75
75
 
76
76
 
@@ -91,7 +91,7 @@ module KintsugiSDK
91
91
  request: req
92
92
  )
93
93
  end
94
- rescue StandardError => e
94
+ rescue ::StandardError => e
95
95
  error = e
96
96
  ensure
97
97
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -127,7 +127,7 @@ module KintsugiSDK
127
127
  response: http_response
128
128
  )
129
129
  response_data = http_response.env.response_body
130
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::FastapiPaginationDefaultPageExemptionRead2)
130
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Shared::FastapiPaginationDefaultPageExemptionRead2)
131
131
 
132
132
  return obj
133
133
  else
@@ -142,7 +142,7 @@ module KintsugiSDK
142
142
  response: http_response
143
143
  )
144
144
  response_data = http_response.env.response_body
145
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
145
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ErrorResponse)
146
146
  raise obj
147
147
  else
148
148
  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'
@@ -156,7 +156,7 @@ module KintsugiSDK
156
156
  response: http_response
157
157
  )
158
158
  response_data = http_response.env.response_body
159
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse)
159
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse)
160
160
  raise obj
161
161
  else
162
162
  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'
@@ -170,7 +170,7 @@ module KintsugiSDK
170
170
  response: http_response
171
171
  )
172
172
  response_data = http_response.env.response_body
173
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
173
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ErrorResponse)
174
174
  raise obj
175
175
  else
176
176
  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'
@@ -186,25 +186,25 @@ module KintsugiSDK
186
186
  end
187
187
 
188
188
 
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) }
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
190
  def create(request:, timeout_ms: nil, http_headers: nil)
191
- # create - Create Exemption
191
+ # create - Create exemption
192
192
  # The Create Exemption API allows you to create a new exemption record.
193
193
  # This includes defining details such as exemption type, jurisdiction,
194
194
  # Country, State, validity dates, etc.
195
195
  url, params = @sdk_configuration.get_server_details
196
196
  base_url = Utils.template_url(url, params)
197
197
  url = "#{base_url}/v1/exemptions"
198
- headers = {}
199
- headers = T.cast(headers, T::Hash[String, String])
200
- req_content_type, data, form = Utils.serialize_request_body(request, false, false, :request, :json)
198
+ headers = Utils.get_headers(request)
199
+ headers = T.cast(headers, T::Hash[::String, ::String])
200
+ req_content_type, data, form = Utils.serialize_request_body(request, false, false, :exemption_create, :json)
201
201
  headers['content-type'] = req_content_type
202
- raise StandardError, 'request body is required' if data.nil? && form.nil?
202
+ raise ::StandardError, 'request body is required' if data.nil? && form.nil?
203
203
 
204
204
  if form && !form.empty?
205
205
  body = Utils.encode_form(form)
206
206
  elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
207
- body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
207
+ body = ::URI.encode_www_form(T.cast(data, T::Hash[::Symbol, ::Object]))
208
208
  else
209
209
  body = data
210
210
  end
@@ -227,7 +227,7 @@ module KintsugiSDK
227
227
  security_source: @sdk_configuration.security_source
228
228
  )
229
229
 
230
- error = T.let(nil, T.nilable(StandardError))
230
+ error = T.let(nil, T.nilable(::StandardError))
231
231
  http_response = T.let(nil, T.nilable(Faraday::Response))
232
232
 
233
233
 
@@ -248,7 +248,7 @@ module KintsugiSDK
248
248
  request: req
249
249
  )
250
250
  end
251
- rescue StandardError => e
251
+ rescue ::StandardError => e
252
252
  error = e
253
253
  ensure
254
254
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -284,7 +284,7 @@ module KintsugiSDK
284
284
  response: http_response
285
285
  )
286
286
  response_data = http_response.env.response_body
287
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::BackendSrcExemptionsSerializersExemptionRead)
287
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Shared::BackendSrcExemptionsSerializersExemptionRead)
288
288
 
289
289
  return obj
290
290
  else
@@ -299,7 +299,7 @@ module KintsugiSDK
299
299
  response: http_response
300
300
  )
301
301
  response_data = http_response.env.response_body
302
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
302
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ErrorResponse)
303
303
  raise obj
304
304
  else
305
305
  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'
@@ -313,7 +313,7 @@ module KintsugiSDK
313
313
  response: http_response
314
314
  )
315
315
  response_data = http_response.env.response_body
316
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse)
316
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse)
317
317
  raise obj
318
318
  else
319
319
  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'
@@ -327,7 +327,7 @@ module KintsugiSDK
327
327
  response: http_response
328
328
  )
329
329
  response_data = http_response.env.response_body
330
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
330
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ErrorResponse)
331
331
  raise obj
332
332
  else
333
333
  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'
@@ -343,9 +343,9 @@ module KintsugiSDK
343
343
  end
344
344
 
345
345
 
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) }
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
347
  def get(request:, timeout_ms: nil, http_headers: nil)
348
- # get - Get Exemption By Id
348
+ # get - Get exemption by id
349
349
  # The Get Exemption By ID API retrieves a specific exemption record by
350
350
  # its unique ID. This API is useful for retrieving detailed information
351
351
  # about a particular exemption, including its associated
@@ -358,8 +358,8 @@ module KintsugiSDK
358
358
  '/v1/exemptions/{exemption_id}',
359
359
  request
360
360
  )
361
- headers = {}
362
- headers = T.cast(headers, T::Hash[String, String])
361
+ headers = Utils.get_headers(request)
362
+ headers = T.cast(headers, T::Hash[::String, ::String])
363
363
  headers['Accept'] = 'application/json'
364
364
  headers['user-agent'] = @sdk_configuration.user_agent
365
365
 
@@ -379,7 +379,7 @@ module KintsugiSDK
379
379
  security_source: @sdk_configuration.security_source
380
380
  )
381
381
 
382
- error = T.let(nil, T.nilable(StandardError))
382
+ error = T.let(nil, T.nilable(::StandardError))
383
383
  http_response = T.let(nil, T.nilable(Faraday::Response))
384
384
 
385
385
 
@@ -399,7 +399,7 @@ module KintsugiSDK
399
399
  request: req
400
400
  )
401
401
  end
402
- rescue StandardError => e
402
+ rescue ::StandardError => e
403
403
  error = e
404
404
  ensure
405
405
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -435,7 +435,7 @@ module KintsugiSDK
435
435
  response: http_response
436
436
  )
437
437
  response_data = http_response.env.response_body
438
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::BackendSrcExemptionsModelsExemptionRead)
438
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Shared::BackendSrcExemptionsSchemasExemptionExemptionRead)
439
439
 
440
440
  return obj
441
441
  else
@@ -450,7 +450,7 @@ module KintsugiSDK
450
450
  response: http_response
451
451
  )
452
452
  response_data = http_response.env.response_body
453
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
453
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ErrorResponse)
454
454
  raise obj
455
455
  else
456
456
  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'
@@ -464,7 +464,7 @@ module KintsugiSDK
464
464
  response: http_response
465
465
  )
466
466
  response_data = http_response.env.response_body
467
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse)
467
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse)
468
468
  raise obj
469
469
  else
470
470
  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'
@@ -478,7 +478,7 @@ module KintsugiSDK
478
478
  response: http_response
479
479
  )
480
480
  response_data = http_response.env.response_body
481
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
481
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ErrorResponse)
482
482
  raise obj
483
483
  else
484
484
  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'
@@ -494,34 +494,23 @@ module KintsugiSDK
494
494
  end
495
495
 
496
496
 
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)
499
- # upload_certificate - Upload Exemption Certificate
500
- # The Upload Exemption Certificate API allows you
501
- # to upload a file attachment (e.g., exemption certificate) for a specific exemption.
502
- # This is primarily used to associate supporting documents with an exemption record
503
- # 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.
504
504
  url, params = @sdk_configuration.get_server_details
505
505
  base_url = Utils.template_url(url, params)
506
506
  url = Utils.generate_url(
507
- Models::Ops::UploadExemptionCertRequest,
507
+ Models::Ops::GetExemptionAttachmentsRequest,
508
508
  base_url,
509
509
  '/v1/exemptions/{exemption_id}/attachments',
510
510
  request
511
511
  )
512
- headers = {}
513
- headers = T.cast(headers, T::Hash[String, String])
514
- req_content_type, data, form = Utils.serialize_request_body(request, false, false, :body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post, :multipart)
515
- headers['content-type'] = req_content_type
516
- raise StandardError, 'request body is required' if data.nil? && form.nil?
517
-
518
- if form && !form.empty?
519
- body = Utils.encode_form(form)
520
- elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
521
- body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
522
- else
523
- body = data
524
- end
512
+ headers = Utils.get_headers(request)
513
+ headers = T.cast(headers, T::Hash[::String, ::String])
525
514
  headers['Accept'] = 'application/json'
526
515
  headers['user-agent'] = @sdk_configuration.user_agent
527
516
 
@@ -537,17 +526,16 @@ module KintsugiSDK
537
526
  config: @sdk_configuration,
538
527
  base_url: base_url,
539
528
  oauth2_scopes: nil,
540
- operation_id: 'uploadExemptionCert',
529
+ operation_id: 'getExemptionAttachments',
541
530
  security_source: @sdk_configuration.security_source
542
531
  )
543
532
 
544
- error = T.let(nil, T.nilable(StandardError))
533
+ error = T.let(nil, T.nilable(::StandardError))
545
534
  http_response = T.let(nil, T.nilable(Faraday::Response))
546
535
 
547
536
 
548
537
  begin
549
- http_response = T.must(connection).post(url) do |req|
550
- req.body = body
538
+ http_response = T.must(connection).get(url) do |req|
551
539
  req.headers.merge!(headers)
552
540
  req.options.timeout = timeout unless timeout.nil?
553
541
  Utils.configure_request_security(req, security)
@@ -562,7 +550,7 @@ module KintsugiSDK
562
550
  request: req
563
551
  )
564
552
  end
565
- rescue StandardError => e
553
+ rescue ::StandardError => e
566
554
  error = e
567
555
  ensure
568
556
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -598,7 +586,7 @@ module KintsugiSDK
598
586
  response: http_response
599
587
  )
600
588
  response_data = http_response.env.response_body
601
- 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))
602
590
 
603
591
  return obj
604
592
  else
@@ -613,7 +601,7 @@ module KintsugiSDK
613
601
  response: http_response
614
602
  )
615
603
  response_data = http_response.env.response_body
616
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
604
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ErrorResponse)
617
605
  raise obj
618
606
  else
619
607
  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'
@@ -627,21 +615,7 @@ module KintsugiSDK
627
615
  response: http_response
628
616
  )
629
617
  response_data = http_response.env.response_body
630
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse)
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
- elsif Utils.match_status_code(http_response.status, ['500'])
636
- if Utils.match_content_type(content_type, 'application/json')
637
- @sdk_configuration.hooks.after_success(
638
- hook_ctx: SDKHooks::AfterSuccessHookContext.new(
639
- hook_ctx: hook_ctx
640
- ),
641
- response: http_response
642
- )
643
- response_data = http_response.env.response_body
644
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
618
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse)
645
619
  raise obj
646
620
  else
647
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'
@@ -657,23 +631,34 @@ module KintsugiSDK
657
631
  end
658
632
 
659
633
 
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)
662
- # get_attachments - Get Attachments For Exemption
663
- # The Get Attachments for Exemption API retrieves all
664
- # attachments associated with a specific exemption.
665
- # This is used to view and manage supporting documents
666
- # 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.
667
641
  url, params = @sdk_configuration.get_server_details
668
642
  base_url = Utils.template_url(url, params)
669
643
  url = Utils.generate_url(
670
- Models::Ops::GetExemptionAttachmentsRequest,
644
+ Models::Ops::UploadExemptionCertRequest,
671
645
  base_url,
672
646
  '/v1/exemptions/{exemption_id}/attachments',
673
647
  request
674
648
  )
675
- headers = {}
676
- headers = T.cast(headers, T::Hash[String, String])
649
+ headers = Utils.get_headers(request)
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
677
662
  headers['Accept'] = 'application/json'
678
663
  headers['user-agent'] = @sdk_configuration.user_agent
679
664
 
@@ -689,16 +674,17 @@ module KintsugiSDK
689
674
  config: @sdk_configuration,
690
675
  base_url: base_url,
691
676
  oauth2_scopes: nil,
692
- operation_id: 'getExemptionAttachments',
677
+ operation_id: 'uploadExemptionCert',
693
678
  security_source: @sdk_configuration.security_source
694
679
  )
695
680
 
696
- error = T.let(nil, T.nilable(StandardError))
681
+ error = T.let(nil, T.nilable(::StandardError))
697
682
  http_response = T.let(nil, T.nilable(Faraday::Response))
698
683
 
699
684
 
700
685
  begin
701
- http_response = T.must(connection).get(url) do |req|
686
+ http_response = T.must(connection).post(url) do |req|
687
+ req.body = body
702
688
  req.headers.merge!(headers)
703
689
  req.options.timeout = timeout unless timeout.nil?
704
690
  Utils.configure_request_security(req, security)
@@ -713,7 +699,7 @@ module KintsugiSDK
713
699
  request: req
714
700
  )
715
701
  end
716
- rescue StandardError => e
702
+ rescue ::StandardError => e
717
703
  error = e
718
704
  ensure
719
705
  if http_response.nil? || Utils.error_status?(http_response.status)
@@ -749,7 +735,7 @@ module KintsugiSDK
749
735
  response: http_response
750
736
  )
751
737
  response_data = http_response.env.response_body
752
- 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)
753
739
 
754
740
  return obj
755
741
  else
@@ -764,7 +750,7 @@ module KintsugiSDK
764
750
  response: http_response
765
751
  )
766
752
  response_data = http_response.env.response_body
767
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
753
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ErrorResponse)
768
754
  raise obj
769
755
  else
770
756
  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'
@@ -778,7 +764,21 @@ module KintsugiSDK
778
764
  response: http_response
779
765
  )
780
766
  response_data = http_response.env.response_body
781
- obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse)
767
+ obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::BackendSrcExemptionsResponsesValidationErrorResponse)
768
+ raise obj
769
+ else
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'
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
782
  raise obj
783
783
  else
784
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'
@@ -7,7 +7,7 @@ module KintsugiSDK
7
7
  module Models
8
8
  module Errors
9
9
 
10
- class APIError < StandardError
10
+ class APIError < ::StandardError
11
11
  include Crystalline::MetadataFields
12
12
  extend T::Sig
13
13
 
@@ -8,7 +8,7 @@ module KintsugiSDK
8
8
  module Models
9
9
  module Errors
10
10
 
11
- class BackendSrcAddressValidationResponsesValidationErrorResponse < StandardError
11
+ class BackendSrcAddressValidationResponsesValidationErrorResponse < ::StandardError
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
@@ -8,7 +8,7 @@ module KintsugiSDK
8
8
  module Models
9
9
  module Errors
10
10
 
11
- class BackendSrcCustomersResponsesValidationErrorResponse < StandardError
11
+ class BackendSrcCustomersResponsesValidationErrorResponse < ::StandardError
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
@@ -8,7 +8,7 @@ module KintsugiSDK
8
8
  module Models
9
9
  module Errors
10
10
 
11
- class BackendSrcExemptionsResponsesValidationErrorResponse < StandardError
11
+ class BackendSrcExemptionsResponsesValidationErrorResponse < ::StandardError
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
@@ -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
@@ -8,7 +8,7 @@ module KintsugiSDK
8
8
  module Models
9
9
  module Errors
10
10
 
11
- class BackendSrcTaxEstimationResponsesValidationErrorResponse < StandardError
11
+ class BackendSrcTaxEstimationResponsesValidationErrorResponse < ::StandardError
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
@@ -8,7 +8,7 @@ module KintsugiSDK
8
8
  module Models
9
9
  module Errors
10
10
 
11
- class BackendSrcTransactionsResponsesValidationErrorResponse < StandardError
11
+ class BackendSrcTransactionsResponsesValidationErrorResponse < ::StandardError
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
@@ -8,7 +8,7 @@ module KintsugiSDK
8
8
  module Models
9
9
  module Errors
10
10
 
11
- class ErrorResponse < StandardError
11
+ class ErrorResponse < ::StandardError
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
@@ -8,7 +8,7 @@ module KintsugiSDK
8
8
  module Models
9
9
  module Errors
10
10
 
11
- class HTTPValidationError < StandardError
11
+ class HTTPValidationError < ::StandardError
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
@@ -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
10
+ class KintsugiSDK::Models::Ops::Country
11
11
  end