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
@@ -25,10 +25,6 @@ module KintsugiSDK
25
25
 
26
26
  field :sales_or_transactions, Models::Shared::SalesOrTransactionsEnum, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('sales_or_transactions'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::SalesOrTransactionsEnum, false) } }
27
27
 
28
- field :threshold_sales, ::Integer, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('threshold_sales'), required: true } }
29
-
30
- field :threshold_transactions, ::Integer, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('threshold_transactions'), required: true } }
31
-
32
28
  field :start_date, ::Date, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('start_date'), required: true, 'decoder': ::KintsugiSDK::Utils.date_from_iso_format(false) } }
33
29
 
34
30
  field :period_model, Models::Shared::PeriodModelEnum, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('period_model'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::PeriodModelEnum, false) } }
@@ -37,10 +33,6 @@ module KintsugiSDK
37
33
 
38
34
  field :period_end_date, ::Date, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('period_end_date'), required: true, 'decoder': ::KintsugiSDK::Utils.date_from_iso_format(false) } }
39
35
 
40
- field :previous_period_start_date, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('previous_period_start_date'), required: true } }
41
-
42
- field :previous_period_end_date, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('previous_period_end_date'), required: true } }
43
-
44
36
  field :id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('id'), required: true } }
45
37
 
46
38
  field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('created_at'), required: true, 'decoder': ::KintsugiSDK::Utils.datetime_from_iso_format(false) } }
@@ -49,6 +41,8 @@ module KintsugiSDK
49
41
 
50
42
  field :organization_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('organization_id'), required: true } }
51
43
 
44
+ field :threshold_sales, ::Integer, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('threshold_sales'), required: true } }
45
+
52
46
  field :is_vda_eligible, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('is_vda_eligible'), required: true } }
53
47
 
54
48
  field :nexus_type, Models::Shared::NexusTypeEnum, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('nexus_type'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::NexusTypeEnum, false) } }
@@ -61,56 +55,40 @@ module KintsugiSDK
61
55
 
62
56
  field :total_transactions_marketplace, ::Integer, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_transactions_marketplace'), required: true } }
63
57
 
64
- field :marketplace_included, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('marketplace_included'), required: true } }
65
-
66
58
  field :processing_status, Crystalline::Nilable.new(Models::Shared::NexusStatusEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('processing_status'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::NexusStatusEnum, true) } }
67
59
 
68
60
  field :status, Crystalline::Nilable.new(Models::Shared::NexusStateEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::NexusStateEnum, true) } }
69
61
 
70
- field :nexus_met_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('nexus_met_date') } }
71
-
72
- field :economic_nexus_met_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('economic_nexus_met_date') } }
73
-
74
- field :physical_nexus_met_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('physical_nexus_met_date') } }
75
-
76
- field :collected_tax_nexus_met_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('collected_tax_nexus_met_date') } }
77
-
78
- field :earliest_transaction_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('earliest_transaction_date') } }
79
-
80
- field :most_recent_transaction_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('most_recent_transaction_date') } }
81
-
82
- field :find_threshold_crossing_transaction_state, Crystalline::Nilable.new(Models::Shared::FindThresholdCrossingTransactionState), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('find_threshold_crossing_transaction_state') } }
83
-
84
- field :predicted_month_from_today, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('predicted_month_from_today') } }
85
-
86
- field :confidence_level, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('confidence_level') } }
62
+ field :threshold_transactions, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('threshold_transactions'), required: true } }
63
+ # Tax obligation on a nexus, registration, or filing row.
64
+ #
65
+ # Registrations and filings may be SALES_AND_USE_TAX: one state account and
66
+ # one return can cover both taxes, and each is stored as a single row.
67
+ # Nexus rows are only SALES_TAX or USE_TAX. Sales and use tax exposure are
68
+ # separate obligations with their own met dates, period models, and liability
69
+ # accrual.
70
+ field :tax_type, Crystalline::Nilable.new(Models::Shared::TaxTypeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_type'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::TaxTypeEnum, true) } }
87
71
 
88
- field :last_processed_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('last_processed_at') } }
72
+ field :previous_period_start_date, Crystalline::Nilable.new(::Date), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('previous_period_start_date'), required: true, 'decoder': ::KintsugiSDK::Utils.date_from_iso_format(false) } }
89
73
 
90
- field :last_tax_liability_processed_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('last_tax_liability_processed_at') } }
74
+ field :previous_period_end_date, Crystalline::Nilable.new(::Date), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('previous_period_end_date'), required: true, 'decoder': ::KintsugiSDK::Utils.date_from_iso_format(false) } }
91
75
 
92
76
  field :periods, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Hash.new(Symbol, ::Object))), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('periods') } }
93
77
 
94
- field :currency, Crystalline::Nilable.new(Models::Shared::CurrencyEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('currency'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::CurrencyEnum, true) } }
95
-
96
- field :registration, Crystalline::Nilable.new(Models::Shared::Registration), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('registration') } }
97
-
98
- field :registration_regime, Crystalline::Nilable.new(Models::Shared::RegistrationsRegimeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('registration_regime'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::RegistrationsRegimeEnum, true) } }
78
+ field :disregarded_nexus_types, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('disregarded_nexus_types') } }
99
79
 
