kintsugi_sdk 5.6.1 → 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.
- checksums.yaml +4 -4
- data/lib/kintsugi_sdk/addressvalidation.rb +8 -6
- data/lib/kintsugi_sdk/customers.rb +90 -88
- data/lib/kintsugi_sdk/exemptions.rb +60 -60
- data/lib/kintsugi_sdk/models/errors/{backend_src_products_responses_validationerrorresponse.rb → backend_src_products_schemas_responses_validationerrorresponse.rb} +3 -3
- data/lib/kintsugi_sdk/models/errors/backend_src_products_schemas_responses_validationerrorresponse.rbi +13 -0
- data/lib/kintsugi_sdk/models/errors.rb +1 -1
- data/lib/kintsugi_sdk/models/ops/{search_v1_address_validation_search_post_security.rb → country.rb} +3 -8
- data/lib/kintsugi_sdk/models/{shared/registration.rbi → ops/country.rbi} +2 -2
- data/lib/kintsugi_sdk/models/ops/country_code.rb +27 -0
- data/lib/kintsugi_sdk/models/ops/country_code.rbi +11 -0
- data/lib/kintsugi_sdk/models/ops/create_customer_v1_customers_post_request.rb +36 -0
- data/lib/kintsugi_sdk/models/ops/create_customer_v1_customers_post_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/create_exemption_v1_exemptions_post_request.rb +36 -0
- data/lib/kintsugi_sdk/models/ops/create_exemption_v1_exemptions_post_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/create_transaction_v1_transactions_post_request.rb +36 -0
- data/lib/kintsugi_sdk/models/ops/create_transaction_v1_transactions_post_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rb +13 -5
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rbi +4 -0
- data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rb +17 -9
- data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rbi +6 -2
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rb +29 -13
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rbi +14 -6
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_response_get_nexus_for_org_v1_nexus_get.rb +27 -0
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_response_get_nexus_for_org_v1_nexus_get.rbi +11 -0
- data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rb +44 -18
- data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rbi +14 -4
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rb +14 -2
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rbi +6 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_response_get_transactions_by_customer_id_v1_cus_6a2c85.rb +27 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_response_get_transactions_by_customer_id_v1_cus_6a2c85.rbi +11 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/queryparam_country.rb +27 -0
- data/lib/kintsugi_sdk/models/ops/queryparam_country.rbi +11 -0
- data/lib/kintsugi_sdk/models/ops/suggestions_v1_address_validation_suggestions_post_request.rb +36 -0
- data/lib/kintsugi_sdk/models/ops/suggestions_v1_address_validation_suggestions_post_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_product.rb +27 -0
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_product.rbi +11 -0
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rb +9 -5
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rbi +4 -2
- data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops.rb +10 -1
- data/lib/kintsugi_sdk/models/shared/addressbase.rb +1 -1
- data/lib/kintsugi_sdk/models/shared/addresses.rb +7 -3
- data/lib/kintsugi_sdk/models/shared/addresses.rbi +2 -0
- data/lib/kintsugi_sdk/models/shared/amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rb → backend_src_exemptions_schemas_exemption_exemptionread.rb} +11 -10
- data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rbi → backend_src_exemptions_schemas_exemption_exemptionread.rbi} +4 -4
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb +9 -9
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rb → backend_src_products_schemas_responses_validationerroritem.rb} +1 -1
- data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rbi → backend_src_products_schemas_responses_validationerroritem.rbi} +2 -2
- data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/{registration.rb → context.rb} +1 -1
- data/lib/kintsugi_sdk/models/shared/context.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/conversion_rate.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/conversion_rate.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_subtotal.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_subtotal.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_discount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_discount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/customer.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/customer.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/customerbase.rb +16 -12
- data/lib/kintsugi_sdk/models/shared/customerbase.rbi +6 -4
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rb +16 -12
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rbi +6 -4
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rb +16 -12
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rbi +6 -4
- data/lib/kintsugi_sdk/models/shared/customercreate.rb +20 -16
- data/lib/kintsugi_sdk/models/shared/customercreate.rbi +8 -6
- data/lib/kintsugi_sdk/models/shared/customerread.rb +24 -16
- data/lib/kintsugi_sdk/models/shared/customerread.rbi +10 -6
- data/lib/kintsugi_sdk/models/shared/customerupdate.rb +13 -9
- data/lib/kintsugi_sdk/models/shared/customerupdate.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/discount_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/discount_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/discountbuilder.rb +6 -6
- data/lib/kintsugi_sdk/models/shared/discountbuilder.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/disregardedtypeenum.rb +20 -0
- data/lib/kintsugi_sdk/models/shared/disregardedtypeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/documenttypeenum.rb +21 -0
- data/lib/kintsugi_sdk/models/shared/documenttypeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/exemption.rb +23 -14
- data/lib/kintsugi_sdk/models/shared/exemption.rbi +8 -4
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rb +3 -3
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rb +22 -2
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rbi +10 -0
- data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rb +42 -0
- data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/exemptiontype.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/loc.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/loc.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rb +112 -82
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rbi +52 -40
- data/lib/kintsugi_sdk/models/shared/nexustypeenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/periodmodelenum.rb +2 -0
- data/lib/kintsugi_sdk/models/shared/processingstatusenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/productread.rb +40 -12
- data/lib/kintsugi_sdk/models/shared/productread.rbi +18 -4
- data/lib/kintsugi_sdk/models/shared/productstatusenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/productupdate.rb +6 -6
- data/lib/kintsugi_sdk/models/shared/productupdate.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/productupdatev2.rb +64 -0
- data/lib/kintsugi_sdk/models/shared/productupdatev2.rbi +29 -0
- data/lib/kintsugi_sdk/models/shared/quantity.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/quantity.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/quantity_of_the_product_.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/quantity_of_the_product_.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/rate.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/rate.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/security.rb +3 -7
- data/lib/kintsugi_sdk/models/shared/security.rbi +0 -2
- data/lib/kintsugi_sdk/models/shared/sourceenum.rb +15 -0
- data/lib/kintsugi_sdk/models/shared/tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/tax_rate_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/tax_rate_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/tax_rate_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/tax_rate_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rb +14 -14
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rbi +4 -4
- data/lib/kintsugi_sdk/models/shared/taxitembuilder_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/taxitembuilder_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxitemestimate.rb +10 -10
- data/lib/kintsugi_sdk/models/shared/taxitemestimate.rbi +4 -4
- data/lib/kintsugi_sdk/models/shared/taxitemread.rb +10 -10
- data/lib/kintsugi_sdk/models/shared/taxitemread.rbi +4 -4
- data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/taxtypeenum.rb +26 -0
- data/lib/kintsugi_sdk/models/shared/taxtypeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/total_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/total_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_liability_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_liability_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rb +11 -7
- data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rb +8 -4
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rbi +2 -0
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rb +11 -7
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rb +84 -78
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +34 -28
- data/lib/kintsugi_sdk/models/shared/transactiondirectionenum.rb +19 -0
- data/lib/kintsugi_sdk/models/shared/transactiondirectionenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb +9 -7
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rb +10 -8
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb +7 -3
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rbi +2 -0
- data/lib/kintsugi_sdk/models/shared/transactionimportcustomer.rb +104 -0
- data/lib/kintsugi_sdk/models/shared/transactionimportcustomer.rbi +49 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rb +53 -53
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rbi +20 -20
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_quantity.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_quantity.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rb +53 -53
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rbi +20 -20
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rb +17 -7
- data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb +20 -10
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rbi +6 -4
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rb +51 -43
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rbi +22 -18
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb +64 -62
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +28 -24
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionread.rb +89 -71
- data/lib/kintsugi_sdk/models/shared/transactionread.rbi +40 -28
- data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rb +63 -61
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +28 -24
- data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/validationaddress.rb +12 -12
- data/lib/kintsugi_sdk/models/shared/validationaddress.rbi +4 -4
- data/lib/kintsugi_sdk/models/shared/validationerror.rb +11 -3
- data/lib/kintsugi_sdk/models/shared/validationerror.rbi +4 -0
- data/lib/kintsugi_sdk/models/shared.rb +73 -5
- data/lib/kintsugi_sdk/nexus.rb +4 -4
- data/lib/kintsugi_sdk/openapisdk.rb +5 -5
- data/lib/kintsugi_sdk/products.rb +11 -9
- data/lib/kintsugi_sdk/sdkconfiguration.rb +8 -8
- data/lib/kintsugi_sdk/taxestimation.rb +6 -6
- data/lib/kintsugi_sdk/transactions.rb +73 -73
- data/lib/kintsugi_sdk/utils/retries.rb +41 -2
- data/lib/kintsugi_sdk/utils/utils.rb +6 -2
- data/lib/kintsugi_sdk.rb +1 -1
- metadata +170 -16
- data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rbi +0 -13
- data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rbi +0 -13
- data/lib/kintsugi_sdk/models/shared/file.rb +0 -36
- data/lib/kintsugi_sdk/models/shared/file.rbi +0 -15
- data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rb +0 -48
- data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rbi +0 -21
|
@@ -14,16 +14,20 @@ module KintsugiSDK
|
|
|
14
14
|
|
|
15
15
|
# Unique identifier of the customer
|
|
16
16
|
field :customer_id, ::String, { 'path_param': { 'field_name': 'customer_id', 'style': 'simple', 'explode': false } }
|
|
17
|
+
# The unique identifier for the organization making the request
|
|
18
|
+
field :x_organization_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-organization-id', 'style': 'simple', 'explode': false } }
|
|
17
19
|
|
|
18
|
-
sig { params(customer_id: ::String).void }
|
|
19
|
-
def initialize(customer_id:)
|
|
20
|
+
sig { params(customer_id: ::String, x_organization_id: T.nilable(::String)).void }
|
|
21
|
+
def initialize(customer_id:, x_organization_id: nil)
|
|
20
22
|
@customer_id = customer_id
|
|
23
|
+
@x_organization_id = x_organization_id
|
|
21
24
|
end
|
|
22
25
|
|
|
23
26
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
27
|
def ==(other)
|
|
25
28
|
return false unless other.is_a? self.class
|
|
26
29
|
return false unless @customer_id == other.customer_id
|
|
30
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
27
31
|
true
|
|
28
32
|
end
|
|
29
33
|
end
|
|
@@ -12,27 +12,33 @@ module KintsugiSDK
|
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
|
+
# The unique identifier for the organization making the request
|
|
16
|
+
field :x_organization_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-organization-id', 'style': 'simple', 'explode': false } }
|
|
15
17
|
# Search term to filter customers by name or other details
|
|
16
18
|
field :search_query, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'search_query', 'style': 'form', 'explode': true } }
|
|
17
19
|
# Country code in ISO 3166-1 alpha-2 format (e.g., 'US')
|
|
18
|
-
field :country, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::CountryCodeEnum)), { 'query_param': { 'field_name': 'country', 'style': 'form', 'explode': true } }
|
|
20
|
+
field :country, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Shared::CountryCodeEnum, ::String))), { 'query_param': { 'field_name': 'country', 'style': 'form', 'explode': true } }
|
|
19
21
|
# State or province code to filter customers
|
|
20
22
|
field :state, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'state', 'style': 'form', 'explode': true } }
|
|
21
23
|
# Filter customers by source (comma-separated)
|
|
22
24
|
field :source_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'source__in', 'style': 'form', 'explode': true } }
|
|
25
|
+
# Filter customers by connection ID (comma-separated)
|
|
26
|
+
field :connection_id_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'connection_id__in', 'style': 'form', 'explode': true } }
|
|
23
27
|
# Comma-separated list of fields to sort results by.
|
|
24
28
|
field :order_by, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'order_by', 'style': 'form', 'explode': true } }
|
|
25
|
-
|
|
29
|
+
|
|
26
30
|
field :page, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
27
|
-
|
|
31
|
+
|
|
28
32
|
field :size, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'size', 'style': 'form', 'explode': true } }
|
|
29
33
|
|
|
30
|
-
sig { params(search_query: T.nilable(::String), country: T.nilable(T::Array[Models::Shared::CountryCodeEnum]), state: T.nilable(::String), source_in: T.nilable(::String), order_by: T.nilable(::String), page: T.nilable(::Integer), size: T.nilable(::Integer)).void }
|
|
31
|
-
def initialize(search_query: nil, country: nil, state: nil, source_in: nil, order_by: nil, page: 1, size: 50)
|
|
34
|
+
sig { params(x_organization_id: T.nilable(::String), search_query: T.nilable(::String), country: T.nilable(T::Array[T.any(Models::Shared::CountryCodeEnum, ::String)]), state: T.nilable(::String), source_in: T.nilable(::String), connection_id_in: T.nilable(::String), order_by: T.nilable(::String), page: T.nilable(::Integer), size: T.nilable(::Integer)).void }
|
|
35
|
+
def initialize(x_organization_id: nil, search_query: nil, country: nil, state: nil, source_in: nil, connection_id_in: nil, order_by: nil, page: 1, size: 50)
|
|
36
|
+
@x_organization_id = x_organization_id
|
|
32
37
|
@search_query = search_query
|
|
33
38
|
@country = country
|
|
34
39
|
@state = state
|
|
35
40
|
@source_in = source_in
|
|
41
|
+
@connection_id_in = connection_id_in
|
|
36
42
|
@order_by = order_by
|
|
37
43
|
@page = page
|
|
38
44
|
@size = size
|
|
@@ -41,10 +47,12 @@ module KintsugiSDK
|
|
|
41
47
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
42
48
|
def ==(other)
|
|
43
49
|
return false unless other.is_a? self.class
|
|
50
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
44
51
|
return false unless @search_query == other.search_query
|
|
45
52
|
return false unless @country == other.country
|
|
46
53
|
return false unless @state == other.state
|
|
47
54
|
return false unless @source_in == other.source_in
|
|
55
|
+
return false unless @connection_id_in == other.connection_id_in
|
|
48
56
|
return false unless @order_by == other.order_by
|
|
49
57
|
return false unless @page == other.page
|
|
50
58
|
return false unless @size == other.size
|
|
@@ -8,6 +8,8 @@ end
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class KintsugiSDK::Models::Ops::GetCustomersV1Request
|
|
11
|
+
def x_organization_id(); end
|
|
12
|
+
def x_organization_id=(str_); end
|
|
11
13
|
def search_query(); end
|
|
12
14
|
def search_query=(str_); end
|
|
13
15
|
def country(); end
|
|
@@ -16,6 +18,8 @@ class KintsugiSDK::Models::Ops::GetCustomersV1Request
|
|
|
16
18
|
def state=(str_); end
|
|
17
19
|
def source_in(); end
|
|
18
20
|
def source_in=(str_); end
|
|
21
|
+
def connection_id_in(); end
|
|
22
|
+
def connection_id_in=(str_); end
|
|
19
23
|
def order_by(); end
|
|
20
24
|
def order_by=(str_); end
|
|
21
25
|
def page(); end
|
data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rb
CHANGED
|
@@ -14,16 +14,20 @@ module KintsugiSDK
|
|
|
14
14
|
|
|
15
15
|
# The unique identifier for the exemption being retrieved.
|
|
16
16
|
field :exemption_id, ::String, { 'path_param': { 'field_name': 'exemption_id', 'style': 'simple', 'explode': false } }
|
|
17
|
+
# The unique identifier for the organization making the request
|
|
18
|
+
field :x_organization_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-organization-id', 'style': 'simple', 'explode': false } }
|
|
17
19
|
|
|
18
|
-
sig { params(exemption_id: ::String).void }
|
|
19
|
-
def initialize(exemption_id:)
|
|
20
|
+
sig { params(exemption_id: ::String, x_organization_id: T.nilable(::String)).void }
|
|
21
|
+
def initialize(exemption_id:, x_organization_id: nil)
|
|
20
22
|
@exemption_id = exemption_id
|
|
23
|
+
@x_organization_id = x_organization_id
|
|
21
24
|
end
|
|
22
25
|
|
|
23
26
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
27
|
def ==(other)
|
|
25
28
|
return false unless other.is_a? self.class
|
|
26
29
|
return false unless @exemption_id == other.exemption_id
|
|
30
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
27
31
|
true
|
|
28
32
|
end
|
|
29
33
|
end
|
|
@@ -12,22 +12,26 @@ module KintsugiSDK
|
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
|
+
# The unique identifier for the organization making the request
|
|
16
|
+
field :x_organization_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-organization-id', 'style': 'simple', 'explode': false } }
|
|
15
17
|
# Search term to filter exemptions by exemption ID, customer name, or customer email
|
|
16
18
|
field :search_query, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'search_query', 'style': 'form', 'explode': true } }
|
|
19
|
+
# Filter exemptions by their status
|
|
20
|
+
field :status_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'status__in', 'style': 'form', 'explode': true } }
|
|
17
21
|
# Country code in ISO 3166-1 alpha-2 format
|
|
18
|
-
field :country_code, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::CountryCodeEnum)), { 'query_param': { 'field_name': 'country_code', 'style': 'form', 'explode': true } }
|
|
22
|
+
field :country_code, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Shared::CountryCodeEnum, ::String))), { 'query_param': { 'field_name': 'country_code', 'style': 'form', 'explode': true } }
|
|
19
23
|
# Jurisdiction identifier
|
|
20
24
|
field :jurisdiction, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'jurisdiction', 'style': 'form', 'explode': true } }
|
|
21
25
|
# Start date for filtering exemptions
|
|
22
|
-
field :start_date, Crystalline::Nilable.new(::
|
|
26
|
+
field :start_date, Crystalline::Nilable.new(::Date), { 'query_param': { 'field_name': 'start_date', 'style': 'form', 'explode': true } }
|
|
23
27
|
# End date for filtering exemptions
|
|
24
|
-
field :end_date, Crystalline::Nilable.new(::
|
|
28
|
+
field :end_date, Crystalline::Nilable.new(::Date), { 'query_param': { 'field_name': 'end_date', 'style': 'form', 'explode': true } }
|
|
25
29
|
# Customer ID to filter exemptions
|
|
26
30
|
field :customer_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'customer_id', 'style': 'form', 'explode': true } }
|
|
27
31
|
# Transaction ID to filter exemptions
|
|
28
32
|
field :transaction_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'transaction_id', 'style': 'form', 'explode': true } }
|
|
29
|
-
# Filter exemptions by
|
|
30
|
-
field :
|
|
33
|
+
# Filter exemptions by customer connection ID (comma-separated)
|
|
34
|
+
field :connection_id_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'connection_id__in', 'style': 'form', 'explode': true } }
|
|
31
35
|
# Fields to sort by (comma-separated)
|
|
32
36
|
field :order_by, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'order_by', 'style': 'form', 'explode': true } }
|
|
33
37
|
# Page number
|
|
@@ -35,16 +39,18 @@ module KintsugiSDK
|
|
|
35
39
|
# Page size
|
|
36
40
|
field :size, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'size', 'style': 'form', 'explode': true } }
|
|
37
41
|
|
|
38
|
-
sig { params(search_query: T.nilable(::String), country_code: T.nilable(T::Array[Models::Shared::CountryCodeEnum]), jurisdiction: T.nilable(::String), start_date: T.nilable(::
|
|
39
|
-
def initialize(search_query: nil, country_code: nil, jurisdiction: nil, start_date: nil, end_date: nil, customer_id: nil, transaction_id: nil,
|
|
42
|
+
sig { params(x_organization_id: T.nilable(::String), search_query: T.nilable(::String), status_in: T.nilable(::String), country_code: T.nilable(T::Array[T.any(Models::Shared::CountryCodeEnum, ::String)]), jurisdiction: T.nilable(::String), start_date: T.nilable(::Date), end_date: T.nilable(::Date), customer_id: T.nilable(::String), transaction_id: T.nilable(::String), connection_id_in: T.nilable(::String), order_by: T.nilable(::String), page: T.nilable(::Integer), size: T.nilable(::Integer)).void }
|
|
43
|
+
def initialize(x_organization_id: nil, search_query: nil, status_in: nil, country_code: nil, jurisdiction: nil, start_date: nil, end_date: nil, customer_id: nil, transaction_id: nil, connection_id_in: nil, order_by: nil, page: 1, size: 50)
|
|
44
|
+
@x_organization_id = x_organization_id
|
|
40
45
|
@search_query = search_query
|
|
46
|
+
@status_in = status_in
|
|
41
47
|
@country_code = country_code
|
|
42
48
|
@jurisdiction = jurisdiction
|
|
43
49
|
@start_date = start_date
|
|
44
50
|
@end_date = end_date
|
|
45
51
|
@customer_id = customer_id
|
|
46
52
|
@transaction_id = transaction_id
|
|
47
|
-
@
|
|
53
|
+
@connection_id_in = connection_id_in
|
|
48
54
|
@order_by = order_by
|
|
49
55
|
@page = page
|
|
50
56
|
@size = size
|
|
@@ -53,14 +59,16 @@ module KintsugiSDK
|
|
|
53
59
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
54
60
|
def ==(other)
|
|
55
61
|
return false unless other.is_a? self.class
|
|
62
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
56
63
|
return false unless @search_query == other.search_query
|
|
64
|
+
return false unless @status_in == other.status_in
|
|
57
65
|
return false unless @country_code == other.country_code
|
|
58
66
|
return false unless @jurisdiction == other.jurisdiction
|
|
59
67
|
return false unless @start_date == other.start_date
|
|
60
68
|
return false unless @end_date == other.end_date
|
|
61
69
|
return false unless @customer_id == other.customer_id
|
|
62
70
|
return false unless @transaction_id == other.transaction_id
|
|
63
|
-
return false unless @
|
|
71
|
+
return false unless @connection_id_in == other.connection_id_in
|
|
64
72
|
return false unless @order_by == other.order_by
|
|
65
73
|
return false unless @page == other.page
|
|
66
74
|
return false unless @size == other.size
|
|
@@ -8,8 +8,12 @@ end
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class KintsugiSDK::Models::Ops::GetExemptionsV1ExemptionsGetRequest
|
|
11
|
+
def x_organization_id(); end
|
|
12
|
+
def x_organization_id=(str_); end
|
|
11
13
|
def search_query(); end
|
|
12
14
|
def search_query=(str_); end
|
|
15
|
+
def status_in(); end
|
|
16
|
+
def status_in=(str_); end
|
|
13
17
|
def country_code(); end
|
|
14
18
|
def country_code=(str_); end
|
|
15
19
|
def jurisdiction(); end
|
|
@@ -22,8 +26,8 @@ class KintsugiSDK::Models::Ops::GetExemptionsV1ExemptionsGetRequest
|
|
|
22
26
|
def customer_id=(str_); end
|
|
23
27
|
def transaction_id(); end
|
|
24
28
|
def transaction_id=(str_); end
|
|
25
|
-
def
|
|
26
|
-
def
|
|
29
|
+
def connection_id_in(); end
|
|
30
|
+
def connection_id_in=(str_); end
|
|
27
31
|
def order_by(); end
|
|
28
32
|
def order_by=(str_); end
|
|
29
33
|
def page(); end
|
|
@@ -12,34 +12,46 @@ module KintsugiSDK
|
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
|
+
# The unique identifier for the organization making the request
|
|
16
|
+
field :x_organization_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-organization-id', 'style': 'simple', 'explode': false } }
|
|
17
|
+
# Return all results without pagination
|
|
18
|
+
field :without_pagination, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'without_pagination', 'style': 'form', 'explode': true } }
|
|
15
19
|
# Filter nexuses by disregard view: 'exposed' or 'disregarded'
|
|
16
20
|
field :disregard_view, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'disregard_view', 'style': 'form', 'explode': true } }
|
|
21
|
+
# Search nexuses by state code or state name
|
|
22
|
+
field :search_query, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'search_query', 'style': 'form', 'explode': true } }
|
|
23
|
+
|
|
24
|
+
field :status_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'status__in', 'style': 'form', 'explode': true } }
|
|
17
25
|
|
|
18
26
|
field :state_code, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'state_code', 'style': 'form', 'explode': true } }
|
|
19
27
|
|
|
20
|
-
field :
|
|
28
|
+
field :state_code_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'state_code__in', 'style': 'form', 'explode': true } }
|
|
21
29
|
|
|
22
|
-
field :
|
|
23
|
-
# Return all results without pagination
|
|
24
|
-
field :without_pagination, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'without_pagination', 'style': 'form', 'explode': true } }
|
|
30
|
+
field :country_code_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'country_code__in', 'style': 'form', 'explode': true } }
|
|
25
31
|
|
|
26
|
-
field :
|
|
32
|
+
field :tax_type_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'tax_type__in', 'style': 'form', 'explode': true } }
|
|
27
33
|
|
|
28
34
|
field :order_by, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'order_by', 'style': 'form', 'explode': true } }
|
|
29
35
|
|
|
36
|
+
field :collected_tax_nexus_met, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'collected_tax_nexus_met', 'style': 'form', 'explode': true } }
|
|
37
|
+
|
|
30
38
|
field :page, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
31
39
|
|
|
32
40
|
field :size, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'size', 'style': 'form', 'explode': true } }
|
|
33
41
|
|
|
34
|
-
sig { params(disregard_view: T.nilable(::String),
|
|
35
|
-
def initialize(disregard_view: nil,
|
|
42
|
+
sig { params(x_organization_id: T.nilable(::String), without_pagination: T.nilable(T::Boolean), disregard_view: T.nilable(::String), search_query: T.nilable(::String), status_in: T.nilable(::String), state_code: T.nilable(::String), state_code_in: T.nilable(::String), country_code_in: T.nilable(::String), tax_type_in: T.nilable(::String), order_by: T.nilable(::String), collected_tax_nexus_met: T.nilable(T::Boolean), page: T.nilable(::Integer), size: T.nilable(::Integer)).void }
|
|
43
|
+
def initialize(x_organization_id: nil, without_pagination: false, disregard_view: nil, search_query: nil, status_in: nil, state_code: nil, state_code_in: nil, country_code_in: nil, tax_type_in: nil, order_by: nil, collected_tax_nexus_met: nil, page: 1, size: 50)
|
|
44
|
+
@x_organization_id = x_organization_id
|
|
45
|
+
@without_pagination = without_pagination
|
|
36
46
|
@disregard_view = disregard_view
|
|
47
|
+
@search_query = search_query
|
|
48
|
+
@status_in = status_in
|
|
37
49
|
@state_code = state_code
|
|
50
|
+
@state_code_in = state_code_in
|
|
38
51
|
@country_code_in = country_code_in
|
|
39
|
-
@
|
|
40
|
-
@without_pagination = without_pagination
|
|
41
|
-
@status_in = status_in
|
|
52
|
+
@tax_type_in = tax_type_in
|
|
42
53
|
@order_by = order_by
|
|
54
|
+
@collected_tax_nexus_met = collected_tax_nexus_met
|
|
43
55
|
@page = page
|
|
44
56
|
@size = size
|
|
45
57
|
end
|
|
@@ -47,13 +59,17 @@ module KintsugiSDK
|
|
|
47
59
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
48
60
|
def ==(other)
|
|
49
61
|
return false unless other.is_a? self.class
|
|
62
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
63
|
+
return false unless @without_pagination == other.without_pagination
|
|
50
64
|
return false unless @disregard_view == other.disregard_view
|
|
65
|
+
return false unless @search_query == other.search_query
|
|
66
|
+
return false unless @status_in == other.status_in
|
|
51
67
|
return false unless @state_code == other.state_code
|
|
68
|
+
return false unless @state_code_in == other.state_code_in
|
|
52
69
|
return false unless @country_code_in == other.country_code_in
|
|
53
|
-
return false unless @
|
|
54
|
-
return false unless @without_pagination == other.without_pagination
|
|
55
|
-
return false unless @status_in == other.status_in
|
|
70
|
+
return false unless @tax_type_in == other.tax_type_in
|
|
56
71
|
return false unless @order_by == other.order_by
|
|
72
|
+
return false unless @collected_tax_nexus_met == other.collected_tax_nexus_met
|
|
57
73
|
return false unless @page == other.page
|
|
58
74
|
return false unless @size == other.size
|
|
59
75
|
true
|
|
@@ -8,20 +8,28 @@ end
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class KintsugiSDK::Models::Ops::GetNexusForOrgV1NexusGetRequest
|
|
11
|
+
def x_organization_id(); end
|
|
12
|
+
def x_organization_id=(str_); end
|
|
13
|
+
def without_pagination(); end
|
|
14
|
+
def without_pagination=(str_); end
|
|
11
15
|
def disregard_view(); end
|
|
12
16
|
def disregard_view=(str_); end
|
|
17
|
+
def search_query(); end
|
|
18
|
+
def search_query=(str_); end
|
|
19
|
+
def status_in(); end
|
|
20
|
+
def status_in=(str_); end
|
|
13
21
|
def state_code(); end
|
|
14
22
|
def state_code=(str_); end
|
|
23
|
+
def state_code_in(); end
|
|
24
|
+
def state_code_in=(str_); end
|
|
15
25
|
def country_code_in(); end
|
|
16
26
|
def country_code_in=(str_); end
|
|
17
|
-
def
|
|
18
|
-
def
|
|
19
|
-
def without_pagination(); end
|
|
20
|
-
def without_pagination=(str_); end
|
|
21
|
-
def status_in(); end
|
|
22
|
-
def status_in=(str_); end
|
|
27
|
+
def tax_type_in(); end
|
|
28
|
+
def tax_type_in=(str_); end
|
|
23
29
|
def order_by(); end
|
|
24
30
|
def order_by=(str_); end
|
|
31
|
+
def collected_tax_nexus_met(); end
|
|
32
|
+
def collected_tax_nexus_met=(str_); end
|
|
25
33
|
def page(); end
|
|
26
34
|
def page=(str_); end
|
|
27
35
|
def size(); end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module KintsugiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Ops
|
|
10
|
+
# Successful Response
|
|
11
|
+
class GetNexusForOrgV1NexusGetResponseGetNexusForOrgV1NexusGet
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def initialize; end
|
|
18
|
+
|
|
19
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
20
|
+
def ==(other)
|
|
21
|
+
return false unless other.is_a? self.class
|
|
22
|
+
true
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class KintsugiSDK::Models::Ops::GetNexusForOrgV1NexusGetResponseGetNexusForOrgV1NexusGet
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class KintsugiSDK::Models::Ops::GetNexusForOrgV1NexusGetResponseGetNexusForOrgV1NexusGet
|
|
11
|
+
end
|
|
@@ -14,16 +14,20 @@ module KintsugiSDK
|
|
|
14
14
|
|
|
15
15
|
# The unique identifier for the product you want to retrieve.
|
|
16
16
|
field :product_id, ::String, { 'path_param': { 'field_name': 'product_id', 'style': 'simple', 'explode': false } }
|
|
17
|
+
# The unique identifier for the organization making the request
|
|
18
|
+
field :x_organization_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-organization-id', 'style': 'simple', 'explode': false } }
|
|
17
19
|
|
|
18
|
-
sig { params(product_id: ::String).void }
|
|
19
|
-
def initialize(product_id:)
|
|
20
|
+
sig { params(product_id: ::String, x_organization_id: T.nilable(::String)).void }
|
|
21
|
+
def initialize(product_id:, x_organization_id: nil)
|
|
20
22
|
@product_id = product_id
|
|
23
|
+
@x_organization_id = x_organization_id
|
|
21
24
|
end
|
|
22
25
|
|
|
23
26
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
27
|
def ==(other)
|
|
25
28
|
return false unless other.is_a? self.class
|
|
26
29
|
return false unless @product_id == other.product_id
|
|
30
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
27
31
|
true
|
|
28
32
|
end
|
|
29
33
|
end
|
data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rb
CHANGED
|
@@ -14,16 +14,20 @@ module KintsugiSDK
|
|
|
14
14
|
|
|
15
15
|
# The unique identifier of the transaction to retrieve.
|
|
16
16
|
field :transaction_id, ::String, { 'path_param': { 'field_name': 'transaction_id', 'style': 'simple', 'explode': false } }
|
|
17
|
+
# The unique identifier for the organization making the request
|
|
18
|
+
field :x_organization_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-organization-id', 'style': 'simple', 'explode': false } }
|
|
17
19
|
|
|
18
|
-
sig { params(transaction_id: ::String).void }
|
|
19
|
-
def initialize(transaction_id:)
|
|
20
|
+
sig { params(transaction_id: ::String, x_organization_id: T.nilable(::String)).void }
|
|
21
|
+
def initialize(transaction_id:, x_organization_id: nil)
|
|
20
22
|
@transaction_id = transaction_id
|
|
23
|
+
@x_organization_id = x_organization_id
|
|
21
24
|
end
|
|
22
25
|
|
|
23
26
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
27
|
def ==(other)
|
|
25
28
|
return false unless other.is_a? self.class
|
|
26
29
|
return false unless @transaction_id == other.transaction_id
|
|
30
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
27
31
|
true
|
|
28
32
|
end
|
|
29
33
|
end
|
|
@@ -12,6 +12,8 @@ module KintsugiSDK
|
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
|
+
# The unique identifier for the organization making the request
|
|
16
|
+
field :x_organization_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-organization-id', 'style': 'simple', 'explode': false } }
|
|
15
17
|
# Filter transactions by state code.
|
|
16
18
|
field :state_code, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'state_code', 'style': 'form', 'explode': true } }
|
|
17
19
|
# Filter by transaction type (e.g., SALE, FULL_CREDIT_NOTE,
|
|
@@ -24,19 +26,29 @@ module KintsugiSDK
|
|
|
24
26
|
field :search_query, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'search_query', 'style': 'form', 'explode': true } }
|
|
25
27
|
# Filter transactions by country code
|
|
26
28
|
# (ISO 3166-1 alpha-2 format, e.g., US).
|
|
27
|
-
field :country, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::CountryCodeEnum)), { 'query_param': { 'field_name': 'country', 'style': 'form', 'explode': true } }
|
|
29
|
+
field :country, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Union.new(Models::Shared::CountryCodeEnum, ::String))), { 'query_param': { 'field_name': 'country', 'style': 'form', 'explode': true } }
|
|
28
30
|
# Filter by full state name (e.g., California).
|
|
29
31
|
field :state, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'state', 'style': 'form', 'explode': true } }
|
|
32
|
+
# Filter by address status (e.g., UNVERIFIED, INVALID,
|
|
33
|
+
# PARTIALLY_VERIFIED, VERIFIED, UNVERIFIABLE).
|
|
34
|
+
field :address_status_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'address_status__in', 'style': 'form', 'explode': true } }
|
|
30
35
|
# Filter by transaction status (e.g., PENDING, COMMITTED,
|
|
31
|
-
# CANCELLED,
|
|
36
|
+
# CANCELLED, ARCHIVED). For refund filtering use the refund_status parameter.
|
|
32
37
|
field :status, Crystalline::Nilable.new(Models::Shared::TransactionStatusEnum), { 'query_param': { 'field_name': 'status', 'style': 'form', 'explode': true } }
|
|
38
|
+
# Filter by refund status (e.g., FULLY_REFUNDED,
|
|
39
|
+
# PARTIALLY_REFUNDED).
|
|
40
|
+
field :refund_status, Crystalline::Nilable.new(Models::Shared::TransactionRefundStatus), { 'query_param': { 'field_name': 'refund_status', 'style': 'form', 'explode': true } }
|
|
33
41
|
# Retrieve transactions linked to a specific filing ID.
|
|
34
42
|
field :filing_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'filing_id', 'style': 'form', 'explode': true } }
|
|
35
|
-
#
|
|
36
|
-
#
|
|
43
|
+
# Sort results based on specified fields.
|
|
44
|
+
# Prefix with - for descending order (e.g., -date for newest first).
|
|
45
|
+
field :order_by, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'order_by', 'style': 'form', 'explode': true } }
|
|
46
|
+
# Retrieve transactions with a date greater than or equal to the bound
|
|
47
|
+
# (YYYY-MM-DD or ISO datetime in UTC).
|
|
48
|
+
# Defaults to 12 months ago when neither date__gte nor date__lte is provided.
|
|
37
49
|
field :date_gte, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'date__gte', 'style': 'form', 'explode': true } }
|
|
38
|
-
# Retrieve transactions with a date
|
|
39
|
-
#
|
|
50
|
+
# Retrieve transactions with a date less than or equal to the bound
|
|
51
|
+
# (YYYY-MM-DD or ISO datetime in UTC).
|
|
40
52
|
field :date_lte, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'date__lte', 'style': 'form', 'explode': true } }
|
|
41
53
|
# Filter transactions based on processing status.
|
|
42
54
|
# Multiple values can be passed as a comma-separated list.
|
|
@@ -46,34 +58,43 @@ module KintsugiSDK
|
|
|
46
58
|
# Filter transactions by exemption status.
|
|
47
59
|
# Multiple values can be passed as a comma-separated list (e.g., EXEMPT,TAXABLE).
|
|
48
60
|
field :exempt_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'exempt__in', 'style': 'form', 'explode': true } }
|
|
49
|
-
# Filter by
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
#
|
|
54
|
-
|
|
61
|
+
# Filter transactions by connection ID (comma-separated)
|
|
62
|
+
field :connection_id_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'connection_id__in', 'style': 'form', 'explode': true } }
|
|
63
|
+
# Filter by transaction direction (SALE or PURCHASE). When unset, the list includes both directions.
|
|
64
|
+
field :direction, Crystalline::Nilable.new(Models::Shared::TransactionDirectionEnum), { 'query_param': { 'field_name': 'direction', 'style': 'form', 'explode': true } }
|
|
65
|
+
# Optional upper bound for the pagination COUNT query.
|
|
66
|
+
# When set, the returned `total` is capped at this value and `pages`
|
|
67
|
+
# is derived from the capped total, making large result sets faster
|
|
68
|
+
# to paginate at the cost of approximate totals. When unset, `total`
|
|
69
|
+
# and `pages` reflect the exact count (existing behavior).
|
|
70
|
+
field :count_limit, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'count_limit', 'style': 'form', 'explode': true } }
|
|
55
71
|
# Page number
|
|
56
72
|
field :page, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
57
73
|
# Page size
|
|
58
74
|
field :size, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'size', 'style': 'form', 'explode': true } }
|
|
59
75
|
|
|
60
|
-
sig { params(state_code: T.nilable(::String), transaction_type: T.nilable(::String), transaction_source: T.nilable(::String), search_query: T.nilable(::String), country: T.nilable(T::Array[Models::Shared::CountryCodeEnum]), state: T.nilable(::String), status: T.nilable(Models::Shared::TransactionStatusEnum), filing_id: T.nilable(::String), date_gte: T.nilable(::String), date_lte: T.nilable(::String), processing_status_in: T.nilable(::String), marketplace: T.nilable(T::Boolean), exempt_in: T.nilable(::String),
|
|
61
|
-
def initialize(state_code: nil, transaction_type: nil, transaction_source: nil, search_query: nil, country: nil, state: nil, status: nil, filing_id: nil, date_gte: nil, date_lte: nil, processing_status_in: nil, marketplace: nil, exempt_in: nil,
|
|
76
|
+
sig { params(x_organization_id: T.nilable(::String), state_code: T.nilable(::String), transaction_type: T.nilable(::String), transaction_source: T.nilable(::String), search_query: T.nilable(::String), country: T.nilable(T::Array[T.any(Models::Shared::CountryCodeEnum, ::String)]), state: T.nilable(::String), address_status_in: T.nilable(::String), status: T.nilable(Models::Shared::TransactionStatusEnum), refund_status: T.nilable(Models::Shared::TransactionRefundStatus), filing_id: T.nilable(::String), order_by: T.nilable(::String), date_gte: T.nilable(::String), date_lte: T.nilable(::String), processing_status_in: T.nilable(::String), marketplace: T.nilable(T::Boolean), exempt_in: T.nilable(::String), connection_id_in: T.nilable(::String), direction: T.nilable(Models::Shared::TransactionDirectionEnum), count_limit: T.nilable(::Integer), page: T.nilable(::Integer), size: T.nilable(::Integer)).void }
|
|
77
|
+
def initialize(x_organization_id: nil, state_code: nil, transaction_type: nil, transaction_source: nil, search_query: nil, country: nil, state: nil, address_status_in: nil, status: nil, refund_status: nil, filing_id: nil, order_by: nil, date_gte: nil, date_lte: nil, processing_status_in: nil, marketplace: nil, exempt_in: nil, connection_id_in: nil, direction: nil, count_limit: nil, page: 1, size: 50)
|
|
78
|
+
@x_organization_id = x_organization_id
|
|
62
79
|
@state_code = state_code
|
|
63
80
|
@transaction_type = transaction_type
|
|
64
81
|
@transaction_source = transaction_source
|
|
65
82
|
@search_query = search_query
|
|
66
83
|
@country = country
|
|
67
84
|
@state = state
|
|
85
|
+
@address_status_in = address_status_in
|
|
68
86
|
@status = status
|
|
87
|
+
@refund_status = refund_status
|
|
69
88
|
@filing_id = filing_id
|
|
89
|
+
@order_by = order_by
|
|
70
90
|
@date_gte = date_gte
|
|
71
91
|
@date_lte = date_lte
|
|
72
92
|
@processing_status_in = processing_status_in
|
|
73
93
|
@marketplace = marketplace
|
|
74
94
|
@exempt_in = exempt_in
|
|
75
|
-
@
|
|
76
|
-
@
|
|
95
|
+
@connection_id_in = connection_id_in
|
|
96
|
+
@direction = direction
|
|
97
|
+
@count_limit = count_limit
|
|
77
98
|
@page = page
|
|
78
99
|
@size = size
|
|
79
100
|
end
|
|
@@ -81,21 +102,26 @@ module KintsugiSDK
|
|
|
81
102
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
82
103
|
def ==(other)
|
|
83
104
|
return false unless other.is_a? self.class
|
|
105
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
84
106
|
return false unless @state_code == other.state_code
|
|
85
107
|
return false unless @transaction_type == other.transaction_type
|
|
86
108
|
return false unless @transaction_source == other.transaction_source
|
|
87
109
|
return false unless @search_query == other.search_query
|
|
88
110
|
return false unless @country == other.country
|
|
89
111
|
return false unless @state == other.state
|
|
112
|
+
return false unless @address_status_in == other.address_status_in
|
|
90
113
|
return false unless @status == other.status
|
|
114
|
+
return false unless @refund_status == other.refund_status
|
|
91
115
|
return false unless @filing_id == other.filing_id
|
|
116
|
+
return false unless @order_by == other.order_by
|
|
92
117
|
return false unless @date_gte == other.date_gte
|
|
93
118
|
return false unless @date_lte == other.date_lte
|
|
94
119
|
return false unless @processing_status_in == other.processing_status_in
|
|
95
120
|
return false unless @marketplace == other.marketplace
|
|
96
121
|
return false unless @exempt_in == other.exempt_in
|
|
97
|
-
return false unless @
|
|
98
|
-
return false unless @
|
|
122
|
+
return false unless @connection_id_in == other.connection_id_in
|
|
123
|
+
return false unless @direction == other.direction
|
|
124
|
+
return false unless @count_limit == other.count_limit
|
|
99
125
|
return false unless @page == other.page
|
|
100
126
|
return false unless @size == other.size
|
|
101
127
|
true
|