kintsugi_sdk 5.6.1 → 5.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kintsugi_sdk/addressvalidation.rb +27 -25
- data/lib/kintsugi_sdk/customers.rb +133 -131
- data/lib/kintsugi_sdk/exemptions.rb +94 -94
- data/lib/kintsugi_sdk/models/errors/apierror.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/{backend_src_products_responses_validationerrorresponse.rb → backend_src_products_schemas_responses_validationerrorresponse.rb} +3 -3
- data/lib/kintsugi_sdk/models/errors/backend_src_products_schemas_responses_validationerrorresponse.rbi +13 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/errorresponse.rb +1 -1
- data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rb +1 -1
- data/lib/kintsugi_sdk/models/errors.rb +1 -1
- data/lib/kintsugi_sdk/models/ops/{search_v1_address_validation_search_post_security.rb → country.rb} +3 -8
- data/lib/kintsugi_sdk/models/{shared/registration.rbi → ops/country.rbi} +2 -2
- data/lib/kintsugi_sdk/models/ops/country_code.rb +27 -0
- data/lib/kintsugi_sdk/models/ops/country_code.rbi +11 -0
- data/lib/kintsugi_sdk/models/ops/create_customer_v1_customers_post_request.rb +36 -0
- data/lib/kintsugi_sdk/models/ops/create_customer_v1_customers_post_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/create_exemption_v1_exemptions_post_request.rb +36 -0
- data/lib/kintsugi_sdk/models/ops/create_exemption_v1_exemptions_post_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/create_transaction_v1_transactions_post_request.rb +36 -0
- data/lib/kintsugi_sdk/models/ops/create_transaction_v1_transactions_post_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rb +13 -5
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rbi +4 -0
- data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rb +19 -11
- data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rbi +6 -2
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rb +29 -13
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rbi +14 -6
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_response_get_nexus_for_org_v1_nexus_get.rb +27 -0
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_response_get_nexus_for_org_v1_nexus_get.rbi +11 -0
- data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rb +44 -18
- data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rbi +14 -4
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rb +14 -2
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rbi +6 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_response_get_transactions_by_customer_id_v1_cus_6a2c85.rb +27 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_response_get_transactions_by_customer_id_v1_cus_6a2c85.rbi +11 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/queryparam_country.rb +27 -0
- data/lib/kintsugi_sdk/models/ops/queryparam_country.rbi +11 -0
- data/lib/kintsugi_sdk/models/ops/suggestions_v1_address_validation_suggestions_post_request.rb +36 -0
- data/lib/kintsugi_sdk/models/ops/suggestions_v1_address_validation_suggestions_post_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_product.rb +27 -0
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_product.rbi +11 -0
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rb +9 -5
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rbi +4 -2
- data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rb +6 -2
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rbi +2 -0
- data/lib/kintsugi_sdk/models/ops.rb +10 -1
- data/lib/kintsugi_sdk/models/shared/addressbase.rb +1 -1
- data/lib/kintsugi_sdk/models/shared/addresses.rb +7 -3
- data/lib/kintsugi_sdk/models/shared/addresses.rbi +2 -0
- data/lib/kintsugi_sdk/models/shared/amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rb → backend_src_exemptions_schemas_exemption_exemptionread.rb} +15 -10
- data/lib/kintsugi_sdk/models/shared/{backend_src_exemptions_models_exemptionread.rbi → backend_src_exemptions_schemas_exemption_exemptionread.rbi} +6 -4
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb +13 -9
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rb → backend_src_products_schemas_responses_validationerroritem.rb} +3 -3
- data/lib/kintsugi_sdk/models/shared/{backend_src_products_responses_validationerroritem.rbi → backend_src_products_schemas_responses_validationerroritem.rbi} +2 -2
- data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/{registration.rb → context.rb} +1 -1
- data/lib/kintsugi_sdk/models/shared/context.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/conversion_rate.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/conversion_rate.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_subtotal.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_subtotal.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_discount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_discount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/converted_total_tax_liability_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/currencyenum.rb +1 -1
- data/lib/kintsugi_sdk/models/shared/customer.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/customer.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/customerbase.rb +16 -12
- data/lib/kintsugi_sdk/models/shared/customerbase.rbi +6 -4
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rb +16 -12
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rbi +6 -4
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rb +16 -12
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rbi +6 -4
- data/lib/kintsugi_sdk/models/shared/customercreate.rb +20 -16
- data/lib/kintsugi_sdk/models/shared/customercreate.rbi +8 -6
- data/lib/kintsugi_sdk/models/shared/customerread.rb +24 -16
- data/lib/kintsugi_sdk/models/shared/customerread.rbi +10 -6
- data/lib/kintsugi_sdk/models/shared/customerupdate.rb +13 -9
- data/lib/kintsugi_sdk/models/shared/customerupdate.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/discount_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/discount_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/discountbuilder.rb +6 -6
- data/lib/kintsugi_sdk/models/shared/discountbuilder.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/disregardedtypeenum.rb +20 -0
- data/lib/kintsugi_sdk/models/shared/disregardedtypeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/documenttypeenum.rb +21 -0
- data/lib/kintsugi_sdk/models/shared/documenttypeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rb +8 -4
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rbi +2 -0
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rb +22 -2
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rbi +10 -0
- data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rb +46 -0
- data/lib/kintsugi_sdk/models/shared/exemptionsourceenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/exemptiontype.rb +2 -0
- data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rb +2 -2
- data/lib/kintsugi_sdk/models/shared/loc.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/loc.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rb +130 -90
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rbi +58 -44
- data/lib/kintsugi_sdk/models/shared/nexustypeenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/periodmodelenum.rb +2 -0
- data/lib/kintsugi_sdk/models/shared/processingstatusenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/productread.rb +41 -15
- data/lib/kintsugi_sdk/models/shared/productread.rbi +18 -4
- data/lib/kintsugi_sdk/models/shared/productstatusenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/productupdate.rb +6 -6
- data/lib/kintsugi_sdk/models/shared/productupdate.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/productupdatev2.rb +64 -0
- data/lib/kintsugi_sdk/models/shared/productupdatev2.rbi +29 -0
- data/lib/kintsugi_sdk/models/shared/quantity.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/quantity.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/quantity_of_the_product_.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/quantity_of_the_product_.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/rate.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/rate.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/relatedentitytype.rb +4 -0
- data/lib/kintsugi_sdk/models/shared/security.rb +3 -7
- data/lib/kintsugi_sdk/models/shared/security.rbi +0 -2
- data/lib/kintsugi_sdk/models/shared/sourceenum.rb +23 -0
- data/lib/kintsugi_sdk/models/shared/tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/tax_rate_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/tax_rate_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/tax_rate_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/tax_rate_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rb +2 -0
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rb +14 -14
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rbi +4 -4
- data/lib/kintsugi_sdk/models/shared/taxitembuilder_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/taxitembuilder_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/taxitembuilder_converted_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxitemestimate.rb +10 -10
- data/lib/kintsugi_sdk/models/shared/taxitemestimate.rbi +4 -4
- data/lib/kintsugi_sdk/models/shared/taxitemread.rb +10 -10
- data/lib/kintsugi_sdk/models/shared/taxitemread.rbi +4 -4
- data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rb +3 -0
- data/lib/kintsugi_sdk/models/shared/taxtypeenum.rb +30 -0
- data/lib/kintsugi_sdk/models/shared/taxtypeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/total_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/total_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/total_amount_of_this_transaction_item_after_discounts_.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_liability_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/total_tax_liability_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rb +11 -7
- data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rb +8 -4
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rbi +2 -0
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rb +11 -7
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rb +89 -79
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +36 -28
- data/lib/kintsugi_sdk/models/shared/transactiondirectionenum.rb +19 -0
- data/lib/kintsugi_sdk/models/shared/transactiondirectionenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/{exemption.rb → transactionembeddedexemption.rb} +38 -16
- data/lib/kintsugi_sdk/models/shared/{exemption.rbi → transactionembeddedexemption.rbi} +12 -6
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb +10 -8
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rb +11 -9
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb +7 -3
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rbi +2 -0
- data/lib/kintsugi_sdk/models/shared/transactionimportcustomer.rb +104 -0
- data/lib/kintsugi_sdk/models/shared/transactionimportcustomer.rbi +49 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rb +57 -53
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rbi +22 -20
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_subtotal.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_converted_total_discount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_quantity.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_quantity.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_tax_rate_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rb +57 -53
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rbi +22 -20
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_subtotal.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_converted_total_discount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_tax_rate_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rb +15 -7
- data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rbi +4 -2
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb +18 -10
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rbi +6 -4
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rb +64 -44
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rbi +28 -18
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb +69 -63
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +30 -24
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_tax_rate_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest_total_tax_liability_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionread.rb +107 -73
- data/lib/kintsugi_sdk/models/shared/transactionread.rbi +48 -28
- data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rb +1 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rb +68 -62
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +30 -24
- data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_tax_rate_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_taxable_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_calculated.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_amount_imported.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate_total_tax_liability_amount.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/usetaxregistrationpath.rb +24 -0
- data/lib/kintsugi_sdk/models/shared/usetaxregistrationpath.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/validationaddress.rb +12 -12
- data/lib/kintsugi_sdk/models/shared/validationaddress.rbi +4 -4
- data/lib/kintsugi_sdk/models/shared/validationerror.rb +11 -3
- data/lib/kintsugi_sdk/models/shared/validationerror.rbi +4 -0
- data/lib/kintsugi_sdk/models/shared.rb +75 -6
- data/lib/kintsugi_sdk/nexus.rb +9 -9
- data/lib/kintsugi_sdk/openapisdk.rb +10 -10
- data/lib/kintsugi_sdk/products.rb +28 -26
- data/lib/kintsugi_sdk/sdk_hooks/hooks.rb +1 -1
- data/lib/kintsugi_sdk/sdk_hooks/types.rb +14 -14
- data/lib/kintsugi_sdk/sdkconfiguration.rb +22 -22
- data/lib/kintsugi_sdk/taxestimation.rb +15 -15
- data/lib/kintsugi_sdk/transactions.rb +113 -113
- data/lib/kintsugi_sdk/utils/forms.rb +23 -23
- data/lib/kintsugi_sdk/utils/headers.rb +4 -4
- data/lib/kintsugi_sdk/utils/query_params.rb +14 -14
- data/lib/kintsugi_sdk/utils/request_bodies.rb +7 -7
- data/lib/kintsugi_sdk/utils/retries.rb +42 -3
- data/lib/kintsugi_sdk/utils/security.rb +16 -16
- data/lib/kintsugi_sdk/utils/url.rb +6 -6
- data/lib/kintsugi_sdk/utils/utils.rb +37 -33
- data/lib/kintsugi_sdk.rb +1 -1
- metadata +174 -18
- data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rbi +0 -13
- data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rbi +0 -13
- data/lib/kintsugi_sdk/models/shared/file.rb +0 -36
- data/lib/kintsugi_sdk/models/shared/file.rbi +0 -15
- data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rb +0 -48
- data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rbi +0 -21
|
@@ -15,7 +15,9 @@ module KintsugiSDK
|
|
|
15
15
|
# The date of the transaction item.
|
|
16
16
|
field :date, ::DateTime, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('date'), required: true, 'decoder': ::KintsugiSDK::Utils.datetime_from_iso_format(false) } }
|
|
17
17
|
# The total amount of the item.
|
|
18
|
-
field :amount, ::Float, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('amount'), required: true } }
|
|
18
|
+
field :amount, Crystalline::Union.new(::Float, ::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('amount'), required: true } }
|
|
19
|
+
# Defaults to 1.0. The quantity of the item.
|
|
20
|
+
field :quantity, Crystalline::Nilable.new(Crystalline::Union.new(::Float, ::String)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('quantity') } }
|
|
19
21
|
# A unique identifier for the transaction item.
|
|
20
22
|
field :external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_id') } }
|
|
21
23
|
# A description of the item.
|
|
@@ -35,15 +37,20 @@ module KintsugiSDK
|
|
|
35
37
|
# Category of the product. Required if product_subcategory is used
|
|
36
38
|
# in place of external_product_id.
|
|
37
39
|
field :product_category, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_category') } }
|
|
38
|
-
# Defaults to 1.0. The quantity of the item.
|
|
39
|
-
field :quantity, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('quantity') } }
|
|
40
40
|
# Defaults to false. Indicates whether the item is exempt from tax.
|
|
41
41
|
field :exempt, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exempt') } }
|
|
42
|
+
# Defaults to false. When true, `amount` is the gross (tax-included) price and the tax is backed out of it rather than added on top; for a taxable line, `taxable_amount` in the response is then the net base.
|
|
43
|
+
#
|
|
44
|
+
# When the line is not taxed - exempt, or no tax rule applies in the destination - `taxable_amount` is `0.00` rather than the net base, matching how exempt tax-exclusive lines already behave. Read the net amount as `taxable_amount` when `tax_amount` is non-zero, and as `amount` otherwise.
|
|
45
|
+
#
|
|
46
|
+
# This applies to the estimate in this request only. Connection imports that report an inclusive price store the gross amount and the inclusive flag, and recalc backs the tax out the same way as this estimate.
|
|
47
|
+
field :is_tax_inclusive, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('is_tax_inclusive') } }
|
|
42
48
|
|
|
43
|
-
sig { params(date: ::DateTime, amount: ::Float, external_id: T.nilable(::String), description: T.nilable(::String), external_product_id: T.nilable(::String), product_name: T.nilable(::String), product_description: T.nilable(::String), product_source: T.nilable(Models::Shared::SourceEnum), product_subcategory: T.nilable(::String), product_category: T.nilable(::String),
|
|
44
|
-
def initialize(date:, amount:, external_id: nil, description: nil, external_product_id: nil, product_name: nil, product_description: nil, product_source: nil, product_subcategory: nil, product_category: nil,
|
|
49
|
+
sig { params(date: ::DateTime, amount: T.any(::Float, ::String), quantity: T.nilable(T.any(::Float, ::String)), external_id: T.nilable(::String), description: T.nilable(::String), external_product_id: T.nilable(::String), product_name: T.nilable(::String), product_description: T.nilable(::String), product_source: T.nilable(Models::Shared::SourceEnum), product_subcategory: T.nilable(::String), product_category: T.nilable(::String), exempt: T.nilable(T::Boolean), is_tax_inclusive: T.nilable(T::Boolean)).void }
|
|
50
|
+
def initialize(date:, amount:, quantity: nil, external_id: nil, description: nil, external_product_id: nil, product_name: nil, product_description: nil, product_source: nil, product_subcategory: nil, product_category: nil, exempt: false, is_tax_inclusive: false)
|
|
45
51
|
@date = date
|
|
46
52
|
@amount = amount
|
|
53
|
+
@quantity = quantity
|
|
47
54
|
@external_id = external_id
|
|
48
55
|
@description = description
|
|
49
56
|
@external_product_id = external_product_id
|
|
@@ -52,8 +59,8 @@ module KintsugiSDK
|
|
|
52
59
|
@product_source = product_source
|
|
53
60
|
@product_subcategory = product_subcategory
|
|
54
61
|
@product_category = product_category
|
|
55
|
-
@quantity = quantity
|
|
56
62
|
@exempt = exempt
|
|
63
|
+
@is_tax_inclusive = is_tax_inclusive
|
|
57
64
|
end
|
|
58
65
|
|
|
59
66
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -61,6 +68,7 @@ module KintsugiSDK
|
|
|
61
68
|
return false unless other.is_a? self.class
|
|
62
69
|
return false unless @date == other.date
|
|
63
70
|
return false unless @amount == other.amount
|
|
71
|
+
return false unless @quantity == other.quantity
|
|
64
72
|
return false unless @external_id == other.external_id
|
|
65
73
|
return false unless @description == other.description
|
|
66
74
|
return false unless @external_product_id == other.external_product_id
|
|
@@ -69,8 +77,8 @@ module KintsugiSDK
|
|
|
69
77
|
return false unless @product_source == other.product_source
|
|
70
78
|
return false unless @product_subcategory == other.product_subcategory
|
|
71
79
|
return false unless @product_category == other.product_category
|
|
72
|
-
return false unless @quantity == other.quantity
|
|
73
80
|
return false unless @exempt == other.exempt
|
|
81
|
+
return false unless @is_tax_inclusive == other.is_tax_inclusive
|
|
74
82
|
true
|
|
75
83
|
end
|
|
76
84
|
end
|
|
@@ -12,6 +12,8 @@ class KintsugiSDK::Models::Shared::TransactionItemEstimateBase
|
|
|
12
12
|
def date=(str_); end
|
|
13
13
|
def amount(); end
|
|
14
14
|
def amount=(str_); end
|
|
15
|
+
def quantity(); end
|
|
16
|
+
def quantity=(str_); end
|
|
15
17
|
def external_id(); end
|
|
16
18
|
def external_id=(str_); end
|
|
17
19
|
def description(); end
|
|
@@ -28,8 +30,8 @@ class KintsugiSDK::Models::Shared::TransactionItemEstimateBase
|
|
|
28
30
|
def product_subcategory=(str_); end
|
|
29
31
|
def product_category(); end
|
|
30
32
|
def product_category=(str_); end
|
|
31
|
-
def quantity(); end
|
|
32
|
-
def quantity=(str_); end
|
|
33
33
|
def exempt(); end
|
|
34
34
|
def exempt=(str_); end
|
|
35
|
+
def is_tax_inclusive(); end
|
|
36
|
+
def is_tax_inclusive=(str_); end
|
|
35
37
|
end
|
|
@@ -16,6 +16,8 @@ module KintsugiSDK
|
|
|
16
16
|
field :date, ::DateTime, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('date'), required: true, 'decoder': ::KintsugiSDK::Utils.datetime_from_iso_format(false) } }
|
|
17
17
|
# The total amount of the item.
|
|
18
18
|
field :amount, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('amount'), required: true } }
|
|
19
|
+
# List of tax items applied to the transaction item.
|
|
20
|
+
field :tax_items, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::TaxItemEstimate)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_items') } }
|
|
19
21
|
# A unique identifier for the transaction item.
|
|
20
22
|
field :external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_id') } }
|
|
21
23
|
# A description of the item.
|
|
@@ -35,25 +37,30 @@ module KintsugiSDK
|
|
|
35
37
|
# Category of the product. Required if product_subcategory is used
|
|
36
38
|
# in place of external_product_id.
|
|
37
39
|
field :product_category, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_category') } }
|
|
38
|
-
# This enum is used to determine if a transaction is exempt from tax.
|
|
39
|
-
field :exempt_reason, Crystalline::Nilable.new(Models::Shared::TaxExemptionEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exempt_reason'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::TaxExemptionEnum, true) } }
|
|
40
|
-
# List of tax items applied to the transaction item.
|
|
41
|
-
field :tax_items, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::TaxItemEstimate)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_items') } }
|
|
42
40
|
# Defaults to 1.0. The quantity of the item.
|
|
43
41
|
field :quantity, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('quantity') } }
|
|
44
42
|
# Indicates whether the transaction item is exempt from tax.
|
|
45
43
|
field :exempt, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exempt') } }
|
|
44
|
+
# Defaults to false. When true, `amount` is the gross (tax-included) price and the tax is backed out of it rather than added on top; for a taxable line, `taxable_amount` in the response is then the net base.
|
|
45
|
+
#
|
|
46
|
+
# When the line is not taxed - exempt, or no tax rule applies in the destination - `taxable_amount` is `0.00` rather than the net base, matching how exempt tax-exclusive lines already behave. Read the net amount as `taxable_amount` when `tax_amount` is non-zero, and as `amount` otherwise.
|
|
47
|
+
#
|
|
48
|
+
# This applies to the estimate in this request only. Connection imports that report an inclusive price store the gross amount and the inclusive flag, and recalc backs the tax out the same way as this estimate.
|
|
49
|
+
field :is_tax_inclusive, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('is_tax_inclusive') } }
|
|
46
50
|
# The total tax amount for the transaction item.
|
|
47
51
|
field :tax_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_amount') } }
|
|
48
52
|
# The taxable amount for the transaction item.
|
|
49
53
|
field :taxable_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('taxable_amount') } }
|
|
50
54
|
# The tax rate applied to the transaction item.
|
|
51
55
|
field :tax_rate, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate') } }
|
|
56
|
+
# Reason for exemption, if applicable.
|
|
57
|
+
field :exempt_reason, Crystalline::Nilable.new(Models::Shared::TaxExemptionEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exempt_reason'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::TaxExemptionEnum, true) } }
|
|
52
58
|
|
|
53
|
-
sig { params(date: ::DateTime, amount: ::String, external_id: T.nilable(::String), description: T.nilable(::String), external_product_id: T.nilable(::String), product_name: T.nilable(::String), product_description: T.nilable(::String), product_source: T.nilable(Models::Shared::SourceEnum), product_subcategory: T.nilable(::String), product_category: T.nilable(::String),
|
|
54
|
-
def initialize(date:, amount:, external_id: nil, description: nil, external_product_id: nil, product_name: nil, product_description: nil, product_source: nil, product_subcategory: nil, product_category: nil,
|
|
59
|
+
sig { params(date: ::DateTime, amount: ::String, tax_items: T.nilable(T::Array[Models::Shared::TaxItemEstimate]), external_id: T.nilable(::String), description: T.nilable(::String), external_product_id: T.nilable(::String), product_name: T.nilable(::String), product_description: T.nilable(::String), product_source: T.nilable(Models::Shared::SourceEnum), product_subcategory: T.nilable(::String), product_category: T.nilable(::String), quantity: T.nilable(::String), exempt: T.nilable(T::Boolean), is_tax_inclusive: T.nilable(T::Boolean), tax_amount: T.nilable(::String), taxable_amount: T.nilable(::String), tax_rate: T.nilable(::String), exempt_reason: T.nilable(Models::Shared::TaxExemptionEnum)).void }
|
|
60
|
+
def initialize(date:, amount:, tax_items: nil, external_id: nil, description: nil, external_product_id: nil, product_name: nil, product_description: nil, product_source: nil, product_subcategory: nil, product_category: nil, quantity: '1.0', exempt: false, is_tax_inclusive: false, tax_amount: '0.00', taxable_amount: '0.00', tax_rate: '0.00', exempt_reason: nil)
|
|
55
61
|
@date = date
|
|
56
62
|
@amount = amount
|
|
63
|
+
@tax_items = tax_items
|
|
57
64
|
@external_id = external_id
|
|
58
65
|
@description = description
|
|
59
66
|
@external_product_id = external_product_id
|
|
@@ -62,13 +69,13 @@ module KintsugiSDK
|
|
|
62
69
|
@product_source = product_source
|
|
63
70
|
@product_subcategory = product_subcategory
|
|
64
71
|
@product_category = product_category
|
|
65
|
-
@exempt_reason = exempt_reason
|
|
66
|
-
@tax_items = tax_items
|
|
67
72
|
@quantity = quantity
|
|
68
73
|
@exempt = exempt
|
|
74
|
+
@is_tax_inclusive = is_tax_inclusive
|
|
69
75
|
@tax_amount = tax_amount
|
|
70
76
|
@taxable_amount = taxable_amount
|
|
71
77
|
@tax_rate = tax_rate
|
|
78
|
+
@exempt_reason = exempt_reason
|
|
72
79
|
end
|
|
73
80
|
|
|
74
81
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -76,6 +83,7 @@ module KintsugiSDK
|
|
|
76
83
|
return false unless other.is_a? self.class
|
|
77
84
|
return false unless @date == other.date
|
|
78
85
|
return false unless @amount == other.amount
|
|
86
|
+
return false unless @tax_items == other.tax_items
|
|
79
87
|
return false unless @external_id == other.external_id
|
|
80
88
|
return false unless @description == other.description
|
|
81
89
|
return false unless @external_product_id == other.external_product_id
|
|
@@ -84,13 +92,13 @@ module KintsugiSDK
|
|
|
84
92
|
return false unless @product_source == other.product_source
|
|
85
93
|
return false unless @product_subcategory == other.product_subcategory
|
|
86
94
|
return false unless @product_category == other.product_category
|
|
87
|
-
return false unless @exempt_reason == other.exempt_reason
|
|
88
|
-
return false unless @tax_items == other.tax_items
|
|
89
95
|
return false unless @quantity == other.quantity
|
|
90
96
|
return false unless @exempt == other.exempt
|
|
97
|
+
return false unless @is_tax_inclusive == other.is_tax_inclusive
|
|
91
98
|
return false unless @tax_amount == other.tax_amount
|
|
92
99
|
return false unless @taxable_amount == other.taxable_amount
|
|
93
100
|
return false unless @tax_rate == other.tax_rate
|
|
101
|
+
return false unless @exempt_reason == other.exempt_reason
|
|
94
102
|
true
|
|
95
103
|
end
|
|
96
104
|
end
|
|
@@ -12,6 +12,8 @@ class KintsugiSDK::Models::Shared::TransactionItemEstimateResponse
|
|
|
12
12
|
def date=(str_); end
|
|
13
13
|
def amount(); end
|
|
14
14
|
def amount=(str_); end
|
|
15
|
+
def tax_items(); end
|
|
16
|
+
def tax_items=(str_); end
|
|
15
17
|
def external_id(); end
|
|
16
18
|
def external_id=(str_); end
|
|
17
19
|
def description(); end
|
|
@@ -28,18 +30,18 @@ class KintsugiSDK::Models::Shared::TransactionItemEstimateResponse
|
|
|
28
30
|
def product_subcategory=(str_); end
|
|
29
31
|
def product_category(); end
|
|
30
32
|
def product_category=(str_); end
|
|
31
|
-
def exempt_reason(); end
|
|
32
|
-
def exempt_reason=(str_); end
|
|
33
|
-
def tax_items(); end
|
|
34
|
-
def tax_items=(str_); end
|
|
35
33
|
def quantity(); end
|
|
36
34
|
def quantity=(str_); end
|
|
37
35
|
def exempt(); end
|
|
38
36
|
def exempt=(str_); end
|
|
37
|
+
def is_tax_inclusive(); end
|
|
38
|
+
def is_tax_inclusive=(str_); end
|
|
39
39
|
def tax_amount(); end
|
|
40
40
|
def tax_amount=(str_); end
|
|
41
41
|
def taxable_amount(); end
|
|
42
42
|
def taxable_amount=(str_); end
|
|
43
43
|
def tax_rate(); end
|
|
44
44
|
def tax_rate=(str_); end
|
|
45
|
+
def exempt_reason(); end
|
|
46
|
+
def exempt_reason=(str_); end
|
|
45
47
|
end
|
|
@@ -12,18 +12,18 @@ module KintsugiSDK
|
|
|
12
12
|
extend T::Sig
|
|
13
13
|
include Crystalline::MetadataFields
|
|
14
14
|
|
|
15
|
-
# Unique identifier of the organization. This field is deprecated, and should no longer be used. The value is populated through the 'x-organization-id' header.
|
|
16
|
-
#
|
|
17
|
-
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
18
|
-
field :organization_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('organization_id'), required: true } }
|
|
19
15
|
# Date/time of item.
|
|
20
|
-
field :date, ::
|
|
16
|
+
field :date, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('date'), required: true } }
|
|
21
17
|
# External product identifier.
|
|
22
18
|
field :external_product_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_product_id'), required: true } }
|
|
23
19
|
# The unique transaction item identifier.
|
|
24
20
|
field :id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('id'), required: true } }
|
|
25
21
|
# List of tax items associated with the transaction item.
|
|
26
22
|
field :tax_items, Crystalline::Array.new(Models::Shared::TaxItemRead), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_items'), required: true } }
|
|
23
|
+
# Unique identifier of the organization. This field is deprecated, and should no longer be used. The value is populated through the 'x-organization-id' header.
|
|
24
|
+
#
|
|
25
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
26
|
+
field :organization_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('organization_id'), required: true } }
|
|
27
27
|
# External item identifier.
|
|
28
28
|
field :external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_id') } }
|
|
29
29
|
# Item description
|
|
@@ -36,9 +36,21 @@ module KintsugiSDK
|
|
|
36
36
|
field :product_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_name') } }
|
|
37
37
|
# Product description
|
|
38
38
|
field :product_description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('product_description') } }
|
|
39
|
-
|
|
39
|
+
# Quantity of item.
|
|
40
|
+
field :quantity, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('quantity') } }
|
|
41
|
+
# Item amount.
|
|
42
|
+
field :amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('amount') } }
|
|
43
|
+
# Imported tax amount for the item.
|
|
44
|
+
field :tax_amount_imported, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_amount_imported') } }
|
|
45
|
+
# Imported tax rate.
|
|
46
|
+
field :tax_rate_imported, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_imported') } }
|
|
47
|
+
# Calculated tax amount for the item.
|
|
48
|
+
field :tax_amount_calculated, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_amount_calculated') } }
|
|
49
|
+
# Calculated tax rate.
|
|
50
|
+
field :tax_rate_calculated, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_calculated') } }
|
|
51
|
+
# Original currency code.
|
|
40
52
|
field :original_currency, Crystalline::Nilable.new(Models::Shared::CurrencyEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('original_currency'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::CurrencyEnum, true) } }
|
|
41
|
-
|
|
53
|
+
# Destination currency code.
|
|
42
54
|
field :destination_currency, Crystalline::Nilable.new(Models::Shared::CurrencyEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('destination_currency'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::CurrencyEnum, true) } }
|
|
43
55
|
# Converted item amount.
|
|
44
56
|
field :converted_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_amount') } }
|
|
@@ -52,42 +64,46 @@ module KintsugiSDK
|
|
|
52
64
|
field :converted_total_discount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_discount') } }
|
|
53
65
|
# Converted subtotal amount.
|
|
54
66
|
field :converted_subtotal, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_subtotal') } }
|
|
55
|
-
#
|
|
67
|
+
# Taxable amount for the item.
|
|
68
|
+
field :taxable_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('taxable_amount') } }
|
|
69
|
+
# Tax exemption status.
|
|
56
70
|
field :tax_exemption, Crystalline::Nilable.new(Models::Shared::TaxExemptionEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_exemption'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::TaxExemptionEnum, true) } }
|
|
71
|
+
# Indicates if the item is exempt.
|
|
72
|
+
field :exempt, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exempt') } }
|
|
73
|
+
# Whether this line's source amount includes tax. NULL means the source did not say.
|
|
74
|
+
field :is_tax_inclusive, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('is_tax_inclusive') } }
|
|
57
75
|
# Total discount amount applied to this transaction item.
|
|
58
76
|
field :total_discount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_discount') } }
|
|
59
77
|
# Subtotal amount before any discount is applied.
|
|
60
78
|
field :subtotal, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('subtotal') } }
|
|
61
|
-
#
|
|
62
|
-
field :
|
|
63
|
-
#
|
|
64
|
-
field :
|
|
65
|
-
#
|
|
66
|
-
field :
|
|
67
|
-
#
|
|
68
|
-
field :
|
|
69
|
-
# Calculated tax amount for the item.
|
|
70
|
-
field :tax_amount_calculated, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_amount_calculated') } }
|
|
71
|
-
# Calculated tax rate.
|
|
72
|
-
field :tax_rate_calculated, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_calculated') } }
|
|
73
|
-
# Taxable amount for the item.
|
|
74
|
-
field :taxable_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('taxable_amount') } }
|
|
75
|
-
# Indicates if the item is exempt.
|
|
76
|
-
field :exempt, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exempt') } }
|
|
79
|
+
# Whether this purchase line is reverse-charged.
|
|
80
|
+
field :is_reverse_charge_self_accounted, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('is_reverse_charge_self_accounted') } }
|
|
81
|
+
# Input VAT recoverability 0-100. Blank means 100%.
|
|
82
|
+
field :recoverability_percent, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('recoverability_percent') } }
|
|
83
|
+
# VAT recoverable on this line in the transaction's currency, after the line's recoverability percentage and the organization's pro-rata recovery rate. 0.00 for sales and outside the EU and UK.
|
|
84
|
+
field :recoverable_input_vat, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('recoverable_input_vat') } }
|
|
85
|
+
# Recoverable VAT on this line in the destination currency. Null when the line has no converted amount.
|
|
86
|
+
field :converted_recoverable_input_vat, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_recoverable_input_vat') } }
|
|
77
87
|
|
|
78
|
-
sig { params(
|
|
79
|
-
def initialize(
|
|
80
|
-
@organization_id = organization_id
|
|
88
|
+
sig { params(date: ::String, external_product_id: ::String, id: ::String, tax_items: T::Array[Models::Shared::TaxItemRead], organization_id: T.nilable(::String), external_id: T.nilable(::String), description: T.nilable(::String), product: T.nilable(::String), product_id: T.nilable(::String), product_name: T.nilable(::String), product_description: T.nilable(::String), quantity: T.nilable(::String), amount: T.nilable(::String), tax_amount_imported: T.nilable(::String), tax_rate_imported: T.nilable(::String), tax_amount_calculated: T.nilable(::String), tax_rate_calculated: T.nilable(::String), original_currency: T.nilable(Models::Shared::CurrencyEnum), destination_currency: T.nilable(Models::Shared::CurrencyEnum), converted_amount: T.nilable(::String), converted_taxable_amount: T.nilable(::String), converted_tax_amount_imported: T.nilable(::String), converted_tax_amount_calculated: T.nilable(::String), converted_total_discount: T.nilable(::String), converted_subtotal: T.nilable(::String), taxable_amount: T.nilable(::String), tax_exemption: T.nilable(Models::Shared::TaxExemptionEnum), exempt: T.nilable(T::Boolean), is_tax_inclusive: T.nilable(T::Boolean), total_discount: T.nilable(::String), subtotal: T.nilable(::String), is_reverse_charge_self_accounted: T.nilable(T::Boolean), recoverability_percent: T.nilable(::String), recoverable_input_vat: T.nilable(::String), converted_recoverable_input_vat: T.nilable(::String)).void }
|
|
89
|
+
def initialize(date:, external_product_id:, id:, tax_items:, organization_id: nil, external_id: nil, description: nil, product: nil, product_id: nil, product_name: nil, product_description: nil, quantity: '1.0', amount: '0.00', tax_amount_imported: '0.00', tax_rate_imported: '0.00', tax_amount_calculated: '0.00', tax_rate_calculated: '0.00', original_currency: nil, destination_currency: nil, converted_amount: nil, converted_taxable_amount: nil, converted_tax_amount_imported: nil, converted_tax_amount_calculated: nil, converted_total_discount: nil, converted_subtotal: nil, taxable_amount: '0.00', tax_exemption: nil, exempt: false, is_tax_inclusive: nil, total_discount: nil, subtotal: nil, is_reverse_charge_self_accounted: false, recoverability_percent: nil, recoverable_input_vat: '0.00', converted_recoverable_input_vat: nil)
|
|
81
90
|
@date = date
|
|
82
91
|
@external_product_id = external_product_id
|
|
83
92
|
@id = id
|
|
84
93
|
@tax_items = tax_items
|
|
94
|
+
@organization_id = organization_id
|
|
85
95
|
@external_id = external_id
|
|
86
96
|
@description = description
|
|
87
97
|
@product = product
|
|
88
98
|
@product_id = product_id
|
|
89
99
|
@product_name = product_name
|
|
90
100
|
@product_description = product_description
|
|
101
|
+
@quantity = quantity
|
|
102
|
+
@amount = amount
|
|
103
|
+
@tax_amount_imported = tax_amount_imported
|
|
104
|
+
@tax_rate_imported = tax_rate_imported
|
|
105
|
+
@tax_amount_calculated = tax_amount_calculated
|
|
106
|
+
@tax_rate_calculated = tax_rate_calculated
|
|
91
107
|
@original_currency = original_currency
|
|
92
108
|
@destination_currency = destination_currency
|
|
93
109
|
@converted_amount = converted_amount
|
|
@@ -96,33 +112,38 @@ module KintsugiSDK
|
|
|
96
112
|
@converted_tax_amount_calculated = converted_tax_amount_calculated
|
|
97
113
|
@converted_total_discount = converted_total_discount
|
|
98
114
|
@converted_subtotal = converted_subtotal
|
|
115
|
+
@taxable_amount = taxable_amount
|
|
99
116
|
@tax_exemption = tax_exemption
|
|
117
|
+
@exempt = exempt
|
|
118
|
+
@is_tax_inclusive = is_tax_inclusive
|
|
100
119
|
@total_discount = total_discount
|
|
101
120
|
@subtotal = subtotal
|
|
102
|
-
@
|
|
103
|
-
@
|
|
104
|
-
@
|
|
105
|
-
@
|
|
106
|
-
@tax_amount_calculated = tax_amount_calculated
|
|
107
|
-
@tax_rate_calculated = tax_rate_calculated
|
|
108
|
-
@taxable_amount = taxable_amount
|
|
109
|
-
@exempt = exempt
|
|
121
|
+
@is_reverse_charge_self_accounted = is_reverse_charge_self_accounted
|
|
122
|
+
@recoverability_percent = recoverability_percent
|
|
123
|
+
@recoverable_input_vat = recoverable_input_vat
|
|
124
|
+
@converted_recoverable_input_vat = converted_recoverable_input_vat
|
|
110
125
|
end
|
|
111
126
|
|
|
112
127
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
113
128
|
def ==(other)
|
|
114
129
|
return false unless other.is_a? self.class
|
|
115
|
-
return false unless @organization_id == other.organization_id
|
|
116
130
|
return false unless @date == other.date
|
|
117
131
|
return false unless @external_product_id == other.external_product_id
|
|
118
132
|
return false unless @id == other.id
|
|
119
133
|
return false unless @tax_items == other.tax_items
|
|
134
|
+
return false unless @organization_id == other.organization_id
|
|
120
135
|
return false unless @external_id == other.external_id
|
|
121
136
|
return false unless @description == other.description
|
|
122
137
|
return false unless @product == other.product
|
|
123
138
|
return false unless @product_id == other.product_id
|
|
124
139
|
return false unless @product_name == other.product_name
|
|
125
140
|
return false unless @product_description == other.product_description
|
|
141
|
+
return false unless @quantity == other.quantity
|
|
142
|
+
return false unless @amount == other.amount
|
|
143
|
+
return false unless @tax_amount_imported == other.tax_amount_imported
|
|
144
|
+
return false unless @tax_rate_imported == other.tax_rate_imported
|
|
145
|
+
return false unless @tax_amount_calculated == other.tax_amount_calculated
|
|
146
|
+
return false unless @tax_rate_calculated == other.tax_rate_calculated
|
|
126
147
|
return false unless @original_currency == other.original_currency
|
|
127
148
|
return false unless @destination_currency == other.destination_currency
|
|
128
149
|
return false unless @converted_amount == other.converted_amount
|
|
@@ -131,17 +152,16 @@ module KintsugiSDK
|
|
|
131
152
|
return false unless @converted_tax_amount_calculated == other.converted_tax_amount_calculated
|
|
132
153
|
return false unless @converted_total_discount == other.converted_total_discount
|
|
133
154
|
return false unless @converted_subtotal == other.converted_subtotal
|
|
155
|
+
return false unless @taxable_amount == other.taxable_amount
|
|
134
156
|
return false unless @tax_exemption == other.tax_exemption
|
|
157
|
+
return false unless @exempt == other.exempt
|
|
158
|
+
return false unless @is_tax_inclusive == other.is_tax_inclusive
|
|
135
159
|
return false unless @total_discount == other.total_discount
|
|
136
160
|
return false unless @subtotal == other.subtotal
|
|
137
|
-
return false unless @
|
|
138
|
-
return false unless @
|
|
139
|
-
return false unless @
|
|
140
|
-
return false unless @
|
|
141
|
-
return false unless @tax_amount_calculated == other.tax_amount_calculated
|
|
142
|
-
return false unless @tax_rate_calculated == other.tax_rate_calculated
|
|
143
|
-
return false unless @taxable_amount == other.taxable_amount
|
|
144
|
-
return false unless @exempt == other.exempt
|
|
161
|
+
return false unless @is_reverse_charge_self_accounted == other.is_reverse_charge_self_accounted
|
|
162
|
+
return false unless @recoverability_percent == other.recoverability_percent
|
|
163
|
+
return false unless @recoverable_input_vat == other.recoverable_input_vat
|
|
164
|
+
return false unless @converted_recoverable_input_vat == other.converted_recoverable_input_vat
|
|
145
165
|
true
|
|
146
166
|
end
|
|
147
167
|
end
|
|
@@ -8,8 +8,6 @@ end
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class KintsugiSDK::Models::Shared::TransactionItemRead
|
|
11
|
-
def organization_id(); end
|
|
12
|
-
def organization_id=(str_); end
|
|
13
11
|
def date(); end
|
|
14
12
|
def date=(str_); end
|
|
15
13
|
def external_product_id(); end
|
|
@@ -18,6 +16,8 @@ class KintsugiSDK::Models::Shared::TransactionItemRead
|
|
|
18
16
|
def id=(str_); end
|
|
19
17
|
def tax_items(); end
|
|
20
18
|
def tax_items=(str_); end
|
|
19
|
+
def organization_id(); end
|
|
20
|
+
def organization_id=(str_); end
|
|
21
21
|
def external_id(); end
|
|
22
22
|
def external_id=(str_); end
|
|
23
23
|
def description(); end
|
|
@@ -30,6 +30,18 @@ class KintsugiSDK::Models::Shared::TransactionItemRead
|
|
|
30
30
|
def product_name=(str_); end
|
|
31
31
|
def product_description(); end
|
|
32
32
|
def product_description=(str_); end
|
|
33
|
+
def quantity(); end
|
|
34
|
+
def quantity=(str_); end
|
|
35
|
+
def amount(); end
|
|
36
|
+
def amount=(str_); end
|
|
37
|
+
def tax_amount_imported(); end
|
|
38
|
+
def tax_amount_imported=(str_); end
|
|
39
|
+
def tax_rate_imported(); end
|
|
40
|
+
def tax_rate_imported=(str_); end
|
|
41
|
+
def tax_amount_calculated(); end
|
|
42
|
+
def tax_amount_calculated=(str_); end
|
|
43
|
+
def tax_rate_calculated(); end
|
|
44
|
+
def tax_rate_calculated=(str_); end
|
|
33
45
|
def original_currency(); end
|
|
34
46
|
def original_currency=(str_); end
|
|
35
47
|
def destination_currency(); end
|
|
@@ -46,26 +58,24 @@ class KintsugiSDK::Models::Shared::TransactionItemRead
|
|
|
46
58
|
def converted_total_discount=(str_); end
|
|
47
59
|
def converted_subtotal(); end
|
|
48
60
|
def converted_subtotal=(str_); end
|
|
61
|
+
def taxable_amount(); end
|
|
62
|
+
def taxable_amount=(str_); end
|
|
49
63
|
def tax_exemption(); end
|
|
50
64
|
def tax_exemption=(str_); end
|
|
65
|
+
def exempt(); end
|
|
66
|
+
def exempt=(str_); end
|
|
67
|
+
def is_tax_inclusive(); end
|
|
68
|
+
def is_tax_inclusive=(str_); end
|
|
51
69
|
def total_discount(); end
|
|
52
70
|
def total_discount=(str_); end
|
|
53
71
|
def subtotal(); end
|
|
54
72
|
def subtotal=(str_); end
|
|
55
|
-
def
|
|
56
|
-
def
|
|
57
|
-
def
|
|
58
|
-
def
|
|
59
|
-
def
|
|
60
|
-
def
|
|
61
|
-
def
|
|
62
|
-
def
|
|
63
|
-
def tax_amount_calculated(); end
|
|
64
|
-
def tax_amount_calculated=(str_); end
|
|
65
|
-
def tax_rate_calculated(); end
|
|
66
|
-
def tax_rate_calculated=(str_); end
|
|
67
|
-
def taxable_amount(); end
|
|
68
|
-
def taxable_amount=(str_); end
|
|
69
|
-
def exempt(); end
|
|
70
|
-
def exempt=(str_); end
|
|
73
|
+
def is_reverse_charge_self_accounted(); end
|
|
74
|
+
def is_reverse_charge_self_accounted=(str_); end
|
|
75
|
+
def recoverability_percent(); end
|
|
76
|
+
def recoverability_percent=(str_); end
|
|
77
|
+
def recoverable_input_vat(); end
|
|
78
|
+
def recoverable_input_vat=(str_); end
|
|
79
|
+
def converted_recoverable_input_vat(); end
|
|
80
|
+
def converted_recoverable_input_vat=(str_); end
|
|
71
81
|
end
|