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
|
@@ -11,9 +11,11 @@ module KintsugiSDK
|
|
|
11
11
|
class PeriodModelEnum < T::Enum
|
|
12
12
|
enums do
|
|
13
13
|
CURRENT_OR_PREVIOUS = new('CURRENT_OR_PREVIOUS')
|
|
14
|
+
CURRENT_OR_TWO_PREVIOUS = new('CURRENT_OR_TWO_PREVIOUS')
|
|
14
15
|
PRECEDING_YEAR_FROM_OCTOBER = new('PRECEDING_YEAR_FROM_OCTOBER')
|
|
15
16
|
CALENDAR_YEAR = new('CALENDAR_YEAR')
|
|
16
17
|
PREVIOUS_12_MONTHS = new('PREVIOUS_12_MONTHS')
|
|
18
|
+
CURRENT_OR_PREVIOUS_12_MONTHS = new('CURRENT_OR_PREVIOUS_12_MONTHS')
|
|
17
19
|
PREVIOUS_4_QUARTERS = new('PREVIOUS_4_QUARTERS')
|
|
18
20
|
PREVIOUS_4_QUARTERS_OFFSET = new('PREVIOUS_4_QUARTERS_OFFSET')
|
|
19
21
|
PRECEDING_YEAR = new('PRECEDING_YEAR')
|
|
@@ -17,14 +17,10 @@ module KintsugiSDK
|
|
|
17
17
|
|
|
18
18
|
field :external_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_id'), required: true } }
|
|
19
19
|
|
|
20
|
-
field :sku, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('sku'), required: true } }
|
|
21
|
-
|
|
22
20
|
field :code, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('code'), required: true } }
|
|
23
21
|
|
|
24
22
|
field :name, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('name'), required: true } }
|
|
25
23
|
|
|
26
|
-
field :description, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('description'), required: true } }
|
|
27
|
-
|
|
28
24
|
field :status, Models::Shared::ProductStatusEnum, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::ProductStatusEnum, false) } }
|
|
29
25
|
# Main category of the product.
|
|
30
26
|
# For example, Physical, Digital, etc. You can
|
|
@@ -39,25 +35,50 @@ module KintsugiSDK
|
|
|
39
35
|
|
|
40
36
|
field :source, Models::Shared::SourceEnum, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::SourceEnum, false) } }
|
|
41
37
|
|
|
42
|
-
field :
|
|
38
|
+
field :sku, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('sku'), required: true } }
|
|
39
|
+
|
|
40
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('description'), required: true } }
|
|
41
|
+
|
|
42
|
+
field :connection_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('connection_id'), required: true } }
|
|
43
|
+
|
|
44
|
+
field :classification_failed, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('classification_failed'), required: true } }
|
|
45
|
+
|
|
46
|
+
field :store_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('store_name') } }
|
|
47
|
+
|
|
48
|
+
field :source_taxonomy_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_type') } }
|
|
49
|
+
|
|
50
|
+
field :source_taxonomy_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_code') } }
|
|
51
|
+
|
|
52
|
+
field :source_taxonomy_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_id') } }
|
|
53
|
+
|
|
54
|
+
field :source_taxonomy_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_name') } }
|
|
43
55
|
|
|
44
|
-
field :
|
|
56
|
+
field :source_taxonomy_categories, Crystalline::Nilable.new(Crystalline::Array.new(Crystalline::Hash.new(Symbol, ::Object))), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_categories') } }
|
|
45
57
|
|
|
46
|
-
|
|
47
|
-
|
|
58
|
+
field :source_taxonomy_metadata, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_metadata') } }
|
|
59
|
+
|
|
60
|
+
sig { params(id: ::String, external_id: ::String, code: ::String, name: ::String, status: Models::Shared::ProductStatusEnum, product_category: ::String, product_subcategory: ::String, tax_exempt: T::Boolean, source: Models::Shared::SourceEnum, sku: T.nilable(T::Array[::String]), description: T.nilable(::String), connection_id: T.nilable(::String), classification_failed: T.nilable(T::Boolean), store_name: T.nilable(::String), source_taxonomy_type: T.nilable(::String), source_taxonomy_code: T.nilable(::String), source_taxonomy_id: T.nilable(::String), source_taxonomy_name: T.nilable(::String), source_taxonomy_categories: T.nilable(T::Array[T::Hash[Symbol, ::Object]]), source_taxonomy_metadata: T.nilable(T::Hash[Symbol, ::Object])).void }
|
|
61
|
+
def initialize(id:, external_id:, code:, name:, status:, product_category:, product_subcategory:, tax_exempt:, source:, sku: nil, description: nil, connection_id: nil, classification_failed: nil, store_name: nil, source_taxonomy_type: nil, source_taxonomy_code: nil, source_taxonomy_id: nil, source_taxonomy_name: nil, source_taxonomy_categories: nil, source_taxonomy_metadata: nil)
|
|
48
62
|
@id = id
|
|
49
63
|
@external_id = external_id
|
|
50
|
-
@sku = sku
|
|
51
64
|
@code = code
|
|
52
65
|
@name = name
|
|
53
|
-
@description = description
|
|
54
66
|
@status = status
|
|
55
67
|
@product_category = product_category
|
|
56
68
|
@product_subcategory = product_subcategory
|
|
57
69
|
@tax_exempt = tax_exempt
|
|
58
70
|
@source = source
|
|
71
|
+
@sku = sku
|
|
72
|
+
@description = description
|
|
59
73
|
@connection_id = connection_id
|
|
60
74
|
@classification_failed = classification_failed
|
|
75
|
+
@store_name = store_name
|
|
76
|
+
@source_taxonomy_type = source_taxonomy_type
|
|
77
|
+
@source_taxonomy_code = source_taxonomy_code
|
|
78
|
+
@source_taxonomy_id = source_taxonomy_id
|
|
79
|
+
@source_taxonomy_name = source_taxonomy_name
|
|
80
|
+
@source_taxonomy_categories = source_taxonomy_categories
|
|
81
|
+
@source_taxonomy_metadata = source_taxonomy_metadata
|
|
61
82
|
end
|
|
62
83
|
|
|
63
84
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -65,17 +86,24 @@ module KintsugiSDK
|
|
|
65
86
|
return false unless other.is_a? self.class
|
|
66
87
|
return false unless @id == other.id
|
|
67
88
|
return false unless @external_id == other.external_id
|
|
68
|
-
return false unless @sku == other.sku
|
|
69
89
|
return false unless @code == other.code
|
|
70
90
|
return false unless @name == other.name
|
|
71
|
-
return false unless @description == other.description
|
|
72
91
|
return false unless @status == other.status
|
|
73
92
|
return false unless @product_category == other.product_category
|
|
74
93
|
return false unless @product_subcategory == other.product_subcategory
|
|
75
94
|
return false unless @tax_exempt == other.tax_exempt
|
|
76
95
|
return false unless @source == other.source
|
|
96
|
+
return false unless @sku == other.sku
|
|
97
|
+
return false unless @description == other.description
|
|
77
98
|
return false unless @connection_id == other.connection_id
|
|
78
99
|
return false unless @classification_failed == other.classification_failed
|
|
100
|
+
return false unless @store_name == other.store_name
|
|
101
|
+
return false unless @source_taxonomy_type == other.source_taxonomy_type
|
|
102
|
+
return false unless @source_taxonomy_code == other.source_taxonomy_code
|
|
103
|
+
return false unless @source_taxonomy_id == other.source_taxonomy_id
|
|
104
|
+
return false unless @source_taxonomy_name == other.source_taxonomy_name
|
|
105
|
+
return false unless @source_taxonomy_categories == other.source_taxonomy_categories
|
|
106
|
+
return false unless @source_taxonomy_metadata == other.source_taxonomy_metadata
|
|
79
107
|
true
|
|
80
108
|
end
|
|
81
109
|
end
|
|
@@ -12,14 +12,10 @@ class KintsugiSDK::Models::Shared::ProductRead
|
|
|
12
12
|
def id=(str_); end
|
|
13
13
|
def external_id(); end
|
|
14
14
|
def external_id=(str_); end
|
|
15
|
-
def sku(); end
|
|
16
|
-
def sku=(str_); end
|
|
17
15
|
def code(); end
|
|
18
16
|
def code=(str_); end
|
|
19
17
|
def name(); end
|
|
20
18
|
def name=(str_); end
|
|
21
|
-
def description(); end
|
|
22
|
-
def description=(str_); end
|
|
23
19
|
def status(); end
|
|
24
20
|
def status=(str_); end
|
|
25
21
|
def product_category(); end
|
|
@@ -30,8 +26,26 @@ class KintsugiSDK::Models::Shared::ProductRead
|
|
|
30
26
|
def tax_exempt=(str_); end
|
|
31
27
|
def source(); end
|
|
32
28
|
def source=(str_); end
|
|
29
|
+
def sku(); end
|
|
30
|
+
def sku=(str_); end
|
|
31
|
+
def description(); end
|
|
32
|
+
def description=(str_); end
|
|
33
33
|
def connection_id(); end
|
|
34
34
|
def connection_id=(str_); end
|
|
35
35
|
def classification_failed(); end
|
|
36
36
|
def classification_failed=(str_); end
|
|
37
|
+
def store_name(); end
|
|
38
|
+
def store_name=(str_); end
|
|
39
|
+
def source_taxonomy_type(); end
|
|
40
|
+
def source_taxonomy_type=(str_); end
|
|
41
|
+
def source_taxonomy_code(); end
|
|
42
|
+
def source_taxonomy_code=(str_); end
|
|
43
|
+
def source_taxonomy_id(); end
|
|
44
|
+
def source_taxonomy_id=(str_); end
|
|
45
|
+
def source_taxonomy_name(); end
|
|
46
|
+
def source_taxonomy_name=(str_); end
|
|
47
|
+
def source_taxonomy_categories(); end
|
|
48
|
+
def source_taxonomy_categories=(str_); end
|
|
49
|
+
def source_taxonomy_metadata(); end
|
|
50
|
+
def source_taxonomy_metadata=(str_); end
|
|
37
51
|
end
|
|
@@ -24,6 +24,8 @@ module KintsugiSDK
|
|
|
24
24
|
field :product_subcategory, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_subcategory'), required: true } }
|
|
25
25
|
# Indicates whether the product is tax-exempt.
|
|
26
26
|
field :tax_exempt, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_exempt'), required: true } }
|
|
27
|
+
|
|
28
|
+
field :status, Crystalline::Nilable.new(Models::Shared::ProductStatusEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::ProductStatusEnum, true) } }
|
|
27
29
|
# The unique identifier of the product to be updated.
|
|
28
30
|
field :id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('id') } }
|
|
29
31
|
# External identifier provided for the product,
|
|
@@ -33,22 +35,20 @@ module KintsugiSDK
|
|
|
33
35
|
field :sku, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('sku') } }
|
|
34
36
|
# Description of the product.
|
|
35
37
|
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('description') } }
|
|
36
|
-
|
|
37
|
-
field :status, Crystalline::Nilable.new(Models::Shared::ProductStatusEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::ProductStatusEnum, true) } }
|
|
38
38
|
# Indicates if the product classification failed.
|
|
39
39
|
field :classification_failed, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('classification_failed') } }
|
|
40
40
|
|
|
41
|
-
sig { params(name: ::String, product_category: ::String, product_subcategory: ::String, tax_exempt: T::Boolean, id: T.nilable(::String), external_id: T.nilable(::String), sku: T.nilable(T::Array[::String]), description: T.nilable(::String),
|
|
42
|
-
def initialize(name:, product_category:, product_subcategory:, tax_exempt:,
|
|
41
|
+
sig { params(name: ::String, product_category: ::String, product_subcategory: ::String, tax_exempt: T::Boolean, status: T.nilable(Models::Shared::ProductStatusEnum), id: T.nilable(::String), external_id: T.nilable(::String), sku: T.nilable(T::Array[::String]), description: T.nilable(::String), classification_failed: T.nilable(T::Boolean)).void }
|
|
42
|
+
def initialize(name:, product_category:, product_subcategory:, tax_exempt:, status: nil, id: nil, external_id: nil, sku: nil, description: nil, classification_failed: nil)
|
|
43
43
|
@name = name
|
|
44
44
|
@product_category = product_category
|
|
45
45
|
@product_subcategory = product_subcategory
|
|
46
46
|
@tax_exempt = tax_exempt
|
|
47
|
+
@status = status
|
|
47
48
|
@id = id
|
|
48
49
|
@external_id = external_id
|
|
49
50
|
@sku = sku
|
|
50
51
|
@description = description
|
|
51
|
-
@status = status
|
|
52
52
|
@classification_failed = classification_failed
|
|
53
53
|
end
|
|
54
54
|
|
|
@@ -59,11 +59,11 @@ module KintsugiSDK
|
|
|
59
59
|
return false unless @product_category == other.product_category
|
|
60
60
|
return false unless @product_subcategory == other.product_subcategory
|
|
61
61
|
return false unless @tax_exempt == other.tax_exempt
|
|
62
|
+
return false unless @status == other.status
|
|
62
63
|
return false unless @id == other.id
|
|
63
64
|
return false unless @external_id == other.external_id
|
|
64
65
|
return false unless @sku == other.sku
|
|
65
66
|
return false unless @description == other.description
|
|
66
|
-
return false unless @status == other.status
|
|
67
67
|
return false unless @classification_failed == other.classification_failed
|
|
68
68
|
true
|
|
69
69
|
end
|
|
@@ -16,6 +16,8 @@ class KintsugiSDK::Models::Shared::ProductUpdate
|
|
|
16
16
|
def product_subcategory=(str_); end
|
|
17
17
|
def tax_exempt(); end
|
|
18
18
|
def tax_exempt=(str_); end
|
|
19
|
+
def status(); end
|
|
20
|
+
def status=(str_); end
|
|
19
21
|
def id(); end
|
|
20
22
|
def id=(str_); end
|
|
21
23
|
def external_id(); end
|
|
@@ -24,8 +26,6 @@ class KintsugiSDK::Models::Shared::ProductUpdate
|
|
|
24
26
|
def sku=(str_); end
|
|
25
27
|
def description(); end
|
|
26
28
|
def description=(str_); end
|
|
27
|
-
def status(); end
|
|
28
|
-
def status=(str_); end
|
|
29
29
|
def classification_failed(); end
|
|
30
30
|
def classification_failed=(str_); end
|
|
31
31
|
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module KintsugiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Shared
|
|
10
|
+
|
|
11
|
+
class ProductUpdateV2
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('name'), required: true } }
|
|
17
|
+
|
|
18
|
+
field :status, Models::Shared::ProductStatusEnum, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::ProductStatusEnum, false) } }
|
|
19
|
+
|
|
20
|
+
field :product_category, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_category'), required: true } }
|
|
21
|
+
|
|
22
|
+
field :product_subcategory, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_subcategory'), required: true } }
|
|
23
|
+
|
|
24
|
+
field :tax_exempt, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_exempt'), required: true } }
|
|
25
|
+
|
|
26
|
+
field :external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_id') } }
|
|
27
|
+
|
|
28
|
+
field :sku, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('sku') } }
|
|
29
|
+
|
|
30
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('description') } }
|
|
31
|
+
|
|
32
|
+
field :classification_failed, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('classification_failed') } }
|
|
33
|
+
|
|
34
|
+
sig { params(name: ::String, status: Models::Shared::ProductStatusEnum, product_category: ::String, product_subcategory: ::String, tax_exempt: T::Boolean, external_id: T.nilable(::String), sku: T.nilable(T::Array[::String]), description: T.nilable(::String), classification_failed: T.nilable(T::Boolean)).void }
|
|
35
|
+
def initialize(name:, status:, product_category:, product_subcategory:, tax_exempt:, external_id: nil, sku: nil, description: nil, classification_failed: nil)
|
|
36
|
+
@name = name
|
|
37
|
+
@status = status
|
|
38
|
+
@product_category = product_category
|
|
39
|
+
@product_subcategory = product_subcategory
|
|
40
|
+
@tax_exempt = tax_exempt
|
|
41
|
+
@external_id = external_id
|
|
42
|
+
@sku = sku
|
|
43
|
+
@description = description
|
|
44
|
+
@classification_failed = classification_failed
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
48
|
+
def ==(other)
|
|
49
|
+
return false unless other.is_a? self.class
|
|
50
|
+
return false unless @name == other.name
|
|
51
|
+
return false unless @status == other.status
|
|
52
|
+
return false unless @product_category == other.product_category
|
|
53
|
+
return false unless @product_subcategory == other.product_subcategory
|
|
54
|
+
return false unless @tax_exempt == other.tax_exempt
|
|
55
|
+
return false unless @external_id == other.external_id
|
|
56
|
+
return false unless @sku == other.sku
|
|
57
|
+
return false unless @description == other.description
|
|
58
|
+
return false unless @classification_failed == other.classification_failed
|
|
59
|
+
true
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class KintsugiSDK::Models::Shared::ProductUpdateV2
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class KintsugiSDK::Models::Shared::ProductUpdateV2
|
|
11
|
+
def name(); end
|
|
12
|
+
def name=(str_); end
|
|
13
|
+
def status(); end
|
|
14
|
+
def status=(str_); end
|
|
15
|
+
def product_category(); end
|
|
16
|
+
def product_category=(str_); end
|
|
17
|
+
def product_subcategory(); end
|
|
18
|
+
def product_subcategory=(str_); end
|
|
19
|
+
def tax_exempt(); end
|
|
20
|
+
def tax_exempt=(str_); end
|
|
21
|
+
def external_id(); end
|
|
22
|
+
def external_id=(str_); end
|
|
23
|
+
def sku(); end
|
|
24
|
+
def sku=(str_); end
|
|
25
|
+
def description(); end
|
|
26
|
+
def description=(str_); end
|
|
27
|
+
def classification_failed(); end
|
|
28
|
+
def classification_failed=(str_); end
|
|
29
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module KintsugiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Shared
|
|
10
|
+
# Quantity of item.
|
|
11
|
+
class Quantity
|
|
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,27 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module KintsugiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Shared
|
|
10
|
+
# Defaults to 1.0. The quantity of the item.
|
|
11
|
+
class QuantityOfTheProduct
|
|
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,27 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module KintsugiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Shared
|
|
10
|
+
|
|
11
|
+
class Rate
|
|
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
|
|
@@ -13,21 +13,17 @@ module KintsugiSDK
|
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
field :api_key_header, ::String, { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': 'header', '
|
|
16
|
+
field :api_key_header, ::String, { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'X-API-KEY' } }
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
sig { params(api_key_header: ::String, custom_header: ::String).void }
|
|
21
|
-
def initialize(api_key_header:, custom_header:)
|
|
18
|
+
sig { params(api_key_header: ::String).void }
|
|
19
|
+
def initialize(api_key_header:)
|
|
22
20
|
@api_key_header = api_key_header
|
|
23
|
-
@custom_header = custom_header
|
|
24
21
|
end
|
|
25
22
|
|
|
26
23
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
24
|
def ==(other)
|
|
28
25
|
return false unless other.is_a? self.class
|
|
29
26
|
return false unless @api_key_header == other.api_key_header
|
|
30
|
-
return false unless @custom_header == other.custom_header
|
|
31
27
|
true
|
|
32
28
|
end
|
|
33
29
|
end
|
|
@@ -15,6 +15,8 @@ module KintsugiSDK
|
|
|
15
15
|
BUNNY = new('BUNNY')
|
|
16
16
|
CHARGEBEE = new('CHARGEBEE')
|
|
17
17
|
SHOPIFY = new('SHOPIFY')
|
|
18
|
+
SHOPLINE = new('SHOPLINE')
|
|
19
|
+
ECWID = new('ECWID')
|
|
18
20
|
STRIPE = new('STRIPE')
|
|
19
21
|
AMAZON = new('AMAZON')
|
|
20
22
|
TIKTOK = new('TIKTOK')
|
|
@@ -40,6 +42,7 @@ module KintsugiSDK
|
|
|
40
42
|
SQUARESPACE = new('SQUARESPACE')
|
|
41
43
|
WOOCOMMERCE = new('WOOCOMMERCE')
|
|
42
44
|
MAGENTO = new('MAGENTO')
|
|
45
|
+
MACYS = new('MACYS')
|
|
43
46
|
BILLING_PLATFORM = new('BILLING_PLATFORM')
|
|
44
47
|
DEEL = new('DEEL')
|
|
45
48
|
RIPPLING = new('RIPPLING')
|
|
@@ -70,6 +73,18 @@ module KintsugiSDK
|
|
|
70
73
|
MICROSOFT_DYNAMICS_365 = new('MICROSOFT_DYNAMICS_365')
|
|
71
74
|
KICKSTARTER = new('KICKSTARTER')
|
|
72
75
|
INTERNAL_ERP = new('INTERNAL_ERP')
|
|
76
|
+
RILLET = new('RILLET')
|
|
77
|
+
CAMPFIRE = new('CAMPFIRE')
|
|
78
|
+
KILL_BILL = new('KILL_BILL')
|
|
79
|
+
PROVISION = new('PROVISION')
|
|
80
|
+
VERTEX_O_SERIES = new('VERTEX_O_SERIES')
|
|
81
|
+
CHECKOUTCHAMP = new('CHECKOUTCHAMP')
|
|
82
|
+
DUALENTRY = new('DUALENTRY')
|
|
83
|
+
ODOO = new('ODOO')
|
|
84
|
+
BILL_COM = new('BILL_COM')
|
|
85
|
+
INTUIT_ENTERPRISE_SUITE = new('INTUIT_ENTERPRISE_SUITE')
|
|
86
|
+
ACUMATICA = new('ACUMATICA')
|
|
87
|
+
PLENTYONE = new('PLENTYONE')
|
|
73
88
|
end
|
|
74
89
|
end
|
|
75
90
|
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module KintsugiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Shared
|
|
10
|
+
# Calculated tax amount for the item.
|
|
11
|
+
class TaxAmountCalculated
|
|
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,27 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module KintsugiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Shared
|
|
10
|
+
# Imported tax amount for the item.
|
|
11
|
+
class TaxAmountImported
|
|
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,27 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module KintsugiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Shared
|
|
10
|
+
# Calculated tax rate.
|
|
11
|
+
class TaxRateCalculated
|
|
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
|