@commercelayer/sdk 5.0.0-alpha.5 → 5.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/README.md +201 -123
- package/lib/cjs/api.d.ts +128 -0
- package/lib/cjs/api.js +342 -0
- package/lib/cjs/client.d.ts +33 -0
- package/lib/cjs/client.js +126 -0
- package/lib/cjs/commercelayer.d.ts +139 -0
- package/lib/cjs/commercelayer.js +230 -0
- package/lib/cjs/common.d.ts +4 -0
- package/lib/cjs/common.js +12 -0
- package/lib/cjs/config.d.ts +12 -0
- package/lib/cjs/config.js +14 -0
- package/lib/cjs/debug.d.ts +3 -0
- package/lib/cjs/debug.js +38 -0
- package/lib/cjs/error.d.ts +28 -0
- package/lib/cjs/error.js +40 -0
- package/lib/cjs/index.d.ts +8 -0
- package/lib/cjs/index.js +29 -0
- package/lib/cjs/interceptor.d.ts +25 -0
- package/lib/cjs/interceptor.js +2 -0
- package/lib/cjs/jsonapi.d.ts +5 -0
- package/lib/cjs/jsonapi.js +86 -0
- package/lib/cjs/model.d.ts +111 -0
- package/lib/cjs/model.js +3 -0
- package/lib/cjs/query.d.ts +25 -0
- package/lib/cjs/query.js +52 -0
- package/lib/cjs/resource.d.ts +87 -0
- package/lib/cjs/resource.js +170 -0
- package/lib/cjs/resources/addresses.d.ts +88 -0
- package/lib/cjs/resources/addresses.js +29 -0
- package/lib/cjs/resources/adjustments.d.ts +35 -0
- package/lib/cjs/resources/adjustments.js +25 -0
- package/lib/cjs/resources/adyen_gateways.d.ts +56 -0
- package/lib/cjs/resources/adyen_gateways.js +33 -0
- package/lib/cjs/resources/adyen_payments.d.ts +46 -0
- package/lib/cjs/resources/adyen_payments.js +33 -0
- package/lib/cjs/resources/application.d.ts +21 -0
- package/lib/cjs/resources/application.js +16 -0
- package/lib/cjs/resources/attachments.d.ts +156 -0
- package/lib/cjs/resources/attachments.js +25 -0
- package/lib/cjs/resources/authorizations.d.ts +60 -0
- package/lib/cjs/resources/authorizations.js +35 -0
- package/lib/cjs/resources/avalara_accounts.d.ts +55 -0
- package/lib/cjs/resources/avalara_accounts.js +37 -0
- package/lib/cjs/resources/axerve_gateways.d.ts +43 -0
- package/lib/cjs/resources/axerve_gateways.js +33 -0
- package/lib/cjs/resources/axerve_payments.d.ts +46 -0
- package/lib/cjs/resources/axerve_payments.js +33 -0
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +35 -0
- package/lib/cjs/resources/billing_info_validation_rules.js +33 -0
- package/lib/cjs/resources/bing_geocoders.d.ts +35 -0
- package/lib/cjs/resources/bing_geocoders.js +33 -0
- package/lib/cjs/resources/braintree_gateways.d.ts +56 -0
- package/lib/cjs/resources/braintree_gateways.js +33 -0
- package/lib/cjs/resources/braintree_payments.d.ts +48 -0
- package/lib/cjs/resources/braintree_payments.js +33 -0
- package/lib/cjs/resources/bundles.d.ts +76 -0
- package/lib/cjs/resources/bundles.js +41 -0
- package/lib/cjs/resources/captures.d.ts +51 -0
- package/lib/cjs/resources/captures.js +35 -0
- package/lib/cjs/resources/carrier_accounts.d.ts +26 -0
- package/lib/cjs/resources/carrier_accounts.js +24 -0
- package/lib/cjs/resources/checkout_com_gateways.d.ts +45 -0
- package/lib/cjs/resources/checkout_com_gateways.js +33 -0
- package/lib/cjs/resources/checkout_com_payments.d.ts +59 -0
- package/lib/cjs/resources/checkout_com_payments.js +33 -0
- package/lib/cjs/resources/cleanups.d.ts +36 -0
- package/lib/cjs/resources/cleanups.js +26 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +59 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +29 -0
- package/lib/cjs/resources/coupon_recipients.d.ts +44 -0
- package/lib/cjs/resources/coupon_recipients.js +33 -0
- package/lib/cjs/resources/coupons.d.ts +45 -0
- package/lib/cjs/resources/coupons.js +29 -0
- package/lib/cjs/resources/customer_addresses.d.ts +44 -0
- package/lib/cjs/resources/customer_addresses.js +37 -0
- package/lib/cjs/resources/customer_groups.d.ts +36 -0
- package/lib/cjs/resources/customer_groups.js +37 -0
- package/lib/cjs/resources/customer_password_resets.d.ts +36 -0
- package/lib/cjs/resources/customer_password_resets.js +33 -0
- package/lib/cjs/resources/customer_payment_sources.d.ts +78 -0
- package/lib/cjs/resources/customer_payment_sources.js +29 -0
- package/lib/cjs/resources/customer_subscriptions.d.ts +31 -0
- package/lib/cjs/resources/customer_subscriptions.js +33 -0
- package/lib/cjs/resources/customers.d.ts +66 -0
- package/lib/cjs/resources/customers.js +65 -0
- package/lib/cjs/resources/delivery_lead_times.d.ts +51 -0
- package/lib/cjs/resources/delivery_lead_times.js +37 -0
- package/lib/cjs/resources/event_callbacks.d.ts +24 -0
- package/lib/cjs/resources/event_callbacks.js +20 -0
- package/lib/cjs/resources/events.d.ts +24 -0
- package/lib/cjs/resources/events.js +24 -0
- package/lib/cjs/resources/exports.d.ts +40 -0
- package/lib/cjs/resources/exports.js +26 -0
- package/lib/cjs/resources/external_gateways.d.ts +49 -0
- package/lib/cjs/resources/external_gateways.js +33 -0
- package/lib/cjs/resources/external_payments.d.ts +44 -0
- package/lib/cjs/resources/external_payments.js +37 -0
- package/lib/cjs/resources/external_promotions.d.ts +90 -0
- package/lib/cjs/resources/external_promotions.js +49 -0
- package/lib/cjs/resources/external_tax_calculators.d.ts +37 -0
- package/lib/cjs/resources/external_tax_calculators.js +33 -0
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +91 -0
- package/lib/cjs/resources/fixed_amount_promotions.js +49 -0
- package/lib/cjs/resources/fixed_price_promotions.d.ts +102 -0
- package/lib/cjs/resources/fixed_price_promotions.js +57 -0
- package/lib/cjs/resources/free_gift_promotions.d.ts +100 -0
- package/lib/cjs/resources/free_gift_promotions.js +57 -0
- package/lib/cjs/resources/free_shipping_promotions.d.ts +83 -0
- package/lib/cjs/resources/free_shipping_promotions.js +45 -0
- package/lib/cjs/resources/geocoders.d.ts +24 -0
- package/lib/cjs/resources/geocoders.js +24 -0
- package/lib/cjs/resources/gift_card_recipients.d.ts +44 -0
- package/lib/cjs/resources/gift_card_recipients.js +33 -0
- package/lib/cjs/resources/gift_cards.d.ts +85 -0
- package/lib/cjs/resources/gift_cards.js +41 -0
- package/lib/cjs/resources/google_geocoders.d.ts +35 -0
- package/lib/cjs/resources/google_geocoders.js +33 -0
- package/lib/cjs/resources/imports.d.ts +45 -0
- package/lib/cjs/resources/imports.js +26 -0
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +62 -0
- package/lib/cjs/resources/in_stock_subscriptions.js +41 -0
- package/lib/cjs/resources/inventory_models.d.ts +42 -0
- package/lib/cjs/resources/inventory_models.js +37 -0
- package/lib/cjs/resources/inventory_return_locations.d.ts +43 -0
- package/lib/cjs/resources/inventory_return_locations.js +33 -0
- package/lib/cjs/resources/inventory_stock_locations.d.ts +46 -0
- package/lib/cjs/resources/inventory_stock_locations.js +33 -0
- package/lib/cjs/resources/klarna_gateways.d.ts +44 -0
- package/lib/cjs/resources/klarna_gateways.js +33 -0
- package/lib/cjs/resources/klarna_payments.d.ts +46 -0
- package/lib/cjs/resources/klarna_payments.js +33 -0
- package/lib/cjs/resources/line_item_options.d.ts +57 -0
- package/lib/cjs/resources/line_item_options.js +33 -0
- package/lib/cjs/resources/line_items.d.ts +126 -0
- package/lib/cjs/resources/line_items.js +41 -0
- package/lib/cjs/resources/manual_gateways.d.ts +30 -0
- package/lib/cjs/resources/manual_gateways.js +29 -0
- package/lib/cjs/resources/manual_tax_calculators.d.ts +41 -0
- package/lib/cjs/resources/manual_tax_calculators.js +37 -0
- package/lib/cjs/resources/markets.d.ts +88 -0
- package/lib/cjs/resources/markets.js +49 -0
- package/lib/cjs/resources/merchants.d.ts +38 -0
- package/lib/cjs/resources/merchants.js +33 -0
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +56 -0
- package/lib/cjs/resources/order_amount_promotion_rules.js +25 -0
- package/lib/cjs/resources/order_copies.d.ts +48 -0
- package/lib/cjs/resources/order_copies.js +38 -0
- package/lib/cjs/resources/order_subscriptions.d.ts +70 -0
- package/lib/cjs/resources/order_subscriptions.js +49 -0
- package/lib/cjs/resources/order_validation_rules.d.ts +23 -0
- package/lib/cjs/resources/order_validation_rules.js +24 -0
- package/lib/cjs/resources/orders.d.ts +296 -0
- package/lib/cjs/resources/orders.js +105 -0
- package/lib/cjs/resources/organization.d.ts +32 -0
- package/lib/cjs/resources/organization.js +16 -0
- package/lib/cjs/resources/packages.d.ts +56 -0
- package/lib/cjs/resources/packages.js +37 -0
- package/lib/cjs/resources/parcel_line_items.d.ts +51 -0
- package/lib/cjs/resources/parcel_line_items.js +33 -0
- package/lib/cjs/resources/parcels.d.ts +119 -0
- package/lib/cjs/resources/parcels.js +45 -0
- package/lib/cjs/resources/payment_gateways.d.ts +21 -0
- package/lib/cjs/resources/payment_gateways.js +20 -0
- package/lib/cjs/resources/payment_methods.d.ts +72 -0
- package/lib/cjs/resources/payment_methods.js +37 -0
- package/lib/cjs/resources/paypal_gateways.d.ts +37 -0
- package/lib/cjs/resources/paypal_gateways.js +33 -0
- package/lib/cjs/resources/paypal_payments.d.ts +52 -0
- package/lib/cjs/resources/paypal_payments.js +33 -0
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +100 -0
- package/lib/cjs/resources/percentage_discount_promotions.js +57 -0
- package/lib/cjs/resources/price_lists.d.ts +39 -0
- package/lib/cjs/resources/price_lists.js +33 -0
- package/lib/cjs/resources/price_tiers.d.ts +28 -0
- package/lib/cjs/resources/price_tiers.js +24 -0
- package/lib/cjs/resources/price_volume_tiers.d.ts +46 -0
- package/lib/cjs/resources/price_volume_tiers.js +33 -0
- package/lib/cjs/resources/prices.d.ts +68 -0
- package/lib/cjs/resources/prices.js +45 -0
- package/lib/cjs/resources/promotion_rules.d.ts +23 -0
- package/lib/cjs/resources/promotion_rules.js +16 -0
- package/lib/cjs/resources/promotions.d.ts +41 -0
- package/lib/cjs/resources/promotions.js +36 -0
- package/lib/cjs/resources/refunds.d.ts +37 -0
- package/lib/cjs/resources/refunds.js +28 -0
- package/lib/cjs/resources/return_line_items.d.ts +49 -0
- package/lib/cjs/resources/return_line_items.js +33 -0
- package/lib/cjs/resources/returns.d.ts +75 -0
- package/lib/cjs/resources/returns.js +57 -0
- package/lib/cjs/resources/satispay_gateways.d.ts +39 -0
- package/lib/cjs/resources/satispay_gateways.js +33 -0
- package/lib/cjs/resources/satispay_payments.d.ts +43 -0
- package/lib/cjs/resources/satispay_payments.js +33 -0
- package/lib/cjs/resources/shipments.d.ts +93 -0
- package/lib/cjs/resources/shipments.js +75 -0
- package/lib/cjs/resources/shipping_categories.d.ts +33 -0
- package/lib/cjs/resources/shipping_categories.js +33 -0
- package/lib/cjs/resources/shipping_method_tiers.d.ts +28 -0
- package/lib/cjs/resources/shipping_method_tiers.js +24 -0
- package/lib/cjs/resources/shipping_methods.d.ts +107 -0
- package/lib/cjs/resources/shipping_methods.js +57 -0
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +46 -0
- package/lib/cjs/resources/shipping_weight_tiers.js +33 -0
- package/lib/cjs/resources/shipping_zones.d.ts +48 -0
- package/lib/cjs/resources/shipping_zones.js +29 -0
- package/lib/cjs/resources/sku_list_items.d.ts +47 -0
- package/lib/cjs/resources/sku_list_items.js +33 -0
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +68 -0
- package/lib/cjs/resources/sku_list_promotion_rules.js +33 -0
- package/lib/cjs/resources/sku_lists.d.ts +60 -0
- package/lib/cjs/resources/sku_lists.js +45 -0
- package/lib/cjs/resources/sku_options.d.ts +56 -0
- package/lib/cjs/resources/sku_options.js +33 -0
- package/lib/cjs/resources/skus.d.ts +78 -0
- package/lib/cjs/resources/skus.js +49 -0
- package/lib/cjs/resources/stock_items.d.ts +49 -0
- package/lib/cjs/resources/stock_items.js +37 -0
- package/lib/cjs/resources/stock_line_items.d.ts +29 -0
- package/lib/cjs/resources/stock_line_items.js +28 -0
- package/lib/cjs/resources/stock_locations.d.ts +57 -0
- package/lib/cjs/resources/stock_locations.js +49 -0
- package/lib/cjs/resources/stock_transfers.d.ts +74 -0
- package/lib/cjs/resources/stock_transfers.js +49 -0
- package/lib/cjs/resources/stripe_gateways.d.ts +41 -0
- package/lib/cjs/resources/stripe_gateways.js +33 -0
- package/lib/cjs/resources/stripe_payments.d.ts +47 -0
- package/lib/cjs/resources/stripe_payments.js +33 -0
- package/lib/cjs/resources/tax_calculators.d.ts +24 -0
- package/lib/cjs/resources/tax_calculators.js +24 -0
- package/lib/cjs/resources/tax_categories.d.ts +59 -0
- package/lib/cjs/resources/tax_categories.js +33 -0
- package/lib/cjs/resources/tax_rules.d.ts +69 -0
- package/lib/cjs/resources/tax_rules.js +29 -0
- package/lib/cjs/resources/taxjar_accounts.d.ts +43 -0
- package/lib/cjs/resources/taxjar_accounts.js +37 -0
- package/lib/cjs/resources/transactions.d.ts +31 -0
- package/lib/cjs/resources/transactions.js +20 -0
- package/lib/cjs/resources/voids.d.ts +37 -0
- package/lib/cjs/resources/voids.js +28 -0
- package/lib/cjs/resources/webhooks.d.ts +43 -0
- package/lib/cjs/resources/webhooks.js +29 -0
- package/lib/cjs/resources/wire_transfers.d.ts +33 -0
- package/lib/cjs/resources/wire_transfers.js +29 -0
- package/lib/cjs/static.d.ts +9 -0
- package/lib/cjs/static.js +45 -0
- package/lib/cjs/util.d.ts +10 -0
- package/lib/cjs/util.js +15 -0
- package/lib/esm/api.d.ts +128 -0
- package/lib/esm/api.js +226 -0
- package/lib/esm/client.d.ts +33 -0
- package/lib/esm/client.js +121 -0
- package/lib/esm/commercelayer.d.ts +139 -0
- package/lib/esm/commercelayer.js +201 -0
- package/lib/esm/common.d.ts +4 -0
- package/lib/esm/common.js +8 -0
- package/lib/esm/config.d.ts +12 -0
- package/lib/esm/config.js +12 -0
- package/lib/esm/debug.d.ts +3 -0
- package/lib/esm/debug.js +36 -0
- package/lib/esm/error.d.ts +28 -0
- package/lib/esm/error.js +35 -0
- package/lib/esm/index.d.ts +8 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/interceptor.d.ts +25 -0
- package/lib/esm/interceptor.js +1 -0
- package/lib/esm/jsonapi.d.ts +5 -0
- package/lib/esm/jsonapi.js +79 -0
- package/lib/esm/model.d.ts +111 -0
- package/lib/esm/model.js +2 -0
- package/lib/esm/query.d.ts +25 -0
- package/lib/esm/query.js +45 -0
- package/lib/esm/resource.d.ts +87 -0
- package/lib/esm/resource.js +163 -0
- package/lib/esm/resources/addresses.d.ts +88 -0
- package/lib/esm/resources/addresses.js +27 -0
- package/lib/esm/resources/adjustments.d.ts +35 -0
- package/lib/esm/resources/adjustments.js +23 -0
- package/lib/esm/resources/adyen_gateways.d.ts +56 -0
- package/lib/esm/resources/adyen_gateways.js +31 -0
- package/lib/esm/resources/adyen_payments.d.ts +46 -0
- package/lib/esm/resources/adyen_payments.js +31 -0
- package/lib/esm/resources/application.d.ts +21 -0
- package/lib/esm/resources/application.js +14 -0
- package/lib/esm/resources/attachments.d.ts +156 -0
- package/lib/esm/resources/attachments.js +23 -0
- package/lib/esm/resources/authorizations.d.ts +60 -0
- package/lib/esm/resources/authorizations.js +33 -0
- package/lib/esm/resources/avalara_accounts.d.ts +55 -0
- package/lib/esm/resources/avalara_accounts.js +35 -0
- package/lib/esm/resources/axerve_gateways.d.ts +43 -0
- package/lib/esm/resources/axerve_gateways.js +31 -0
- package/lib/esm/resources/axerve_payments.d.ts +46 -0
- package/lib/esm/resources/axerve_payments.js +31 -0
- package/lib/esm/resources/billing_info_validation_rules.d.ts +35 -0
- package/lib/esm/resources/billing_info_validation_rules.js +31 -0
- package/lib/esm/resources/bing_geocoders.d.ts +35 -0
- package/lib/esm/resources/bing_geocoders.js +31 -0
- package/lib/esm/resources/braintree_gateways.d.ts +56 -0
- package/lib/esm/resources/braintree_gateways.js +31 -0
- package/lib/esm/resources/braintree_payments.d.ts +48 -0
- package/lib/esm/resources/braintree_payments.js +31 -0
- package/lib/esm/resources/bundles.d.ts +76 -0
- package/lib/esm/resources/bundles.js +39 -0
- package/lib/esm/resources/captures.d.ts +51 -0
- package/lib/esm/resources/captures.js +33 -0
- package/lib/esm/resources/carrier_accounts.d.ts +26 -0
- package/lib/esm/resources/carrier_accounts.js +22 -0
- package/lib/esm/resources/checkout_com_gateways.d.ts +45 -0
- package/lib/esm/resources/checkout_com_gateways.js +31 -0
- package/lib/esm/resources/checkout_com_payments.d.ts +59 -0
- package/lib/esm/resources/checkout_com_payments.js +31 -0
- package/lib/esm/resources/cleanups.d.ts +36 -0
- package/lib/esm/resources/cleanups.js +24 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +59 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +27 -0
- package/lib/esm/resources/coupon_recipients.d.ts +44 -0
- package/lib/esm/resources/coupon_recipients.js +31 -0
- package/lib/esm/resources/coupons.d.ts +45 -0
- package/lib/esm/resources/coupons.js +27 -0
- package/lib/esm/resources/customer_addresses.d.ts +44 -0
- package/lib/esm/resources/customer_addresses.js +35 -0
- package/lib/esm/resources/customer_groups.d.ts +36 -0
- package/lib/esm/resources/customer_groups.js +35 -0
- package/lib/esm/resources/customer_password_resets.d.ts +36 -0
- package/lib/esm/resources/customer_password_resets.js +31 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +78 -0
- package/lib/esm/resources/customer_payment_sources.js +27 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +31 -0
- package/lib/esm/resources/customer_subscriptions.js +31 -0
- package/lib/esm/resources/customers.d.ts +66 -0
- package/lib/esm/resources/customers.js +63 -0
- package/lib/esm/resources/delivery_lead_times.d.ts +51 -0
- package/lib/esm/resources/delivery_lead_times.js +35 -0
- package/lib/esm/resources/event_callbacks.d.ts +24 -0
- package/lib/esm/resources/event_callbacks.js +18 -0
- package/lib/esm/resources/events.d.ts +24 -0
- package/lib/esm/resources/events.js +22 -0
- package/lib/esm/resources/exports.d.ts +40 -0
- package/lib/esm/resources/exports.js +24 -0
- package/lib/esm/resources/external_gateways.d.ts +49 -0
- package/lib/esm/resources/external_gateways.js +31 -0
- package/lib/esm/resources/external_payments.d.ts +44 -0
- package/lib/esm/resources/external_payments.js +35 -0
- package/lib/esm/resources/external_promotions.d.ts +90 -0
- package/lib/esm/resources/external_promotions.js +47 -0
- package/lib/esm/resources/external_tax_calculators.d.ts +37 -0
- package/lib/esm/resources/external_tax_calculators.js +31 -0
- package/lib/esm/resources/fixed_amount_promotions.d.ts +91 -0
- package/lib/esm/resources/fixed_amount_promotions.js +47 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +102 -0
- package/lib/esm/resources/fixed_price_promotions.js +55 -0
- package/lib/esm/resources/free_gift_promotions.d.ts +100 -0
- package/lib/esm/resources/free_gift_promotions.js +55 -0
- package/lib/esm/resources/free_shipping_promotions.d.ts +83 -0
- package/lib/esm/resources/free_shipping_promotions.js +43 -0
- package/lib/esm/resources/geocoders.d.ts +24 -0
- package/lib/esm/resources/geocoders.js +22 -0
- package/lib/esm/resources/gift_card_recipients.d.ts +44 -0
- package/lib/esm/resources/gift_card_recipients.js +31 -0
- package/lib/esm/resources/gift_cards.d.ts +85 -0
- package/lib/esm/resources/gift_cards.js +39 -0
- package/lib/esm/resources/google_geocoders.d.ts +35 -0
- package/lib/esm/resources/google_geocoders.js +31 -0
- package/lib/esm/resources/imports.d.ts +45 -0
- package/lib/esm/resources/imports.js +24 -0
- package/lib/esm/resources/in_stock_subscriptions.d.ts +62 -0
- package/lib/esm/resources/in_stock_subscriptions.js +39 -0
- package/lib/esm/resources/inventory_models.d.ts +42 -0
- package/lib/esm/resources/inventory_models.js +35 -0
- package/lib/esm/resources/inventory_return_locations.d.ts +43 -0
- package/lib/esm/resources/inventory_return_locations.js +31 -0
- package/lib/esm/resources/inventory_stock_locations.d.ts +46 -0
- package/lib/esm/resources/inventory_stock_locations.js +31 -0
- package/lib/esm/resources/klarna_gateways.d.ts +44 -0
- package/lib/esm/resources/klarna_gateways.js +31 -0
- package/lib/esm/resources/klarna_payments.d.ts +46 -0
- package/lib/esm/resources/klarna_payments.js +31 -0
- package/lib/esm/resources/line_item_options.d.ts +57 -0
- package/lib/esm/resources/line_item_options.js +31 -0
- package/lib/esm/resources/line_items.d.ts +126 -0
- package/lib/esm/resources/line_items.js +39 -0
- package/lib/esm/resources/manual_gateways.d.ts +30 -0
- package/lib/esm/resources/manual_gateways.js +27 -0
- package/lib/esm/resources/manual_tax_calculators.d.ts +41 -0
- package/lib/esm/resources/manual_tax_calculators.js +35 -0
- package/lib/esm/resources/markets.d.ts +88 -0
- package/lib/esm/resources/markets.js +47 -0
- package/lib/esm/resources/merchants.d.ts +38 -0
- package/lib/esm/resources/merchants.js +31 -0
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +56 -0
- package/lib/esm/resources/order_amount_promotion_rules.js +23 -0
- package/lib/esm/resources/order_copies.d.ts +48 -0
- package/lib/esm/resources/order_copies.js +36 -0
- package/lib/esm/resources/order_subscriptions.d.ts +70 -0
- package/lib/esm/resources/order_subscriptions.js +47 -0
- package/lib/esm/resources/order_validation_rules.d.ts +23 -0
- package/lib/esm/resources/order_validation_rules.js +22 -0
- package/lib/esm/resources/orders.d.ts +296 -0
- package/lib/esm/resources/orders.js +103 -0
- package/lib/esm/resources/organization.d.ts +32 -0
- package/lib/esm/resources/organization.js +14 -0
- package/lib/esm/resources/packages.d.ts +56 -0
- package/lib/esm/resources/packages.js +35 -0
- package/lib/esm/resources/parcel_line_items.d.ts +51 -0
- package/lib/esm/resources/parcel_line_items.js +31 -0
- package/lib/esm/resources/parcels.d.ts +119 -0
- package/lib/esm/resources/parcels.js +43 -0
- package/lib/esm/resources/payment_gateways.d.ts +21 -0
- package/lib/esm/resources/payment_gateways.js +18 -0
- package/lib/esm/resources/payment_methods.d.ts +72 -0
- package/lib/esm/resources/payment_methods.js +35 -0
- package/lib/esm/resources/paypal_gateways.d.ts +37 -0
- package/lib/esm/resources/paypal_gateways.js +31 -0
- package/lib/esm/resources/paypal_payments.d.ts +52 -0
- package/lib/esm/resources/paypal_payments.js +31 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +100 -0
- package/lib/esm/resources/percentage_discount_promotions.js +55 -0
- package/lib/esm/resources/price_lists.d.ts +39 -0
- package/lib/esm/resources/price_lists.js +31 -0
- package/lib/esm/resources/price_tiers.d.ts +28 -0
- package/lib/esm/resources/price_tiers.js +22 -0
- package/lib/esm/resources/price_volume_tiers.d.ts +46 -0
- package/lib/esm/resources/price_volume_tiers.js +31 -0
- package/lib/esm/resources/prices.d.ts +68 -0
- package/lib/esm/resources/prices.js +43 -0
- package/lib/esm/resources/promotion_rules.d.ts +23 -0
- package/lib/esm/resources/promotion_rules.js +14 -0
- package/lib/esm/resources/promotions.d.ts +41 -0
- package/lib/esm/resources/promotions.js +34 -0
- package/lib/esm/resources/refunds.d.ts +37 -0
- package/lib/esm/resources/refunds.js +26 -0
- package/lib/esm/resources/return_line_items.d.ts +49 -0
- package/lib/esm/resources/return_line_items.js +31 -0
- package/lib/esm/resources/returns.d.ts +75 -0
- package/lib/esm/resources/returns.js +55 -0
- package/lib/esm/resources/satispay_gateways.d.ts +39 -0
- package/lib/esm/resources/satispay_gateways.js +31 -0
- package/lib/esm/resources/satispay_payments.d.ts +43 -0
- package/lib/esm/resources/satispay_payments.js +31 -0
- package/lib/esm/resources/shipments.d.ts +93 -0
- package/lib/esm/resources/shipments.js +73 -0
- package/lib/esm/resources/shipping_categories.d.ts +33 -0
- package/lib/esm/resources/shipping_categories.js +31 -0
- package/lib/esm/resources/shipping_method_tiers.d.ts +28 -0
- package/lib/esm/resources/shipping_method_tiers.js +22 -0
- package/lib/esm/resources/shipping_methods.d.ts +107 -0
- package/lib/esm/resources/shipping_methods.js +55 -0
- package/lib/esm/resources/shipping_weight_tiers.d.ts +46 -0
- package/lib/esm/resources/shipping_weight_tiers.js +31 -0
- package/lib/esm/resources/shipping_zones.d.ts +48 -0
- package/lib/esm/resources/shipping_zones.js +27 -0
- package/lib/esm/resources/sku_list_items.d.ts +47 -0
- package/lib/esm/resources/sku_list_items.js +31 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +68 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +31 -0
- package/lib/esm/resources/sku_lists.d.ts +60 -0
- package/lib/esm/resources/sku_lists.js +43 -0
- package/lib/esm/resources/sku_options.d.ts +56 -0
- package/lib/esm/resources/sku_options.js +31 -0
- package/lib/esm/resources/skus.d.ts +78 -0
- package/lib/esm/resources/skus.js +47 -0
- package/lib/esm/resources/stock_items.d.ts +49 -0
- package/lib/esm/resources/stock_items.js +35 -0
- package/lib/esm/resources/stock_line_items.d.ts +29 -0
- package/lib/esm/resources/stock_line_items.js +26 -0
- package/lib/esm/resources/stock_locations.d.ts +57 -0
- package/lib/esm/resources/stock_locations.js +47 -0
- package/lib/esm/resources/stock_transfers.d.ts +74 -0
- package/lib/esm/resources/stock_transfers.js +47 -0
- package/lib/esm/resources/stripe_gateways.d.ts +41 -0
- package/lib/esm/resources/stripe_gateways.js +31 -0
- package/lib/esm/resources/stripe_payments.d.ts +47 -0
- package/lib/esm/resources/stripe_payments.js +31 -0
- package/lib/esm/resources/tax_calculators.d.ts +24 -0
- package/lib/esm/resources/tax_calculators.js +22 -0
- package/lib/esm/resources/tax_categories.d.ts +59 -0
- package/lib/esm/resources/tax_categories.js +31 -0
- package/lib/esm/resources/tax_rules.d.ts +69 -0
- package/lib/esm/resources/tax_rules.js +27 -0
- package/lib/esm/resources/taxjar_accounts.d.ts +43 -0
- package/lib/esm/resources/taxjar_accounts.js +35 -0
- package/lib/esm/resources/transactions.d.ts +31 -0
- package/lib/esm/resources/transactions.js +18 -0
- package/lib/esm/resources/voids.d.ts +37 -0
- package/lib/esm/resources/voids.js +26 -0
- package/lib/esm/resources/webhooks.d.ts +43 -0
- package/lib/esm/resources/webhooks.js +27 -0
- package/lib/esm/resources/wire_transfers.d.ts +33 -0
- package/lib/esm/resources/wire_transfers.js +27 -0
- package/lib/esm/static.d.ts +9 -0
- package/lib/esm/static.js +19 -0
- package/lib/esm/util.d.ts +10 -0
- package/lib/esm/util.js +11 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +27 -36
- package/lib/api.d.ts +0 -1
- package/lib/api.js +0 -1
- package/lib/client.d.ts +0 -2
- package/lib/client.js +0 -1
- package/lib/commercelayer.d.ts +0 -1
- package/lib/commercelayer.js +0 -1
- package/lib/common.d.ts +0 -1
- package/lib/common.js +0 -1
- package/lib/config.d.ts +0 -1
- package/lib/config.js +0 -1
- package/lib/debug.d.ts +0 -1
- package/lib/debug.js +0 -1
- package/lib/error.d.ts +0 -1
- package/lib/error.js +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/interceptor.d.ts +0 -1
- package/lib/interceptor.js +0 -1
- package/lib/jsonapi.d.ts +0 -1
- package/lib/jsonapi.js +0 -1
- package/lib/model.d.ts +0 -1
- package/lib/model.js +0 -1
- package/lib/query.d.ts +0 -1
- package/lib/query.js +0 -1
- package/lib/resource.d.ts +0 -1
- package/lib/resource.js +0 -1
- package/lib/resources/addresses.d.ts +0 -1
- package/lib/resources/addresses.js +0 -1
- package/lib/resources/adjustments.d.ts +0 -1
- package/lib/resources/adjustments.js +0 -1
- package/lib/resources/adyen_gateways.d.ts +0 -1
- package/lib/resources/adyen_gateways.js +0 -1
- package/lib/resources/adyen_payments.d.ts +0 -1
- package/lib/resources/adyen_payments.js +0 -1
- package/lib/resources/application.d.ts +0 -1
- package/lib/resources/application.js +0 -1
- package/lib/resources/attachments.d.ts +0 -1
- package/lib/resources/attachments.js +0 -1
- package/lib/resources/authorizations.d.ts +0 -1
- package/lib/resources/authorizations.js +0 -1
- package/lib/resources/avalara_accounts.d.ts +0 -1
- package/lib/resources/avalara_accounts.js +0 -1
- package/lib/resources/billing_info_validation_rules.d.ts +0 -1
- package/lib/resources/billing_info_validation_rules.js +0 -1
- package/lib/resources/bing_geocoders.d.ts +0 -1
- package/lib/resources/bing_geocoders.js +0 -1
- package/lib/resources/braintree_gateways.d.ts +0 -1
- package/lib/resources/braintree_gateways.js +0 -1
- package/lib/resources/braintree_payments.d.ts +0 -1
- package/lib/resources/braintree_payments.js +0 -1
- package/lib/resources/bundles.d.ts +0 -1
- package/lib/resources/bundles.js +0 -1
- package/lib/resources/captures.d.ts +0 -1
- package/lib/resources/captures.js +0 -1
- package/lib/resources/carrier_accounts.d.ts +0 -1
- package/lib/resources/carrier_accounts.js +0 -1
- package/lib/resources/checkout_com_gateways.d.ts +0 -1
- package/lib/resources/checkout_com_gateways.js +0 -1
- package/lib/resources/checkout_com_payments.d.ts +0 -1
- package/lib/resources/checkout_com_payments.js +0 -1
- package/lib/resources/coupon_codes_promotion_rules.d.ts +0 -1
- package/lib/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/resources/coupon_recipients.d.ts +0 -1
- package/lib/resources/coupon_recipients.js +0 -1
- package/lib/resources/coupons.d.ts +0 -1
- package/lib/resources/coupons.js +0 -1
- package/lib/resources/customer_addresses.d.ts +0 -1
- package/lib/resources/customer_addresses.js +0 -1
- package/lib/resources/customer_groups.d.ts +0 -1
- package/lib/resources/customer_groups.js +0 -1
- package/lib/resources/customer_password_resets.d.ts +0 -1
- package/lib/resources/customer_password_resets.js +0 -1
- package/lib/resources/customer_payment_sources.d.ts +0 -1
- package/lib/resources/customer_payment_sources.js +0 -1
- package/lib/resources/customer_subscriptions.d.ts +0 -1
- package/lib/resources/customer_subscriptions.js +0 -1
- package/lib/resources/customers.d.ts +0 -1
- package/lib/resources/customers.js +0 -1
- package/lib/resources/delivery_lead_times.d.ts +0 -1
- package/lib/resources/delivery_lead_times.js +0 -1
- package/lib/resources/event_callbacks.d.ts +0 -1
- package/lib/resources/event_callbacks.js +0 -1
- package/lib/resources/external_gateways.d.ts +0 -1
- package/lib/resources/external_gateways.js +0 -1
- package/lib/resources/external_payments.d.ts +0 -1
- package/lib/resources/external_payments.js +0 -1
- package/lib/resources/external_promotions.d.ts +0 -1
- package/lib/resources/external_promotions.js +0 -1
- package/lib/resources/external_tax_calculators.d.ts +0 -1
- package/lib/resources/external_tax_calculators.js +0 -1
- package/lib/resources/fixed_amount_promotions.d.ts +0 -1
- package/lib/resources/fixed_amount_promotions.js +0 -1
- package/lib/resources/fixed_price_promotions.d.ts +0 -1
- package/lib/resources/fixed_price_promotions.js +0 -1
- package/lib/resources/free_gift_promotions.d.ts +0 -1
- package/lib/resources/free_gift_promotions.js +0 -1
- package/lib/resources/free_shipping_promotions.d.ts +0 -1
- package/lib/resources/free_shipping_promotions.js +0 -1
- package/lib/resources/geocoders.d.ts +0 -1
- package/lib/resources/geocoders.js +0 -1
- package/lib/resources/gift_card_recipients.d.ts +0 -1
- package/lib/resources/gift_card_recipients.js +0 -1
- package/lib/resources/gift_cards.d.ts +0 -1
- package/lib/resources/gift_cards.js +0 -1
- package/lib/resources/google_geocoders.d.ts +0 -1
- package/lib/resources/google_geocoders.js +0 -1
- package/lib/resources/imports.d.ts +0 -1
- package/lib/resources/imports.js +0 -1
- package/lib/resources/in_stock_subscriptions.d.ts +0 -1
- package/lib/resources/in_stock_subscriptions.js +0 -1
- package/lib/resources/inventory_models.d.ts +0 -1
- package/lib/resources/inventory_models.js +0 -1
- package/lib/resources/inventory_return_locations.d.ts +0 -1
- package/lib/resources/inventory_return_locations.js +0 -1
- package/lib/resources/inventory_stock_locations.d.ts +0 -1
- package/lib/resources/inventory_stock_locations.js +0 -1
- package/lib/resources/klarna_gateways.d.ts +0 -1
- package/lib/resources/klarna_gateways.js +0 -1
- package/lib/resources/klarna_payments.d.ts +0 -1
- package/lib/resources/klarna_payments.js +0 -1
- package/lib/resources/line_item_options.d.ts +0 -1
- package/lib/resources/line_item_options.js +0 -1
- package/lib/resources/line_items.d.ts +0 -1
- package/lib/resources/line_items.js +0 -1
- package/lib/resources/manual_gateways.d.ts +0 -1
- package/lib/resources/manual_gateways.js +0 -1
- package/lib/resources/manual_tax_calculators.d.ts +0 -1
- package/lib/resources/manual_tax_calculators.js +0 -1
- package/lib/resources/markets.d.ts +0 -1
- package/lib/resources/markets.js +0 -1
- package/lib/resources/merchants.d.ts +0 -1
- package/lib/resources/merchants.js +0 -1
- package/lib/resources/order_amount_promotion_rules.d.ts +0 -1
- package/lib/resources/order_amount_promotion_rules.js +0 -1
- package/lib/resources/order_copies.d.ts +0 -1
- package/lib/resources/order_copies.js +0 -1
- package/lib/resources/order_subscriptions.d.ts +0 -1
- package/lib/resources/order_subscriptions.js +0 -1
- package/lib/resources/order_validation_rules.d.ts +0 -1
- package/lib/resources/order_validation_rules.js +0 -1
- package/lib/resources/orders.d.ts +0 -1
- package/lib/resources/orders.js +0 -1
- package/lib/resources/organization.d.ts +0 -1
- package/lib/resources/organization.js +0 -1
- package/lib/resources/packages.d.ts +0 -1
- package/lib/resources/packages.js +0 -1
- package/lib/resources/parcel_line_items.d.ts +0 -1
- package/lib/resources/parcel_line_items.js +0 -1
- package/lib/resources/parcels.d.ts +0 -1
- package/lib/resources/parcels.js +0 -1
- package/lib/resources/payment_gateways.d.ts +0 -1
- package/lib/resources/payment_gateways.js +0 -1
- package/lib/resources/payment_methods.d.ts +0 -1
- package/lib/resources/payment_methods.js +0 -1
- package/lib/resources/paypal_gateways.d.ts +0 -1
- package/lib/resources/paypal_gateways.js +0 -1
- package/lib/resources/paypal_payments.d.ts +0 -1
- package/lib/resources/paypal_payments.js +0 -1
- package/lib/resources/percentage_discount_promotions.d.ts +0 -1
- package/lib/resources/percentage_discount_promotions.js +0 -1
- package/lib/resources/price_lists.d.ts +0 -1
- package/lib/resources/price_lists.js +0 -1
- package/lib/resources/prices.d.ts +0 -1
- package/lib/resources/prices.js +0 -1
- package/lib/resources/promotion_rules.d.ts +0 -1
- package/lib/resources/promotion_rules.js +0 -1
- package/lib/resources/promotions.d.ts +0 -1
- package/lib/resources/promotions.js +0 -1
- package/lib/resources/refunds.d.ts +0 -1
- package/lib/resources/refunds.js +0 -1
- package/lib/resources/return_line_items.d.ts +0 -1
- package/lib/resources/return_line_items.js +0 -1
- package/lib/resources/returns.d.ts +0 -1
- package/lib/resources/returns.js +0 -1
- package/lib/resources/shipments.d.ts +0 -1
- package/lib/resources/shipments.js +0 -1
- package/lib/resources/shipping_categories.d.ts +0 -1
- package/lib/resources/shipping_categories.js +0 -1
- package/lib/resources/shipping_methods.d.ts +0 -1
- package/lib/resources/shipping_methods.js +0 -1
- package/lib/resources/shipping_zones.d.ts +0 -1
- package/lib/resources/shipping_zones.js +0 -1
- package/lib/resources/sku_list_items.d.ts +0 -1
- package/lib/resources/sku_list_items.js +0 -1
- package/lib/resources/sku_list_promotion_rules.d.ts +0 -1
- package/lib/resources/sku_list_promotion_rules.js +0 -1
- package/lib/resources/sku_lists.d.ts +0 -1
- package/lib/resources/sku_lists.js +0 -1
- package/lib/resources/sku_options.d.ts +0 -1
- package/lib/resources/sku_options.js +0 -1
- package/lib/resources/skus.d.ts +0 -1
- package/lib/resources/skus.js +0 -1
- package/lib/resources/stock_items.d.ts +0 -1
- package/lib/resources/stock_items.js +0 -1
- package/lib/resources/stock_line_items.d.ts +0 -1
- package/lib/resources/stock_line_items.js +0 -1
- package/lib/resources/stock_locations.d.ts +0 -1
- package/lib/resources/stock_locations.js +0 -1
- package/lib/resources/stock_transfers.d.ts +0 -1
- package/lib/resources/stock_transfers.js +0 -1
- package/lib/resources/stripe_gateways.d.ts +0 -1
- package/lib/resources/stripe_gateways.js +0 -1
- package/lib/resources/stripe_payments.d.ts +0 -1
- package/lib/resources/stripe_payments.js +0 -1
- package/lib/resources/tax_calculators.d.ts +0 -1
- package/lib/resources/tax_calculators.js +0 -1
- package/lib/resources/tax_categories.d.ts +0 -1
- package/lib/resources/tax_categories.js +0 -1
- package/lib/resources/tax_rules.d.ts +0 -1
- package/lib/resources/tax_rules.js +0 -1
- package/lib/resources/taxjar_accounts.d.ts +0 -1
- package/lib/resources/taxjar_accounts.js +0 -1
- package/lib/resources/transactions.d.ts +0 -1
- package/lib/resources/transactions.js +0 -1
- package/lib/resources/voids.d.ts +0 -1
- package/lib/resources/voids.js +0 -1
- package/lib/resources/webhooks.d.ts +0 -1
- package/lib/resources/webhooks.js +0 -1
- package/lib/resources/wire_transfers.d.ts +0 -1
- package/lib/resources/wire_transfers.js +0 -1
- package/lib/static.d.ts +0 -1
- package/lib/static.js +0 -1
- package/lib/util.d.ts +0 -2
- package/lib/util.js +0 -1
package/lib/esm/api.js
ADDED
@@ -0,0 +1,226 @@
|
|
1
|
+
// ##__API_RESOURCES_START__##
|
2
|
+
// ##__API_RESOURCES_TEMPLATE:: export { default as ##__RESOURCE_CLASS__## } from './resources/##__RESOURCE_TYPE__##'
|
3
|
+
/**
|
4
|
+
* ©2023 Commerce Layer Inc.
|
5
|
+
**/
|
6
|
+
export { default as Addresses } from './resources/addresses';
|
7
|
+
export { default as Adjustments } from './resources/adjustments';
|
8
|
+
export { default as AdyenGateways } from './resources/adyen_gateways';
|
9
|
+
export { default as AdyenPayments } from './resources/adyen_payments';
|
10
|
+
export { default as Applications } from './resources/application';
|
11
|
+
export { default as Attachments } from './resources/attachments';
|
12
|
+
export { default as Authorizations } from './resources/authorizations';
|
13
|
+
export { default as AvalaraAccounts } from './resources/avalara_accounts';
|
14
|
+
export { default as AxerveGateways } from './resources/axerve_gateways';
|
15
|
+
export { default as AxervePayments } from './resources/axerve_payments';
|
16
|
+
export { default as BillingInfoValidationRules } from './resources/billing_info_validation_rules';
|
17
|
+
export { default as BingGeocoders } from './resources/bing_geocoders';
|
18
|
+
export { default as BraintreeGateways } from './resources/braintree_gateways';
|
19
|
+
export { default as BraintreePayments } from './resources/braintree_payments';
|
20
|
+
export { default as Bundles } from './resources/bundles';
|
21
|
+
export { default as Captures } from './resources/captures';
|
22
|
+
export { default as CarrierAccounts } from './resources/carrier_accounts';
|
23
|
+
export { default as CheckoutComGateways } from './resources/checkout_com_gateways';
|
24
|
+
export { default as CheckoutComPayments } from './resources/checkout_com_payments';
|
25
|
+
export { default as Cleanups } from './resources/cleanups';
|
26
|
+
export { default as CouponCodesPromotionRules } from './resources/coupon_codes_promotion_rules';
|
27
|
+
export { default as CouponRecipients } from './resources/coupon_recipients';
|
28
|
+
export { default as Coupons } from './resources/coupons';
|
29
|
+
export { default as CustomerAddresses } from './resources/customer_addresses';
|
30
|
+
export { default as CustomerGroups } from './resources/customer_groups';
|
31
|
+
export { default as CustomerPasswordResets } from './resources/customer_password_resets';
|
32
|
+
export { default as CustomerPaymentSources } from './resources/customer_payment_sources';
|
33
|
+
export { default as CustomerSubscriptions } from './resources/customer_subscriptions';
|
34
|
+
export { default as Customers } from './resources/customers';
|
35
|
+
export { default as DeliveryLeadTimes } from './resources/delivery_lead_times';
|
36
|
+
export { default as EventCallbacks } from './resources/event_callbacks';
|
37
|
+
export { default as Events } from './resources/events';
|
38
|
+
export { default as Exports } from './resources/exports';
|
39
|
+
export { default as ExternalGateways } from './resources/external_gateways';
|
40
|
+
export { default as ExternalPayments } from './resources/external_payments';
|
41
|
+
export { default as ExternalPromotions } from './resources/external_promotions';
|
42
|
+
export { default as ExternalTaxCalculators } from './resources/external_tax_calculators';
|
43
|
+
export { default as FixedAmountPromotions } from './resources/fixed_amount_promotions';
|
44
|
+
export { default as FixedPricePromotions } from './resources/fixed_price_promotions';
|
45
|
+
export { default as FreeGiftPromotions } from './resources/free_gift_promotions';
|
46
|
+
export { default as FreeShippingPromotions } from './resources/free_shipping_promotions';
|
47
|
+
export { default as Geocoders } from './resources/geocoders';
|
48
|
+
export { default as GiftCardRecipients } from './resources/gift_card_recipients';
|
49
|
+
export { default as GiftCards } from './resources/gift_cards';
|
50
|
+
export { default as GoogleGeocoders } from './resources/google_geocoders';
|
51
|
+
export { default as Imports } from './resources/imports';
|
52
|
+
export { default as InStockSubscriptions } from './resources/in_stock_subscriptions';
|
53
|
+
export { default as InventoryModels } from './resources/inventory_models';
|
54
|
+
export { default as InventoryReturnLocations } from './resources/inventory_return_locations';
|
55
|
+
export { default as InventoryStockLocations } from './resources/inventory_stock_locations';
|
56
|
+
export { default as KlarnaGateways } from './resources/klarna_gateways';
|
57
|
+
export { default as KlarnaPayments } from './resources/klarna_payments';
|
58
|
+
export { default as LineItemOptions } from './resources/line_item_options';
|
59
|
+
export { default as LineItems } from './resources/line_items';
|
60
|
+
export { default as ManualGateways } from './resources/manual_gateways';
|
61
|
+
export { default as ManualTaxCalculators } from './resources/manual_tax_calculators';
|
62
|
+
export { default as Markets } from './resources/markets';
|
63
|
+
export { default as Merchants } from './resources/merchants';
|
64
|
+
export { default as OrderAmountPromotionRules } from './resources/order_amount_promotion_rules';
|
65
|
+
export { default as OrderCopies } from './resources/order_copies';
|
66
|
+
export { default as OrderSubscriptions } from './resources/order_subscriptions';
|
67
|
+
export { default as OrderValidationRules } from './resources/order_validation_rules';
|
68
|
+
export { default as Orders } from './resources/orders';
|
69
|
+
export { default as Organizations } from './resources/organization';
|
70
|
+
export { default as Packages } from './resources/packages';
|
71
|
+
export { default as ParcelLineItems } from './resources/parcel_line_items';
|
72
|
+
export { default as Parcels } from './resources/parcels';
|
73
|
+
export { default as PaymentGateways } from './resources/payment_gateways';
|
74
|
+
export { default as PaymentMethods } from './resources/payment_methods';
|
75
|
+
export { default as PaypalGateways } from './resources/paypal_gateways';
|
76
|
+
export { default as PaypalPayments } from './resources/paypal_payments';
|
77
|
+
export { default as PercentageDiscountPromotions } from './resources/percentage_discount_promotions';
|
78
|
+
export { default as PriceLists } from './resources/price_lists';
|
79
|
+
export { default as PriceTiers } from './resources/price_tiers';
|
80
|
+
export { default as PriceVolumeTiers } from './resources/price_volume_tiers';
|
81
|
+
export { default as Prices } from './resources/prices';
|
82
|
+
export { default as PromotionRules } from './resources/promotion_rules';
|
83
|
+
export { default as Promotions } from './resources/promotions';
|
84
|
+
export { default as Refunds } from './resources/refunds';
|
85
|
+
export { default as ReturnLineItems } from './resources/return_line_items';
|
86
|
+
export { default as Returns } from './resources/returns';
|
87
|
+
export { default as SatispayGateways } from './resources/satispay_gateways';
|
88
|
+
export { default as SatispayPayments } from './resources/satispay_payments';
|
89
|
+
export { default as Shipments } from './resources/shipments';
|
90
|
+
export { default as ShippingCategories } from './resources/shipping_categories';
|
91
|
+
export { default as ShippingMethodTiers } from './resources/shipping_method_tiers';
|
92
|
+
export { default as ShippingMethods } from './resources/shipping_methods';
|
93
|
+
export { default as ShippingWeightTiers } from './resources/shipping_weight_tiers';
|
94
|
+
export { default as ShippingZones } from './resources/shipping_zones';
|
95
|
+
export { default as SkuListItems } from './resources/sku_list_items';
|
96
|
+
export { default as SkuListPromotionRules } from './resources/sku_list_promotion_rules';
|
97
|
+
export { default as SkuLists } from './resources/sku_lists';
|
98
|
+
export { default as SkuOptions } from './resources/sku_options';
|
99
|
+
export { default as Skus } from './resources/skus';
|
100
|
+
export { default as StockItems } from './resources/stock_items';
|
101
|
+
export { default as StockLineItems } from './resources/stock_line_items';
|
102
|
+
export { default as StockLocations } from './resources/stock_locations';
|
103
|
+
export { default as StockTransfers } from './resources/stock_transfers';
|
104
|
+
export { default as StripeGateways } from './resources/stripe_gateways';
|
105
|
+
export { default as StripePayments } from './resources/stripe_payments';
|
106
|
+
export { default as TaxCalculators } from './resources/tax_calculators';
|
107
|
+
export { default as TaxCategories } from './resources/tax_categories';
|
108
|
+
export { default as TaxRules } from './resources/tax_rules';
|
109
|
+
export { default as TaxjarAccounts } from './resources/taxjar_accounts';
|
110
|
+
export { default as Transactions } from './resources/transactions';
|
111
|
+
export { default as Voids } from './resources/voids';
|
112
|
+
export { default as Webhooks } from './resources/webhooks';
|
113
|
+
export { default as WireTransfers } from './resources/wire_transfers';
|
114
|
+
// ##__API_RESOURCE_TYPES_STOP__##
|
115
|
+
export const resourceList = [
|
116
|
+
// ##__API_RESOURCE_LIST_START__##
|
117
|
+
'addresses',
|
118
|
+
'adjustments',
|
119
|
+
'adyen_gateways',
|
120
|
+
'adyen_payments',
|
121
|
+
'application',
|
122
|
+
'attachments',
|
123
|
+
'authorizations',
|
124
|
+
'avalara_accounts',
|
125
|
+
'axerve_gateways',
|
126
|
+
'axerve_payments',
|
127
|
+
'billing_info_validation_rules',
|
128
|
+
'bing_geocoders',
|
129
|
+
'braintree_gateways',
|
130
|
+
'braintree_payments',
|
131
|
+
'bundles',
|
132
|
+
'captures',
|
133
|
+
'carrier_accounts',
|
134
|
+
'checkout_com_gateways',
|
135
|
+
'checkout_com_payments',
|
136
|
+
'cleanups',
|
137
|
+
'coupon_codes_promotion_rules',
|
138
|
+
'coupon_recipients',
|
139
|
+
'coupons',
|
140
|
+
'customer_addresses',
|
141
|
+
'customer_groups',
|
142
|
+
'customer_password_resets',
|
143
|
+
'customer_payment_sources',
|
144
|
+
'customer_subscriptions',
|
145
|
+
'customers',
|
146
|
+
'delivery_lead_times',
|
147
|
+
'event_callbacks',
|
148
|
+
'events',
|
149
|
+
'exports',
|
150
|
+
'external_gateways',
|
151
|
+
'external_payments',
|
152
|
+
'external_promotions',
|
153
|
+
'external_tax_calculators',
|
154
|
+
'fixed_amount_promotions',
|
155
|
+
'fixed_price_promotions',
|
156
|
+
'free_gift_promotions',
|
157
|
+
'free_shipping_promotions',
|
158
|
+
'geocoders',
|
159
|
+
'gift_card_recipients',
|
160
|
+
'gift_cards',
|
161
|
+
'google_geocoders',
|
162
|
+
'imports',
|
163
|
+
'in_stock_subscriptions',
|
164
|
+
'inventory_models',
|
165
|
+
'inventory_return_locations',
|
166
|
+
'inventory_stock_locations',
|
167
|
+
'klarna_gateways',
|
168
|
+
'klarna_payments',
|
169
|
+
'line_item_options',
|
170
|
+
'line_items',
|
171
|
+
'manual_gateways',
|
172
|
+
'manual_tax_calculators',
|
173
|
+
'markets',
|
174
|
+
'merchants',
|
175
|
+
'order_amount_promotion_rules',
|
176
|
+
'order_copies',
|
177
|
+
'order_subscriptions',
|
178
|
+
'order_validation_rules',
|
179
|
+
'orders',
|
180
|
+
'organization',
|
181
|
+
'packages',
|
182
|
+
'parcel_line_items',
|
183
|
+
'parcels',
|
184
|
+
'payment_gateways',
|
185
|
+
'payment_methods',
|
186
|
+
'paypal_gateways',
|
187
|
+
'paypal_payments',
|
188
|
+
'percentage_discount_promotions',
|
189
|
+
'price_lists',
|
190
|
+
'price_tiers',
|
191
|
+
'price_volume_tiers',
|
192
|
+
'prices',
|
193
|
+
'promotion_rules',
|
194
|
+
'promotions',
|
195
|
+
'refunds',
|
196
|
+
'return_line_items',
|
197
|
+
'returns',
|
198
|
+
'satispay_gateways',
|
199
|
+
'satispay_payments',
|
200
|
+
'shipments',
|
201
|
+
'shipping_categories',
|
202
|
+
'shipping_method_tiers',
|
203
|
+
'shipping_methods',
|
204
|
+
'shipping_weight_tiers',
|
205
|
+
'shipping_zones',
|
206
|
+
'sku_list_items',
|
207
|
+
'sku_list_promotion_rules',
|
208
|
+
'sku_lists',
|
209
|
+
'sku_options',
|
210
|
+
'skus',
|
211
|
+
'stock_items',
|
212
|
+
'stock_line_items',
|
213
|
+
'stock_locations',
|
214
|
+
'stock_transfers',
|
215
|
+
'stripe_gateways',
|
216
|
+
'stripe_payments',
|
217
|
+
'tax_calculators',
|
218
|
+
'tax_categories',
|
219
|
+
'tax_rules',
|
220
|
+
'taxjar_accounts',
|
221
|
+
'transactions',
|
222
|
+
'voids',
|
223
|
+
'webhooks',
|
224
|
+
'wire_transfers'
|
225
|
+
// ##__API_RESOURCE_LIST_STOP__##
|
226
|
+
];
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
/// <reference types="node" />
|
3
|
+
import { AxiosProxyConfig, Method } from 'axios';
|
4
|
+
import type { InterceptorManager } from './interceptor';
|
5
|
+
import type { Agent as HttpAgent } from 'http';
|
6
|
+
import type { Agent as HttpsAgent } from 'https';
|
7
|
+
type ProxyConfig = AxiosProxyConfig | false;
|
8
|
+
type RequestConfig = {
|
9
|
+
timeout?: number;
|
10
|
+
params?: {
|
11
|
+
[key: string]: string | number | boolean;
|
12
|
+
};
|
13
|
+
httpAgent?: HttpAgent;
|
14
|
+
httpsAgent?: HttpsAgent;
|
15
|
+
proxy?: ProxyConfig;
|
16
|
+
};
|
17
|
+
type ApiClientInitConfig = {
|
18
|
+
organization: string;
|
19
|
+
domain?: string;
|
20
|
+
accessToken: string;
|
21
|
+
} & RequestConfig;
|
22
|
+
type ApiClientConfig = Partial<ApiClientInitConfig>;
|
23
|
+
declare class ApiClient {
|
24
|
+
#private;
|
25
|
+
static create(options: ApiClientInitConfig): ApiClient;
|
26
|
+
baseUrl: string;
|
27
|
+
interceptors: InterceptorManager;
|
28
|
+
private constructor();
|
29
|
+
config(config: ApiClientConfig): void;
|
30
|
+
request(method: Method, path: string, body?: any, options?: ApiClientConfig): Promise<any>;
|
31
|
+
}
|
32
|
+
export default ApiClient;
|
33
|
+
export { ApiClientInitConfig, ApiClientConfig, RequestConfig };
|
@@ -0,0 +1,121 @@
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
6
|
+
};
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
11
|
+
};
|
12
|
+
var _ApiClient_accessToken, _ApiClient_client;
|
13
|
+
import axios from 'axios';
|
14
|
+
import { SdkError, ApiError, ErrorType } from './error';
|
15
|
+
import config from './config';
|
16
|
+
import Debug from './debug';
|
17
|
+
const debug = Debug('client');
|
18
|
+
const baseURL = (organization, domain) => {
|
19
|
+
return `https://${organization.toLowerCase()}.${domain || config.default.domain}/api`;
|
20
|
+
};
|
21
|
+
const handleError = (error) => {
|
22
|
+
let sdkError = new SdkError({ message: error.message });
|
23
|
+
if (axios.isAxiosError(error)) {
|
24
|
+
if (error.response) {
|
25
|
+
// The request was made and the server responded with a status code that falls out of the range of 2xx
|
26
|
+
const apiError = new ApiError(sdkError);
|
27
|
+
apiError.type = ErrorType.RESPONSE;
|
28
|
+
apiError.status = error.response.status;
|
29
|
+
apiError.code = String(apiError.status);
|
30
|
+
apiError.errors = error.response.data.errors;
|
31
|
+
sdkError = apiError;
|
32
|
+
}
|
33
|
+
else if (error.request) {
|
34
|
+
// The request was made but no response was received
|
35
|
+
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of http.ClientRequest in node.js
|
36
|
+
sdkError.type = ErrorType.REQUEST;
|
37
|
+
sdkError.request = error.request;
|
38
|
+
}
|
39
|
+
else {
|
40
|
+
// Something happened in setting up the request that triggered an Error
|
41
|
+
sdkError.type = ErrorType.CLIENT;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
else if (axios.isCancel(error))
|
45
|
+
sdkError.type = ErrorType.CANCEL;
|
46
|
+
else
|
47
|
+
sdkError.source = error;
|
48
|
+
throw sdkError;
|
49
|
+
};
|
50
|
+
class ApiClient {
|
51
|
+
static create(options) {
|
52
|
+
for (const attr of config.client.requiredAttributes)
|
53
|
+
if (!options || !options[attr])
|
54
|
+
throw new SdkError({ message: `Undefined '${attr}' parameter` });
|
55
|
+
return new ApiClient(options);
|
56
|
+
}
|
57
|
+
constructor(options) {
|
58
|
+
_ApiClient_accessToken.set(this, void 0);
|
59
|
+
_ApiClient_client.set(this, void 0);
|
60
|
+
debug('new client instance %O', options);
|
61
|
+
this.baseUrl = baseURL(options.organization, options.domain);
|
62
|
+
__classPrivateFieldSet(this, _ApiClient_accessToken, options.accessToken, "f");
|
63
|
+
const axiosConfig = {
|
64
|
+
timeout: options.timeout || config.client.timeout,
|
65
|
+
proxy: options.proxy,
|
66
|
+
httpAgent: options.httpAgent,
|
67
|
+
httpsAgent: options.httpsAgent,
|
68
|
+
};
|
69
|
+
const axiosOptions = {
|
70
|
+
baseURL: this.baseUrl,
|
71
|
+
timeout: config.client.timeout,
|
72
|
+
headers: {
|
73
|
+
'Accept': 'application/vnd.api+json',
|
74
|
+
'Content-Type': 'application/vnd.api+json',
|
75
|
+
'Authorization': 'Bearer ' + __classPrivateFieldGet(this, _ApiClient_accessToken, "f"),
|
76
|
+
},
|
77
|
+
...axiosConfig
|
78
|
+
};
|
79
|
+
debug('axios options: %O', axiosOptions);
|
80
|
+
__classPrivateFieldSet(this, _ApiClient_client, axios.create(axiosOptions), "f");
|
81
|
+
this.interceptors = __classPrivateFieldGet(this, _ApiClient_client, "f").interceptors;
|
82
|
+
}
|
83
|
+
config(config) {
|
84
|
+
debug('config %o', config);
|
85
|
+
const def = __classPrivateFieldGet(this, _ApiClient_client, "f").defaults;
|
86
|
+
// Axios config
|
87
|
+
if (config.timeout)
|
88
|
+
def.timeout = config.timeout;
|
89
|
+
if (config.proxy)
|
90
|
+
def.proxy = config.proxy;
|
91
|
+
if (config.httpAgent)
|
92
|
+
def.httpAgent = config.httpAgent;
|
93
|
+
if (config.httpsAgent)
|
94
|
+
def.httpsAgent = config.httpsAgent;
|
95
|
+
// API Client config
|
96
|
+
if (config.organization)
|
97
|
+
this.baseUrl = baseURL(config.organization, config.domain);
|
98
|
+
if (config.accessToken) {
|
99
|
+
__classPrivateFieldSet(this, _ApiClient_accessToken, config.accessToken, "f");
|
100
|
+
def.headers.common.Authorization = 'Bearer ' + __classPrivateFieldGet(this, _ApiClient_accessToken, "f");
|
101
|
+
}
|
102
|
+
}
|
103
|
+
async request(method, path, body, options) {
|
104
|
+
debug('request %s %s, %O, %O', method, path, body || {}, options || {});
|
105
|
+
const data = body ? { data: body } : undefined;
|
106
|
+
const url = path;
|
107
|
+
// Runtime request parameters
|
108
|
+
const baseUrl = (options === null || options === void 0 ? void 0 : options.organization) ? baseURL(options.organization, options.domain) : undefined;
|
109
|
+
const accessToken = (options === null || options === void 0 ? void 0 : options.accessToken) || __classPrivateFieldGet(this, _ApiClient_accessToken, "f");
|
110
|
+
const headers = accessToken ? { 'Authorization': 'Bearer ' + accessToken } : undefined;
|
111
|
+
const requestParams = { method, baseURL: baseUrl, url, data, headers, ...options };
|
112
|
+
debug('request params: %O', requestParams);
|
113
|
+
// const start = Date.now()
|
114
|
+
return __classPrivateFieldGet(this, _ApiClient_client, "f").request(requestParams)
|
115
|
+
.then(response => response.data)
|
116
|
+
.catch(error => handleError(error));
|
117
|
+
// .finally(() => console.log(`<<-- ${method} ${path} ${Date.now() - start}`))
|
118
|
+
}
|
119
|
+
}
|
120
|
+
_ApiClient_accessToken = new WeakMap(), _ApiClient_client = new WeakMap();
|
121
|
+
export default ApiClient;
|
@@ -0,0 +1,139 @@
|
|
1
|
+
import * as api from './api';
|
2
|
+
import type { ApiError } from './error';
|
3
|
+
import type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor } from './interceptor';
|
4
|
+
import type { ResourcesInitConfig } from './resource';
|
5
|
+
declare const OPEN_API_SCHEMA_VERSION = "4.0.1";
|
6
|
+
export { OPEN_API_SCHEMA_VERSION };
|
7
|
+
type SdkConfig = {};
|
8
|
+
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
9
|
+
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
10
|
+
declare class CommerceLayerClient {
|
11
|
+
#private;
|
12
|
+
static get openApiSchemaVersion(): string;
|
13
|
+
readonly openApiSchemaVersion = "4.0.1";
|
14
|
+
addresses: api.Addresses;
|
15
|
+
adjustments: api.Adjustments;
|
16
|
+
adyen_gateways: api.AdyenGateways;
|
17
|
+
adyen_payments: api.AdyenPayments;
|
18
|
+
application: api.Applications;
|
19
|
+
attachments: api.Attachments;
|
20
|
+
authorizations: api.Authorizations;
|
21
|
+
avalara_accounts: api.AvalaraAccounts;
|
22
|
+
axerve_gateways: api.AxerveGateways;
|
23
|
+
axerve_payments: api.AxervePayments;
|
24
|
+
billing_info_validation_rules: api.BillingInfoValidationRules;
|
25
|
+
bing_geocoders: api.BingGeocoders;
|
26
|
+
braintree_gateways: api.BraintreeGateways;
|
27
|
+
braintree_payments: api.BraintreePayments;
|
28
|
+
bundles: api.Bundles;
|
29
|
+
captures: api.Captures;
|
30
|
+
carrier_accounts: api.CarrierAccounts;
|
31
|
+
checkout_com_gateways: api.CheckoutComGateways;
|
32
|
+
checkout_com_payments: api.CheckoutComPayments;
|
33
|
+
cleanups: api.Cleanups;
|
34
|
+
coupon_codes_promotion_rules: api.CouponCodesPromotionRules;
|
35
|
+
coupon_recipients: api.CouponRecipients;
|
36
|
+
coupons: api.Coupons;
|
37
|
+
customer_addresses: api.CustomerAddresses;
|
38
|
+
customer_groups: api.CustomerGroups;
|
39
|
+
customer_password_resets: api.CustomerPasswordResets;
|
40
|
+
customer_payment_sources: api.CustomerPaymentSources;
|
41
|
+
customer_subscriptions: api.CustomerSubscriptions;
|
42
|
+
customers: api.Customers;
|
43
|
+
delivery_lead_times: api.DeliveryLeadTimes;
|
44
|
+
event_callbacks: api.EventCallbacks;
|
45
|
+
events: api.Events;
|
46
|
+
exports: api.Exports;
|
47
|
+
external_gateways: api.ExternalGateways;
|
48
|
+
external_payments: api.ExternalPayments;
|
49
|
+
external_promotions: api.ExternalPromotions;
|
50
|
+
external_tax_calculators: api.ExternalTaxCalculators;
|
51
|
+
fixed_amount_promotions: api.FixedAmountPromotions;
|
52
|
+
fixed_price_promotions: api.FixedPricePromotions;
|
53
|
+
free_gift_promotions: api.FreeGiftPromotions;
|
54
|
+
free_shipping_promotions: api.FreeShippingPromotions;
|
55
|
+
geocoders: api.Geocoders;
|
56
|
+
gift_card_recipients: api.GiftCardRecipients;
|
57
|
+
gift_cards: api.GiftCards;
|
58
|
+
google_geocoders: api.GoogleGeocoders;
|
59
|
+
imports: api.Imports;
|
60
|
+
in_stock_subscriptions: api.InStockSubscriptions;
|
61
|
+
inventory_models: api.InventoryModels;
|
62
|
+
inventory_return_locations: api.InventoryReturnLocations;
|
63
|
+
inventory_stock_locations: api.InventoryStockLocations;
|
64
|
+
klarna_gateways: api.KlarnaGateways;
|
65
|
+
klarna_payments: api.KlarnaPayments;
|
66
|
+
line_item_options: api.LineItemOptions;
|
67
|
+
line_items: api.LineItems;
|
68
|
+
manual_gateways: api.ManualGateways;
|
69
|
+
manual_tax_calculators: api.ManualTaxCalculators;
|
70
|
+
markets: api.Markets;
|
71
|
+
merchants: api.Merchants;
|
72
|
+
order_amount_promotion_rules: api.OrderAmountPromotionRules;
|
73
|
+
order_copies: api.OrderCopies;
|
74
|
+
order_subscriptions: api.OrderSubscriptions;
|
75
|
+
order_validation_rules: api.OrderValidationRules;
|
76
|
+
orders: api.Orders;
|
77
|
+
organization: api.Organizations;
|
78
|
+
packages: api.Packages;
|
79
|
+
parcel_line_items: api.ParcelLineItems;
|
80
|
+
parcels: api.Parcels;
|
81
|
+
payment_gateways: api.PaymentGateways;
|
82
|
+
payment_methods: api.PaymentMethods;
|
83
|
+
paypal_gateways: api.PaypalGateways;
|
84
|
+
paypal_payments: api.PaypalPayments;
|
85
|
+
percentage_discount_promotions: api.PercentageDiscountPromotions;
|
86
|
+
price_lists: api.PriceLists;
|
87
|
+
price_tiers: api.PriceTiers;
|
88
|
+
price_volume_tiers: api.PriceVolumeTiers;
|
89
|
+
prices: api.Prices;
|
90
|
+
promotion_rules: api.PromotionRules;
|
91
|
+
promotions: api.Promotions;
|
92
|
+
refunds: api.Refunds;
|
93
|
+
return_line_items: api.ReturnLineItems;
|
94
|
+
returns: api.Returns;
|
95
|
+
satispay_gateways: api.SatispayGateways;
|
96
|
+
satispay_payments: api.SatispayPayments;
|
97
|
+
shipments: api.Shipments;
|
98
|
+
shipping_categories: api.ShippingCategories;
|
99
|
+
shipping_method_tiers: api.ShippingMethodTiers;
|
100
|
+
shipping_methods: api.ShippingMethods;
|
101
|
+
shipping_weight_tiers: api.ShippingWeightTiers;
|
102
|
+
shipping_zones: api.ShippingZones;
|
103
|
+
sku_list_items: api.SkuListItems;
|
104
|
+
sku_list_promotion_rules: api.SkuListPromotionRules;
|
105
|
+
sku_lists: api.SkuLists;
|
106
|
+
sku_options: api.SkuOptions;
|
107
|
+
skus: api.Skus;
|
108
|
+
stock_items: api.StockItems;
|
109
|
+
stock_line_items: api.StockLineItems;
|
110
|
+
stock_locations: api.StockLocations;
|
111
|
+
stock_transfers: api.StockTransfers;
|
112
|
+
stripe_gateways: api.StripeGateways;
|
113
|
+
stripe_payments: api.StripePayments;
|
114
|
+
tax_calculators: api.TaxCalculators;
|
115
|
+
tax_categories: api.TaxCategories;
|
116
|
+
tax_rules: api.TaxRules;
|
117
|
+
taxjar_accounts: api.TaxjarAccounts;
|
118
|
+
transactions: api.Transactions;
|
119
|
+
voids: api.Voids;
|
120
|
+
webhooks: api.Webhooks;
|
121
|
+
wire_transfers: api.WireTransfers;
|
122
|
+
constructor(config: CommerceLayerInitConfig);
|
123
|
+
get currentOrganization(): string;
|
124
|
+
private localConfig;
|
125
|
+
config(config: CommerceLayerConfig): void;
|
126
|
+
resources(): readonly string[];
|
127
|
+
isApiError(error: any): error is ApiError;
|
128
|
+
addRequestInterceptor(onFulfilled?: RequestInterceptor, onRejected?: ErrorInterceptor): number;
|
129
|
+
addResponseInterceptor(onFulfilled?: ResponseInterceptor, onRejected?: ErrorInterceptor): number;
|
130
|
+
removeInterceptor(type: InterceptorType, id: number): void;
|
131
|
+
addRawResponseReader(options?: {
|
132
|
+
headers: boolean;
|
133
|
+
}): RawResponseReader;
|
134
|
+
removeRawResponseReader(reader: number | RawResponseReader): void;
|
135
|
+
}
|
136
|
+
declare const CommerceLayer: (config: CommerceLayerInitConfig) => CommerceLayerClient;
|
137
|
+
export default CommerceLayer;
|
138
|
+
export { CommerceLayer };
|
139
|
+
export type { CommerceLayerClient, CommerceLayerConfig, CommerceLayerInitConfig };
|