kintsugi_sdk 5.6.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/types.rb +11 -3
  3. data/lib/kintsugi_sdk/addressvalidation.rb +26 -16
  4. data/lib/kintsugi_sdk/customers.rb +148 -123
  5. data/lib/kintsugi_sdk/exemptions.rb +102 -85
  6. data/lib/kintsugi_sdk/models/errors/apierror.rbi +2 -1
  7. data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rbi +1 -1
  8. data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rbi +1 -1
  9. data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rbi +1 -1
  10. data/lib/kintsugi_sdk/models/errors/{backend_src_products_responses_validationerrorresponse.rb → backend_src_products_schemas_responses_validationerrorresponse.rb} +3 -3
  11. data/lib/kintsugi_sdk/models/errors/backend_src_products_schemas_responses_validationerrorresponse.rbi +13 -0
  12. data/lib/kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rbi +1 -1
  13. data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rbi +1 -1
  14. data/lib/kintsugi_sdk/models/errors/errorresponse.rbi +1 -1
  15. data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rbi +1 -1
  16. data/lib/kintsugi_sdk/models/errors.rb +1 -1
  17. data/lib/kintsugi_sdk/models/ops/{search_v1_address_validation_search_post_security.rb → country.rb} +3 -8
  18. data/lib/kintsugi_sdk/models/{shared/registration.rbi → ops/country.rbi} +3 -3
  19. data/lib/kintsugi_sdk/models/ops/country_code.rb +27 -0
  20. data/lib/kintsugi_sdk/models/ops/country_code.rbi +11 -0
  21. data/lib/kintsugi_sdk/models/ops/create_customer_v1_customers_post_request.rb +36 -0
  22. data/lib/kintsugi_sdk/models/ops/create_customer_v1_customers_post_request.rbi +15 -0
  23. data/lib/kintsugi_sdk/models/ops/create_exemption_v1_exemptions_post_request.rb +36 -0
  24. data/lib/kintsugi_sdk/models/ops/create_exemption_v1_exemptions_post_request.rbi +15 -0
  25. data/lib/kintsugi_sdk/models/ops/create_transaction_v1_transactions_post_request.rb +36 -0
  26. data/lib/kintsugi_sdk/models/ops/create_transaction_v1_transactions_post_request.rbi +15 -0
  27. data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rb +6 -2
  28. data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rbi +3 -1
  29. data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rb +6 -2
  30. data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rbi +3 -1
  31. data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rb +6 -2
  32. data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rbi +3 -1
  33. data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rb +6 -2
  34. data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rbi +3 -1
  35. data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rb +13 -5
  36. data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rbi +5 -1
  37. data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rb +6 -2
  38. data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rbi +3 -1
  39. data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rb +17 -9
  40. data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rbi +7 -3
  41. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rb +29 -13
  42. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rbi +15 -7
  43. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_response_get_nexus_for_org_v1_nexus_get.rb +27 -0
  44. data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_response_get_nexus_for_org_v1_nexus_get.rbi +11 -0
  45. data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rb +6 -2
  46. data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rbi +3 -1
  47. data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rb +6 -2
  48. data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rbi +3 -1
  49. data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rb +44 -18
  50. data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rbi +15 -5
  51. data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rb +6 -2
  52. data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rbi +3 -1
  53. data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rb +6 -2
  54. data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rbi +3 -1
  55. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rb +14 -2
  56. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rbi +7 -1
  57. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_response_get_transactions_by_customer_id_v1_cus_6a2c85.rb +27 -0
  58. data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_response_get_transactions_by_customer_id_v1_cus_6a2c85.rbi +11 -0
  59. data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rb +6 -2
  60. data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rbi +3 -1
  61. data/lib/kintsugi_sdk/models/ops/queryparam_country.rb +27 -0
  62. data/lib/kintsugi_sdk/models/ops/queryparam_country.rbi +11 -0
  63. data/lib/kintsugi_sdk/models/ops/suggestions_v1_address_validation_suggestions_post_request.rb +36 -0
  64. data/lib/kintsugi_sdk/models/ops/suggestions_v1_address_validation_suggestions_post_request.rbi +15 -0
  65. data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rb +6 -2
  66. data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rbi +3 -1
  67. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_product.rb +27 -0
  68. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_product.rbi +11 -0
  69. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rb +9 -5
  70. data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rbi +5 -3
  71. data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rb +6 -2
  72. data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rbi +3 -1
  73. data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rb +6 -2
  74. data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rbi +3 -1
  75. data/lib/kintsugi_sdk/models/ops.rb +10 -1
  76. data/lib/kintsugi_sdk/models/shared/addressbase.rb +1 -1
  77. data/lib/kintsugi_sdk/models/shared/addressbase.rbi +1 -1
  78. data/lib/kintsugi_sdk/models/shared/addresses.rb +7 -3
  79. data/lib/kintsugi_sdk/models/shared/addresses.rbi +3 -1
  80. data/lib/kintsugi_sdk/models/shared/addressresponsedata.rbi +1 -1
  81. data/lib/kintsugi_sdk/models/shared/addresssearchresponse.rbi +1 -1
  82. data/lib/kintsugi_sdk/models/shared/addressstatus.rbi +1 -1
  83. data/lib/kintsugi_sdk/models/shared/addresssubmittedresponse.rbi +1 -1
  84. data/lib/kintsugi_sdk/models/shared/addresstype.rbi +1 -1
  85. data/lib/kintsugi_sdk/models/shared/amount.rb +27 -0
  86. data/lib/kintsugi_sdk/models/shared/amount.rbi +11 -0
  87. data/lib/kintsugi_sdk/models/shared/appliedto.rbi +1 -1
  88. data/lib/kintsugi_sdk/models/shared/attachmentread.rbi +1 -1
  89. data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rbi +1 -1
  90. data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rbi +1 -1
  91. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rbi +1 -1
  92. data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rb → backend_src_exemptions_schemas_exemption_exemptionread.rb} +11 -10
  93. data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rbi → backend_src_exemptions_schemas_exemption_exemptionread.rbi} +5 -5
  94. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb +9 -9
  95. data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rbi +3 -3
  96. data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rb → backend_src_products_schemas_responses_validationerroritem.rb} +1 -1
  97. data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rbi → backend_src_products_schemas_responses_validationerroritem.rbi} +3 -3
  98. data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rbi +1 -1
  99. data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rbi +1 -1
  100. data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rb +2 -2
  101. data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rbi +1 -1
  102. data/lib/kintsugi_sdk/models/shared/{registration.rb → context.rb} +1 -1
  103. data/lib/kintsugi_sdk/models/shared/context.rbi +11 -0
  104. data/lib/kintsugi_sdk/models/shared/conversion_rate.rb +27 -0
  105. data/lib/kintsugi_sdk/models/shared/conversion_rate.rbi +11 -0
  106. data/lib/kintsugi_sdk/models/shared/converted_amount.rb +27 -0
  107. data/lib/kintsugi_sdk/models/shared/converted_amount.rbi +11 -0
  108. data/lib/kintsugi_sdk/models/shared/converted_subtotal.rb +27 -0
  109. data/lib/kintsugi_sdk/models/shared/converted_subtotal.rbi +11 -0
  110. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_calculated.rb +27 -0
  111. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_calculated.rbi +11 -0
  112. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_imported.rb +27 -0
  113. data/lib/kintsugi_sdk/models/shared/converted_tax_amount_imported.rbi +11 -0
  114. data/lib/kintsugi_sdk/models/shared/converted_taxable_amount.rb +27 -0
  115. data/lib/kintsugi_sdk/models/shared/converted_taxable_amount.rbi +11 -0
  116. data/lib/kintsugi_sdk/models/shared/converted_total_amount.rb +27 -0
  117. data/lib/kintsugi_sdk/models/shared/converted_total_amount.rbi +11 -0
  118. data/lib/kintsugi_sdk/models/shared/converted_total_discount.rb +27 -0
  119. data/lib/kintsugi_sdk/models/shared/converted_total_discount.rbi +11 -0
  120. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rb +27 -0
  121. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rbi +11 -0
  122. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rb +27 -0
  123. data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rbi +11 -0
  124. data/lib/kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rb +27 -0
  125. data/lib/kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rbi +11 -0
  126. data/lib/kintsugi_sdk/models/shared/countrycodeenum.rbi +1 -1
  127. data/lib/kintsugi_sdk/models/shared/currencyenum.rbi +1 -1
  128. data/lib/kintsugi_sdk/models/shared/customer.rb +27 -0
  129. data/lib/kintsugi_sdk/models/shared/customer.rbi +11 -0
  130. data/lib/kintsugi_sdk/models/shared/customerbase.rb +16 -12
  131. data/lib/kintsugi_sdk/models/shared/customerbase.rbi +7 -5
  132. data/lib/kintsugi_sdk/models/shared/customerbasebase.rb +16 -12
  133. data/lib/kintsugi_sdk/models/shared/customerbasebase.rbi +7 -5
  134. data/lib/kintsugi_sdk/models/shared/customerbasepublic.rb +16 -12
  135. data/lib/kintsugi_sdk/models/shared/customerbasepublic.rbi +7 -5
  136. data/lib/kintsugi_sdk/models/shared/customercreate.rb +20 -16
  137. data/lib/kintsugi_sdk/models/shared/customercreate.rbi +9 -7
  138. data/lib/kintsugi_sdk/models/shared/customerread.rb +24 -16
  139. data/lib/kintsugi_sdk/models/shared/customerread.rbi +11 -7
  140. data/lib/kintsugi_sdk/models/shared/customertaxregistrationread.rbi +1 -1
  141. data/lib/kintsugi_sdk/models/shared/customertaxtypeenum.rbi +1 -1
  142. data/lib/kintsugi_sdk/models/shared/customerupdate.rb +13 -9
  143. data/lib/kintsugi_sdk/models/shared/customerupdate.rbi +5 -3
  144. data/lib/kintsugi_sdk/models/shared/discount_amount.rb +27 -0
  145. data/lib/kintsugi_sdk/models/shared/discount_amount.rbi +11 -0
  146. data/lib/kintsugi_sdk/models/shared/discountbuilder.rb +6 -6
  147. data/lib/kintsugi_sdk/models/shared/discountbuilder.rbi +3 -3
  148. data/lib/kintsugi_sdk/models/shared/disregardedtypeenum.rb +20 -0
  149. data/lib/kintsugi_sdk/models/shared/disregardedtypeenum.rbi +11 -0
  150. data/lib/kintsugi_sdk/models/shared/documenttypeenum.rb +21 -0
  151. data/lib/kintsugi_sdk/models/shared/documenttypeenum.rbi +11 -0
  152. data/lib/kintsugi_sdk/models/shared/exemption.rb +23 -14
  153. data/lib/kintsugi_sdk/models/shared/exemption.rbi +9 -5
  154. data/lib/kintsugi_sdk/models/shared/exemptioncreate.rb +3 -3
  155. data/lib/kintsugi_sdk/models/shared/exemptioncreate.rbi +1 -1
  156. data/lib/kintsugi_sdk/models/shared/exemptionrequired.rb +22 -2
  157. data/lib/kintsugi_sdk/models/shared/exemptionrequired.rbi +11 -1
  158. data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rb +42 -0
  159. data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rbi +11 -0
  160. data/lib/kintsugi_sdk/models/shared/exemptionstatus.rbi +1 -1
  161. data/lib/kintsugi_sdk/models/shared/exemptiontype.rb +1 -0
  162. data/lib/kintsugi_sdk/models/shared/exemptiontype.rbi +1 -1
  163. data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rb +2 -2
  164. data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rbi +1 -1
  165. data/lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rbi +1 -1
  166. data/lib/kintsugi_sdk/models/shared/jurisdictiontype.rbi +1 -1
  167. data/lib/kintsugi_sdk/models/shared/loc.rb +27 -0
  168. data/lib/kintsugi_sdk/models/shared/loc.rbi +11 -0
  169. data/lib/kintsugi_sdk/models/shared/nexusresponse.rb +112 -82
  170. data/lib/kintsugi_sdk/models/shared/nexusresponse.rbi +53 -41
  171. data/lib/kintsugi_sdk/models/shared/nexusstateenum.rbi +1 -1
  172. data/lib/kintsugi_sdk/models/shared/nexusstatusenum.rbi +1 -1
  173. data/lib/kintsugi_sdk/models/shared/nexustypeenum.rb +1 -0
  174. data/lib/kintsugi_sdk/models/shared/nexustypeenum.rbi +1 -1
  175. data/lib/kintsugi_sdk/models/shared/page_customerread_.rbi +1 -1
  176. data/lib/kintsugi_sdk/models/shared/page_nexusresponse_.rbi +1 -1
  177. data/lib/kintsugi_sdk/models/shared/page_transactionread_.rbi +1 -1
  178. data/lib/kintsugi_sdk/models/shared/periodmodelenum.rb +2 -0
  179. data/lib/kintsugi_sdk/models/shared/periodmodelenum.rbi +1 -1
  180. data/lib/kintsugi_sdk/models/shared/processingstatusenum.rb +1 -0
  181. data/lib/kintsugi_sdk/models/shared/processingstatusenum.rbi +1 -1
  182. data/lib/kintsugi_sdk/models/shared/productread.rb +40 -12
  183. data/lib/kintsugi_sdk/models/shared/productread.rbi +19 -5
  184. data/lib/kintsugi_sdk/models/shared/productstatusenum.rb +1 -0
  185. data/lib/kintsugi_sdk/models/shared/productstatusenum.rbi +1 -1
  186. data/lib/kintsugi_sdk/models/shared/productupdate.rb +6 -6
  187. data/lib/kintsugi_sdk/models/shared/productupdate.rbi +3 -3
  188. data/lib/kintsugi_sdk/models/shared/productupdatev2.rb +64 -0
  189. data/lib/kintsugi_sdk/models/shared/productupdatev2.rbi +29 -0
  190. data/lib/kintsugi_sdk/models/shared/quantity.rb +27 -0
  191. data/lib/kintsugi_sdk/models/shared/quantity.rbi +11 -0
  192. data/lib/kintsugi_sdk/models/shared/quantity_of_the_product_.rb +27 -0
  193. data/lib/kintsugi_sdk/models/shared/quantity_of_the_product_.rbi +11 -0
  194. data/lib/kintsugi_sdk/models/shared/rate.rb +27 -0
  195. data/lib/kintsugi_sdk/models/shared/rate.rbi +11 -0
  196. data/lib/kintsugi_sdk/models/shared/registrationsregimeenum.rbi +1 -1
  197. data/lib/kintsugi_sdk/models/shared/relatedentitytype.rbi +1 -1
  198. data/lib/kintsugi_sdk/models/shared/salesortransactionsenum.rbi +1 -1
  199. data/lib/kintsugi_sdk/models/shared/security.rb +2 -6
  200. data/lib/kintsugi_sdk/models/shared/security.rbi +1 -3
  201. data/lib/kintsugi_sdk/models/shared/sourceenum.rb +15 -0
  202. data/lib/kintsugi_sdk/models/shared/sourceenum.rbi +1 -1
  203. data/lib/kintsugi_sdk/models/shared/statusenum.rbi +1 -1
  204. data/lib/kintsugi_sdk/models/shared/tax_amount_calculated.rb +27 -0
  205. data/lib/kintsugi_sdk/models/shared/tax_amount_calculated.rbi +11 -0
  206. data/lib/kintsugi_sdk/models/shared/tax_amount_imported.rb +27 -0
  207. data/lib/kintsugi_sdk/models/shared/tax_amount_imported.rbi +11 -0
  208. data/lib/kintsugi_sdk/models/shared/tax_rate_calculated.rb +27 -0
  209. data/lib/kintsugi_sdk/models/shared/tax_rate_calculated.rbi +11 -0
  210. data/lib/kintsugi_sdk/models/shared/tax_rate_imported.rb +27 -0
  211. data/lib/kintsugi_sdk/models/shared/tax_rate_imported.rbi +11 -0
  212. data/lib/kintsugi_sdk/models/shared/taxable_amount.rb +27 -0
  213. data/lib/kintsugi_sdk/models/shared/taxable_amount.rbi +11 -0
  214. data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rb +1 -0
  215. data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rbi +1 -1
  216. data/lib/kintsugi_sdk/models/shared/taxitembuilder.rb +14 -14
  217. data/lib/kintsugi_sdk/models/shared/taxitembuilder.rbi +5 -5
  218. data/lib/kintsugi_sdk/models/shared/taxitembuilder_amount.rb +27 -0
  219. data/lib/kintsugi_sdk/models/shared/taxitembuilder_amount.rbi +11 -0
  220. data/lib/kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rb +27 -0
  221. data/lib/kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rbi +11 -0
  222. data/lib/kintsugi_sdk/models/shared/taxitemestimate.rb +10 -10
  223. data/lib/kintsugi_sdk/models/shared/taxitemestimate.rbi +5 -5
  224. data/lib/kintsugi_sdk/models/shared/taxitemread.rb +10 -10
  225. data/lib/kintsugi_sdk/models/shared/taxitemread.rbi +5 -5
  226. data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rb +1 -0
  227. data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rbi +1 -1
  228. data/lib/kintsugi_sdk/models/shared/taxitemtypeenum.rbi +1 -1
  229. data/lib/kintsugi_sdk/models/shared/taxliabilitysourceenum.rbi +1 -1
  230. data/lib/kintsugi_sdk/models/shared/taxtypeenum.rb +26 -0
  231. data/lib/kintsugi_sdk/models/shared/taxtypeenum.rbi +11 -0
  232. data/lib/kintsugi_sdk/models/shared/total_amount.rb +27 -0
  233. data/lib/kintsugi_sdk/models/shared/total_amount.rbi +11 -0
  234. data/lib/kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rb +27 -0
  235. data/lib/kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rbi +11 -0
  236. data/lib/kintsugi_sdk/models/shared/total_tax_amount_calculated.rb +27 -0
  237. data/lib/kintsugi_sdk/models/shared/total_tax_amount_calculated.rbi +11 -0
  238. data/lib/kintsugi_sdk/models/shared/total_tax_amount_imported.rb +27 -0
  239. data/lib/kintsugi_sdk/models/shared/total_tax_amount_imported.rbi +11 -0
  240. data/lib/kintsugi_sdk/models/shared/total_tax_liability_amount.rb +27 -0
  241. data/lib/kintsugi_sdk/models/shared/total_tax_liability_amount.rbi +11 -0
  242. data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rb +11 -7
  243. data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rbi +5 -3
  244. data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rb +8 -4
  245. data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rbi +3 -1
  246. data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rb +11 -7
  247. data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rbi +5 -3
  248. data/lib/kintsugi_sdk/models/shared/transactioncreate.rb +84 -78
  249. data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +35 -29
  250. data/lib/kintsugi_sdk/models/shared/transactiondirectionenum.rb +19 -0
  251. data/lib/kintsugi_sdk/models/shared/transactiondirectionenum.rbi +11 -0
  252. data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb +9 -7
  253. data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rbi +3 -3
  254. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rb +10 -8
  255. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rbi +3 -3
  256. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb +7 -3
  257. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rbi +3 -1
  258. data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_type.rbi +1 -1
  259. data/lib/kintsugi_sdk/models/shared/transactionexemptstatusenum.rbi +1 -1
  260. data/lib/kintsugi_sdk/models/shared/transactionimportcustomer.rb +104 -0
  261. data/lib/kintsugi_sdk/models/shared/transactionimportcustomer.rbi +49 -0
  262. data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rb +53 -53
  263. data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rbi +21 -21
  264. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_amount.rb +27 -0
  265. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_amount.rbi +11 -0
  266. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rb +27 -0
  267. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rbi +11 -0
  268. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rb +27 -0
  269. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rbi +11 -0
  270. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rb +27 -0
  271. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rbi +11 -0
  272. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rb +27 -0
  273. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rbi +11 -0
  274. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rb +27 -0
  275. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rbi +11 -0
  276. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rb +27 -0
  277. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rbi +11 -0
  278. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_quantity.rb +27 -0
  279. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_quantity.rbi +11 -0
  280. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rb +27 -0
  281. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rbi +11 -0
  282. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rb +27 -0
  283. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rbi +11 -0
  284. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rb +27 -0
  285. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rbi +11 -0
  286. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rb +27 -0
  287. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rbi +11 -0
  288. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rb +27 -0
  289. data/lib/kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rbi +11 -0
  290. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rb +53 -53
  291. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rbi +21 -21
  292. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rb +27 -0
  293. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rbi +11 -0
  294. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rb +27 -0
  295. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rbi +11 -0
  296. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rb +27 -0
  297. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rbi +11 -0
  298. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rb +27 -0
  299. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rbi +11 -0
  300. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rb +27 -0
  301. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rbi +11 -0
  302. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rb +27 -0
  303. data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rbi +11 -0
  304. data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rb +17 -7
  305. data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rbi +5 -3
  306. data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb +20 -10
  307. data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rbi +7 -5
  308. data/lib/kintsugi_sdk/models/shared/transactionitemread.rb +51 -43
  309. data/lib/kintsugi_sdk/models/shared/transactionitemread.rbi +23 -19
  310. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb +64 -62
  311. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +29 -25
  312. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rb +27 -0
  313. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rbi +11 -0
  314. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rb +27 -0
  315. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rbi +11 -0
  316. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rb +27 -0
  317. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rbi +11 -0
  318. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rb +27 -0
  319. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rbi +11 -0
  320. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rb +27 -0
  321. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rbi +11 -0
  322. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rb +27 -0
  323. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rbi +11 -0
  324. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rb +27 -0
  325. data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rbi +11 -0
  326. data/lib/kintsugi_sdk/models/shared/transactionread.rb +89 -71
  327. data/lib/kintsugi_sdk/models/shared/transactionread.rbi +41 -29
  328. data/lib/kintsugi_sdk/models/shared/transactionrefundstatus.rbi +1 -1
  329. data/lib/kintsugi_sdk/models/shared/transactionstatusenum.rbi +1 -1
  330. data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rb +1 -0
  331. data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rbi +1 -1
  332. data/lib/kintsugi_sdk/models/shared/transactionupdate.rb +63 -61
  333. data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +29 -25
  334. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rb +27 -0
  335. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rbi +11 -0
  336. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rb +27 -0
  337. data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rbi +11 -0
  338. data/lib/kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rb +27 -0
  339. data/lib/kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rbi +11 -0
  340. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_amount.rb +27 -0
  341. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_amount.rbi +11 -0
  342. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rb +27 -0
  343. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rbi +11 -0
  344. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rb +27 -0
  345. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rbi +11 -0
  346. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rb +27 -0
  347. data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rbi +11 -0
  348. data/lib/kintsugi_sdk/models/shared/treatmentenum.rbi +1 -1
  349. data/lib/kintsugi_sdk/models/shared/type.rbi +1 -1
  350. data/lib/kintsugi_sdk/models/shared/validationaddress.rb +12 -12
  351. data/lib/kintsugi_sdk/models/shared/validationaddress.rbi +5 -5
  352. data/lib/kintsugi_sdk/models/shared/validationerror.rb +11 -3
  353. data/lib/kintsugi_sdk/models/shared/validationerror.rbi +5 -1
  354. data/lib/kintsugi_sdk/models/shared.rb +73 -5
  355. data/lib/kintsugi_sdk/nexus.rb +15 -10
  356. data/lib/kintsugi_sdk/openapisdk.rb +7 -6
  357. data/lib/kintsugi_sdk/products.rb +32 -22
  358. data/lib/kintsugi_sdk/sdkconfiguration.rb +10 -11
  359. data/lib/kintsugi_sdk/taxestimation.rb +17 -12
  360. data/lib/kintsugi_sdk/transactions.rb +125 -105
  361. data/lib/kintsugi_sdk/utils/retries.rb +43 -1
  362. data/lib/kintsugi_sdk/utils/security.rb +22 -11
  363. data/lib/kintsugi_sdk/utils/utils.rb +6 -2
  364. data/lib/kintsugi_sdk.rb +1 -1
  365. metadata +172 -18
  366. data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rbi +0 -13
  367. data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rbi +0 -13
  368. data/lib/kintsugi_sdk/models/shared/file.rb +0 -36
  369. data/lib/kintsugi_sdk/models/shared/file.rbi +0 -15
  370. data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rb +0 -48
  371. data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rbi +0 -21
