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
@@ -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 Shared
10
+ # Calculated tax rate.
11
+ class TransactionItemBuilderTaxRateCalculated
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::Shared::TransactionItemBuilderTaxRateCalculated
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderTaxRateCalculated
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 Shared
10
+ # Imported tax rate.
11
+ class TransactionItemBuilderTaxRateImported
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::Shared::TransactionItemBuilderTaxRateImported
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderTaxRateImported
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 Shared
10
+ # Taxable amount for the item.
11
+ class TransactionItemBuilderTaxableAmount
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::Shared::TransactionItemBuilderTaxableAmount
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderTaxableAmount
11
+ end
@@ -12,14 +12,30 @@ module KintsugiSDK
12
12
  extend T::Sig
13
13
  include Crystalline::MetadataFields
14
14
 
15
- # Unique identifier of the organization. This field is deprecated, and should no longer be used. The value is populated through the 'x-organization-id' header.
16
- #
17
- # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
18
- field :organization_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('organization_id'), required: true } }
19
15
  # Date/time of item.
20
16
  field :date, ::DateTime, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('date'), required: true, 'decoder': ::KintsugiSDK::Utils.datetime_from_iso_format(false) } }
21
17
  # External product identifier.
22
18
  field :external_product_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_product_id'), required: true } }
19
+ # Unique identifier of the organization. This field is deprecated, and should no longer be used. The value is populated through the 'x-organization-id' header.
20
+ #
21
+ # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
22
+ field :organization_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('organization_id'), required: true } }
23
+ # Quantity of item.
24
+ field :quantity, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('quantity') } }
25
+ # Item amount.
26
+ field :amount, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('amount') } }
27
+ # Imported tax amount for the item.
28
+ field :tax_amount_imported, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_amount_imported') } }
29
+ # Imported tax rate.
30
+ field :tax_rate_imported, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_imported') } }
31
+ # Calculated tax amount for the item.
32
+ field :tax_amount_calculated, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_amount_calculated') } }
33
+ # Calculated tax rate.
34
+ field :tax_rate_calculated, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_calculated') } }
35
+ # Taxable amount for the item.
36
+ field :taxable_amount, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('taxable_amount') } }
37
+
38
+ field :tax_items, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::TaxItemBuilder)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_items') } }
23
39
  # External item identifier.
24
40
  field :external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_id') } }
25
41
  # Item description
@@ -32,50 +48,44 @@ module KintsugiSDK
32
48
  field :product_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_name') } }
33
49
  # Product description
34
50
  field :product_description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_description') } }
35
-
51
+ # Original currency code.
36
52
  field :original_currency, Crystalline::Nilable.new(Models::Shared::CurrencyEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('original_currency'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::CurrencyEnum, true) } }
37
-
53
+ # Destination currency code.
38
54
  field :destination_currency, Crystalline::Nilable.new(Models::Shared::CurrencyEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('destination_currency'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::CurrencyEnum, true) } }
39
55
  # Converted item amount.
40
- field :converted_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_amount') } }
56
+ field :converted_amount, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_amount') } }
41
57
  # Converted taxable amount.
42
- field :converted_taxable_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_taxable_amount') } }
58
+ field :converted_taxable_amount, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_taxable_amount') } }
43
59
  # Converted imported tax amount.
44
- field :converted_tax_amount_imported, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_tax_amount_imported') } }
60
+ field :converted_tax_amount_imported, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_tax_amount_imported') } }
45
61
  # Converted calculated tax amount
46
- field :converted_tax_amount_calculated, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_tax_amount_calculated') } }
62
+ field :converted_tax_amount_calculated, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_tax_amount_calculated') } }
47
63
  # Converted total discount amount.
48
- field :converted_total_discount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_discount') } }
64
+ field :converted_total_discount, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_discount') } }
49
65
  # Converted subtotal amount.
