@commercelayer/sdk 7.0.0-beta.1 → 7.0.0-beta.10
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-BYcswOJ0.d.cts +16784 -0
- package/lib/api-Cknm0QL_.d.ts +16784 -0
- package/lib/api.cjs +936 -0
- package/lib/api.d.cts +4 -0
- package/lib/api.d.ts +4 -0
- package/lib/api.js +275 -0
- package/lib/client.cjs +170 -0
- package/lib/client.d.cts +36 -0
- package/lib/client.d.ts +36 -0
- package/lib/client.js +161 -0
- package/lib/commercelayer.cjs +798 -0
- package/lib/commercelayer.d.cts +167 -0
- package/lib/commercelayer.d.ts +167 -0
- package/lib/commercelayer.js +768 -0
- package/lib/common.cjs +17 -0
- package/lib/common.d.cts +13 -0
- package/lib/common.d.ts +13 -0
- package/lib/common.js +13 -0
- package/lib/config.cjs +21 -0
- package/lib/config.d.cts +19 -0
- package/lib/config.d.ts +19 -0
- package/lib/config.js +17 -0
- package/lib/debug.cjs +19 -0
- package/lib/debug.d.cts +4 -0
- package/lib/debug.d.ts +4 -0
- package/lib/debug.js +15 -0
- package/lib/error.cjs +97 -0
- package/lib/error.d.cts +35 -0
- package/lib/error.d.ts +35 -0
- package/lib/error.js +91 -0
- package/lib/fetch.cjs +83 -0
- package/lib/fetch.d.cts +1 -0
- package/lib/fetch.d.ts +1 -0
- package/lib/fetch.js +76 -0
- package/lib/index.cjs +32 -2
- package/lib/index.d.cts +8 -16916
- package/lib/index.d.ts +8 -16916
- package/lib/index.js +3 -2
- package/lib/instance.cjs +272 -0
- package/lib/instance.d.cts +141 -0
- package/lib/instance.d.ts +141 -0
- package/lib/instance.js +139 -0
- package/lib/interceptor-5MISI1yn.d.cts +54 -0
- package/lib/interceptor-5MISI1yn.d.ts +54 -0
- package/lib/interceptor.cjs +2 -0
- package/lib/interceptor.d.cts +1 -0
- package/lib/interceptor.d.ts +1 -0
- package/lib/interceptor.js +1 -0
- package/lib/jsonapi.cjs +79 -0
- package/lib/jsonapi.d.cts +11 -0
- package/lib/jsonapi.d.ts +11 -0
- package/lib/jsonapi.js +71 -0
- package/lib/model.cjs +2 -0
- package/lib/model.d.cts +4 -0
- package/lib/model.d.ts +4 -0
- package/lib/model.js +1 -0
- package/lib/query.cjs +64 -0
- package/lib/query.d.cts +4 -0
- package/lib/query.d.ts +4 -0
- package/lib/query.js +56 -0
- package/lib/resource.cjs +222 -0
- package/lib/resource.d.cts +4 -0
- package/lib/resource.d.ts +4 -0
- package/lib/resource.js +209 -0
- package/lib/resources/addresses.cjs +53 -0
- package/lib/resources/addresses.d.cts +4 -0
- package/lib/resources/addresses.d.ts +4 -0
- package/lib/resources/addresses.js +49 -0
- package/lib/resources/adjustments.cjs +41 -0
- package/lib/resources/adjustments.d.cts +4 -0
- package/lib/resources/adjustments.d.ts +4 -0
- package/lib/resources/adjustments.js +37 -0
- package/lib/resources/adyen_gateways.cjs +49 -0
- package/lib/resources/adyen_gateways.d.cts +4 -0
- package/lib/resources/adyen_gateways.d.ts +4 -0
- package/lib/resources/adyen_gateways.js +45 -0
- package/lib/resources/adyen_payments.cjs +55 -0
- package/lib/resources/adyen_payments.d.cts +4 -0
- package/lib/resources/adyen_payments.d.ts +4 -0
- package/lib/resources/adyen_payments.js +51 -0
- package/lib/resources/applications.cjs +31 -0
- package/lib/resources/applications.d.cts +4 -0
- package/lib/resources/applications.d.ts +4 -0
- package/lib/resources/applications.js +27 -0
- package/lib/resources/attachments.cjs +37 -0
- package/lib/resources/attachments.d.cts +4 -0
- package/lib/resources/attachments.d.ts +4 -0
- package/lib/resources/attachments.js +33 -0
- package/lib/resources/authorizations.cjs +70 -0
- package/lib/resources/authorizations.d.cts +4 -0
- package/lib/resources/authorizations.d.ts +4 -0
- package/lib/resources/authorizations.js +66 -0
- package/lib/resources/avalara_accounts.cjs +57 -0
- package/lib/resources/avalara_accounts.d.cts +4 -0
- package/lib/resources/avalara_accounts.d.ts +4 -0
- package/lib/resources/avalara_accounts.js +53 -0
- package/lib/resources/axerve_gateways.cjs +49 -0
- package/lib/resources/axerve_gateways.d.cts +4 -0
- package/lib/resources/axerve_gateways.d.ts +4 -0
- package/lib/resources/axerve_gateways.js +45 -0
- package/lib/resources/axerve_payments.cjs +52 -0
- package/lib/resources/axerve_payments.d.cts +4 -0
- package/lib/resources/axerve_payments.d.ts +4 -0
- package/lib/resources/axerve_payments.js +48 -0
- package/lib/resources/bing_geocoders.cjs +49 -0
- package/lib/resources/bing_geocoders.d.cts +4 -0
- package/lib/resources/bing_geocoders.d.ts +4 -0
- package/lib/resources/bing_geocoders.js +45 -0
- package/lib/resources/braintree_gateways.cjs +49 -0
- package/lib/resources/braintree_gateways.d.cts +4 -0
- package/lib/resources/braintree_gateways.d.ts +4 -0
- package/lib/resources/braintree_gateways.js +45 -0
- package/lib/resources/braintree_payments.cjs +49 -0
- package/lib/resources/braintree_payments.d.cts +4 -0
- package/lib/resources/braintree_payments.d.ts +4 -0
- package/lib/resources/braintree_payments.js +45 -0
- package/lib/resources/bundles.cjs +71 -0
- package/lib/resources/bundles.d.cts +4 -0
- package/lib/resources/bundles.d.ts +4 -0
- package/lib/resources/bundles.js +67 -0
- package/lib/resources/buy_x_pay_y_promotions.cjs +91 -0
- package/lib/resources/buy_x_pay_y_promotions.d.cts +4 -0
- package/lib/resources/buy_x_pay_y_promotions.d.ts +4 -0
- package/lib/resources/buy_x_pay_y_promotions.js +87 -0
- package/lib/resources/captures.cjs +71 -0
- package/lib/resources/captures.d.cts +4 -0
- package/lib/resources/captures.d.ts +4 -0
- package/lib/resources/captures.js +67 -0
- package/lib/resources/carrier_accounts.cjs +49 -0
- package/lib/resources/carrier_accounts.d.cts +4 -0
- package/lib/resources/carrier_accounts.d.ts +4 -0
- package/lib/resources/carrier_accounts.js +45 -0
- package/lib/resources/checkout_com_gateways.cjs +49 -0
- package/lib/resources/checkout_com_gateways.d.cts +4 -0
- package/lib/resources/checkout_com_gateways.d.ts +4 -0
- package/lib/resources/checkout_com_gateways.js +45 -0
- package/lib/resources/checkout_com_payments.cjs +55 -0
- package/lib/resources/checkout_com_payments.d.cts +4 -0
- package/lib/resources/checkout_com_payments.d.ts +4 -0
- package/lib/resources/checkout_com_payments.js +51 -0
- package/lib/resources/cleanups.cjs +48 -0
- package/lib/resources/cleanups.d.cts +4 -0
- package/lib/resources/cleanups.d.ts +4 -0
- package/lib/resources/cleanups.js +44 -0
- package/lib/resources/coupon_codes_promotion_rules.cjs +45 -0
- package/lib/resources/coupon_codes_promotion_rules.d.cts +4 -0
- package/lib/resources/coupon_codes_promotion_rules.d.ts +4 -0
- package/lib/resources/coupon_codes_promotion_rules.js +41 -0
- package/lib/resources/coupon_recipients.cjs +49 -0
- package/lib/resources/coupon_recipients.d.cts +4 -0
- package/lib/resources/coupon_recipients.d.ts +4 -0
- package/lib/resources/coupon_recipients.js +45 -0
- package/lib/resources/coupons.cjs +57 -0
- package/lib/resources/coupons.d.cts +4 -0
- package/lib/resources/coupons.d.ts +4 -0
- package/lib/resources/coupons.js +53 -0
- package/lib/resources/custom_promotion_rules.cjs +41 -0
- package/lib/resources/custom_promotion_rules.d.cts +4 -0
- package/lib/resources/custom_promotion_rules.d.ts +4 -0
- package/lib/resources/custom_promotion_rules.js +37 -0
- package/lib/resources/customer_addresses.cjs +53 -0
- package/lib/resources/customer_addresses.d.cts +4 -0
- package/lib/resources/customer_addresses.d.ts +4 -0
- package/lib/resources/customer_addresses.js +49 -0
- package/lib/resources/customer_groups.cjs +53 -0
- package/lib/resources/customer_groups.d.cts +4 -0
- package/lib/resources/customer_groups.d.ts +4 -0
- package/lib/resources/customer_groups.js +49 -0
- package/lib/resources/customer_password_resets.cjs +48 -0
- package/lib/resources/customer_password_resets.d.cts +4 -0
- package/lib/resources/customer_password_resets.d.ts +4 -0
- package/lib/resources/customer_password_resets.js +44 -0
- package/lib/resources/customer_payment_sources.cjs +49 -0
- package/lib/resources/customer_payment_sources.d.cts +4 -0
- package/lib/resources/customer_payment_sources.d.ts +4 -0
- package/lib/resources/customer_payment_sources.js +45 -0
- package/lib/resources/customer_subscriptions.cjs +49 -0
- package/lib/resources/customer_subscriptions.d.cts +4 -0
- package/lib/resources/customer_subscriptions.d.ts +4 -0
- package/lib/resources/customer_subscriptions.js +45 -0
- package/lib/resources/customers.cjs +81 -0
- package/lib/resources/customers.d.cts +4 -0
- package/lib/resources/customers.d.ts +4 -0
- package/lib/resources/customers.js +77 -0
- package/lib/resources/delivery_lead_times.cjs +53 -0
- package/lib/resources/delivery_lead_times.d.cts +4 -0
- package/lib/resources/delivery_lead_times.d.ts +4 -0
- package/lib/resources/delivery_lead_times.js +49 -0
- package/lib/resources/discount_engine_items.cjs +36 -0
- package/lib/resources/discount_engine_items.d.cts +4 -0
- package/lib/resources/discount_engine_items.d.ts +4 -0
- package/lib/resources/discount_engine_items.js +32 -0
- package/lib/resources/discount_engines.cjs +44 -0
- package/lib/resources/discount_engines.d.cts +4 -0
- package/lib/resources/discount_engines.d.ts +4 -0
- package/lib/resources/discount_engines.js +40 -0
- package/lib/resources/easypost_pickups.cjs +52 -0
- package/lib/resources/easypost_pickups.d.cts +4 -0
- package/lib/resources/easypost_pickups.d.ts +4 -0
- package/lib/resources/easypost_pickups.js +48 -0
- package/lib/resources/event_callbacks.cjs +32 -0
- package/lib/resources/event_callbacks.d.cts +4 -0
- package/lib/resources/event_callbacks.d.ts +4 -0
- package/lib/resources/event_callbacks.js +28 -0
- package/lib/resources/events.cjs +42 -0
- package/lib/resources/events.d.cts +4 -0
- package/lib/resources/events.d.ts +4 -0
- package/lib/resources/events.js +38 -0
- package/lib/resources/exports.cjs +48 -0
- package/lib/resources/exports.d.cts +4 -0
- package/lib/resources/exports.d.ts +4 -0
- package/lib/resources/exports.js +44 -0
- package/lib/resources/external_gateways.cjs +52 -0
- package/lib/resources/external_gateways.d.cts +4 -0
- package/lib/resources/external_gateways.d.ts +4 -0
- package/lib/resources/external_gateways.js +48 -0
- package/lib/resources/external_payments.cjs +53 -0
- package/lib/resources/external_payments.d.cts +4 -0
- package/lib/resources/external_payments.d.ts +4 -0
- package/lib/resources/external_payments.js +49 -0
- package/lib/resources/external_promotions.cjs +94 -0
- package/lib/resources/external_promotions.d.cts +4 -0
- package/lib/resources/external_promotions.d.ts +4 -0
- package/lib/resources/external_promotions.js +90 -0
- package/lib/resources/external_tax_calculators.cjs +56 -0
- package/lib/resources/external_tax_calculators.d.cts +4 -0
- package/lib/resources/external_tax_calculators.d.ts +4 -0
- package/lib/resources/external_tax_calculators.js +52 -0
- package/lib/resources/fixed_amount_promotions.cjs +91 -0
- package/lib/resources/fixed_amount_promotions.d.cts +4 -0
- package/lib/resources/fixed_amount_promotions.d.ts +4 -0
- package/lib/resources/fixed_amount_promotions.js +87 -0
- package/lib/resources/fixed_price_promotions.cjs +91 -0
- package/lib/resources/fixed_price_promotions.d.cts +4 -0
- package/lib/resources/fixed_price_promotions.d.ts +4 -0
- package/lib/resources/fixed_price_promotions.js +87 -0
- package/lib/resources/flex_promotions.cjs +67 -0
- package/lib/resources/flex_promotions.d.cts +4 -0
- package/lib/resources/flex_promotions.d.ts +4 -0
- package/lib/resources/flex_promotions.js +63 -0
- package/lib/resources/free_gift_promotions.cjs +91 -0
- package/lib/resources/free_gift_promotions.d.cts +4 -0
- package/lib/resources/free_gift_promotions.d.ts +4 -0
- package/lib/resources/free_gift_promotions.js +87 -0
- package/lib/resources/free_shipping_promotions.cjs +87 -0
- package/lib/resources/free_shipping_promotions.d.cts +4 -0
- package/lib/resources/free_shipping_promotions.d.ts +4 -0
- package/lib/resources/free_shipping_promotions.js +83 -0
- package/lib/resources/geocoders.cjs +40 -0
- package/lib/resources/geocoders.d.cts +4 -0
- package/lib/resources/geocoders.d.ts +4 -0
- package/lib/resources/geocoders.js +36 -0
- package/lib/resources/gift_card_recipients.cjs +49 -0
- package/lib/resources/gift_card_recipients.d.cts +4 -0
- package/lib/resources/gift_card_recipients.d.ts +4 -0
- package/lib/resources/gift_card_recipients.js +45 -0
- package/lib/resources/gift_cards.cjs +73 -0
- package/lib/resources/gift_cards.d.cts +4 -0
- package/lib/resources/gift_cards.d.ts +4 -0
- package/lib/resources/gift_cards.js +69 -0
- package/lib/resources/google_geocoders.cjs +49 -0
- package/lib/resources/google_geocoders.d.cts +4 -0
- package/lib/resources/google_geocoders.d.ts +4 -0
- package/lib/resources/google_geocoders.js +45 -0
- package/lib/resources/imports.cjs +44 -0
- package/lib/resources/imports.d.cts +4 -0
- package/lib/resources/imports.d.ts +4 -0
- package/lib/resources/imports.js +40 -0
- package/lib/resources/in_stock_subscriptions.cjs +63 -0
- package/lib/resources/in_stock_subscriptions.d.cts +4 -0
- package/lib/resources/in_stock_subscriptions.d.ts +4 -0
- package/lib/resources/in_stock_subscriptions.js +59 -0
- package/lib/resources/inventory_models.cjs +53 -0
- package/lib/resources/inventory_models.d.cts +4 -0
- package/lib/resources/inventory_models.d.ts +4 -0
- package/lib/resources/inventory_models.js +49 -0
- package/lib/resources/inventory_return_locations.cjs +49 -0
- package/lib/resources/inventory_return_locations.d.cts +4 -0
- package/lib/resources/inventory_return_locations.d.ts +4 -0
- package/lib/resources/inventory_return_locations.js +45 -0
- package/lib/resources/inventory_stock_locations.cjs +49 -0
- package/lib/resources/inventory_stock_locations.d.cts +4 -0
- package/lib/resources/inventory_stock_locations.d.ts +4 -0
- package/lib/resources/inventory_stock_locations.js +45 -0
- package/lib/resources/klarna_gateways.cjs +49 -0
- package/lib/resources/klarna_gateways.d.cts +4 -0
- package/lib/resources/klarna_gateways.d.ts +4 -0
- package/lib/resources/klarna_gateways.js +45 -0
- package/lib/resources/klarna_payments.cjs +52 -0
- package/lib/resources/klarna_payments.d.cts +4 -0
- package/lib/resources/klarna_payments.d.ts +4 -0
- package/lib/resources/klarna_payments.js +48 -0
- package/lib/resources/line_item_options.cjs +53 -0
- package/lib/resources/line_item_options.d.cts +4 -0
- package/lib/resources/line_item_options.d.ts +4 -0
- package/lib/resources/line_item_options.js +49 -0
- package/lib/resources/line_items.cjs +82 -0
- package/lib/resources/line_items.d.cts +4 -0
- package/lib/resources/line_items.d.ts +4 -0
- package/lib/resources/line_items.js +78 -0
- package/lib/resources/links.cjs +47 -0
- package/lib/resources/links.d.cts +4 -0
- package/lib/resources/links.d.ts +4 -0
- package/lib/resources/links.js +43 -0
- package/lib/resources/manual_gateways.cjs +45 -0
- package/lib/resources/manual_gateways.d.cts +4 -0
- package/lib/resources/manual_gateways.d.ts +4 -0
- package/lib/resources/manual_gateways.js +41 -0
- package/lib/resources/manual_tax_calculators.cjs +57 -0
- package/lib/resources/manual_tax_calculators.d.cts +4 -0
- package/lib/resources/manual_tax_calculators.d.ts +4 -0
- package/lib/resources/manual_tax_calculators.js +53 -0
- package/lib/resources/markets.cjs +91 -0
- package/lib/resources/markets.d.cts +4 -0
- package/lib/resources/markets.d.ts +4 -0
- package/lib/resources/markets.js +87 -0
- package/lib/resources/merchants.cjs +49 -0
- package/lib/resources/merchants.d.cts +4 -0
- package/lib/resources/merchants.d.ts +4 -0
- package/lib/resources/merchants.js +45 -0
- package/lib/resources/notifications.cjs +37 -0
- package/lib/resources/notifications.d.cts +4 -0
- package/lib/resources/notifications.d.ts +4 -0
- package/lib/resources/notifications.js +33 -0
- package/lib/resources/order_amount_promotion_rules.cjs +41 -0
- package/lib/resources/order_amount_promotion_rules.d.cts +4 -0
- package/lib/resources/order_amount_promotion_rules.d.ts +4 -0
- package/lib/resources/order_amount_promotion_rules.js +37 -0
- package/lib/resources/order_copies.cjs +53 -0
- package/lib/resources/order_copies.d.cts +4 -0
- package/lib/resources/order_copies.d.ts +4 -0
- package/lib/resources/order_copies.js +49 -0
- package/lib/resources/order_factories.cjs +40 -0
- package/lib/resources/order_factories.d.cts +4 -0
- package/lib/resources/order_factories.d.ts +4 -0
- package/lib/resources/order_factories.js +36 -0
- package/lib/resources/order_subscription_items.cjs +45 -0
- package/lib/resources/order_subscription_items.d.cts +4 -0
- package/lib/resources/order_subscription_items.d.ts +4 -0
- package/lib/resources/order_subscription_items.js +41 -0
- package/lib/resources/order_subscriptions.cjs +97 -0
- package/lib/resources/order_subscriptions.d.cts +4 -0
- package/lib/resources/order_subscriptions.d.ts +4 -0
- package/lib/resources/order_subscriptions.js +93 -0
- package/lib/resources/orders.cjs +266 -0
- package/lib/resources/orders.d.cts +4 -0
- package/lib/resources/orders.d.ts +4 -0
- package/lib/resources/orders.js +262 -0
- package/lib/resources/organizations.cjs +31 -0
- package/lib/resources/organizations.d.cts +4 -0
- package/lib/resources/organizations.d.ts +4 -0
- package/lib/resources/organizations.js +27 -0
- package/lib/resources/packages.cjs +53 -0
- package/lib/resources/packages.d.cts +4 -0
- package/lib/resources/packages.d.ts +4 -0
- package/lib/resources/packages.js +49 -0
- package/lib/resources/parcel_line_items.cjs +49 -0
- package/lib/resources/parcel_line_items.d.cts +4 -0
- package/lib/resources/parcel_line_items.d.ts +4 -0
- package/lib/resources/parcel_line_items.js +45 -0
- package/lib/resources/parcels.cjs +61 -0
- package/lib/resources/parcels.d.cts +4 -0
- package/lib/resources/parcels.d.ts +4 -0
- package/lib/resources/parcels.js +57 -0
- package/lib/resources/payment_gateways.cjs +36 -0
- package/lib/resources/payment_gateways.d.cts +4 -0
- package/lib/resources/payment_gateways.d.ts +4 -0
- package/lib/resources/payment_gateways.js +32 -0
- package/lib/resources/payment_methods.cjs +67 -0
- package/lib/resources/payment_methods.d.cts +4 -0
- package/lib/resources/payment_methods.d.ts +4 -0
- package/lib/resources/payment_methods.js +63 -0
- package/lib/resources/payment_options.cjs +45 -0
- package/lib/resources/payment_options.d.cts +4 -0
- package/lib/resources/payment_options.d.ts +4 -0
- package/lib/resources/payment_options.js +41 -0
- package/lib/resources/paypal_gateways.cjs +49 -0
- package/lib/resources/paypal_gateways.d.cts +4 -0
- package/lib/resources/paypal_gateways.d.ts +4 -0
- package/lib/resources/paypal_gateways.js +45 -0
- package/lib/resources/paypal_payments.cjs +49 -0
- package/lib/resources/paypal_payments.d.cts +4 -0
- package/lib/resources/paypal_payments.d.ts +4 -0
- package/lib/resources/paypal_payments.js +45 -0
- package/lib/resources/percentage_discount_promotions.cjs +91 -0
- package/lib/resources/percentage_discount_promotions.d.cts +4 -0
- package/lib/resources/percentage_discount_promotions.d.ts +4 -0
- package/lib/resources/percentage_discount_promotions.js +87 -0
- package/lib/resources/pickups.cjs +40 -0
- package/lib/resources/pickups.d.cts +4 -0
- package/lib/resources/pickups.d.ts +4 -0
- package/lib/resources/pickups.js +36 -0
- package/lib/resources/price_frequency_tiers.cjs +53 -0
- package/lib/resources/price_frequency_tiers.d.cts +4 -0
- package/lib/resources/price_frequency_tiers.d.ts +4 -0
- package/lib/resources/price_frequency_tiers.js +49 -0
- package/lib/resources/price_list_schedulers.cjs +59 -0
- package/lib/resources/price_list_schedulers.d.cts +4 -0
- package/lib/resources/price_list_schedulers.d.ts +4 -0
- package/lib/resources/price_list_schedulers.js +55 -0
- package/lib/resources/price_lists.cjs +53 -0
- package/lib/resources/price_lists.d.cts +4 -0
- package/lib/resources/price_lists.d.ts +4 -0
- package/lib/resources/price_lists.js +49 -0
- package/lib/resources/price_tiers.cjs +40 -0
- package/lib/resources/price_tiers.d.cts +4 -0
- package/lib/resources/price_tiers.d.ts +4 -0
- package/lib/resources/price_tiers.js +36 -0
- package/lib/resources/price_volume_tiers.cjs +53 -0
- package/lib/resources/price_volume_tiers.d.cts +4 -0
- package/lib/resources/price_volume_tiers.d.ts +4 -0
- package/lib/resources/price_volume_tiers.js +49 -0
- package/lib/resources/prices.cjs +77 -0
- package/lib/resources/prices.d.cts +4 -0
- package/lib/resources/prices.d.ts +4 -0
- package/lib/resources/prices.js +73 -0
- package/lib/resources/promotion_rules.cjs +32 -0
- package/lib/resources/promotion_rules.d.cts +4 -0
- package/lib/resources/promotion_rules.d.ts +4 -0
- package/lib/resources/promotion_rules.js +28 -0
- package/lib/resources/promotions.cjs +72 -0
- package/lib/resources/promotions.d.cts +4 -0
- package/lib/resources/promotions.d.ts +4 -0
- package/lib/resources/promotions.js +68 -0
- package/lib/resources/recurring_order_copies.cjs +53 -0
- package/lib/resources/recurring_order_copies.d.cts +4 -0
- package/lib/resources/recurring_order_copies.d.ts +4 -0
- package/lib/resources/recurring_order_copies.js +49 -0
- package/lib/resources/refunds.cjs +58 -0
- package/lib/resources/refunds.d.cts +4 -0
- package/lib/resources/refunds.d.ts +4 -0
- package/lib/resources/refunds.js +54 -0
- package/lib/resources/reserved_stocks.cjs +44 -0
- package/lib/resources/reserved_stocks.d.cts +4 -0
- package/lib/resources/reserved_stocks.d.ts +4 -0
- package/lib/resources/reserved_stocks.js +40 -0
- package/lib/resources/resource_errors.cjs +28 -0
- package/lib/resources/resource_errors.d.cts +4 -0
- package/lib/resources/resource_errors.d.ts +4 -0
- package/lib/resources/resource_errors.js +24 -0
- package/lib/resources/return_line_items.cjs +48 -0
- package/lib/resources/return_line_items.d.cts +4 -0
- package/lib/resources/return_line_items.d.ts +4 -0
- package/lib/resources/return_line_items.js +44 -0
- package/lib/resources/returns.cjs +122 -0
- package/lib/resources/returns.d.cts +4 -0
- package/lib/resources/returns.d.ts +4 -0
- package/lib/resources/returns.js +118 -0
- package/lib/resources/satispay_gateways.cjs +49 -0
- package/lib/resources/satispay_gateways.d.cts +4 -0
- package/lib/resources/satispay_gateways.d.ts +4 -0
- package/lib/resources/satispay_gateways.js +45 -0
- package/lib/resources/satispay_payments.cjs +52 -0
- package/lib/resources/satispay_payments.d.cts +4 -0
- package/lib/resources/satispay_payments.d.ts +4 -0
- package/lib/resources/satispay_payments.js +48 -0
- package/lib/resources/shipments.cjs +152 -0
- package/lib/resources/shipments.d.cts +4 -0
- package/lib/resources/shipments.d.ts +4 -0
- package/lib/resources/shipments.js +148 -0
- package/lib/resources/shipping_categories.cjs +49 -0
- package/lib/resources/shipping_categories.d.cts +4 -0
- package/lib/resources/shipping_categories.d.ts +4 -0
- package/lib/resources/shipping_categories.js +45 -0
- package/lib/resources/shipping_method_tiers.cjs +40 -0
- package/lib/resources/shipping_method_tiers.d.cts +4 -0
- package/lib/resources/shipping_method_tiers.d.ts +4 -0
- package/lib/resources/shipping_method_tiers.js +36 -0
- package/lib/resources/shipping_methods.cjs +86 -0
- package/lib/resources/shipping_methods.d.cts +4 -0
- package/lib/resources/shipping_methods.d.ts +4 -0
- package/lib/resources/shipping_methods.js +82 -0
- package/lib/resources/shipping_weight_tiers.cjs +49 -0
- package/lib/resources/shipping_weight_tiers.d.cts +4 -0
- package/lib/resources/shipping_weight_tiers.d.ts +4 -0
- package/lib/resources/shipping_weight_tiers.js +45 -0
- package/lib/resources/shipping_zones.cjs +45 -0
- package/lib/resources/shipping_zones.d.cts +4 -0
- package/lib/resources/shipping_zones.d.ts +4 -0
- package/lib/resources/shipping_zones.js +41 -0
- package/lib/resources/sku_list_items.cjs +49 -0
- package/lib/resources/sku_list_items.d.cts +4 -0
- package/lib/resources/sku_list_items.d.ts +4 -0
- package/lib/resources/sku_list_items.js +45 -0
- package/lib/resources/sku_list_promotion_rules.cjs +49 -0
- package/lib/resources/sku_list_promotion_rules.d.cts +4 -0
- package/lib/resources/sku_list_promotion_rules.d.ts +4 -0
- package/lib/resources/sku_list_promotion_rules.js +45 -0
- package/lib/resources/sku_lists.cjs +65 -0
- package/lib/resources/sku_lists.d.cts +4 -0
- package/lib/resources/sku_lists.d.ts +4 -0
- package/lib/resources/sku_lists.js +61 -0
- package/lib/resources/sku_options.cjs +57 -0
- package/lib/resources/sku_options.d.cts +4 -0
- package/lib/resources/sku_options.d.ts +4 -0
- package/lib/resources/sku_options.js +53 -0
- package/lib/resources/skus.cjs +101 -0
- package/lib/resources/skus.d.cts +4 -0
- package/lib/resources/skus.d.ts +4 -0
- package/lib/resources/skus.js +97 -0
- package/lib/resources/stock_items.cjs +64 -0
- package/lib/resources/stock_items.d.cts +4 -0
- package/lib/resources/stock_items.d.ts +4 -0
- package/lib/resources/stock_items.js +60 -0
- package/lib/resources/stock_line_items.cjs +70 -0
- package/lib/resources/stock_line_items.d.cts +4 -0
- package/lib/resources/stock_line_items.d.ts +4 -0
- package/lib/resources/stock_line_items.js +66 -0
- package/lib/resources/stock_locations.cjs +69 -0
- package/lib/resources/stock_locations.d.cts +4 -0
- package/lib/resources/stock_locations.d.ts +4 -0
- package/lib/resources/stock_locations.js +65 -0
- package/lib/resources/stock_reservations.cjs +68 -0
- package/lib/resources/stock_reservations.d.cts +4 -0
- package/lib/resources/stock_reservations.d.ts +4 -0
- package/lib/resources/stock_reservations.js +64 -0
- package/lib/resources/stock_transfers.cjs +91 -0
- package/lib/resources/stock_transfers.d.cts +4 -0
- package/lib/resources/stock_transfers.d.ts +4 -0
- package/lib/resources/stock_transfers.js +87 -0
- package/lib/resources/stores.cjs +65 -0
- package/lib/resources/stores.d.cts +4 -0
- package/lib/resources/stores.d.ts +4 -0
- package/lib/resources/stores.js +61 -0
- package/lib/resources/stripe_gateways.cjs +49 -0
- package/lib/resources/stripe_gateways.d.cts +4 -0
- package/lib/resources/stripe_gateways.d.ts +4 -0
- package/lib/resources/stripe_gateways.js +45 -0
- package/lib/resources/stripe_payments.cjs +55 -0
- package/lib/resources/stripe_payments.d.cts +4 -0
- package/lib/resources/stripe_payments.d.ts +4 -0
- package/lib/resources/stripe_payments.js +51 -0
- package/lib/resources/stripe_tax_accounts.cjs +57 -0
- package/lib/resources/stripe_tax_accounts.d.cts +4 -0
- package/lib/resources/stripe_tax_accounts.d.ts +4 -0
- package/lib/resources/stripe_tax_accounts.js +53 -0
- package/lib/resources/subscription_models.cjs +49 -0
- package/lib/resources/subscription_models.d.cts +4 -0
- package/lib/resources/subscription_models.d.ts +4 -0
- package/lib/resources/subscription_models.js +45 -0
- package/lib/resources/tags.cjs +37 -0
- package/lib/resources/tags.d.cts +4 -0
- package/lib/resources/tags.d.ts +4 -0
- package/lib/resources/tags.js +33 -0
- package/lib/resources/talon_one_accounts.cjs +53 -0
- package/lib/resources/talon_one_accounts.d.cts +4 -0
- package/lib/resources/talon_one_accounts.d.ts +4 -0
- package/lib/resources/talon_one_accounts.js +49 -0
- package/lib/resources/tax_calculators.cjs +44 -0
- package/lib/resources/tax_calculators.d.cts +4 -0
- package/lib/resources/tax_calculators.d.ts +4 -0
- package/lib/resources/tax_calculators.js +40 -0
- package/lib/resources/tax_categories.cjs +49 -0
- package/lib/resources/tax_categories.d.cts +4 -0
- package/lib/resources/tax_categories.d.ts +4 -0
- package/lib/resources/tax_categories.js +45 -0
- package/lib/resources/tax_rules.cjs +45 -0
- package/lib/resources/tax_rules.d.cts +4 -0
- package/lib/resources/tax_rules.d.ts +4 -0
- package/lib/resources/tax_rules.js +41 -0
- package/lib/resources/taxjar_accounts.cjs +57 -0
- package/lib/resources/taxjar_accounts.d.cts +4 -0
- package/lib/resources/taxjar_accounts.d.ts +4 -0
- package/lib/resources/taxjar_accounts.js +53 -0
- package/lib/resources/transactions.cjs +44 -0
- package/lib/resources/transactions.d.cts +4 -0
- package/lib/resources/transactions.d.ts +4 -0
- package/lib/resources/transactions.js +40 -0
- package/lib/resources/versions.cjs +28 -0
- package/lib/resources/versions.d.cts +4 -0
- package/lib/resources/versions.d.ts +4 -0
- package/lib/resources/versions.js +24 -0
- package/lib/resources/vertex_accounts.cjs +56 -0
- package/lib/resources/vertex_accounts.d.cts +4 -0
- package/lib/resources/vertex_accounts.d.ts +4 -0
- package/lib/resources/vertex_accounts.js +52 -0
- package/lib/resources/voids.cjs +54 -0
- package/lib/resources/voids.d.cts +4 -0
- package/lib/resources/voids.d.ts +4 -0
- package/lib/resources/voids.js +50 -0
- package/lib/resources/webhooks.cjs +54 -0
- package/lib/resources/webhooks.d.cts +4 -0
- package/lib/resources/webhooks.d.ts +4 -0
- package/lib/resources/webhooks.js +50 -0
- package/lib/resources/wire_transfers.cjs +45 -0
- package/lib/resources/wire_transfers.d.cts +4 -0
- package/lib/resources/wire_transfers.d.ts +4 -0
- package/lib/resources/wire_transfers.js +41 -0
- package/lib/static.cjs +39 -0
- package/lib/static.d.cts +19 -0
- package/lib/static.d.ts +19 -0
- package/lib/static.js +33 -0
- package/lib/types.cjs +2 -0
- package/lib/types.d.cts +7 -0
- package/lib/types.d.ts +7 -0
- package/lib/types.js +1 -0
- package/lib/util.cjs +37 -0
- package/lib/util.d.cts +13 -0
- package/lib/util.d.ts +13 -0
- package/lib/util.js +32 -0
- package/package.json +12 -10
@@ -0,0 +1,798 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var api = require('./api');
|
6
|
+
var _static = require('./static');
|
7
|
+
var ResourceAdapter = require('./resource');
|
8
|
+
var Debug = require('./debug');
|
9
|
+
|
10
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
+
|
12
|
+
function _interopNamespace(e) {
|
13
|
+
if (e && e.__esModule) return e;
|
14
|
+
var n = Object.create(null);
|
15
|
+
if (e) {
|
16
|
+
Object.keys(e).forEach(function (k) {
|
17
|
+
if (k !== 'default') {
|
18
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
20
|
+
enumerable: true,
|
21
|
+
get: function () { return e[k]; }
|
22
|
+
});
|
23
|
+
}
|
24
|
+
});
|
25
|
+
}
|
26
|
+
n.default = e;
|
27
|
+
return Object.freeze(n);
|
28
|
+
}
|
29
|
+
|
30
|
+
var api__namespace = /*#__PURE__*/_interopNamespace(api);
|
31
|
+
var ResourceAdapter__default = /*#__PURE__*/_interopDefault(ResourceAdapter);
|
32
|
+
var Debug__default = /*#__PURE__*/_interopDefault(Debug);
|
33
|
+
|
34
|
+
var __defProp = Object.defineProperty;
|
35
|
+
var __typeError = (msg) => {
|
36
|
+
throw TypeError(msg);
|
37
|
+
};
|
38
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
39
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
40
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
41
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
42
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
43
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
44
|
+
var _adapter, _addresses, _adjustments, _adyen_gateways, _adyen_payments, _application, _attachments, _authorizations, _avalara_accounts, _axerve_gateways, _axerve_payments, _bing_geocoders, _braintree_gateways, _braintree_payments, _bundles, _buy_x_pay_y_promotions, _captures, _carrier_accounts, _checkout_com_gateways, _checkout_com_payments, _cleanups, _coupon_codes_promotion_rules, _coupon_recipients, _coupons, _custom_promotion_rules, _customer_addresses, _customer_groups, _customer_password_resets, _customer_payment_sources, _customer_subscriptions, _customers, _delivery_lead_times, _discount_engine_items, _discount_engines, _easypost_pickups, _event_callbacks, _events, _exports, _external_gateways, _external_payments, _external_promotions, _external_tax_calculators, _fixed_amount_promotions, _fixed_price_promotions, _flex_promotions, _free_gift_promotions, _free_shipping_promotions, _geocoders, _gift_card_recipients, _gift_cards, _google_geocoders, _imports, _in_stock_subscriptions, _inventory_models, _inventory_return_locations, _inventory_stock_locations, _klarna_gateways, _klarna_payments, _line_item_options, _line_items, _links, _manual_gateways, _manual_tax_calculators, _markets, _merchants, _notifications, _order_amount_promotion_rules, _order_copies, _order_factories, _order_subscription_items, _order_subscriptions, _orders, _organization, _packages, _parcel_line_items, _parcels, _payment_gateways, _payment_methods, _payment_options, _paypal_gateways, _paypal_payments, _percentage_discount_promotions, _pickups, _price_frequency_tiers, _price_list_schedulers, _price_lists, _price_tiers, _price_volume_tiers, _prices, _promotion_rules, _promotions, _recurring_order_copies, _refunds, _reserved_stocks, _resource_errors, _return_line_items, _returns, _satispay_gateways, _satispay_payments, _shipments, _shipping_categories, _shipping_method_tiers, _shipping_methods, _shipping_weight_tiers, _shipping_zones, _sku_list_items, _sku_list_promotion_rules, _sku_lists, _sku_options, _skus, _stock_items, _stock_line_items, _stock_locations, _stock_reservations, _stock_transfers, _stores, _stripe_gateways, _stripe_payments, _stripe_tax_accounts, _subscription_models, _tags, _talon_one_accounts, _tax_calculators, _tax_categories, _tax_rules, _taxjar_accounts, _transactions, _versions, _vertex_accounts, _voids, _webhooks, _wire_transfers;
|
45
|
+
const debug = Debug__default.default("commercelayer");
|
46
|
+
const OPEN_API_SCHEMA_VERSION = "7.8.0";
|
47
|
+
class CommerceLayerClient {
|
48
|
+
// ##__CL_RESOURCES_DEF_STOP__##
|
49
|
+
constructor(config) {
|
50
|
+
// static get openApiSchemaVersion(): string { return OPEN_API_SCHEMA_VERSION }
|
51
|
+
__publicField(this, "openApiSchemaVersion", OPEN_API_SCHEMA_VERSION);
|
52
|
+
__privateAdd(this, _adapter);
|
53
|
+
// #slug: string
|
54
|
+
// ##__CL_RESOURCES_DEF_START__##
|
55
|
+
// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##
|
56
|
+
__privateAdd(this, _addresses);
|
57
|
+
__privateAdd(this, _adjustments);
|
58
|
+
__privateAdd(this, _adyen_gateways);
|
59
|
+
__privateAdd(this, _adyen_payments);
|
60
|
+
__privateAdd(this, _application);
|
61
|
+
__privateAdd(this, _attachments);
|
62
|
+
__privateAdd(this, _authorizations);
|
63
|
+
__privateAdd(this, _avalara_accounts);
|
64
|
+
__privateAdd(this, _axerve_gateways);
|
65
|
+
__privateAdd(this, _axerve_payments);
|
66
|
+
__privateAdd(this, _bing_geocoders);
|
67
|
+
__privateAdd(this, _braintree_gateways);
|
68
|
+
__privateAdd(this, _braintree_payments);
|
69
|
+
__privateAdd(this, _bundles);
|
70
|
+
__privateAdd(this, _buy_x_pay_y_promotions);
|
71
|
+
__privateAdd(this, _captures);
|
72
|
+
__privateAdd(this, _carrier_accounts);
|
73
|
+
__privateAdd(this, _checkout_com_gateways);
|
74
|
+
__privateAdd(this, _checkout_com_payments);
|
75
|
+
__privateAdd(this, _cleanups);
|
76
|
+
__privateAdd(this, _coupon_codes_promotion_rules);
|
77
|
+
__privateAdd(this, _coupon_recipients);
|
78
|
+
__privateAdd(this, _coupons);
|
79
|
+
__privateAdd(this, _custom_promotion_rules);
|
80
|
+
__privateAdd(this, _customer_addresses);
|
81
|
+
__privateAdd(this, _customer_groups);
|
82
|
+
__privateAdd(this, _customer_password_resets);
|
83
|
+
__privateAdd(this, _customer_payment_sources);
|
84
|
+
__privateAdd(this, _customer_subscriptions);
|
85
|
+
__privateAdd(this, _customers);
|
86
|
+
__privateAdd(this, _delivery_lead_times);
|
87
|
+
__privateAdd(this, _discount_engine_items);
|
88
|
+
__privateAdd(this, _discount_engines);
|
89
|
+
__privateAdd(this, _easypost_pickups);
|
90
|
+
__privateAdd(this, _event_callbacks);
|
91
|
+
__privateAdd(this, _events);
|
92
|
+
__privateAdd(this, _exports);
|
93
|
+
__privateAdd(this, _external_gateways);
|
94
|
+
__privateAdd(this, _external_payments);
|
95
|
+
__privateAdd(this, _external_promotions);
|
96
|
+
__privateAdd(this, _external_tax_calculators);
|
97
|
+
__privateAdd(this, _fixed_amount_promotions);
|
98
|
+
__privateAdd(this, _fixed_price_promotions);
|
99
|
+
__privateAdd(this, _flex_promotions);
|
100
|
+
__privateAdd(this, _free_gift_promotions);
|
101
|
+
__privateAdd(this, _free_shipping_promotions);
|
102
|
+
__privateAdd(this, _geocoders);
|
103
|
+
__privateAdd(this, _gift_card_recipients);
|
104
|
+
__privateAdd(this, _gift_cards);
|
105
|
+
__privateAdd(this, _google_geocoders);
|
106
|
+
__privateAdd(this, _imports);
|
107
|
+
__privateAdd(this, _in_stock_subscriptions);
|
108
|
+
__privateAdd(this, _inventory_models);
|
109
|
+
__privateAdd(this, _inventory_return_locations);
|
110
|
+
__privateAdd(this, _inventory_stock_locations);
|
111
|
+
__privateAdd(this, _klarna_gateways);
|
112
|
+
__privateAdd(this, _klarna_payments);
|
113
|
+
__privateAdd(this, _line_item_options);
|
114
|
+
__privateAdd(this, _line_items);
|
115
|
+
__privateAdd(this, _links);
|
116
|
+
__privateAdd(this, _manual_gateways);
|
117
|
+
__privateAdd(this, _manual_tax_calculators);
|
118
|
+
__privateAdd(this, _markets);
|
119
|
+
__privateAdd(this, _merchants);
|
120
|
+
__privateAdd(this, _notifications);
|
121
|
+
__privateAdd(this, _order_amount_promotion_rules);
|
122
|
+
__privateAdd(this, _order_copies);
|
123
|
+
__privateAdd(this, _order_factories);
|
124
|
+
__privateAdd(this, _order_subscription_items);
|
125
|
+
__privateAdd(this, _order_subscriptions);
|
126
|
+
__privateAdd(this, _orders);
|
127
|
+
__privateAdd(this, _organization);
|
128
|
+
__privateAdd(this, _packages);
|
129
|
+
__privateAdd(this, _parcel_line_items);
|
130
|
+
__privateAdd(this, _parcels);
|
131
|
+
__privateAdd(this, _payment_gateways);
|
132
|
+
__privateAdd(this, _payment_methods);
|
133
|
+
__privateAdd(this, _payment_options);
|
134
|
+
__privateAdd(this, _paypal_gateways);
|
135
|
+
__privateAdd(this, _paypal_payments);
|
136
|
+
__privateAdd(this, _percentage_discount_promotions);
|
137
|
+
__privateAdd(this, _pickups);
|
138
|
+
__privateAdd(this, _price_frequency_tiers);
|
139
|
+
__privateAdd(this, _price_list_schedulers);
|
140
|
+
__privateAdd(this, _price_lists);
|
141
|
+
__privateAdd(this, _price_tiers);
|
142
|
+
__privateAdd(this, _price_volume_tiers);
|
143
|
+
__privateAdd(this, _prices);
|
144
|
+
__privateAdd(this, _promotion_rules);
|
145
|
+
__privateAdd(this, _promotions);
|
146
|
+
__privateAdd(this, _recurring_order_copies);
|
147
|
+
__privateAdd(this, _refunds);
|
148
|
+
__privateAdd(this, _reserved_stocks);
|
149
|
+
__privateAdd(this, _resource_errors);
|
150
|
+
__privateAdd(this, _return_line_items);
|
151
|
+
__privateAdd(this, _returns);
|
152
|
+
__privateAdd(this, _satispay_gateways);
|
153
|
+
__privateAdd(this, _satispay_payments);
|
154
|
+
__privateAdd(this, _shipments);
|
155
|
+
__privateAdd(this, _shipping_categories);
|
156
|
+
__privateAdd(this, _shipping_method_tiers);
|
157
|
+
__privateAdd(this, _shipping_methods);
|
158
|
+
__privateAdd(this, _shipping_weight_tiers);
|
159
|
+
__privateAdd(this, _shipping_zones);
|
160
|
+
__privateAdd(this, _sku_list_items);
|
161
|
+
__privateAdd(this, _sku_list_promotion_rules);
|
162
|
+
__privateAdd(this, _sku_lists);
|
163
|
+
__privateAdd(this, _sku_options);
|
164
|
+
__privateAdd(this, _skus);
|
165
|
+
__privateAdd(this, _stock_items);
|
166
|
+
__privateAdd(this, _stock_line_items);
|
167
|
+
__privateAdd(this, _stock_locations);
|
168
|
+
__privateAdd(this, _stock_reservations);
|
169
|
+
__privateAdd(this, _stock_transfers);
|
170
|
+
__privateAdd(this, _stores);
|
171
|
+
__privateAdd(this, _stripe_gateways);
|
172
|
+
__privateAdd(this, _stripe_payments);
|
173
|
+
__privateAdd(this, _stripe_tax_accounts);
|
174
|
+
__privateAdd(this, _subscription_models);
|
175
|
+
__privateAdd(this, _tags);
|
176
|
+
__privateAdd(this, _talon_one_accounts);
|
177
|
+
__privateAdd(this, _tax_calculators);
|
178
|
+
__privateAdd(this, _tax_categories);
|
179
|
+
__privateAdd(this, _tax_rules);
|
180
|
+
__privateAdd(this, _taxjar_accounts);
|
181
|
+
__privateAdd(this, _transactions);
|
182
|
+
__privateAdd(this, _versions);
|
183
|
+
__privateAdd(this, _vertex_accounts);
|
184
|
+
__privateAdd(this, _voids);
|
185
|
+
__privateAdd(this, _webhooks);
|
186
|
+
__privateAdd(this, _wire_transfers);
|
187
|
+
debug("new commercelayer instance %O", config);
|
188
|
+
__privateSet(this, _adapter, new ResourceAdapter__default.default(config));
|
189
|
+
}
|
190
|
+
// ##__CL_RESOURCES_LEAZY_LOADING_START__##
|
191
|
+
// ##__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)) }
|
192
|
+
get addresses() {
|
193
|
+
return __privateGet(this, _addresses) || __privateSet(this, _addresses, new api__namespace.Addresses(__privateGet(this, _adapter)));
|
194
|
+
}
|
195
|
+
get adjustments() {
|
196
|
+
return __privateGet(this, _adjustments) || __privateSet(this, _adjustments, new api__namespace.Adjustments(__privateGet(this, _adapter)));
|
197
|
+
}
|
198
|
+
get adyen_gateways() {
|
199
|
+
return __privateGet(this, _adyen_gateways) || __privateSet(this, _adyen_gateways, new api__namespace.AdyenGateways(__privateGet(this, _adapter)));
|
200
|
+
}
|
201
|
+
get adyen_payments() {
|
202
|
+
return __privateGet(this, _adyen_payments) || __privateSet(this, _adyen_payments, new api__namespace.AdyenPayments(__privateGet(this, _adapter)));
|
203
|
+
}
|
204
|
+
get application() {
|
205
|
+
return __privateGet(this, _application) || __privateSet(this, _application, new api__namespace.Applications(__privateGet(this, _adapter)));
|
206
|
+
}
|
207
|
+
get attachments() {
|
208
|
+
return __privateGet(this, _attachments) || __privateSet(this, _attachments, new api__namespace.Attachments(__privateGet(this, _adapter)));
|
209
|
+
}
|
210
|
+
get authorizations() {
|
211
|
+
return __privateGet(this, _authorizations) || __privateSet(this, _authorizations, new api__namespace.Authorizations(__privateGet(this, _adapter)));
|
212
|
+
}
|
213
|
+
get avalara_accounts() {
|
214
|
+
return __privateGet(this, _avalara_accounts) || __privateSet(this, _avalara_accounts, new api__namespace.AvalaraAccounts(__privateGet(this, _adapter)));
|
215
|
+
}
|
216
|
+
get axerve_gateways() {
|
217
|
+
return __privateGet(this, _axerve_gateways) || __privateSet(this, _axerve_gateways, new api__namespace.AxerveGateways(__privateGet(this, _adapter)));
|
218
|
+
}
|
219
|
+
get axerve_payments() {
|
220
|
+
return __privateGet(this, _axerve_payments) || __privateSet(this, _axerve_payments, new api__namespace.AxervePayments(__privateGet(this, _adapter)));
|
221
|
+
}
|
222
|
+
get bing_geocoders() {
|
223
|
+
return __privateGet(this, _bing_geocoders) || __privateSet(this, _bing_geocoders, new api__namespace.BingGeocoders(__privateGet(this, _adapter)));
|
224
|
+
}
|
225
|
+
get braintree_gateways() {
|
226
|
+
return __privateGet(this, _braintree_gateways) || __privateSet(this, _braintree_gateways, new api__namespace.BraintreeGateways(__privateGet(this, _adapter)));
|
227
|
+
}
|
228
|
+
get braintree_payments() {
|
229
|
+
return __privateGet(this, _braintree_payments) || __privateSet(this, _braintree_payments, new api__namespace.BraintreePayments(__privateGet(this, _adapter)));
|
230
|
+
}
|
231
|
+
get bundles() {
|
232
|
+
return __privateGet(this, _bundles) || __privateSet(this, _bundles, new api__namespace.Bundles(__privateGet(this, _adapter)));
|
233
|
+
}
|
234
|
+
get buy_x_pay_y_promotions() {
|
235
|
+
return __privateGet(this, _buy_x_pay_y_promotions) || __privateSet(this, _buy_x_pay_y_promotions, new api__namespace.BuyXPayYPromotions(__privateGet(this, _adapter)));
|
236
|
+
}
|
237
|
+
get captures() {
|
238
|
+
return __privateGet(this, _captures) || __privateSet(this, _captures, new api__namespace.Captures(__privateGet(this, _adapter)));
|
239
|
+
}
|
240
|
+
get carrier_accounts() {
|
241
|
+
return __privateGet(this, _carrier_accounts) || __privateSet(this, _carrier_accounts, new api__namespace.CarrierAccounts(__privateGet(this, _adapter)));
|
242
|
+
}
|
243
|
+
get checkout_com_gateways() {
|
244
|
+
return __privateGet(this, _checkout_com_gateways) || __privateSet(this, _checkout_com_gateways, new api__namespace.CheckoutComGateways(__privateGet(this, _adapter)));
|
245
|
+
}
|
246
|
+
get checkout_com_payments() {
|
247
|
+
return __privateGet(this, _checkout_com_payments) || __privateSet(this, _checkout_com_payments, new api__namespace.CheckoutComPayments(__privateGet(this, _adapter)));
|
248
|
+
}
|
249
|
+
get cleanups() {
|
250
|
+
return __privateGet(this, _cleanups) || __privateSet(this, _cleanups, new api__namespace.Cleanups(__privateGet(this, _adapter)));
|
251
|
+
}
|
252
|
+
get coupon_codes_promotion_rules() {
|
253
|
+
return __privateGet(this, _coupon_codes_promotion_rules) || __privateSet(this, _coupon_codes_promotion_rules, new api__namespace.CouponCodesPromotionRules(__privateGet(this, _adapter)));
|
254
|
+
}
|
255
|
+
get coupon_recipients() {
|
256
|
+
return __privateGet(this, _coupon_recipients) || __privateSet(this, _coupon_recipients, new api__namespace.CouponRecipients(__privateGet(this, _adapter)));
|
257
|
+
}
|
258
|
+
get coupons() {
|
259
|
+
return __privateGet(this, _coupons) || __privateSet(this, _coupons, new api__namespace.Coupons(__privateGet(this, _adapter)));
|
260
|
+
}
|
261
|
+
get custom_promotion_rules() {
|
262
|
+
return __privateGet(this, _custom_promotion_rules) || __privateSet(this, _custom_promotion_rules, new api__namespace.CustomPromotionRules(__privateGet(this, _adapter)));
|
263
|
+
}
|
264
|
+
get customer_addresses() {
|
265
|
+
return __privateGet(this, _customer_addresses) || __privateSet(this, _customer_addresses, new api__namespace.CustomerAddresses(__privateGet(this, _adapter)));
|
266
|
+
}
|
267
|
+
get customer_groups() {
|
268
|
+
return __privateGet(this, _customer_groups) || __privateSet(this, _customer_groups, new api__namespace.CustomerGroups(__privateGet(this, _adapter)));
|
269
|
+
}
|
270
|
+
get customer_password_resets() {
|
271
|
+
return __privateGet(this, _customer_password_resets) || __privateSet(this, _customer_password_resets, new api__namespace.CustomerPasswordResets(__privateGet(this, _adapter)));
|
272
|
+
}
|
273
|
+
get customer_payment_sources() {
|
274
|
+
return __privateGet(this, _customer_payment_sources) || __privateSet(this, _customer_payment_sources, new api__namespace.CustomerPaymentSources(__privateGet(this, _adapter)));
|
275
|
+
}
|
276
|
+
get customer_subscriptions() {
|
277
|
+
return __privateGet(this, _customer_subscriptions) || __privateSet(this, _customer_subscriptions, new api__namespace.CustomerSubscriptions(__privateGet(this, _adapter)));
|
278
|
+
}
|
279
|
+
get customers() {
|
280
|
+
return __privateGet(this, _customers) || __privateSet(this, _customers, new api__namespace.Customers(__privateGet(this, _adapter)));
|
281
|
+
}
|
282
|
+
get delivery_lead_times() {
|
283
|
+
return __privateGet(this, _delivery_lead_times) || __privateSet(this, _delivery_lead_times, new api__namespace.DeliveryLeadTimes(__privateGet(this, _adapter)));
|
284
|
+
}
|
285
|
+
get discount_engine_items() {
|
286
|
+
return __privateGet(this, _discount_engine_items) || __privateSet(this, _discount_engine_items, new api__namespace.DiscountEngineItems(__privateGet(this, _adapter)));
|
287
|
+
}
|
288
|
+
get discount_engines() {
|
289
|
+
return __privateGet(this, _discount_engines) || __privateSet(this, _discount_engines, new api__namespace.DiscountEngines(__privateGet(this, _adapter)));
|
290
|
+
}
|
291
|
+
get easypost_pickups() {
|
292
|
+
return __privateGet(this, _easypost_pickups) || __privateSet(this, _easypost_pickups, new api__namespace.EasypostPickups(__privateGet(this, _adapter)));
|
293
|
+
}
|
294
|
+
get event_callbacks() {
|
295
|
+
return __privateGet(this, _event_callbacks) || __privateSet(this, _event_callbacks, new api__namespace.EventCallbacks(__privateGet(this, _adapter)));
|
296
|
+
}
|
297
|
+
get events() {
|
298
|
+
return __privateGet(this, _events) || __privateSet(this, _events, new api__namespace.Events(__privateGet(this, _adapter)));
|
299
|
+
}
|
300
|
+
get exports() {
|
301
|
+
return __privateGet(this, _exports) || __privateSet(this, _exports, new api__namespace.Exports(__privateGet(this, _adapter)));
|
302
|
+
}
|
303
|
+
get external_gateways() {
|
304
|
+
return __privateGet(this, _external_gateways) || __privateSet(this, _external_gateways, new api__namespace.ExternalGateways(__privateGet(this, _adapter)));
|
305
|
+
}
|
306
|
+
get external_payments() {
|
307
|
+
return __privateGet(this, _external_payments) || __privateSet(this, _external_payments, new api__namespace.ExternalPayments(__privateGet(this, _adapter)));
|
308
|
+
}
|
309
|
+
get external_promotions() {
|
310
|
+
return __privateGet(this, _external_promotions) || __privateSet(this, _external_promotions, new api__namespace.ExternalPromotions(__privateGet(this, _adapter)));
|
311
|
+
}
|
312
|
+
get external_tax_calculators() {
|
313
|
+
return __privateGet(this, _external_tax_calculators) || __privateSet(this, _external_tax_calculators, new api__namespace.ExternalTaxCalculators(__privateGet(this, _adapter)));
|
314
|
+
}
|
315
|
+
get fixed_amount_promotions() {
|
316
|
+
return __privateGet(this, _fixed_amount_promotions) || __privateSet(this, _fixed_amount_promotions, new api__namespace.FixedAmountPromotions(__privateGet(this, _adapter)));
|
317
|
+
}
|
318
|
+
get fixed_price_promotions() {
|
319
|
+
return __privateGet(this, _fixed_price_promotions) || __privateSet(this, _fixed_price_promotions, new api__namespace.FixedPricePromotions(__privateGet(this, _adapter)));
|
320
|
+
}
|
321
|
+
get flex_promotions() {
|
322
|
+
return __privateGet(this, _flex_promotions) || __privateSet(this, _flex_promotions, new api__namespace.FlexPromotions(__privateGet(this, _adapter)));
|
323
|
+
}
|
324
|
+
get free_gift_promotions() {
|
325
|
+
return __privateGet(this, _free_gift_promotions) || __privateSet(this, _free_gift_promotions, new api__namespace.FreeGiftPromotions(__privateGet(this, _adapter)));
|
326
|
+
}
|
327
|
+
get free_shipping_promotions() {
|
328
|
+
return __privateGet(this, _free_shipping_promotions) || __privateSet(this, _free_shipping_promotions, new api__namespace.FreeShippingPromotions(__privateGet(this, _adapter)));
|
329
|
+
}
|
330
|
+
get geocoders() {
|
331
|
+
return __privateGet(this, _geocoders) || __privateSet(this, _geocoders, new api__namespace.Geocoders(__privateGet(this, _adapter)));
|
332
|
+
}
|
333
|
+
get gift_card_recipients() {
|
334
|
+
return __privateGet(this, _gift_card_recipients) || __privateSet(this, _gift_card_recipients, new api__namespace.GiftCardRecipients(__privateGet(this, _adapter)));
|
335
|
+
}
|
336
|
+
get gift_cards() {
|
337
|
+
return __privateGet(this, _gift_cards) || __privateSet(this, _gift_cards, new api__namespace.GiftCards(__privateGet(this, _adapter)));
|
338
|
+
}
|
339
|
+
get google_geocoders() {
|
340
|
+
return __privateGet(this, _google_geocoders) || __privateSet(this, _google_geocoders, new api__namespace.GoogleGeocoders(__privateGet(this, _adapter)));
|
341
|
+
}
|
342
|
+
get imports() {
|
343
|
+
return __privateGet(this, _imports) || __privateSet(this, _imports, new api__namespace.Imports(__privateGet(this, _adapter)));
|
344
|
+
}
|
345
|
+
get in_stock_subscriptions() {
|
346
|
+
return __privateGet(this, _in_stock_subscriptions) || __privateSet(this, _in_stock_subscriptions, new api__namespace.InStockSubscriptions(__privateGet(this, _adapter)));
|
347
|
+
}
|
348
|
+
get inventory_models() {
|
349
|
+
return __privateGet(this, _inventory_models) || __privateSet(this, _inventory_models, new api__namespace.InventoryModels(__privateGet(this, _adapter)));
|
350
|
+
}
|
351
|
+
get inventory_return_locations() {
|
352
|
+
return __privateGet(this, _inventory_return_locations) || __privateSet(this, _inventory_return_locations, new api__namespace.InventoryReturnLocations(__privateGet(this, _adapter)));
|
353
|
+
}
|
354
|
+
get inventory_stock_locations() {
|
355
|
+
return __privateGet(this, _inventory_stock_locations) || __privateSet(this, _inventory_stock_locations, new api__namespace.InventoryStockLocations(__privateGet(this, _adapter)));
|
356
|
+
}
|
357
|
+
get klarna_gateways() {
|
358
|
+
return __privateGet(this, _klarna_gateways) || __privateSet(this, _klarna_gateways, new api__namespace.KlarnaGateways(__privateGet(this, _adapter)));
|
359
|
+
}
|
360
|
+
get klarna_payments() {
|
361
|
+
return __privateGet(this, _klarna_payments) || __privateSet(this, _klarna_payments, new api__namespace.KlarnaPayments(__privateGet(this, _adapter)));
|
362
|
+
}
|
363
|
+
get line_item_options() {
|
364
|
+
return __privateGet(this, _line_item_options) || __privateSet(this, _line_item_options, new api__namespace.LineItemOptions(__privateGet(this, _adapter)));
|
365
|
+
}
|
366
|
+
get line_items() {
|
367
|
+
return __privateGet(this, _line_items) || __privateSet(this, _line_items, new api__namespace.LineItems(__privateGet(this, _adapter)));
|
368
|
+
}
|
369
|
+
get links() {
|
370
|
+
return __privateGet(this, _links) || __privateSet(this, _links, new api__namespace.Links(__privateGet(this, _adapter)));
|
371
|
+
}
|
372
|
+
get manual_gateways() {
|
373
|
+
return __privateGet(this, _manual_gateways) || __privateSet(this, _manual_gateways, new api__namespace.ManualGateways(__privateGet(this, _adapter)));
|
374
|
+
}
|
375
|
+
get manual_tax_calculators() {
|
376
|
+
return __privateGet(this, _manual_tax_calculators) || __privateSet(this, _manual_tax_calculators, new api__namespace.ManualTaxCalculators(__privateGet(this, _adapter)));
|
377
|
+
}
|
378
|
+
get markets() {
|
379
|
+
return __privateGet(this, _markets) || __privateSet(this, _markets, new api__namespace.Markets(__privateGet(this, _adapter)));
|
380
|
+
}
|
381
|
+
get merchants() {
|
382
|
+
return __privateGet(this, _merchants) || __privateSet(this, _merchants, new api__namespace.Merchants(__privateGet(this, _adapter)));
|
383
|
+
}
|
384
|
+
get notifications() {
|
385
|
+
return __privateGet(this, _notifications) || __privateSet(this, _notifications, new api__namespace.Notifications(__privateGet(this, _adapter)));
|
386
|
+
}
|
387
|
+
get order_amount_promotion_rules() {
|
388
|
+
return __privateGet(this, _order_amount_promotion_rules) || __privateSet(this, _order_amount_promotion_rules, new api__namespace.OrderAmountPromotionRules(__privateGet(this, _adapter)));
|
389
|
+
}
|
390
|
+
get order_copies() {
|
391
|
+
return __privateGet(this, _order_copies) || __privateSet(this, _order_copies, new api__namespace.OrderCopies(__privateGet(this, _adapter)));
|
392
|
+
}
|
393
|
+
get order_factories() {
|
394
|
+
return __privateGet(this, _order_factories) || __privateSet(this, _order_factories, new api__namespace.OrderFactories(__privateGet(this, _adapter)));
|
395
|
+
}
|
396
|
+
get order_subscription_items() {
|
397
|
+
return __privateGet(this, _order_subscription_items) || __privateSet(this, _order_subscription_items, new api__namespace.OrderSubscriptionItems(__privateGet(this, _adapter)));
|
398
|
+
}
|
399
|
+
get order_subscriptions() {
|
400
|
+
return __privateGet(this, _order_subscriptions) || __privateSet(this, _order_subscriptions, new api__namespace.OrderSubscriptions(__privateGet(this, _adapter)));
|
401
|
+
}
|
402
|
+
get orders() {
|
403
|
+
return __privateGet(this, _orders) || __privateSet(this, _orders, new api__namespace.Orders(__privateGet(this, _adapter)));
|
404
|
+
}
|
405
|
+
get organization() {
|
406
|
+
return __privateGet(this, _organization) || __privateSet(this, _organization, new api__namespace.Organizations(__privateGet(this, _adapter)));
|
407
|
+
}
|
408
|
+
get packages() {
|
409
|
+
return __privateGet(this, _packages) || __privateSet(this, _packages, new api__namespace.Packages(__privateGet(this, _adapter)));
|
410
|
+
}
|
411
|
+
get parcel_line_items() {
|
412
|
+
return __privateGet(this, _parcel_line_items) || __privateSet(this, _parcel_line_items, new api__namespace.ParcelLineItems(__privateGet(this, _adapter)));
|
413
|
+
}
|
414
|
+
get parcels() {
|
415
|
+
return __privateGet(this, _parcels) || __privateSet(this, _parcels, new api__namespace.Parcels(__privateGet(this, _adapter)));
|
416
|
+
}
|
417
|
+
get payment_gateways() {
|
418
|
+
return __privateGet(this, _payment_gateways) || __privateSet(this, _payment_gateways, new api__namespace.PaymentGateways(__privateGet(this, _adapter)));
|
419
|
+
}
|
420
|
+
get payment_methods() {
|
421
|
+
return __privateGet(this, _payment_methods) || __privateSet(this, _payment_methods, new api__namespace.PaymentMethods(__privateGet(this, _adapter)));
|
422
|
+
}
|
423
|
+
get payment_options() {
|
424
|
+
return __privateGet(this, _payment_options) || __privateSet(this, _payment_options, new api__namespace.PaymentOptions(__privateGet(this, _adapter)));
|
425
|
+
}
|
426
|
+
get paypal_gateways() {
|
427
|
+
return __privateGet(this, _paypal_gateways) || __privateSet(this, _paypal_gateways, new api__namespace.PaypalGateways(__privateGet(this, _adapter)));
|
428
|
+
}
|
429
|
+
get paypal_payments() {
|
430
|
+
return __privateGet(this, _paypal_payments) || __privateSet(this, _paypal_payments, new api__namespace.PaypalPayments(__privateGet(this, _adapter)));
|
431
|
+
}
|
432
|
+
get percentage_discount_promotions() {
|
433
|
+
return __privateGet(this, _percentage_discount_promotions) || __privateSet(this, _percentage_discount_promotions, new api__namespace.PercentageDiscountPromotions(__privateGet(this, _adapter)));
|
434
|
+
}
|
435
|
+
get pickups() {
|
436
|
+
return __privateGet(this, _pickups) || __privateSet(this, _pickups, new api__namespace.Pickups(__privateGet(this, _adapter)));
|
437
|
+
}
|
438
|
+
get price_frequency_tiers() {
|
439
|
+
return __privateGet(this, _price_frequency_tiers) || __privateSet(this, _price_frequency_tiers, new api__namespace.PriceFrequencyTiers(__privateGet(this, _adapter)));
|
440
|
+
}
|
441
|
+
get price_list_schedulers() {
|
442
|
+
return __privateGet(this, _price_list_schedulers) || __privateSet(this, _price_list_schedulers, new api__namespace.PriceListSchedulers(__privateGet(this, _adapter)));
|
443
|
+
}
|
444
|
+
get price_lists() {
|
445
|
+
return __privateGet(this, _price_lists) || __privateSet(this, _price_lists, new api__namespace.PriceLists(__privateGet(this, _adapter)));
|
446
|
+
}
|
447
|
+
get price_tiers() {
|
448
|
+
return __privateGet(this, _price_tiers) || __privateSet(this, _price_tiers, new api__namespace.PriceTiers(__privateGet(this, _adapter)));
|
449
|
+
}
|
450
|
+
get price_volume_tiers() {
|
451
|
+
return __privateGet(this, _price_volume_tiers) || __privateSet(this, _price_volume_tiers, new api__namespace.PriceVolumeTiers(__privateGet(this, _adapter)));
|
452
|
+
}
|
453
|
+
get prices() {
|
454
|
+
return __privateGet(this, _prices) || __privateSet(this, _prices, new api__namespace.Prices(__privateGet(this, _adapter)));
|
455
|
+
}
|
456
|
+
get promotion_rules() {
|
457
|
+
return __privateGet(this, _promotion_rules) || __privateSet(this, _promotion_rules, new api__namespace.PromotionRules(__privateGet(this, _adapter)));
|
458
|
+
}
|
459
|
+
get promotions() {
|
460
|
+
return __privateGet(this, _promotions) || __privateSet(this, _promotions, new api__namespace.Promotions(__privateGet(this, _adapter)));
|
461
|
+
}
|
462
|
+
get recurring_order_copies() {
|
463
|
+
return __privateGet(this, _recurring_order_copies) || __privateSet(this, _recurring_order_copies, new api__namespace.RecurringOrderCopies(__privateGet(this, _adapter)));
|
464
|
+
}
|
465
|
+
get refunds() {
|
466
|
+
return __privateGet(this, _refunds) || __privateSet(this, _refunds, new api__namespace.Refunds(__privateGet(this, _adapter)));
|
467
|
+
}
|
468
|
+
get reserved_stocks() {
|
469
|
+
return __privateGet(this, _reserved_stocks) || __privateSet(this, _reserved_stocks, new api__namespace.ReservedStocks(__privateGet(this, _adapter)));
|
470
|
+
}
|
471
|
+
get resource_errors() {
|
472
|
+
return __privateGet(this, _resource_errors) || __privateSet(this, _resource_errors, new api__namespace.ResourceErrors(__privateGet(this, _adapter)));
|
473
|
+
}
|
474
|
+
get return_line_items() {
|
475
|
+
return __privateGet(this, _return_line_items) || __privateSet(this, _return_line_items, new api__namespace.ReturnLineItems(__privateGet(this, _adapter)));
|
476
|
+
}
|
477
|
+
get returns() {
|
478
|
+
return __privateGet(this, _returns) || __privateSet(this, _returns, new api__namespace.Returns(__privateGet(this, _adapter)));
|
479
|
+
}
|
480
|
+
get satispay_gateways() {
|
481
|
+
return __privateGet(this, _satispay_gateways) || __privateSet(this, _satispay_gateways, new api__namespace.SatispayGateways(__privateGet(this, _adapter)));
|
482
|
+
}
|
483
|
+
get satispay_payments() {
|
484
|
+
return __privateGet(this, _satispay_payments) || __privateSet(this, _satispay_payments, new api__namespace.SatispayPayments(__privateGet(this, _adapter)));
|
485
|
+
}
|
486
|
+
get shipments() {
|
487
|
+
return __privateGet(this, _shipments) || __privateSet(this, _shipments, new api__namespace.Shipments(__privateGet(this, _adapter)));
|
488
|
+
}
|
489
|
+
get shipping_categories() {
|
490
|
+
return __privateGet(this, _shipping_categories) || __privateSet(this, _shipping_categories, new api__namespace.ShippingCategories(__privateGet(this, _adapter)));
|
491
|
+
}
|
492
|
+
get shipping_method_tiers() {
|
493
|
+
return __privateGet(this, _shipping_method_tiers) || __privateSet(this, _shipping_method_tiers, new api__namespace.ShippingMethodTiers(__privateGet(this, _adapter)));
|
494
|
+
}
|
495
|
+
get shipping_methods() {
|
496
|
+
return __privateGet(this, _shipping_methods) || __privateSet(this, _shipping_methods, new api__namespace.ShippingMethods(__privateGet(this, _adapter)));
|
497
|
+
}
|
498
|
+
get shipping_weight_tiers() {
|
499
|
+
return __privateGet(this, _shipping_weight_tiers) || __privateSet(this, _shipping_weight_tiers, new api__namespace.ShippingWeightTiers(__privateGet(this, _adapter)));
|
500
|
+
}
|
501
|
+
get shipping_zones() {
|
502
|
+
return __privateGet(this, _shipping_zones) || __privateSet(this, _shipping_zones, new api__namespace.ShippingZones(__privateGet(this, _adapter)));
|
503
|
+
}
|
504
|
+
get sku_list_items() {
|
505
|
+
return __privateGet(this, _sku_list_items) || __privateSet(this, _sku_list_items, new api__namespace.SkuListItems(__privateGet(this, _adapter)));
|
506
|
+
}
|
507
|
+
get sku_list_promotion_rules() {
|
508
|
+
return __privateGet(this, _sku_list_promotion_rules) || __privateSet(this, _sku_list_promotion_rules, new api__namespace.SkuListPromotionRules(__privateGet(this, _adapter)));
|
509
|
+
}
|
510
|
+
get sku_lists() {
|
511
|
+
return __privateGet(this, _sku_lists) || __privateSet(this, _sku_lists, new api__namespace.SkuLists(__privateGet(this, _adapter)));
|
512
|
+
}
|
513
|
+
get sku_options() {
|
514
|
+
return __privateGet(this, _sku_options) || __privateSet(this, _sku_options, new api__namespace.SkuOptions(__privateGet(this, _adapter)));
|
515
|
+
}
|
516
|
+
get skus() {
|
517
|
+
return __privateGet(this, _skus) || __privateSet(this, _skus, new api__namespace.Skus(__privateGet(this, _adapter)));
|
518
|
+
}
|
519
|
+
get stock_items() {
|
520
|
+
return __privateGet(this, _stock_items) || __privateSet(this, _stock_items, new api__namespace.StockItems(__privateGet(this, _adapter)));
|
521
|
+
}
|
522
|
+
get stock_line_items() {
|
523
|
+
return __privateGet(this, _stock_line_items) || __privateSet(this, _stock_line_items, new api__namespace.StockLineItems(__privateGet(this, _adapter)));
|
524
|
+
}
|
525
|
+
get stock_locations() {
|
526
|
+
return __privateGet(this, _stock_locations) || __privateSet(this, _stock_locations, new api__namespace.StockLocations(__privateGet(this, _adapter)));
|
527
|
+
}
|
528
|
+
get stock_reservations() {
|
529
|
+
return __privateGet(this, _stock_reservations) || __privateSet(this, _stock_reservations, new api__namespace.StockReservations(__privateGet(this, _adapter)));
|
530
|
+
}
|
531
|
+
get stock_transfers() {
|
532
|
+
return __privateGet(this, _stock_transfers) || __privateSet(this, _stock_transfers, new api__namespace.StockTransfers(__privateGet(this, _adapter)));
|
533
|
+
}
|
534
|
+
get stores() {
|
535
|
+
return __privateGet(this, _stores) || __privateSet(this, _stores, new api__namespace.Stores(__privateGet(this, _adapter)));
|
536
|
+
}
|
537
|
+
get stripe_gateways() {
|
538
|
+
return __privateGet(this, _stripe_gateways) || __privateSet(this, _stripe_gateways, new api__namespace.StripeGateways(__privateGet(this, _adapter)));
|
539
|
+
}
|
540
|
+
get stripe_payments() {
|
541
|
+
return __privateGet(this, _stripe_payments) || __privateSet(this, _stripe_payments, new api__namespace.StripePayments(__privateGet(this, _adapter)));
|
542
|
+
}
|
543
|
+
get stripe_tax_accounts() {
|
544
|
+
return __privateGet(this, _stripe_tax_accounts) || __privateSet(this, _stripe_tax_accounts, new api__namespace.StripeTaxAccounts(__privateGet(this, _adapter)));
|
545
|
+
}
|
546
|
+
get subscription_models() {
|
547
|
+
return __privateGet(this, _subscription_models) || __privateSet(this, _subscription_models, new api__namespace.SubscriptionModels(__privateGet(this, _adapter)));
|
548
|
+
}
|
549
|
+
get tags() {
|
550
|
+
return __privateGet(this, _tags) || __privateSet(this, _tags, new api__namespace.Tags(__privateGet(this, _adapter)));
|
551
|
+
}
|
552
|
+
get talon_one_accounts() {
|
553
|
+
return __privateGet(this, _talon_one_accounts) || __privateSet(this, _talon_one_accounts, new api__namespace.TalonOneAccounts(__privateGet(this, _adapter)));
|
554
|
+
}
|
555
|
+
get tax_calculators() {
|
556
|
+
return __privateGet(this, _tax_calculators) || __privateSet(this, _tax_calculators, new api__namespace.TaxCalculators(__privateGet(this, _adapter)));
|
557
|
+
}
|
558
|
+
get tax_categories() {
|
559
|
+
return __privateGet(this, _tax_categories) || __privateSet(this, _tax_categories, new api__namespace.TaxCategories(__privateGet(this, _adapter)));
|
560
|
+
}
|
561
|
+
get tax_rules() {
|
562
|
+
return __privateGet(this, _tax_rules) || __privateSet(this, _tax_rules, new api__namespace.TaxRules(__privateGet(this, _adapter)));
|
563
|
+
}
|
564
|
+
get taxjar_accounts() {
|
565
|
+
return __privateGet(this, _taxjar_accounts) || __privateSet(this, _taxjar_accounts, new api__namespace.TaxjarAccounts(__privateGet(this, _adapter)));
|
566
|
+
}
|
567
|
+
get transactions() {
|
568
|
+
return __privateGet(this, _transactions) || __privateSet(this, _transactions, new api__namespace.Transactions(__privateGet(this, _adapter)));
|
569
|
+
}
|
570
|
+
get versions() {
|
571
|
+
return __privateGet(this, _versions) || __privateSet(this, _versions, new api__namespace.Versions(__privateGet(this, _adapter)));
|
572
|
+
}
|
573
|
+
get vertex_accounts() {
|
574
|
+
return __privateGet(this, _vertex_accounts) || __privateSet(this, _vertex_accounts, new api__namespace.VertexAccounts(__privateGet(this, _adapter)));
|
575
|
+
}
|
576
|
+
get voids() {
|
577
|
+
return __privateGet(this, _voids) || __privateSet(this, _voids, new api__namespace.Voids(__privateGet(this, _adapter)));
|
578
|
+
}
|
579
|
+
get webhooks() {
|
580
|
+
return __privateGet(this, _webhooks) || __privateSet(this, _webhooks, new api__namespace.Webhooks(__privateGet(this, _adapter)));
|
581
|
+
}
|
582
|
+
get wire_transfers() {
|
583
|
+
return __privateGet(this, _wire_transfers) || __privateSet(this, _wire_transfers, new api__namespace.WireTransfers(__privateGet(this, _adapter)));
|
584
|
+
}
|
585
|
+
// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##
|
586
|
+
get currentOrganization() {
|
587
|
+
return __privateGet(this, _adapter)?.client?.currentOrganization;
|
588
|
+
}
|
589
|
+
get currentAccessToken() {
|
590
|
+
return __privateGet(this, _adapter)?.client?.currentAccessToken;
|
591
|
+
}
|
592
|
+
get interceptors() {
|
593
|
+
return __privateGet(this, _adapter).client.interceptors;
|
594
|
+
}
|
595
|
+
localConfig(config) {
|
596
|
+
}
|
597
|
+
config(config) {
|
598
|
+
debug("config %o", config);
|
599
|
+
this.localConfig(config);
|
600
|
+
__privateGet(this, _adapter).config(config);
|
601
|
+
return this;
|
602
|
+
}
|
603
|
+
resources() {
|
604
|
+
return _static.CommerceLayerStatic.resources();
|
605
|
+
}
|
606
|
+
singletons() {
|
607
|
+
return _static.CommerceLayerStatic.singletons();
|
608
|
+
}
|
609
|
+
isSingleton(resource) {
|
610
|
+
return _static.CommerceLayerStatic.isSingleton(resource);
|
611
|
+
}
|
612
|
+
isApiError(error) {
|
613
|
+
return _static.CommerceLayerStatic.isApiError(error);
|
614
|
+
}
|
615
|
+
addRequestInterceptor(onSuccess, onFailure) {
|
616
|
+
this.interceptors.request = { onSuccess, onFailure };
|
617
|
+
return 1;
|
618
|
+
}
|
619
|
+
addResponseInterceptor(onSuccess, onFailure) {
|
620
|
+
this.interceptors.response = { onSuccess, onFailure };
|
621
|
+
return 1;
|
622
|
+
}
|
623
|
+
removeInterceptor(type, id = 1) {
|
624
|
+
this.interceptors[type] = void 0;
|
625
|
+
}
|
626
|
+
removeInterceptors() {
|
627
|
+
this.removeInterceptor("request");
|
628
|
+
this.removeInterceptor("response");
|
629
|
+
this.removeRawResponseReader();
|
630
|
+
}
|
631
|
+
addRawResponseReader(options) {
|
632
|
+
const reader = {
|
633
|
+
id: 0,
|
634
|
+
rawResponse: void 0,
|
635
|
+
headers: void 0,
|
636
|
+
ok: true
|
637
|
+
};
|
638
|
+
async function rawResponseInterceptor(response) {
|
639
|
+
reader.rawResponse = await response?.clone().json().catch(() => {
|
640
|
+
});
|
641
|
+
reader.ok = response.ok;
|
642
|
+
if (options?.headers) {
|
643
|
+
const ho = {};
|
644
|
+
response.headers.forEach((value, key) => {
|
645
|
+
ho[key] = value;
|
646
|
+
});
|
647
|
+
reader.headers = ho;
|
648
|
+
}
|
649
|
+
return response;
|
650
|
+
}
|
651
|
+
this.interceptors.rawReader = { onSuccess: rawResponseInterceptor, onFailure: rawResponseInterceptor };
|
652
|
+
reader.id = 1;
|
653
|
+
return reader;
|
654
|
+
}
|
655
|
+
removeRawResponseReader() {
|
656
|
+
this.interceptors.rawReader = void 0;
|
657
|
+
}
|
658
|
+
}
|
659
|
+
_adapter = new WeakMap();
|
660
|
+
_addresses = new WeakMap();
|
661
|
+
_adjustments = new WeakMap();
|
662
|
+
_adyen_gateways = new WeakMap();
|
663
|
+
_adyen_payments = new WeakMap();
|
664
|
+
_application = new WeakMap();
|
665
|
+
_attachments = new WeakMap();
|
666
|
+
_authorizations = new WeakMap();
|
667
|
+
_avalara_accounts = new WeakMap();
|
668
|
+
_axerve_gateways = new WeakMap();
|
669
|
+
_axerve_payments = new WeakMap();
|
670
|
+
_bing_geocoders = new WeakMap();
|
671
|
+
_braintree_gateways = new WeakMap();
|
672
|
+
_braintree_payments = new WeakMap();
|
673
|
+
_bundles = new WeakMap();
|
674
|
+
_buy_x_pay_y_promotions = new WeakMap();
|
675
|
+
_captures = new WeakMap();
|
676
|
+
_carrier_accounts = new WeakMap();
|
677
|
+
_checkout_com_gateways = new WeakMap();
|
678
|
+
_checkout_com_payments = new WeakMap();
|
679
|
+
_cleanups = new WeakMap();
|
680
|
+
_coupon_codes_promotion_rules = new WeakMap();
|
681
|
+
_coupon_recipients = new WeakMap();
|
682
|
+
_coupons = new WeakMap();
|
683
|
+
_custom_promotion_rules = new WeakMap();
|
684
|
+
_customer_addresses = new WeakMap();
|
685
|
+
_customer_groups = new WeakMap();
|
686
|
+
_customer_password_resets = new WeakMap();
|
687
|
+
_customer_payment_sources = new WeakMap();
|
688
|
+
_customer_subscriptions = new WeakMap();
|
689
|
+
_customers = new WeakMap();
|
690
|
+
_delivery_lead_times = new WeakMap();
|
691
|
+
_discount_engine_items = new WeakMap();
|
692
|
+
_discount_engines = new WeakMap();
|
693
|
+
_easypost_pickups = new WeakMap();
|
694
|
+
_event_callbacks = new WeakMap();
|
695
|
+
_events = new WeakMap();
|
696
|
+
_exports = new WeakMap();
|
697
|
+
_external_gateways = new WeakMap();
|
698
|
+
_external_payments = new WeakMap();
|
699
|
+
_external_promotions = new WeakMap();
|
700
|
+
_external_tax_calculators = new WeakMap();
|
701
|
+
_fixed_amount_promotions = new WeakMap();
|
702
|
+
_fixed_price_promotions = new WeakMap();
|
703
|
+
_flex_promotions = new WeakMap();
|
704
|
+
_free_gift_promotions = new WeakMap();
|
705
|
+
_free_shipping_promotions = new WeakMap();
|
706
|
+
_geocoders = new WeakMap();
|
707
|
+
_gift_card_recipients = new WeakMap();
|
708
|
+
_gift_cards = new WeakMap();
|
709
|
+
_google_geocoders = new WeakMap();
|
710
|
+
_imports = new WeakMap();
|
711
|
+
_in_stock_subscriptions = new WeakMap();
|
712
|
+
_inventory_models = new WeakMap();
|
713
|
+
_inventory_return_locations = new WeakMap();
|
714
|
+
_inventory_stock_locations = new WeakMap();
|
715
|
+
_klarna_gateways = new WeakMap();
|
716
|
+
_klarna_payments = new WeakMap();
|
717
|
+
_line_item_options = new WeakMap();
|
718
|
+
_line_items = new WeakMap();
|
719
|
+
_links = new WeakMap();
|
720
|
+
_manual_gateways = new WeakMap();
|
721
|
+
_manual_tax_calculators = new WeakMap();
|
722
|
+
_markets = new WeakMap();
|
723
|
+
_merchants = new WeakMap();
|
724
|
+
_notifications = new WeakMap();
|
725
|
+
_order_amount_promotion_rules = new WeakMap();
|
726
|
+
_order_copies = new WeakMap();
|
727
|
+
_order_factories = new WeakMap();
|
728
|
+
_order_subscription_items = new WeakMap();
|
729
|
+
_order_subscriptions = new WeakMap();
|
730
|
+
_orders = new WeakMap();
|
731
|
+
_organization = new WeakMap();
|
732
|
+
_packages = new WeakMap();
|
733
|
+
_parcel_line_items = new WeakMap();
|
734
|
+
_parcels = new WeakMap();
|
735
|
+
_payment_gateways = new WeakMap();
|
736
|
+
_payment_methods = new WeakMap();
|
737
|
+
_payment_options = new WeakMap();
|
738
|
+
_paypal_gateways = new WeakMap();
|
739
|
+
_paypal_payments = new WeakMap();
|
740
|
+
_percentage_discount_promotions = new WeakMap();
|
741
|
+
_pickups = new WeakMap();
|
742
|
+
_price_frequency_tiers = new WeakMap();
|
743
|
+
_price_list_schedulers = new WeakMap();
|
744
|
+
_price_lists = new WeakMap();
|
745
|
+
_price_tiers = new WeakMap();
|
746
|
+
_price_volume_tiers = new WeakMap();
|
747
|
+
_prices = new WeakMap();
|
748
|
+
_promotion_rules = new WeakMap();
|
749
|
+
_promotions = new WeakMap();
|
750
|
+
_recurring_order_copies = new WeakMap();
|
751
|
+
_refunds = new WeakMap();
|
752
|
+
_reserved_stocks = new WeakMap();
|
753
|
+
_resource_errors = new WeakMap();
|
754
|
+
_return_line_items = new WeakMap();
|
755
|
+
_returns = new WeakMap();
|
756
|
+
_satispay_gateways = new WeakMap();
|
757
|
+
_satispay_payments = new WeakMap();
|
758
|
+
_shipments = new WeakMap();
|
759
|
+
_shipping_categories = new WeakMap();
|
760
|
+
_shipping_method_tiers = new WeakMap();
|
761
|
+
_shipping_methods = new WeakMap();
|
762
|
+
_shipping_weight_tiers = new WeakMap();
|
763
|
+
_shipping_zones = new WeakMap();
|
764
|
+
_sku_list_items = new WeakMap();
|
765
|
+
_sku_list_promotion_rules = new WeakMap();
|
766
|
+
_sku_lists = new WeakMap();
|
767
|
+
_sku_options = new WeakMap();
|
768
|
+
_skus = new WeakMap();
|
769
|
+
_stock_items = new WeakMap();
|
770
|
+
_stock_line_items = new WeakMap();
|
771
|
+
_stock_locations = new WeakMap();
|
772
|
+
_stock_reservations = new WeakMap();
|
773
|
+
_stock_transfers = new WeakMap();
|
774
|
+
_stores = new WeakMap();
|
775
|
+
_stripe_gateways = new WeakMap();
|
776
|
+
_stripe_payments = new WeakMap();
|
777
|
+
_stripe_tax_accounts = new WeakMap();
|
778
|
+
_subscription_models = new WeakMap();
|
779
|
+
_tags = new WeakMap();
|
780
|
+
_talon_one_accounts = new WeakMap();
|
781
|
+
_tax_calculators = new WeakMap();
|
782
|
+
_tax_categories = new WeakMap();
|
783
|
+
_tax_rules = new WeakMap();
|
784
|
+
_taxjar_accounts = new WeakMap();
|
785
|
+
_transactions = new WeakMap();
|
786
|
+
_versions = new WeakMap();
|
787
|
+
_vertex_accounts = new WeakMap();
|
788
|
+
_voids = new WeakMap();
|
789
|
+
_webhooks = new WeakMap();
|
790
|
+
_wire_transfers = new WeakMap();
|
791
|
+
const CommerceLayer = (config) => {
|
792
|
+
return new CommerceLayerClient(config);
|
793
|
+
};
|
794
|
+
var commercelayer_default = CommerceLayer;
|
795
|
+
|
796
|
+
exports.CommerceLayer = CommerceLayer;
|
797
|
+
exports.OPEN_API_SCHEMA_VERSION = OPEN_API_SCHEMA_VERSION;
|
798
|
+
exports.default = commercelayer_default;
|