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,123 @@
|
|
1
|
+
# typed: true
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
|
5
|
+
class KintsugiSDK::Models::Shared::TransactionRead
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
7
|
+
end
|
8
|
+
|
9
|
+
|
10
|
+
class KintsugiSDK::Models::Shared::TransactionRead
|
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 id(); end
|
18
|
+
def id=(str_); end
|
19
|
+
def addresses(); end
|
20
|
+
def addresses=(str_); end
|
21
|
+
def transaction_items(); end
|
22
|
+
def transaction_items=(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 address_status(); end
|
74
|
+
def address_status=(str_); end
|
75
|
+
def processing_status(); end
|
76
|
+
def processing_status=(str_); end
|
77
|
+
def destination_currency(); end
|
78
|
+
def destination_currency=(str_); end
|
79
|
+
def converted_total_amount(); end
|
80
|
+
def converted_total_amount=(str_); end
|
81
|
+
def converted_total_tax_amount_imported(); end
|
82
|
+
def converted_total_tax_amount_imported=(str_); end
|
83
|
+
def converted_total_tax_amount_calculated(); end
|
84
|
+
def converted_total_tax_amount_calculated=(str_); end
|
85
|
+
def conversion_rate(); end
|
86
|
+
def conversion_rate=(str_); end
|
87
|
+
def converted_taxable_amount(); end
|
88
|
+
def converted_taxable_amount=(str_); end
|
89
|
+
def converted_total_discount(); end
|
90
|
+
def converted_total_discount=(str_); end
|
91
|
+
def converted_subtotal(); end
|
92
|
+
def converted_subtotal=(str_); end
|
93
|
+
def converted_total_tax_liability_amount(); end
|
94
|
+
def converted_total_tax_liability_amount=(str_); end
|
95
|
+
def customer(); end
|
96
|
+
def customer=(str_); end
|
97
|
+
def total_discount(); end
|
98
|
+
def total_discount=(str_); end
|
99
|
+
def subtotal(); end
|
100
|
+
def subtotal=(str_); end
|
101
|
+
def final_total_amount(); end
|
102
|
+
def final_total_amount=(str_); end
|
103
|
+
def converted_final_total_amount(); end
|
104
|
+
def converted_final_total_amount=(str_); end
|
105
|
+
def total_amount(); end
|
106
|
+
def total_amount=(str_); end
|
107
|
+
def marketplace(); end
|
108
|
+
def marketplace=(str_); end
|
109
|
+
def total_tax_amount_imported(); end
|
110
|
+
def total_tax_amount_imported=(str_); end
|
111
|
+
def tax_rate_imported(); end
|
112
|
+
def tax_rate_imported=(str_); end
|
113
|
+
def total_tax_amount_calculated(); end
|
114
|
+
def total_tax_amount_calculated=(str_); end
|
115
|
+
def tax_rate_calculated(); end
|
116
|
+
def tax_rate_calculated=(str_); end
|
117
|
+
def total_tax_liability_amount(); end
|
118
|
+
def total_tax_liability_amount=(str_); end
|
119
|
+
def taxable_amount(); end
|
120
|
+
def taxable_amount=(str_); end
|
121
|
+
def locked(); end
|
122
|
+
def locked=(str_); end
|
123
|
+
end
|
@@ -0,0 +1,24 @@
|
|
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
|
+
# TransactionRefundStatus - Shopify has 2 order statuses for refund case: refunded and partially_refunded
|
12
|
+
# If the given order has different status from these 2, we will set the
|
13
|
+
# transaction's refund_status to PARTIALLY_REFUNDED by default.
|
14
|
+
class TransactionRefundStatus < T::Enum
|
15
|
+
|
16
|
+
|
17
|
+
enums do
|
18
|
+
FULLY_REFUNDED = new('FULLY_REFUNDED')
|
19
|
+
PARTIALLY_REFUNDED = new('PARTIALLY_REFUNDED')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module KintsugiSDK
|
8
|
+
module Models
|
9
|
+
module Shared
|
10
|
+
|
11
|
+
|
12
|
+
class TransactionStatusEnum < T::Enum
|
13
|
+
|
14
|
+
|
15
|
+
enums do
|
16
|
+
PENDING = new('PENDING')
|
17
|
+
COMMITTED = new('COMMITTED')
|
18
|
+
CANCELLED = new('CANCELLED')
|
19
|
+
FULLY_REFUNDED = new('FULLY_REFUNDED')
|
20
|
+
PARTIALLY_REFUNDED = new('PARTIALLY_REFUNDED')
|
21
|
+
INVALID = new('INVALID')
|
22
|
+
ARCHIVED = new('ARCHIVED')
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,25 @@
|
|
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 TransactionTypeEnum < T::Enum
|
13
|
+
|
14
|
+
|
15
|
+
enums do
|
16
|
+
SALE = new('SALE')
|
17
|
+
FULL_CREDIT_NOTE = new('FULL_CREDIT_NOTE')
|
18
|
+
PARTIAL_CREDIT_NOTE = new('PARTIAL_CREDIT_NOTE')
|
19
|
+
TAX_REFUND = new('TAX_REFUND')
|
20
|
+
ARCHIVE = new('ARCHIVE')
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,235 @@
|
|
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 TransactionUpdate
|
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::TransactionAddressBuilder), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('addresses'), required: true } }
|
24
|
+
|
25
|
+
field :transaction_items, Crystalline::Array.new(Models::Shared::TransactionItemCreateUpdate), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('transaction_items'), required: true } }
|
26
|
+
|
27
|
+
field :customer, Models::Shared::CustomerUpdate, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('customer'), required: true } }
|
28
|
+
|
29
|
+
field :requires_exemption, Crystalline::Nilable.new(Models::Shared::ExemptionRequired), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('requires_exemption') } }
|
30
|
+
# Transaction date in the shop's local timezone
|
31
|
+
field :shop_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('shop_date') } }
|
32
|
+
# Timezone of the shop
|
33
|
+
field :shop_date_tz, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('shop_date_tz') } }
|
34
|
+
|
35
|
+
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) } }
|
36
|
+
# Description of the transaction.
|
37
|
+
field :description, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('description') } }
|
38
|
+
# Shopify has 2 order statuses for refund case: refunded and partially_refunded
|
39
|
+
# If the given order has different status from these 2, we will set the
|
40
|
+
# transaction's refund_status to PARTIALLY_REFUNDED by default.
|
41
|
+
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) } }
|
42
|
+
# Unique identifier of the customer.
|
43
|
+
field :customer_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('customer_id') } }
|
44
|
+
# Based on transaction item exempt status.
|
45
|
+
# NOT EXEMPT: None of the items are NOT EXEMPT
|
46
|
+
# PARTIALLY EXEMPT: At least some of the items are NOT EXEMPT
|
47
|
+
# FULLY_EXEMPT: All items sold in the transaction are EXEMPT
|
48
|
+
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) } }
|
49
|
+
# List of exemptions applied (if any).
|
50
|
+
field :exemptions, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::Exemption)), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exemptions') } }
|
51
|
+
# Related transaction identifier.
|
52
|
+
field :related_to, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('related_to') } }
|
53
|
+
# Secondary External Identifier.
|
54
|
+
field :secondary_external_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('secondary_external_id') } }
|
55
|
+
# Secondary source information
|
56
|
+
field :secondary_source, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('secondary_source') } }
|
57
|
+
# Friendly identifier of the original item.
|
58
|
+
field :external_friendly_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('external_friendly_id') } }
|
59
|
+
|
60
|
+
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) } }
|
61
|
+
|
62
|
+
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) } }
|
63
|
+
|
64
|
+
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) } }
|
65
|
+
# Connection Identifier
|
66
|
+
field :connection_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('connection_id') } }
|
67
|
+
# Filing identifier.
|
68
|
+
field :filing_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('filing_id') } }
|
69
|
+
# City of the transaction address.
|
70
|
+
field :city, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('city') } }
|
71
|
+
# County of the transaction address.
|
72
|
+
field :county, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('county') } }
|
73
|
+
# State of the transaction address.
|
74
|
+
field :state, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('state') } }
|
75
|
+
|
76
|
+
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) } }
|
77
|
+
# Postal code of the transaction.
|
78
|
+
field :postal_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('postal_code') } }
|
79
|
+
# Tax ID associated with the transaction
|
80
|
+
field :tax_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_id') } }
|
81
|
+
|
82
|
+
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) } }
|
83
|
+
# Our transaction state, used to determine when/if a transaction needs additional
|
84
|
+
# processing.
|
85
|
+
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) } }
|
86
|
+
|
87
|
+
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) } }
|
88
|
+
# Converted total amount.
|
89
|
+
field :converted_total_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_amount') } }
|
90
|
+
# Converted imported tax amount.
|
91
|
+
field :converted_total_tax_amount_imported, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_tax_amount_imported') } }
|
92
|
+
# Converted calculated tax amount.
|
93
|
+
field :converted_total_tax_amount_calculated, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_tax_amount_calculated') } }
|
94
|
+
# Currency conversion rate.
|
95
|
+
field :conversion_rate, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('conversion_rate') } }
|
96
|
+
# Converted taxable amount.
|
97
|
+
field :converted_taxable_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_taxable_amount') } }
|
98
|
+
# Converted total discount amount.
|
99
|
+
field :converted_total_discount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_discount') } }
|
100
|
+
# Converted subtotal amount.
|
101
|
+
field :converted_subtotal, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_subtotal') } }
|
102
|
+
# Converted total tax liability amount.
|
103
|
+
field :converted_total_tax_liability_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('converted_total_tax_liability_amount') } }
|
104
|
+
# Total amount of the transaction.
|
105
|
+
field :total_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_amount') } }
|
106
|
+
# Indicates if transaction is marketplace-based.
|
107
|
+
field :marketplace, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('marketplace') } }
|
108
|
+
# Imported tax amount.
|
109
|
+
field :total_tax_amount_imported, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_tax_amount_imported') } }
|
110
|
+
# Imported tax rate.
|
111
|
+
field :tax_rate_imported, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_imported') } }
|
112
|
+
# Calculated tax amount.
|
113
|
+
field :total_tax_amount_calculated, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_tax_amount_calculated') } }
|
114
|
+
# Calculated tax rate.
|
115
|
+
field :tax_rate_calculated, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('tax_rate_calculated') } }
|
116
|
+
# Total tax liability amount.
|
117
|
+
field :total_tax_liability_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('total_tax_liability_amount') } }
|
118
|
+
# Taxable amount.
|
119
|
+
field :taxable_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('taxable_amount') } }
|
120
|
+
# Transaction lock status.
|
121
|
+
field :locked, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('locked') } }
|
122
|
+
|
123
|
+
sig { params(organization_id: ::String, external_id: ::String, date: ::DateTime, addresses: T::Array[Models::Shared::TransactionAddressBuilder], transaction_items: T::Array[Models::Shared::TransactionItemCreateUpdate], customer: Models::Shared::CustomerUpdate, 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(::Float), converted_total_tax_amount_imported: T.nilable(::Float), converted_total_tax_amount_calculated: T.nilable(::Float), conversion_rate: T.nilable(::Float), converted_taxable_amount: T.nilable(::Float), converted_total_discount: T.nilable(::Float), converted_subtotal: T.nilable(::Float), converted_total_tax_liability_amount: T.nilable(::Float), 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 }
|
124
|
+
def initialize(organization_id:, external_id:, date:, addresses:, transaction_items:, customer:, 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, 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)
|
125
|
+
@organization_id = organization_id
|
126
|
+
@external_id = external_id
|
127
|
+
@date = date
|
128
|
+
@addresses = addresses
|
129
|
+
@transaction_items = transaction_items
|
130
|
+
@customer = customer
|
131
|
+
@requires_exemption = requires_exemption
|
132
|
+
@shop_date = shop_date
|
133
|
+
@shop_date_tz = shop_date_tz
|
134
|
+
@status = status
|
135
|
+
@description = description
|
136
|
+
@refund_status = refund_status
|
137
|
+
@customer_id = customer_id
|
138
|
+
@exempt = exempt
|
139
|
+
@exemptions = exemptions
|
140
|
+
@related_to = related_to
|
141
|
+
@secondary_external_id = secondary_external_id
|
142
|
+
@secondary_source = secondary_source
|
143
|
+
@external_friendly_id = external_friendly_id
|
144
|
+
@tax_liability_source = tax_liability_source
|
145
|
+
@currency = currency
|
146
|
+
@source = source
|
147
|
+
@connection_id = connection_id
|
148
|
+
@filing_id = filing_id
|
149
|
+
@city = city
|
150
|
+
@county = county
|
151
|
+
@state = state
|
152
|
+
@country = country
|
153
|
+
@postal_code = postal_code
|
154
|
+
@tax_id = tax_id
|
155
|
+
@address_status = address_status
|
156
|
+
@processing_status = processing_status
|
157
|
+
@destination_currency = destination_currency
|
158
|
+
@converted_total_amount = converted_total_amount
|
159
|
+
@converted_total_tax_amount_imported = converted_total_tax_amount_imported
|
160
|
+
@converted_total_tax_amount_calculated = converted_total_tax_amount_calculated
|
161
|
+
@conversion_rate = conversion_rate
|
162
|
+
@converted_taxable_amount = converted_taxable_amount
|
163
|
+
@converted_total_discount = converted_total_discount
|
164
|
+
@converted_subtotal = converted_subtotal
|
165
|
+
@converted_total_tax_liability_amount = converted_total_tax_liability_amount
|
166
|
+
@total_amount = total_amount
|
167
|
+
@marketplace = marketplace
|
168
|
+
@total_tax_amount_imported = total_tax_amount_imported
|
169
|
+
@tax_rate_imported = tax_rate_imported
|
170
|
+
@total_tax_amount_calculated = total_tax_amount_calculated
|
171
|
+
@tax_rate_calculated = tax_rate_calculated
|
172
|
+
@total_tax_liability_amount = total_tax_liability_amount
|
173
|
+
@taxable_amount = taxable_amount
|
174
|
+
@locked = locked
|
175
|
+
end
|
176
|
+
|
177
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
178
|
+
def ==(other)
|
179
|
+
return false unless other.is_a? self.class
|
180
|
+
return false unless @organization_id == other.organization_id
|
181
|
+
return false unless @external_id == other.external_id
|
182
|
+
return false unless @date == other.date
|
183
|
+
return false unless @addresses == other.addresses
|
184
|
+
return false unless @transaction_items == other.transaction_items
|
185
|
+
return false unless @customer == other.customer
|
186
|
+
return false unless @requires_exemption == other.requires_exemption
|
187
|
+
return false unless @shop_date == other.shop_date
|
188
|
+
return false unless @shop_date_tz == other.shop_date_tz
|
189
|
+
return false unless @status == other.status
|
190
|
+
return false unless @description == other.description
|
191
|
+
return false unless @refund_status == other.refund_status
|
192
|
+
return false unless @customer_id == other.customer_id
|
193
|
+
return false unless @exempt == other.exempt
|
194
|
+
return false unless @exemptions == other.exemptions
|
195
|
+
return false unless @related_to == other.related_to
|
196
|
+
return false unless @secondary_external_id == other.secondary_external_id
|
197
|
+
return false unless @secondary_source == other.secondary_source
|
198
|
+
return false unless @external_friendly_id == other.external_friendly_id
|
199
|
+
return false unless @tax_liability_source == other.tax_liability_source
|
200
|
+
return false unless @currency == other.currency
|
201
|
+
return false unless @source == other.source
|
202
|
+
return false unless @connection_id == other.connection_id
|
203
|
+
return false unless @filing_id == other.filing_id
|
204
|
+
return false unless @city == other.city
|
205
|
+
return false unless @county == other.county
|
206
|
+
return false unless @state == other.state
|
207
|
+
return false unless @country == other.country
|
208
|
+
return false unless @postal_code == other.postal_code
|
209
|
+
return false unless @tax_id == other.tax_id
|
210
|
+
return false unless @address_status == other.address_status
|
211
|
+
return false unless @processing_status == other.processing_status
|
212
|
+
return false unless @destination_currency == other.destination_currency
|
213
|
+
return false unless @converted_total_amount == other.converted_total_amount
|
214
|
+
return false unless @converted_total_tax_amount_imported == other.converted_total_tax_amount_imported
|
215
|
+
return false unless @converted_total_tax_amount_calculated == other.converted_total_tax_amount_calculated
|
216
|
+
return false unless @conversion_rate == other.conversion_rate
|
217
|
+
return false unless @converted_taxable_amount == other.converted_taxable_amount
|
218
|
+
return false unless @converted_total_discount == other.converted_total_discount
|
219
|
+
return false unless @converted_subtotal == other.converted_subtotal
|
220
|
+
return false unless @converted_total_tax_liability_amount == other.converted_total_tax_liability_amount
|
221
|
+
return false unless @total_amount == other.total_amount
|
222
|
+
return false unless @marketplace == other.marketplace
|
223
|
+
return false unless @total_tax_amount_imported == other.total_tax_amount_imported
|
224
|
+
return false unless @tax_rate_imported == other.tax_rate_imported
|
225
|
+
return false unless @total_tax_amount_calculated == other.total_tax_amount_calculated
|
226
|
+
return false unless @tax_rate_calculated == other.tax_rate_calculated
|
227
|
+
return false unless @total_tax_liability_amount == other.total_tax_liability_amount
|
228
|
+
return false unless @taxable_amount == other.taxable_amount
|
229
|
+
return false unless @locked == other.locked
|
230
|
+
true
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|
234
|
+
end
|
235
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# typed: true
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
|
5
|
+
class KintsugiSDK::Models::Shared::TransactionUpdate
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
7
|
+
end
|
8
|
+
|
9
|
+
|
10
|
+
class KintsugiSDK::Models::Shared::TransactionUpdate
|
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 requires_exemption(); end
|
24
|
+
def requires_exemption=(str_); end
|
25
|
+
def shop_date(); end
|
26
|
+
def shop_date=(str_); end
|
27
|
+
def shop_date_tz(); end
|
28
|
+
def shop_date_tz=(str_); end
|
29
|
+
def status(); end
|
30
|
+
def status=(str_); end
|
31
|
+
def description(); end
|
32
|
+
def description=(str_); end
|
33
|
+
def refund_status(); end
|
34
|
+
def refund_status=(str_); end
|
35
|
+
def customer_id(); end
|
36
|
+
def customer_id=(str_); end
|
37
|
+
def exempt(); end
|
38
|
+
def exempt=(str_); end
|
39
|
+
def exemptions(); end
|
40
|
+
def exemptions=(str_); end
|
41
|
+
def related_to(); end
|
42
|
+
def related_to=(str_); end
|
43
|
+
def secondary_external_id(); end
|
44
|
+
def secondary_external_id=(str_); end
|
45
|
+
def secondary_source(); end
|
46
|
+
def secondary_source=(str_); end
|
47
|
+
def external_friendly_id(); end
|
48
|
+
def external_friendly_id=(str_); end
|
49
|
+
def tax_liability_source(); end
|
50
|
+
def tax_liability_source=(str_); end
|
51
|
+
def currency(); end
|
52
|
+
def currency=(str_); end
|
53
|
+
def source(); end
|
54
|
+
def source=(str_); end
|
55
|
+
def connection_id(); end
|
56
|
+
def connection_id=(str_); end
|
57
|
+
def filing_id(); end
|
58
|
+
def filing_id=(str_); end
|
59
|
+
def city(); end
|
60
|
+
def city=(str_); end
|
61
|
+
def county(); end
|
62
|
+
def county=(str_); end
|
63
|
+
def state(); end
|
64
|
+
def state=(str_); end
|
65
|
+
def country(); end
|
66
|
+
def country=(str_); end
|
67
|
+
def postal_code(); end
|
68
|
+
def postal_code=(str_); end
|
69
|
+
def tax_id(); end
|
70
|
+
def tax_id=(str_); end
|
71
|
+
def address_status(); end
|
72
|
+
def address_status=(str_); end
|
73
|
+
def processing_status(); end
|
74
|
+
def processing_status=(str_); end
|
75
|
+
def destination_currency(); end
|
76
|
+
def destination_currency=(str_); end
|
77
|
+
def converted_total_amount(); end
|
78
|
+
def converted_total_amount=(str_); end
|
79
|
+
def converted_total_tax_amount_imported(); end
|
80
|
+
def converted_total_tax_amount_imported=(str_); end
|
81
|
+
def converted_total_tax_amount_calculated(); end
|
82
|
+
def converted_total_tax_amount_calculated=(str_); end
|
83
|
+
def conversion_rate(); end
|
84
|
+
def conversion_rate=(str_); end
|
85
|
+
def converted_taxable_amount(); end
|
86
|
+
def converted_taxable_amount=(str_); end
|
87
|
+
def converted_total_discount(); end
|
88
|
+
def converted_total_discount=(str_); end
|
89
|
+
def converted_subtotal(); end
|
90
|
+
def converted_subtotal=(str_); end
|
91
|
+
def converted_total_tax_liability_amount(); end
|
92
|
+
def converted_total_tax_liability_amount=(str_); end
|
93
|
+
def total_amount(); end
|
94
|
+
def total_amount=(str_); end
|
95
|
+
def marketplace(); end
|
96
|
+
def marketplace=(str_); end
|
97
|
+
def total_tax_amount_imported(); end
|
98
|
+
def total_tax_amount_imported=(str_); end
|
99
|
+
def tax_rate_imported(); end
|
100
|
+
def tax_rate_imported=(str_); end
|
101
|
+
def total_tax_amount_calculated(); end
|
102
|
+
def total_tax_amount_calculated=(str_); end
|
103
|
+
def tax_rate_calculated(); end
|
104
|
+
def tax_rate_calculated=(str_); end
|
105
|
+
def total_tax_liability_amount(); end
|
106
|
+
def total_tax_liability_amount=(str_); end
|
107
|
+
def taxable_amount(); end
|
108
|
+
def taxable_amount=(str_); end
|
109
|
+
def locked(); end
|
110
|
+
def locked=(str_); end
|
111
|
+
end
|
@@ -0,0 +1,25 @@
|
|
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 TreatmentEnum < T::Enum
|
13
|
+
|
14
|
+
|
15
|
+
enums do
|
16
|
+
INCLUDED = new('INCLUDED')
|
17
|
+
EXCLUDED = new('EXCLUDED')
|
18
|
+
DEPENDS = new('DEPENDS')
|
19
|
+
INCLUDE_IF_PRESENCE = new('INCLUDE_IF_PRESENCE')
|
20
|
+
YES_SALES_NO_TRANSACTIONS = new('YES_SALES_NO_TRANSACTIONS')
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,23 @@
|
|
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
|
+
# Type - Type of the address. Must be either
|
12
|
+
# SHIP_TO or BILL_TO.
|
13
|
+
class Type < T::Enum
|
14
|
+
|
15
|
+
|
16
|
+
enums do
|
17
|
+
SHIP_TO = new('SHIP_TO')
|
18
|
+
BILL_TO = new('BILL_TO')
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|