50
- field :converted_subtotal, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_subtotal') } }
51
- # This enum is used to determine if a transaction is exempt from tax.
66
+ field :converted_subtotal, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_subtotal') } }
67
+ # Tax exemption status.
52
68
  field :tax_exemption, Crystalline::Nilable.new(Models::Shared::TaxExemptionEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_exemption'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::TaxExemptionEnum, true) } }
53
-
54
- field :tax_items, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::TaxItemBuilder)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_items') } }
55
-
56
- field :discount_builder, Crystalline::Nilable.new(Models::Shared::DiscountBuilder), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('discount_builder') } }
57
- # Quantity of item.
58
- field :quantity, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('quantity') } }
59
- # Item amount.
60
- field :amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('amount') } }
61
- # Imported tax amount for the item.
62
- field :tax_amount_imported, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_amount_imported') } }
63
- # Imported tax rate.
64
- field :tax_rate_imported, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_imported') } }
65
- # Calculated tax amount for the item.
66
- field :tax_amount_calculated, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_amount_calculated') } }
67
- # Calculated tax rate.
68
- field :tax_rate_calculated, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_calculated') } }
69
- # Taxable amount for the item.
70
- field :taxable_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('taxable_amount') } }
71
69
  # Indicates if the item is exempt.
72
70
  field :exempt, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exempt') } }
71
+ # Whether this line's source amount includes tax. NULL means the source did not say.
72
+ field :is_tax_inclusive, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('is_tax_inclusive') } }
73
73
 
74
- sig { params(organization_id: ::String, date: ::DateTime, external_product_id: ::String, external_id: T.nilable(::String), description: T.nilable(::String), product: T.nilable(::String), product_id: T.nilable(::String), product_name: T.nilable(::String), product_description: T.nilable(::String), original_currency: T.nilable(Models::Shared::CurrencyEnum), destination_currency: T.nilable(Models::Shared::CurrencyEnum), converted_amount: T.nilable(::Float), converted_taxable_amount: T.nilable(::Float), converted_tax_amount_imported: T.nilable(::Float), converted_tax_amount_calculated: T.nilable(::Float), converted_total_discount: T.nilable(::Float), converted_subtotal: T.nilable(::Float), tax_exemption: T.nilable(Models::Shared::TaxExemptionEnum), tax_items: T.nilable(T::Array[Models::Shared::TaxItemBuilder]), discount_builder: T.nilable(Models::Shared::DiscountBuilder), quantity: T.nilable(::Float), amount: T.nilable(::Float), tax_amount_imported: T.nilable(::Float), tax_rate_imported: T.nilable(::Float), tax_amount_calculated: T.nilable(::Float), tax_rate_calculated: T.nilable(::Float), taxable_amount: T.nilable(::Float), exempt: T.nilable(T::Boolean)).void }
75
- def initialize(organization_id:, date:, external_product_id:, external_id: nil, description: nil, product: nil, product_id: nil, product_name: nil, product_description: nil, original_currency: nil, destination_currency: nil, converted_amount: nil, converted_taxable_amount: nil, converted_tax_amount_imported: nil, converted_tax_amount_calculated: nil, converted_total_discount: nil, converted_subtotal: nil, tax_exemption: nil, tax_items: nil, discount_builder: nil, quantity: 1.0, amount: 0.0, tax_amount_imported: 0.0, tax_rate_imported: 0.0, tax_amount_calculated: 0.0, tax_rate_calculated: 0.0, taxable_amount: 0.0, exempt: false)
76
- @organization_id = organization_id
74
+ field :discount_builder, Crystalline::Nilable.new(Models::Shared::DiscountBuilder), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('discount_builder') } }
75
+
76
+ sig { params(date: ::DateTime, external_product_id: ::String, organization_id: T.nilable(::String), quantity: T.nilable(T.any(::Float, ::String)), amount: T.nilable(T.any(::Float, ::String)), tax_amount_imported: T.nilable(T.any(::Float, ::String)), tax_rate_imported: T.nilable(T.any(::Float, ::String)), tax_amount_calculated: T.nilable(T.any(::Float, ::String)), tax_rate_calculated: T.nilable(T.any(::Float, ::String)), taxable_amount: T.nilable(T.any(::Float, ::String)), tax_items: T.nilable(T::Array[Models::Shared::TaxItemBuilder]), external_id: T.nilable(::String), description: T.nilable(::String), product: T.nilable(::String), product_id: T.nilable(::String), product_name: T.nilable(::String), product_description: T.nilable(::String), original_currency: T.nilable(Models::Shared::CurrencyEnum), destination_currency: T.nilable(Models::Shared::CurrencyEnum), converted_amount: T.nilable(T.any(::Float, ::String)), converted_taxable_amount: T.nilable(T.any(::Float, ::String)), converted_tax_amount_imported: T.nilable(T.any(::Float, ::String)), converted_tax_amount_calculated: T.nilable(T.any(::Float, ::String)), converted_total_discount: T.nilable(T.any(::Float, ::String)), converted_subtotal: T.nilable(T.any(::Float, ::String)), tax_exemption: T.nilable(Models::Shared::TaxExemptionEnum), exempt: T.nilable(T::Boolean), is_tax_inclusive: T.nilable(T::Boolean), discount_builder: T.nilable(Models::Shared::DiscountBuilder)).void }
77
+ def initialize(date:, external_product_id:, organization_id: nil, quantity: nil, amount: nil, tax_amount_imported: nil, tax_rate_imported: nil, tax_amount_calculated: nil, tax_rate_calculated: nil, taxable_amount: nil, tax_items: nil, external_id: nil, description: nil, product: nil, product_id: nil, product_name: nil, product_description: nil, original_currency: nil, destination_currency: nil, converted_amount: nil, converted_taxable_amount: nil, converted_tax_amount_imported: nil, converted_tax_amount_calculated: nil, converted_total_discount: nil, converted_subtotal: nil, tax_exemption: nil, exempt: false, is_tax_inclusive: nil, discount_builder: nil)
77
78
  @date = date
