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
|
@@ -43,12 +43,12 @@ module KintsugiSDK
|
|
|
43
43
|
|
|
44
44
|
sig { params(request: Models::Ops::GetExemptionsV1ExemptionsGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::FastapiPaginationDefaultPageExemptionRead2) }
|
|
45
45
|
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
46
|
-
# list - Get
|
|
46
|
+
# list - Get exemptions
|
|
47
47
|
# Retrieve a list of exemptions based on filters.
|
|
48
48
|
url, params = @sdk_configuration.get_server_details
|
|
49
49
|
base_url = Utils.template_url(url, params)
|
|
50
50
|
url = "#{base_url}/v1/exemptions"
|
|
51
|
-
headers =
|
|
51
|
+
headers = Utils.get_headers(request)
|
|
52
52
|
headers = T.cast(headers, T::Hash[String, String])
|
|
53
53
|
query_params = Utils.get_query_params(Models::Ops::GetExemptionsV1ExemptionsGetRequest, request, nil)
|
|
54
54
|
headers['Accept'] = 'application/json'
|
|
@@ -186,18 +186,18 @@ module KintsugiSDK
|
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
sig { params(request: Models::
|
|
189
|
+
sig { params(request: Models::Ops::CreateExemptionV1ExemptionsPostRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::BackendSrcExemptionsSerializersExemptionRead) }
|
|
190
190
|
def create(request:, timeout_ms: nil, http_headers: nil)
|
|
191
|
-
# create - Create
|
|
191
|
+
# create - Create exemption
|
|
192
192
|
# The Create Exemption API allows you to create a new exemption record.
|
|
193
193
|
# This includes defining details such as exemption type, jurisdiction,
|
|
194
194
|
# Country, State, validity dates, etc.
|
|
195
195
|
url, params = @sdk_configuration.get_server_details
|
|
196
196
|
base_url = Utils.template_url(url, params)
|
|
197
197
|
url = "#{base_url}/v1/exemptions"
|
|
198
|
-
headers =
|
|
198
|
+
headers = Utils.get_headers(request)
|
|
199
199
|
headers = T.cast(headers, T::Hash[String, String])
|
|
200
|
-
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :
|
|
200
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :exemption_create, :json)
|
|
201
201
|
headers['content-type'] = req_content_type
|
|
202
202
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
203
203
|
|
|
@@ -343,9 +343,9 @@ module KintsugiSDK
|
|
|
343
343
|
end
|
|
344
344
|
|
|
345
345
|
|
|
346
|
-
sig { params(request: Models::Ops::GetExemptionByIdV1ExemptionsExemptionIdGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::
|
|
346
|
+
sig { params(request: Models::Ops::GetExemptionByIdV1ExemptionsExemptionIdGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::BackendSrcExemptionsSchemasExemptionExemptionRead) }
|
|
347
347
|
def get(request:, timeout_ms: nil, http_headers: nil)
|
|
348
|
-
# get - Get
|
|
348
|
+
# get - Get exemption by id
|
|
349
349
|
# The Get Exemption By ID API retrieves a specific exemption record by
|
|
350
350
|
# its unique ID. This API is useful for retrieving detailed information
|
|
351
351
|
# about a particular exemption, including its associated
|
|
@@ -358,7 +358,7 @@ module KintsugiSDK
|
|
|
358
358
|
'/v1/exemptions/{exemption_id}',
|
|
359
359
|
request
|
|
360
360
|
)
|
|
361
|
-
headers =
|
|
361
|
+
headers = Utils.get_headers(request)
|
|
362
362
|
headers = T.cast(headers, T::Hash[String, String])
|
|
363
363
|
headers['Accept'] = 'application/json'
|
|
364
364
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
@@ -435,7 +435,7 @@ module KintsugiSDK
|
|
|
435
435
|
response: http_response
|
|
436
436
|
)
|
|
437
437
|
response_data = http_response.env.response_body
|
|
438
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
|
438
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::BackendSrcExemptionsSchemasExemptionExemptionRead)
|
|
439
439
|
|
|
440
440
|
return obj
|
|
441
441
|
else
|
|
@@ -494,34 +494,23 @@ module KintsugiSDK
|
|
|
494
494
|
end
|
|
495
495
|
|
|
496
496
|
|
|
497
|
-
sig { params(request: Models::Ops::
|
|
498
|
-
def
|
|
499
|
-
#
|
|
500
|
-
# The
|
|
501
|
-
#
|
|
502
|
-
# This is
|
|
503
|
-
#
|
|
497
|
+
sig { params(request: Models::Ops::GetExemptionAttachmentsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(T::Array[Models::Shared::AttachmentRead]) }
|
|
498
|
+
def get_attachments(request:, timeout_ms: nil, http_headers: nil)
|
|
499
|
+
# get_attachments - Get attachments for exemption
|
|
500
|
+
# The Get Attachments for Exemption API retrieves all
|
|
501
|
+
# attachments associated with a specific exemption.
|
|
502
|
+
# This is used to view and manage supporting documents
|
|
503
|
+
# like exemption certificates uploaded for a particular exemption record.
|
|
504
504
|
url, params = @sdk_configuration.get_server_details
|
|
505
505
|
base_url = Utils.template_url(url, params)
|
|
506
506
|
url = Utils.generate_url(
|
|
507
|
-
Models::Ops::
|
|
507
|
+
Models::Ops::GetExemptionAttachmentsRequest,
|
|
508
508
|
base_url,
|
|
509
509
|
'/v1/exemptions/{exemption_id}/attachments',
|
|
510
510
|
request
|
|
511
511
|
)
|
|
512
|
-
headers =
|
|
512
|
+
headers = Utils.get_headers(request)
|
|
513
513
|
headers = T.cast(headers, T::Hash[String, String])
|
|
514
|
-
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post, :multipart)
|
|
515
|
-
headers['content-type'] = req_content_type
|
|
516
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
517
|
-
|
|
518
|
-
if form && !form.empty?
|
|
519
|
-
body = Utils.encode_form(form)
|
|
520
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
521
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
522
|
-
else
|
|
523
|
-
body = data
|
|
524
|
-
end
|
|
525
514
|
headers['Accept'] = 'application/json'
|
|
526
515
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
527
516
|
|
|
@@ -537,7 +526,7 @@ module KintsugiSDK
|
|
|
537
526
|
config: @sdk_configuration,
|
|
538
527
|
base_url: base_url,
|
|
539
528
|
oauth2_scopes: nil,
|
|
540
|
-
operation_id: '
|
|
529
|
+
operation_id: 'getExemptionAttachments',
|
|
541
530
|
security_source: @sdk_configuration.security_source
|
|
542
531
|
)
|
|
543
532
|
|
|
@@ -546,8 +535,7 @@ module KintsugiSDK
|
|
|
546
535
|
|
|
547
536
|
|
|
548
537
|
begin
|
|
549
|
-
http_response = T.must(connection).
|
|
550
|
-
req.body = body
|
|
538
|
+
http_response = T.must(connection).get(url) do |req|
|
|
551
539
|
req.headers.merge!(headers)
|
|
552
540
|
req.options.timeout = timeout unless timeout.nil?
|
|
553
541
|
Utils.configure_request_security(req, security)
|
|
@@ -598,7 +586,7 @@ module KintsugiSDK
|
|
|
598
586
|
response: http_response
|
|
599
587
|
)
|
|
600
588
|
response_data = http_response.env.response_body
|
|
601
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AttachmentRead)
|
|
589
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Shared::AttachmentRead))
|
|
602
590
|
|
|
603
591
|
return obj
|
|
604
592
|
else
|
|
@@ -632,20 +620,6 @@ module KintsugiSDK
|
|
|
632
620
|
else
|
|
633
621
|
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
634
622
|
end
|
|
635
|
-
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
636
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
637
|
-
@sdk_configuration.hooks.after_success(
|
|
638
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
639
|
-
hook_ctx: hook_ctx
|
|
640
|
-
),
|
|
641
|
-
response: http_response
|
|
642
|
-
)
|
|
643
|
-
response_data = http_response.env.response_body
|
|
644
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
|
|
645
|
-
raise obj
|
|
646
|
-
else
|
|
647
|
-
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
648
|
-
end
|
|
649
623
|
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
650
624
|
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
651
625
|
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
@@ -657,23 +631,34 @@ module KintsugiSDK
|
|
|
657
631
|
end
|
|
658
632
|
|
|
659
633
|
|
|
660
|
-
sig { params(request: Models::Ops::
|
|
661
|
-
def
|
|
662
|
-
#
|
|
663
|
-
# The
|
|
664
|
-
#
|
|
665
|
-
# This is used to
|
|
666
|
-
#
|
|
634
|
+
sig { params(request: Models::Ops::UploadExemptionCertRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::AttachmentRead) }
|
|
635
|
+
def upload_certificate(request:, timeout_ms: nil, http_headers: nil)
|
|
636
|
+
# upload_certificate - Upload exemption certificate
|
|
637
|
+
# The Upload Exemption Certificate API allows you
|
|
638
|
+
# to upload a file attachment (e.g., exemption certificate) for a specific exemption.
|
|
639
|
+
# This is primarily used to associate supporting documents with an exemption record
|
|
640
|
+
# to ensure compliance and facilitate verification.
|
|
667
641
|
url, params = @sdk_configuration.get_server_details
|
|
668
642
|
base_url = Utils.template_url(url, params)
|
|
669
643
|
url = Utils.generate_url(
|
|
670
|
-
Models::Ops::
|
|
644
|
+
Models::Ops::UploadExemptionCertRequest,
|
|
671
645
|
base_url,
|
|
672
646
|
'/v1/exemptions/{exemption_id}/attachments',
|
|
673
647
|
request
|
|
674
648
|
)
|
|
675
|
-
headers =
|
|
649
|
+
headers = Utils.get_headers(request)
|
|
676
650
|
headers = T.cast(headers, T::Hash[String, String])
|
|
651
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post, :multipart)
|
|
652
|
+
headers['content-type'] = req_content_type
|
|
653
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
654
|
+
|
|
655
|
+
if form && !form.empty?
|
|
656
|
+
body = Utils.encode_form(form)
|
|
657
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
658
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
659
|
+
else
|
|
660
|
+
body = data
|
|
661
|
+
end
|
|
677
662
|
headers['Accept'] = 'application/json'
|
|
678
663
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
679
664
|
|
|
@@ -689,7 +674,7 @@ module KintsugiSDK
|
|
|
689
674
|
config: @sdk_configuration,
|
|
690
675
|
base_url: base_url,
|
|
691
676
|
oauth2_scopes: nil,
|
|
692
|
-
operation_id: '
|
|
677
|
+
operation_id: 'uploadExemptionCert',
|
|
693
678
|
security_source: @sdk_configuration.security_source
|
|
694
679
|
)
|
|
695
680
|
|
|
@@ -698,7 +683,8 @@ module KintsugiSDK
|
|
|
698
683
|
|
|
699
684
|
|
|
700
685
|
begin
|
|
701
|
-
http_response = T.must(connection).
|
|
686
|
+
http_response = T.must(connection).post(url) do |req|
|
|
687
|
+
req.body = body
|
|
702
688
|
req.headers.merge!(headers)
|
|
703
689
|
req.options.timeout = timeout unless timeout.nil?
|
|
704
690
|
Utils.configure_request_security(req, security)
|
|
@@ -749,7 +735,7 @@ module KintsugiSDK
|
|
|
749
735
|
response: http_response
|
|
750
736
|
)
|
|
751
737
|
response_data = http_response.env.response_body
|
|
752
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data),
|
|
738
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AttachmentRead)
|
|
753
739
|
|
|
754
740
|
return obj
|
|
755
741
|
else
|
|
@@ -783,6 +769,20 @@ module KintsugiSDK
|
|
|
783
769
|
else
|
|
784
770
|
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
785
771
|
end
|
|
772
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
773
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
774
|
+
@sdk_configuration.hooks.after_success(
|
|
775
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
776
|
+
hook_ctx: hook_ctx
|
|
777
|
+
),
|
|
778
|
+
response: http_response
|
|
779
|
+
)
|
|
780
|
+
response_data = http_response.env.response_body
|
|
781
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
|
|
782
|
+
raise obj
|
|
783
|
+
else
|
|
784
|
+
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
785
|
+
end
|
|
786
786
|
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
787
787
|
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
788
788
|
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
@@ -8,14 +8,14 @@ module KintsugiSDK
|
|
|
8
8
|
module Models
|
|
9
9
|
module Errors
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class BackendSrcProductsSchemasResponsesValidationErrorResponse < StandardError
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
field :detail, Crystalline::Array.new(Models::Shared::
|
|
16
|
+
field :detail, Crystalline::Array.new(Models::Shared::BackendSrcProductsSchemasResponsesValidationErrorItem), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('detail'), required: true } }
|
|
17
17
|
|
|
18
|
-
sig { params(detail: T::Array[Models::Shared::
|
|
18
|
+
sig { params(detail: T::Array[Models::Shared::BackendSrcProductsSchemasResponsesValidationErrorItem]).void }
|
|
19
19
|
def initialize(detail:)
|
|
20
20
|
@detail = detail
|
|
21
21
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class KintsugiSDK::Models::Errors::BackendSrcProductsSchemasResponsesValidationErrorResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class KintsugiSDK::Models::Errors::BackendSrcProductsSchemasResponsesValidationErrorResponse
|
|
11
|
+
def detail(); end
|
|
12
|
+
def detail=(str_); end
|
|
13
|
+
end
|
|
@@ -12,7 +12,7 @@ module KintsugiSDK
|
|
|
12
12
|
autoload :BackendSrcAddressValidationResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rb'
|
|
13
13
|
autoload :BackendSrcCustomersResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rb'
|
|
14
14
|
autoload :BackendSrcExemptionsResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rb'
|
|
15
|
-
autoload :
|
|
15
|
+
autoload :BackendSrcProductsSchemasResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_products_schemas_responses_validationerrorresponse.rb'
|
|
16
16
|
autoload :BackendSrcTaxEstimationResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rb'
|
|
17
17
|
autoload :BackendSrcTransactionsResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rb'
|
|
18
18
|
end
|
data/lib/kintsugi_sdk/models/ops/{search_v1_address_validation_search_post_security.rb → country.rb}
RENAMED
|
@@ -8,22 +8,17 @@ module KintsugiSDK
|
|
|
8
8
|
module Models
|
|
9
9
|
module Ops
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class Country
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
sig { params(api_key_header: ::String).void }
|
|
19
|
-
def initialize(api_key_header:)
|
|
20
|
-
@api_key_header = api_key_header
|
|
21
|
-
end
|
|
16
|
+
|
|
17
|
+
def initialize; end
|
|
22
18
|
|
|
23
19
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
20
|
def ==(other)
|
|
25
21
|
return false unless other.is_a? self.class
|
|
26
|
-
return false unless @api_key_header == other.api_key_header
|
|
27
22
|
true
|
|
28
23
|
end
|
|
29
24
|
end
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class KintsugiSDK::Models::
|
|
5
|
+
class KintsugiSDK::Models::Ops::Country
|
|
6
6
|
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class KintsugiSDK::Models::
|
|
10
|
+
class KintsugiSDK::Models::Ops::Country
|
|
11
11
|
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module KintsugiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Ops
|
|
10
|
+
|
|
11
|
+
class CountryCode
|
|
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,36 @@
|
|
|
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
|
+
|
|
11
|
+
class CreateCustomerV1CustomersPostRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :customer_create, Models::Shared::CustomerCreate, { 'request': { 'media_type': 'application/json' } }
|
|
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 } }
|
|
19
|
+
|
|
20
|
+
sig { params(customer_create: Models::Shared::CustomerCreate, x_organization_id: T.nilable(::String)).void }
|
|
21
|
+
def initialize(customer_create:, x_organization_id: nil)
|
|
22
|
+
@customer_create = customer_create
|
|
23
|
+
@x_organization_id = x_organization_id
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @customer_create == other.customer_create
|
|
30
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class KintsugiSDK::Models::Ops::CreateCustomerV1CustomersPostRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class KintsugiSDK::Models::Ops::CreateCustomerV1CustomersPostRequest
|
|
11
|
+
def customer_create(); end
|
|
12
|
+
def customer_create=(str_); end
|
|
13
|
+
def x_organization_id(); end
|
|
14
|
+
def x_organization_id=(str_); end
|
|
15
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
|
|
11
|
+
class CreateExemptionV1ExemptionsPostRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :exemption_create, Models::Shared::ExemptionCreate, { 'request': { 'media_type': 'application/json' } }
|
|
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 } }
|
|
19
|
+
|
|
20
|
+
sig { params(exemption_create: Models::Shared::ExemptionCreate, x_organization_id: T.nilable(::String)).void }
|
|
21
|
+
def initialize(exemption_create:, x_organization_id: nil)
|
|
22
|
+
@exemption_create = exemption_create
|
|
23
|
+
@x_organization_id = x_organization_id
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @exemption_create == other.exemption_create
|
|
30
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class KintsugiSDK::Models::Ops::CreateExemptionV1ExemptionsPostRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class KintsugiSDK::Models::Ops::CreateExemptionV1ExemptionsPostRequest
|
|
11
|
+
def exemption_create(); end
|
|
12
|
+
def exemption_create=(str_); end
|
|
13
|
+
def x_organization_id(); end
|
|
14
|
+
def x_organization_id=(str_); end
|
|
15
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
|
|
11
|
+
class CreateTransactionV1TransactionsPostRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :transaction_public_request, Models::Shared::TransactionPublicRequest, { 'request': { 'media_type': 'application/json' } }
|
|
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 } }
|
|
19
|
+
|
|
20
|
+
sig { params(transaction_public_request: Models::Shared::TransactionPublicRequest, x_organization_id: T.nilable(::String)).void }
|
|
21
|
+
def initialize(transaction_public_request:, x_organization_id: nil)
|
|
22
|
+
@transaction_public_request = transaction_public_request
|
|
23
|
+
@x_organization_id = x_organization_id
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @transaction_public_request == other.transaction_public_request
|
|
30
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class KintsugiSDK::Models::Ops::CreateTransactionV1TransactionsPostRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class KintsugiSDK::Models::Ops::CreateTransactionV1TransactionsPostRequest
|
|
11
|
+
def transaction_public_request(); end
|
|
12
|
+
def transaction_public_request=(str_); end
|
|
13
|
+
def x_organization_id(); end
|
|
14
|
+
def x_organization_id=(str_); end
|
|
15
|
+
end
|
|
@@ -16,11 +16,14 @@ module KintsugiSDK
|
|
|
16
16
|
field :customer_id, ::String, { 'path_param': { 'field_name': 'customer_id', 'style': 'simple', 'explode': false } }
|
|
17
17
|
|
|
18
18
|
field :transaction_create, Models::Shared::TransactionCreate, { 'request': { 'media_type': 'application/json' } }
|
|
19
|
+
# The unique identifier for the organization making the request
|
|
20
|
+
field :x_organization_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-organization-id', 'style': 'simple', 'explode': false } }
|
|
19
21
|
|
|
20
|
-
sig { params(customer_id: ::String, transaction_create: Models::Shared::TransactionCreate).void }
|
|
21
|
-
def initialize(customer_id:, transaction_create:)
|
|
22
|
+
sig { params(customer_id: ::String, transaction_create: Models::Shared::TransactionCreate, x_organization_id: T.nilable(::String)).void }
|
|
23
|
+
def initialize(customer_id:, transaction_create:, x_organization_id: nil)
|
|
22
24
|
@customer_id = customer_id
|
|
23
25
|
@transaction_create = transaction_create
|
|
26
|
+
@x_organization_id = x_organization_id
|
|
24
27
|
end
|
|
25
28
|
|
|
26
29
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -28,6 +31,7 @@ module KintsugiSDK
|
|
|
28
31
|
return false unless other.is_a? self.class
|
|
29
32
|
return false unless @customer_id == other.customer_id
|
|
30
33
|
return false unless @transaction_create == other.transaction_create
|
|
34
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
31
35
|
true
|
|
32
36
|
end
|
|
33
37
|
end
|
|
@@ -18,11 +18,14 @@ module KintsugiSDK
|
|
|
18
18
|
#
|
|
19
19
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
20
20
|
field :simulate_nexus_met, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'simulate_nexus_met', 'style': 'form', 'explode': true } }
|
|
21
|
+
# The unique identifier for the organization making the request
|
|
22
|
+
field :x_organization_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-organization-id', 'style': 'simple', 'explode': false } }
|
|
21
23
|
|
|
22
|
-
sig { params(transaction_estimate_public_request: Models::Shared::TransactionEstimatePublicRequest, simulate_nexus_met: T.nilable(T::Boolean)).void }
|
|
23
|
-
def initialize(transaction_estimate_public_request:, simulate_nexus_met: nil)
|
|
24
|
+
sig { params(transaction_estimate_public_request: Models::Shared::TransactionEstimatePublicRequest, simulate_nexus_met: T.nilable(T::Boolean), x_organization_id: T.nilable(::String)).void }
|
|
25
|
+
def initialize(transaction_estimate_public_request:, simulate_nexus_met: nil, x_organization_id: nil)
|
|
24
26
|
@transaction_estimate_public_request = transaction_estimate_public_request
|
|
25
27
|
@simulate_nexus_met = simulate_nexus_met
|
|
28
|
+
@x_organization_id = x_organization_id
|
|
26
29
|
end
|
|
27
30
|
|
|
28
31
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -30,6 +33,7 @@ module KintsugiSDK
|
|
|
30
33
|
return false unless other.is_a? self.class
|
|
31
34
|
return false unless @transaction_estimate_public_request == other.transaction_estimate_public_request
|
|
32
35
|
return false unless @simulate_nexus_met == other.simulate_nexus_met
|
|
36
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
33
37
|
true
|
|
34
38
|
end
|
|
35
39
|
end
|
|
@@ -12,4 +12,6 @@ class KintsugiSDK::Models::Ops::EstimateTaxV1TaxEstimatePostRequest
|
|
|
12
12
|
def transaction_estimate_public_request=(str_); end
|
|
13
13
|
def simulate_nexus_met(); end
|
|
14
14
|
def simulate_nexus_met=(str_); end
|
|
15
|
+
def x_organization_id(); end
|
|
16
|
+
def x_organization_id=(str_); end
|
|
15
17
|
end
|
|
@@ -14,16 +14,20 @@ module KintsugiSDK
|
|
|
14
14
|
|
|
15
15
|
# The external identifier of the customer to retrieve.
|
|
16
16
|
field :external_id, ::String, { 'path_param': { 'field_name': 'external_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(external_id: ::String).void }
|
|
19
|
-
def initialize(external_id:)
|
|
20
|
+
sig { params(external_id: ::String, x_organization_id: T.nilable(::String)).void }
|
|
21
|
+
def initialize(external_id:, x_organization_id: nil)
|
|
20
22
|
@external_id = external_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 @external_id == other.external_id
|
|
30
|
+
return false unless @x_organization_id == other.x_organization_id
|
|
27
31
|
true
|
|
28
32
|
end
|
|
29
33
|
end
|