100
- field :disregarded_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('disregarded_at') } }
80
+ field :marketplace_included, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('marketplace_included'), required: true } }
101
81
 
102
- field :disregarded_by, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('disregarded_by') } }
103
-
104
- field :disregarded_nexus_types, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('disregarded_nexus_types') } }
82
+ field :threshold_sales_bigint, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('threshold_sales_bigint') } }
105
83
 
106
84
  field :transaction_count, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('transaction_count') } }
107
85
 
108
86
  field :transactions_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('transactions_amount') } }
109
- # Deprecated: transaction_count now includes both current and previous period values when period_model is CURRENT_OR_PREVIOUS
87
+ # Deprecated: transaction_count now includes both current and previous period values when period_model is CURRENT_OR_PREVIOUS, CURRENT_OR_TWO_PREVIOUS, or CURRENT_OR_PREVIOUS_12_MONTHS
110
88
  #
111
89
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
112
90
  field :previous_transaction_count, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('previous_transaction_count') } }
113
- # Deprecated: transactions_amount now includes both current and previous period values when period_model is CURRENT_OR_PREVIOUS
91
+ # Deprecated: transactions_amount now includes both current and previous period values when period_model is CURRENT_OR_PREVIOUS, CURRENT_OR_TWO_PREVIOUS, or CURRENT_OR_PREVIOUS_12_MONTHS
114
92
  #
115
93
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
116
94
  field :previous_transactions_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('previous_transactions_amount') } }
@@ -123,79 +101,125 @@ module KintsugiSDK
123
101
 
124
102
  field :nexus_met, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('nexus_met') } }
125
103
 
104
+ field :nexus_met_date, Crystalline::Nilable.new(::Date), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('nexus_met_date'), 'decoder': ::KintsugiSDK::Utils.date_from_iso_format(true) } }
105
+
126
106
  field :economic_nexus_met, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('economic_nexus_met') } }
127
107
 
108
+ field :economic_nexus_met_date, Crystalline::Nilable.new(::Date), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('economic_nexus_met_date'), 'decoder': ::KintsugiSDK::Utils.date_from_iso_format(true) } }
109
+
128
110
  field :physical_nexus_met, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('physical_nexus_met') } }
129
111
 
112
+ field :physical_nexus_met_date, Crystalline::Nilable.new(::Date), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('physical_nexus_met_date'), 'decoder': ::KintsugiSDK::Utils.date_from_iso_format(true) } }
113
+
130
114
  field :collected_tax_nexus_met, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('collected_tax_nexus_met') } }
131
115
 
116
+ field :collected_tax_nexus_met_date, Crystalline::Nilable.new(::Date), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('collected_tax_nexus_met_date'), 'decoder': ::KintsugiSDK::Utils.date_from_iso_format(true) } }
117
+
118
+ field :earliest_transaction_date, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('earliest_transaction_date'), 'decoder': ::KintsugiSDK::Utils.datetime_from_iso_format(true) } }
119
+
120
+ field :most_recent_transaction_date, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('most_recent_transaction_date'), 'decoder': ::KintsugiSDK::Utils.datetime_from_iso_format(true) } }
121
+
122
+ field :find_threshold_crossing_transaction_state, Crystalline::Nilable.new(Models::Shared::FindThresholdCrossingTransactionState), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('find_threshold_crossing_transaction_state') } }
123
+
132
124
  field :earliest_collected_date, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('earliest_collected_date'), 'decoder': ::KintsugiSDK::Utils.datetime_from_iso_format(true) } }
133
125
 
126
+ field :predicted_month_from_today, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('predicted_month_from_today') } }
127
+
134
128
  field :vda_eligible, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('vda_eligible') } }
135
129
 
130
+ field :confidence_level, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('confidence_level') } }
131
+
132
+ field :last_processed_at, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('last_processed_at'), 'decoder': ::KintsugiSDK::Utils.datetime_from_iso_format(true) } }
133
+
134
+ field :last_tax_liability_processed_at, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('last_tax_liability_processed_at'), 'decoder': ::KintsugiSDK::Utils.datetime_from_iso_format(true) } }
135
+ # Currency code for the nexus (e.g., USD, CAD).
136
+ field :currency, Crystalline::Nilable.new(Models::Shared::CurrencyEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('currency'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::CurrencyEnum, true) } }
137
+
138
+ field :registration, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('registration') } }
139
+
140
+ field :registration_regime, Crystalline::Nilable.new(Models::Shared::RegistrationsRegimeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('registration_regime'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::RegistrationsRegimeEnum, true) } }
141
+
142
+ field :disregarded_at, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('disregarded_at'), 'decoder': ::KintsugiSDK::Utils.datetime_from_iso_format(true) } }
143
+
144
+ field :disregarded_by, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('disregarded_by') } }
145
+
146
+ field :disregarded_type, Crystalline::Nilable.new(Models::Shared::DisregardedTypeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('disregarded_type'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::DisregardedTypeEnum, true) } }
147
+
136
148
  field :is_currently_disregarded, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('is_currently_disregarded') } }