@@ -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,42 @@ 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') } }
73
71
 
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
72
+ field :discount_builder, Crystalline::Nilable.new(Models::Shared::DiscountBuilder), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('discount_builder') } }
73
+
74
+ 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), discount_builder: T.nilable(Models::Shared::DiscountBuilder)).void }
75
+ 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, discount_builder: nil)
77
76
  @date = date
78
77
  @external_product_id = external_product_id
78
+ @organization_id = organization_id
79
+ @quantity = quantity
80
+ @amount = amount
81
+ @tax_amount_imported = tax_amount_imported
82
+ @tax_rate_imported = tax_rate_imported
83
+ @tax_amount_calculated = tax_amount_calculated
84
+ @tax_rate_calculated = tax_rate_calculated
85
+ @taxable_amount = taxable_amount
86
+ @tax_items = tax_items
79
87
  @external_id = external_id
80
88
  @description = description
81
89
  @product = product
@@ -91,24 +99,24 @@ module KintsugiSDK
91
99
  @converted_total_discount = converted_total_discount
92
100
  @converted_subtotal = converted_subtotal
93
101
  @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
102
  @exempt = exempt
103
+ @discount_builder = discount_builder
104
104
  end
105
105
 
106
106
  sig { params(other: T.untyped).returns(T::Boolean) }