78
79
  @external_product_id = external_product_id
80
+ @organization_id = organization_id
81
+ @quantity = quantity
82
+ @amount = amount
83
+ @tax_amount_imported = tax_amount_imported
84
+ @tax_rate_imported = tax_rate_imported
85
+ @tax_amount_calculated = tax_amount_calculated
86
+ @tax_rate_calculated = tax_rate_calculated
87
+ @taxable_amount = taxable_amount
88
+ @tax_items = tax_items
79
89
  @external_id = external_id
80
90
  @description = description
81
91
  @product = product
@@ -91,24 +101,25 @@ module KintsugiSDK
91
101
  @converted_total_discount = converted_total_discount
92
102
  @converted_subtotal = converted_subtotal
93
103
  @tax_exemption = tax_exemption
94
- @tax_items = tax_items
95
- @discount_builder = discount_builder
96
- @quantity = quantity
97
- @amount = amount
98
- @tax_amount_imported = tax_amount_imported
99
- @tax_rate_imported = tax_rate_imported
100
- @tax_amount_calculated = tax_amount_calculated
101
- @tax_rate_calculated = tax_rate_calculated
102
- @taxable_amount = taxable_amount
103
104
  @exempt = exempt
105
+ @is_tax_inclusive = is_tax_inclusive
106
+ @discount_builder = discount_builder
104
107
  end
105
108
 
106
109
  sig { params(other: T.untyped).returns(T::Boolean) }
107
110
  def ==(other)
108
111
  return false unless other.is_a? self.class
109
- return false unless @organization_id == other.organization_id
110
112
  return false unless @date == other.date
111
113
  return false unless @external_product_id == other.external_product_id
114
+ return false unless @organization_id == other.organization_id
115
+ return false unless @quantity == other.quantity
116
+ return false unless @amount == other.amount
117
+ return false unless @tax_amount_imported == other.tax_amount_imported
118
+ return false unless @tax_rate_imported == other.tax_rate_imported
119
+ return false unless @tax_amount_calculated == other.tax_amount_calculated
120
+ return false unless @tax_rate_calculated == other.tax_rate_calculated
121
+ return false unless @taxable_amount == other.taxable_amount
122
+ return false unless @tax_items == other.tax_items
112
123
  return false unless @external_id == other.external_id
113
124
  return false unless @description == other.description
114
125
  return false unless @product == other.product
@@ -124,16 +135,9 @@ module KintsugiSDK
124
135
  return false unless @converted_total_discount == other.converted_total_discount
125
136
  return false unless @converted_subtotal == other.converted_subtotal
126
137
  return false unless @tax_exemption == other.tax_exemption
127
- return false unless @tax_items == other.tax_items
128
- return false unless @discount_builder == other.discount_builder
129
- return false unless @quantity == other.quantity
130
- return false unless @amount == other.amount
131
- return false unless @tax_amount_imported == other.tax_amount_imported
132
- return false unless @tax_rate_imported == other.tax_rate_imported
133
- return false unless @tax_amount_calculated == other.tax_amount_calculated
134
- return false unless @tax_rate_calculated == other.tax_rate_calculated
135
- return false unless @taxable_amount == other.taxable_amount
136
138
  return false unless @exempt == other.exempt