137
149
 
138
- sig { params(country_code: Models::Shared::CountryCodeEnum, state_code: ::String, state_name: ::String, treatment_of_exempt_transactions: Models::Shared::TreatmentEnum, trigger: ::String, sales_or_transactions: Models::Shared::SalesOrTransactionsEnum, threshold_sales: ::Integer, threshold_transactions: ::Integer, start_date: ::Date, period_model: Models::Shared::PeriodModelEnum, period_start_date: ::Date, period_end_date: ::Date, previous_period_start_date: ::String, previous_period_end_date: ::String, id: ::String, created_at: ::DateTime, updated_at: ::DateTime, organization_id: ::String, is_vda_eligible: T::Boolean, nexus_type: Models::Shared::NexusTypeEnum, total_transactions: ::Integer, total_transactions_included: ::Integer, total_transactions_exempted: ::Integer, total_transactions_marketplace: ::Integer, marketplace_included: T::Boolean, processing_status: T.nilable(Models::Shared::NexusStatusEnum), status: T.nilable(Models::Shared::NexusStateEnum), nexus_met_date: T.nilable(::String), economic_nexus_met_date: T.nilable(::String), physical_nexus_met_date: T.nilable(::String), collected_tax_nexus_met_date: T.nilable(::String), earliest_transaction_date: T.nilable(::String), most_recent_transaction_date: T.nilable(::String), find_threshold_crossing_transaction_state: T.nilable(Models::Shared::FindThresholdCrossingTransactionState), predicted_month_from_today: T.nilable(::Integer), confidence_level: T.nilable(::Float), last_processed_at: T.nilable(::String), last_tax_liability_processed_at: T.nilable(::String), periods: T.nilable(T::Array[T::Hash[Symbol, ::Object]]), currency: T.nilable(Models::Shared::CurrencyEnum), registration: T.nilable(Models::Shared::Registration), registration_regime: T.nilable(Models::Shared::RegistrationsRegimeEnum), disregarded_at: T.nilable(::String), disregarded_by: T.nilable(::String), disregarded_nexus_types: T.nilable(T::Array[::String]), transaction_count: T.nilable(::Integer), transactions_amount: T.nilable(::String), previous_transaction_count: T.nilable(::Integer), previous_transactions_amount: T.nilable(::String), calculated_tax_liability: T.nilable(::String), imported_tax_liability: T.nilable(::String), tax_liability: T.nilable(::String), nexus_met: T.nilable(T::Boolean), economic_nexus_met: T.nilable(T::Boolean), physical_nexus_met: T.nilable(T::Boolean), collected_tax_nexus_met: T.nilable(T::Boolean), earliest_collected_date: T.nilable(::DateTime), vda_eligible: T.nilable(T::Boolean), is_currently_disregarded: T.nilable(T::Boolean)).void }
139
- def initialize(country_code:, state_code:, state_name:, treatment_of_exempt_transactions:, trigger:, sales_or_transactions:, threshold_sales:, threshold_transactions:, start_date:, period_model:, period_start_date:, period_end_date:, previous_period_start_date:, previous_period_end_date:, id:, created_at:, updated_at:, organization_id:, is_vda_eligible:, nexus_type:, total_transactions:, total_transactions_included:, total_transactions_exempted:, total_transactions_marketplace:, marketplace_included:, processing_status: nil, status: nil, nexus_met_date: nil, economic_nexus_met_date: nil, physical_nexus_met_date: nil, collected_tax_nexus_met_date: nil, earliest_transaction_date: nil, most_recent_transaction_date: nil, find_threshold_crossing_transaction_state: nil, predicted_month_from_today: nil, confidence_level: nil, last_processed_at: nil, last_tax_liability_processed_at: nil, periods: nil, currency: nil, registration: nil, registration_regime: nil, disregarded_at: nil, disregarded_by: nil, disregarded_nexus_types: nil, transaction_count: 0, transactions_amount: '0.00', previous_transaction_count: 0, previous_transactions_amount: '0.00', calculated_tax_liability: '0.00', imported_tax_liability: '0.00', tax_liability: '0.00', nexus_met: false, economic_nexus_met: false, physical_nexus_met: false, collected_tax_nexus_met: false, earliest_collected_date: DateTime.iso8601('2018-01-01T00:00:00'), vda_eligible: false, is_currently_disregarded: false)
150
+ field :ior_opt_out_eligible, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('ior_opt_out_eligible') } }
151
+
152
+ field :ior_eligible_at_registration, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('ior_eligible_at_registration') } }
153
+
154
+ field :requires_ior_number_to_register, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('requires_ior_number_to_register') } }
155
+
156
+ sig { params(country_code: Models::Shared::CountryCodeEnum, state_code: ::String, state_name: ::String, treatment_of_exempt_transactions: Models::Shared::TreatmentEnum, trigger: ::String, sales_or_transactions: Models::Shared::SalesOrTransactionsEnum, start_date: ::Date, period_model: Models::Shared::PeriodModelEnum, period_start_date: ::Date, period_end_date: ::Date, id: ::String, created_at: ::DateTime, updated_at: ::DateTime, organization_id: ::String, threshold_sales: ::Integer, is_vda_eligible: T::Boolean, nexus_type: Models::Shared::NexusTypeEnum, total_transactions: ::Integer, total_transactions_included: ::Integer, total_transactions_exempted: ::Integer, total_transactions_marketplace: ::Integer, processing_status: T.nilable(Models::Shared::NexusStatusEnum), status: T.nilable(Models::Shared::NexusStateEnum), threshold_transactions: T.nilable(::Integer), tax_type: T.nilable(Models::Shared::TaxTypeEnum), previous_period_start_date: T.nilable(::Date), previous_period_end_date: T.nilable(::Date), periods: T.nilable(T::Array[T::Hash[Symbol, ::Object]]), disregarded_nexus_types: T.nilable(T::Array[::String]), marketplace_included: T.nilable(T::Boolean), threshold_sales_bigint: T.nilable(::Integer), transaction_count: T.nilable(::Integer), transactions_amount: T.nilable(::String), previous_transaction_count: T.nilable(::Integer), previous_transactions_amount: T.nilable(::String), calculated_tax_liability: T.nilable(::String), imported_tax_liability: T.nilable(::String), tax_liability: T.nilable(::String), nexus_met: T.nilable(T::Boolean), nexus_met_date: T.nilable(::Date), economic_nexus_met: T.nilable(T::Boolean), economic_nexus_met_date: T.nilable(::Date), physical_nexus_met: T.nilable(T::Boolean), physical_nexus_met_date: T.nilable(::Date), collected_tax_nexus_met: T.nilable(T::Boolean), collected_tax_nexus_met_date: T.nilable(::Date), earliest_transaction_date: T.nilable(::DateTime), most_recent_transaction_date: T.nilable(::DateTime), find_threshold_crossing_transaction_state: T.nilable(Models::Shared::FindThresholdCrossingTransactionState), earliest_collected_date: T.nilable(::DateTime), predicted_month_from_today: T.nilable(::Integer), vda_eligible: T.nilable(T::Boolean), confidence_level: T.nilable(::Float), last_processed_at: T.nilable(::DateTime), last_tax_liability_processed_at: T.nilable(::DateTime), currency: T.nilable(Models::Shared::CurrencyEnum), registration: T.nilable(T::Hash[Symbol, ::Object]), registration_regime: T.nilable(Models::Shared::RegistrationsRegimeEnum), disregarded_at: T.nilable(::DateTime), disregarded_by: T.nilable(::String), disregarded_type: T.nilable(Models::Shared::DisregardedTypeEnum), is_currently_disregarded: T.nilable(T::Boolean), ior_opt_out_eligible: T.nilable(T::Boolean), ior_eligible_at_registration: T.nilable(T::Boolean), requires_ior_number_to_register: T.nilable(T::Boolean)).void }
157
+ def initialize(country_code:, state_code:, state_name:, treatment_of_exempt_transactions:, trigger:, sales_or_transactions:, start_date:, period_model:, period_start_date:, period_end_date:, id:, created_at:, updated_at:, organization_id:, threshold_sales:, is_vda_eligible:, nexus_type:, total_transactions:, total_transactions_included:, total_transactions_exempted:, total_transactions_marketplace:, processing_status: nil, status: nil, threshold_transactions: nil, tax_type: nil, previous_period_start_date: nil, previous_period_end_date: nil, periods: nil, disregarded_nexus_types: nil, marketplace_included: nil, threshold_sales_bigint: 0, transaction_count: 0, transactions_amount: '0.00', previous_transaction_count: 0, previous_transactions_amount: '0.00', calculated_tax_liability: nil, imported_tax_liability: nil, tax_liability: '0.00', nexus_met: false, nexus_met_date: nil, economic_nexus_met: false, economic_nexus_met_date: nil, physical_nexus_met: false, physical_nexus_met_date: nil, collected_tax_nexus_met: nil, collected_tax_nexus_met_date: nil, earliest_transaction_date: nil, most_recent_transaction_date: nil, find_threshold_crossing_transaction_state: nil, earliest_collected_date: DateTime.iso8601('2018-01-01T00:00:00'), predicted_month_from_today: nil, vda_eligible: nil, confidence_level: nil, last_processed_at: nil, last_tax_liability_processed_at: nil, currency: nil, registration: nil, registration_regime: nil, disregarded_at: nil, disregarded_by: nil, disregarded_type: nil, is_currently_disregarded: false, ior_opt_out_eligible: false, ior_eligible_at_registration: false, requires_ior_number_to_register: false)
140
158
  @country_code = country_code
