@commercelayer/sdk 7.10.0 → 7.11.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.
- package/lib/{api-fR7vDjer.d.ts → api-C0NFQ-CQ.d.ts} +41 -4
- package/lib/{api-C56k_eNN.d.cts → api-CG-sKBsP.d.cts} +41 -4
- package/lib/api.cjs +6 -6
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +3 -3
- package/lib/bundle.cjs +8 -8
- package/lib/bundle.d.cts +1 -1
- package/lib/bundle.d.ts +1 -1
- package/lib/bundle.js +4 -4
- package/lib/{chunk-SWZUFDHY.js → chunk-C7QY2RS6.js} +3 -3
- package/lib/{chunk-SWZUFDHY.js.map → chunk-C7QY2RS6.js.map} +1 -1
- package/lib/{chunk-MU6PHJWP.js → chunk-ETO33E5U.js} +5 -2
- package/lib/chunk-ETO33E5U.js.map +1 -0
- package/lib/{chunk-CAR7HCIH.cjs → chunk-FWRDLTUT.cjs} +5 -2
- package/lib/chunk-FWRDLTUT.cjs.map +1 -0
- package/lib/{chunk-TPFXLI3J.js → chunk-GH7OO6KJ.js} +2 -2
- package/lib/{chunk-TPFXLI3J.js.map → chunk-GH7OO6KJ.js.map} +1 -1
- package/lib/{chunk-XAHCI5JE.js → chunk-JMGGWZOQ.js} +5 -2
- package/lib/chunk-JMGGWZOQ.js.map +1 -0
- package/lib/{chunk-JZ5VDGTD.cjs → chunk-L655OQHH.cjs} +2 -2
- package/lib/{chunk-JZ5VDGTD.cjs.map → chunk-L655OQHH.cjs.map} +1 -1
- package/lib/{chunk-VROIQJ2H.js → chunk-NAPSK4CV.js} +3 -3
- package/lib/{chunk-VROIQJ2H.js.map → chunk-NAPSK4CV.js.map} +1 -1
- package/lib/{chunk-R7JDWIQK.cjs → chunk-NNRS7BTT.cjs} +3 -3
- package/lib/{chunk-R7JDWIQK.cjs.map → chunk-NNRS7BTT.cjs.map} +1 -1
- package/lib/{chunk-LGYK5DTL.cjs → chunk-OIKRKTUG.cjs} +4 -4
- package/lib/{chunk-LGYK5DTL.cjs.map → chunk-OIKRKTUG.cjs.map} +1 -1
- package/lib/{chunk-6ES3UMTH.cjs → chunk-ZJKC6474.cjs} +5 -2
- package/lib/chunk-ZJKC6474.cjs.map +1 -0
- package/lib/commercelayer.cjs +5 -5
- package/lib/commercelayer.d.cts +3 -3
- package/lib/commercelayer.d.ts +3 -3
- package/lib/commercelayer.js +1 -1
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/index.cjs +11 -11
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +5 -5
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/resource.d.cts +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resources/addresses.d.cts +2 -2
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/adjustments.d.cts +2 -2
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adyen_gateways.d.cts +2 -2
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_payments.d.cts +2 -2
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/applications.cjs +2 -2
- package/lib/resources/applications.d.cts +2 -2
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +1 -1
- package/lib/resources/attachments.d.cts +2 -2
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/authorizations.d.cts +2 -2
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/avalara_accounts.d.cts +2 -2
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/axerve_gateways.d.cts +2 -2
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_payments.d.cts +2 -2
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/bing_geocoders.d.cts +2 -2
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/braintree_gateways.d.cts +2 -2
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_payments.d.cts +2 -2
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/bundles.d.cts +2 -2
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/captures.d.cts +2 -2
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/carrier_accounts.d.cts +2 -2
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.d.cts +2 -2
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_payments.d.cts +2 -2
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/cleanups.d.cts +2 -2
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_recipients.d.cts +2 -2
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupons.d.cts +2 -2
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.d.cts +2 -2
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/customer_addresses.d.cts +2 -2
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_groups.d.cts +2 -2
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_password_resets.d.cts +2 -2
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_payment_sources.d.cts +2 -2
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_subscriptions.d.cts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customers.d.cts +2 -2
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/delivery_lead_times.d.cts +2 -2
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/discount_engine_items.d.cts +2 -2
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engines.d.cts +2 -2
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/easypost_pickups.d.cts +2 -2
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/event_callbacks.d.cts +2 -2
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/event_stores.d.cts +2 -2
- package/lib/resources/event_stores.d.ts +1 -1
- package/lib/resources/events.d.cts +2 -2
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/exports.cjs +2 -2
- package/lib/resources/exports.d.cts +2 -2
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/exports.js +1 -1
- package/lib/resources/external_gateways.d.cts +2 -2
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_payments.d.cts +2 -2
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_promotions.d.cts +2 -2
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_tax_calculators.d.cts +2 -2
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.d.cts +2 -2
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.d.cts +2 -2
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.d.cts +2 -2
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/free_gift_promotions.d.cts +2 -2
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.d.cts +2 -2
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/geocoders.d.cts +2 -2
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/gift_card_recipients.d.cts +2 -2
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_cards.d.cts +2 -2
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/google_geocoders.d.cts +2 -2
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/imports.d.cts +2 -2
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.d.cts +2 -2
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/inventory_models.d.cts +2 -2
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_return_locations.d.cts +2 -2
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.d.cts +2 -2
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/klarna_gateways.d.cts +2 -2
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_payments.d.cts +2 -2
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/line_item_options.d.cts +2 -2
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_items.d.cts +2 -2
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/links.d.cts +2 -2
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/manual_gateways.d.cts +2 -2
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.d.cts +2 -2
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/markets.d.cts +2 -2
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/merchants.d.cts +2 -2
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/notifications.d.cts +2 -2
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_copies.d.cts +2 -2
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_factories.d.cts +2 -2
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_subscription_items.d.cts +2 -2
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscriptions.d.cts +2 -2
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/orders.cjs +2 -2
- package/lib/resources/orders.d.cts +2 -2
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/orders.js +1 -1
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/packages.d.cts +2 -2
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/parcel_line_items.d.cts +2 -2
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcels.d.cts +2 -2
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/payment_gateways.d.cts +2 -2
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_methods.d.cts +2 -2
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_options.d.cts +2 -2
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/paypal_gateways.d.cts +2 -2
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_payments.d.cts +2 -2
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.d.cts +2 -2
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/pickups.d.cts +2 -2
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.d.cts +2 -2
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.d.cts +2 -2
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_lists.d.cts +2 -2
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_tiers.d.cts +2 -2
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.d.cts +2 -2
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/prices.d.cts +2 -2
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/promotion_rules.d.cts +2 -2
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotions.d.cts +2 -2
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/recurring_order_copies.d.cts +2 -2
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/refunds.d.cts +2 -2
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/reserved_stocks.d.cts +2 -2
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/resource_errors.d.cts +2 -2
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/return_line_items.d.cts +2 -2
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/returns.d.cts +2 -2
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/satispay_gateways.d.cts +2 -2
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_payments.d.cts +2 -2
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/shipments.d.cts +2 -2
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipping_categories.d.cts +2 -2
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.d.cts +2 -2
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_methods.d.cts +2 -2
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_weight_tiers.d.cts +2 -2
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_zones.d.cts +2 -2
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/sku_list_items.d.cts +2 -2
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_lists.d.cts +2 -2
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_options.d.cts +2 -2
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/skus.d.cts +2 -2
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/stock_items.d.cts +2 -2
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_line_items.d.cts +2 -2
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_locations.d.cts +2 -2
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_reservations.d.cts +2 -2
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_transfers.d.cts +2 -2
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stores.d.cts +2 -2
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stripe_gateways.d.cts +2 -2
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_payments.d.cts +2 -2
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.d.cts +2 -2
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/subscription_models.d.cts +2 -2
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/tags.d.cts +2 -2
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/talon_one_accounts.d.cts +2 -2
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/tax_calculators.d.cts +2 -2
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_categories.d.cts +2 -2
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_rules.d.cts +2 -2
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/taxjar_accounts.d.cts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/transactions.d.cts +2 -2
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/versions.d.cts +2 -2
- package/lib/resources/versions.d.ts +1 -1
- package/lib/resources/vertex_accounts.d.cts +2 -2
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/voids.d.cts +2 -2
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/webhooks.d.cts +2 -2
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/wire_transfers.d.cts +2 -2
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/static.cjs +3 -3
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +2 -2
- package/package.json +9 -8
- package/lib/chunk-6ES3UMTH.cjs.map +0 -1
- package/lib/chunk-CAR7HCIH.cjs.map +0 -1
- package/lib/chunk-MU6PHJWP.js.map +0 -1
- package/lib/chunk-XAHCI5JE.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/exports.ts"],"names":[],"mappings":";;;AAwKA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgB,WAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,M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AAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,QAAQ,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAClJ;AAAA,EAEA,MAAM,UAAA,CAAW,EAAA,EAAqB,MAAA,EAAsC,OAAA,EAA4C;AACvH,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,YAAY,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtJ;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-ETO33E5U.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype ExportType = 'exports'\ntype ExportRel = ResourceRel & { type: ExportType }\n\n\nexport type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url'> & ResourceSort\n// export type ExportFilter = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url' | 'errors_log'> & ResourceFilter\n\n\ninterface Export extends Resource {\n\t\n\treadonly type: ExportType\n\n\t/** \n\t * The type of resource being exported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', 'completed', or 'failed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed' | 'failed'\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t/** \n\t * Time at which the export was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the export was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Estimated time at which the export should complete (dynamically refres^hed).\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\testimated_completion_at?: string | null\n\t/** \n\t * Time at which the export was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Indicates the number of records to be exported.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * Indicates how many records have been processed in real time.\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * The percentage of progress of the export.\n\t * @example ```30```\n\t */\n\tprogress?: number | null\n\t/** \n\t * The URL to the output file, which will be generated upon export completion.\n\t * @example ```\"http://cl_exports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\t/** \n\t * Contains the exports errors, if any.\n\t * @example ```{\"RuntimeError\":\"query timeout\"}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being exported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t\n}\n\n\ninterface ExportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to restart an 'interrupted' export.\n\t * @example ```true```\n\t */\n\t_start?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Exports extends ApiResource<Export> {\n\n\tstatic readonly TYPE: ExportType = 'exports' as const\n\n\tasync create(resource: ExportCreate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.create<ExportCreate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExportUpdate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Exports.TYPE } : id, options)\n\t}\n\n\tasync events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `exports/${_exportId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(exportId: string | Export, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `exports/${_exportId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(exportId: string | Export, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `exports/${_exportId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _start(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _start: true }, params, options)\n\t}\n\n\tasync _interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisExport(resource: any): resource is Export {\n\t\treturn resource.type && (resource.type === Exports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExportRel {\n\t\treturn super.relationshipOneToOne<ExportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExportRel[] {\n\t\treturn super.relationshipOneToMany<ExportRel>(...ids)\n\t}\n\n\n\ttype(): ExportType {\n\t\treturn Exports.TYPE\n\t}\n\n}\n\n\nconst instance = new Exports()\nexport default instance\n\nexport type { Export, ExportCreate, Exports, ExportType, ExportUpdate }\n"]}
|
|
@@ -26,6 +26,9 @@ var Exports = class _Exports extends chunkUBH2EC5P_cjs.ApiResource {
|
|
|
26
26
|
const _exportId = exportId.id || exportId;
|
|
27
27
|
return this.resources.fetch({ type: "event_stores" }, `exports/${_exportId}/event_stores`, params, options);
|
|
28
28
|
}
|
|
29
|
+
async _start(id, params, options) {
|
|
30
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Exports.TYPE, _start: true }, params, options);
|
|
31
|
+
}
|
|
29
32
|
async _interrupt(id, params, options) {
|
|
30
33
|
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Exports.TYPE, _interrupt: true }, params, options);
|
|
31
34
|
}
|
|
@@ -46,5 +49,5 @@ var instance = new Exports();
|
|
|
46
49
|
var exports_default = instance;
|
|
47
50
|
|
|
48
51
|
exports.exports_default = exports_default;
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
52
|
+
//# sourceMappingURL=chunk-FWRDLTUT.cjs.map
|
|
53
|
+
//# sourceMappingURL=chunk-FWRDLTUT.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/exports.ts"],"names":["ApiResource"],"mappings":";;;;;AAwKA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC/F;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA2B,MAAA,EAAiC,OAAA,EAAyD;AACjI,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAM,QAA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AW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,YAAY,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtJ;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-FWRDLTUT.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype ExportType = 'exports'\ntype ExportRel = ResourceRel & { type: ExportType }\n\n\nexport type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url'> & ResourceSort\n// export type ExportFilter = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url' | 'errors_log'> & ResourceFilter\n\n\ninterface Export extends Resource {\n\t\n\treadonly type: ExportType\n\n\t/** \n\t * The type of resource being exported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', 'completed', or 'failed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed' | 'failed'\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t/** \n\t * Time at which the export was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the export was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Estimated time at which the export should complete (dynamically refres^hed).\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\testimated_completion_at?: string | null\n\t/** \n\t * Time at which the export was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Indicates the number of records to be exported.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * Indicates how many records have been processed in real time.\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * The percentage of progress of the export.\n\t * @example ```30```\n\t */\n\tprogress?: number | null\n\t/** \n\t * The URL to the output file, which will be generated upon export completion.\n\t * @example ```\"http://cl_exports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\t/** \n\t * Contains the exports errors, if any.\n\t * @example ```{\"RuntimeError\":\"query timeout\"}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being exported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t\n}\n\n\ninterface ExportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to restart an 'interrupted' export.\n\t * @example ```true```\n\t */\n\t_start?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Exports extends ApiResource<Export> {\n\n\tstatic readonly TYPE: ExportType = 'exports' as const\n\n\tasync create(resource: ExportCreate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.create<ExportCreate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExportUpdate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Exports.TYPE } : id, options)\n\t}\n\n\tasync events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `exports/${_exportId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(exportId: string | Export, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `exports/${_exportId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(exportId: string | Export, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `exports/${_exportId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _start(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _start: true }, params, options)\n\t}\n\n\tasync _interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisExport(resource: any): resource is Export {\n\t\treturn resource.type && (resource.type === Exports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExportRel {\n\t\treturn super.relationshipOneToOne<ExportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExportRel[] {\n\t\treturn super.relationshipOneToMany<ExportRel>(...ids)\n\t}\n\n\n\ttype(): ExportType {\n\t\treturn Exports.TYPE\n\t}\n\n}\n\n\nconst instance = new Exports()\nexport default instance\n\nexport type { Export, ExportCreate, Exports, ExportType, ExportUpdate }\n"]}
|
|
@@ -23,5 +23,5 @@ var instance = new Applications();
|
|
|
23
23
|
var applications_default = instance;
|
|
24
24
|
|
|
25
25
|
export { applications_default };
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
26
|
+
//# sourceMappingURL=chunk-GH7OO6KJ.js.map
|
|
27
|
+
//# sourceMappingURL=chunk-GH7OO6KJ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/applications.ts"],"names":[],"mappings":";;;AA+CA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqB,YAAA,CAA0B;AAAA,EAEpD,OAAgB,IAAA,GAAwB,cAAA;AAAA,EAKxC,cAAc,QAAA,EAAwC;AACrD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,aAAA,CAAa,IAAA;AAAA,EACzD;AAAA,EAGA,aAAa,EAAA,EAAgD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAiC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAGA,IAAA,GAAwB;AACvB,IAAA,OAAO,aAAA,CAAa,IAAA;AAAA,EACrB;AAAA,EAEA,IAAA,GAAe;AACd,IAAA,OAAO,aAAA;AAAA,EACR;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAA,EAAa;AAClC,IAAO,oBAAA,GAAQ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/resources/applications.ts"],"names":[],"mappings":";;;AA+CA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqB,YAAA,CAA0B;AAAA,EAEpD,OAAgB,IAAA,GAAwB,cAAA;AAAA,EAKxC,cAAc,QAAA,EAAwC;AACrD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,aAAA,CAAa,IAAA;AAAA,EACzD;AAAA,EAGA,aAAa,EAAA,EAAgD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAiC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAGA,IAAA,GAAwB;AACvB,IAAA,OAAO,aAAA,CAAa,IAAA;AAAA,EACrB;AAAA,EAEA,IAAA,GAAe;AACd,IAAA,OAAO,aAAA;AAAA,EACR;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAA,EAAa;AAClC,IAAO,oBAAA,GAAQ","file":"chunk-GH7OO6KJ.js","sourcesContent":["import type { Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport { ApiSingleton } from '../resource'\n\n\n\n\ntype ApplicationType = 'applications'\ntype ApplicationRel = ResourceRel & { type: ApplicationType }\n\n\nexport type ApplicationSort = Pick<Application, 'id'> & ResourceSort\n// export type ApplicationFilter = Pick<Application, 'id' | 'name' | 'kind' | 'public_access' | 'scopes'> & ResourceFilter\n\n\ninterface Application extends Resource {\n\t\n\treadonly type: ApplicationType\n\n\t/** \n\t * The application's internal name.\n\t * @example ```\"My app\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The application's kind. One of 'sales_channel', 'integration', or 'webapp'.\n\t * @example ```\"sales-channel\"```\n\t */\n\tkind?: 'dashboard' | 'user' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'generic' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'metrics' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null\n\t/** \n\t * Indicates if the application has public access.\n\t * @example ```true```\n\t */\n\tpublic_access?: boolean | null\n\t/** \n\t * The application's redirect URI.\n\t * @example ```\"https://bluebrand.com/img/logo.svg\"```\n\t */\n\tredirect_uri?: string | null\n\t/** \n\t * The application's scopes.\n\t * @example ```\"market:all market:9 market:122 market:6 stock_location:6 stock_location:33\"```\n\t */\n\tscopes?: string | null\n\t\n}\n\n\nclass Applications extends ApiSingleton<Application> {\n\n\tstatic readonly TYPE: ApplicationType = 'applications' as const\n\n\t\n\n\n\tisApplication(resource: any): resource is Application {\n\t\treturn resource.type && (resource.type === Applications.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ApplicationRel {\n\t\treturn super.relationshipOneToOne<ApplicationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ApplicationRel[] {\n\t\treturn super.relationshipOneToMany<ApplicationRel>(...ids)\n\t}\n\n\n\ttype(): ApplicationType {\n\t\treturn Applications.TYPE\n\t}\n\n\tpath(): string {\n\t\treturn 'application'\n\t}\n\n}\n\n\nconst instance = new Applications()\nexport default instance\n\nexport type { Application, Applications, ApplicationType }\n"]}
|
|
@@ -242,6 +242,9 @@ var Orders = class _Orders extends ApiResource {
|
|
|
242
242
|
async _refresh(id, params, options) {
|
|
243
243
|
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Orders.TYPE, _refresh: true }, params, options);
|
|
244
244
|
}
|
|
245
|
+
async _refresh_prices(id, params, options) {
|
|
246
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Orders.TYPE, _refresh_prices: true }, params, options);
|
|
247
|
+
}
|
|
245
248
|
async _validate(id, params, options) {
|
|
246
249
|
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Orders.TYPE, _validate: true }, params, options);
|
|
247
250
|
}
|
|
@@ -280,5 +283,5 @@ var instance = new Orders();
|
|
|
280
283
|
var orders_default = instance;
|
|
281
284
|
|
|
282
285
|
export { orders_default };
|
|
283
|
-
//# sourceMappingURL=chunk-
|
|
284
|
-
//# sourceMappingURL=chunk-
|
|
286
|
+
//# sourceMappingURL=chunk-JMGGWZOQ.js.map
|
|
287
|
+
//# sourceMappingURL=chunk-JMGGWZOQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/orders.ts"],"names":[],"mappings":";;;AAijCA,IAAM,MAAA,GAAN,MAAM,OAAA,SAAe,WAAA,CAAmB;AAAA,EAEvC,OAAgB,IAAA,GAAkB,QAAA;AAAA,EAElC,MAAM,MAAA,CAAO,QAAA,EAAuB,MAAA,EAAqC,OAAA,EAA2C;AACnH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,OAAA,CAAO,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAuB,MAAA,EAAqC,OAAA,EAA2C;AACnH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,OAAA,CAAO,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrG;AAAA,EAEA,MA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A,GAAW,IAAI,MAAA,EAAO;AAC5B,IAAO,cAAA,GAAQ","file":"chunk-JMGGWZOQ.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Address, AddressType } from './addresses'\nimport type { AdyenPayment, AdyenPaymentType } from './adyen_payments'\nimport type { Attachment } from './attachments'\nimport type { Authorization } from './authorizations'\nimport type { AxervePayment, AxervePaymentType } from './axerve_payments'\nimport type { BraintreePayment, BraintreePaymentType } from './braintree_payments'\nimport type { Bundle } from './bundles'\nimport type { Capture } from './captures'\nimport type { CheckoutComPayment, CheckoutComPaymentType } from './checkout_com_payments'\nimport type { CustomerPaymentSource } from './customer_payment_sources'\nimport type { Customer, CustomerType } from './customers'\nimport type { DiscountEngineItem } from './discount_engine_items'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { ExternalPayment, ExternalPaymentType } from './external_payments'\nimport type { KlarnaPayment, KlarnaPaymentType } from './klarna_payments'\nimport type { LineItemOption } from './line_item_options'\nimport type { LineItem } from './line_items'\nimport type { Link } from './links'\nimport type { Market, MarketType } from './markets'\nimport type { Notification } from './notifications'\nimport type { OrderCopy } from './order_copies'\nimport type { OrderFactory } from './order_factories'\nimport type { OrderSubscription } from './order_subscriptions'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { PaymentOption } from './payment_options'\nimport type { PaypalPayment, PaypalPaymentType } from './paypal_payments'\nimport type { RecurringOrderCopy } from './recurring_order_copies'\nimport type { Refund } from './refunds'\nimport type { ResourceError } from './resource_errors'\nimport type { Return } from './returns'\nimport type { SatispayPayment, SatispayPaymentType } from './satispay_payments'\nimport type { Shipment } from './shipments'\nimport type { ShippingMethod } from './shipping_methods'\nimport type { Sku } from './skus'\nimport type { StockLineItem } from './stock_line_items'\nimport type { StockReservation } from './stock_reservations'\nimport type { StockTransfer } from './stock_transfers'\nimport type { Store, StoreType } from './stores'\nimport type { StripePayment, StripePaymentType } from './stripe_payments'\nimport type { Tag, TagType } from './tags'\nimport type { Version } from './versions'\nimport type { Void } from './voids'\nimport type { WireTransfer, WireTransferType } from './wire_transfers'\n\n\ntype OrderType = 'orders'\ntype OrderRel = ResourceRel & { type: OrderType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype AddressRel = ResourceRel & { type: AddressType }\ntype StoreRel = ResourceRel & { type: StoreType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\ntype AxervePaymentRel = ResourceRel & { type: AxervePaymentType }\ntype BraintreePaymentRel = ResourceRel & { type: BraintreePaymentType }\ntype CheckoutComPaymentRel = ResourceRel & { type: CheckoutComPaymentType }\ntype ExternalPaymentRel = ResourceRel & { type: ExternalPaymentType }\ntype KlarnaPaymentRel = ResourceRel & { type: KlarnaPaymentType }\ntype PaypalPaymentRel = ResourceRel & { type: PaypalPaymentType }\ntype SatispayPaymentRel = ResourceRel & { type: SatispayPaymentType }\ntype StripePaymentRel = ResourceRel & { type: StripePaymentType }\ntype WireTransferRel = ResourceRel & { type: WireTransferType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type OrderSort = Pick<Order, 'id' | 'number' | 'affiliate_code' | 'place_async' | 'status' | 'payment_status' | 'fulfillment_status' | 'guest' | 'language_code' | 'currency_code' | 'tax_included' | 'tax_rate' | 'country_code' | 'coupon_code' | 'gift_card_code' | 'subtotal_amount_cents' | 'shipping_amount_cents' | 'payment_method_amount_cents' | 'discount_amount_cents' | 'adjustment_amount_cents' | 'gift_card_amount_cents' | 'total_tax_amount_cents' | 'subtotal_tax_amount_cents' | 'total_amount_cents' | 'fees_amount_cents' | 'duty_amount_cents' | 'placed_at' | 'approved_at' | 'cancelled_at' | 'payment_updated_at' | 'fulfillment_updated_at' | 'refreshed_at' | 'archived_at' | 'subscription_created_at' | 'expires_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type OrderFilter = Pick<Order, 'id' | 'number' | 'affiliate_code' | 'place_async' | 'status' | 'payment_status' | 'fulfillment_status' | 'guest' | 'customer_email' | 'language_code' | 'currency_code' | 'tax_included' | 'tax_rate' | 'country_code' | 'coupon_code' | 'gift_card_code' | 'subtotal_amount_cents' | 'shipping_amount_cents' | 'payment_method_amount_cents' | 'discount_amount_cents' | 'adjustment_amount_cents' | 'gift_card_amount_cents' | 'total_tax_amount_cents' | 'subtotal_tax_amount_cents' | 'total_amount_cents' | 'fees_amount_cents' | 'duty_amount_cents' | 'payment_source_details' | 'token' | 'placed_at' | 'approved_at' | 'cancelled_at' | 'payment_updated_at' | 'fulfillment_updated_at' | 'refreshed_at' | 'archived_at' | 'subscription_created_at' | 'expires_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface Order extends Resource {\n\t\n\treadonly type: OrderType\n\n\t/** \n\t * The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels.\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The affiliate code, if any, to track commissions using any third party services.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\taffiliate_code?: string | null\n\t/** \n\t * Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster).\n\t * @example ```true```\n\t */\n\tautorefresh?: boolean | null\n\t/** \n\t * Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards.\n\t * @example ```true```\n\t */\n\tplace_async?: boolean | null\n\t/** \n\t * The order status. One of 'draft' (default), 'pending', 'editing', 'placing', 'placed', 'approved', or 'cancelled'.\n\t * @example ```\"draft\"```\n\t */\n\tstatus: 'draft' | 'pending' | 'editing' | 'placing' | 'placed' | 'approved' | 'cancelled'\n\t/** \n\t * The order payment status. One of 'unpaid' (default), 'authorized', 'partially_authorized', 'paid', 'partially_paid', 'voided', 'partially_voided', 'refunded', 'partially_refunded', or 'free'.\n\t * @example ```\"unpaid\"```\n\t */\n\tpayment_status: 'unpaid' | 'authorized' | 'partially_authorized' | 'paid' | 'partially_paid' | 'voided' | 'partially_voided' | 'refunded' | 'partially_refunded' | 'free'\n\t/** \n\t * The order fulfillment status. One of 'unfulfilled' (default), 'in_progress', 'fulfilled', or 'not_required'.\n\t * @example ```\"unfulfilled\"```\n\t */\n\tfulfillment_status: 'unfulfilled' | 'in_progress' | 'fulfilled' | 'not_required'\n\t/** \n\t * Indicates if the order has been placed as guest.\n\t * @example ```true```\n\t */\n\tguest?: boolean | null\n\t/** \n\t * Indicates if the order can be edited.\n\t * @example ```true```\n\t */\n\teditable?: boolean | null\n\t/** \n\t * The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email?: string | null\n\t/** \n\t * The type of the associated customer. One of 'new', or 'returning'.\n\t * @example ```\"returning\"```\n\t */\n\tcustomer_type?: 'new' | 'returning' | null\n\t/** \n\t * The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly.\n\t * @example ```\"it\"```\n\t */\n\tlanguage_code?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if taxes are included in the order amounts, automatically inherited from the order's price list.\n\t * @example ```true```\n\t */\n\ttax_included?: boolean | null\n\t/** \n\t * The tax rate for this order (if calculated).\n\t * @example ```0.22```\n\t */\n\ttax_rate?: number | null\n\t/** \n\t * Indicates if taxes are applied to shipping costs.\n\t * @example ```true```\n\t */\n\tfreight_taxable?: boolean | null\n\t/** \n\t * Indicates if taxes are applied to payment methods costs.\n\t * @example ```true```\n\t */\n\tpayment_method_taxable?: boolean | null\n\t/** \n\t * Indicates if taxes are applied to positive adjustments.\n\t * @example ```true```\n\t */\n\tadjustment_taxable?: boolean | null\n\t/** \n\t * Indicates if taxes are applied to purchased gift cards.\n\t */\n\tgift_card_taxable?: boolean | null\n\t/** \n\t * Indicates if the billing address associated to this order requires billing info to be present.\n\t */\n\trequires_billing_info?: boolean | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping or billing addresses.\n\t * @example ```\"IT\"```\n\t */\n\tcountry_code?: string | null\n\t/** \n\t * The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products.\n\t * @example ```\"IT\"```\n\t */\n\tshipping_country_code_lock?: string | null\n\t/** \n\t * The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order.\n\t * @example ```\"SUMMERDISCOUNT\"```\n\t */\n\tcoupon_code?: string | null\n\t/** \n\t * The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order.\n\t * @example ```\"cc92c23e-967e-48b2-a323-59add603301f\"```\n\t */\n\tgift_card_code?: string | null\n\t/** \n\t * The sum of all the SKU line items total amounts, in cents.\n\t * @example ```5000```\n\t */\n\tsubtotal_amount_cents?: number | null\n\t/** \n\t * The sum of all the SKU line items total amounts, float.\n\t * @example ```50```\n\t */\n\tsubtotal_amount_float?: number | null\n\t/** \n\t * The sum of all the SKU line items total amounts, formatted.\n\t * @example ```\"€50,00\"```\n\t */\n\tformatted_subtotal_amount?: string | null\n\t/** \n\t * The sum of all the shipping costs, in cents.\n\t * @example ```1200```\n\t */\n\tshipping_amount_cents?: number | null\n\t/** \n\t * The sum of all the shipping costs, float.\n\t * @example ```12```\n\t */\n\tshipping_amount_float?: number | null\n\t/** \n\t * The sum of all the shipping costs, formatted.\n\t * @example ```\"€12,00\"```\n\t */\n\tformatted_shipping_amount?: string | null\n\t/** \n\t * The payment method costs, in cents.\n\t */\n\tpayment_method_amount_cents?: number | null\n\t/** \n\t * The payment method costs, float.\n\t */\n\tpayment_method_amount_float?: number | null\n\t/** \n\t * The payment method costs, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_payment_method_amount?: string | null\n\t/** \n\t * The sum of all the discounts applied to the order, in cents (negative amount).\n\t * @example ```-500```\n\t */\n\tdiscount_amount_cents?: number | null\n\t/** \n\t * The sum of all the discounts applied to the order, float.\n\t * @example ```-5```\n\t */\n\tdiscount_amount_float?: number | null\n\t/** \n\t * The sum of all the discounts applied to the order, formatted.\n\t * @example ```\"-€5,00\"```\n\t */\n\tformatted_discount_amount?: string | null\n\t/** \n\t * The sum of all the adjustments applied to the order, in cents.\n\t * @example ```1500```\n\t */\n\tadjustment_amount_cents?: number | null\n\t/** \n\t * The sum of all the adjustments applied to the order, float.\n\t * @example ```15```\n\t */\n\tadjustment_amount_float?: number | null\n\t/** \n\t * The sum of all the adjustments applied to the order, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_adjustment_amount?: string | null\n\t/** \n\t * The sum of all the gift_cards applied to the order, in cents.\n\t * @example ```1500```\n\t */\n\tgift_card_amount_cents?: number | null\n\t/** \n\t * The sum of all the gift_cards applied to the order, float.\n\t * @example ```15```\n\t */\n\tgift_card_amount_float?: number | null\n\t/** \n\t * The sum of all the gift_cards applied to the order, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_gift_card_amount?: string | null\n\t/** \n\t * The sum of all the taxes applied to the order, in cents.\n\t * @example ```1028```\n\t */\n\ttotal_tax_amount_cents?: number | null\n\t/** \n\t * The sum of all the taxes applied to the order, float.\n\t * @example ```10.28```\n\t */\n\ttotal_tax_amount_float?: number | null\n\t/** \n\t * The sum of all the taxes applied to the order, formatted.\n\t * @example ```\"€10,28\"```\n\t */\n\tformatted_total_tax_amount?: string | null\n\t/** \n\t * The taxes applied to the order's subtotal, in cents.\n\t * @example ```902```\n\t */\n\tsubtotal_tax_amount_cents?: number | null\n\t/** \n\t * The taxes applied to the order's subtotal, float.\n\t * @example ```9.02```\n\t */\n\tsubtotal_tax_amount_float?: number | null\n\t/** \n\t * The taxes applied to the order's subtotal, formatted.\n\t * @example ```\"€9,02\"```\n\t */\n\tformatted_subtotal_tax_amount?: string | null\n\t/** \n\t * The taxes applied to the order's shipping costs, in cents.\n\t * @example ```216```\n\t */\n\tshipping_tax_amount_cents?: number | null\n\t/** \n\t * The taxes applied to the order's shipping costs, float.\n\t * @example ```2.16```\n\t */\n\tshipping_tax_amount_float?: number | null\n\t/** \n\t * The taxes applied to the order's shipping costs, formatted.\n\t * @example ```\"€2,16\"```\n\t */\n\tformatted_shipping_tax_amount?: string | null\n\t/** \n\t * The taxes applied to the order's payment method costs, in cents.\n\t */\n\tpayment_method_tax_amount_cents?: number | null\n\t/** \n\t * The taxes applied to the order's payment method costs, float.\n\t */\n\tpayment_method_tax_amount_float?: number | null\n\t/** \n\t * The taxes applied to the order's payment method costs, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_payment_method_tax_amount?: string | null\n\t/** \n\t * The taxes applied to the order adjustments, in cents.\n\t * @example ```900```\n\t */\n\tadjustment_tax_amount_cents?: number | null\n\t/** \n\t * The taxes applied to the order adjustments, float.\n\t * @example ```9```\n\t */\n\tadjustment_tax_amount_float?: number | null\n\t/** \n\t * The taxes applied to the order adjustments, formatted.\n\t * @example ```\"€9,00\"```\n\t */\n\tformatted_adjustment_tax_amount?: string | null\n\t/** \n\t * The order's total amount, in cents.\n\t * @example ```5700```\n\t */\n\ttotal_amount_cents?: number | null\n\t/** \n\t * The order's total amount, float.\n\t * @example ```57```\n\t */\n\ttotal_amount_float?: number | null\n\t/** \n\t * The order's total amount, formatted.\n\t * @example ```\"€57,00\"```\n\t */\n\tformatted_total_amount?: string | null\n\t/** \n\t * The order's total taxable amount, in cents (without discounts).\n\t * @example ```4672```\n\t */\n\ttotal_taxable_amount_cents?: number | null\n\t/** \n\t * The order's total taxable amount, float.\n\t * @example ```46.72```\n\t */\n\ttotal_taxable_amount_float?: number | null\n\t/** \n\t * The order's total taxable amount, formatted.\n\t * @example ```\"€46,72\"```\n\t */\n\tformatted_total_taxable_amount?: string | null\n\t/** \n\t * The order's subtotal taxable amount, in cents (equal to subtotal_amount_cents when prices don't include taxes).\n\t * @example ```4098```\n\t */\n\tsubtotal_taxable_amount_cents?: number | null\n\t/** \n\t * The order's subtotal taxable amount, float.\n\t * @example ```40.98```\n\t */\n\tsubtotal_taxable_amount_float?: number | null\n\t/** \n\t * The order's subtotal taxable amount, formatted.\n\t * @example ```\"€40,98\"```\n\t */\n\tformatted_subtotal_taxable_amount?: string | null\n\t/** \n\t * The order's shipping taxable amount, in cents (equal to shipping_amount_cents when prices don't include taxes).\n\t * @example ```984```\n\t */\n\tshipping_taxable_amount_cents?: number | null\n\t/** \n\t * The order's shipping taxable amount, float.\n\t * @example ```9.84```\n\t */\n\tshipping_taxable_amount_float?: number | null\n\t/** \n\t * The order's shipping taxable amount, formatted.\n\t * @example ```\"€9,84\"```\n\t */\n\tformatted_shipping_taxable_amount?: string | null\n\t/** \n\t * The order's payment method taxable amount, in cents (equal to payment_method_amount_cents when prices don't include taxes).\n\t */\n\tpayment_method_taxable_amount_cents?: number | null\n\t/** \n\t * The order's payment method taxable amount, float.\n\t */\n\tpayment_method_taxable_amount_float?: number | null\n\t/** \n\t * The order's payment method taxable amount, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_payment_method_taxable_amount?: string | null\n\t/** \n\t * The order's adjustment taxable amount, in cents (equal to discount_adjustment_cents when prices don't include taxes).\n\t * @example ```120```\n\t */\n\tadjustment_taxable_amount_cents?: number | null\n\t/** \n\t * The order's adjustment taxable amount, float.\n\t * @example ```1.2```\n\t */\n\tadjustment_taxable_amount_float?: number | null\n\t/** \n\t * The order's adjustment taxable amount, formatted.\n\t * @example ```\"€1,20\"```\n\t */\n\tformatted_adjustment_taxable_amount?: string | null\n\t/** \n\t * The order's total amount (when prices include taxes) or the order's total + taxes amount (when prices don't include taxes, e.g. US Markets or B2B).\n\t * @example ```5700```\n\t */\n\ttotal_amount_with_taxes_cents?: number | null\n\t/** \n\t * The order's total amount with taxes, float.\n\t * @example ```57```\n\t */\n\ttotal_amount_with_taxes_float?: number | null\n\t/** \n\t * The order's total amount with taxes, formatted.\n\t * @example ```\"€57,00\"```\n\t */\n\tformatted_total_amount_with_taxes?: string | null\n\t/** \n\t * The fees amount that is applied by Commerce Layer, in cents.\n\t */\n\tfees_amount_cents?: number | null\n\t/** \n\t * The fees amount that is applied by Commerce Layer, float.\n\t */\n\tfees_amount_float?: number | null\n\t/** \n\t * The fees amount that is applied by Commerce Layer, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_fees_amount?: string | null\n\t/** \n\t * The duty amount that is calculated by external services, in cents.\n\t */\n\tduty_amount_cents?: number | null\n\t/** \n\t * The duty amount that is calculated by external services, float.\n\t */\n\tduty_amount_float?: number | null\n\t/** \n\t * The duty amount that is calculated by external services, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_duty_amount?: string | null\n\t/** \n\t * The total amount at place time, in cents, which is used internally for editing.\n\t */\n\tplace_total_amount_cents?: number | null\n\t/** \n\t * The total amount at place time, float.\n\t */\n\tplace_total_amount_float?: number | null\n\t/** \n\t * The total amount at place time, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_place_total_amount?: string | null\n\t/** \n\t * The total number of SKUs in the order's line items. This can be useful to display a preview of the customer shopping cart content.\n\t * @example ```2```\n\t */\n\tskus_count?: number | null\n\t/** \n\t * The total number of line item options. This can be useful to display a preview of the customer shopping cart content.\n\t * @example ```1```\n\t */\n\tline_item_options_count?: number | null\n\t/** \n\t * The total number of shipments. This can be useful to manage the shipping method(s) selection during checkout.\n\t * @example ```1```\n\t */\n\tshipments_count?: number | null\n\t/** \n\t * The total number of tax calculations. This can be useful to monitor external tax service usage.\n\t * @example ```1```\n\t */\n\ttax_calculations_count?: number | null\n\t/** \n\t * The total number of external validation performed. This can be useful to monitor if external validation has been triggered.\n\t * @example ```1```\n\t */\n\tvalidations_count?: number | null\n\t/** \n\t * The total number of resource errors.\n\t * @example ```1```\n\t */\n\terrors_count?: number | null\n\t/** \n\t * An object that contains the shareable details of the order's payment source.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_source_details?: Record<string, any> | null\n\t/** \n\t * A unique token that can be shared more securely instead of the order's id.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The cart url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/cart\"```\n\t */\n\tcart_url?: string | null\n\t/** \n\t * The return url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * The terms and conditions url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/terms\"```\n\t */\n\tterms_url?: string | null\n\t/** \n\t * The privacy policy url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/privacy\"```\n\t */\n\tprivacy_url?: string | null\n\t/** \n\t * The checkout url that was automatically generated for the order. Send the customers to this url to let them checkout the order securely on our hosted checkout application.\n\t * @example ```\"https://yourdomain.commercelayer.io/checkout/1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tcheckout_url?: string | null\n\t/** \n\t * Time at which the order was placed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tplaced_at?: string | null\n\t/** \n\t * Time at which the order was approved.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tapproved_at?: string | null\n\t/** \n\t * Time at which the order was cancelled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcancelled_at?: string | null\n\t/** \n\t * Time at which the order's payment status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tpayment_updated_at?: string | null\n\t/** \n\t * Time at which the order's fulfillment status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tfulfillment_updated_at?: string | null\n\t/** \n\t * Last time at which the order was refreshed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\trefreshed_at?: string | null\n\t/** \n\t * Time at which the resource has been archived.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tarchived_at?: string | null\n\t/** \n\t * Time at which the order has been marked to create a subscription from its recurring line items.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tsubscription_created_at?: string | null\n\t/** \n\t * The expiration date/time of this order. Cannot be passed by sales channels.\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The information related to the order expiration, in case expires_at is not null. Cannot be passed by sales channels.\n\t * @example ```{\"summary_message\":\"Your tickets are reserved for the remaining time.\",\"expired_message\":\"Your session has expired. Please start your checkout again.\",\"redirect_url\":\"https://yourshop.com/\"}```\n\t */\n\texpiration_info?: Record<string, any> | null\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\n\tmarket?: Market | null\n\tcustomer?: Customer | null\n\tshipping_address?: Address | null\n\tbilling_address?: Address | null\n\tstore?: Store | null\n\tdefault_shipping_method?: ShippingMethod | null\n\tdefault_payment_method?: PaymentMethod | null\n\tavailable_payment_methods?: PaymentMethod[] | null\n\tavailable_customer_payment_sources?: CustomerPaymentSource[] | null\n\tavailable_free_skus?: Sku[] | null\n\tavailable_free_bundles?: Bundle[] | null\n\tpayment_method?: PaymentMethod | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tdiscount_engine_item?: DiscountEngineItem | null\n\tline_items?: LineItem[] | null\n\tline_item_options?: LineItemOption[] | null\n\tstock_reservations?: StockReservation[] | null\n\tstock_line_items?: StockLineItem[] | null\n\tstock_transfers?: StockTransfer[] | null\n\tshipments?: Shipment[] | null\n\tpayment_options?: PaymentOption[] | null\n\ttransactions?: Array<Authorization | Void | Capture | Refund> | null\n\tauthorizations?: Authorization[] | null\n\tcaptures?: Capture[] | null\n\tvoids?: Void[] | null\n\trefunds?: Refund[] | null\n\treturns?: Return[] | null\n\torder_subscription?: OrderSubscription | null\n\torder_subscriptions?: OrderSubscription[] | null\n\torder_factories?: OrderFactory[] | null\n\torder_copies?: OrderCopy[] | null\n\trecurring_order_copies?: RecurringOrderCopy[] | null\n\tattachments?: Attachment[] | null\n\tnotifications?: Notification[] | null\n\tlinks?: Link[] | null\n\tresource_errors?: ResourceError[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface OrderCreate extends ResourceCreate {\n\t\n\t/** \n\t * The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels.\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The affiliate code, if any, to track commissions using any third party services.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\taffiliate_code?: string | null\n\t/** \n\t * Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster).\n\t * @example ```true```\n\t */\n\tautorefresh?: boolean | null\n\t/** \n\t * Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards.\n\t * @example ```true```\n\t */\n\tplace_async?: boolean | null\n\t/** \n\t * Indicates if the order has been placed as guest.\n\t * @example ```true```\n\t */\n\tguest?: boolean | null\n\t/** \n\t * The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email?: string | null\n\t/** \n\t * The password of the associated customer. When creating or updating an order, this is a shortcut to sign up the associated customer.\n\t * @example ```\"secret\"```\n\t */\n\tcustomer_password?: string | null\n\t/** \n\t * The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly.\n\t * @example ```\"it\"```\n\t */\n\tlanguage_code?: string | null\n\t/** \n\t * Indicates if taxes are applied to shipping costs.\n\t * @example ```true```\n\t */\n\tfreight_taxable?: boolean | null\n\t/** \n\t * Indicates if taxes are applied to payment methods costs.\n\t * @example ```true```\n\t */\n\tpayment_method_taxable?: boolean | null\n\t/** \n\t * Indicates if taxes are applied to positive adjustments.\n\t * @example ```true```\n\t */\n\tadjustment_taxable?: boolean | null\n\t/** \n\t * Indicates if taxes are applied to purchased gift cards.\n\t */\n\tgift_card_taxable?: boolean | null\n\t/** \n\t * The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products.\n\t * @example ```\"IT\"```\n\t */\n\tshipping_country_code_lock?: string | null\n\t/** \n\t * The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order.\n\t * @example ```\"SUMMERDISCOUNT\"```\n\t */\n\tcoupon_code?: string | null\n\t/** \n\t * The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order.\n\t * @example ```\"cc92c23e-967e-48b2-a323-59add603301f\"```\n\t */\n\tgift_card_code?: string | null\n\t/** \n\t * The cart url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/cart\"```\n\t */\n\tcart_url?: string | null\n\t/** \n\t * The return url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * The terms and conditions url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/terms\"```\n\t */\n\tterms_url?: string | null\n\t/** \n\t * The privacy policy url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/privacy\"```\n\t */\n\tprivacy_url?: string | null\n\t/** \n\t * The expiration date/time of this order. Cannot be passed by sales channels.\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The information related to the order expiration, in case expires_at is not null. Cannot be passed by sales channels.\n\t * @example ```{\"summary_message\":\"Your tickets are reserved for the remaining time.\",\"expired_message\":\"Your session has expired. Please start your checkout again.\",\"redirect_url\":\"https://yourshop.com/\"}```\n\t */\n\texpiration_info?: Record<string, any> | null\n\n\tmarket?: MarketRel | null\n\tcustomer?: CustomerRel | null\n\tshipping_address?: AddressRel | null\n\tbilling_address?: AddressRel | null\n\tstore?: StoreRel | null\n\tpayment_method?: PaymentMethodRel | null\n\tpayment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface OrderUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels.\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The affiliate code, if any, to track commissions using any third party services.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\taffiliate_code?: string | null\n\t/** \n\t * Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster).\n\t * @example ```true```\n\t */\n\tautorefresh?: boolean | null\n\t/** \n\t * Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards.\n\t * @example ```true```\n\t */\n\tplace_async?: boolean | null\n\t/** \n\t * Indicates if the order has been placed as guest.\n\t * @example ```true```\n\t */\n\tguest?: boolean | null\n\t/** \n\t * The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email?: string | null\n\t/** \n\t * The password of the associated customer. When creating or updating an order, this is a shortcut to sign up the associated customer.\n\t * @example ```\"secret\"```\n\t */\n\tcustomer_password?: string | null\n\t/** \n\t * The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly.\n\t * @example ```\"it\"```\n\t */\n\tlanguage_code?: string | null\n\t/** \n\t * Indicates if taxes are applied to shipping costs.\n\t * @example ```true```\n\t */\n\tfreight_taxable?: boolean | null\n\t/** \n\t * Indicates if taxes are applied to payment methods costs.\n\t * @example ```true```\n\t */\n\tpayment_method_taxable?: boolean | null\n\t/** \n\t * Indicates if taxes are applied to positive adjustments.\n\t * @example ```true```\n\t */\n\tadjustment_taxable?: boolean | null\n\t/** \n\t * Indicates if taxes are applied to purchased gift cards.\n\t */\n\tgift_card_taxable?: boolean | null\n\t/** \n\t * The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products.\n\t * @example ```\"IT\"```\n\t */\n\tshipping_country_code_lock?: string | null\n\t/** \n\t * The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order.\n\t * @example ```\"SUMMERDISCOUNT\"```\n\t */\n\tcoupon_code?: string | null\n\t/** \n\t * The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order.\n\t * @example ```\"cc92c23e-967e-48b2-a323-59add603301f\"```\n\t */\n\tgift_card_code?: string | null\n\t/** \n\t * The cart url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/cart\"```\n\t */\n\tcart_url?: string | null\n\t/** \n\t * The return url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * The terms and conditions url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/terms\"```\n\t */\n\tterms_url?: string | null\n\t/** \n\t * The privacy policy url on your site. If present, it will be used on our hosted checkout application.\n\t * @example ```\"https://yourdomain.com/privacy\"```\n\t */\n\tprivacy_url?: string | null\n\t/** \n\t * Send this attribute if you want to archive the order.\n\t * @example ```true```\n\t */\n\t_archive?: boolean | null\n\t/** \n\t * Send this attribute if you want to unarchive the order.\n\t * @example ```true```\n\t */\n\t_unarchive?: boolean | null\n\t/** \n\t * Send this attribute if you want to move a draft or placing order to pending. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_pending?: boolean | null\n\t/** \n\t * Send this attribute if you want to place the order.\n\t * @example ```true```\n\t */\n\t_place?: boolean | null\n\t/** \n\t * Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided.\n\t * @example ```true```\n\t */\n\t_cancel?: boolean | null\n\t/** \n\t * Send this attribute if you want to approve a placed order. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_approve?: boolean | null\n\t/** \n\t * Send this attribute if you want to approve and capture a placed order. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_approve_and_capture?: boolean | null\n\t/** \n\t * Send this attribute if you want to authorize the order's payment source.\n\t * @example ```true```\n\t */\n\t_authorize?: boolean | null\n\t/** \n\t * Send this attribute as a value in cents if you want to overwrite the amount to be authorized.\n\t * @example ```500```\n\t */\n\t_authorization_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to capture an authorized order. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_capture?: boolean | null\n\t/** \n\t * Send this attribute if you want to refund a captured order. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_refund?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered, alternatively order must be approved). Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_fulfill?: boolean | null\n\t/** \n\t * Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market).\n\t * @example ```true```\n\t */\n\t_update_taxes?: boolean | null\n\t/** \n\t * Send this attribute if you want to nullify the payment source for this order.\n\t */\n\t_nullify_payment_source?: boolean | null\n\t/** \n\t * Send this attribute if you want to set the payment source associated with the last succeeded authorization. At the end of the fix the order should be placed and authorized and ready to be approved. A tentative to fix the payment source is done before approval automatically. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_fix_payment_source?: boolean | null\n\t/** \n\t * The id of the address that you want to clone to create the order's billing address.\n\t * @example ```\"1234\"```\n\t */\n\t_billing_address_clone_id?: string | null\n\t/** \n\t * The id of the address that you want to clone to create the order's shipping address.\n\t * @example ```\"1234\"```\n\t */\n\t_shipping_address_clone_id?: string | null\n\t/** \n\t * The id of the customer payment source (i.e. credit card) that you want to use as the order's payment source.\n\t * @example ```\"1234\"```\n\t */\n\t_customer_payment_source_id?: string | null\n\t/** \n\t * Send this attribute if you want the shipping address to be cloned from the order's billing address.\n\t * @example ```true```\n\t */\n\t_shipping_address_same_as_billing?: boolean | null\n\t/** \n\t * Send this attribute if you want the billing address to be cloned from the order's shipping address.\n\t * @example ```true```\n\t */\n\t_billing_address_same_as_shipping?: boolean | null\n\t/** \n\t * Send this attribute if you want commit the sales tax invoice to the associated tax calculator (currently supported by Avalara).\n\t * @example ```true```\n\t */\n\t_commit_invoice?: boolean | null\n\t/** \n\t * Send this attribute if you want refund the sales tax invoice to the associated tax calculator (currently supported by Avalara).\n\t * @example ```true```\n\t */\n\t_refund_invoice?: boolean | null\n\t/** \n\t * Send this attribute if you want the order's payment source to be saved in the customer's wallet as a customer payment source.\n\t * @example ```true```\n\t */\n\t_save_payment_source_to_customer_wallet?: boolean | null\n\t/** \n\t * Send this attribute if you want the order's shipping address to be saved in the customer's address book as a customer address.\n\t * @example ```true```\n\t */\n\t_save_shipping_address_to_customer_address_book?: boolean | null\n\t/** \n\t * Send this attribute if you want the order's billing address to be saved in the customer's address book as a customer address.\n\t * @example ```true```\n\t */\n\t_save_billing_address_to_customer_address_book?: boolean | null\n\t/** \n\t * Send this attribute if you want to manually refresh the order.\n\t * @example ```true```\n\t */\n\t_refresh?: boolean | null\n\t/** \n\t * Send this attribute if you want to refresh the prices of the line items associated to this order. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_refresh_prices?: boolean | null\n\t/** \n\t * Send this attribute if you want to trigger the external validation for the order.\n\t * @example ```true```\n\t */\n\t_validate?: boolean | null\n\t/** \n\t * Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that have a frequency.\n\t * @example ```true```\n\t */\n\t_create_subscriptions?: boolean | null\n\t/** \n\t * Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_start_editing?: boolean | null\n\t/** \n\t * Send this attribute to stop the editing for the order and return back to placed status. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_stop_editing?: boolean | null\n\t/** \n\t * The expiration date/time of this order. Cannot be passed by sales channels.\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The information related to the order expiration, in case expires_at is not null. Cannot be passed by sales channels.\n\t * @example ```{\"summary_message\":\"Your tickets are reserved for the remaining time.\",\"expired_message\":\"Your session has expired. Please start your checkout again.\",\"redirect_url\":\"https://yourshop.com/\"}```\n\t */\n\texpiration_info?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tmarket?: MarketRel | null\n\tcustomer?: CustomerRel | null\n\tshipping_address?: AddressRel | null\n\tbilling_address?: AddressRel | null\n\tstore?: StoreRel | null\n\tpayment_method?: PaymentMethodRel | null\n\tpayment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Orders extends ApiResource<Order> {\n\n\tstatic readonly TYPE: OrderType = 'orders' as const\n\n\tasync create(resource: OrderCreate, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.create<OrderCreate, Order>({ ...resource, type: Orders.TYPE }, params, options)\n\t}\n\n\tasync update(resource: OrderUpdate, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ ...resource, type: Orders.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Orders.TYPE } : id, options)\n\t}\n\n\tasync market(orderId: string | Order, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `orders/${_orderId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync customer(orderId: string | Order, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `orders/${_orderId}/customer`, params, options) as unknown as Customer\n\t}\n\n\tasync shipping_address(orderId: string | Order, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `orders/${_orderId}/shipping_address`, params, options) as unknown as Address\n\t}\n\n\tasync billing_address(orderId: string | Order, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `orders/${_orderId}/billing_address`, params, options) as unknown as Address\n\t}\n\n\tasync store(orderId: string | Order, params?: QueryParamsRetrieve<Store>, options?: ResourcesConfig): Promise<Store> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Store>({ type: 'stores' }, `orders/${_orderId}/store`, params, options) as unknown as Store\n\t}\n\n\tasync default_shipping_method(orderId: string | Order, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<ShippingMethod>({ type: 'shipping_methods' }, `orders/${_orderId}/default_shipping_method`, params, options) as unknown as ShippingMethod\n\t}\n\n\tasync default_payment_method(orderId: string | Order, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `orders/${_orderId}/default_payment_method`, params, options) as unknown as PaymentMethod\n\t}\n\n\tasync available_payment_methods(orderId: string | Order, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `orders/${_orderId}/available_payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync available_customer_payment_sources(orderId: string | Order, params?: QueryParamsList<CustomerPaymentSource>, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<CustomerPaymentSource>({ type: 'customer_payment_sources' }, `orders/${_orderId}/available_customer_payment_sources`, params, options) as unknown as ListResponse<CustomerPaymentSource>\n\t}\n\n\tasync available_free_skus(orderId: string | Order, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `orders/${_orderId}/available_free_skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync available_free_bundles(orderId: string | Order, params?: QueryParamsList<Bundle>, options?: ResourcesConfig): Promise<ListResponse<Bundle>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Bundle>({ type: 'bundles' }, `orders/${_orderId}/available_free_bundles`, params, options) as unknown as ListResponse<Bundle>\n\t}\n\n\tasync payment_method(orderId: string | Order, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `orders/${_orderId}/payment_method`, params, options) as unknown as PaymentMethod\n\t}\n\n\tasync discount_engine_item(orderId: string | Order, params?: QueryParamsRetrieve<DiscountEngineItem>, options?: ResourcesConfig): Promise<DiscountEngineItem> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<DiscountEngineItem>({ type: 'discount_engine_items' }, `orders/${_orderId}/discount_engine_item`, params, options) as unknown as DiscountEngineItem\n\t}\n\n\tasync line_items(orderId: string | Order, params?: QueryParamsList<LineItem>, options?: ResourcesConfig): Promise<ListResponse<LineItem>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `orders/${_orderId}/line_items`, params, options) as unknown as ListResponse<LineItem>\n\t}\n\n\tasync line_item_options(orderId: string | Order, params?: QueryParamsList<LineItemOption>, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<LineItemOption>({ type: 'line_item_options' }, `orders/${_orderId}/line_item_options`, params, options) as unknown as ListResponse<LineItemOption>\n\t}\n\n\tasync stock_reservations(orderId: string | Order, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `orders/${_orderId}/stock_reservations`, params, options) as unknown as ListResponse<StockReservation>\n\t}\n\n\tasync stock_line_items(orderId: string | Order, params?: QueryParamsList<StockLineItem>, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<StockLineItem>({ type: 'stock_line_items' }, `orders/${_orderId}/stock_line_items`, params, options) as unknown as ListResponse<StockLineItem>\n\t}\n\n\tasync stock_transfers(orderId: string | Order, params?: QueryParamsList<StockTransfer>, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<StockTransfer>({ type: 'stock_transfers' }, `orders/${_orderId}/stock_transfers`, params, options) as unknown as ListResponse<StockTransfer>\n\t}\n\n\tasync shipments(orderId: string | Order, params?: QueryParamsList<Shipment>, options?: ResourcesConfig): Promise<ListResponse<Shipment>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `orders/${_orderId}/shipments`, params, options) as unknown as ListResponse<Shipment>\n\t}\n\n\tasync payment_options(orderId: string | Order, params?: QueryParamsList<PaymentOption>, options?: ResourcesConfig): Promise<ListResponse<PaymentOption>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<PaymentOption>({ type: 'payment_options' }, `orders/${_orderId}/payment_options`, params, options) as unknown as ListResponse<PaymentOption>\n\t}\n\n\tasync authorizations(orderId: string | Order, params?: QueryParamsList<Authorization>, options?: ResourcesConfig): Promise<ListResponse<Authorization>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Authorization>({ type: 'authorizations' }, `orders/${_orderId}/authorizations`, params, options) as unknown as ListResponse<Authorization>\n\t}\n\n\tasync captures(orderId: string | Order, params?: QueryParamsList<Capture>, options?: ResourcesConfig): Promise<ListResponse<Capture>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Capture>({ type: 'captures' }, `orders/${_orderId}/captures`, params, options) as unknown as ListResponse<Capture>\n\t}\n\n\tasync voids(orderId: string | Order, params?: QueryParamsList<Void>, options?: ResourcesConfig): Promise<ListResponse<Void>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Void>({ type: 'voids' }, `orders/${_orderId}/voids`, params, options) as unknown as ListResponse<Void>\n\t}\n\n\tasync refunds(orderId: string | Order, params?: QueryParamsList<Refund>, options?: ResourcesConfig): Promise<ListResponse<Refund>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Refund>({ type: 'refunds' }, `orders/${_orderId}/refunds`, params, options) as unknown as ListResponse<Refund>\n\t}\n\n\tasync returns(orderId: string | Order, params?: QueryParamsList<Return>, options?: ResourcesConfig): Promise<ListResponse<Return>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Return>({ type: 'returns' }, `orders/${_orderId}/returns`, params, options) as unknown as ListResponse<Return>\n\t}\n\n\tasync order_subscription(orderId: string | Order, params?: QueryParamsRetrieve<OrderSubscription>, options?: ResourcesConfig): Promise<OrderSubscription> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<OrderSubscription>({ type: 'order_subscriptions' }, `orders/${_orderId}/order_subscription`, params, options) as unknown as OrderSubscription\n\t}\n\n\tasync order_subscriptions(orderId: string | Order, params?: QueryParamsList<OrderSubscription>, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<OrderSubscription>({ type: 'order_subscriptions' }, `orders/${_orderId}/order_subscriptions`, params, options) as unknown as ListResponse<OrderSubscription>\n\t}\n\n\tasync order_factories(orderId: string | Order, params?: QueryParamsList<OrderFactory>, options?: ResourcesConfig): Promise<ListResponse<OrderFactory>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<OrderFactory>({ type: 'order_factories' }, `orders/${_orderId}/order_factories`, params, options) as unknown as ListResponse<OrderFactory>\n\t}\n\n\tasync order_copies(orderId: string | Order, params?: QueryParamsList<OrderCopy>, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<OrderCopy>({ type: 'order_copies' }, `orders/${_orderId}/order_copies`, params, options) as unknown as ListResponse<OrderCopy>\n\t}\n\n\tasync recurring_order_copies(orderId: string | Order, params?: QueryParamsList<RecurringOrderCopy>, options?: ResourcesConfig): Promise<ListResponse<RecurringOrderCopy>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<RecurringOrderCopy>({ type: 'recurring_order_copies' }, `orders/${_orderId}/recurring_order_copies`, params, options) as unknown as ListResponse<RecurringOrderCopy>\n\t}\n\n\tasync attachments(orderId: string | Order, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `orders/${_orderId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync notifications(orderId: string | Order, params?: QueryParamsList<Notification>, options?: ResourcesConfig): Promise<ListResponse<Notification>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Notification>({ type: 'notifications' }, `orders/${_orderId}/notifications`, params, options) as unknown as ListResponse<Notification>\n\t}\n\n\tasync links(orderId: string | Order, params?: QueryParamsList<Link>, options?: ResourcesConfig): Promise<ListResponse<Link>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Link>({ type: 'links' }, `orders/${_orderId}/links`, params, options) as unknown as ListResponse<Link>\n\t}\n\n\tasync resource_errors(orderId: string | Order, params?: QueryParamsList<ResourceError>, options?: ResourcesConfig): Promise<ListResponse<ResourceError>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<ResourceError>({ type: 'resource_errors' }, `orders/${_orderId}/resource_errors`, params, options) as unknown as ListResponse<ResourceError>\n\t}\n\n\tasync events(orderId: string | Order, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `orders/${_orderId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(orderId: string | Order, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `orders/${_orderId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync versions(orderId: string | Order, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `orders/${_orderId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(orderId: string | Order, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _orderId = (orderId as Order).id || orderId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `orders/${_orderId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _archive(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _archive: true }, params, options)\n\t}\n\n\tasync _unarchive(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _unarchive: true }, params, options)\n\t}\n\n\tasync _pending(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _pending: true }, params, options)\n\t}\n\n\tasync _place(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _place: true }, params, options)\n\t}\n\n\tasync _cancel(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _cancel: true }, params, options)\n\t}\n\n\tasync _approve(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _approve: true }, params, options)\n\t}\n\n\tasync _approve_and_capture(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _approve_and_capture: true }, params, options)\n\t}\n\n\tasync _authorize(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _authorize: true }, params, options)\n\t}\n\n\tasync _authorization_amount_cents(id: string | Order, triggerValue: number, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _authorization_amount_cents: triggerValue }, params, options)\n\t}\n\n\tasync _capture(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _capture: true }, params, options)\n\t}\n\n\tasync _refund(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _refund: true }, params, options)\n\t}\n\n\tasync _fulfill(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _fulfill: true }, params, options)\n\t}\n\n\tasync _update_taxes(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _update_taxes: true }, params, options)\n\t}\n\n\tasync _nullify_payment_source(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _nullify_payment_source: true }, params, options)\n\t}\n\n\tasync _fix_payment_source(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _fix_payment_source: true }, params, options)\n\t}\n\n\tasync _billing_address_clone_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _billing_address_clone_id: triggerValue }, params, options)\n\t}\n\n\tasync _shipping_address_clone_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _shipping_address_clone_id: triggerValue }, params, options)\n\t}\n\n\tasync _customer_payment_source_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _customer_payment_source_id: triggerValue }, params, options)\n\t}\n\n\tasync _shipping_address_same_as_billing(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _shipping_address_same_as_billing: true }, params, options)\n\t}\n\n\tasync _billing_address_same_as_shipping(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _billing_address_same_as_shipping: true }, params, options)\n\t}\n\n\tasync _commit_invoice(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _commit_invoice: true }, params, options)\n\t}\n\n\tasync _refund_invoice(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _refund_invoice: true }, params, options)\n\t}\n\n\tasync _save_payment_source_to_customer_wallet(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _save_payment_source_to_customer_wallet: true }, params, options)\n\t}\n\n\tasync _save_shipping_address_to_customer_address_book(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _save_shipping_address_to_customer_address_book: true }, params, options)\n\t}\n\n\tasync _save_billing_address_to_customer_address_book(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _save_billing_address_to_customer_address_book: true }, params, options)\n\t}\n\n\tasync _refresh(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _refresh: true }, params, options)\n\t}\n\n\tasync _refresh_prices(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _refresh_prices: true }, params, options)\n\t}\n\n\tasync _validate(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _validate: true }, params, options)\n\t}\n\n\tasync _create_subscriptions(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _create_subscriptions: true }, params, options)\n\t}\n\n\tasync _start_editing(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _start_editing: true }, params, options)\n\t}\n\n\tasync _stop_editing(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _stop_editing: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\treturn this.resources.update<OrderUpdate, Order>({ id: (typeof id === 'string')? id: id.id, type: Orders.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisOrder(resource: any): resource is Order {\n\t\treturn resource.type && (resource.type === Orders.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): OrderRel {\n\t\treturn super.relationshipOneToOne<OrderRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): OrderRel[] {\n\t\treturn super.relationshipOneToMany<OrderRel>(...ids)\n\t}\n\n\n\ttype(): OrderType {\n\t\treturn Orders.TYPE\n\t}\n\n}\n\n\nconst instance = new Orders()\nexport default instance\n\nexport type { Order, OrderCreate, Orders, OrderType, OrderUpdate }\n"]}
|
|
@@ -25,5 +25,5 @@ var instance = new Applications();
|
|
|
25
25
|
var applications_default = instance;
|
|
26
26
|
|
|
27
27
|
exports.applications_default = applications_default;
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-L655OQHH.cjs.map
|
|
29
|
+
//# sourceMappingURL=chunk-L655OQHH.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/applications.ts"],"names":["ApiSingleton"],"mappings":";;;;;AA+CA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqBA,8BAAA,CAA0B;AAAA,EAEpD,OAAgB,IAAA,GAAwB,cAAA;AAAA,EAKxC,cAAc,QAAA,EAAwC;AACrD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,aAAA,CAAa,IAAA;AAAA,EACzD;AAAA,EAGA,aAAa,EAAA,EAAgD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAiC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAGA,IAAA,GAAwB;AACvB,IAAA,OAAO,aAAA,CAAa,IAAA;AAAA,EACrB;AAAA,EAEA,IAAA,GAAe;AACd,IAAA,OAAO,aAAA;AAAA,EACR;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAA,EAAa;AAClC,IAAO,oBAAA,GAAQ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/resources/applications.ts"],"names":["ApiSingleton"],"mappings":";;;;;AA+CA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqBA,8BAAA,CAA0B;AAAA,EAEpD,OAAgB,IAAA,GAAwB,cAAA;AAAA,EAKxC,cAAc,QAAA,EAAwC;AACrD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,aAAA,CAAa,IAAA;AAAA,EACzD;AAAA,EAGA,aAAa,EAAA,EAAgD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAiC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAGA,IAAA,GAAwB;AACvB,IAAA,OAAO,aAAA,CAAa,IAAA;AAAA,EACrB;AAAA,EAEA,IAAA,GAAe;AACd,IAAA,OAAO,aAAA;AAAA,EACR;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAA,EAAa;AAClC,IAAO,oBAAA,GAAQ","file":"chunk-L655OQHH.cjs","sourcesContent":["import type { Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport { ApiSingleton } from '../resource'\n\n\n\n\ntype ApplicationType = 'applications'\ntype ApplicationRel = ResourceRel & { type: ApplicationType }\n\n\nexport type ApplicationSort = Pick<Application, 'id'> & ResourceSort\n// export type ApplicationFilter = Pick<Application, 'id' | 'name' | 'kind' | 'public_access' | 'scopes'> & ResourceFilter\n\n\ninterface Application extends Resource {\n\t\n\treadonly type: ApplicationType\n\n\t/** \n\t * The application's internal name.\n\t * @example ```\"My app\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The application's kind. One of 'sales_channel', 'integration', or 'webapp'.\n\t * @example ```\"sales-channel\"```\n\t */\n\tkind?: 'dashboard' | 'user' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'generic' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'metrics' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null\n\t/** \n\t * Indicates if the application has public access.\n\t * @example ```true```\n\t */\n\tpublic_access?: boolean | null\n\t/** \n\t * The application's redirect URI.\n\t * @example ```\"https://bluebrand.com/img/logo.svg\"```\n\t */\n\tredirect_uri?: string | null\n\t/** \n\t * The application's scopes.\n\t * @example ```\"market:all market:9 market:122 market:6 stock_location:6 stock_location:33\"```\n\t */\n\tscopes?: string | null\n\t\n}\n\n\nclass Applications extends ApiSingleton<Application> {\n\n\tstatic readonly TYPE: ApplicationType = 'applications' as const\n\n\t\n\n\n\tisApplication(resource: any): resource is Application {\n\t\treturn resource.type && (resource.type === Applications.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ApplicationRel {\n\t\treturn super.relationshipOneToOne<ApplicationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ApplicationRel[] {\n\t\treturn super.relationshipOneToMany<ApplicationRel>(...ids)\n\t}\n\n\n\ttype(): ApplicationType {\n\t\treturn Applications.TYPE\n\t}\n\n\tpath(): string {\n\t\treturn 'application'\n\t}\n\n}\n\n\nconst instance = new Applications()\nexport default instance\n\nexport type { Application, Applications, ApplicationType }\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OPEN_API_SCHEMA_VERSION } from './chunk-
|
|
1
|
+
import { OPEN_API_SCHEMA_VERSION } from './chunk-C7QY2RS6.js';
|
|
2
2
|
import { isTokenExpired } from './chunk-4MV6VICV.js';
|
|
3
3
|
import { isVersionable, isTaggable, isDeletable, isUpdatable, isCreatable, isSingleton, getSingletons, getResources } from './chunk-YI3IDZIR.js';
|
|
4
4
|
import { isApiError, isSdkError } from './chunk-PIHQS6OG.js';
|
|
@@ -44,5 +44,5 @@ var CommerceLayerStatic = {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export { CommerceLayerStatic };
|
|
47
|
-
//# sourceMappingURL=chunk-
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
47
|
+
//# sourceMappingURL=chunk-NAPSK4CV.js.map
|
|
48
|
+
//# sourceMappingURL=chunk-NAPSK4CV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/static.ts"],"names":[],"mappings":";;;;;;AASO,IAAM,mBAAA,GAAsB;AAAA,EAElC,SAAA,EAAW,CAAC,IAAA,KAAsC;AACjD,IAAA,OAAO,aAAa,IAAI,CAAA;AAAA,EACzB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,KAAsC;AAClD,IAAA,OAAO,cAAc,IAAI,CAAA;AAAA,EAC1B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAO,YAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,QAAA,KAAwC;AACpD,IAAA,OAAO,WAAW,QAAQ,CAAA;AAAA,EAC3B,CAAA;AAAA,EAEA,aAAA,EAAe,CAAC,QAAA,KAAwC;AACvD,IAAA,OAAO,cAAc,QAAQ,CAAA;AAAA,EAC9B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAO,WAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAO,WAAW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sC;AAClD,IAAA,OAAO,WAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,cAAA,EAAgB,CAAC,KAAA,KAA2B;AAC3C,IAAA,OAAO,eAAe,KAAK,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,IAAI,aAAA,GAAwB;AAAE,IAAA,OAAO,uBAAA;AAAA,EAAwB;AAE9D","file":"chunk-NAPSK4CV.js","sourcesContent":["\nimport { OPEN_API_SCHEMA_VERSION } from './commercelayer'\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable, isVersionable } from './enum'\nimport { type ApiError, isApiError, isSdkError, type SdkError } from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisVersionable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isVersionable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\n}\n"]}
|
|
@@ -7,7 +7,7 @@ var chunk7RZTCBDR_cjs = require('./chunk-7RZTCBDR.cjs');
|
|
|
7
7
|
|
|
8
8
|
// src/commercelayer.ts
|
|
9
9
|
var debug = chunk7RZTCBDR_cjs.debug_default("commercelayer");
|
|
10
|
-
var OPEN_API_SCHEMA_VERSION = "7.9.
|
|
10
|
+
var OPEN_API_SCHEMA_VERSION = "7.9.16";
|
|
11
11
|
var CommerceLayerClient = class _CommerceLayerClient {
|
|
12
12
|
openApiSchemaVersion = OPEN_API_SCHEMA_VERSION;
|
|
13
13
|
static cl;
|
|
@@ -103,5 +103,5 @@ exports.CommerceLayer = CommerceLayer;
|
|
|
103
103
|
exports.CommerceLayerClient = CommerceLayerClient;
|
|
104
104
|
exports.OPEN_API_SCHEMA_VERSION = OPEN_API_SCHEMA_VERSION;
|
|
105
105
|
exports.commercelayer_default = commercelayer_default;
|
|
106
|
-
//# sourceMappingURL=chunk-
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
106
|
+
//# sourceMappingURL=chunk-NNRS7BTT.cjs.map
|
|
107
|
+
//# sourceMappingURL=chunk-NNRS7BTT.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commercelayer.ts"],"names":["debug_default","ApiResourceAdapter","getResources","isApiError"],"mappings":";;;;;;;;AAUA,IAAM,KAAA,GAAQA,gCAAM,eAAe,CAAA;AAI5B,IAAM,uBAAA,GAA0B;AAcvC,IAAM,mBAAA,GAAN,MAAM,oBAAA,CAAoB;AAAA,EAEhB,oBAAA,GAAuB,uBAAA;AAAA,EAEhC,OAAiB,EAAA;AAAA;AAAA;AAAA;AAAA,EAQjB,OAAO,IAAK,MAAA,EAAuD;AAClE,IAAA,IAAI,QAAQ,OAAQ,oBAAA,CAAoB,EAAA,GAAK,IAAI,qBAAoB,MAAM,CAAA;AAAA,SAAA,IAEvE,CAAC,oBAAA,CAAoB,EAAA,EAAI,MAAM,IAAI,MAAM,sCAAsC,CAAA;AACnF,IAAA,O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AAa,MAAA;AAAA,MACb,OAAA,EAAS,MAAA;AAAA,MACT,EAAA,EAAI;AAAA,KACL;AAEA,IAAA,eAAe,uBAAuB,QAAA,EAA6C;AAClF,MAAA,MAAA,CAAO,WAAA,GAAc,MAAM,QAAA,EAAU,KAAA,GAAQ,IAAA,EAAK,CAAE,MAAM,MAAM;AAAA,MAAC,CAAC,CAAA;AAClE,MAAA,MAAA,CAAO,KAAK,QAAA,CAAS,EAAA;AACrB,MAAA,IAAI,SAAS,OAAA,EAAS;AACrB,QAAA,MAAM,KAAiB,EAAC;AACxB,QAAA,QAAA,CAAS,OAAA,CAAQ,OAAA,CAAQ,CAAC,KAAA,EAAO,GAAA,KAAQ;AAAE,UAAA,EAAA,CAAG,GAAG,CAAA,GAAI,KAAA;AAAA,QAAM,CAAC,CAAA;AAC5D,QAAA,MAAA,CAAO,OAAA,GAAU,EAAA;AAAA,MAClB;AACA,MAAA,OAAO,QAAA;AAAA,IACR;AAEyB,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY,EAAE,SAAA,EAAW,sBAAA,EAAwB,WAAW,sBAAA,EAAuB;AAC9H,IAAA,MAAA,CAAO,EAAA,GAAK,CAAA;AAEZ,IAAA,OAAO,MAAA;AAAA,EAER;AAAA,EAEA,uBAAA,GAAwE;AAKvE,IAAA,IAAA,CAAK,aAAa,SAAA,GAAY,MAAA;AAAA,EAC/B;AAED;AAIA,IAAM,aAAA,GAAgB,CAAC,MAAA,KAAyD;AAC/E,EAAA,OAAO,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC;AAGA,IAAO,qBAAA,GAAQ","file":"chunk-NNRS7BTT.cjs","sourcesContent":["\n\n\nimport Debug from './debug'\n// import * as api from './api'\nimport { getResources } from './enum'\nimport { type ApiError, isApiError } from './error'\nimport type { ErrorInterceptor, HeadersObj, InterceptorManager, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor, ResponseObj } from './interceptor'\nimport { ApiResourceAdapter, type ResourcesInitConfig } from './resource'\n\nconst debug = Debug('commercelayer')\n\n\n// Autogenerated version number, do not remove this line\nexport const OPEN_API_SCHEMA_VERSION = '7.9.16'\n\n\n// SDK local configuration\n// biome-ignore lint/complexity/noBannedTypes: left as placeholder for future SDK config options\ntype SdkConfig = {\n\t// abc?: string\n}\n\ntype CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig\ntype CommerceLayerConfig = Partial<CommerceLayerInitConfig>\n\n\n\nclass CommerceLayerClient {\n\n\treadonly openApiSchemaVersion = OPEN_API_SCHEMA_VERSION\n\n\tprotected static cl: CommerceLayerClient\n\n\t// ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerClient {\n\t\tif (config) return (CommerceLayerClient.cl = new CommerceLayerClient(config))\n\t\telse\n\t\tif (!CommerceLayerClient.cl) throw new Error('CommerceLayer client not initialized')\n\t\treturn CommerceLayerClient.cl\n\t}\n\n\n\tprotected constructor(config: CommerceLayerInitConfig) {\n\n\t\tdebug('new commercelayer instance %O', config)\n\n\t\tApiResourceAdapter.init(config)\n\n\t\t// ##__CL_RESOURCES_INIT_START__##\n\t\t// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n\t\t// ##__CL_RESOURCES_INIT_STOP__##\n\n\t}\n\n\t// ##__CL_RESOURCES_LEAZY_LOADING_START__##\n\t// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)) }\n\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\tget currentOrganization(): string { return ApiResourceAdapter.get().client?.currentOrganization }\n\tget currentAccessToken(): string { return ApiResourceAdapter.get().client?.currentAccessToken }\n\tprivate get interceptors(): InterceptorManager { return ApiResourceAdapter.get().client?.interceptors }\n\n\n\tprivate localConfig(_config: Partial<SdkConfig>): void {\n\t\t// if (config.abc) this.abc = config.abc\n\t}\n\n\n\tconfig(config: CommerceLayerConfig): this {\n\n\t\tdebug('config %o', config)\n\n\t\t// CommerceLayer config\n\t\tthis.localConfig(config)\n\t\t// ResourceAdapter config\n\t\tApiResourceAdapter.config(config)\n\n\t\treturn this\n\n\t}\n\n\t\n\tresources(sort?: boolean): readonly string[] {\n\t\treturn getResources(sort)\n\t}\n\n\tisApiError(error: any): error is ApiError {\n\t\treturn isApiError(error)\n\t}\n\n\n\taddRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.request = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\taddResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number {\n\t\tthis.interceptors.response = { onSuccess, onFailure }\n\t\treturn 1\n\t}\n\n\tremoveInterceptor(type: InterceptorType, _id: number = 1): void {\n\t\tthis.interceptors[type] = undefined\n\t}\n\n\tremoveInterceptors(): void {\n\t\tthis.removeInterceptor('request')\n\t\tthis.removeInterceptor('response')\n\t\tthis.removeRawResponseReader()\n\t}\n\n\taddRawResponseReader(options?: { headers: boolean }): RawResponseReader {\n\n\t\tconst reader: RawResponseReader = {\n\t\t\tid: 0,\n\t\t\trawResponse: undefined,\n\t\t\theaders: undefined,\n\t\t\tok: true\n\t\t}\n\n\t\tasync function rawResponseInterceptor(response: ResponseObj): Promise<ResponseObj> {\n\t\t\treader.rawResponse = await response?.clone().json().catch(() => {})\n\t\t\treader.ok = response.ok\n\t\t\tif (options?.headers) {\n\t\t\t\tconst ho: HeadersObj = {}\n\t\t\t\tresponse.headers.forEach((value, key) => { ho[key] = value })\n\t\t\t\treader.headers = ho\n\t\t\t}\n\t\t\treturn response\n\t\t}\n\t\t\n\t\t/* const interceptor = */this.interceptors.rawReader = { onSuccess: rawResponseInterceptor, onFailure: rawResponseInterceptor }\n\t\treader.id = 1 // interceptor\n\n\t\treturn reader\n\n\t}\n\n\tremoveRawResponseReader(/* reader: number | RawResponseReader */): void {\n\t\t/*\n\t\tconst id = (typeof reader === 'number') ? reader : reader?.id\n\t\tif (id && (id >= 0)) this.removeInterceptor('response', id)\n\t\t*/\n\t\tthis.interceptors.rawReader = undefined\n\t}\n\n}\n\n\n\nconst CommerceLayer = (config: CommerceLayerInitConfig): CommerceLayerClient => {\n\treturn CommerceLayerClient.get(config)\n}\n\n\nexport default CommerceLayer\nexport type { CommerceLayerConfig, CommerceLayerInitConfig }\nexport { CommerceLayer, CommerceLayerClient }\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNNRS7BTT_cjs = require('./chunk-NNRS7BTT.cjs');
|
|
4
4
|
var chunkK277GYCD_cjs = require('./chunk-K277GYCD.cjs');
|
|
5
5
|
var chunkCSRXWHGF_cjs = require('./chunk-CSRXWHGF.cjs');
|
|
6
6
|
var chunkLQ5GKVLT_cjs = require('./chunk-LQ5GKVLT.cjs');
|
|
@@ -41,10 +41,10 @@ var CommerceLayerStatic = {
|
|
|
41
41
|
return chunkK277GYCD_cjs.isTokenExpired(token);
|
|
42
42
|
},
|
|
43
43
|
get schemaVersion() {
|
|
44
|
-
return
|
|
44
|
+
return chunkNNRS7BTT_cjs.OPEN_API_SCHEMA_VERSION;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
exports.CommerceLayerStatic = CommerceLayerStatic;
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-OIKRKTUG.cjs.map
|
|
50
|
+
//# sourceMappingURL=chunk-OIKRKTUG.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/static.ts"],"names":["getResources","getSingletons","isSingleton","isCreatable","isUpdatable","isDeletable","isTaggable","isVersionable","isSdkError","isApiError","isTokenExpired","OPEN_API_SCHEMA_VERSION"],"mappings":";;;;;;;;AASO,IAAM,mBAAA,GAAsB;AAAA,EAElC,SAAA,EAAW,CAAC,IAAA,KAAsC;AACjD,IAAA,OAAOA,+BAAa,IAAI,CAAA;AAAA,EACzB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,KAAsC;AAClD,IAAA,OAAOC,gCAAc,IAAI,CAAA;AAAA,EAC1B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,QAAA,KAAwC;AACpD,IAAA,OAAOC,6BAAW,QAAQ,CAAA;AAAA,EAC3B,CAAA;AAAA,EAEA,aAAA,EAAe,CAAC,QAAA,KAAwC;AACvD,IAAA,OAAOC,gCAAc,QAAQ,CAAA;AAAA,EAC9B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,cAAA,EAAgB,CAAC,KAAA,KAA2B;AAC3C,IAAA,OAAOC,iCAAe,KAAK,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,IAAI,aAAA,GAAwB;AAAE,IAAA,OAAOC,yCAAA;AAAA,EAAwB;AAE9D","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/static.ts"],"names":["getResources","getSingletons","isSingleton","isCreatable","isUpdatable","isDeletable","isTaggable","isVersionable","isSdkError","isApiError","isTokenExpired","OPEN_API_SCHEMA_VERSION"],"mappings":";;;;;;;;AASO,IAAM,mBAAA,GAAsB;AAAA,EAElC,SAAA,EAAW,CAAC,IAAA,KAAsC;AACjD,IAAA,OAAOA,+BAAa,IAAI,CAAA;AAAA,EACzB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,KAAsC;AAClD,IAAA,OAAOC,gCAAc,IAAI,CAAA;AAAA,EAC1B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,QAAA,KAAwC;AACpD,IAAA,OAAOC,6BAAW,QAAQ,CAAA;AAAA,EAC3B,CAAA;AAAA,EAEA,aAAA,EAAe,CAAC,QAAA,KAAwC;AACvD,IAAA,OAAOC,gCAAc,QAAQ,CAAA;AAAA,EAC9B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,cAAA,EAAgB,CAAC,KAAA,KAA2B;AAC3C,IAAA,OAAOC,iCAAe,KAAK,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,IAAI,aAAA,GAAwB;AAAE,IAAA,OAAOC,yCAAA;AAAA,EAAwB;AAE9D","file":"chunk-OIKRKTUG.cjs","sourcesContent":["\nimport { OPEN_API_SCHEMA_VERSION } from './commercelayer'\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable, isVersionable } from './enum'\nimport { type ApiError, isApiError, isSdkError, type SdkError } from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisVersionable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isVersionable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\n}\n"]}
|
|
@@ -244,6 +244,9 @@ var Orders = class _Orders extends chunkUBH2EC5P_cjs.ApiResource {
|
|
|
244
244
|
async _refresh(id, params, options) {
|
|
245
245
|
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Orders.TYPE, _refresh: true }, params, options);
|
|
246
246
|
}
|
|
247
|
+
async _refresh_prices(id, params, options) {
|
|
248
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Orders.TYPE, _refresh_prices: true }, params, options);
|
|
249
|
+
}
|
|
247
250
|
async _validate(id, params, options) {
|
|
248
251
|
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Orders.TYPE, _validate: true }, params, options);
|
|
249
252
|
}
|
|
@@ -282,5 +285,5 @@ var instance = new Orders();
|
|
|
282
285
|
var orders_default = instance;
|
|
283
286
|
|
|
284
287
|
exports.orders_default = orders_default;
|
|
285
|
-
//# sourceMappingURL=chunk-
|
|
286
|
-
//# sourceMappingURL=chunk-
|
|
288
|
+
//# sourceMappingURL=chunk-ZJKC6474.cjs.map
|
|
289
|
+
//# sourceMappingURL=chunk-ZJKC6474.cjs.map
|