107
107
  def ==(other)
108
108
  return false unless other.is_a? self.class
109
- return false unless @organization_id == other.organization_id
110
109
  return false unless @date == other.date
111
110
  return false unless @external_product_id == other.external_product_id
111
+ return false unless @organization_id == other.organization_id
112
+ return false unless @quantity == other.quantity
113
+ return false unless @amount == other.amount
114
+ return false unless @tax_amount_imported == other.tax_amount_imported
115
+ return false unless @tax_rate_imported == other.tax_rate_imported
116
+ return false unless @tax_amount_calculated == other.tax_amount_calculated
117
+ return false unless @tax_rate_calculated == other.tax_rate_calculated
118
+ return false unless @taxable_amount == other.taxable_amount
119
+ return false unless @tax_items == other.tax_items
112
120
  return false unless @external_id == other.external_id
113
121
  return false unless @description == other.description
114
122
  return false unless @product == other.product
@@ -124,16 +132,8 @@ module KintsugiSDK
124
132
  return false unless @converted_total_discount == other.converted_total_discount
125
133
  return false unless @converted_subtotal == other.converted_subtotal
126
134
  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
135
  return false unless @exempt == other.exempt
136
+ return false unless @discount_builder == other.discount_builder
137
137
  true
138
138
  end
139
139
  end