141
159
  @state_code = state_code
142
160
  @state_name = state_name
143
161
  @treatment_of_exempt_transactions = treatment_of_exempt_transactions
144
162
  @trigger = trigger
145
163
  @sales_or_transactions = sales_or_transactions
146
- @threshold_sales = threshold_sales
147
- @threshold_transactions = threshold_transactions
148
164
  @start_date = start_date
149
165
  @period_model = period_model
150
166
  @period_start_date = period_start_date
151
167
  @period_end_date = period_end_date
152
- @previous_period_start_date = previous_period_start_date
153
- @previous_period_end_date = previous_period_end_date
154
168
  @id = id
155
169
  @created_at = created_at
156
170
  @updated_at = updated_at
157
171
  @organization_id = organization_id
172
+ @threshold_sales = threshold_sales
158
173
  @is_vda_eligible = is_vda_eligible
159
174
  @nexus_type = nexus_type
160
175
  @total_transactions = total_transactions
161
176
  @total_transactions_included = total_transactions_included
162
177
  @total_transactions_exempted = total_transactions_exempted
163
178
  @total_transactions_marketplace = total_transactions_marketplace
164
- @marketplace_included = marketplace_included
165
179
  @processing_status = processing_status
166
180
  @status = status
181
+ @threshold_transactions = threshold_transactions
182
+ @tax_type = tax_type
183
+ @previous_period_start_date = previous_period_start_date
184
+ @previous_period_end_date = previous_period_end_date
185
+ @periods = periods
186
+ @disregarded_nexus_types = disregarded_nexus_types
187
+ @marketplace_included = marketplace_included
188
+ @threshold_sales_bigint = threshold_sales_bigint
189
+ @transaction_count = transaction_count
190
+ @transactions_amount = transactions_amount
191
+ @previous_transaction_count = previous_transaction_count
192
+ @previous_transactions_amount = previous_transactions_amount
193
+ @calculated_tax_liability = calculated_tax_liability
194
+ @imported_tax_liability = imported_tax_liability
195
+ @tax_liability = tax_liability
196
+ @nexus_met = nexus_met
167
197
  @nexus_met_date = nexus_met_date
