kintsugi_sdk 5.6.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/crystalline/types.rb +11 -3
- data/lib/kintsugi_sdk/addressvalidation.rb +26 -16
- data/lib/kintsugi_sdk/customers.rb +148 -123
- data/lib/kintsugi_sdk/exemptions.rb +102 -85
- data/lib/kintsugi_sdk/models/errors/apierror.rbi +2 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rbi +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.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/errorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rbi +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} +3 -3
- 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 +3 -1
- 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 +3 -1
- 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 +3 -1
- 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 +3 -1
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rb +13 -5
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rbi +5 -1
- 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 +3 -1
- 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 +7 -3
- 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 +15 -7
- 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 +3 -1
- 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 +3 -1
- 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 +15 -5
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rbi +3 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rbi +3 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rb +14 -2
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rbi +7 -1
- 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 +3 -1
- 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 +3 -1
- 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 +5 -3
- 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 +3 -1
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rbi +3 -1
- 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/addressbase.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addresses.rb +7 -3
- data/lib/kintsugi_sdk/models/shared/addresses.rbi +3 -1
- data/lib/kintsugi_sdk/models/shared/addressresponsedata.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addresssearchresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addressstatus.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addresssubmittedresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addresstype.rbi +1 -1
- 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/appliedto.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/attachmentread.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rbi +1 -1
- 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} +5 -5
- 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 +3 -3
- 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} +3 -3
- data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rbi +1 -1
- 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/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rbi +1 -1
- 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/countrycodeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/currencyenum.rbi +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 +7 -5
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rb +16 -12
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rbi +7 -5
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rb +16 -12
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rbi +7 -5
- data/lib/kintsugi_sdk/models/shared/customercreate.rb +20 -16
- data/lib/kintsugi_sdk/models/shared/customercreate.rbi +9 -7
- data/lib/kintsugi_sdk/models/shared/customerread.rb +24 -16
- data/lib/kintsugi_sdk/models/shared/customerread.rbi +11 -7
- data/lib/kintsugi_sdk/models/shared/customertaxregistrationread.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/customertaxtypeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/customerupdate.rb +13 -9
- data/lib/kintsugi_sdk/models/shared/customerupdate.rbi +5 -3
- 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 +3 -3
- 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 +9 -5
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rb +3 -3
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rb +22 -2
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rbi +11 -1
- 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/exemptionstatus.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/exemptiontype.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/exemptiontype.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/jurisdictiontype.rbi +1 -1
- 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 +53 -41
- data/lib/kintsugi_sdk/models/shared/nexusstateenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/nexusstatusenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/nexustypeenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/nexustypeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/page_customerread_.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/page_nexusresponse_.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/page_transactionread_.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/periodmodelenum.rb +2 -0
- data/lib/kintsugi_sdk/models/shared/periodmodelenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/processingstatusenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/processingstatusenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/productread.rb +40 -12
- data/lib/kintsugi_sdk/models/shared/productread.rbi +19 -5
- data/lib/kintsugi_sdk/models/shared/productstatusenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/productstatusenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/productupdate.rb +6 -6
- data/lib/kintsugi_sdk/models/shared/productupdate.rbi +3 -3
- 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/registrationsregimeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/relatedentitytype.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/salesortransactionsenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/security.rb +2 -6
- data/lib/kintsugi_sdk/models/shared/security.rbi +1 -3
- data/lib/kintsugi_sdk/models/shared/sourceenum.rb +15 -0
- data/lib/kintsugi_sdk/models/shared/sourceenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/statusenum.rbi +1 -1
- 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/taxexemptionenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rb +14 -14
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rbi +5 -5
- 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 +5 -5
- data/lib/kintsugi_sdk/models/shared/taxitemread.rb +10 -10
- data/lib/kintsugi_sdk/models/shared/taxitemread.rbi +5 -5
- data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/taxitemtypeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/taxliabilitysourceenum.rbi +1 -1
- 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 +5 -3
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rb +8 -4
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rbi +3 -1
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rb +11 -7
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rbi +5 -3
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rb +84 -78
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +35 -29
- 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 +3 -3
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rb +10 -8
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rbi +3 -3
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb +7 -3
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rbi +3 -1
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_type.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionexemptstatusenum.rbi +1 -1
- 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 +21 -21
- 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 +21 -21
- 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 +5 -3
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb +20 -10
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rbi +7 -5
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rb +51 -43
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rbi +23 -19
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb +64 -62
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +29 -25
- 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 +41 -29
- data/lib/kintsugi_sdk/models/shared/transactionrefundstatus.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionstatusenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rb +63 -61
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +29 -25
- 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/treatmentenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/type.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/validationaddress.rb +12 -12
- data/lib/kintsugi_sdk/models/shared/validationaddress.rbi +5 -5
- data/lib/kintsugi_sdk/models/shared/validationerror.rb +11 -3
- data/lib/kintsugi_sdk/models/shared/validationerror.rbi +5 -1
- data/lib/kintsugi_sdk/models/shared.rb +73 -5
- data/lib/kintsugi_sdk/nexus.rb +15 -10
- data/lib/kintsugi_sdk/openapisdk.rb +7 -6
- data/lib/kintsugi_sdk/products.rb +32 -22
- data/lib/kintsugi_sdk/sdkconfiguration.rb +10 -11
- data/lib/kintsugi_sdk/taxestimation.rb +17 -12
- data/lib/kintsugi_sdk/transactions.rb +125 -105
- data/lib/kintsugi_sdk/utils/retries.rb +43 -1
- data/lib/kintsugi_sdk/utils/security.rb +22 -11
- data/lib/kintsugi_sdk/utils/utils.rb +6 -2
- data/lib/kintsugi_sdk.rb +1 -1
- metadata +172 -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
|
@@ -22,12 +22,6 @@ module KintsugiSDK
|
|
|
22
22
|
field :city, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('city') } }
|
|
23
23
|
# State, province, or region of the address
|
|
24
24
|
field :state, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('state') } }
|
|
25
|
-
# Unique identifier for the request, if applicable
|
|
26
|
-
field :id, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('id') } }
|
|
27
|
-
# County or district name for the address
|
|
28
|
-
field :county, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('county') } }
|
|
29
|
-
# A complete address string that can be used as an alternative to providing individual fields.
|
|
30
|
-
field :full_address, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('full_address') } }
|
|
31
25
|
# Country code in ISO 3166-1 alpha-2 format (e.g., 'US' for the United States).
|
|
32
26
|
# Defaults to 'US'.
|
|
33
27
|
# should not be empty. Not validating here as the validation
|
|
@@ -36,19 +30,25 @@ module KintsugiSDK
|
|
|
36
30
|
# ZIP or postal code for the address. Can be empty for some locales.
|
|
37
31
|
# Not validating here as the validation structure can be different for different providers
|
|
38
32
|
field :postal_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('postalCode') } }
|
|
33
|
+
# Unique identifier for the request, if applicable
|
|
34
|
+
field :id, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('id') } }
|
|
35
|
+
# County or district name for the address
|
|
36
|
+
field :county, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('county') } }
|
|
37
|
+
# A complete address string that can be used as an alternative to providing individual fields.
|
|
38
|
+
field :full_address, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('fullAddress') } }
|
|
39
39
|
|
|
40
|
-
sig { params(line1: T.nilable(::String), line2: T.nilable(::String), line3: T.nilable(::String), city: T.nilable(::String), state: T.nilable(::String),
|
|
41
|
-
def initialize(line1: nil, line2: nil, line3: nil, city: nil, state: nil,
|
|
40
|
+
sig { params(line1: T.nilable(::String), line2: T.nilable(::String), line3: T.nilable(::String), city: T.nilable(::String), state: T.nilable(::String), country: T.nilable(::String), postal_code: T.nilable(::String), id: T.nilable(::Integer), county: T.nilable(::String), full_address: T.nilable(::String)).void }
|
|
41
|
+
def initialize(line1: nil, line2: nil, line3: nil, city: nil, state: nil, country: nil, postal_code: nil, id: nil, county: nil, full_address: nil)
|
|
42
42
|
@line1 = line1
|
|
43
43
|
@line2 = line2
|
|
44
44
|
@line3 = line3
|
|
45
45
|
@city = city
|
|
46
46
|
@state = state
|
|
47
|
+
@country = country
|
|
48
|
+
@postal_code = postal_code
|
|
47
49
|
@id = id
|
|
48
50
|
@county = county
|
|
49
51
|
@full_address = full_address
|
|
50
|
-
@country = country
|
|
51
|
-
@postal_code = postal_code
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -59,11 +59,11 @@ module KintsugiSDK
|
|
|
59
59
|
return false unless @line3 == other.line3
|
|
60
60
|
return false unless @city == other.city
|
|
61
61
|
return false unless @state == other.state
|
|
62
|
+
return false unless @country == other.country
|
|
63
|
+
return false unless @postal_code == other.postal_code
|
|
62
64
|
return false unless @id == other.id
|
|
63
65
|
return false unless @county == other.county
|
|
64
66
|
return false unless @full_address == other.full_address
|
|
65
|
-
return false unless @country == other.country
|
|
66
|
-
return false unless @postal_code == other.postal_code
|
|
67
67
|
true
|
|
68
68
|
end
|
|
69
69
|
end
|
|
@@ -18,14 +18,14 @@ class KintsugiSDK::Models::Shared::ValidationAddress
|
|
|
18
18
|
def city=(str_); end
|
|
19
19
|
def state(); end
|
|
20
20
|
def state=(str_); end
|
|
21
|
+
def country(); end
|
|
22
|
+
def country=(str_); end
|
|
23
|
+
def postal_code(); end
|
|
24
|
+
def postal_code=(str_); end
|
|
21
25
|
def id(); end
|
|
22
26
|
def id=(str_); end
|
|
23
27
|
def county(); end
|
|
24
28
|
def county=(str_); end
|
|
25
29
|
def full_address(); end
|
|
26
30
|
def full_address=(str_); end
|
|
27
|
-
|
|
28
|
-
def country=(str_); end
|
|
29
|
-
def postal_code(); end
|
|
30
|
-
def postal_code=(str_); end
|
|
31
|
-
end
|
|
31
|
+
end
|
|
@@ -13,17 +13,23 @@ module KintsugiSDK
|
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
field :loc, Crystalline::Array.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('loc'), required: true } }
|
|
16
|
+
field :loc, Crystalline::Array.new(Crystalline::Union.new(::String, ::Integer)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('loc'), required: true } }
|
|
17
17
|
|
|
18
18
|
field :msg, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('msg'), required: true } }
|
|
19
19
|
|
|
20
20
|
field :type, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('type'), required: true } }
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
field :input, Crystalline::Nilable.new(::Object), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('input') } }
|
|
23
|
+
|
|
24
|
+
field :ctx, Crystalline::Nilable.new(Models::Shared::Context), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('ctx') } }
|
|
25
|
+
|
|
26
|
+
sig { params(loc: T::Array[T.any(::String, ::Integer)], msg: ::String, type: ::String, input: T.nilable(::Object), ctx: T.nilable(Models::Shared::Context)).void }
|
|
27
|
+
def initialize(loc:, msg:, type:, input: nil, ctx: nil)
|
|
24
28
|
@loc = loc
|
|
25
29
|
@msg = msg
|
|
26
30
|
@type = type
|
|
31
|
+
@input = input
|
|
32
|
+
@ctx = ctx
|
|
27
33
|
end
|
|
28
34
|
|
|
29
35
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -32,6 +38,8 @@ module KintsugiSDK
|
|
|
32
38
|
return false unless @loc == other.loc
|
|
33
39
|
return false unless @msg == other.msg
|
|
34
40
|
return false unless @type == other.type
|
|
41
|
+
return false unless @input == other.input
|
|
42
|
+
return false unless @ctx == other.ctx
|
|
35
43
|
true
|
|
36
44
|
end
|
|
37
45
|
end
|
|
@@ -12,11 +12,25 @@ module KintsugiSDK
|
|
|
12
12
|
autoload :AddressStatus, 'kintsugi_sdk/models/shared/addressstatus.rb'
|
|
13
13
|
autoload :AddressSubmittedResponse, 'kintsugi_sdk/models/shared/addresssubmittedresponse.rb'
|
|
14
14
|
autoload :AddressType, 'kintsugi_sdk/models/shared/addresstype.rb'
|
|
15
|
+
autoload :Amount, 'kintsugi_sdk/models/shared/amount.rb'
|
|
15
16
|
autoload :AppliedTo, 'kintsugi_sdk/models/shared/appliedto.rb'
|
|
16
17
|
autoload :AttachmentRead, 'kintsugi_sdk/models/shared/attachmentread.rb'
|
|
17
18
|
autoload :BodyUploadExemptionCertificateV1ExemptionsExemptionIdAttachmentsPost, 'kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rb'
|
|
19
|
+
autoload :Context, 'kintsugi_sdk/models/shared/context.rb'
|
|
20
|
+
autoload :ConversionRate, 'kintsugi_sdk/models/shared/conversion_rate.rb'
|
|
21
|
+
autoload :ConvertedAmount, 'kintsugi_sdk/models/shared/converted_amount.rb'
|
|
22
|
+
autoload :ConvertedSubtotal, 'kintsugi_sdk/models/shared/converted_subtotal.rb'
|
|
23
|
+
autoload :ConvertedTaxAmountCalculated, 'kintsugi_sdk/models/shared/converted_tax_amount_calculated.rb'
|
|
24
|
+
autoload :ConvertedTaxAmountImported, 'kintsugi_sdk/models/shared/converted_tax_amount_imported.rb'
|
|
25
|
+
autoload :ConvertedTaxableAmount, 'kintsugi_sdk/models/shared/converted_taxable_amount.rb'
|
|
26
|
+
autoload :ConvertedTotalAmount, 'kintsugi_sdk/models/shared/converted_total_amount.rb'
|
|
27
|
+
autoload :ConvertedTotalDiscount, 'kintsugi_sdk/models/shared/converted_total_discount.rb'
|
|
28
|
+
autoload :ConvertedTotalTaxAmountCalculated, 'kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rb'
|
|
29
|
+
autoload :ConvertedTotalTaxAmountImported, 'kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rb'
|
|
30
|
+
autoload :ConvertedTotalTaxLiabilityAmount, 'kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rb'
|
|
18
31
|
autoload :CountryCodeEnum, 'kintsugi_sdk/models/shared/countrycodeenum.rb'
|
|
19
32
|
autoload :CurrencyEnum, 'kintsugi_sdk/models/shared/currencyenum.rb'
|
|
33
|
+
autoload :Customer, 'kintsugi_sdk/models/shared/customer.rb'
|
|
20
34
|
autoload :CustomerBase, 'kintsugi_sdk/models/shared/customerbase.rb'
|
|
21
35
|
autoload :CustomerBaseBase, 'kintsugi_sdk/models/shared/customerbasebase.rb'
|
|
22
36
|
autoload :CustomerBasePublic, 'kintsugi_sdk/models/shared/customerbasepublic.rb'
|
|
@@ -25,13 +39,16 @@ module KintsugiSDK
|
|
|
25
39
|
autoload :CustomerTaxRegistrationRead, 'kintsugi_sdk/models/shared/customertaxregistrationread.rb'
|
|
26
40
|
autoload :CustomerTaxTypeEnum, 'kintsugi_sdk/models/shared/customertaxtypeenum.rb'
|
|
27
41
|
autoload :CustomerUpdate, 'kintsugi_sdk/models/shared/customerupdate.rb'
|
|
42
|
+
autoload :DiscountAmount, 'kintsugi_sdk/models/shared/discount_amount.rb'
|
|
28
43
|
autoload :DiscountBuilder, 'kintsugi_sdk/models/shared/discountbuilder.rb'
|
|
44
|
+
autoload :DisregardedTypeEnum, 'kintsugi_sdk/models/shared/disregardedtypeenum.rb'
|
|
45
|
+
autoload :DocumentTypeEnum, 'kintsugi_sdk/models/shared/documenttypeenum.rb'
|
|
29
46
|
autoload :Exemption, 'kintsugi_sdk/models/shared/exemption.rb'
|
|
30
47
|
autoload :ExemptionCreate, 'kintsugi_sdk/models/shared/exemptioncreate.rb'
|
|
31
48
|
autoload :ExemptionRequired, 'kintsugi_sdk/models/shared/exemptionrequired.rb'
|
|
49
|
+
autoload :ExemptionSourceEnum, 'kintsugi_sdk/models/shared/exemptionsourceenum.rb'
|
|
32
50
|
autoload :ExemptionStatus, 'kintsugi_sdk/models/shared/exemptionstatus.rb'
|
|
33
51
|
autoload :ExemptionType, 'kintsugi_sdk/models/shared/exemptiontype.rb'
|
|
34
|
-
autoload :File, 'kintsugi_sdk/models/shared/file.rb'
|
|
35
52
|
autoload :FindThresholdCrossingTransactionState, 'kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rb'
|
|
36
53
|
autoload :JurisdictionType, 'kintsugi_sdk/models/shared/jurisdictiontype.rb'
|
|
37
54
|
autoload :NexusResponse, 'kintsugi_sdk/models/shared/nexusresponse.rb'
|
|
@@ -40,60 +57,111 @@ module KintsugiSDK
|
|
|
40
57
|
autoload :NexusTypeEnum, 'kintsugi_sdk/models/shared/nexustypeenum.rb'
|
|
41
58
|
autoload :PageCustomerRead, 'kintsugi_sdk/models/shared/page_customerread_.rb'
|
|
42
59
|
autoload :PageNexusResponse, 'kintsugi_sdk/models/shared/page_nexusresponse_.rb'
|
|
43
|
-
autoload :PageTransactionEstimateResponse, 'kintsugi_sdk/models/shared/page_transactionestimateresponse_.rb'
|
|
44
60
|
autoload :PageTransactionRead, 'kintsugi_sdk/models/shared/page_transactionread_.rb'
|
|
45
61
|
autoload :PeriodModelEnum, 'kintsugi_sdk/models/shared/periodmodelenum.rb'
|
|
46
62
|
autoload :ProcessingStatusEnum, 'kintsugi_sdk/models/shared/processingstatusenum.rb'
|
|
47
63
|
autoload :ProductRead, 'kintsugi_sdk/models/shared/productread.rb'
|
|
48
64
|
autoload :ProductStatusEnum, 'kintsugi_sdk/models/shared/productstatusenum.rb'
|
|
49
65
|
autoload :ProductUpdate, 'kintsugi_sdk/models/shared/productupdate.rb'
|
|
66
|
+
autoload :ProductUpdateV2, 'kintsugi_sdk/models/shared/productupdatev2.rb'
|
|
67
|
+
autoload :Quantity, 'kintsugi_sdk/models/shared/quantity.rb'
|
|
68
|
+
autoload :QuantityOfTheProduct, 'kintsugi_sdk/models/shared/quantity_of_the_product_.rb'
|
|
69
|
+
autoload :Rate, 'kintsugi_sdk/models/shared/rate.rb'
|
|
50
70
|
autoload :RegistrationsRegimeEnum, 'kintsugi_sdk/models/shared/registrationsregimeenum.rb'
|
|
51
71
|
autoload :RelatedEntityType, 'kintsugi_sdk/models/shared/relatedentitytype.rb'
|
|
52
72
|
autoload :SalesOrTransactionsEnum, 'kintsugi_sdk/models/shared/salesortransactionsenum.rb'
|
|
53
73
|
autoload :Security, 'kintsugi_sdk/models/shared/security.rb'
|
|
54
74
|
autoload :SourceEnum, 'kintsugi_sdk/models/shared/sourceenum.rb'
|
|
55
75
|
autoload :StatusEnum, 'kintsugi_sdk/models/shared/statusenum.rb'
|
|
76
|
+
autoload :TaxAmountCalculated, 'kintsugi_sdk/models/shared/tax_amount_calculated.rb'
|
|
77
|
+
autoload :TaxAmountImported, 'kintsugi_sdk/models/shared/tax_amount_imported.rb'
|
|
78
|
+
autoload :TaxRateCalculated, 'kintsugi_sdk/models/shared/tax_rate_calculated.rb'
|
|
79
|
+
autoload :TaxRateImported, 'kintsugi_sdk/models/shared/tax_rate_imported.rb'
|
|
56
80
|
autoload :TaxExemptionEnum, 'kintsugi_sdk/models/shared/taxexemptionenum.rb'
|
|
57
81
|
autoload :TaxItemBuilder, 'kintsugi_sdk/models/shared/taxitembuilder.rb'
|
|
82
|
+
autoload :TaxItemBuilderAmount, 'kintsugi_sdk/models/shared/taxitembuilder_amount.rb'
|
|
83
|
+
autoload :TaxItemBuilderConvertedAmount, 'kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rb'
|
|
58
84
|
autoload :TaxItemEstimate, 'kintsugi_sdk/models/shared/taxitemestimate.rb'
|
|
59
85
|
autoload :TaxItemRead, 'kintsugi_sdk/models/shared/taxitemread.rb'
|
|
60
86
|
autoload :TaxItemReturnReasonEnum, 'kintsugi_sdk/models/shared/taxitemreturnreasonenum.rb'
|
|
61
87
|
autoload :TaxItemTypeEnum, 'kintsugi_sdk/models/shared/taxitemtypeenum.rb'
|
|
62
88
|
autoload :TaxLiabilitySourceEnum, 'kintsugi_sdk/models/shared/taxliabilitysourceenum.rb'
|
|
89
|
+
autoload :TaxTypeEnum, 'kintsugi_sdk/models/shared/taxtypeenum.rb'
|
|
90
|
+
autoload :TaxableAmount, 'kintsugi_sdk/models/shared/taxable_amount.rb'
|
|
91
|
+
autoload :TotalAmount, 'kintsugi_sdk/models/shared/total_amount.rb'
|
|
92
|
+
autoload :TotalTaxAmountCalculated, 'kintsugi_sdk/models/shared/total_tax_amount_calculated.rb'
|
|
93
|
+
autoload :TotalTaxAmountImported, 'kintsugi_sdk/models/shared/total_tax_amount_imported.rb'
|
|
94
|
+
autoload :TotalTaxLiabilityAmount, 'kintsugi_sdk/models/shared/total_tax_liability_amount.rb'
|
|
95
|
+
autoload :TotalAmountOfThisTransactionItemAfterDiscounts, 'kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rb'
|
|
63
96
|
autoload :TransactionAddressBuilder, 'kintsugi_sdk/models/shared/transactionaddressbuilder.rb'
|
|
64
97
|
autoload :TransactionAddressPublic, 'kintsugi_sdk/models/shared/transactionaddresspublic.rb'
|
|
65
98
|
autoload :TransactionAddressReadOutput, 'kintsugi_sdk/models/shared/transactionaddressread_output.rb'
|
|
66
99
|
autoload :TransactionCreate, 'kintsugi_sdk/models/shared/transactioncreate.rb'
|
|
100
|
+
autoload :TransactionDirectionEnum, 'kintsugi_sdk/models/shared/transactiondirectionenum.rb'
|
|
67
101
|
autoload :TransactionEstimatePublicRequest, 'kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb'
|
|
68
102
|
autoload :TransactionEstimateResponse, 'kintsugi_sdk/models/shared/transactionestimateresponse.rb'
|
|
69
103
|
autoload :TransactionEstimateResponseAddresses, 'kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb'
|
|
70
104
|
autoload :TransactionEstimateResponseType, 'kintsugi_sdk/models/shared/transactionestimateresponse_type.rb'
|
|
71
105
|
autoload :TransactionExemptStatusEnum, 'kintsugi_sdk/models/shared/transactionexemptstatusenum.rb'
|
|
106
|
+
autoload :TransactionImportCustomer, 'kintsugi_sdk/models/shared/transactionimportcustomer.rb'
|
|
72
107
|
autoload :TransactionItemBuilder, 'kintsugi_sdk/models/shared/transactionitembuilder.rb'
|
|
108
|
+
autoload :TransactionItemBuilderAmount, 'kintsugi_sdk/models/shared/transactionitembuilder_amount.rb'
|
|
109
|
+
autoload :TransactionItemBuilderConvertedAmount, 'kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rb'
|
|
110
|
+
autoload :TransactionItemBuilderConvertedSubtotal, 'kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rb'
|
|
111
|
+
autoload :TransactionItemBuilderConvertedTaxAmountCalculated, 'kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rb'
|
|
112
|
+
autoload :TransactionItemBuilderConvertedTaxAmountImported, 'kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rb'
|
|
113
|
+
autoload :TransactionItemBuilderConvertedTaxableAmount, 'kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rb'
|
|
114
|
+
autoload :TransactionItemBuilderConvertedTotalDiscount, 'kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rb'
|
|
115
|
+
autoload :TransactionItemBuilderQuantity, 'kintsugi_sdk/models/shared/transactionitembuilder_quantity.rb'
|
|
116
|
+
autoload :TransactionItemBuilderTaxAmountCalculated, 'kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rb'
|
|
117
|
+
autoload :TransactionItemBuilderTaxAmountImported, 'kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rb'
|
|
118
|
+
autoload :TransactionItemBuilderTaxRateCalculated, 'kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rb'
|
|
119
|
+
autoload :TransactionItemBuilderTaxRateImported, 'kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rb'
|
|
120
|
+
autoload :TransactionItemBuilderTaxableAmount, 'kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rb'
|
|
73
121
|
autoload :TransactionItemCreateUpdate, 'kintsugi_sdk/models/shared/transactionitemcreateupdate.rb'
|
|
122
|
+
autoload :TransactionItemCreateUpdateConvertedSubtotal, 'kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rb'
|
|
123
|
+
autoload :TransactionItemCreateUpdateConvertedTaxableAmount, 'kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rb'
|
|
124
|
+
autoload :TransactionItemCreateUpdateConvertedTotalDiscount, 'kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rb'
|
|
125
|
+
autoload :TransactionItemCreateUpdateTaxRateCalculated, 'kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rb'
|
|
126
|
+
autoload :TransactionItemCreateUpdateTaxRateImported, 'kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rb'
|
|
127
|
+
autoload :TransactionItemCreateUpdateTaxableAmount, 'kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rb'
|
|
74
128
|
autoload :TransactionItemEstimateBase, 'kintsugi_sdk/models/shared/transactionitemestimatebase.rb'
|
|
75
129
|
autoload :TransactionItemEstimateResponse, 'kintsugi_sdk/models/shared/transactionitemestimateresponse.rb'
|
|
76
130
|
autoload :TransactionItemRead, 'kintsugi_sdk/models/shared/transactionitemread.rb'
|
|
77
131
|
autoload :TransactionPublicRequest, 'kintsugi_sdk/models/shared/transactionpublicrequest.rb'
|
|
132
|
+
autoload :TransactionPublicRequestTaxRateCalculated, 'kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rb'
|
|
133
|
+
autoload :TransactionPublicRequestTaxRateImported, 'kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rb'
|
|
134
|
+
autoload :TransactionPublicRequestTaxableAmount, 'kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rb'
|
|
135
|
+
autoload :TransactionPublicRequestTotalAmount, 'kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rb'
|
|
136
|
+
autoload :TransactionPublicRequestTotalTaxAmountCalculated, 'kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rb'
|
|
137
|
+
autoload :TransactionPublicRequestTotalTaxAmountImported, 'kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rb'
|
|
138
|
+
autoload :TransactionPublicRequestTotalTaxLiabilityAmount, 'kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rb'
|
|
78
139
|
autoload :TransactionRead, 'kintsugi_sdk/models/shared/transactionread.rb'
|
|
79
140
|
autoload :TransactionRefundStatus, 'kintsugi_sdk/models/shared/transactionrefundstatus.rb'
|
|
80
141
|
autoload :TransactionStatusEnum, 'kintsugi_sdk/models/shared/transactionstatusenum.rb'
|
|
81
142
|
autoload :TransactionTypeEnum, 'kintsugi_sdk/models/shared/transactiontypeenum.rb'
|
|
82
143
|
autoload :TransactionUpdate, 'kintsugi_sdk/models/shared/transactionupdate.rb'
|
|
144
|
+
autoload :TransactionUpdateTaxRateCalculated, 'kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rb'
|
|
145
|
+
autoload :TransactionUpdateTaxRateImported, 'kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rb'
|
|
146
|
+
autoload :TransactionUpdateTaxableAmount, 'kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rb'
|
|
147
|
+
autoload :TransactionUpdateTotalAmount, 'kintsugi_sdk/models/shared/transactionupdate_total_amount.rb'
|
|
148
|
+
autoload :TransactionUpdateTotalTaxAmountCalculated, 'kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rb'
|
|
149
|
+
autoload :TransactionUpdateTotalTaxAmountImported, 'kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rb'
|
|
150
|
+
autoload :TransactionUpdateTotalTaxLiabilityAmount, 'kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rb'
|
|
83
151
|
autoload :TreatmentEnum, 'kintsugi_sdk/models/shared/treatmentenum.rb'
|
|
84
152
|
autoload :ValidationAddress, 'kintsugi_sdk/models/shared/validationaddress.rb'
|
|
85
153
|
autoload :ValidationError, 'kintsugi_sdk/models/shared/validationerror.rb'
|
|
86
154
|
autoload :Addresses, 'kintsugi_sdk/models/shared/addresses.rb'
|
|
87
155
|
autoload :BackendSrcAddressValidationResponsesValidationErrorItem, 'kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rb'
|
|
88
156
|
autoload :BackendSrcCustomersResponsesValidationErrorItem, 'kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rb'
|
|
89
|
-
autoload :BackendSrcExemptionsModelsExemptionRead, 'kintsugi_sdk/models/shared/backend_src_exemptions_models_exemptionread.rb'
|
|
90
157
|
autoload :BackendSrcExemptionsResponsesValidationErrorItem, 'kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rb'
|
|
158
|
+
autoload :BackendSrcExemptionsSchemasExemptionExemptionRead, 'kintsugi_sdk/models/shared/backend_src_exemptions_schemas_exemption_exemptionread.rb'
|
|
91
159
|
autoload :BackendSrcExemptionsSerializersExemptionRead, 'kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb'
|
|
92
|
-
autoload :
|
|
160
|
+
autoload :BackendSrcProductsSchemasResponsesValidationErrorItem, 'kintsugi_sdk/models/shared/backend_src_products_schemas_responses_validationerroritem.rb'
|
|
93
161
|
autoload :BackendSrcTaxEstimationResponsesValidationErrorItem, 'kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rb'
|
|
94
162
|
autoload :BackendSrcTransactionsResponsesValidationErrorItem, 'kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rb'
|
|
95
163
|
autoload :FastapiPaginationDefaultPageExemptionRead2, 'kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rb'
|
|
96
|
-
autoload :
|
|
164
|
+
autoload :Loc, 'kintsugi_sdk/models/shared/loc.rb'
|
|
97
165
|
autoload :Type, 'kintsugi_sdk/models/shared/type.rb'
|
|
98
166
|
end
|
|
99
167
|
end
|
data/lib/kintsugi_sdk/nexus.rb
CHANGED
|
@@ -39,14 +39,16 @@ module KintsugiSDK
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(request: Models::Ops::GetNexusForOrgV1NexusGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(T.any(Models::Shared::PageNexusResponse, T::Array[Models::Shared::NexusResponse])) }
|
|
45
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
46
|
+
# list - Get nexus for org
|
|
45
47
|
# Get a list of all nexuses for the organization.
|
|
46
48
|
url, params = @sdk_configuration.get_server_details
|
|
47
49
|
base_url = Utils.template_url(url, params)
|
|
48
50
|
url = "#{base_url}/v1/nexus"
|
|
49
|
-
headers =
|
|
51
|
+
headers = Utils.get_headers(request)
|
|
50
52
|
headers = T.cast(headers, T::Hash[String, String])
|
|
51
53
|
query_params = Utils.get_query_params(Models::Ops::GetNexusForOrgV1NexusGetRequest, request, nil)
|
|
52
54
|
headers['Accept'] = 'application/json'
|
|
@@ -56,7 +58,7 @@ module KintsugiSDK
|
|
|
56
58
|
|
|
57
59
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
58
60
|
timeout ||= @sdk_configuration.timeout
|
|
59
|
-
|
|
61
|
+
|
|
60
62
|
|
|
61
63
|
connection = @sdk_configuration.client
|
|
62
64
|
|
|
@@ -71,13 +73,16 @@ module KintsugiSDK
|
|
|
71
73
|
error = T.let(nil, T.nilable(StandardError))
|
|
72
74
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
73
75
|
|
|
74
|
-
|
|
76
|
+
|
|
75
77
|
begin
|
|
76
78
|
http_response = T.must(connection).get(url) do |req|
|
|
77
79
|
req.headers.merge!(headers)
|
|
78
80
|
req.options.timeout = timeout unless timeout.nil?
|
|
79
81
|
req.params = query_params
|
|
80
82
|
Utils.configure_request_security(req, security)
|
|
83
|
+
http_headers&.each do |key, value|
|
|
84
|
+
req.headers[key.to_s] = value
|
|
85
|
+
end
|
|
81
86
|
|
|
82
87
|
@sdk_configuration.hooks.before_request(
|
|
83
88
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -105,13 +110,13 @@ module KintsugiSDK
|
|
|
105
110
|
response: http_response
|
|
106
111
|
)
|
|
107
112
|
end
|
|
108
|
-
|
|
113
|
+
|
|
109
114
|
if http_response.nil?
|
|
110
115
|
raise error if !error.nil?
|
|
111
116
|
raise 'no response'
|
|
112
117
|
end
|
|
113
118
|
end
|
|
114
|
-
|
|
119
|
+
|
|
115
120
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
116
121
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
117
122
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -122,7 +127,7 @@ module KintsugiSDK
|
|
|
122
127
|
response: http_response
|
|
123
128
|
)
|
|
124
129
|
response_data = http_response.env.response_body
|
|
125
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::PageNexusResponse)
|
|
130
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Union.new(Models::Shared::PageNexusResponse, Crystalline::Array.new(Models::Shared::NexusResponse)))
|
|
126
131
|
|
|
127
132
|
return obj
|
|
128
133
|
else
|
|
@@ -151,5 +156,5 @@ module KintsugiSDK
|
|
|
151
156
|
|
|
152
157
|
end
|
|
153
158
|
end
|
|
154
|
-
|
|
159
|
+
end
|
|
155
160
|
end
|
|
@@ -16,7 +16,7 @@ module KintsugiSDK
|
|
|
16
16
|
class OpenApiSDK
|
|
17
17
|
extend T::Sig
|
|
18
18
|
|
|
19
|
-
attr_accessor :address_validation, :customers, :exemptions, :nexus, :products, :
|
|
19
|
+
attr_accessor :address_validation, :customers, :exemptions, :nexus, :products, :tax_estimation, :transactions
|
|
20
20
|
|
|
21
21
|
# Instantiates the SDK, configuring it with the provided parameters.
|
|
22
22
|
#
|
|
@@ -33,14 +33,14 @@ module KintsugiSDK
|
|
|
33
33
|
client: T.nilable(Faraday::Connection),
|
|
34
34
|
retry_config: T.nilable(::KintsugiSDK::Utils::RetryConfig),
|
|
35
35
|
timeout_ms: T.nilable(Integer),
|
|
36
|
-
|
|
36
|
+
api_key_header: T.nilable(::String),
|
|
37
37
|
security_source: T.nilable(T.proc.returns(Models::Shared::Security)),
|
|
38
38
|
server_idx: T.nilable(Integer),
|
|
39
39
|
server_url: T.nilable(String),
|
|
40
40
|
url_params: T.nilable(T::Hash[Symbol, String])
|
|
41
41
|
).void
|
|
42
42
|
end
|
|
43
|
-
def initialize(client: nil, retry_config: nil, timeout_ms: nil,
|
|
43
|
+
def initialize(client: nil, retry_config: nil, timeout_ms: nil, api_key_header: nil, security_source: nil, server_idx: nil, server_url: nil, url_params: nil)
|
|
44
44
|
|
|
45
45
|
connection_options = {
|
|
46
46
|
request: {
|
|
@@ -67,7 +67,7 @@ module KintsugiSDK
|
|
|
67
67
|
hooks,
|
|
68
68
|
retry_config,
|
|
69
69
|
timeout_ms,
|
|
70
|
-
|
|
70
|
+
api_key_header,
|
|
71
71
|
security_source,
|
|
72
72
|
server_url,
|
|
73
73
|
server_idx
|
|
@@ -83,8 +83,8 @@ module KintsugiSDK
|
|
|
83
83
|
@exemptions = Exemptions.new(@sdk_configuration)
|
|
84
84
|
@nexus = Nexus.new(@sdk_configuration)
|
|
85
85
|
@products = Products.new(@sdk_configuration)
|
|
86
|
-
@transactions = Transactions.new(@sdk_configuration)
|
|
87
86
|
@tax_estimation = TaxEstimation.new(@sdk_configuration)
|
|
87
|
+
@transactions = Transactions.new(@sdk_configuration)
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
|
|
@@ -101,5 +101,6 @@ module KintsugiSDK
|
|
|
101
101
|
|
|
102
102
|
return Utils.template_url base_url, url_variables
|
|
103
103
|
end
|
|
104
|
-
|
|
104
|
+
|
|
105
|
+
end
|
|
105
106
|
end
|
|
@@ -39,9 +39,11 @@ module KintsugiSDK
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(request: Models::Ops::GetProductByIdV1ProductsProductIdGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::ProductRead) }
|
|
45
|
+
def get(request:, timeout_ms: nil, http_headers: nil)
|
|
46
|
+
# get - Get product by id
|
|
45
47
|
# The Get Product By ID API retrieves detailed information about
|
|
46
48
|
# a single product by its unique ID. This API helps in viewing the specific details
|
|
47
49
|
# of a product, including its attributes, status, and categorization.
|
|
@@ -53,7 +55,7 @@ module KintsugiSDK
|
|
|
53
55
|
'/v1/products/{product_id}',
|
|
54
56
|
request
|
|
55
57
|
)
|
|
56
|
-
headers =
|
|
58
|
+
headers = Utils.get_headers(request)
|
|
57
59
|
headers = T.cast(headers, T::Hash[String, String])
|
|
58
60
|
headers['Accept'] = 'application/json'
|
|
59
61
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
@@ -62,7 +64,7 @@ module KintsugiSDK
|
|
|
62
64
|
|
|
63
65
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
64
66
|
timeout ||= @sdk_configuration.timeout
|
|
65
|
-
|
|
67
|
+
|
|
66
68
|
|
|
67
69
|
connection = @sdk_configuration.client
|
|
68
70
|
|
|
@@ -77,12 +79,15 @@ module KintsugiSDK
|
|
|
77
79
|
error = T.let(nil, T.nilable(StandardError))
|
|
78
80
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
79
81
|
|
|
80
|
-
|
|
82
|
+
|
|
81
83
|
begin
|
|
82
84
|
http_response = T.must(connection).get(url) do |req|
|
|
83
85
|
req.headers.merge!(headers)
|
|
84
86
|
req.options.timeout = timeout unless timeout.nil?
|
|
85
87
|
Utils.configure_request_security(req, security)
|
|
88
|
+
http_headers&.each do |key, value|
|
|
89
|
+
req.headers[key.to_s] = value
|
|
90
|
+
end
|
|
86
91
|
|
|
87
92
|
@sdk_configuration.hooks.before_request(
|
|
88
93
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -110,13 +115,13 @@ module KintsugiSDK
|
|
|
110
115
|
response: http_response
|
|
111
116
|
)
|
|
112
117
|
end
|
|
113
|
-
|
|
118
|
+
|
|
114
119
|
if http_response.nil?
|
|
115
120
|
raise error if !error.nil?
|
|
116
121
|
raise 'no response'
|
|
117
122
|
end
|
|
118
123
|
end
|
|
119
|
-
|
|
124
|
+
|
|
120
125
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
121
126
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
122
127
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -156,7 +161,7 @@ module KintsugiSDK
|
|
|
156
161
|
response: http_response
|
|
157
162
|
)
|
|
158
163
|
response_data = http_response.env.response_body
|
|
159
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::
|
|
164
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BackendSrcProductsSchemasResponsesValidationErrorResponse)
|
|
160
165
|
raise obj
|
|
161
166
|
else
|
|
162
167
|
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
@@ -186,13 +191,15 @@ module KintsugiSDK
|
|
|
186
191
|
end
|
|
187
192
|
|
|
188
193
|
|
|
189
|
-
sig { params(request: Models::Ops::UpdateProductV1ProductsProductIdPutRequest, timeout_ms: T.nilable(Integer)).returns(Models::Shared::ProductRead) }
|
|
190
|
-
def update(request:, timeout_ms: nil)
|
|
191
|
-
# update - Update
|
|
194
|
+
sig { params(request: Models::Ops::UpdateProductV1ProductsProductIdPutRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::ProductRead) }
|
|
195
|
+
def update(request:, timeout_ms: nil, http_headers: nil)
|
|
196
|
+
# update - Update product
|
|
192
197
|
# The Update Product API allows users to modify the details of
|
|
193
198
|
# an existing product identified by its unique product_id. You can
|
|
194
|
-
# retrieve supported categories and subcategories from
|
|
195
|
-
# [GET /products/categories endpoint](/reference/api/products/get-product-categories)
|
|
199
|
+
# retrieve supported categories and subcategories from the
|
|
200
|
+
# [GET /products/categories endpoint](/reference/api/products/get-product-categories),
|
|
201
|
+
# or browse the full catalog with descriptions and examples in the
|
|
202
|
+
# [Product Categories guide](/docs/guides/product-categories)
|
|
196
203
|
url, params = @sdk_configuration.get_server_details
|
|
197
204
|
base_url = Utils.template_url(url, params)
|
|
198
205
|
url = Utils.generate_url(
|
|
@@ -201,9 +208,9 @@ module KintsugiSDK
|
|
|
201
208
|
'/v1/products/{product_id}',
|
|
202
209
|
request
|
|
203
210
|
)
|
|
204
|
-
headers =
|
|
211
|
+
headers = Utils.get_headers(request)
|
|
205
212
|
headers = T.cast(headers, T::Hash[String, String])
|
|
206
|
-
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :
|
|
213
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :request_body, :json)
|
|
207
214
|
headers['content-type'] = req_content_type
|
|
208
215
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
209
216
|
|
|
@@ -221,7 +228,7 @@ module KintsugiSDK
|
|
|
221
228
|
|
|
222
229
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
223
230
|
timeout ||= @sdk_configuration.timeout
|
|
224
|
-
|
|
231
|
+
|
|
225
232
|
|
|
226
233
|
connection = @sdk_configuration.client
|
|
227
234
|
|
|
@@ -236,13 +243,16 @@ module KintsugiSDK
|
|
|
236
243
|
error = T.let(nil, T.nilable(StandardError))
|
|
237
244
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
238
245
|
|
|
239
|
-
|
|
246
|
+
|
|
240
247
|
begin
|
|
241
248
|
http_response = T.must(connection).put(url) do |req|
|
|
242
249
|
req.body = body
|
|
243
250
|
req.headers.merge!(headers)
|
|
244
251
|
req.options.timeout = timeout unless timeout.nil?
|
|
245
252
|
Utils.configure_request_security(req, security)
|
|
253
|
+
http_headers&.each do |key, value|
|
|
254
|
+
req.headers[key.to_s] = value
|
|
255
|
+
end
|
|
246
256
|
|
|
247
257
|
@sdk_configuration.hooks.before_request(
|
|
248
258
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -270,13 +280,13 @@ module KintsugiSDK
|
|
|
270
280
|
response: http_response
|
|
271
281
|
)
|
|
272
282
|
end
|
|
273
|
-
|
|
283
|
+
|
|
274
284
|
if http_response.nil?
|
|
275
285
|
raise error if !error.nil?
|
|
276
286
|
raise 'no response'
|
|
277
287
|
end
|
|
278
288
|
end
|
|
279
|
-
|
|
289
|
+
|
|
280
290
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
281
291
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
282
292
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -316,7 +326,7 @@ module KintsugiSDK
|
|
|
316
326
|
response: http_response
|
|
317
327
|
)
|
|
318
328
|
response_data = http_response.env.response_body
|
|
319
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::
|
|
329
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BackendSrcProductsSchemasResponsesValidationErrorResponse)
|
|
320
330
|
raise obj
|
|
321
331
|
else
|
|
322
332
|
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
@@ -344,5 +354,5 @@ module KintsugiSDK
|
|
|
344
354
|
|
|
345
355
|
end
|
|
346
356
|
end
|
|
347
|
-
|
|
357
|
+
end
|
|
348
358
|
end
|
|
@@ -13,10 +13,9 @@ require_relative 'utils/retries'
|
|
|
13
13
|
module KintsugiSDK
|
|
14
14
|
extend T::Sig
|
|
15
15
|
|
|
16
|
-
SERVERS = [
|
|
17
|
-
'https://api.trykintsugi.com', # 1 - Production
|
|
18
|
-
].freeze
|
|
19
|
-
SERVERS = T.let(SERVERS, T::Array[String])
|
|
16
|
+
SERVERS = T.let([
|
|
17
|
+
'https://api.trykintsugi.com', # 1 - Production
|
|
18
|
+
].freeze, T::Array[String])
|
|
20
19
|
# Contains the list of servers available to the SDK
|
|
21
20
|
|
|
22
21
|
class SDKConfiguration
|
|
@@ -68,13 +67,13 @@ module KintsugiSDK
|
|
|
68
67
|
hooks: ::KintsugiSDK::SDKHooks::Hooks,
|
|
69
68
|
retry_config: T.nilable(::KintsugiSDK::Utils::RetryConfig),
|
|
70
69
|
timeout_ms: T.nilable(Integer),
|
|
71
|
-
|
|
70
|
+
api_key_header: T.nilable(::String),
|
|
72
71
|
security_source: T.nilable(T.proc.returns(Models::Shared::Security)),
|
|
73
72
|
server_url: T.nilable(String),
|
|
74
73
|
server_idx: T.nilable(Integer)
|
|
75
74
|
).void
|
|
76
75
|
end
|
|
77
|
-
def initialize(client, hooks, retry_config, timeout_ms,
|
|
76
|
+
def initialize(client, hooks, retry_config, timeout_ms, api_key_header, security_source, server_url, server_idx)
|
|
78
77
|
@client = client
|
|
79
78
|
@hooks = hooks
|
|
80
79
|
@retry_config = retry_config
|
|
@@ -84,14 +83,14 @@ module KintsugiSDK
|
|
|
84
83
|
raise StandardError, "Invalid server index #{server_idx}" if @server_idx.negative? || @server_idx >= SERVERS.length
|
|
85
84
|
if !security_source.nil?
|
|
86
85
|
@security_source = security_source
|
|
87
|
-
elsif !
|
|
88
|
-
@security_source = -> {
|
|
86
|
+
elsif !api_key_header.nil?
|
|
87
|
+
@security_source = -> { Models::Shared::Security.new(api_key_header: api_key_header) }
|
|
89
88
|
end
|
|
90
89
|
@language = 'ruby'
|
|
91
90
|
@openapi_doc_version = '1.0.0'
|
|
92
|
-
@sdk_version = '5.
|
|
93
|
-
@gen_version = '2.
|
|
94
|
-
@user_agent = 'speakeasy-sdk/ruby 5.
|
|
91
|
+
@sdk_version = '5.7.0'
|
|
92
|
+
@gen_version = '2.937.18'
|
|
93
|
+
@user_agent = 'speakeasy-sdk/ruby 5.7.0 2.937.18 1.0.0 kintsugi_sdk'
|
|
95
94
|
end
|
|
96
95
|
|
|
97
96
|
sig { returns([String, T::Hash[Symbol, String]]) }
|