kintsugi_sdk 5.5.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 +7 -0
- data/lib/crystalline/metadata_fields.rb +209 -0
- data/lib/crystalline/module.rb +92 -0
- data/lib/crystalline/types.rb +78 -0
- data/lib/crystalline/utils.rb +56 -0
- data/lib/crystalline.rb +13 -0
- data/lib/kintsugi_sdk/addressvalidation.rb +350 -0
- data/lib/kintsugi_sdk/customers.rb +981 -0
- data/lib/kintsugi_sdk/exemptions.rb +779 -0
- data/lib/kintsugi_sdk/models/callbacks.rb +12 -0
- data/lib/kintsugi_sdk/models/errors/apierror.rb +37 -0
- data/lib/kintsugi_sdk/models/errors/apierror.rbi +16 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rb +33 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rbi +13 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rb +33 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rbi +13 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rb +33 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rbi +13 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rb +33 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rbi +13 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rb +33 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rbi +13 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rb +33 -0
- data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rbi +13 -0
- data/lib/kintsugi_sdk/models/errors/errorresponse.rb +33 -0
- data/lib/kintsugi_sdk/models/errors/errorresponse.rbi +13 -0
- data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rb +33 -0
- data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rbi +13 -0
- data/lib/kintsugi_sdk/models/errors.rb +20 -0
- data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rb +37 -0
- data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rb +39 -0
- data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rb +33 -0
- data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rbi +13 -0
- data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rb +33 -0
- data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rbi +13 -0
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rb +57 -0
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rbi +25 -0
- data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rb +33 -0
- data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rbi +13 -0
- data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rb +73 -0
- data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rbi +33 -0
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rb +57 -0
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rbi +25 -0
- data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rb +33 -0
- data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rbi +13 -0
- data/lib/kintsugi_sdk/models/ops/get_products_v1_products_get_request.rb +61 -0
- data/lib/kintsugi_sdk/models/ops/get_products_v1_products_get_request.rbi +27 -0
- data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rb +33 -0
- data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rbi +13 -0
- data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rb +107 -0
- data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rbi +45 -0
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rb +34 -0
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rbi +13 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rb +33 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rbi +13 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rb +33 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rbi +13 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rb +35 -0
- data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rbi +13 -0
- data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rb +33 -0
- data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rbi +13 -0
- data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rb +37 -0
- data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rb +37 -0
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rb +37 -0
- data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rb +37 -0
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rbi +15 -0
- data/lib/kintsugi_sdk/models/ops.rb +32 -0
- data/lib/kintsugi_sdk/models/shared/addressbase.rb +65 -0
- data/lib/kintsugi_sdk/models/shared/addressbase.rbi +29 -0
- data/lib/kintsugi_sdk/models/shared/addresses.rb +76 -0
- data/lib/kintsugi_sdk/models/shared/addresses.rbi +33 -0
- data/lib/kintsugi_sdk/models/shared/addressresponsedata.rb +61 -0
- data/lib/kintsugi_sdk/models/shared/addressresponsedata.rbi +27 -0
- data/lib/kintsugi_sdk/models/shared/addresssearchresponse.rb +45 -0
- data/lib/kintsugi_sdk/models/shared/addresssearchresponse.rbi +19 -0
- data/lib/kintsugi_sdk/models/shared/addressstatus.rb +26 -0
- data/lib/kintsugi_sdk/models/shared/addressstatus.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/addresssubmittedresponse.rb +61 -0
- data/lib/kintsugi_sdk/models/shared/addresssubmittedresponse.rbi +27 -0
- data/lib/kintsugi_sdk/models/shared/addresstype.rb +24 -0
- data/lib/kintsugi_sdk/models/shared/addresstype.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/appliedto.rb +22 -0
- data/lib/kintsugi_sdk/models/shared/appliedto.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/attachmentread.rb +42 -0
- data/lib/kintsugi_sdk/models/shared/attachmentread.rbi +17 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rb +49 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rb +49 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_models_exemptionread.rb +87 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_models_exemptionread.rbi +39 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rb +50 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb +81 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rbi +37 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_products_responses_validationerroritem.rb +50 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_products_responses_validationerroritem.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rb +49 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rb +50 -0
- data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rb +33 -0
- data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rbi +13 -0
- data/lib/kintsugi_sdk/models/shared/countrycodeenum.rb +270 -0
- data/lib/kintsugi_sdk/models/shared/countrycodeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/currencyenum.rb +182 -0
- data/lib/kintsugi_sdk/models/shared/currencyenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/customerbase.rb +97 -0
- data/lib/kintsugi_sdk/models/shared/customerbase.rbi +45 -0
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rb +109 -0
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rbi +51 -0
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rb +97 -0
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rbi +45 -0
- data/lib/kintsugi_sdk/models/shared/customercreate.rb +97 -0
- data/lib/kintsugi_sdk/models/shared/customercreate.rbi +45 -0
- data/lib/kintsugi_sdk/models/shared/customerread.rb +105 -0
- data/lib/kintsugi_sdk/models/shared/customerread.rbi +49 -0
- data/lib/kintsugi_sdk/models/shared/customerupdate.rb +89 -0
- data/lib/kintsugi_sdk/models/shared/customerupdate.rbi +41 -0
- data/lib/kintsugi_sdk/models/shared/discountbuilder.rb +41 -0
- data/lib/kintsugi_sdk/models/shared/discountbuilder.rbi +17 -0
- data/lib/kintsugi_sdk/models/shared/exemption.rb +91 -0
- data/lib/kintsugi_sdk/models/shared/exemption.rbi +41 -0
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rb +73 -0
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rbi +33 -0
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rb +57 -0
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rbi +25 -0
- data/lib/kintsugi_sdk/models/shared/exemptionstatus.rb +25 -0
- data/lib/kintsugi_sdk/models/shared/exemptionstatus.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/exemptiontype.rb +23 -0
- data/lib/kintsugi_sdk/models/shared/exemptiontype.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rb +49 -0
- data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/file.rb +37 -0
- data/lib/kintsugi_sdk/models/shared/file.rbi +15 -0
- data/lib/kintsugi_sdk/models/shared/jurisdictiontype.rb +28 -0
- data/lib/kintsugi_sdk/models/shared/jurisdictiontype.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rb +253 -0
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rbi +121 -0
- data/lib/kintsugi_sdk/models/shared/nexusstateenum.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/nexusstateenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/nexusstatusenum.rb +23 -0
- data/lib/kintsugi_sdk/models/shared/nexusstatusenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/nexustypeenum.rb +24 -0
- data/lib/kintsugi_sdk/models/shared/nexustypeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/page_customerread_.rb +49 -0
- data/lib/kintsugi_sdk/models/shared/page_customerread_.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/page_nexusresponse_.rb +49 -0
- data/lib/kintsugi_sdk/models/shared/page_nexusresponse_.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/page_productread_.rb +49 -0
- data/lib/kintsugi_sdk/models/shared/page_productread_.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rb +49 -0
- data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/page_transactionread_.rb +49 -0
- data/lib/kintsugi_sdk/models/shared/page_transactionread_.rbi +21 -0
- data/lib/kintsugi_sdk/models/shared/periodmodelenum.rb +29 -0
- data/lib/kintsugi_sdk/models/shared/periodmodelenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/processingstatusenum.rb +34 -0
- data/lib/kintsugi_sdk/models/shared/processingstatusenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/productcategories.rb +38 -0
- data/lib/kintsugi_sdk/models/shared/productcategories.rbi +15 -0
- data/lib/kintsugi_sdk/models/shared/productcategoryenum.rb +25 -0
- data/lib/kintsugi_sdk/models/shared/productcategoryenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/productcodeenum.rb +82 -0
- data/lib/kintsugi_sdk/models/shared/productcodeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/productcreatemanual.rb +61 -0
- data/lib/kintsugi_sdk/models/shared/productcreatemanual.rbi +27 -0
- data/lib/kintsugi_sdk/models/shared/productread.rb +81 -0
- data/lib/kintsugi_sdk/models/shared/productread.rbi +37 -0
- data/lib/kintsugi_sdk/models/shared/productstatusenum.rb +23 -0
- data/lib/kintsugi_sdk/models/shared/productstatusenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/productsubcategory.rb +46 -0
- data/lib/kintsugi_sdk/models/shared/productsubcategory.rbi +19 -0
- data/lib/kintsugi_sdk/models/shared/productsubcategoryenum.rb +83 -0
- data/lib/kintsugi_sdk/models/shared/productsubcategoryenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/productupdate.rb +70 -0
- data/lib/kintsugi_sdk/models/shared/productupdate.rbi +31 -0
- data/lib/kintsugi_sdk/models/shared/registration.rb +28 -0
- data/lib/kintsugi_sdk/models/shared/registration.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/registrationsregimeenum.rb +22 -0
- data/lib/kintsugi_sdk/models/shared/registrationsregimeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/relatedentitytype.rb +24 -0
- data/lib/kintsugi_sdk/models/shared/relatedentitytype.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/salesortransactionsenum.rb +24 -0
- data/lib/kintsugi_sdk/models/shared/salesortransactionsenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/security.rb +37 -0
- data/lib/kintsugi_sdk/models/shared/security.rbi +15 -0
- data/lib/kintsugi_sdk/models/shared/sourceenum.rb +70 -0
- data/lib/kintsugi_sdk/models/shared/sourceenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/statusenum.rb +22 -0
- data/lib/kintsugi_sdk/models/shared/statusenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rb +31 -0
- data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rb +77 -0
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rbi +35 -0
- data/lib/kintsugi_sdk/models/shared/taxitemestimate.rb +53 -0
- data/lib/kintsugi_sdk/models/shared/taxitemestimate.rbi +23 -0
- data/lib/kintsugi_sdk/models/shared/taxitemread.rb +73 -0
- data/lib/kintsugi_sdk/models/shared/taxitemread.rbi +33 -0
- data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rb +25 -0
- data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxitemtypeenum.rb +23 -0
- data/lib/kintsugi_sdk/models/shared/taxitemtypeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/taxliabilitysourceenum.rb +22 -0
- data/lib/kintsugi_sdk/models/shared/taxliabilitysourceenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rb +81 -0
- data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rbi +37 -0
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rb +69 -0
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rbi +31 -0
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rb +85 -0
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rbi +39 -0
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rb +235 -0
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +111 -0
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb +70 -0
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rbi +31 -0
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rb +91 -0
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rbi +41 -0
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb +80 -0
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rbi +35 -0
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_type.rb +23 -0
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_type.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionexemptstatusenum.rb +26 -0
- data/lib/kintsugi_sdk/models/shared/transactionexemptstatusenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rb +141 -0
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rbi +67 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rb +141 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rbi +67 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rb +78 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rbi +35 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb +98 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rbi +45 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rb +149 -0
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rbi +71 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb +194 -0
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +91 -0
- data/lib/kintsugi_sdk/models/shared/transactionread.rb +259 -0
- data/lib/kintsugi_sdk/models/shared/transactionread.rbi +123 -0
- data/lib/kintsugi_sdk/models/shared/transactionrefundstatus.rb +24 -0
- data/lib/kintsugi_sdk/models/shared/transactionrefundstatus.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionstatusenum.rb +27 -0
- data/lib/kintsugi_sdk/models/shared/transactionstatusenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rb +25 -0
- data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rb +235 -0
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +111 -0
- data/lib/kintsugi_sdk/models/shared/treatmentenum.rb +25 -0
- data/lib/kintsugi_sdk/models/shared/treatmentenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/type.rb +23 -0
- data/lib/kintsugi_sdk/models/shared/type.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/validationaddress.rb +73 -0
- data/lib/kintsugi_sdk/models/shared/validationaddress.rbi +31 -0
- data/lib/kintsugi_sdk/models/shared/validationerror.rb +41 -0
- data/lib/kintsugi_sdk/models/shared/validationerror.rbi +17 -0
- data/lib/kintsugi_sdk/models/shared.rb +104 -0
- data/lib/kintsugi_sdk/nexus.rb +155 -0
- data/lib/kintsugi_sdk/openapisdk.rb +104 -0
- data/lib/kintsugi_sdk/products.rb +756 -0
- data/lib/kintsugi_sdk/sdk_hooks/hooks.rb +95 -0
- data/lib/kintsugi_sdk/sdk_hooks/types.rb +170 -0
- data/lib/kintsugi_sdk/sdkconfiguration.rb +104 -0
- data/lib/kintsugi_sdk/sdkconfiguration.rbi +57 -0
- data/lib/kintsugi_sdk/taxestimation.rb +197 -0
- data/lib/kintsugi_sdk/transactions.rb +902 -0
- data/lib/kintsugi_sdk/utils/forms.rb +206 -0
- data/lib/kintsugi_sdk/utils/headers.rb +77 -0
- data/lib/kintsugi_sdk/utils/query_params.rb +131 -0
- data/lib/kintsugi_sdk/utils/request_bodies.rb +61 -0
- data/lib/kintsugi_sdk/utils/retries.rb +95 -0
- data/lib/kintsugi_sdk/utils/security.rb +130 -0
- data/lib/kintsugi_sdk/utils/url.rb +100 -0
- data/lib/kintsugi_sdk/utils/utils.rb +187 -0
- data/lib/kintsugi_sdk.rb +31 -0
- metadata +492 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
# typed: true
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
|
5
|
+
class KintsugiSDK::Models::Shared::TransactionItemRead
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
7
|
+
end
|
8
|
+
|
9
|
+
|
10
|
+
class KintsugiSDK::Models::Shared::TransactionItemRead
|
11
|
+
def organization_id(); end
|
12
|
+
def organization_id=(str_); end
|
13
|
+
def date(); end
|
14
|
+
def date=(str_); end
|
15
|
+
def external_product_id(); end
|
16
|
+
def external_product_id=(str_); end
|
17
|
+
def id(); end
|
18
|
+
def id=(str_); end
|
19
|
+
def tax_items(); end
|
20
|
+
def tax_items=(str_); end
|
21
|
+
def external_id(); end
|
22
|
+
def external_id=(str_); end
|
23
|
+
def description(); end
|
24
|
+
def description=(str_); end
|
25
|
+
def product(); end
|
26
|
+
def product=(str_); end
|
27
|
+
def product_id(); end
|
28
|
+
def product_id=(str_); end
|
29
|
+
def product_name(); end
|
30
|
+
def product_name=(str_); end
|
31
|
+
def product_description(); end
|
32
|
+
def product_description=(str_); end
|
33
|
+
def original_currency(); end
|
34
|
+
def original_currency=(str_); end
|
35
|
+
def destination_currency(); end
|
36
|
+
def destination_currency=(str_); end
|
37
|
+
def converted_amount(); end
|
38
|
+
def converted_amount=(str_); end
|
39
|
+
def converted_taxable_amount(); end
|
40
|
+
def converted_taxable_amount=(str_); end
|
41
|
+
def converted_tax_amount_imported(); end
|
42
|
+
def converted_tax_amount_imported=(str_); end
|
43
|
+
def converted_tax_amount_calculated(); end
|
44
|
+
def converted_tax_amount_calculated=(str_); end
|
45
|
+
def converted_total_discount(); end
|
46
|
+
def converted_total_discount=(str_); end
|
47
|
+
def converted_subtotal(); end
|
48
|
+
def converted_subtotal=(str_); end
|
49
|
+
def tax_exemption(); end
|
50
|
+
def tax_exemption=(str_); end
|
51
|
+
def total_discount(); end
|
52
|
+
def total_discount=(str_); end
|
53
|
+
def subtotal(); end
|
54
|
+
def subtotal=(str_); end
|
55
|
+
def quantity(); end
|
56
|
+
def quantity=(str_); end
|
57
|
+
def amount(); end
|
58
|
+
def amount=(str_); end
|
59
|
+
def tax_amount_imported(); end
|
60
|
+
def tax_amount_imported=(str_); end
|
61
|
+
def tax_rate_imported(); end
|
62
|
+
def tax_rate_imported=(str_); end
|
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
|
71
|
+
end
|
@@ -0,0 +1,194 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module KintsugiSDK
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class TransactionPublicRequest
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# Unique identifier of the organization.
|
17
|
+
field :organization_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('organization_id'), required: true } }
|
18
|
+
# External identifier of the transaction.
|
19
|
+
field :external_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_id'), required: true } }
|
20
|
+
# Transaction date and time
|
21
|
+
field :date, ::DateTime, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('date'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
22
|
+
|
23
|
+
field :addresses, Crystalline::Array.new(Models::Shared::TransactionAddressPublic), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('addresses'), required: true } }
|
24
|
+
|
25
|
+
field :transaction_items, Crystalline::Array.new(Models::Shared::TransactionItemBuilder), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('transaction_items'), required: true } }
|
26
|
+
|
27
|
+
field :customer, Models::Shared::CustomerBaseBase, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('customer'), required: true } }
|
28
|
+
|
29
|
+
field :type, Models::Shared::TransactionTypeEnum, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('type'), required: true, 'decoder': Utils.enum_from_string(Models::Shared::TransactionTypeEnum, false) } }
|
30
|
+
|
31
|
+
field :requires_exemption, Crystalline::Nilable.new(Models::Shared::ExemptionRequired), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('requires_exemption') } }
|
32
|
+
# Transaction date in the shop's local timezone
|
33
|
+
field :shop_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('shop_date') } }
|
34
|
+
# Timezone of the shop
|
35
|
+
field :shop_date_tz, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('shop_date_tz') } }
|
36
|
+
|
37
|
+
field :status, Crystalline::Nilable.new(Models::Shared::TransactionStatusEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Models::Shared::TransactionStatusEnum, true) } }
|
38
|
+
# Description of the transaction.
|
39
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('description') } }
|
40
|
+
# Shopify has 2 order statuses for refund case: refunded and partially_refunded
|
41
|
+
# If the given order has different status from these 2, we will set the
|
42
|
+
# transaction's refund_status to PARTIALLY_REFUNDED by default.
|
43
|
+
field :refund_status, Crystalline::Nilable.new(Models::Shared::TransactionRefundStatus), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('refund_status'), 'decoder': Utils.enum_from_string(Models::Shared::TransactionRefundStatus, true) } }
|
44
|
+
# Unique identifier of the customer.
|
45
|
+
field :customer_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('customer_id') } }
|
46
|
+
# Based on transaction item exempt status.
|
47
|
+
# NOT EXEMPT: None of the items are NOT EXEMPT
|
48
|
+
# PARTIALLY EXEMPT: At least some of the items are NOT EXEMPT
|
49
|
+
# FULLY_EXEMPT: All items sold in the transaction are EXEMPT
|
50
|
+
field :exempt, Crystalline::Nilable.new(Models::Shared::TransactionExemptStatusEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exempt'), 'decoder': Utils.enum_from_string(Models::Shared::TransactionExemptStatusEnum, true) } }
|
51
|
+
# List of exemptions applied (if any).
|
52
|
+
field :exemptions, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::Exemption)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exemptions') } }
|
53
|
+
# Related transaction identifier.
|
54
|
+
field :related_to, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('related_to') } }
|
55
|
+
# Secondary External Identifier.
|
56
|
+
field :secondary_external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('secondary_external_id') } }
|
57
|
+
# Secondary source information
|
58
|
+
field :secondary_source, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('secondary_source') } }
|
59
|
+
# Friendly identifier of the original item.
|
60
|
+
field :external_friendly_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_friendly_id') } }
|
61
|
+
|
62
|
+
field :tax_liability_source, Crystalline::Nilable.new(Models::Shared::TaxLiabilitySourceEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_liability_source'), 'decoder': Utils.enum_from_string(Models::Shared::TaxLiabilitySourceEnum, true) } }
|
63
|
+
|
64
|
+
field :currency, Crystalline::Nilable.new(Models::Shared::CurrencyEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('currency'), 'decoder': Utils.enum_from_string(Models::Shared::CurrencyEnum, true) } }
|
65
|
+
|
66
|
+
field :source, Crystalline::Nilable.new(Models::Shared::SourceEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source'), 'decoder': Utils.enum_from_string(Models::Shared::SourceEnum, true) } }
|
67
|
+
# Connection Identifier
|
68
|
+
field :connection_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('connection_id') } }
|
69
|
+
# Filing identifier.
|
70
|
+
field :filing_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('filing_id') } }
|
71
|
+
# City of the transaction address.
|
72
|
+
field :city, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('city') } }
|
73
|
+
# County of the transaction address.
|
74
|
+
field :county, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('county') } }
|
75
|
+
# State of the transaction address.
|
76
|
+
field :state, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('state') } }
|
77
|
+
|
78
|
+
field :country, Crystalline::Nilable.new(Models::Shared::CountryCodeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('country'), 'decoder': Utils.enum_from_string(Models::Shared::CountryCodeEnum, true) } }
|
79
|
+
# Postal code of the transaction.
|
80
|
+
field :postal_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('postal_code') } }
|
81
|
+
# Tax ID associated with the transaction
|
82
|
+
field :tax_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_id') } }
|
83
|
+
# Total amount of the transaction.
|
84
|
+
field :total_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_amount') } }
|
85
|
+
# Indicates if transaction is marketplace-based.
|
86
|
+
field :marketplace, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('marketplace') } }
|
87
|
+
# Imported tax amount.
|
88
|
+
field :total_tax_amount_imported, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_tax_amount_imported') } }
|
89
|
+
# Imported tax rate.
|
90
|
+
field :tax_rate_imported, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_imported') } }
|
91
|
+
# Calculated tax amount.
|
92
|
+
field :total_tax_amount_calculated, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_tax_amount_calculated') } }
|
93
|
+
# Calculated tax rate.
|
94
|
+
field :tax_rate_calculated, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_calculated') } }
|
95
|
+
# Total tax liability amount.
|
96
|
+
field :total_tax_liability_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_tax_liability_amount') } }
|
97
|
+
# Taxable amount.
|
98
|
+
field :taxable_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('taxable_amount') } }
|
99
|
+
# Transaction lock status.
|
100
|
+
field :locked, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('locked') } }
|
101
|
+
|
102
|
+
sig { params(organization_id: ::String, external_id: ::String, date: ::DateTime, addresses: T::Array[Models::Shared::TransactionAddressPublic], transaction_items: T::Array[Models::Shared::TransactionItemBuilder], customer: Models::Shared::CustomerBaseBase, type: Models::Shared::TransactionTypeEnum, requires_exemption: T.nilable(Models::Shared::ExemptionRequired), shop_date: T.nilable(::String), shop_date_tz: T.nilable(::String), status: T.nilable(Models::Shared::TransactionStatusEnum), description: T.nilable(::String), refund_status: T.nilable(Models::Shared::TransactionRefundStatus), customer_id: T.nilable(::String), exempt: T.nilable(Models::Shared::TransactionExemptStatusEnum), exemptions: T.nilable(T::Array[Models::Shared::Exemption]), related_to: T.nilable(::String), secondary_external_id: T.nilable(::String), secondary_source: T.nilable(::String), external_friendly_id: T.nilable(::String), tax_liability_source: T.nilable(Models::Shared::TaxLiabilitySourceEnum), currency: T.nilable(Models::Shared::CurrencyEnum), source: T.nilable(Models::Shared::SourceEnum), connection_id: T.nilable(::String), filing_id: T.nilable(::String), city: T.nilable(::String), county: T.nilable(::String), state: T.nilable(::String), country: T.nilable(Models::Shared::CountryCodeEnum), postal_code: T.nilable(::String), tax_id: T.nilable(::String), total_amount: T.nilable(::Float), marketplace: T.nilable(T::Boolean), total_tax_amount_imported: T.nilable(::Float), tax_rate_imported: T.nilable(::Float), total_tax_amount_calculated: T.nilable(::Float), tax_rate_calculated: T.nilable(::Float), total_tax_liability_amount: T.nilable(::Float), taxable_amount: T.nilable(::Float), locked: T.nilable(T::Boolean)).void }
|
103
|
+
def initialize(organization_id:, external_id:, date:, addresses:, transaction_items:, customer:, type:, requires_exemption: nil, shop_date: nil, shop_date_tz: nil, status: nil, description: nil, refund_status: nil, customer_id: nil, exempt: nil, exemptions: nil, related_to: nil, secondary_external_id: nil, secondary_source: nil, external_friendly_id: nil, tax_liability_source: nil, currency: nil, source: nil, connection_id: nil, filing_id: nil, city: nil, county: nil, state: nil, country: nil, postal_code: nil, tax_id: nil, total_amount: 0.00, marketplace: false, total_tax_amount_imported: 0.00, tax_rate_imported: 0.00, total_tax_amount_calculated: 0.00, tax_rate_calculated: 0.00, total_tax_liability_amount: 0.00, taxable_amount: 0.00, locked: false)
|
104
|
+
@organization_id = organization_id
|
105
|
+
@external_id = external_id
|
106
|
+
@date = date
|
107
|
+
@addresses = addresses
|
108
|
+
@transaction_items = transaction_items
|
109
|
+
@customer = customer
|
110
|
+
@type = type
|
111
|
+
@requires_exemption = requires_exemption
|
112
|
+
@shop_date = shop_date
|
113
|
+
@shop_date_tz = shop_date_tz
|
114
|
+
@status = status
|
115
|
+
@description = description
|
116
|
+
@refund_status = refund_status
|
117
|
+
@customer_id = customer_id
|
118
|
+
@exempt = exempt
|
119
|
+
@exemptions = exemptions
|
120
|
+
@related_to = related_to
|
121
|
+
@secondary_external_id = secondary_external_id
|
122
|
+
@secondary_source = secondary_source
|
123
|
+
@external_friendly_id = external_friendly_id
|
124
|
+
@tax_liability_source = tax_liability_source
|
125
|
+
@currency = currency
|
126
|
+
@source = source
|
127
|
+
@connection_id = connection_id
|
128
|
+
@filing_id = filing_id
|
129
|
+
@city = city
|
130
|
+
@county = county
|
131
|
+
@state = state
|
132
|
+
@country = country
|
133
|
+
@postal_code = postal_code
|
134
|
+
@tax_id = tax_id
|
135
|
+
@total_amount = total_amount
|
136
|
+
@marketplace = marketplace
|
137
|
+
@total_tax_amount_imported = total_tax_amount_imported
|
138
|
+
@tax_rate_imported = tax_rate_imported
|
139
|
+
@total_tax_amount_calculated = total_tax_amount_calculated
|
140
|
+
@tax_rate_calculated = tax_rate_calculated
|
141
|
+
@total_tax_liability_amount = total_tax_liability_amount
|
142
|
+
@taxable_amount = taxable_amount
|
143
|
+
@locked = locked
|
144
|
+
end
|
145
|
+
|
146
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
147
|
+
def ==(other)
|
148
|
+
return false unless other.is_a? self.class
|
149
|
+
return false unless @organization_id == other.organization_id
|
150
|
+
return false unless @external_id == other.external_id
|
151
|
+
return false unless @date == other.date
|
152
|
+
return false unless @addresses == other.addresses
|
153
|
+
return false unless @transaction_items == other.transaction_items
|
154
|
+
return false unless @customer == other.customer
|
155
|
+
return false unless @type == other.type
|
156
|
+
return false unless @requires_exemption == other.requires_exemption
|
157
|
+
return false unless @shop_date == other.shop_date
|
158
|
+
return false unless @shop_date_tz == other.shop_date_tz
|
159
|
+
return false unless @status == other.status
|
160
|
+
return false unless @description == other.description
|
161
|
+
return false unless @refund_status == other.refund_status
|
162
|
+
return false unless @customer_id == other.customer_id
|
163
|
+
return false unless @exempt == other.exempt
|
164
|
+
return false unless @exemptions == other.exemptions
|
165
|
+
return false unless @related_to == other.related_to
|
166
|
+
return false unless @secondary_external_id == other.secondary_external_id
|
167
|
+
return false unless @secondary_source == other.secondary_source
|
168
|
+
return false unless @external_friendly_id == other.external_friendly_id
|
169
|
+
return false unless @tax_liability_source == other.tax_liability_source
|
170
|
+
return false unless @currency == other.currency
|
171
|
+
return false unless @source == other.source
|
172
|
+
return false unless @connection_id == other.connection_id
|
173
|
+
return false unless @filing_id == other.filing_id
|
174
|
+
return false unless @city == other.city
|
175
|
+
return false unless @county == other.county
|
176
|
+
return false unless @state == other.state
|
177
|
+
return false unless @country == other.country
|
178
|
+
return false unless @postal_code == other.postal_code
|
179
|
+
return false unless @tax_id == other.tax_id
|
180
|
+
return false unless @total_amount == other.total_amount
|
181
|
+
return false unless @marketplace == other.marketplace
|
182
|
+
return false unless @total_tax_amount_imported == other.total_tax_amount_imported
|
183
|
+
return false unless @tax_rate_imported == other.tax_rate_imported
|
184
|
+
return false unless @total_tax_amount_calculated == other.total_tax_amount_calculated
|
185
|
+
return false unless @tax_rate_calculated == other.tax_rate_calculated
|
186
|
+
return false unless @total_tax_liability_amount == other.total_tax_liability_amount
|
187
|
+
return false unless @taxable_amount == other.taxable_amount
|
188
|
+
return false unless @locked == other.locked
|
189
|
+
true
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# typed: true
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
|
5
|
+
class KintsugiSDK::Models::Shared::TransactionPublicRequest
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
7
|
+
end
|
8
|
+
|
9
|
+
|
10
|
+
class KintsugiSDK::Models::Shared::TransactionPublicRequest
|
11
|
+
def organization_id(); end
|
12
|
+
def organization_id=(str_); end
|
13
|
+
def external_id(); end
|
14
|
+
def external_id=(str_); end
|
15
|
+
def date(); end
|
16
|
+
def date=(str_); end
|
17
|
+
def addresses(); end
|
18
|
+
def addresses=(str_); end
|
19
|
+
def transaction_items(); end
|
20
|
+
def transaction_items=(str_); end
|
21
|
+
def customer(); end
|
22
|
+
def customer=(str_); end
|
23
|
+
def type(); end
|
24
|
+
def type=(str_); end
|
25
|
+
def requires_exemption(); end
|
26
|
+
def requires_exemption=(str_); end
|
27
|
+
def shop_date(); end
|
28
|
+
def shop_date=(str_); end
|
29
|
+
def shop_date_tz(); end
|
30
|
+
def shop_date_tz=(str_); end
|
31
|
+
def status(); end
|
32
|
+
def status=(str_); end
|
33
|
+
def description(); end
|
34
|
+
def description=(str_); end
|
35
|
+
def refund_status(); end
|
36
|
+
def refund_status=(str_); end
|
37
|
+
def customer_id(); end
|
38
|
+
def customer_id=(str_); end
|
39
|
+
def exempt(); end
|
40
|
+
def exempt=(str_); end
|
41
|
+
def exemptions(); end
|
42
|
+
def exemptions=(str_); end
|
43
|
+
def related_to(); end
|
44
|
+
def related_to=(str_); end
|
45
|
+
def secondary_external_id(); end
|
46
|
+
def secondary_external_id=(str_); end
|
47
|
+
def secondary_source(); end
|
48
|
+
def secondary_source=(str_); end
|
49
|
+
def external_friendly_id(); end
|
50
|
+
def external_friendly_id=(str_); end
|
51
|
+
def tax_liability_source(); end
|
52
|
+
def tax_liability_source=(str_); end
|
53
|
+
def currency(); end
|
54
|
+
def currency=(str_); end
|
55
|
+
def source(); end
|
56
|
+
def source=(str_); end
|
57
|
+
def connection_id(); end
|
58
|
+
def connection_id=(str_); end
|
59
|
+
def filing_id(); end
|
60
|
+
def filing_id=(str_); end
|
61
|
+
def city(); end
|
62
|
+
def city=(str_); end
|
63
|
+
def county(); end
|
64
|
+
def county=(str_); end
|
65
|
+
def state(); end
|
66
|
+
def state=(str_); end
|
67
|
+
def country(); end
|
68
|
+
def country=(str_); end
|
69
|
+
def postal_code(); end
|
70
|
+
def postal_code=(str_); end
|
71
|
+
def tax_id(); end
|
72
|
+
def tax_id=(str_); end
|
73
|
+
def total_amount(); end
|
74
|
+
def total_amount=(str_); end
|
75
|
+
def marketplace(); end
|
76
|
+
def marketplace=(str_); end
|
77
|
+
def total_tax_amount_imported(); end
|
78
|
+
def total_tax_amount_imported=(str_); end
|
79
|
+
def tax_rate_imported(); end
|
80
|
+
def tax_rate_imported=(str_); end
|
81
|
+
def total_tax_amount_calculated(); end
|
82
|
+
def total_tax_amount_calculated=(str_); end
|
83
|
+
def tax_rate_calculated(); end
|
84
|
+
def tax_rate_calculated=(str_); end
|
85
|
+
def total_tax_liability_amount(); end
|
86
|
+
def total_tax_liability_amount=(str_); end
|
87
|
+
def taxable_amount(); end
|
88
|
+
def taxable_amount=(str_); end
|
89
|
+
def locked(); end
|
90
|
+
def locked=(str_); end
|
91
|
+
end
|
@@ -0,0 +1,259 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module KintsugiSDK
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class TransactionRead
|
13
|
+
extend T::Sig
|
14
|
+
include Crystalline::MetadataFields
|
15
|
+
|
16
|
+
# Unique identifier of the organization.
|
17
|
+
field :organization_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('organization_id'), required: true } }
|
18
|
+
# External identifier of the transaction.
|
19
|
+
field :external_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_id'), required: true } }
|
20
|
+
# Transaction date and time
|
21
|
+
field :date, ::DateTime, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('date'), required: true, 'decoder': Utils.datetime_from_iso_format(false) } }
|
22
|
+
# The unique transaction identifier.
|
23
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('id'), required: true } }
|
24
|
+
# List of addresses associated.
|
25
|
+
field :addresses, Crystalline::Array.new(Models::Shared::TransactionAddressReadOutput), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('addresses'), required: true } }
|
26
|
+
# List of items in the transaction.
|
27
|
+
field :transaction_items, Crystalline::Array.new(Models::Shared::TransactionItemRead), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('transaction_items'), required: true } }
|
28
|
+
|
29
|
+
field :type, Models::Shared::TransactionTypeEnum, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('type'), required: true, 'decoder': Utils.enum_from_string(Models::Shared::TransactionTypeEnum, false) } }
|
30
|
+
|
31
|
+
field :requires_exemption, Crystalline::Nilable.new(Models::Shared::ExemptionRequired), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('requires_exemption') } }
|
32
|
+
# Transaction date in the shop's local timezone
|
33
|
+
field :shop_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('shop_date') } }
|
34
|
+
# Timezone of the shop
|
35
|
+
field :shop_date_tz, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('shop_date_tz') } }
|
36
|
+
|
37
|
+
field :status, Crystalline::Nilable.new(Models::Shared::TransactionStatusEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Models::Shared::TransactionStatusEnum, true) } }
|
38
|
+
# Description of the transaction.
|
39
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('description') } }
|
40
|
+
# Shopify has 2 order statuses for refund case: refunded and partially_refunded
|
41
|
+
# If the given order has different status from these 2, we will set the
|
42
|
+
# transaction's refund_status to PARTIALLY_REFUNDED by default.
|
43
|
+
field :refund_status, Crystalline::Nilable.new(Models::Shared::TransactionRefundStatus), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('refund_status'), 'decoder': Utils.enum_from_string(Models::Shared::TransactionRefundStatus, true) } }
|
44
|
+
# Unique identifier of the customer.
|
45
|
+
field :customer_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('customer_id') } }
|
46
|
+
# Based on transaction item exempt status.
|
47
|
+
# NOT EXEMPT: None of the items are NOT EXEMPT
|
48
|
+
# PARTIALLY EXEMPT: At least some of the items are NOT EXEMPT
|
49
|
+
# FULLY_EXEMPT: All items sold in the transaction are EXEMPT
|
50
|
+
field :exempt, Crystalline::Nilable.new(Models::Shared::TransactionExemptStatusEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exempt'), 'decoder': Utils.enum_from_string(Models::Shared::TransactionExemptStatusEnum, true) } }
|
51
|
+
# List of exemptions applied (if any).
|
52
|
+
field :exemptions, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::Exemption)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exemptions') } }
|
53
|
+
# Related transaction identifier.
|
54
|
+
field :related_to, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('related_to') } }
|
55
|
+
# Secondary External Identifier.
|
56
|
+
field :secondary_external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('secondary_external_id') } }
|
57
|
+
# Secondary source information
|
58
|
+
field :secondary_source, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('secondary_source') } }
|
59
|
+
# Friendly identifier of the original item.
|
60
|
+
field :external_friendly_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_friendly_id') } }
|
61
|
+
|
62
|
+
field :tax_liability_source, Crystalline::Nilable.new(Models::Shared::TaxLiabilitySourceEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_liability_source'), 'decoder': Utils.enum_from_string(Models::Shared::TaxLiabilitySourceEnum, true) } }
|
63
|
+
|
64
|
+
field :currency, Crystalline::Nilable.new(Models::Shared::CurrencyEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('currency'), 'decoder': Utils.enum_from_string(Models::Shared::CurrencyEnum, true) } }
|
65
|
+
|
66
|
+
field :source, Crystalline::Nilable.new(Models::Shared::SourceEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('source'), 'decoder': Utils.enum_from_string(Models::Shared::SourceEnum, true) } }
|
67
|
+
# Connection Identifier
|
68
|
+
field :connection_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('connection_id') } }
|
69
|
+
# Filing identifier.
|
70
|
+
field :filing_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('filing_id') } }
|
71
|
+
# City of the transaction address.
|
72
|
+
field :city, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('city') } }
|
73
|
+
# County of the transaction address.
|
74
|
+
field :county, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('county') } }
|
75
|
+
# State of the transaction address.
|
76
|
+
field :state, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('state') } }
|
77
|
+
|
78
|
+
field :country, Crystalline::Nilable.new(Models::Shared::CountryCodeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('country'), 'decoder': Utils.enum_from_string(Models::Shared::CountryCodeEnum, true) } }
|
79
|
+
# Postal code of the transaction.
|
80
|
+
field :postal_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('postal_code') } }
|
81
|
+
# Tax ID associated with the transaction
|
82
|
+
field :tax_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_id') } }
|
83
|
+
|
84
|
+
field :address_status, Crystalline::Nilable.new(Models::Shared::AddressStatus), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('address_status'), 'decoder': Utils.enum_from_string(Models::Shared::AddressStatus, true) } }
|
85
|
+
# Our transaction state, used to determine when/if a transaction needs additional
|
86
|
+
# processing.
|
87
|
+
field :processing_status, Crystalline::Nilable.new(Models::Shared::ProcessingStatusEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('processing_status'), 'decoder': Utils.enum_from_string(Models::Shared::ProcessingStatusEnum, true) } }
|
88
|
+
|
89
|
+
field :destination_currency, Crystalline::Nilable.new(Models::Shared::CurrencyEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('destination_currency'), 'decoder': Utils.enum_from_string(Models::Shared::CurrencyEnum, true) } }
|
90
|
+
# Converted total amount.
|
91
|
+
field :converted_total_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_amount') } }
|
92
|
+
# Converted imported tax amount.
|
93
|
+
field :converted_total_tax_amount_imported, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_tax_amount_imported') } }
|
94
|
+
# Converted calculated tax amount.
|
95
|
+
field :converted_total_tax_amount_calculated, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_tax_amount_calculated') } }
|
96
|
+
# Currency conversion rate.
|
97
|
+
field :conversion_rate, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('conversion_rate') } }
|
98
|
+
# Converted taxable amount.
|
99
|
+
field :converted_taxable_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_taxable_amount') } }
|
100
|
+
# Converted total discount amount.
|
101
|
+
field :converted_total_discount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_discount') } }
|
102
|
+
# Converted subtotal amount.
|
103
|
+
field :converted_subtotal, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_subtotal') } }
|
104
|
+
# Converted total tax liability amount.
|
105
|
+
field :converted_total_tax_liability_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_tax_liability_amount') } }
|
106
|
+
|
107
|
+
field :customer, Crystalline::Nilable.new(Models::Shared::CustomerRead), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('customer') } }
|
108
|
+
# Total amount of all discounts applied to the transaction.
|
109
|
+
field :total_discount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_discount') } }
|
110
|
+
# Subtotal amount before any discounts are applied.
|
111
|
+
field :subtotal, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('subtotal') } }
|
112
|
+
# Final total amount including tax liability.
|
113
|
+
field :final_total_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('final_total_amount') } }
|
114
|
+
# Converted final total amount including tax liability.
|
115
|
+
field :converted_final_total_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_final_total_amount') } }
|
116
|
+
# Total amount of the transaction.
|
117
|
+
field :total_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_amount') } }
|
118
|
+
# Indicates if transaction is marketplace-based.
|
119
|
+
field :marketplace, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('marketplace') } }
|
120
|
+
# Imported tax amount.
|
121
|
+
field :total_tax_amount_imported, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_tax_amount_imported') } }
|
122
|
+
# Imported tax rate.
|
123
|
+
field :tax_rate_imported, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_imported') } }
|
124
|
+
# Calculated tax amount.
|
125
|
+
field :total_tax_amount_calculated, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_tax_amount_calculated') } }
|
126
|
+
# Calculated tax rate.
|
127
|
+
field :tax_rate_calculated, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_calculated') } }
|
128
|
+
# Total tax liability amount.
|
129
|
+
field :total_tax_liability_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_tax_liability_amount') } }
|
130
|
+
# Taxable amount.
|
131
|
+
field :taxable_amount, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('taxable_amount') } }
|
132
|
+
# Transaction lock status.
|
133
|
+
field :locked, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('locked') } }
|
134
|
+
|
135
|
+
sig { params(organization_id: ::String, external_id: ::String, date: ::DateTime, id: ::String, addresses: T::Array[Models::Shared::TransactionAddressReadOutput], transaction_items: T::Array[Models::Shared::TransactionItemRead], type: Models::Shared::TransactionTypeEnum, requires_exemption: T.nilable(Models::Shared::ExemptionRequired), shop_date: T.nilable(::String), shop_date_tz: T.nilable(::String), status: T.nilable(Models::Shared::TransactionStatusEnum), description: T.nilable(::String), refund_status: T.nilable(Models::Shared::TransactionRefundStatus), customer_id: T.nilable(::String), exempt: T.nilable(Models::Shared::TransactionExemptStatusEnum), exemptions: T.nilable(T::Array[Models::Shared::Exemption]), related_to: T.nilable(::String), secondary_external_id: T.nilable(::String), secondary_source: T.nilable(::String), external_friendly_id: T.nilable(::String), tax_liability_source: T.nilable(Models::Shared::TaxLiabilitySourceEnum), currency: T.nilable(Models::Shared::CurrencyEnum), source: T.nilable(Models::Shared::SourceEnum), connection_id: T.nilable(::String), filing_id: T.nilable(::String), city: T.nilable(::String), county: T.nilable(::String), state: T.nilable(::String), country: T.nilable(Models::Shared::CountryCodeEnum), postal_code: T.nilable(::String), tax_id: T.nilable(::String), address_status: T.nilable(Models::Shared::AddressStatus), processing_status: T.nilable(Models::Shared::ProcessingStatusEnum), destination_currency: T.nilable(Models::Shared::CurrencyEnum), converted_total_amount: T.nilable(::String), converted_total_tax_amount_imported: T.nilable(::String), converted_total_tax_amount_calculated: T.nilable(::String), conversion_rate: T.nilable(::String), converted_taxable_amount: T.nilable(::String), converted_total_discount: T.nilable(::String), converted_subtotal: T.nilable(::String), converted_total_tax_liability_amount: T.nilable(::String), customer: T.nilable(Models::Shared::CustomerRead), total_discount: T.nilable(::String), subtotal: T.nilable(::String), final_total_amount: T.nilable(::String), converted_final_total_amount: T.nilable(::String), total_amount: T.nilable(::String), marketplace: T.nilable(T::Boolean), total_tax_amount_imported: T.nilable(::String), tax_rate_imported: T.nilable(::String), total_tax_amount_calculated: T.nilable(::String), tax_rate_calculated: T.nilable(::String), total_tax_liability_amount: T.nilable(::String), taxable_amount: T.nilable(::String), locked: T.nilable(T::Boolean)).void }
|
136
|
+
def initialize(organization_id:, external_id:, date:, id:, addresses:, transaction_items:, type:, requires_exemption: nil, shop_date: nil, shop_date_tz: nil, status: nil, description: nil, refund_status: nil, customer_id: nil, exempt: nil, exemptions: nil, related_to: nil, secondary_external_id: nil, secondary_source: nil, external_friendly_id: nil, tax_liability_source: nil, currency: nil, source: nil, connection_id: nil, filing_id: nil, city: nil, county: nil, state: nil, country: nil, postal_code: nil, tax_id: nil, address_status: nil, processing_status: nil, destination_currency: nil, converted_total_amount: nil, converted_total_tax_amount_imported: nil, converted_total_tax_amount_calculated: nil, conversion_rate: nil, converted_taxable_amount: nil, converted_total_discount: nil, converted_subtotal: nil, converted_total_tax_liability_amount: nil, customer: nil, total_discount: nil, subtotal: nil, final_total_amount: nil, converted_final_total_amount: nil, total_amount: '0.00', marketplace: false, total_tax_amount_imported: '0.00', tax_rate_imported: '0.00', total_tax_amount_calculated: '0.00', tax_rate_calculated: '0.00', total_tax_liability_amount: '0.00', taxable_amount: '0.00', locked: false)
|
137
|
+
@organization_id = organization_id
|
138
|
+
@external_id = external_id
|
139
|
+
@date = date
|
140
|
+
@id = id
|
141
|
+
@addresses = addresses
|
142
|
+
@transaction_items = transaction_items
|
143
|
+
@type = type
|
144
|
+
@requires_exemption = requires_exemption
|
145
|
+
@shop_date = shop_date
|
146
|
+
@shop_date_tz = shop_date_tz
|
147
|
+
@status = status
|
148
|
+
@description = description
|
149
|
+
@refund_status = refund_status
|
150
|
+
@customer_id = customer_id
|
151
|
+
@exempt = exempt
|
152
|
+
@exemptions = exemptions
|
153
|
+
@related_to = related_to
|
154
|
+
@secondary_external_id = secondary_external_id
|
155
|
+
@secondary_source = secondary_source
|
156
|
+
@external_friendly_id = external_friendly_id
|
157
|
+
@tax_liability_source = tax_liability_source
|
158
|
+
@currency = currency
|
159
|
+
@source = source
|
160
|
+
@connection_id = connection_id
|
161
|
+
@filing_id = filing_id
|
162
|
+
@city = city
|
163
|
+
@county = county
|
164
|
+
@state = state
|
165
|
+
@country = country
|
166
|
+
@postal_code = postal_code
|
167
|
+
@tax_id = tax_id
|
168
|
+
@address_status = address_status
|
169
|
+
@processing_status = processing_status
|
170
|
+
@destination_currency = destination_currency
|
171
|
+
@converted_total_amount = converted_total_amount
|
172
|
+
@converted_total_tax_amount_imported = converted_total_tax_amount_imported
|
173
|
+
@converted_total_tax_amount_calculated = converted_total_tax_amount_calculated
|
174
|
+
@conversion_rate = conversion_rate
|
175
|
+
@converted_taxable_amount = converted_taxable_amount
|
176
|
+
@converted_total_discount = converted_total_discount
|
177
|
+
@converted_subtotal = converted_subtotal
|
178
|
+
@converted_total_tax_liability_amount = converted_total_tax_liability_amount
|
179
|
+
@customer = customer
|
180
|
+
@total_discount = total_discount
|
181
|
+
@subtotal = subtotal
|
182
|
+
@final_total_amount = final_total_amount
|
183
|
+
@converted_final_total_amount = converted_final_total_amount
|
184
|
+
@total_amount = total_amount
|
185
|
+
@marketplace = marketplace
|
186
|
+
@total_tax_amount_imported = total_tax_amount_imported
|
187
|
+
@tax_rate_imported = tax_rate_imported
|
188
|
+
@total_tax_amount_calculated = total_tax_amount_calculated
|
189
|
+
@tax_rate_calculated = tax_rate_calculated
|
190
|
+
@total_tax_liability_amount = total_tax_liability_amount
|
191
|
+
@taxable_amount = taxable_amount
|
192
|
+
@locked = locked
|
193
|
+
end
|
194
|
+
|
195
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
196
|
+
def ==(other)
|
197
|
+
return false unless other.is_a? self.class
|
198
|
+
return false unless @organization_id == other.organization_id
|
199
|
+
return false unless @external_id == other.external_id
|
200
|
+
return false unless @date == other.date
|
201
|
+
return false unless @id == other.id
|
202
|
+
return false unless @addresses == other.addresses
|
203
|
+
return false unless @transaction_items == other.transaction_items
|
204
|
+
return false unless @type == other.type
|
205
|
+
return false unless @requires_exemption == other.requires_exemption
|
206
|
+
return false unless @shop_date == other.shop_date
|
207
|
+
return false unless @shop_date_tz == other.shop_date_tz
|
208
|
+
return false unless @status == other.status
|
209
|
+
return false unless @description == other.description
|
210
|
+
return false unless @refund_status == other.refund_status
|
211
|
+
return false unless @customer_id == other.customer_id
|
212
|
+
return false unless @exempt == other.exempt
|
213
|
+
return false unless @exemptions == other.exemptions
|
214
|
+
return false unless @related_to == other.related_to
|
215
|
+
return false unless @secondary_external_id == other.secondary_external_id
|
216
|
+
return false unless @secondary_source == other.secondary_source
|
217
|
+
return false unless @external_friendly_id == other.external_friendly_id
|
218
|
+
return false unless @tax_liability_source == other.tax_liability_source
|
219
|
+
return false unless @currency == other.currency
|
220
|
+
return false unless @source == other.source
|
221
|
+
return false unless @connection_id == other.connection_id
|
222
|
+
return false unless @filing_id == other.filing_id
|
223
|
+
return false unless @city == other.city
|
224
|
+
return false unless @county == other.county
|
225
|
+
return false unless @state == other.state
|
226
|
+
return false unless @country == other.country
|
227
|
+
return false unless @postal_code == other.postal_code
|
228
|
+
return false unless @tax_id == other.tax_id
|
229
|
+
return false unless @address_status == other.address_status
|
230
|
+
return false unless @processing_status == other.processing_status
|
231
|
+
return false unless @destination_currency == other.destination_currency
|
232
|
+
return false unless @converted_total_amount == other.converted_total_amount
|
233
|
+
return false unless @converted_total_tax_amount_imported == other.converted_total_tax_amount_imported
|
234
|
+
return false unless @converted_total_tax_amount_calculated == other.converted_total_tax_amount_calculated
|
235
|
+
return false unless @conversion_rate == other.conversion_rate
|
236
|
+
return false unless @converted_taxable_amount == other.converted_taxable_amount
|
237
|
+
return false unless @converted_total_discount == other.converted_total_discount
|
238
|
+
return false unless @converted_subtotal == other.converted_subtotal
|
239
|
+
return false unless @converted_total_tax_liability_amount == other.converted_total_tax_liability_amount
|
240
|
+
return false unless @customer == other.customer
|
241
|
+
return false unless @total_discount == other.total_discount
|
242
|
+
return false unless @subtotal == other.subtotal
|
243
|
+
return false unless @final_total_amount == other.final_total_amount
|
244
|
+
return false unless @converted_final_total_amount == other.converted_final_total_amount
|
245
|
+
return false unless @total_amount == other.total_amount
|
246
|
+
return false unless @marketplace == other.marketplace
|
247
|
+
return false unless @total_tax_amount_imported == other.total_tax_amount_imported
|
248
|
+
return false unless @tax_rate_imported == other.tax_rate_imported
|
249
|
+
return false unless @total_tax_amount_calculated == other.total_tax_amount_calculated
|
250
|
+
return false unless @tax_rate_calculated == other.tax_rate_calculated
|
251
|
+
return false unless @total_tax_liability_amount == other.total_tax_liability_amount
|
252
|
+
return false unless @taxable_amount == other.taxable_amount
|
253
|
+
return false unless @locked == other.locked
|
254
|
+
true
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
258
|
+
end
|
259
|
+
end
|