198
+ @economic_nexus_met = economic_nexus_met
168
199
  @economic_nexus_met_date = economic_nexus_met_date
200
+ @physical_nexus_met = physical_nexus_met
169
201
  @physical_nexus_met_date = physical_nexus_met_date
202
+ @collected_tax_nexus_met = collected_tax_nexus_met
170
203
  @collected_tax_nexus_met_date = collected_tax_nexus_met_date
171
204
  @earliest_transaction_date = earliest_transaction_date
172
205
  @most_recent_transaction_date = most_recent_transaction_date
173
206
  @find_threshold_crossing_transaction_state = find_threshold_crossing_transaction_state
207
+ @earliest_collected_date = earliest_collected_date
174
208
  @predicted_month_from_today = predicted_month_from_today
209
+ @vda_eligible = vda_eligible
175
210
  @confidence_level = confidence_level
176
211
  @last_processed_at = last_processed_at
177
212
  @last_tax_liability_processed_at = last_tax_liability_processed_at
178
- @periods = periods
179
213
  @currency = currency
180
214
  @registration = registration
181
215
  @registration_regime = registration_regime
182
216
  @disregarded_at = disregarded_at
183
217
  @disregarded_by = disregarded_by
184
- @disregarded_nexus_types = disregarded_nexus_types
185
- @transaction_count = transaction_count
186
- @transactions_amount = transactions_amount
187
- @previous_transaction_count = previous_transaction_count
188
- @previous_transactions_amount = previous_transactions_amount
189
- @calculated_tax_liability = calculated_tax_liability
190
- @imported_tax_liability = imported_tax_liability
191
- @tax_liability = tax_liability
192
- @nexus_met = nexus_met
193
- @economic_nexus_met = economic_nexus_met
194
- @physical_nexus_met = physical_nexus_met
195
- @collected_tax_nexus_met = collected_tax_nexus_met
196
- @earliest_collected_date = earliest_collected_date
197
- @vda_eligible = vda_eligible
218
+ @disregarded_type = disregarded_type
198
219
  @is_currently_disregarded = is_currently_disregarded
220
+ @ior_opt_out_eligible = ior_opt_out_eligible
221
+ @ior_eligible_at_registration = ior_eligible_at_registration
222
+ @requires_ior_number_to_register = requires_ior_number_to_register
199
223
  end
200
224
 
201
225
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -207,59 +231,65 @@ module KintsugiSDK
207
231
  return false unless @treatment_of_exempt_transactions == other.treatment_of_exempt_transactions
208
232
  return false unless @trigger == other.trigger
209
233
  return false unless @sales_or_transactions == other.sales_or_transactions
210
- return false unless @threshold_sales == other.threshold_sales
211
- return false unless @threshold_transactions == other.threshold_transactions
212
234
  return false unless @start_date == other.start_date
213
235
  return false unless @period_model == other.period_model
214
236
  return false unless @period_start_date == other.period_start_date
215
237
  return false unless @period_end_date == other.period_end_date
216
- return false unless @previous_period_start_date == other.previous_period_start_date
217
- return false unless @previous_period_end_date == other.previous_period_end_date
218
238
  return false unless @id == other.id
219
239
  return false unless @created_at == other.created_at
220
240
  return false unless @updated_at == other.updated_at
