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
|
@@ -39,14 +39,16 @@ module KintsugiSDK
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(request: Models::Ops::GetExemptionsV1ExemptionsGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::FastapiPaginationDefaultPageExemptionRead2) }
|
|
45
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
46
|
+
# list - Get exemptions
|
|
45
47
|
# Retrieve a list of exemptions based on filters.
|
|
46
48
|
url, params = @sdk_configuration.get_server_details
|
|
47
49
|
base_url = Utils.template_url(url, params)
|
|
48
50
|
url = "#{base_url}/v1/exemptions"
|
|
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::GetExemptionsV1ExemptionsGetRequest, 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')
|
|
@@ -181,18 +186,18 @@ module KintsugiSDK
|
|
|
181
186
|
end
|
|
182
187
|
|
|
183
188
|
|
|
184
|
-
sig { params(request: Models::
|
|
185
|
-
def create(request:, timeout_ms: nil)
|
|
186
|
-
# create - Create
|
|
189
|
+
sig { params(request: Models::Ops::CreateExemptionV1ExemptionsPostRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::BackendSrcExemptionsSerializersExemptionRead) }
|
|
190
|
+
def create(request:, timeout_ms: nil, http_headers: nil)
|
|
191
|
+
# create - Create exemption
|
|
187
192
|
# The Create Exemption API allows you to create a new exemption record.
|
|
188
193
|
# This includes defining details such as exemption type, jurisdiction,
|
|
189
194
|
# Country, State, validity dates, etc.
|
|
190
195
|
url, params = @sdk_configuration.get_server_details
|
|
191
196
|
base_url = Utils.template_url(url, params)
|
|
192
197
|
url = "#{base_url}/v1/exemptions"
|
|
193
|
-
headers =
|
|
198
|
+
headers = Utils.get_headers(request)
|
|
194
199
|
headers = T.cast(headers, T::Hash[String, String])
|
|
195
|
-
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :
|
|
200
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :exemption_create, :json)
|
|
196
201
|
headers['content-type'] = req_content_type
|
|
197
202
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
198
203
|
|
|
@@ -210,7 +215,7 @@ module KintsugiSDK
|
|
|
210
215
|
|
|
211
216
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
212
217
|
timeout ||= @sdk_configuration.timeout
|
|
213
|
-
|
|
218
|
+
|
|
214
219
|
|
|
215
220
|
connection = @sdk_configuration.client
|
|
216
221
|
|
|
@@ -225,13 +230,16 @@ module KintsugiSDK
|
|
|
225
230
|
error = T.let(nil, T.nilable(StandardError))
|
|
226
231
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
227
232
|
|
|
228
|
-
|
|
233
|
+
|
|
229
234
|
begin
|
|
230
235
|
http_response = T.must(connection).post(url) do |req|
|
|
231
236
|
req.body = body
|
|
232
237
|
req.headers.merge!(headers)
|
|
233
238
|
req.options.timeout = timeout unless timeout.nil?
|
|
234
239
|
Utils.configure_request_security(req, security)
|
|
240
|
+
http_headers&.each do |key, value|
|
|
241
|
+
req.headers[key.to_s] = value
|
|
242
|
+
end
|
|
235
243
|
|
|
236
244
|
@sdk_configuration.hooks.before_request(
|
|
237
245
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -259,13 +267,13 @@ module KintsugiSDK
|
|
|
259
267
|
response: http_response
|
|
260
268
|
)
|
|
261
269
|
end
|
|
262
|
-
|
|
270
|
+
|
|
263
271
|
if http_response.nil?
|
|
264
272
|
raise error if !error.nil?
|
|
265
273
|
raise 'no response'
|
|
266
274
|
end
|
|
267
275
|
end
|
|
268
|
-
|
|
276
|
+
|
|
269
277
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
270
278
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
271
279
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -335,9 +343,9 @@ module KintsugiSDK
|
|
|
335
343
|
end
|
|
336
344
|
|
|
337
345
|
|
|
338
|
-
sig { params(request: Models::Ops::GetExemptionByIdV1ExemptionsExemptionIdGetRequest, timeout_ms: T.nilable(Integer)).returns(Models::Shared::
|
|
339
|
-
def get(request:, timeout_ms: nil)
|
|
340
|
-
# get - Get
|
|
346
|
+
sig { params(request: Models::Ops::GetExemptionByIdV1ExemptionsExemptionIdGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::BackendSrcExemptionsSchemasExemptionExemptionRead) }
|
|
347
|
+
def get(request:, timeout_ms: nil, http_headers: nil)
|
|
348
|
+
# get - Get exemption by id
|
|
341
349
|
# The Get Exemption By ID API retrieves a specific exemption record by
|
|
342
350
|
# its unique ID. This API is useful for retrieving detailed information
|
|
343
351
|
# about a particular exemption, including its associated
|
|
@@ -350,7 +358,7 @@ module KintsugiSDK
|
|
|
350
358
|
'/v1/exemptions/{exemption_id}',
|
|
351
359
|
request
|
|
352
360
|
)
|
|
353
|
-
headers =
|
|
361
|
+
headers = Utils.get_headers(request)
|
|
354
362
|
headers = T.cast(headers, T::Hash[String, String])
|
|
355
363
|
headers['Accept'] = 'application/json'
|
|
356
364
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
@@ -359,7 +367,7 @@ module KintsugiSDK
|
|
|
359
367
|
|
|
360
368
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
361
369
|
timeout ||= @sdk_configuration.timeout
|
|
362
|
-
|
|
370
|
+
|
|
363
371
|
|
|
364
372
|
connection = @sdk_configuration.client
|
|
365
373
|
|
|
@@ -374,12 +382,15 @@ module KintsugiSDK
|
|
|
374
382
|
error = T.let(nil, T.nilable(StandardError))
|
|
375
383
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
376
384
|
|
|
377
|
-
|
|
385
|
+
|
|
378
386
|
begin
|
|
379
387
|
http_response = T.must(connection).get(url) do |req|
|
|
380
388
|
req.headers.merge!(headers)
|
|
381
389
|
req.options.timeout = timeout unless timeout.nil?
|
|
382
390
|
Utils.configure_request_security(req, security)
|
|
391
|
+
http_headers&.each do |key, value|
|
|
392
|
+
req.headers[key.to_s] = value
|
|
393
|
+
end
|
|
383
394
|
|
|
384
395
|
@sdk_configuration.hooks.before_request(
|
|
385
396
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -407,13 +418,13 @@ module KintsugiSDK
|
|
|
407
418
|
response: http_response
|
|
408
419
|
)
|
|
409
420
|
end
|
|
410
|
-
|
|
421
|
+
|
|
411
422
|
if http_response.nil?
|
|
412
423
|
raise error if !error.nil?
|
|
413
424
|
raise 'no response'
|
|
414
425
|
end
|
|
415
426
|
end
|
|
416
|
-
|
|
427
|
+
|
|
417
428
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
418
429
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
419
430
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -424,7 +435,7 @@ module KintsugiSDK
|
|
|
424
435
|
response: http_response
|
|
425
436
|
)
|
|
426
437
|
response_data = http_response.env.response_body
|
|
427
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::
|
|
438
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::BackendSrcExemptionsSchemasExemptionExemptionRead)
|
|
428
439
|
|
|
429
440
|
return obj
|
|
430
441
|
else
|
|
@@ -483,34 +494,23 @@ module KintsugiSDK
|
|
|
483
494
|
end
|
|
484
495
|
|
|
485
496
|
|
|
486
|
-
sig { params(request: Models::Ops::
|
|
487
|
-
def
|
|
488
|
-
#
|
|
489
|
-
# The
|
|
490
|
-
#
|
|
491
|
-
# This is
|
|
492
|
-
#
|
|
497
|
+
sig { params(request: Models::Ops::GetExemptionAttachmentsRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(T::Array[Models::Shared::AttachmentRead]) }
|
|
498
|
+
def get_attachments(request:, timeout_ms: nil, http_headers: nil)
|
|
499
|
+
# get_attachments - Get attachments for exemption
|
|
500
|
+
# The Get Attachments for Exemption API retrieves all
|
|
501
|
+
# attachments associated with a specific exemption.
|
|
502
|
+
# This is used to view and manage supporting documents
|
|
503
|
+
# like exemption certificates uploaded for a particular exemption record.
|
|
493
504
|
url, params = @sdk_configuration.get_server_details
|
|
494
505
|
base_url = Utils.template_url(url, params)
|
|
495
506
|
url = Utils.generate_url(
|
|
496
|
-
Models::Ops::
|
|
507
|
+
Models::Ops::GetExemptionAttachmentsRequest,
|
|
497
508
|
base_url,
|
|
498
509
|
'/v1/exemptions/{exemption_id}/attachments',
|
|
499
510
|
request
|
|
500
511
|
)
|
|
501
|
-
headers =
|
|
512
|
+
headers = Utils.get_headers(request)
|
|
502
513
|
headers = T.cast(headers, T::Hash[String, String])
|
|
503
|
-
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post, :multipart)
|
|
504
|
-
headers['content-type'] = req_content_type
|
|
505
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
506
|
-
|
|
507
|
-
if form && !form.empty?
|
|
508
|
-
body = Utils.encode_form(form)
|
|
509
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
510
|
-
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
511
|
-
else
|
|
512
|
-
body = data
|
|
513
|
-
end
|
|
514
514
|
headers['Accept'] = 'application/json'
|
|
515
515
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
516
516
|
|
|
@@ -518,7 +518,7 @@ module KintsugiSDK
|
|
|
518
518
|
|
|
519
519
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
520
520
|
timeout ||= @sdk_configuration.timeout
|
|
521
|
-
|
|
521
|
+
|
|
522
522
|
|
|
523
523
|
connection = @sdk_configuration.client
|
|
524
524
|
|
|
@@ -526,20 +526,22 @@ module KintsugiSDK
|
|
|
526
526
|
config: @sdk_configuration,
|
|
527
527
|
base_url: base_url,
|
|
528
528
|
oauth2_scopes: nil,
|
|
529
|
-
operation_id: '
|
|
529
|
+
operation_id: 'getExemptionAttachments',
|
|
530
530
|
security_source: @sdk_configuration.security_source
|
|
531
531
|
)
|
|
532
532
|
|
|
533
533
|
error = T.let(nil, T.nilable(StandardError))
|
|
534
534
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
535
535
|
|
|
536
|
-
|
|
536
|
+
|
|
537
537
|
begin
|
|
538
|
-
http_response = T.must(connection).
|
|
539
|
-
req.body = body
|
|
538
|
+
http_response = T.must(connection).get(url) do |req|
|
|
540
539
|
req.headers.merge!(headers)
|
|
541
540
|
req.options.timeout = timeout unless timeout.nil?
|
|
542
541
|
Utils.configure_request_security(req, security)
|
|
542
|
+
http_headers&.each do |key, value|
|
|
543
|
+
req.headers[key.to_s] = value
|
|
544
|
+
end
|
|
543
545
|
|
|
544
546
|
@sdk_configuration.hooks.before_request(
|
|
545
547
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -567,13 +569,13 @@ module KintsugiSDK
|
|
|
567
569
|
response: http_response
|
|
568
570
|
)
|
|
569
571
|
end
|
|
570
|
-
|
|
572
|
+
|
|
571
573
|
if http_response.nil?
|
|
572
574
|
raise error if !error.nil?
|
|
573
575
|
raise 'no response'
|
|
574
576
|
end
|
|
575
577
|
end
|
|
576
|
-
|
|
578
|
+
|
|
577
579
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
578
580
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
579
581
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -584,7 +586,7 @@ module KintsugiSDK
|
|
|
584
586
|
response: http_response
|
|
585
587
|
)
|
|
586
588
|
response_data = http_response.env.response_body
|
|
587
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AttachmentRead)
|
|
589
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Crystalline::Array.new(Models::Shared::AttachmentRead))
|
|
588
590
|
|
|
589
591
|
return obj
|
|
590
592
|
else
|
|
@@ -618,20 +620,6 @@ module KintsugiSDK
|
|
|
618
620
|
else
|
|
619
621
|
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
620
622
|
end
|
|
621
|
-
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
622
|
-
if Utils.match_content_type(content_type, 'application/json')
|
|
623
|
-
@sdk_configuration.hooks.after_success(
|
|
624
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
625
|
-
hook_ctx: hook_ctx
|
|
626
|
-
),
|
|
627
|
-
response: http_response
|
|
628
|
-
)
|
|
629
|
-
response_data = http_response.env.response_body
|
|
630
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
|
|
631
|
-
raise obj
|
|
632
|
-
else
|
|
633
|
-
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
634
|
-
end
|
|
635
623
|
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
636
624
|
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
637
625
|
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
@@ -643,23 +631,34 @@ module KintsugiSDK
|
|
|
643
631
|
end
|
|
644
632
|
|
|
645
633
|
|
|
646
|
-
sig { params(request: Models::Ops::
|
|
647
|
-
def
|
|
648
|
-
#
|
|
649
|
-
# The
|
|
650
|
-
#
|
|
651
|
-
# This is used to
|
|
652
|
-
#
|
|
634
|
+
sig { params(request: Models::Ops::UploadExemptionCertRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::AttachmentRead) }
|
|
635
|
+
def upload_certificate(request:, timeout_ms: nil, http_headers: nil)
|
|
636
|
+
# upload_certificate - Upload exemption certificate
|
|
637
|
+
# The Upload Exemption Certificate API allows you
|
|
638
|
+
# to upload a file attachment (e.g., exemption certificate) for a specific exemption.
|
|
639
|
+
# This is primarily used to associate supporting documents with an exemption record
|
|
640
|
+
# to ensure compliance and facilitate verification.
|
|
653
641
|
url, params = @sdk_configuration.get_server_details
|
|
654
642
|
base_url = Utils.template_url(url, params)
|
|
655
643
|
url = Utils.generate_url(
|
|
656
|
-
Models::Ops::
|
|
644
|
+
Models::Ops::UploadExemptionCertRequest,
|
|
657
645
|
base_url,
|
|
658
646
|
'/v1/exemptions/{exemption_id}/attachments',
|
|
659
647
|
request
|
|
660
648
|
)
|
|
661
|
-
headers =
|
|
649
|
+
headers = Utils.get_headers(request)
|
|
662
650
|
headers = T.cast(headers, T::Hash[String, String])
|
|
651
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post, :multipart)
|
|
652
|
+
headers['content-type'] = req_content_type
|
|
653
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
654
|
+
|
|
655
|
+
if form && !form.empty?
|
|
656
|
+
body = Utils.encode_form(form)
|
|
657
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
658
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
659
|
+
else
|
|
660
|
+
body = data
|
|
661
|
+
end
|
|
663
662
|
headers['Accept'] = 'application/json'
|
|
664
663
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
665
664
|
|
|
@@ -667,7 +666,7 @@ module KintsugiSDK
|
|
|
667
666
|
|
|
668
667
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
669
668
|
timeout ||= @sdk_configuration.timeout
|
|
670
|
-
|
|
669
|
+
|
|
671
670
|
|
|
672
671
|
connection = @sdk_configuration.client
|
|
673
672
|
|
|
@@ -675,19 +674,23 @@ module KintsugiSDK
|
|
|
675
674
|
config: @sdk_configuration,
|
|
676
675
|
base_url: base_url,
|
|
677
676
|
oauth2_scopes: nil,
|
|
678
|
-
operation_id: '
|
|
677
|
+
operation_id: 'uploadExemptionCert',
|
|
679
678
|
security_source: @sdk_configuration.security_source
|
|
680
679
|
)
|
|
681
680
|
|
|
682
681
|
error = T.let(nil, T.nilable(StandardError))
|
|
683
682
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
684
683
|
|
|
685
|
-
|
|
684
|
+
|
|
686
685
|
begin
|
|
687
|
-
http_response = T.must(connection).
|
|
686
|
+
http_response = T.must(connection).post(url) do |req|
|
|
687
|
+
req.body = body
|
|
688
688
|
req.headers.merge!(headers)
|
|
689
689
|
req.options.timeout = timeout unless timeout.nil?
|
|
690
690
|
Utils.configure_request_security(req, security)
|
|
691
|
+
http_headers&.each do |key, value|
|
|
692
|
+
req.headers[key.to_s] = value
|
|
693
|
+
end
|
|
691
694
|
|
|
692
695
|
@sdk_configuration.hooks.before_request(
|
|
693
696
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -715,13 +718,13 @@ module KintsugiSDK
|
|
|
715
718
|
response: http_response
|
|
716
719
|
)
|
|
717
720
|
end
|
|
718
|
-
|
|
721
|
+
|
|
719
722
|
if http_response.nil?
|
|
720
723
|
raise error if !error.nil?
|
|
721
724
|
raise 'no response'
|
|
722
725
|
end
|
|
723
726
|
end
|
|
724
|
-
|
|
727
|
+
|
|
725
728
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
726
729
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
727
730
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -732,7 +735,7 @@ module KintsugiSDK
|
|
|
732
735
|
response: http_response
|
|
733
736
|
)
|
|
734
737
|
response_data = http_response.env.response_body
|
|
735
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data),
|
|
738
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::AttachmentRead)
|
|
736
739
|
|
|
737
740
|
return obj
|
|
738
741
|
else
|
|
@@ -766,6 +769,20 @@ module KintsugiSDK
|
|
|
766
769
|
else
|
|
767
770
|
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
768
771
|
end
|
|
772
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
|
773
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
774
|
+
@sdk_configuration.hooks.after_success(
|
|
775
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
776
|
+
hook_ctx: hook_ctx
|
|
777
|
+
),
|
|
778
|
+
response: http_response
|
|
779
|
+
)
|
|
780
|
+
response_data = http_response.env.response_body
|
|
781
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ErrorResponse)
|
|
782
|
+
raise obj
|
|
783
|
+
else
|
|
784
|
+
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
785
|
+
end
|
|
769
786
|
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
770
787
|
raise ::KintsugiSDK::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
771
788
|
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
@@ -775,5 +792,5 @@ module KintsugiSDK
|
|
|
775
792
|
|
|
776
793
|
end
|
|
777
794
|
end
|
|
778
|
-
|
|
795
|
+
end
|
|
779
796
|
end
|
|
@@ -8,14 +8,14 @@ module KintsugiSDK
|
|
|
8
8
|
module Models
|
|
9
9
|
module Errors
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class BackendSrcProductsSchemasResponsesValidationErrorResponse < StandardError
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
field :detail, Crystalline::Array.new(Models::Shared::
|
|
16
|
+
field :detail, Crystalline::Array.new(Models::Shared::BackendSrcProductsSchemasResponsesValidationErrorItem), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('detail'), required: true } }
|
|
17
17
|
|
|
18
|
-
sig { params(detail: T::Array[Models::Shared::
|
|
18
|
+
sig { params(detail: T::Array[Models::Shared::BackendSrcProductsSchemasResponsesValidationErrorItem]).void }
|
|
19
19
|
def initialize(detail:)
|
|
20
20
|
@detail = detail
|
|
21
21
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class KintsugiSDK::Models::Errors::BackendSrcProductsSchemasResponsesValidationErrorResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class KintsugiSDK::Models::Errors::BackendSrcProductsSchemasResponsesValidationErrorResponse
|
|
11
|
+
def detail(); end
|
|
12
|
+
def detail=(str_); end
|
|
13
|
+
end
|
|
@@ -12,7 +12,7 @@ module KintsugiSDK
|
|
|
12
12
|
autoload :BackendSrcAddressValidationResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rb'
|
|
13
13
|
autoload :BackendSrcCustomersResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rb'
|
|
14
14
|
autoload :BackendSrcExemptionsResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rb'
|
|
15
|
-
autoload :
|
|
15
|
+
autoload :BackendSrcProductsSchemasResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_products_schemas_responses_validationerrorresponse.rb'
|
|
16
16
|
autoload :BackendSrcTaxEstimationResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rb'
|
|
17
17
|
autoload :BackendSrcTransactionsResponsesValidationErrorResponse, 'kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rb'
|
|
18
18
|
end
|
data/lib/kintsugi_sdk/models/ops/{search_v1_address_validation_search_post_security.rb → country.rb}
RENAMED
|
@@ -8,22 +8,17 @@ module KintsugiSDK
|
|
|
8
8
|
module Models
|
|
9
9
|
module Ops
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class Country
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
sig { params(api_key_header: ::String).void }
|
|
19
|
-
def initialize(api_key_header:)
|
|
20
|
-
@api_key_header = api_key_header
|
|
21
|
-
end
|
|
16
|
+
|
|
17
|
+
def initialize; end
|
|
22
18
|
|
|
23
19
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
20
|
def ==(other)
|
|
25
21
|
return false unless other.is_a? self.class
|
|
26
|
-
return false unless @api_key_header == other.api_key_header
|
|
27
22
|
true
|
|
28
23
|
end
|
|
29
24
|
end
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class KintsugiSDK::Models::
|
|
5
|
+
class KintsugiSDK::Models::Ops::Country
|
|
6
6
|
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class KintsugiSDK::Models::
|
|
11
|
-
end
|
|
10
|
+
class KintsugiSDK::Models::Ops::Country
|
|
11
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module KintsugiSDK
|
|
8
|
+
module Models
|
|
9
|
+
module Ops
|
|
10
|
+
|
|
11
|
+
class CountryCode
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def initialize; end
|
|
18
|
+
|
|
19
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
20
|
+
def ==(other)
|
|
21
|
+
return false unless other.is_a? self.class
|
|
22
|
+
true
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|