kintsugi_sdk 5.5.14 → 5.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/crystalline/enum.rbi +17 -0
- data/lib/crystalline/metadata_fields.rb +94 -38
- data/lib/crystalline/module.rb +103 -13
- data/lib/crystalline/types.rb +111 -19
- data/lib/crystalline/utils.rb +13 -0
- data/lib/kintsugi_sdk/addressvalidation.rb +24 -16
- data/lib/kintsugi_sdk/customers.rb +76 -53
- data/lib/kintsugi_sdk/exemptions.rb +55 -38
- data/lib/kintsugi_sdk/models/errors/apierror.rbi +2 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/errorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/errorresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rb +2 -3
- data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rb +6 -3
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rbi +3 -1
- data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rbi +1 -1
- data/lib/kintsugi_sdk/models/ops.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/addressbase.rb +1 -2
- data/lib/kintsugi_sdk/models/shared/addressbase.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addresses.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/addresses.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addressresponsedata.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/addressresponsedata.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addresssearchresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/addresssearchresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addressstatus.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/addressstatus.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addresssubmittedresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/addresssubmittedresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/addresstype.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/addresstype.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/appliedto.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/appliedto.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/attachmentread.rb +1 -2
- data/lib/kintsugi_sdk/models/shared/attachmentread.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_models_exemptionread.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_models_exemptionread.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_products_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_products_responses_validationerroritem.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/countrycodeenum.rb +1 -3
- data/lib/kintsugi_sdk/models/shared/countrycodeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/currencyenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/currencyenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/customerbase.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/customerbase.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/customercreate.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/customercreate.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/customerread.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/customerread.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/customertaxregistrationread.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/customertaxregistrationread.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/customertaxtypeenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/customertaxtypeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/customerupdate.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/customerupdate.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/discountbuilder.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/discountbuilder.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/exemption.rb +5 -6
- data/lib/kintsugi_sdk/models/shared/exemption.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rb +6 -5
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/exemptionstatus.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/exemptionstatus.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/exemptiontype.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/exemptiontype.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/file.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/file.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rb +56 -0
- data/lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rbi +25 -0
- data/lib/kintsugi_sdk/models/shared/jurisdictiontype.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/jurisdictiontype.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rb +41 -22
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rbi +11 -1
- data/lib/kintsugi_sdk/models/shared/nexusstateenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/nexusstateenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/nexusstatusenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/nexusstatusenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/nexustypeenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/nexustypeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/page_customerread_.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/page_customerread_.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/page_nexusresponse_.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/page_nexusresponse_.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/page_transactionread_.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/page_transactionread_.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/periodmodelenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/periodmodelenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/processingstatusenum.rb +1 -3
- data/lib/kintsugi_sdk/models/shared/processingstatusenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/productread.rb +12 -9
- data/lib/kintsugi_sdk/models/shared/productread.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/productstatusenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/productstatusenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/productupdate.rb +10 -7
- data/lib/kintsugi_sdk/models/shared/productupdate.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/registration.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/registration.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/registrationsregimeenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/registrationsregimeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/relatedentitytype.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/relatedentitytype.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/salesortransactionsenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/salesortransactionsenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/security.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/security.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/sourceenum.rb +6 -3
- data/lib/kintsugi_sdk/models/shared/sourceenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/statusenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/statusenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rb +1 -3
- data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/taxitemestimate.rb +1 -2
- data/lib/kintsugi_sdk/models/shared/taxitemestimate.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/taxitemread.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/taxitemread.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/taxitemtypeenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/taxitemtypeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/taxliabilitysourceenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/taxliabilitysourceenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rb +23 -19
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +3 -3
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb +6 -11
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rbi +1 -3
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rb +7 -12
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rbi +1 -3
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_type.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_type.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionexemptstatusenum.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/transactionexemptstatusenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rb +8 -7
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rb +8 -7
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rb +7 -6
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb +21 -17
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +3 -3
- data/lib/kintsugi_sdk/models/shared/transactionread.rb +24 -20
- data/lib/kintsugi_sdk/models/shared/transactionread.rbi +3 -3
- data/lib/kintsugi_sdk/models/shared/transactionrefundstatus.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/transactionrefundstatus.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionstatusenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/transactionstatusenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rb +20 -16
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +3 -3
- data/lib/kintsugi_sdk/models/shared/treatmentenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/treatmentenum.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/type.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/type.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/validationaddress.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/validationaddress.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared/validationerror.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/validationerror.rbi +1 -1
- data/lib/kintsugi_sdk/models/shared.rb +1 -7
- data/lib/kintsugi_sdk/nexus.rb +13 -8
- data/lib/kintsugi_sdk/openapisdk.rb +15 -16
- data/lib/kintsugi_sdk/products.rb +25 -425
- data/lib/kintsugi_sdk/sdk_hooks/hooks.rb +0 -1
- data/lib/kintsugi_sdk/sdkconfiguration.rb +7 -13
- data/lib/kintsugi_sdk/taxestimation.rb +15 -10
- data/lib/kintsugi_sdk/transactions.rb +65 -45
- data/lib/kintsugi_sdk/utils/forms.rb +1 -1
- data/lib/kintsugi_sdk/utils/query_params.rb +4 -2
- data/lib/kintsugi_sdk/utils/request_bodies.rb +11 -6
- data/lib/kintsugi_sdk/utils/retries.rb +4 -1
- data/lib/kintsugi_sdk/utils/security.rb +32 -11
- data/lib/kintsugi_sdk/utils/url.rb +11 -5
- data/lib/kintsugi_sdk/utils/utils.rb +45 -3
- metadata +73 -41
- data/lib/kintsugi_sdk/models/ops/get_products_v1_products_get_request.rb +0 -61
- data/lib/kintsugi_sdk/models/ops/get_products_v1_products_get_request.rbi +0 -27
- data/lib/kintsugi_sdk/models/shared/page_productread_.rb +0 -49
- data/lib/kintsugi_sdk/models/shared/page_productread_.rbi +0 -21
- data/lib/kintsugi_sdk/models/shared/productcategories.rb +0 -38
- data/lib/kintsugi_sdk/models/shared/productcategories.rbi +0 -15
- data/lib/kintsugi_sdk/models/shared/productcategoryenum.rb +0 -25
- data/lib/kintsugi_sdk/models/shared/productcategoryenum.rbi +0 -11
- data/lib/kintsugi_sdk/models/shared/productcodeenum.rb +0 -82
- data/lib/kintsugi_sdk/models/shared/productcodeenum.rbi +0 -11
- data/lib/kintsugi_sdk/models/shared/productcreatemanual.rb +0 -61
- data/lib/kintsugi_sdk/models/shared/productcreatemanual.rbi +0 -27
- data/lib/kintsugi_sdk/models/shared/productsubcategory.rb +0 -46
- data/lib/kintsugi_sdk/models/shared/productsubcategory.rbi +0 -19
- data/lib/kintsugi_sdk/models/shared/productsubcategoryenum.rb +0 -83
- data/lib/kintsugi_sdk/models/shared/productsubcategoryenum.rbi +0 -11
|
@@ -39,8 +39,10 @@ module KintsugiSDK
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(security: Models::Ops::SearchV1AddressValidationSearchPostSecurity, request: Models::Shared::AddressBase, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(T::Array[Models::Shared::AddressSearchResponse]) }
|
|
45
|
+
def search(security:, request:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# search - Search
|
|
45
47
|
# This API validates and enriches address information
|
|
46
48
|
# submitted by the user. It ensures that the address is standardized, accurate,
|
|
@@ -55,7 +57,7 @@ module KintsugiSDK
|
|
|
55
57
|
headers['content-type'] = req_content_type
|
|
56
58
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
57
59
|
|
|
58
|
-
if form
|
|
60
|
+
if form && !form.empty?
|
|
59
61
|
body = Utils.encode_form(form)
|
|
60
62
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
61
63
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -67,7 +69,7 @@ module KintsugiSDK
|
|
|
67
69
|
|
|
68
70
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
69
71
|
timeout ||= @sdk_configuration.timeout
|
|
70
|
-
|
|
72
|
+
|
|
71
73
|
|
|
72
74
|
connection = @sdk_configuration.client
|
|
73
75
|
|
|
@@ -82,13 +84,16 @@ module KintsugiSDK
|
|
|
82
84
|
error = T.let(nil, T.nilable(StandardError))
|
|
83
85
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
84
86
|
|
|
85
|
-
|
|
87
|
+
|
|
86
88
|
begin
|
|
87
89
|
http_response = T.must(connection).post(url) do |req|
|
|
88
90
|
req.body = body
|
|
89
91
|
req.headers.merge!(headers)
|
|
90
92
|
req.options.timeout = timeout unless timeout.nil?
|
|
91
93
|
Utils.configure_request_security(req, security)
|
|
94
|
+
http_headers&.each do |key, value|
|
|
95
|
+
req.headers[key.to_s] = value
|
|
96
|
+
end
|
|
92
97
|
|
|
93
98
|
@sdk_configuration.hooks.before_request(
|
|
94
99
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -116,13 +121,13 @@ module KintsugiSDK
|
|
|
116
121
|
response: http_response
|
|
117
122
|
)
|
|
118
123
|
end
|
|
119
|
-
|
|
124
|
+
|
|
120
125
|
if http_response.nil?
|
|
121
126
|
raise error if !error.nil?
|
|
122
127
|
raise 'no response'
|
|
123
128
|
end
|
|
124
129
|
end
|
|
125
|
-
|
|
130
|
+
|
|
126
131
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
127
132
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
128
133
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -192,8 +197,8 @@ module KintsugiSDK
|
|
|
192
197
|
end
|
|
193
198
|
|
|
194
199
|
|
|
195
|
-
sig { params(request: Models::Shared::ValidationAddress, timeout_ms: T.nilable(Integer)).returns(::Object) }
|
|
196
|
-
def suggestions(request:, timeout_ms: nil)
|
|
200
|
+
sig { params(request: Models::Shared::ValidationAddress, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(::Object) }
|
|
201
|
+
def suggestions(request:, timeout_ms: nil, http_headers: nil)
|
|
197
202
|
# suggestions - Suggestions
|
|
198
203
|
# This API endpoint provides address suggestions based on
|
|
199
204
|
# partial input data. It helps users auto-complete and validate addresses efficiently
|
|
@@ -209,7 +214,7 @@ module KintsugiSDK
|
|
|
209
214
|
headers['content-type'] = req_content_type
|
|
210
215
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
211
216
|
|
|
212
|
-
if form
|
|
217
|
+
if form && !form.empty?
|
|
213
218
|
body = Utils.encode_form(form)
|
|
214
219
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
215
220
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -223,14 +228,14 @@ module KintsugiSDK
|
|
|
223
228
|
|
|
224
229
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
225
230
|
timeout ||= @sdk_configuration.timeout
|
|
226
|
-
|
|
231
|
+
|
|
227
232
|
|
|
228
233
|
connection = @sdk_configuration.client
|
|
229
234
|
|
|
230
235
|
hook_ctx = SDKHooks::HookContext.new(
|
|
231
236
|
config: @sdk_configuration,
|
|
232
237
|
base_url: base_url,
|
|
233
|
-
oauth2_scopes:
|
|
238
|
+
oauth2_scopes: nil,
|
|
234
239
|
operation_id: 'suggestions_v1_address_validation_suggestions_post',
|
|
235
240
|
security_source: @sdk_configuration.security_source
|
|
236
241
|
)
|
|
@@ -238,13 +243,16 @@ module KintsugiSDK
|
|
|
238
243
|
error = T.let(nil, T.nilable(StandardError))
|
|
239
244
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
240
245
|
|
|
241
|
-
|
|
246
|
+
|
|
242
247
|
begin
|
|
243
248
|
http_response = T.must(connection).post(url) do |req|
|
|
244
249
|
req.body = body
|
|
245
250
|
req.headers.merge!(headers)
|
|
246
251
|
req.options.timeout = timeout unless timeout.nil?
|
|
247
252
|
Utils.configure_request_security(req, security)
|
|
253
|
+
http_headers&.each do |key, value|
|
|
254
|
+
req.headers[key.to_s] = value
|
|
255
|
+
end
|
|
248
256
|
|
|
249
257
|
@sdk_configuration.hooks.before_request(
|
|
250
258
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -272,13 +280,13 @@ module KintsugiSDK
|
|
|
272
280
|
response: http_response
|
|
273
281
|
)
|
|
274
282
|
end
|
|
275
|
-
|
|
283
|
+
|
|
276
284
|
if http_response.nil?
|
|
277
285
|
raise error if !error.nil?
|
|
278
286
|
raise 'no response'
|
|
279
287
|
end
|
|
280
288
|
end
|
|
281
|
-
|
|
289
|
+
|
|
282
290
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
283
291
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
284
292
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -346,5 +354,5 @@ module KintsugiSDK
|
|
|
346
354
|
|
|
347
355
|
end
|
|
348
356
|
end
|
|
349
|
-
|
|
357
|
+
end
|
|
350
358
|
end
|
|
@@ -39,8 +39,10 @@ module KintsugiSDK
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(request: Models::Ops::GetCustomersV1Request, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::PageCustomerRead) }
|
|
45
|
+
def list(request:, timeout_ms: nil, http_headers: nil)
|
|
44
46
|
# list - Get Customers
|
|
45
47
|
# The Get Customers API retrieves
|
|
46
48
|
# a paginated list of customers based on specified filters.
|
|
@@ -58,14 +60,14 @@ module KintsugiSDK
|
|
|
58
60
|
|
|
59
61
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
60
62
|
timeout ||= @sdk_configuration.timeout
|
|
61
|
-
|
|
63
|
+
|
|
62
64
|
|
|
63
65
|
connection = @sdk_configuration.client
|
|
64
66
|
|
|
65
67
|
hook_ctx = SDKHooks::HookContext.new(
|
|
66
68
|
config: @sdk_configuration,
|
|
67
69
|
base_url: base_url,
|
|
68
|
-
oauth2_scopes:
|
|
70
|
+
oauth2_scopes: nil,
|
|
69
71
|
operation_id: 'get_customers_v1',
|
|
70
72
|
security_source: @sdk_configuration.security_source
|
|
71
73
|
)
|
|
@@ -73,13 +75,16 @@ module KintsugiSDK
|
|
|
73
75
|
error = T.let(nil, T.nilable(StandardError))
|
|
74
76
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
|
|
77
79
|
begin
|
|
78
80
|
http_response = T.must(connection).get(url) do |req|
|
|
79
81
|
req.headers.merge!(headers)
|
|
80
82
|
req.options.timeout = timeout unless timeout.nil?
|
|
81
83
|
req.params = query_params
|
|
82
84
|
Utils.configure_request_security(req, security)
|
|
85
|
+
http_headers&.each do |key, value|
|
|
86
|
+
req.headers[key.to_s] = value
|
|
87
|
+
end
|
|
83
88
|
|
|
84
89
|
@sdk_configuration.hooks.before_request(
|
|
85
90
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -107,13 +112,13 @@ module KintsugiSDK
|
|
|
107
112
|
response: http_response
|
|
108
113
|
)
|
|
109
114
|
end
|
|
110
|
-
|
|
115
|
+
|
|
111
116
|
if http_response.nil?
|
|
112
117
|
raise error if !error.nil?
|
|
113
118
|
raise 'no response'
|
|
114
119
|
end
|
|
115
120
|
end
|
|
116
|
-
|
|
121
|
+
|
|
117
122
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
118
123
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
119
124
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -183,8 +188,8 @@ module KintsugiSDK
|
|
|
183
188
|
end
|
|
184
189
|
|
|
185
190
|
|
|
186
|
-
sig { params(request: Models::Shared::CustomerCreate, timeout_ms: T.nilable(Integer)).returns(Models::Shared::CustomerRead) }
|
|
187
|
-
def create(request:, timeout_ms: nil)
|
|
191
|
+
sig { params(request: Models::Shared::CustomerCreate, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::CustomerRead) }
|
|
192
|
+
def create(request:, timeout_ms: nil, http_headers: nil)
|
|
188
193
|
# create - Create Customer
|
|
189
194
|
# The Create Customer API enables the creation of a new customer record with essential
|
|
190
195
|
# details like name, contact information, and address, along with optional metadata.
|
|
@@ -197,7 +202,7 @@ module KintsugiSDK
|
|
|
197
202
|
headers['content-type'] = req_content_type
|
|
198
203
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
199
204
|
|
|
200
|
-
if form
|
|
205
|
+
if form && !form.empty?
|
|
201
206
|
body = Utils.encode_form(form)
|
|
202
207
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
203
208
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -211,14 +216,14 @@ module KintsugiSDK
|
|
|
211
216
|
|
|
212
217
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
213
218
|
timeout ||= @sdk_configuration.timeout
|
|
214
|
-
|
|
219
|
+
|
|
215
220
|
|
|
216
221
|
connection = @sdk_configuration.client
|
|
217
222
|
|
|
218
223
|
hook_ctx = SDKHooks::HookContext.new(
|
|
219
224
|
config: @sdk_configuration,
|
|
220
225
|
base_url: base_url,
|
|
221
|
-
oauth2_scopes:
|
|
226
|
+
oauth2_scopes: nil,
|
|
222
227
|
operation_id: 'create_customer_v1_customers_post',
|
|
223
228
|
security_source: @sdk_configuration.security_source
|
|
224
229
|
)
|
|
@@ -226,13 +231,16 @@ module KintsugiSDK
|
|
|
226
231
|
error = T.let(nil, T.nilable(StandardError))
|
|
227
232
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
228
233
|
|
|
229
|
-
|
|
234
|
+
|
|
230
235
|
begin
|
|
231
236
|
http_response = T.must(connection).post(url) do |req|
|
|
232
237
|
req.body = body
|
|
233
238
|
req.headers.merge!(headers)
|
|
234
239
|
req.options.timeout = timeout unless timeout.nil?
|
|
235
240
|
Utils.configure_request_security(req, security)
|
|
241
|
+
http_headers&.each do |key, value|
|
|
242
|
+
req.headers[key.to_s] = value
|
|
243
|
+
end
|
|
236
244
|
|
|
237
245
|
@sdk_configuration.hooks.before_request(
|
|
238
246
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -260,13 +268,13 @@ module KintsugiSDK
|
|
|
260
268
|
response: http_response
|
|
261
269
|
)
|
|
262
270
|
end
|
|
263
|
-
|
|
271
|
+
|
|
264
272
|
if http_response.nil?
|
|
265
273
|
raise error if !error.nil?
|
|
266
274
|
raise 'no response'
|
|
267
275
|
end
|
|
268
276
|
end
|
|
269
|
-
|
|
277
|
+
|
|
270
278
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
271
279
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
272
280
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -336,8 +344,8 @@ module KintsugiSDK
|
|
|
336
344
|
end
|
|
337
345
|
|
|
338
346
|
|
|
339
|
-
sig { params(request: Models::Ops::GetCustomerByIdV1CustomersCustomerIdGetRequest, timeout_ms: T.nilable(Integer)).returns(Models::Shared::CustomerRead) }
|
|
340
|
-
def get(request:, timeout_ms: nil)
|
|
347
|
+
sig { params(request: Models::Ops::GetCustomerByIdV1CustomersCustomerIdGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::CustomerRead) }
|
|
348
|
+
def get(request:, timeout_ms: nil, http_headers: nil)
|
|
341
349
|
# get - Get Customer By Id
|
|
342
350
|
# The Get Customer By ID API retrieves the details of a single customer
|
|
343
351
|
# using their unique identifier. It returns customer-specific data,
|
|
@@ -359,14 +367,14 @@ module KintsugiSDK
|
|
|
359
367
|
|
|
360
368
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
361
369
|
timeout ||= @sdk_configuration.timeout
|
|
362
|
-
|
|
370
|
+
|
|
363
371
|
|
|
364
372
|
connection = @sdk_configuration.client
|
|
365
373
|
|
|
366
374
|
hook_ctx = SDKHooks::HookContext.new(
|
|
367
375
|
config: @sdk_configuration,
|
|
368
376
|
base_url: base_url,
|
|
369
|
-
oauth2_scopes:
|
|
377
|
+
oauth2_scopes: nil,
|
|
370
378
|
operation_id: 'get_customer_by_id_v1_customers__customer_id__get',
|
|
371
379
|
security_source: @sdk_configuration.security_source
|
|
372
380
|
)
|
|
@@ -374,12 +382,15 @@ module KintsugiSDK
|
|
|
374
382
|
error = T.let(nil, T.nilable(StandardError))
|
|
375
383
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
376
384
|
|
|
377
|
-
|
|
385
|
+
|
|
378
386
|
begin
|
|
379
387
|
http_response = T.must(connection).get(url) do |req|
|
|
380
388
|
req.headers.merge!(headers)
|
|
381
389
|
req.options.timeout = timeout unless timeout.nil?
|
|
382
390
|
Utils.configure_request_security(req, security)
|
|
391
|
+
http_headers&.each do |key, value|
|
|
392
|
+
req.headers[key.to_s] = value
|
|
393
|
+
end
|
|
383
394
|
|
|
384
395
|
@sdk_configuration.hooks.before_request(
|
|
385
396
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -407,13 +418,13 @@ module KintsugiSDK
|
|
|
407
418
|
response: http_response
|
|
408
419
|
)
|
|
409
420
|
end
|
|
410
|
-
|
|
421
|
+
|
|
411
422
|
if http_response.nil?
|
|
412
423
|
raise error if !error.nil?
|
|
413
424
|
raise 'no response'
|
|
414
425
|
end
|
|
415
426
|
end
|
|
416
|
-
|
|
427
|
+
|
|
417
428
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
418
429
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
419
430
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -455,8 +466,8 @@ module KintsugiSDK
|
|
|
455
466
|
end
|
|
456
467
|
|
|
457
468
|
|
|
458
|
-
sig { params(request: Models::Ops::UpdateCustomerV1CustomersCustomerIdPutRequest, timeout_ms: T.nilable(Integer)).returns(Models::Shared::CustomerRead) }
|
|
459
|
-
def update(request:, timeout_ms: nil)
|
|
469
|
+
sig { params(request: Models::Ops::UpdateCustomerV1CustomersCustomerIdPutRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::CustomerRead) }
|
|
470
|
+
def update(request:, timeout_ms: nil, http_headers: nil)
|
|
460
471
|
# update - Update Customer
|
|
461
472
|
# The Update Customer API allows you to modify an existing customer's
|
|
462
473
|
# information using their unique identifier,
|
|
@@ -475,7 +486,7 @@ module KintsugiSDK
|
|
|
475
486
|
headers['content-type'] = req_content_type
|
|
476
487
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
477
488
|
|
|
478
|
-
if form
|
|
489
|
+
if form && !form.empty?
|
|
479
490
|
body = Utils.encode_form(form)
|
|
480
491
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
481
492
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -489,14 +500,14 @@ module KintsugiSDK
|
|
|
489
500
|
|
|
490
501
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
491
502
|
timeout ||= @sdk_configuration.timeout
|
|
492
|
-
|
|
503
|
+
|
|
493
504
|
|
|
494
505
|
connection = @sdk_configuration.client
|
|
495
506
|
|
|
496
507
|
hook_ctx = SDKHooks::HookContext.new(
|
|
497
508
|
config: @sdk_configuration,
|
|
498
509
|
base_url: base_url,
|
|
499
|
-
oauth2_scopes:
|
|
510
|
+
oauth2_scopes: nil,
|
|
500
511
|
operation_id: 'update_customer_v1_customers__customer_id__put',
|
|
501
512
|
security_source: @sdk_configuration.security_source
|
|
502
513
|
)
|
|
@@ -504,13 +515,16 @@ module KintsugiSDK
|
|
|
504
515
|
error = T.let(nil, T.nilable(StandardError))
|
|
505
516
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
506
517
|
|
|
507
|
-
|
|
518
|
+
|
|
508
519
|
begin
|
|
509
520
|
http_response = T.must(connection).put(url) do |req|
|
|
510
521
|
req.body = body
|
|
511
522
|
req.headers.merge!(headers)
|
|
512
523
|
req.options.timeout = timeout unless timeout.nil?
|
|
513
524
|
Utils.configure_request_security(req, security)
|
|
525
|
+
http_headers&.each do |key, value|
|
|
526
|
+
req.headers[key.to_s] = value
|
|
527
|
+
end
|
|
514
528
|
|
|
515
529
|
@sdk_configuration.hooks.before_request(
|
|
516
530
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -538,13 +552,13 @@ module KintsugiSDK
|
|
|
538
552
|
response: http_response
|
|
539
553
|
)
|
|
540
554
|
end
|
|
541
|
-
|
|
555
|
+
|
|
542
556
|
if http_response.nil?
|
|
543
557
|
raise error if !error.nil?
|
|
544
558
|
raise 'no response'
|
|
545
559
|
end
|
|
546
560
|
end
|
|
547
|
-
|
|
561
|
+
|
|
548
562
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
549
563
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
550
564
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -614,8 +628,8 @@ module KintsugiSDK
|
|
|
614
628
|
end
|
|
615
629
|
|
|
616
630
|
|
|
617
|
-
sig { params(request: Models::Ops::GetCustomerByExternalIdV1CustomersExternalExternalIdGetRequest, timeout_ms: T.nilable(Integer)).returns(Models::Shared::CustomerRead) }
|
|
618
|
-
def get_by_external_id(request:, timeout_ms: nil)
|
|
631
|
+
sig { params(request: Models::Ops::GetCustomerByExternalIdV1CustomersExternalExternalIdGetRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::CustomerRead) }
|
|
632
|
+
def get_by_external_id(request:, timeout_ms: nil, http_headers: nil)
|
|
619
633
|
# get_by_external_id - Get Customer By External Id
|
|
620
634
|
# The Get Customer By External ID API retrieves the details of a single customer using
|
|
621
635
|
# their external identifier. This endpoint is useful for accessing customer data when only
|
|
@@ -637,14 +651,14 @@ module KintsugiSDK
|
|
|
637
651
|
|
|
638
652
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
639
653
|
timeout ||= @sdk_configuration.timeout
|
|
640
|
-
|
|
654
|
+
|
|
641
655
|
|
|
642
656
|
connection = @sdk_configuration.client
|
|
643
657
|
|
|
644
658
|
hook_ctx = SDKHooks::HookContext.new(
|
|
645
659
|
config: @sdk_configuration,
|
|
646
660
|
base_url: base_url,
|
|
647
|
-
oauth2_scopes:
|
|
661
|
+
oauth2_scopes: nil,
|
|
648
662
|
operation_id: 'get_customer_by_external_id_v1_customers_external__external_id__get',
|
|
649
663
|
security_source: @sdk_configuration.security_source
|
|
650
664
|
)
|
|
@@ -652,12 +666,15 @@ module KintsugiSDK
|
|
|
652
666
|
error = T.let(nil, T.nilable(StandardError))
|
|
653
667
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
654
668
|
|
|
655
|
-
|
|
669
|
+
|
|
656
670
|
begin
|
|
657
671
|
http_response = T.must(connection).get(url) do |req|
|
|
658
672
|
req.headers.merge!(headers)
|
|
659
673
|
req.options.timeout = timeout unless timeout.nil?
|
|
660
674
|
Utils.configure_request_security(req, security)
|
|
675
|
+
http_headers&.each do |key, value|
|
|
676
|
+
req.headers[key.to_s] = value
|
|
677
|
+
end
|
|
661
678
|
|
|
662
679
|
@sdk_configuration.hooks.before_request(
|
|
663
680
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -685,13 +702,13 @@ module KintsugiSDK
|
|
|
685
702
|
response: http_response
|
|
686
703
|
)
|
|
687
704
|
end
|
|
688
|
-
|
|
705
|
+
|
|
689
706
|
if http_response.nil?
|
|
690
707
|
raise error if !error.nil?
|
|
691
708
|
raise 'no response'
|
|
692
709
|
end
|
|
693
710
|
end
|
|
694
|
-
|
|
711
|
+
|
|
695
712
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
696
713
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
697
714
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -733,8 +750,8 @@ module KintsugiSDK
|
|
|
733
750
|
end
|
|
734
751
|
|
|
735
752
|
|
|
736
|
-
sig { params(request: Models::Ops::GetTransactionsByCustomerRequest, timeout_ms: T.nilable(Integer)).returns(T::Array[Models::Shared::TransactionRead]) }
|
|
737
|
-
def get_transactions(request:, timeout_ms: nil)
|
|
753
|
+
sig { params(request: Models::Ops::GetTransactionsByCustomerRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(T::Array[Models::Shared::TransactionRead]) }
|
|
754
|
+
def get_transactions(request:, timeout_ms: nil, http_headers: nil)
|
|
738
755
|
# get_transactions - Get Transactions By Customer Id
|
|
739
756
|
# Get a list of transactions for a customer by their unique ID.
|
|
740
757
|
url, params = @sdk_configuration.get_server_details
|
|
@@ -754,14 +771,14 @@ module KintsugiSDK
|
|
|
754
771
|
|
|
755
772
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
756
773
|
timeout ||= @sdk_configuration.timeout
|
|
757
|
-
|
|
774
|
+
|
|
758
775
|
|
|
759
776
|
connection = @sdk_configuration.client
|
|
760
777
|
|
|
761
778
|
hook_ctx = SDKHooks::HookContext.new(
|
|
762
779
|
config: @sdk_configuration,
|
|
763
780
|
base_url: base_url,
|
|
764
|
-
oauth2_scopes:
|
|
781
|
+
oauth2_scopes: nil,
|
|
765
782
|
operation_id: 'getTransactionsByCustomer',
|
|
766
783
|
security_source: @sdk_configuration.security_source
|
|
767
784
|
)
|
|
@@ -769,12 +786,15 @@ module KintsugiSDK
|
|
|
769
786
|
error = T.let(nil, T.nilable(StandardError))
|
|
770
787
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
771
788
|
|
|
772
|
-
|
|
789
|
+
|
|
773
790
|
begin
|
|
774
791
|
http_response = T.must(connection).get(url) do |req|
|
|
775
792
|
req.headers.merge!(headers)
|
|
776
793
|
req.options.timeout = timeout unless timeout.nil?
|
|
777
794
|
Utils.configure_request_security(req, security)
|
|
795
|
+
http_headers&.each do |key, value|
|
|
796
|
+
req.headers[key.to_s] = value
|
|
797
|
+
end
|
|
778
798
|
|
|
779
799
|
@sdk_configuration.hooks.before_request(
|
|
780
800
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -802,13 +822,13 @@ module KintsugiSDK
|
|
|
802
822
|
response: http_response
|
|
803
823
|
)
|
|
804
824
|
end
|
|
805
|
-
|
|
825
|
+
|
|
806
826
|
if http_response.nil?
|
|
807
827
|
raise error if !error.nil?
|
|
808
828
|
raise 'no response'
|
|
809
829
|
end
|
|
810
830
|
end
|
|
811
|
-
|
|
831
|
+
|
|
812
832
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
813
833
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
814
834
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -850,8 +870,8 @@ module KintsugiSDK
|
|
|
850
870
|
end
|
|
851
871
|
|
|
852
872
|
|
|
853
|
-
sig { params(request: Models::Ops::CreateTransactionByCustomerRequest, timeout_ms: T.nilable(Integer)).returns(Models::Shared::TransactionRead) }
|
|
854
|
-
def create_transaction(request:, timeout_ms: nil)
|
|
873
|
+
sig { params(request: Models::Ops::CreateTransactionByCustomerRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Shared::TransactionRead) }
|
|
874
|
+
def create_transaction(request:, timeout_ms: nil, http_headers: nil)
|
|
855
875
|
# create_transaction - Create Transaction By Customer Id
|
|
856
876
|
# Create a new transaction for a specific customer.
|
|
857
877
|
url, params = @sdk_configuration.get_server_details
|
|
@@ -868,7 +888,7 @@ module KintsugiSDK
|
|
|
868
888
|
headers['content-type'] = req_content_type
|
|
869
889
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
870
890
|
|
|
871
|
-
if form
|
|
891
|
+
if form && !form.empty?
|
|
872
892
|
body = Utils.encode_form(form)
|
|
873
893
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
874
894
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -882,14 +902,14 @@ module KintsugiSDK
|
|
|
882
902
|
|
|
883
903
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
884
904
|
timeout ||= @sdk_configuration.timeout
|
|
885
|
-
|
|
905
|
+
|
|
886
906
|
|
|
887
907
|
connection = @sdk_configuration.client
|
|
888
908
|
|
|
889
909
|
hook_ctx = SDKHooks::HookContext.new(
|
|
890
910
|
config: @sdk_configuration,
|
|
891
911
|
base_url: base_url,
|
|
892
|
-
oauth2_scopes:
|
|
912
|
+
oauth2_scopes: nil,
|
|
893
913
|
operation_id: 'createTransactionByCustomer',
|
|
894
914
|
security_source: @sdk_configuration.security_source
|
|
895
915
|
)
|
|
@@ -897,13 +917,16 @@ module KintsugiSDK
|
|
|
897
917
|
error = T.let(nil, T.nilable(StandardError))
|
|
898
918
|
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
899
919
|
|
|
900
|
-
|
|
920
|
+
|
|
901
921
|
begin
|
|
902
922
|
http_response = T.must(connection).post(url) do |req|
|
|
903
923
|
req.body = body
|
|
904
924
|
req.headers.merge!(headers)
|
|
905
925
|
req.options.timeout = timeout unless timeout.nil?
|
|
906
926
|
Utils.configure_request_security(req, security)
|
|
927
|
+
http_headers&.each do |key, value|
|
|
928
|
+
req.headers[key.to_s] = value
|
|
929
|
+
end
|
|
907
930
|
|
|
908
931
|
@sdk_configuration.hooks.before_request(
|
|
909
932
|
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
@@ -931,13 +954,13 @@ module KintsugiSDK
|
|
|
931
954
|
response: http_response
|
|
932
955
|
)
|
|
933
956
|
end
|
|
934
|
-
|
|
957
|
+
|
|
935
958
|
if http_response.nil?
|
|
936
959
|
raise error if !error.nil?
|
|
937
960
|
raise 'no response'
|
|
938
961
|
end
|
|
939
962
|
end
|
|
940
|
-
|
|
963
|
+
|
|
941
964
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
942
965
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
943
966
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -977,5 +1000,5 @@ module KintsugiSDK
|
|
|
977
1000
|
|
|
978
1001
|
end
|
|
979
1002
|
end
|
|
980
|
-
|
|
1003
|
+
end
|
|
981
1004
|
end
|