221
241
  return false unless @organization_id == other.organization_id
242
+ return false unless @threshold_sales == other.threshold_sales
222
243
  return false unless @is_vda_eligible == other.is_vda_eligible
223
244
  return false unless @nexus_type == other.nexus_type
224
245
  return false unless @total_transactions == other.total_transactions
225
246
  return false unless @total_transactions_included == other.total_transactions_included
226
247
  return false unless @total_transactions_exempted == other.total_transactions_exempted
227
248
  return false unless @total_transactions_marketplace == other.total_transactions_marketplace
228
- return false unless @marketplace_included == other.marketplace_included
229
249
  return false unless @processing_status == other.processing_status
230
250
  return false unless @status == other.status
251
+ return false unless @threshold_transactions == other.threshold_transactions
252
+ return false unless @tax_type == other.tax_type
253
+ return false unless @previous_period_start_date == other.previous_period_start_date
254
+ return false unless @previous_period_end_date == other.previous_period_end_date
255
+ return false unless @periods == other.periods
256
+ return false unless @disregarded_nexus_types == other.disregarded_nexus_types
257
+ return false unless @marketplace_included == other.marketplace_included
258
+ return false unless @threshold_sales_bigint == other.threshold_sales_bigint
259
+ return false unless @transaction_count == other.transaction_count
260
+ return false unless @transactions_amount == other.transactions_amount
261
+ return false unless @previous_transaction_count == other.previous_transaction_count
262
+ return false unless @previous_transactions_amount == other.previous_transactions_amount
263
+ return false unless @calculated_tax_liability == other.calculated_tax_liability
264
+ return false unless @imported_tax_liability == other.imported_tax_liability
265
+ return false unless @tax_liability == other.tax_liability
266
+ return false unless @nexus_met == other.nexus_met
231
267
  return false unless @nexus_met_date == other.nexus_met_date
268
+ return false unless @economic_nexus_met == other.economic_nexus_met
232
269
  return false unless @economic_nexus_met_date == other.economic_nexus_met_date
270
+ return false unless @physical_nexus_met == other.physical_nexus_met
233
271
  return false unless @physical_nexus_met_date == other.physical_nexus_met_date
272
+ return false unless @collected_tax_nexus_met == other.collected_tax_nexus_met
234
273
  return false unless @collected_tax_nexus_met_date == other.collected_tax_nexus_met_date
235
274
  return false unless @earliest_transaction_date == other.earliest_transaction_date
236
275
  return false unless @most_recent_transaction_date == other.most_recent_transaction_date
237
276
  return false unless @find_threshold_crossing_transaction_state == other.find_threshold_crossing_transaction_state
277
+ return false unless @earliest_collected_date == other.earliest_collected_date
238
278
  return false unless @predicted_month_from_today == other.predicted_month_from_today
279
+ return false unless @vda_eligible == other.vda_eligible
239
280
  return false unless @confidence_level == other.confidence_level
240
281
  return false unless @last_processed_at == other.last_processed_at
241
282
  return false unless @last_tax_liability_processed_at == other.last_tax_liability_processed_at
242
- return false unless @periods == other.periods
243
283
  return false unless @currency == other.currency
244
284
  return false unless @registration == other.registration
245
285
  return false unless @registration_regime == other.registration_regime
246
286
  return false unless @disregarded_at == other.disregarded_at
247
287
  return false unless @disregarded_by == other.disregarded_by
248
- return false unless @disregarded_nexus_types == other.disregarded_nexus_types
249
- return false unless @transaction_count == other.transaction_count
250
- return false unless @transactions_amount == other.transactions_amount
251
- return false unless @previous_transaction_count == other.previous_transaction_count
252
- return false unless @previous_transactions_amount == other.previous_transactions_amount
253
- return false unless @calculated_tax_liability == other.calculated_tax_liability
254
- return false unless @imported_tax_liability == other.imported_tax_liability
255
- return false unless @tax_liability == other.tax_liability
256
- return false unless @nexus_met == other.nexus_met
257
- return false unless @economic_nexus_met == other.economic_nexus_met
258
- return false unless @physical_nexus_met == other.physical_nexus_met
259
- return false unless @collected_tax_nexus_met == other.collected_tax_nexus_met
260
- return false unless @earliest_collected_date == other.earliest_collected_date
261
- return false unless @vda_eligible == other.vda_eligible
288
+ return false unless @disregarded_type == other.disregarded_type
262
289
  return false unless @is_currently_disregarded == other.is_currently_disregarded
290
+ return false unless @ior_opt_out_eligible == other.ior_opt_out_eligible
291
+ return false unless @ior_eligible_at_registration == other.ior_eligible_at_registration
292
+ return false unless @requires_ior_number_to_register == other.requires_ior_number_to_register
263
293
  true
264
294
  end
265
295
  end
@@ -20,10 +20,6 @@ class KintsugiSDK::Models::Shared::NexusResponse
20
20
  def trigger=(str_); end
21
21
  def sales_or_transactions(); end
22
22
  def sales_or_transactions=(str_); end
