kintsugi_sdk 5.6.1 → 5.7.1
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 +27 -25
- data/lib/kintsugi_sdk/customers.rb +133 -131
- data/lib/kintsugi_sdk/exemptions.rb +94 -94
- data/lib/kintsugi_sdk/models/errors/apierror.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rb +1 -1
- 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/backend_src_tax_estimation_responses_validationerrorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/errorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rb +1 -1
- 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 +19 -11
- 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_address_validation_responses_validationerroritem.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rb → backend_src_exemptions_schemas_exemption_exemptionread.rb} +15 -10
- data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rbi → backend_src_exemptions_schemas_exemption_exemptionread.rbi} +6 -4
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb +13 -9
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rb → backend_src_products_schemas_responses_validationerroritem.rb} +3 -3
- 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/backend_src_tax_estimation_responses_validationerroritem.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rb +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/currencyenum.rb +1 -1
- 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/exemptioncreate.rb +8 -4
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rbi +2 -0
- 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 +46 -0
- data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/exemptiontype.rb +2 -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 +130 -90
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rbi +58 -44
- 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 +41 -15
- 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/relatedentitytype.rb +4 -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 +23 -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 +2 -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 +3 -0
- data/lib/kintsugi_sdk/models/shared/taxtypeenum.rb +30 -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 +89 -79
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +36 -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/{exemption.rb → transactionembeddedexemption.rb} +38 -16
- data/lib/kintsugi_sdk/models/shared/{exemption.rbi → transactionembeddedexemption.rbi} +12 -6
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb +10 -8
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rb +11 -9
- 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 +57 -53
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rbi +22 -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 +57 -53
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rbi +22 -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 +15 -7
- data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb +18 -10
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rbi +6 -4
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rb +64 -44
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rbi +28 -18
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb +69 -63
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +30 -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 +107 -73
- data/lib/kintsugi_sdk/models/shared/transactionread.rbi +48 -28
- data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rb +68 -62
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +30 -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/usetaxregistrationpath.rb +24 -0
- data/lib/kintsugi_sdk/models/shared/usetaxregistrationpath.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 +75 -6
- data/lib/kintsugi_sdk/nexus.rb +9 -9
- data/lib/kintsugi_sdk/openapisdk.rb +10 -10
- data/lib/kintsugi_sdk/products.rb +28 -26
- data/lib/kintsugi_sdk/sdk_hooks/hooks.rb +1 -1
- data/lib/kintsugi_sdk/sdk_hooks/types.rb +14 -14
- data/lib/kintsugi_sdk/sdkconfiguration.rb +22 -22
- data/lib/kintsugi_sdk/taxestimation.rb +15 -15
- data/lib/kintsugi_sdk/transactions.rb +113 -113
- data/lib/kintsugi_sdk/utils/forms.rb +23 -23
- data/lib/kintsugi_sdk/utils/headers.rb +4 -4
- data/lib/kintsugi_sdk/utils/query_params.rb +14 -14
- data/lib/kintsugi_sdk/utils/request_bodies.rb +7 -7
- data/lib/kintsugi_sdk/utils/retries.rb +42 -3
- data/lib/kintsugi_sdk/utils/security.rb +16 -16
- data/lib/kintsugi_sdk/utils/url.rb +6 -6
- data/lib/kintsugi_sdk/utils/utils.rb +37 -33
- data/lib/kintsugi_sdk.rb +1 -1
- metadata +174 -18
- 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
|
@@ -17,47 +17,66 @@ 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
|
|
31
27
|
# retrieve supported categories from [GET /products/categories endpoint](/reference/api/products/get-product-categories)
|
|
32
28
|
field :product_category, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_category'), required: true } }
|
|
33
|
-
#
|
|
34
|
-
# For example, General Clothing, UNKNOWN, etc. You can
|
|
35
|
-
# retrieve supported subcategories from [GET /products/categories endpoint](/reference/api/products/get-product-categories)
|
|
29
|
+
# Tax subcategory display label of the product (e.g. 'General Clothing'). List supported values from [GET /products/categories](/reference/api/products/get-product-categories).
|
|
36
30
|
field :product_subcategory, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_subcategory'), required: true } }
|
|
37
31
|
|
|
38
32
|
field :tax_exempt, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_exempt'), required: true } }
|
|
39
33
|
|
|
40
34
|
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
35
|
|
|
42
|
-
field :
|
|
36
|
+
field :sku, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('sku'), required: true } }
|
|
37
|
+
|
|
38
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('description'), required: true } }
|
|
39
|
+
|
|
40
|
+
field :connection_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('connection_id'), required: true } }
|
|
41
|
+
|
|
42
|
+
field :classification_failed, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('classification_failed'), required: true } }
|
|
43
|
+
|
|
44
|
+
field :store_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('store_name') } }
|
|
45
|
+
|
|
46
|
+
field :source_taxonomy_type, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_type') } }
|
|
47
|
+
|
|
48
|
+
field :source_taxonomy_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_code') } }
|
|
49
|
+
|
|
50
|
+
field :source_taxonomy_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_id') } }
|
|
51
|
+
|
|
52
|
+
field :source_taxonomy_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_name') } }
|
|
43
53
|
|
|
44
|
-
field :
|
|
54
|
+
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
55
|
|
|
46
|
-
|
|
47
|
-
|
|
56
|
+
field :source_taxonomy_metadata, Crystalline::Nilable.new(Crystalline::Hash.new(::Symbol, ::Object)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source_taxonomy_metadata') } }
|
|
57
|
+
|
|
58
|
+
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 }
|
|
59
|
+
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
60
|
@id = id
|
|
49
61
|
@external_id = external_id
|
|
50
|
-
@sku = sku
|
|
51
62
|
@code = code
|
|
52
63
|
@name = name
|
|
53
|
-
@description = description
|
|
54
64
|
@status = status
|
|
55
65
|
@product_category = product_category
|
|
56
66
|
@product_subcategory = product_subcategory
|
|
57
67
|
@tax_exempt = tax_exempt
|
|
58
68
|
@source = source
|
|
69
|
+
@sku = sku
|
|
70
|
+
@description = description
|
|
59
71
|
@connection_id = connection_id
|
|
60
72
|
@classification_failed = classification_failed
|
|
73
|
+
@store_name = store_name
|
|
74
|
+
@source_taxonomy_type = source_taxonomy_type
|
|
75
|
+
@source_taxonomy_code = source_taxonomy_code
|
|
76
|
+
@source_taxonomy_id = source_taxonomy_id
|
|
77
|
+
@source_taxonomy_name = source_taxonomy_name
|
|
78
|
+
@source_taxonomy_categories = source_taxonomy_categories
|
|
79
|
+
@source_taxonomy_metadata = source_taxonomy_metadata
|
|
61
80
|
end
|
|
62
81
|
|
|
63
82
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -65,17 +84,24 @@ module KintsugiSDK
|
|
|
65
84
|
return false unless other.is_a? self.class
|
|
66
85
|
return false unless @id == other.id
|
|
67
86
|
return false unless @external_id == other.external_id
|
|
68
|
-
return false unless @sku == other.sku
|
|
69
87
|
return false unless @code == other.code
|
|
70
88
|
return false unless @name == other.name
|
|
71
|
-
return false unless @description == other.description
|
|
72
89
|
return false unless @status == other.status
|
|
73
90
|
return false unless @product_category == other.product_category
|
|
74
91
|
return false unless @product_subcategory == other.product_subcategory
|
|
75
92
|
return false unless @tax_exempt == other.tax_exempt
|
|
76
93
|
return false unless @source == other.source
|
|
94
|
+
return false unless @sku == other.sku
|
|
95
|
+
return false unless @description == other.description
|
|
77
96
|
return false unless @connection_id == other.connection_id
|
|
78
97
|
return false unless @classification_failed == other.classification_failed
|
|
98
|
+
return false unless @store_name == other.store_name
|
|
99
|
+
return false unless @source_taxonomy_type == other.source_taxonomy_type
|
|
100
|
+
return false unless @source_taxonomy_code == other.source_taxonomy_code
|
|
101
|
+
return false unless @source_taxonomy_id == other.source_taxonomy_id
|
|
102
|
+
return false unless @source_taxonomy_name == other.source_taxonomy_name
|
|
103
|
+
return false unless @source_taxonomy_categories == other.source_taxonomy_categories
|
|
104
|
+
return false unless @source_taxonomy_metadata == other.source_taxonomy_metadata
|
|
79
105
|
true
|
|
80
106
|
end
|
|
81
107
|
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
|
|
@@ -14,6 +14,10 @@ module KintsugiSDK
|
|
|
14
14
|
REGISTRATION = new('REGISTRATION')
|
|
15
15
|
FILING = new('FILING')
|
|
16
16
|
FILING_PAYMENT = new('FILING_PAYMENT')
|
|
17
|
+
TASK = new('TASK')
|
|
18
|
+
FILING_PAYMENT_RECEIPT = new('FILING_PAYMENT_RECEIPT')
|
|
19
|
+
PROPOSAL = new('PROPOSAL')
|
|
20
|
+
FILING_DOCUMENT = new('FILING_DOCUMENT')
|
|
17
21
|
end
|
|
18
22
|
end
|
|
19
23
|
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,11 +42,14 @@ 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')
|
|
46
49
|
GUSTO = new('GUSTO')
|
|
47
50
|
FACEBOOK = new('FACEBOOK')
|
|
51
|
+
FRESHBOOKS = new('FRESHBOOKS')
|
|
52
|
+
FULFIL = new('FULFIL')
|
|
48
53
|
OTHER = new('OTHER')
|
|
49
54
|
ORDWAY = new('ORDWAY')
|
|
50
55
|
INSTAGRAM = new('INSTAGRAM')
|
|
@@ -61,8 +66,10 @@ module KintsugiSDK
|
|
|
61
66
|
MODALYST = new('MODALYST')
|
|
62
67
|
NORDSTROM = new('NORDSTROM')
|
|
63
68
|
FAIRE = new('FAIRE')
|
|
69
|
+
FRISBII_BILLING = new('FRISBII_BILLING')
|
|
64
70
|
SHOPWARE = new('SHOPWARE')
|
|
65
71
|
ZOHO = new('ZOHO')
|
|
72
|
+
ZOHO_BOOKS = new('ZOHO_BOOKS')
|
|
66
73
|
SAGE_INTACCT = new('SAGE-INTACCT')
|
|
67
74
|
AIRWALLEX = new('AIRWALLEX')
|
|
68
75
|
ORB = new('ORB')
|
|
@@ -70,6 +77,22 @@ module KintsugiSDK
|
|
|
70
77
|
MICROSOFT_DYNAMICS_365 = new('MICROSOFT_DYNAMICS_365')
|
|
71
78
|
KICKSTARTER = new('KICKSTARTER')
|
|
72
79
|
INTERNAL_ERP = new('INTERNAL_ERP')
|
|
80
|
+
RILLET = new('RILLET')
|
|
81
|
+
CAMPFIRE = new('CAMPFIRE')
|
|
82
|
+
KILL_BILL = new('KILL_BILL')
|
|
83
|
+
PROVISION = new('PROVISION')
|
|
84
|
+
VERTEX_O_SERIES = new('VERTEX_O_SERIES')
|
|
85
|
+
CHECKOUTCHAMP = new('CHECKOUTCHAMP')
|
|
86
|
+
DUALENTRY = new('DUALENTRY')
|
|
87
|
+
ODOO = new('ODOO')
|
|
88
|
+
BILL_COM = new('BILL_COM')
|
|
89
|
+
INTUIT_ENTERPRISE_SUITE = new('INTUIT_ENTERPRISE_SUITE')
|
|
90
|
+
ACUMATICA = new('ACUMATICA')
|
|
91
|
+
PLENTYONE = new('PLENTYONE')
|
|
92
|
+
HYPERLINE = new('HYPERLINE')
|
|
93
|
+
OPENMETER = new('OPENMETER')
|
|
94
|
+
SALEOR = new('SALEOR')
|
|
95
|
+
UNLEASHED = new('UNLEASHED')
|
|
73
96
|
end
|
|
74
97
|
end
|
|
75
98
|
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
|