@@ -8,12 +8,28 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::TransactionItemBuilder
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,8 @@ class KintsugiSDK::Models::Shared::TransactionItemBuilder
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
67
- end
65
+ def discount_builder(); end
66
+ def discount_builder=(str_); end
67
+ 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
+ # Item amount.
11
+ class TransactionItemBuilderAmount
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::TransactionItemBuilderAmount
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderAmount
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 item amount.
11
+ class TransactionItemBuilderConvertedAmount
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::TransactionItemBuilderConvertedAmount
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderConvertedAmount
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 subtotal amount.
11
+ class TransactionItemBuilderConvertedSubtotal
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::TransactionItemBuilderConvertedSubtotal
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderConvertedSubtotal
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 calculated tax amount
11
+ class TransactionItemBuilderConvertedTaxAmountCalculated
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::TransactionItemBuilderConvertedTaxAmountCalculated
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderConvertedTaxAmountCalculated
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 imported tax amount.
11
+ class TransactionItemBuilderConvertedTaxAmountImported
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::TransactionItemBuilderConvertedTaxAmountImported
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderConvertedTaxAmountImported
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 TransactionItemBuilderConvertedTaxableAmount
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::TransactionItemBuilderConvertedTaxableAmount
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderConvertedTaxableAmount
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 TransactionItemBuilderConvertedTotalDiscount
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::TransactionItemBuilderConvertedTotalDiscount
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderConvertedTotalDiscount
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
+ # Quantity of item.
11
+ class TransactionItemBuilderQuantity
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::TransactionItemBuilderQuantity
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderQuantity
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 amount for the item.
11
+ class TransactionItemBuilderTaxAmountCalculated
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::TransactionItemBuilderTaxAmountCalculated
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderTaxAmountCalculated
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 amount for the item.
11
+ class TransactionItemBuilderTaxAmountImported
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::TransactionItemBuilderTaxAmountImported
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class KintsugiSDK::Models::Shared::TransactionItemBuilderTaxAmountImported
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 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