23
- def threshold_sales(); end
24
- def threshold_sales=(str_); end
25
- def threshold_transactions(); end
26
- def threshold_transactions=(str_); end
27
23
  def start_date(); end
28
24
  def start_date=(str_); end
29
25
  def period_model(); end
@@ -32,10 +28,6 @@ class KintsugiSDK::Models::Shared::NexusResponse
32
28
  def period_start_date=(str_); end
33
29
  def period_end_date(); end
34
30
  def period_end_date=(str_); end
35
- def previous_period_start_date(); end
36
- def previous_period_start_date=(str_); end
37
- def previous_period_end_date(); end
38
- def previous_period_end_date=(str_); end
39
31
  def id(); end
40
32
  def id=(str_); end
41
33
  def created_at(); end
@@ -44,6 +36,8 @@ class KintsugiSDK::Models::Shared::NexusResponse
44
36
  def updated_at=(str_); end
45
37
  def organization_id(); end
46
38
  def organization_id=(str_); end
39
+ def threshold_sales(); end
40
+ def threshold_sales=(str_); end
47
41
  def is_vda_eligible(); end
48
42
  def is_vda_eligible=(str_); end
49
43
  def nexus_type(); end
@@ -56,18 +50,54 @@ class KintsugiSDK::Models::Shared::NexusResponse
56
50
  def total_transactions_exempted=(str_); end
57
51
  def total_transactions_marketplace(); end
58
52
  def total_transactions_marketplace=(str_); end
59
- def marketplace_included(); end
60
- def marketplace_included=(str_); end
61
53
  def processing_status(); end
62
54
  def processing_status=(str_); end
63
55
  def status(); end
64
56
  def status=(str_); end
57
+ def threshold_transactions(); end
58
+ def threshold_transactions=(str_); end
59
+ def tax_type(); end
60
+ def tax_type=(str_); end
61
+ def previous_period_start_date(); end
62
+ def previous_period_start_date=(str_); end
63
+ def previous_period_end_date(); end
64
+ def previous_period_end_date=(str_); end
65
+ def periods(); end
66
+ def periods=(str_); end
67
+ def disregarded_nexus_types(); end
68
+ def disregarded_nexus_types=(str_); end
69
+ def marketplace_included(); end
70
+ def marketplace_included=(str_); end
71
+ def threshold_sales_bigint(); end
72
+ def threshold_sales_bigint=(str_); end
73
+ def transaction_count(); end
74
+ def transaction_count=(str_); end
75
+ def transactions_amount(); end
76
+ def transactions_amount=(str_); end
77
+ def previous_transaction_count(); end
78
+ def previous_transaction_count=(str_); end
79
+ def previous_transactions_amount(); end
80
+ def previous_transactions_amount=(str_); end
81
+ def calculated_tax_liability(); end
82
+ def calculated_tax_liability=(str_); end
83
+ def imported_tax_liability(); end
84
+ def imported_tax_liability=(str_); end
85
+ def tax_liability(); end
86
+ def tax_liability=(str_); end
87
+ def nexus_met(); end
88
+ def nexus_met=(str_); end
65
89
  def nexus_met_date(); end
66
90
  def nexus_met_date=(str_); end
91
+ def economic_nexus_met(); end
92
+ def economic_nexus_met=(str_); end
67
93
  def economic_nexus_met_date(); end
68
94
  def economic_nexus_met_date=(str_); end
95
+ def physical_nexus_met(); end
96
+ def physical_nexus_met=(str_); end
69
97
  def physical_nexus_met_date(); end
70
98
  def physical_nexus_met_date=(str_); end
99
+ def collected_tax_nexus_met(); end
100
+ def collected_tax_nexus_met=(str_); end
71
101
  def collected_tax_nexus_met_date(); end
72
102
  def collected_tax_nexus_met_date=(str_); end
73
103
  def earliest_transaction_date(); end
@@ -76,16 +106,18 @@ class KintsugiSDK::Models::Shared::NexusResponse
76
106
  def most_recent_transaction_date=(str_); end
77
107
  def find_threshold_crossing_transaction_state(); end
78
108
  def find_threshold_crossing_transaction_state=(str_); end
109
+ def earliest_collected_date(); end
110
+ def earliest_collected_date=(str_); end
79
111
  def predicted_month_from_today(); end
80
112
  def predicted_month_from_today=(str_); end
113
+ def vda_eligible(); end
114
+ def vda_eligible=(str_); end
81
115
  def confidence_level(); end
82
116
  def confidence_level=(str_); end
83
117
  def last_processed_at(); end
84
118
  def last_processed_at=(str_); end
85
119
  def last_tax_liability_processed_at(); end
86
120
  def last_tax_liability_processed_at=(str_); end
87
- def periods(); end
88
- def periods=(str_); end
89
121
  def currency(); end
90
122
  def currency=(str_); end
91
123
  def registration(); end
@@ -96,34 +128,14 @@ class KintsugiSDK::Models::Shared::NexusResponse
96
128
  def disregarded_at=(str_); end
97
129
  def disregarded_by(); end
98
130
  def disregarded_by=(str_); end