139
+ return false unless @is_tax_inclusive == other.is_tax_inclusive
140
+ return false unless @discount_builder == other.discount_builder
137
141
  true
138
142
  end
139
143
  end
@@ -8,12 +8,28 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::TransactionItemCreateUpdate
11
- def organization_id(); end
12
- def organization_id=(str_); end
13
11
  def date(); end
14
12
  def date=(str_); end
15
13
  def external_product_id(); end
16
14
  def external_product_id=(str_); end
15
+ def organization_id(); end
16
+ def organization_id=(str_); end
17
+ def quantity(); end
18
+ def quantity=(str_); end
19
+ def amount(); end
20
+ def amount=(str_); end
21
+ def tax_amount_imported(); end
22
+ def tax_amount_imported=(str_); end
23
+ def tax_rate_imported(); end
24
+ def tax_rate_imported=(str_); end
25
+ def tax_amount_calculated(); end
26
+ def tax_amount_calculated=(str_); end
27
+ def tax_rate_calculated(); end
28
+ def tax_rate_calculated=(str_); end
29
+ def taxable_amount(); end
30
+ def taxable_amount=(str_); end
31
+ def tax_items(); end
32
+ def tax_items=(str_); end
17
33
  def external_id(); end
18
34
  def external_id=(str_); end
19
35
  def description(); end
@@ -44,24 +60,10 @@ class KintsugiSDK::Models::Shared::TransactionItemCreateUpdate
44
60
  def converted_subtotal=(str_); end
45
61
  def tax_exemption(); end
46
62
  def tax_exemption=(str_); end
47
- def tax_items(); end
48
- def tax_items=(str_); end
49
- def discount_builder(); end
50
- def discount_builder=(str_); end
51
- def quantity(); end
52
- def quantity=(str_); end
53
- def amount(); end
54
- def amount=(str_); end
55
- def tax_amount_imported(); end
56
- def tax_amount_imported=(str_); end
57
- def tax_rate_imported(); end
58
- def tax_rate_imported=(str_); end
59
- def tax_amount_calculated(); end
60
- def tax_amount_calculated=(str_); end
61
- def tax_rate_calculated(); end
62
- def tax_rate_calculated=(str_); end
63
- def taxable_amount(); end
64
- def taxable_amount=(str_); end
65
63
  def exempt(); end
66
64
  def exempt=(str_); end
65
+ def is_tax_inclusive(); end
66
+ def is_tax_inclusive=(str_); end
67
+ def discount_builder(); end
68
+ def discount_builder=(str_); end
67
69
  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 Shared
10
+ # Converted subtotal amount.
11
+ class TransactionItemCreateUpdateConvertedSubtotal
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::Shared::TransactionItemCreateUpdateConvertedSubtotal
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemCreateUpdateConvertedSubtotal
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 Shared
10
+ # Converted taxable amount.
11
+ class TransactionItemCreateUpdateConvertedTaxableAmount
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::Shared::TransactionItemCreateUpdateConvertedTaxableAmount
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemCreateUpdateConvertedTaxableAmount
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 Shared
10
+ # Converted total discount amount.
11
+ class TransactionItemCreateUpdateConvertedTotalDiscount
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::Shared::TransactionItemCreateUpdateConvertedTotalDiscount
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemCreateUpdateConvertedTotalDiscount
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 Shared
10
+ # Calculated tax rate.
11
+ class TransactionItemCreateUpdateTaxRateCalculated
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::Shared::TransactionItemCreateUpdateTaxRateCalculated
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemCreateUpdateTaxRateCalculated
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 Shared
10
+ # Imported tax rate.
11
+ class TransactionItemCreateUpdateTaxRateImported
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::Shared::TransactionItemCreateUpdateTaxRateImported
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemCreateUpdateTaxRateImported
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 Shared
10
+ # Taxable amount for the item.
11
+ class TransactionItemCreateUpdateTaxableAmount
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::Shared::TransactionItemCreateUpdateTaxableAmount
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemCreateUpdateTaxableAmount
11
+ end