99
- def disregarded_nexus_types(); end
100
- def disregarded_nexus_types=(str_); end
101
- def transaction_count(); end
102
- def transaction_count=(str_); end
103
- def transactions_amount(); end
104
- def transactions_amount=(str_); end
105
- def previous_transaction_count(); end
106
- def previous_transaction_count=(str_); end
107
- def previous_transactions_amount(); end
108
- def previous_transactions_amount=(str_); end
109
- def calculated_tax_liability(); end
110
- def calculated_tax_liability=(str_); end
111
- def imported_tax_liability(); end
112
- def imported_tax_liability=(str_); end
113
- def tax_liability(); end
114
- def tax_liability=(str_); end
115
- def nexus_met(); end
116
- def nexus_met=(str_); end
117
- def economic_nexus_met(); end
118
- def economic_nexus_met=(str_); end
119
- def physical_nexus_met(); end
120
- def physical_nexus_met=(str_); end
121
- def collected_tax_nexus_met(); end
122
- def collected_tax_nexus_met=(str_); end
123
- def earliest_collected_date(); end
124
- def earliest_collected_date=(str_); end
125
- def vda_eligible(); end
126
- def vda_eligible=(str_); end
131
+ def disregarded_type(); end
132
+ def disregarded_type=(str_); end
127
133
  def is_currently_disregarded(); end
128
134
  def is_currently_disregarded=(str_); end
129
- end
135
+ def ior_opt_out_eligible(); end
136
+ def ior_opt_out_eligible=(str_); end
137
+ def ior_eligible_at_registration(); end
138
+ def ior_eligible_at_registration=(str_); end
139
+ def requires_ior_number_to_register(); end
140
+ def requires_ior_number_to_register=(str_); end
141
+ end
@@ -8,4 +8,4 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::NexusStateEnum
11
- end
11
+ end
@@ -8,4 +8,4 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::NexusStatusEnum
11
- end
11
+ end
@@ -12,6 +12,7 @@ module KintsugiSDK
12
12
  enums do
13
13
  CANADA_FEDERAL = new('CANADA_FEDERAL')
14
14
  EU_AGGREGATOR = new('EU_AGGREGATOR')
15
+ EU_IOSS = new('EU_IOSS')
15
16
  STATE = new('STATE')
16
17
  EU_MEMBER_STATE = new('EU_MEMBER_STATE')
17
18
  end
@@ -8,4 +8,4 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::NexusTypeEnum
11
- end
11
+ end
@@ -18,4 +18,4 @@ class KintsugiSDK::Models::Shared::PageCustomerRead
18
18
  def size=(str_); end
19
19
  def pages(); end
20
20
  def pages=(str_); end
21
- end
21
+ end
@@ -18,4 +18,4 @@ class KintsugiSDK::Models::Shared::PageNexusResponse
18
18
  def size=(str_); end
19
19
  def pages(); end
20
20
  def pages=(str_); end
21
- end
21
+ end
@@ -18,4 +18,4 @@ class KintsugiSDK::Models::Shared::PageTransactionRead
18
18
  def size=(str_); end
19
19
  def pages(); end
20
20
  def pages=(str_); end
21
- end
21
+ end
@@ -11,9 +11,11 @@ module KintsugiSDK
11
11
  class PeriodModelEnum < T::Enum
12
12
  enums do
13
13
  CURRENT_OR_PREVIOUS = new('CURRENT_OR_PREVIOUS')
14
+ CURRENT_OR_TWO_PREVIOUS = new('CURRENT_OR_TWO_PREVIOUS')
14
15
  PRECEDING_YEAR_FROM_OCTOBER = new('PRECEDING_YEAR_FROM_OCTOBER')
15
16
  CALENDAR_YEAR = new('CALENDAR_YEAR')
16
17
  PREVIOUS_12_MONTHS = new('PREVIOUS_12_MONTHS')
18
+ CURRENT_OR_PREVIOUS_12_MONTHS = new('CURRENT_OR_PREVIOUS_12_MONTHS')
17
19
  PREVIOUS_4_QUARTERS = new('PREVIOUS_4_QUARTERS')
18
20
  PREVIOUS_4_QUARTERS_OFFSET = new('PREVIOUS_4_QUARTERS_OFFSET')
19
21
  PRECEDING_YEAR = new('PRECEDING_YEAR')
@@ -8,4 +8,4 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::PeriodModelEnum
11
- end
11
+ end
@@ -25,6 +25,7 @@ module KintsugiSDK
25
25
  ARCHIVED = new('ARCHIVED')
26
26
  NEEDS_REFETCH = new('NEEDS_REFETCH')
27
27
  EXCLUDED_IN_CALCULATION = new('EXCLUDED_IN_CALCULATION')
28
+ DEFERRED_FROM_FILING = new('DEFERRED_FROM_FILING')
28
29
  end
29
30
  end
30
31
  end
@@ -8,4 +8,4 @@ end
8
8
 
9
9
 
10
10
  class KintsugiSDK::Models::Shared::ProcessingStatusEnum
11
- end
11
+ end