@commercelayer/sdk 6.0.0-alfa.1 → 6.0.0-alfa.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/cjs/api.d.ts +0 -3
- package/lib/cjs/api.js +0 -10
- package/lib/cjs/client.d.ts +6 -14
- package/lib/cjs/client.js +39 -73
- package/lib/cjs/commercelayer.d.ts +128 -127
- package/lib/cjs/commercelayer.js +268 -156
- package/lib/cjs/common.js +0 -11
- package/lib/cjs/config.d.ts +3 -0
- package/lib/cjs/config.js +3 -2
- package/lib/cjs/debug.js +0 -21
- package/lib/cjs/error.d.ts +6 -7
- package/lib/cjs/error.js +35 -33
- package/lib/cjs/fetch.d.ts +13 -0
- package/lib/cjs/fetch.js +67 -0
- package/lib/cjs/index.js +0 -2
- package/lib/cjs/interceptor.d.ts +24 -12
- package/lib/cjs/jsonapi.js +10 -7
- package/lib/cjs/model.d.ts +0 -3
- package/lib/cjs/model.js +0 -1
- package/lib/cjs/query.d.ts +3 -2
- package/lib/cjs/query.js +25 -7
- package/lib/cjs/resource.d.ts +4 -4
- package/lib/cjs/resource.js +14 -30
- package/lib/cjs/resources/addresses.d.ts +1 -0
- package/lib/cjs/resources/addresses.js +4 -1
- package/lib/cjs/resources/adjustments.d.ts +1 -0
- package/lib/cjs/resources/adjustments.js +4 -1
- package/lib/cjs/resources/adyen_gateways.d.ts +1 -0
- package/lib/cjs/resources/adyen_gateways.js +4 -1
- package/lib/cjs/resources/adyen_payments.d.ts +1 -0
- package/lib/cjs/resources/adyen_payments.js +4 -1
- package/lib/cjs/resources/application.d.ts +1 -0
- package/lib/cjs/resources/application.js +4 -1
- package/lib/cjs/resources/attachments.d.ts +1 -0
- package/lib/cjs/resources/attachments.js +4 -1
- package/lib/cjs/resources/authorizations.d.ts +1 -0
- package/lib/cjs/resources/authorizations.js +4 -1
- package/lib/cjs/resources/avalara_accounts.d.ts +1 -0
- package/lib/cjs/resources/avalara_accounts.js +4 -1
- package/lib/cjs/resources/axerve_gateways.d.ts +1 -0
- package/lib/cjs/resources/axerve_gateways.js +4 -1
- package/lib/cjs/resources/axerve_payments.d.ts +1 -0
- package/lib/cjs/resources/axerve_payments.js +4 -1
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -0
- package/lib/cjs/resources/billing_info_validation_rules.js +4 -1
- package/lib/cjs/resources/bing_geocoders.d.ts +1 -0
- package/lib/cjs/resources/bing_geocoders.js +4 -1
- package/lib/cjs/resources/braintree_gateways.d.ts +1 -0
- package/lib/cjs/resources/braintree_gateways.js +4 -1
- package/lib/cjs/resources/braintree_payments.d.ts +1 -0
- package/lib/cjs/resources/braintree_payments.js +4 -1
- package/lib/cjs/resources/bundles.d.ts +1 -0
- package/lib/cjs/resources/bundles.js +4 -1
- package/lib/cjs/resources/buy_x_pay_y_promotions.d.ts +1 -0
- package/lib/cjs/resources/buy_x_pay_y_promotions.js +4 -1
- package/lib/cjs/resources/captures.d.ts +1 -0
- package/lib/cjs/resources/captures.js +4 -1
- package/lib/cjs/resources/carrier_accounts.d.ts +1 -0
- package/lib/cjs/resources/carrier_accounts.js +4 -1
- package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -0
- package/lib/cjs/resources/checkout_com_gateways.js +4 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +1 -0
- package/lib/cjs/resources/checkout_com_payments.js +4 -1
- package/lib/cjs/resources/cleanups.d.ts +1 -0
- package/lib/cjs/resources/cleanups.js +4 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +4 -1
- package/lib/cjs/resources/coupon_recipients.d.ts +1 -0
- package/lib/cjs/resources/coupon_recipients.js +4 -1
- package/lib/cjs/resources/coupons.d.ts +1 -0
- package/lib/cjs/resources/coupons.js +4 -1
- package/lib/cjs/resources/custom_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/custom_promotion_rules.js +4 -1
- package/lib/cjs/resources/customer_addresses.d.ts +1 -0
- package/lib/cjs/resources/customer_addresses.js +4 -1
- package/lib/cjs/resources/customer_groups.d.ts +1 -0
- package/lib/cjs/resources/customer_groups.js +4 -1
- package/lib/cjs/resources/customer_password_resets.d.ts +1 -0
- package/lib/cjs/resources/customer_password_resets.js +4 -1
- package/lib/cjs/resources/customer_payment_sources.d.ts +1 -0
- package/lib/cjs/resources/customer_payment_sources.js +4 -1
- package/lib/cjs/resources/customer_subscriptions.d.ts +1 -0
- package/lib/cjs/resources/customer_subscriptions.js +4 -1
- package/lib/cjs/resources/customers.d.ts +1 -0
- package/lib/cjs/resources/customers.js +4 -1
- package/lib/cjs/resources/delivery_lead_times.d.ts +1 -0
- package/lib/cjs/resources/delivery_lead_times.js +4 -1
- package/lib/cjs/resources/event_callbacks.d.ts +1 -0
- package/lib/cjs/resources/event_callbacks.js +4 -1
- package/lib/cjs/resources/events.d.ts +4 -3
- package/lib/cjs/resources/events.js +8 -5
- package/lib/cjs/resources/exports.d.ts +1 -0
- package/lib/cjs/resources/exports.js +4 -1
- package/lib/cjs/resources/external_gateways.d.ts +1 -0
- package/lib/cjs/resources/external_gateways.js +4 -1
- package/lib/cjs/resources/external_payments.d.ts +1 -0
- package/lib/cjs/resources/external_payments.js +4 -1
- package/lib/cjs/resources/external_promotions.d.ts +1 -0
- package/lib/cjs/resources/external_promotions.js +4 -1
- package/lib/cjs/resources/external_tax_calculators.d.ts +1 -0
- package/lib/cjs/resources/external_tax_calculators.js +4 -1
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -0
- package/lib/cjs/resources/fixed_amount_promotions.js +4 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -0
- package/lib/cjs/resources/fixed_price_promotions.js +4 -1
- package/lib/cjs/resources/free_gift_promotions.d.ts +1 -0
- package/lib/cjs/resources/free_gift_promotions.js +4 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -0
- package/lib/cjs/resources/free_shipping_promotions.js +4 -1
- package/lib/cjs/resources/geocoders.d.ts +1 -0
- package/lib/cjs/resources/geocoders.js +4 -1
- package/lib/cjs/resources/gift_card_recipients.d.ts +1 -0
- package/lib/cjs/resources/gift_card_recipients.js +4 -1
- package/lib/cjs/resources/gift_cards.d.ts +1 -0
- package/lib/cjs/resources/gift_cards.js +4 -1
- package/lib/cjs/resources/google_geocoders.d.ts +1 -0
- package/lib/cjs/resources/google_geocoders.js +4 -1
- package/lib/cjs/resources/imports.d.ts +1 -0
- package/lib/cjs/resources/imports.js +4 -1
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -0
- package/lib/cjs/resources/in_stock_subscriptions.js +4 -1
- package/lib/cjs/resources/inventory_models.d.ts +1 -0
- package/lib/cjs/resources/inventory_models.js +4 -1
- package/lib/cjs/resources/inventory_return_locations.d.ts +1 -0
- package/lib/cjs/resources/inventory_return_locations.js +4 -1
- package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -0
- package/lib/cjs/resources/inventory_stock_locations.js +4 -1
- package/lib/cjs/resources/klarna_gateways.d.ts +1 -0
- package/lib/cjs/resources/klarna_gateways.js +4 -1
- package/lib/cjs/resources/klarna_payments.d.ts +1 -0
- package/lib/cjs/resources/klarna_payments.js +4 -1
- package/lib/cjs/resources/line_item_options.d.ts +1 -0
- package/lib/cjs/resources/line_item_options.js +4 -1
- package/lib/cjs/resources/line_items.d.ts +1 -0
- package/lib/cjs/resources/line_items.js +4 -1
- package/lib/cjs/resources/manual_gateways.d.ts +1 -0
- package/lib/cjs/resources/manual_gateways.js +4 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -0
- package/lib/cjs/resources/manual_tax_calculators.js +4 -1
- package/lib/cjs/resources/markets.d.ts +1 -0
- package/lib/cjs/resources/markets.js +4 -1
- package/lib/cjs/resources/merchants.d.ts +1 -0
- package/lib/cjs/resources/merchants.js +4 -1
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/order_amount_promotion_rules.js +4 -1
- package/lib/cjs/resources/order_copies.d.ts +1 -0
- package/lib/cjs/resources/order_copies.js +4 -1
- package/lib/cjs/resources/order_factories.d.ts +1 -0
- package/lib/cjs/resources/order_factories.js +4 -1
- package/lib/cjs/resources/order_subscription_items.d.ts +1 -0
- package/lib/cjs/resources/order_subscription_items.js +4 -1
- package/lib/cjs/resources/order_subscriptions.d.ts +1 -0
- package/lib/cjs/resources/order_subscriptions.js +4 -1
- package/lib/cjs/resources/order_validation_rules.d.ts +1 -0
- package/lib/cjs/resources/order_validation_rules.js +4 -1
- package/lib/cjs/resources/orders.d.ts +1 -0
- package/lib/cjs/resources/orders.js +4 -1
- package/lib/cjs/resources/organization.d.ts +2 -0
- package/lib/cjs/resources/organization.js +4 -1
- package/lib/cjs/resources/packages.d.ts +1 -0
- package/lib/cjs/resources/packages.js +4 -1
- package/lib/cjs/resources/parcel_line_items.d.ts +1 -0
- package/lib/cjs/resources/parcel_line_items.js +4 -1
- package/lib/cjs/resources/parcels.d.ts +1 -0
- package/lib/cjs/resources/parcels.js +4 -1
- package/lib/cjs/resources/payment_gateways.d.ts +1 -0
- package/lib/cjs/resources/payment_gateways.js +4 -1
- package/lib/cjs/resources/payment_methods.d.ts +1 -0
- package/lib/cjs/resources/payment_methods.js +4 -1
- package/lib/cjs/resources/payment_options.d.ts +1 -0
- package/lib/cjs/resources/payment_options.js +4 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +1 -0
- package/lib/cjs/resources/paypal_gateways.js +4 -1
- package/lib/cjs/resources/paypal_payments.d.ts +1 -0
- package/lib/cjs/resources/paypal_payments.js +4 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -0
- package/lib/cjs/resources/percentage_discount_promotions.js +4 -1
- package/lib/cjs/resources/price_frequency_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_frequency_tiers.js +4 -1
- package/lib/cjs/resources/price_lists.d.ts +1 -0
- package/lib/cjs/resources/price_lists.js +4 -1
- package/lib/cjs/resources/price_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_tiers.js +4 -1
- package/lib/cjs/resources/price_volume_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_volume_tiers.js +4 -1
- package/lib/cjs/resources/prices.d.ts +1 -0
- package/lib/cjs/resources/prices.js +4 -1
- package/lib/cjs/resources/promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/promotion_rules.js +4 -1
- package/lib/cjs/resources/promotions.d.ts +1 -0
- package/lib/cjs/resources/promotions.js +4 -1
- package/lib/cjs/resources/recurring_order_copies.d.ts +1 -0
- package/lib/cjs/resources/recurring_order_copies.js +4 -1
- package/lib/cjs/resources/refunds.d.ts +1 -0
- package/lib/cjs/resources/refunds.js +4 -1
- package/lib/cjs/resources/reserved_stocks.d.ts +1 -0
- package/lib/cjs/resources/reserved_stocks.js +4 -1
- package/lib/cjs/resources/resource_errors.d.ts +1 -0
- package/lib/cjs/resources/resource_errors.js +4 -1
- package/lib/cjs/resources/return_line_items.d.ts +1 -0
- package/lib/cjs/resources/return_line_items.js +4 -1
- package/lib/cjs/resources/returns.d.ts +1 -0
- package/lib/cjs/resources/returns.js +4 -1
- package/lib/cjs/resources/satispay_gateways.d.ts +1 -0
- package/lib/cjs/resources/satispay_gateways.js +4 -1
- package/lib/cjs/resources/satispay_payments.d.ts +1 -0
- package/lib/cjs/resources/satispay_payments.js +4 -1
- package/lib/cjs/resources/shipments.d.ts +4 -0
- package/lib/cjs/resources/shipments.js +8 -1
- package/lib/cjs/resources/shipping_categories.d.ts +1 -0
- package/lib/cjs/resources/shipping_categories.js +4 -1
- package/lib/cjs/resources/shipping_method_tiers.d.ts +1 -0
- package/lib/cjs/resources/shipping_method_tiers.js +4 -1
- package/lib/cjs/resources/shipping_methods.d.ts +1 -0
- package/lib/cjs/resources/shipping_methods.js +4 -1
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +1 -0
- package/lib/cjs/resources/shipping_weight_tiers.js +4 -1
- package/lib/cjs/resources/shipping_zones.d.ts +1 -0
- package/lib/cjs/resources/shipping_zones.js +4 -1
- package/lib/cjs/resources/sku_list_items.d.ts +1 -0
- package/lib/cjs/resources/sku_list_items.js +4 -1
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/sku_list_promotion_rules.js +4 -1
- package/lib/cjs/resources/sku_lists.d.ts +1 -0
- package/lib/cjs/resources/sku_lists.js +4 -1
- package/lib/cjs/resources/sku_options.d.ts +1 -0
- package/lib/cjs/resources/sku_options.js +4 -1
- package/lib/cjs/resources/skus.d.ts +1 -0
- package/lib/cjs/resources/skus.js +4 -1
- package/lib/cjs/resources/stock_items.d.ts +1 -0
- package/lib/cjs/resources/stock_items.js +4 -1
- package/lib/cjs/resources/stock_line_items.d.ts +1 -0
- package/lib/cjs/resources/stock_line_items.js +4 -1
- package/lib/cjs/resources/stock_locations.d.ts +1 -0
- package/lib/cjs/resources/stock_locations.js +4 -1
- package/lib/cjs/resources/stock_reservations.d.ts +1 -0
- package/lib/cjs/resources/stock_reservations.js +4 -1
- package/lib/cjs/resources/stock_transfers.d.ts +1 -0
- package/lib/cjs/resources/stock_transfers.js +4 -1
- package/lib/cjs/resources/stripe_gateways.d.ts +1 -0
- package/lib/cjs/resources/stripe_gateways.js +4 -1
- package/lib/cjs/resources/stripe_payments.d.ts +1 -0
- package/lib/cjs/resources/stripe_payments.js +4 -1
- package/lib/cjs/resources/subscription_models.d.ts +1 -0
- package/lib/cjs/resources/subscription_models.js +4 -1
- package/lib/cjs/resources/tags.d.ts +1 -0
- package/lib/cjs/resources/tags.js +4 -1
- package/lib/cjs/resources/tax_calculators.d.ts +1 -0
- package/lib/cjs/resources/tax_calculators.js +4 -1
- package/lib/cjs/resources/tax_categories.d.ts +1 -0
- package/lib/cjs/resources/tax_categories.js +4 -1
- package/lib/cjs/resources/tax_rules.d.ts +1 -0
- package/lib/cjs/resources/tax_rules.js +4 -1
- package/lib/cjs/resources/taxjar_accounts.d.ts +1 -0
- package/lib/cjs/resources/taxjar_accounts.js +4 -1
- package/lib/cjs/resources/transactions.d.ts +1 -0
- package/lib/cjs/resources/transactions.js +4 -1
- package/lib/cjs/resources/versions.d.ts +1 -0
- package/lib/cjs/resources/versions.js +4 -1
- package/lib/cjs/resources/voids.d.ts +1 -0
- package/lib/cjs/resources/voids.js +4 -1
- package/lib/cjs/resources/webhooks.d.ts +1 -0
- package/lib/cjs/resources/webhooks.js +4 -1
- package/lib/cjs/resources/wire_transfers.d.ts +1 -0
- package/lib/cjs/resources/wire_transfers.js +4 -1
- package/lib/cjs/static.js +0 -1
- package/lib/cjs/util.js +0 -1
- package/lib/esm/api.d.ts +0 -3
- package/lib/esm/api.js +0 -10
- package/lib/esm/client.d.ts +6 -14
- package/lib/esm/client.js +37 -73
- package/lib/esm/commercelayer.d.ts +128 -127
- package/lib/esm/commercelayer.js +266 -278
- package/lib/esm/common.js +0 -11
- package/lib/esm/config.d.ts +3 -0
- package/lib/esm/config.js +3 -2
- package/lib/esm/debug.js +0 -21
- package/lib/esm/error.d.ts +6 -7
- package/lib/esm/error.js +35 -31
- package/lib/esm/fetch.d.ts +13 -0
- package/lib/esm/fetch.js +46 -0
- package/lib/esm/index.js +0 -2
- package/lib/esm/interceptor.d.ts +24 -12
- package/lib/esm/jsonapi.js +10 -7
- package/lib/esm/model.d.ts +0 -3
- package/lib/esm/model.js +0 -1
- package/lib/esm/query.d.ts +3 -2
- package/lib/esm/query.js +24 -7
- package/lib/esm/resource.d.ts +4 -4
- package/lib/esm/resource.js +14 -30
- package/lib/esm/resources/addresses.d.ts +1 -0
- package/lib/esm/resources/addresses.js +4 -1
- package/lib/esm/resources/adjustments.d.ts +1 -0
- package/lib/esm/resources/adjustments.js +4 -1
- package/lib/esm/resources/adyen_gateways.d.ts +1 -0
- package/lib/esm/resources/adyen_gateways.js +4 -1
- package/lib/esm/resources/adyen_payments.d.ts +1 -0
- package/lib/esm/resources/adyen_payments.js +4 -1
- package/lib/esm/resources/application.d.ts +1 -0
- package/lib/esm/resources/application.js +4 -1
- package/lib/esm/resources/attachments.d.ts +1 -0
- package/lib/esm/resources/attachments.js +4 -1
- package/lib/esm/resources/authorizations.d.ts +1 -0
- package/lib/esm/resources/authorizations.js +4 -1
- package/lib/esm/resources/avalara_accounts.d.ts +1 -0
- package/lib/esm/resources/avalara_accounts.js +4 -1
- package/lib/esm/resources/axerve_gateways.d.ts +1 -0
- package/lib/esm/resources/axerve_gateways.js +4 -1
- package/lib/esm/resources/axerve_payments.d.ts +1 -0
- package/lib/esm/resources/axerve_payments.js +4 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -0
- package/lib/esm/resources/billing_info_validation_rules.js +4 -1
- package/lib/esm/resources/bing_geocoders.d.ts +1 -0
- package/lib/esm/resources/bing_geocoders.js +4 -1
- package/lib/esm/resources/braintree_gateways.d.ts +1 -0
- package/lib/esm/resources/braintree_gateways.js +4 -1
- package/lib/esm/resources/braintree_payments.d.ts +1 -0
- package/lib/esm/resources/braintree_payments.js +4 -1
- package/lib/esm/resources/bundles.d.ts +1 -0
- package/lib/esm/resources/bundles.js +4 -1
- package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +1 -0
- package/lib/esm/resources/buy_x_pay_y_promotions.js +4 -1
- package/lib/esm/resources/captures.d.ts +1 -0
- package/lib/esm/resources/captures.js +4 -1
- package/lib/esm/resources/carrier_accounts.d.ts +1 -0
- package/lib/esm/resources/carrier_accounts.js +4 -1
- package/lib/esm/resources/checkout_com_gateways.d.ts +1 -0
- package/lib/esm/resources/checkout_com_gateways.js +4 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +1 -0
- package/lib/esm/resources/checkout_com_payments.js +4 -1
- package/lib/esm/resources/cleanups.d.ts +1 -0
- package/lib/esm/resources/cleanups.js +4 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +4 -1
- package/lib/esm/resources/coupon_recipients.d.ts +1 -0
- package/lib/esm/resources/coupon_recipients.js +4 -1
- package/lib/esm/resources/coupons.d.ts +1 -0
- package/lib/esm/resources/coupons.js +4 -1
- package/lib/esm/resources/custom_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/custom_promotion_rules.js +4 -1
- package/lib/esm/resources/customer_addresses.d.ts +1 -0
- package/lib/esm/resources/customer_addresses.js +4 -1
- package/lib/esm/resources/customer_groups.d.ts +1 -0
- package/lib/esm/resources/customer_groups.js +4 -1
- package/lib/esm/resources/customer_password_resets.d.ts +1 -0
- package/lib/esm/resources/customer_password_resets.js +4 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +1 -0
- package/lib/esm/resources/customer_payment_sources.js +4 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +1 -0
- package/lib/esm/resources/customer_subscriptions.js +4 -1
- package/lib/esm/resources/customers.d.ts +1 -0
- package/lib/esm/resources/customers.js +4 -1
- package/lib/esm/resources/delivery_lead_times.d.ts +1 -0
- package/lib/esm/resources/delivery_lead_times.js +4 -1
- package/lib/esm/resources/event_callbacks.d.ts +1 -0
- package/lib/esm/resources/event_callbacks.js +4 -1
- package/lib/esm/resources/events.d.ts +4 -3
- package/lib/esm/resources/events.js +8 -5
- package/lib/esm/resources/exports.d.ts +1 -0
- package/lib/esm/resources/exports.js +4 -1
- package/lib/esm/resources/external_gateways.d.ts +1 -0
- package/lib/esm/resources/external_gateways.js +4 -1
- package/lib/esm/resources/external_payments.d.ts +1 -0
- package/lib/esm/resources/external_payments.js +4 -1
- package/lib/esm/resources/external_promotions.d.ts +1 -0
- package/lib/esm/resources/external_promotions.js +4 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +1 -0
- package/lib/esm/resources/external_tax_calculators.js +4 -1
- package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -0
- package/lib/esm/resources/fixed_amount_promotions.js +4 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +1 -0
- package/lib/esm/resources/fixed_price_promotions.js +4 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +1 -0
- package/lib/esm/resources/free_gift_promotions.js +4 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +1 -0
- package/lib/esm/resources/free_shipping_promotions.js +4 -1
- package/lib/esm/resources/geocoders.d.ts +1 -0
- package/lib/esm/resources/geocoders.js +4 -1
- package/lib/esm/resources/gift_card_recipients.d.ts +1 -0
- package/lib/esm/resources/gift_card_recipients.js +4 -1
- package/lib/esm/resources/gift_cards.d.ts +1 -0
- package/lib/esm/resources/gift_cards.js +4 -1
- package/lib/esm/resources/google_geocoders.d.ts +1 -0
- package/lib/esm/resources/google_geocoders.js +4 -1
- package/lib/esm/resources/imports.d.ts +1 -0
- package/lib/esm/resources/imports.js +4 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -0
- package/lib/esm/resources/in_stock_subscriptions.js +4 -1
- package/lib/esm/resources/inventory_models.d.ts +1 -0
- package/lib/esm/resources/inventory_models.js +4 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +1 -0
- package/lib/esm/resources/inventory_return_locations.js +4 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +1 -0
- package/lib/esm/resources/inventory_stock_locations.js +4 -1
- package/lib/esm/resources/klarna_gateways.d.ts +1 -0
- package/lib/esm/resources/klarna_gateways.js +4 -1
- package/lib/esm/resources/klarna_payments.d.ts +1 -0
- package/lib/esm/resources/klarna_payments.js +4 -1
- package/lib/esm/resources/line_item_options.d.ts +1 -0
- package/lib/esm/resources/line_item_options.js +4 -1
- package/lib/esm/resources/line_items.d.ts +1 -0
- package/lib/esm/resources/line_items.js +4 -1
- package/lib/esm/resources/manual_gateways.d.ts +1 -0
- package/lib/esm/resources/manual_gateways.js +4 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +1 -0
- package/lib/esm/resources/manual_tax_calculators.js +4 -1
- package/lib/esm/resources/markets.d.ts +1 -0
- package/lib/esm/resources/markets.js +4 -1
- package/lib/esm/resources/merchants.d.ts +1 -0
- package/lib/esm/resources/merchants.js +4 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/order_amount_promotion_rules.js +4 -1
- package/lib/esm/resources/order_copies.d.ts +1 -0
- package/lib/esm/resources/order_copies.js +4 -1
- package/lib/esm/resources/order_factories.d.ts +1 -0
- package/lib/esm/resources/order_factories.js +4 -1
- package/lib/esm/resources/order_subscription_items.d.ts +1 -0
- package/lib/esm/resources/order_subscription_items.js +4 -1
- package/lib/esm/resources/order_subscriptions.d.ts +1 -0
- package/lib/esm/resources/order_subscriptions.js +4 -1
- package/lib/esm/resources/order_validation_rules.d.ts +1 -0
- package/lib/esm/resources/order_validation_rules.js +4 -1
- package/lib/esm/resources/orders.d.ts +1 -0
- package/lib/esm/resources/orders.js +4 -1
- package/lib/esm/resources/organization.d.ts +2 -0
- package/lib/esm/resources/organization.js +4 -1
- package/lib/esm/resources/packages.d.ts +1 -0
- package/lib/esm/resources/packages.js +4 -1
- package/lib/esm/resources/parcel_line_items.d.ts +1 -0
- package/lib/esm/resources/parcel_line_items.js +4 -1
- package/lib/esm/resources/parcels.d.ts +1 -0
- package/lib/esm/resources/parcels.js +4 -1
- package/lib/esm/resources/payment_gateways.d.ts +1 -0
- package/lib/esm/resources/payment_gateways.js +4 -1
- package/lib/esm/resources/payment_methods.d.ts +1 -0
- package/lib/esm/resources/payment_methods.js +4 -1
- package/lib/esm/resources/payment_options.d.ts +1 -0
- package/lib/esm/resources/payment_options.js +4 -1
- package/lib/esm/resources/paypal_gateways.d.ts +1 -0
- package/lib/esm/resources/paypal_gateways.js +4 -1
- package/lib/esm/resources/paypal_payments.d.ts +1 -0
- package/lib/esm/resources/paypal_payments.js +4 -1
- package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -0
- package/lib/esm/resources/percentage_discount_promotions.js +4 -1
- package/lib/esm/resources/price_frequency_tiers.d.ts +1 -0
- package/lib/esm/resources/price_frequency_tiers.js +4 -1
- package/lib/esm/resources/price_lists.d.ts +1 -0
- package/lib/esm/resources/price_lists.js +4 -1
- package/lib/esm/resources/price_tiers.d.ts +1 -0
- package/lib/esm/resources/price_tiers.js +4 -1
- package/lib/esm/resources/price_volume_tiers.d.ts +1 -0
- package/lib/esm/resources/price_volume_tiers.js +4 -1
- package/lib/esm/resources/prices.d.ts +1 -0
- package/lib/esm/resources/prices.js +4 -1
- package/lib/esm/resources/promotion_rules.d.ts +1 -0
- package/lib/esm/resources/promotion_rules.js +4 -1
- package/lib/esm/resources/promotions.d.ts +1 -0
- package/lib/esm/resources/promotions.js +4 -1
- package/lib/esm/resources/recurring_order_copies.d.ts +1 -0
- package/lib/esm/resources/recurring_order_copies.js +4 -1
- package/lib/esm/resources/refunds.d.ts +1 -0
- package/lib/esm/resources/refunds.js +4 -1
- package/lib/esm/resources/reserved_stocks.d.ts +1 -0
- package/lib/esm/resources/reserved_stocks.js +4 -1
- package/lib/esm/resources/resource_errors.d.ts +1 -0
- package/lib/esm/resources/resource_errors.js +4 -1
- package/lib/esm/resources/return_line_items.d.ts +1 -0
- package/lib/esm/resources/return_line_items.js +4 -1
- package/lib/esm/resources/returns.d.ts +1 -0
- package/lib/esm/resources/returns.js +4 -1
- package/lib/esm/resources/satispay_gateways.d.ts +1 -0
- package/lib/esm/resources/satispay_gateways.js +4 -1
- package/lib/esm/resources/satispay_payments.d.ts +1 -0
- package/lib/esm/resources/satispay_payments.js +4 -1
- package/lib/esm/resources/shipments.d.ts +4 -0
- package/lib/esm/resources/shipments.js +8 -1
- package/lib/esm/resources/shipping_categories.d.ts +1 -0
- package/lib/esm/resources/shipping_categories.js +4 -1
- package/lib/esm/resources/shipping_method_tiers.d.ts +1 -0
- package/lib/esm/resources/shipping_method_tiers.js +4 -1
- package/lib/esm/resources/shipping_methods.d.ts +1 -0
- package/lib/esm/resources/shipping_methods.js +4 -1
- package/lib/esm/resources/shipping_weight_tiers.d.ts +1 -0
- package/lib/esm/resources/shipping_weight_tiers.js +4 -1
- package/lib/esm/resources/shipping_zones.d.ts +1 -0
- package/lib/esm/resources/shipping_zones.js +4 -1
- package/lib/esm/resources/sku_list_items.d.ts +1 -0
- package/lib/esm/resources/sku_list_items.js +4 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +4 -1
- package/lib/esm/resources/sku_lists.d.ts +1 -0
- package/lib/esm/resources/sku_lists.js +4 -1
- package/lib/esm/resources/sku_options.d.ts +1 -0
- package/lib/esm/resources/sku_options.js +4 -1
- package/lib/esm/resources/skus.d.ts +1 -0
- package/lib/esm/resources/skus.js +4 -1
- package/lib/esm/resources/stock_items.d.ts +1 -0
- package/lib/esm/resources/stock_items.js +4 -1
- package/lib/esm/resources/stock_line_items.d.ts +1 -0
- package/lib/esm/resources/stock_line_items.js +4 -1
- package/lib/esm/resources/stock_locations.d.ts +1 -0
- package/lib/esm/resources/stock_locations.js +4 -1
- package/lib/esm/resources/stock_reservations.d.ts +1 -0
- package/lib/esm/resources/stock_reservations.js +4 -1
- package/lib/esm/resources/stock_transfers.d.ts +1 -0
- package/lib/esm/resources/stock_transfers.js +4 -1
- package/lib/esm/resources/stripe_gateways.d.ts +1 -0
- package/lib/esm/resources/stripe_gateways.js +4 -1
- package/lib/esm/resources/stripe_payments.d.ts +1 -0
- package/lib/esm/resources/stripe_payments.js +4 -1
- package/lib/esm/resources/subscription_models.d.ts +1 -0
- package/lib/esm/resources/subscription_models.js +4 -1
- package/lib/esm/resources/tags.d.ts +1 -0
- package/lib/esm/resources/tags.js +4 -1
- package/lib/esm/resources/tax_calculators.d.ts +1 -0
- package/lib/esm/resources/tax_calculators.js +4 -1
- package/lib/esm/resources/tax_categories.d.ts +1 -0
- package/lib/esm/resources/tax_categories.js +4 -1
- package/lib/esm/resources/tax_rules.d.ts +1 -0
- package/lib/esm/resources/tax_rules.js +4 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +1 -0
- package/lib/esm/resources/taxjar_accounts.js +4 -1
- package/lib/esm/resources/transactions.d.ts +1 -0
- package/lib/esm/resources/transactions.js +4 -1
- package/lib/esm/resources/versions.d.ts +1 -0
- package/lib/esm/resources/versions.js +4 -1
- package/lib/esm/resources/voids.d.ts +1 -0
- package/lib/esm/resources/voids.js +4 -1
- package/lib/esm/resources/webhooks.d.ts +1 -0
- package/lib/esm/resources/webhooks.js +4 -1
- package/lib/esm/resources/wire_transfers.d.ts +1 -0
- package/lib/esm/resources/wire_transfers.js +4 -1
- package/lib/esm/static.js +0 -1
- package/lib/esm/util.js +1 -27
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -14
@@ -49,6 +49,7 @@ declare class DeliveryLeadTimes extends ApiResource<DeliveryLeadTime> {
|
|
49
49
|
versions(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
50
50
|
isDeliveryLeadTime(resource: any): resource is DeliveryLeadTime;
|
51
51
|
relationship(id: string | ResourceId | null): DeliveryLeadTimeRel;
|
52
|
+
relationshipToMany(...ids: string[]): DeliveryLeadTimeRel[];
|
52
53
|
type(): DeliveryLeadTimeType;
|
53
54
|
}
|
54
55
|
export default DeliveryLeadTimes;
|
@@ -30,7 +30,10 @@ class DeliveryLeadTimes extends ApiResource {
|
|
30
30
|
return resource.type && (resource.type === DeliveryLeadTimes.TYPE);
|
31
31
|
}
|
32
32
|
relationship(id) {
|
33
|
-
return (
|
33
|
+
return super.relationshipOneToOne(id);
|
34
|
+
}
|
35
|
+
relationshipToMany(...ids) {
|
36
|
+
return super.relationshipOneToMany(...ids);
|
34
37
|
}
|
35
38
|
type() {
|
36
39
|
return DeliveryLeadTimes.TYPE;
|
@@ -19,6 +19,7 @@ declare class EventCallbacks extends ApiResource<EventCallback> {
|
|
19
19
|
webhook(eventCallbackId: string | EventCallback, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
20
20
|
isEventCallback(resource: any): resource is EventCallback;
|
21
21
|
relationship(id: string | ResourceId | null): EventCallbackRel;
|
22
|
+
relationshipToMany(...ids: string[]): EventCallbackRel[];
|
22
23
|
type(): EventCallbackType;
|
23
24
|
}
|
24
25
|
export default EventCallbacks;
|
@@ -9,7 +9,10 @@ class EventCallbacks extends ApiResource {
|
|
9
9
|
return resource.type && (resource.type === EventCallbacks.TYPE);
|
10
10
|
}
|
11
11
|
relationship(id) {
|
12
|
-
return (
|
12
|
+
return super.relationshipOneToOne(id);
|
13
|
+
}
|
14
|
+
relationshipToMany(...ids) {
|
15
|
+
return super.relationshipOneToMany(...ids);
|
13
16
|
}
|
14
17
|
type() {
|
15
18
|
return EventCallbacks.TYPE;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
3
|
import type { QueryParamsList } from '../query';
|
4
|
-
import type { EventCallback } from './event_callbacks';
|
5
4
|
import type { Webhook } from './webhooks';
|
5
|
+
import type { EventCallback } from './event_callbacks';
|
6
6
|
type EventType = 'events';
|
7
7
|
type EventRel = ResourceRel & {
|
8
8
|
type: EventType;
|
@@ -10,15 +10,16 @@ type EventRel = ResourceRel & {
|
|
10
10
|
interface Event extends Resource {
|
11
11
|
readonly type: EventType;
|
12
12
|
name: string;
|
13
|
-
last_event_callbacks?: EventCallback[] | null;
|
14
13
|
webhooks?: Webhook[] | null;
|
14
|
+
last_event_callbacks?: EventCallback[] | null;
|
15
15
|
}
|
16
16
|
declare class Events extends ApiResource<Event> {
|
17
17
|
static readonly TYPE: EventType;
|
18
|
-
last_event_callbacks(eventId: string | Event, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<EventCallback>>;
|
19
18
|
webhooks(eventId: string | Event, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Webhook>>;
|
19
|
+
last_event_callbacks(eventId: string | Event, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<EventCallback>>;
|
20
20
|
isEvent(resource: any): resource is Event;
|
21
21
|
relationship(id: string | ResourceId | null): EventRel;
|
22
|
+
relationshipToMany(...ids: string[]): EventRel[];
|
22
23
|
type(): EventType;
|
23
24
|
}
|
24
25
|
export default Events;
|
@@ -1,19 +1,22 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Events extends ApiResource {
|
3
3
|
static TYPE = 'events';
|
4
|
-
async last_event_callbacks(eventId, params, options) {
|
5
|
-
const _eventId = eventId.id || eventId;
|
6
|
-
return this.resources.fetch({ type: 'event_callbacks' }, `events/${_eventId}/last_event_callbacks`, params, options);
|
7
|
-
}
|
8
4
|
async webhooks(eventId, params, options) {
|
9
5
|
const _eventId = eventId.id || eventId;
|
10
6
|
return this.resources.fetch({ type: 'webhooks' }, `events/${_eventId}/webhooks`, params, options);
|
11
7
|
}
|
8
|
+
async last_event_callbacks(eventId, params, options) {
|
9
|
+
const _eventId = eventId.id || eventId;
|
10
|
+
return this.resources.fetch({ type: 'event_callbacks' }, `events/${_eventId}/last_event_callbacks`, params, options);
|
11
|
+
}
|
12
12
|
isEvent(resource) {
|
13
13
|
return resource.type && (resource.type === Events.TYPE);
|
14
14
|
}
|
15
15
|
relationship(id) {
|
16
|
-
return (
|
16
|
+
return super.relationshipOneToOne(id);
|
17
|
+
}
|
18
|
+
relationshipToMany(...ids) {
|
19
|
+
return super.relationshipOneToMany(...ids);
|
17
20
|
}
|
18
21
|
type() {
|
19
22
|
return Events.TYPE;
|
@@ -35,6 +35,7 @@ declare class Exports extends ApiResource<Export> {
|
|
35
35
|
events(exportId: string | Export, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
36
36
|
isExport(resource: any): resource is Export;
|
37
37
|
relationship(id: string | ResourceId | null): ExportRel;
|
38
|
+
relationshipToMany(...ids: string[]): ExportRel[];
|
38
39
|
type(): ExportType;
|
39
40
|
}
|
40
41
|
export default Exports;
|
@@ -15,7 +15,10 @@ class Exports extends ApiResource {
|
|
15
15
|
return resource.type && (resource.type === Exports.TYPE);
|
16
16
|
}
|
17
17
|
relationship(id) {
|
18
|
-
return (
|
18
|
+
return super.relationshipOneToOne(id);
|
19
|
+
}
|
20
|
+
relationshipToMany(...ids) {
|
21
|
+
return super.relationshipOneToMany(...ids);
|
19
22
|
}
|
20
23
|
type() {
|
21
24
|
return Exports.TYPE;
|
@@ -51,6 +51,7 @@ declare class ExternalGateways extends ApiResource<ExternalGateway> {
|
|
51
51
|
_reset_circuit(id: string | ExternalGateway, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
52
52
|
isExternalGateway(resource: any): resource is ExternalGateway;
|
53
53
|
relationship(id: string | ResourceId | null): ExternalGatewayRel;
|
54
|
+
relationshipToMany(...ids: string[]): ExternalGatewayRel[];
|
54
55
|
type(): ExternalGatewayType;
|
55
56
|
}
|
56
57
|
export default ExternalGateways;
|
@@ -29,7 +29,10 @@ class ExternalGateways extends ApiResource {
|
|
29
29
|
return resource.type && (resource.type === ExternalGateways.TYPE);
|
30
30
|
}
|
31
31
|
relationship(id) {
|
32
|
-
return (
|
32
|
+
return super.relationshipOneToOne(id);
|
33
|
+
}
|
34
|
+
relationshipToMany(...ids) {
|
35
|
+
return super.relationshipOneToMany(...ids);
|
33
36
|
}
|
34
37
|
type() {
|
35
38
|
return ExternalGateways.TYPE;
|
@@ -42,6 +42,7 @@ declare class ExternalPayments extends ApiResource<ExternalPayment> {
|
|
42
42
|
versions(externalPaymentId: string | ExternalPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
43
43
|
isExternalPayment(resource: any): resource is ExternalPayment;
|
44
44
|
relationship(id: string | ResourceId | null): ExternalPaymentRel;
|
45
|
+
relationshipToMany(...ids: string[]): ExternalPaymentRel[];
|
45
46
|
type(): ExternalPaymentType;
|
46
47
|
}
|
47
48
|
export default ExternalPayments;
|
@@ -30,7 +30,10 @@ class ExternalPayments extends ApiResource {
|
|
30
30
|
return resource.type && (resource.type === ExternalPayments.TYPE);
|
31
31
|
}
|
32
32
|
relationship(id) {
|
33
|
-
return (
|
33
|
+
return super.relationshipOneToOne(id);
|
34
|
+
}
|
35
|
+
relationshipToMany(...ids) {
|
36
|
+
return super.relationshipOneToMany(...ids);
|
34
37
|
}
|
35
38
|
type() {
|
36
39
|
return ExternalPayments.TYPE;
|
@@ -130,6 +130,7 @@ declare class ExternalPromotions extends ApiResource<ExternalPromotion> {
|
|
130
130
|
_reset_circuit(id: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
131
131
|
isExternalPromotion(resource: any): resource is ExternalPromotion;
|
132
132
|
relationship(id: string | ResourceId | null): ExternalPromotionRel;
|
133
|
+
relationshipToMany(...ids: string[]): ExternalPromotionRel[];
|
133
134
|
type(): ExternalPromotionType;
|
134
135
|
}
|
135
136
|
export default ExternalPromotions;
|
@@ -71,7 +71,10 @@ class ExternalPromotions extends ApiResource {
|
|
71
71
|
return resource.type && (resource.type === ExternalPromotions.TYPE);
|
72
72
|
}
|
73
73
|
relationship(id) {
|
74
|
-
return (
|
74
|
+
return super.relationshipOneToOne(id);
|
75
|
+
}
|
76
|
+
relationshipToMany(...ids) {
|
77
|
+
return super.relationshipOneToMany(...ids);
|
75
78
|
}
|
76
79
|
type() {
|
77
80
|
return ExternalPromotions.TYPE;
|
@@ -39,6 +39,7 @@ declare class ExternalTaxCalculators extends ApiResource<ExternalTaxCalculator>
|
|
39
39
|
_reset_circuit(id: string | ExternalTaxCalculator, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
40
40
|
isExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator;
|
41
41
|
relationship(id: string | ResourceId | null): ExternalTaxCalculatorRel;
|
42
|
+
relationshipToMany(...ids: string[]): ExternalTaxCalculatorRel[];
|
42
43
|
type(): ExternalTaxCalculatorType;
|
43
44
|
}
|
44
45
|
export default ExternalTaxCalculators;
|
@@ -29,7 +29,10 @@ class ExternalTaxCalculators extends ApiResource {
|
|
29
29
|
return resource.type && (resource.type === ExternalTaxCalculators.TYPE);
|
30
30
|
}
|
31
31
|
relationship(id) {
|
32
|
-
return (
|
32
|
+
return super.relationshipOneToOne(id);
|
33
|
+
}
|
34
|
+
relationshipToMany(...ids) {
|
35
|
+
return super.relationshipOneToMany(...ids);
|
33
36
|
}
|
34
37
|
type() {
|
35
38
|
return ExternalTaxCalculators.TYPE;
|
@@ -127,6 +127,7 @@ declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion> {
|
|
127
127
|
_enable(id: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
128
128
|
isFixedAmountPromotion(resource: any): resource is FixedAmountPromotion;
|
129
129
|
relationship(id: string | ResourceId | null): FixedAmountPromotionRel;
|
130
|
+
relationshipToMany(...ids: string[]): FixedAmountPromotionRel[];
|
130
131
|
type(): FixedAmountPromotionType;
|
131
132
|
}
|
132
133
|
export default FixedAmountPromotions;
|
@@ -68,7 +68,10 @@ class FixedAmountPromotions extends ApiResource {
|
|
68
68
|
return resource.type && (resource.type === FixedAmountPromotions.TYPE);
|
69
69
|
}
|
70
70
|
relationship(id) {
|
71
|
-
return (
|
71
|
+
return super.relationshipOneToOne(id);
|
72
|
+
}
|
73
|
+
relationshipToMany(...ids) {
|
74
|
+
return super.relationshipOneToMany(...ids);
|
72
75
|
}
|
73
76
|
type() {
|
74
77
|
return FixedAmountPromotions.TYPE;
|
@@ -127,6 +127,7 @@ declare class FixedPricePromotions extends ApiResource<FixedPricePromotion> {
|
|
127
127
|
_enable(id: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
128
128
|
isFixedPricePromotion(resource: any): resource is FixedPricePromotion;
|
129
129
|
relationship(id: string | ResourceId | null): FixedPricePromotionRel;
|
130
|
+
relationshipToMany(...ids: string[]): FixedPricePromotionRel[];
|
130
131
|
type(): FixedPricePromotionType;
|
131
132
|
}
|
132
133
|
export default FixedPricePromotions;
|
@@ -68,7 +68,10 @@ class FixedPricePromotions extends ApiResource {
|
|
68
68
|
return resource.type && (resource.type === FixedPricePromotions.TYPE);
|
69
69
|
}
|
70
70
|
relationship(id) {
|
71
|
-
return (
|
71
|
+
return super.relationshipOneToOne(id);
|
72
|
+
}
|
73
|
+
relationshipToMany(...ids) {
|
74
|
+
return super.relationshipOneToMany(...ids);
|
72
75
|
}
|
73
76
|
type() {
|
74
77
|
return FixedPricePromotions.TYPE;
|
@@ -125,6 +125,7 @@ declare class FreeGiftPromotions extends ApiResource<FreeGiftPromotion> {
|
|
125
125
|
_enable(id: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
126
126
|
isFreeGiftPromotion(resource: any): resource is FreeGiftPromotion;
|
127
127
|
relationship(id: string | ResourceId | null): FreeGiftPromotionRel;
|
128
|
+
relationshipToMany(...ids: string[]): FreeGiftPromotionRel[];
|
128
129
|
type(): FreeGiftPromotionType;
|
129
130
|
}
|
130
131
|
export default FreeGiftPromotions;
|
@@ -68,7 +68,10 @@ class FreeGiftPromotions extends ApiResource {
|
|
68
68
|
return resource.type && (resource.type === FreeGiftPromotions.TYPE);
|
69
69
|
}
|
70
70
|
relationship(id) {
|
71
|
-
return (
|
71
|
+
return super.relationshipOneToOne(id);
|
72
|
+
}
|
73
|
+
relationshipToMany(...ids) {
|
74
|
+
return super.relationshipOneToMany(...ids);
|
72
75
|
}
|
73
76
|
type() {
|
74
77
|
return FreeGiftPromotions.TYPE;
|
@@ -119,6 +119,7 @@ declare class FreeShippingPromotions extends ApiResource<FreeShippingPromotion>
|
|
119
119
|
_enable(id: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
120
120
|
isFreeShippingPromotion(resource: any): resource is FreeShippingPromotion;
|
121
121
|
relationship(id: string | ResourceId | null): FreeShippingPromotionRel;
|
122
|
+
relationshipToMany(...ids: string[]): FreeShippingPromotionRel[];
|
122
123
|
type(): FreeShippingPromotionType;
|
123
124
|
}
|
124
125
|
export default FreeShippingPromotions;
|
@@ -64,7 +64,10 @@ class FreeShippingPromotions extends ApiResource {
|
|
64
64
|
return resource.type && (resource.type === FreeShippingPromotions.TYPE);
|
65
65
|
}
|
66
66
|
relationship(id) {
|
67
|
-
return (
|
67
|
+
return super.relationshipOneToOne(id);
|
68
|
+
}
|
69
|
+
relationshipToMany(...ids) {
|
70
|
+
return super.relationshipOneToMany(...ids);
|
68
71
|
}
|
69
72
|
type() {
|
70
73
|
return FreeShippingPromotions.TYPE;
|
@@ -19,6 +19,7 @@ declare class Geocoders extends ApiResource<Geocoder> {
|
|
19
19
|
attachments(geocoderId: string | Geocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
20
20
|
isGeocoder(resource: any): resource is Geocoder;
|
21
21
|
relationship(id: string | ResourceId | null): GeocoderRel;
|
22
|
+
relationshipToMany(...ids: string[]): GeocoderRel[];
|
22
23
|
type(): GeocoderType;
|
23
24
|
}
|
24
25
|
export default Geocoders;
|
@@ -13,7 +13,10 @@ class Geocoders extends ApiResource {
|
|
13
13
|
return resource.type && (resource.type === Geocoders.TYPE);
|
14
14
|
}
|
15
15
|
relationship(id) {
|
16
|
-
return (
|
16
|
+
return super.relationshipOneToOne(id);
|
17
|
+
}
|
18
|
+
relationshipToMany(...ids) {
|
19
|
+
return super.relationshipOneToMany(...ids);
|
17
20
|
}
|
18
21
|
type() {
|
19
22
|
return Geocoders.TYPE;
|
@@ -42,6 +42,7 @@ declare class GiftCardRecipients extends ApiResource<GiftCardRecipient> {
|
|
42
42
|
versions(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
43
43
|
isGiftCardRecipient(resource: any): resource is GiftCardRecipient;
|
44
44
|
relationship(id: string | ResourceId | null): GiftCardRecipientRel;
|
45
|
+
relationshipToMany(...ids: string[]): GiftCardRecipientRel[];
|
45
46
|
type(): GiftCardRecipientType;
|
46
47
|
}
|
47
48
|
export default GiftCardRecipients;
|
@@ -26,7 +26,10 @@ class GiftCardRecipients extends ApiResource {
|
|
26
26
|
return resource.type && (resource.type === GiftCardRecipients.TYPE);
|
27
27
|
}
|
28
28
|
relationship(id) {
|
29
|
-
return (
|
29
|
+
return super.relationshipOneToOne(id);
|
30
|
+
}
|
31
|
+
relationshipToMany(...ids) {
|
32
|
+
return super.relationshipOneToMany(...ids);
|
30
33
|
}
|
31
34
|
type() {
|
32
35
|
return GiftCardRecipients.TYPE;
|
@@ -98,6 +98,7 @@ declare class GiftCards extends ApiResource<GiftCard> {
|
|
98
98
|
_balance_change_cents(id: string | GiftCard, triggerValue: number, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
99
99
|
isGiftCard(resource: any): resource is GiftCard;
|
100
100
|
relationship(id: string | ResourceId | null): GiftCardRel;
|
101
|
+
relationshipToMany(...ids: string[]): GiftCardRel[];
|
101
102
|
type(): GiftCardType;
|
102
103
|
}
|
103
104
|
export default GiftCards;
|
@@ -50,7 +50,10 @@ class GiftCards extends ApiResource {
|
|
50
50
|
return resource.type && (resource.type === GiftCards.TYPE);
|
51
51
|
}
|
52
52
|
relationship(id) {
|
53
|
-
return (
|
53
|
+
return super.relationshipOneToOne(id);
|
54
|
+
}
|
55
|
+
relationshipToMany(...ids) {
|
56
|
+
return super.relationshipOneToMany(...ids);
|
54
57
|
}
|
55
58
|
type() {
|
56
59
|
return GiftCards.TYPE;
|
@@ -30,6 +30,7 @@ declare class GoogleGeocoders extends ApiResource<GoogleGeocoder> {
|
|
30
30
|
attachments(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
31
31
|
isGoogleGeocoder(resource: any): resource is GoogleGeocoder;
|
32
32
|
relationship(id: string | ResourceId | null): GoogleGeocoderRel;
|
33
|
+
relationshipToMany(...ids: string[]): GoogleGeocoderRel[];
|
33
34
|
type(): GoogleGeocoderType;
|
34
35
|
}
|
35
36
|
export default GoogleGeocoders;
|
@@ -22,7 +22,10 @@ class GoogleGeocoders extends ApiResource {
|
|
22
22
|
return resource.type && (resource.type === GoogleGeocoders.TYPE);
|
23
23
|
}
|
24
24
|
relationship(id) {
|
25
|
-
return (
|
25
|
+
return super.relationshipOneToOne(id);
|
26
|
+
}
|
27
|
+
relationshipToMany(...ids) {
|
28
|
+
return super.relationshipOneToMany(...ids);
|
26
29
|
}
|
27
30
|
type() {
|
28
31
|
return GoogleGeocoders.TYPE;
|
@@ -38,6 +38,7 @@ declare class Imports extends ApiResource<Import> {
|
|
38
38
|
events(importId: string | Import, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
39
39
|
isImport(resource: any): resource is Import;
|
40
40
|
relationship(id: string | ResourceId | null): ImportRel;
|
41
|
+
relationshipToMany(...ids: string[]): ImportRel[];
|
41
42
|
type(): ImportType;
|
42
43
|
}
|
43
44
|
export default Imports;
|
@@ -15,7 +15,10 @@ class Imports extends ApiResource {
|
|
15
15
|
return resource.type && (resource.type === Imports.TYPE);
|
16
16
|
}
|
17
17
|
relationship(id) {
|
18
|
-
return (
|
18
|
+
return super.relationshipOneToOne(id);
|
19
|
+
}
|
20
|
+
relationshipToMany(...ids) {
|
21
|
+
return super.relationshipOneToMany(...ids);
|
19
22
|
}
|
20
23
|
type() {
|
21
24
|
return Imports.TYPE;
|
@@ -62,6 +62,7 @@ declare class InStockSubscriptions extends ApiResource<InStockSubscription> {
|
|
62
62
|
_deactivate(id: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
63
63
|
isInStockSubscription(resource: any): resource is InStockSubscription;
|
64
64
|
relationship(id: string | ResourceId | null): InStockSubscriptionRel;
|
65
|
+
relationshipToMany(...ids: string[]): InStockSubscriptionRel[];
|
65
66
|
type(): InStockSubscriptionType;
|
66
67
|
}
|
67
68
|
export default InStockSubscriptions;
|
@@ -40,7 +40,10 @@ class InStockSubscriptions extends ApiResource {
|
|
40
40
|
return resource.type && (resource.type === InStockSubscriptions.TYPE);
|
41
41
|
}
|
42
42
|
relationship(id) {
|
43
|
-
return (
|
43
|
+
return super.relationshipOneToOne(id);
|
44
|
+
}
|
45
|
+
relationshipToMany(...ids) {
|
46
|
+
return super.relationshipOneToMany(...ids);
|
44
47
|
}
|
45
48
|
type() {
|
46
49
|
return InStockSubscriptions.TYPE;
|
@@ -49,6 +49,7 @@ declare class InventoryModels extends ApiResource<InventoryModel> {
|
|
49
49
|
versions(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
50
50
|
isInventoryModel(resource: any): resource is InventoryModel;
|
51
51
|
relationship(id: string | ResourceId | null): InventoryModelRel;
|
52
|
+
relationshipToMany(...ids: string[]): InventoryModelRel[];
|
52
53
|
type(): InventoryModelType;
|
53
54
|
}
|
54
55
|
export default InventoryModels;
|
@@ -30,7 +30,10 @@ class InventoryModels extends ApiResource {
|
|
30
30
|
return resource.type && (resource.type === InventoryModels.TYPE);
|
31
31
|
}
|
32
32
|
relationship(id) {
|
33
|
-
return (
|
33
|
+
return super.relationshipOneToOne(id);
|
34
|
+
}
|
35
|
+
relationshipToMany(...ids) {
|
36
|
+
return super.relationshipOneToMany(...ids);
|
34
37
|
}
|
35
38
|
type() {
|
36
39
|
return InventoryModels.TYPE;
|
@@ -41,6 +41,7 @@ declare class InventoryReturnLocations extends ApiResource<InventoryReturnLocati
|
|
41
41
|
versions(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
42
42
|
isInventoryReturnLocation(resource: any): resource is InventoryReturnLocation;
|
43
43
|
relationship(id: string | ResourceId | null): InventoryReturnLocationRel;
|
44
|
+
relationshipToMany(...ids: string[]): InventoryReturnLocationRel[];
|
44
45
|
type(): InventoryReturnLocationType;
|
45
46
|
}
|
46
47
|
export default InventoryReturnLocations;
|
@@ -26,7 +26,10 @@ class InventoryReturnLocations extends ApiResource {
|
|
26
26
|
return resource.type && (resource.type === InventoryReturnLocations.TYPE);
|
27
27
|
}
|
28
28
|
relationship(id) {
|
29
|
-
return (
|
29
|
+
return super.relationshipOneToOne(id);
|
30
|
+
}
|
31
|
+
relationshipToMany(...ids) {
|
32
|
+
return super.relationshipOneToMany(...ids);
|
30
33
|
}
|
31
34
|
type() {
|
32
35
|
return InventoryReturnLocations.TYPE;
|
@@ -44,6 +44,7 @@ declare class InventoryStockLocations extends ApiResource<InventoryStockLocation
|
|
44
44
|
versions(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
45
45
|
isInventoryStockLocation(resource: any): resource is InventoryStockLocation;
|
46
46
|
relationship(id: string | ResourceId | null): InventoryStockLocationRel;
|
47
|
+
relationshipToMany(...ids: string[]): InventoryStockLocationRel[];
|
47
48
|
type(): InventoryStockLocationType;
|
48
49
|
}
|
49
50
|
export default InventoryStockLocations;
|
@@ -26,7 +26,10 @@ class InventoryStockLocations extends ApiResource {
|
|
26
26
|
return resource.type && (resource.type === InventoryStockLocations.TYPE);
|
27
27
|
}
|
28
28
|
relationship(id) {
|
29
|
-
return (
|
29
|
+
return super.relationshipOneToOne(id);
|
30
|
+
}
|
31
|
+
relationshipToMany(...ids) {
|
32
|
+
return super.relationshipOneToMany(...ids);
|
30
33
|
}
|
31
34
|
type() {
|
32
35
|
return InventoryStockLocations.TYPE;
|
@@ -42,6 +42,7 @@ declare class KlarnaGateways extends ApiResource<KlarnaGateway> {
|
|
42
42
|
klarna_payments(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>>;
|
43
43
|
isKlarnaGateway(resource: any): resource is KlarnaGateway;
|
44
44
|
relationship(id: string | ResourceId | null): KlarnaGatewayRel;
|
45
|
+
relationshipToMany(...ids: string[]): KlarnaGatewayRel[];
|
45
46
|
type(): KlarnaGatewayType;
|
46
47
|
}
|
47
48
|
export default KlarnaGateways;
|
@@ -26,7 +26,10 @@ class KlarnaGateways extends ApiResource {
|
|
26
26
|
return resource.type && (resource.type === KlarnaGateways.TYPE);
|
27
27
|
}
|
28
28
|
relationship(id) {
|
29
|
-
return (
|
29
|
+
return super.relationshipOneToOne(id);
|
30
|
+
}
|
31
|
+
relationshipToMany(...ids) {
|
32
|
+
return super.relationshipOneToMany(...ids);
|
30
33
|
}
|
31
34
|
type() {
|
32
35
|
return KlarnaGateways.TYPE;
|
@@ -45,6 +45,7 @@ declare class KlarnaPayments extends ApiResource<KlarnaPayment> {
|
|
45
45
|
_update(id: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
|
46
46
|
isKlarnaPayment(resource: any): resource is KlarnaPayment;
|
47
47
|
relationship(id: string | ResourceId | null): KlarnaPaymentRel;
|
48
|
+
relationshipToMany(...ids: string[]): KlarnaPaymentRel[];
|
48
49
|
type(): KlarnaPaymentType;
|
49
50
|
}
|
50
51
|
export default KlarnaPayments;
|
@@ -29,7 +29,10 @@ class KlarnaPayments extends ApiResource {
|
|
29
29
|
return resource.type && (resource.type === KlarnaPayments.TYPE);
|
30
30
|
}
|
31
31
|
relationship(id) {
|
32
|
-
return (
|
32
|
+
return super.relationshipOneToOne(id);
|
33
|
+
}
|
34
|
+
relationshipToMany(...ids) {
|
35
|
+
return super.relationshipOneToMany(...ids);
|
33
36
|
}
|
34
37
|
type() {
|
35
38
|
return KlarnaPayments.TYPE;
|
@@ -63,6 +63,7 @@ declare class LineItemOptions extends ApiResource<LineItemOption> {
|
|
63
63
|
tags(lineItemOptionId: string | LineItemOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
64
64
|
isLineItemOption(resource: any): resource is LineItemOption;
|
65
65
|
relationship(id: string | ResourceId | null): LineItemOptionRel;
|
66
|
+
relationshipToMany(...ids: string[]): LineItemOptionRel[];
|
66
67
|
type(): LineItemOptionType;
|
67
68
|
}
|
68
69
|
export default LineItemOptions;
|
@@ -30,7 +30,10 @@ class LineItemOptions extends ApiResource {
|
|
30
30
|
return resource.type && (resource.type === LineItemOptions.TYPE);
|
31
31
|
}
|
32
32
|
relationship(id) {
|
33
|
-
return (
|
33
|
+
return super.relationshipOneToOne(id);
|
34
|
+
}
|
35
|
+
relationshipToMany(...ids) {
|
36
|
+
return super.relationshipOneToMany(...ids);
|
34
37
|
}
|
35
38
|
type() {
|
36
39
|
return LineItemOptions.TYPE;
|
@@ -164,6 +164,7 @@ declare class LineItems extends ApiResource<LineItem> {
|
|
164
164
|
_reset_circuit(id: string | LineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
165
165
|
isLineItem(resource: any): resource is LineItem;
|
166
166
|
relationship(id: string | ResourceId | null): LineItemRel;
|
167
|
+
relationshipToMany(...ids: string[]): LineItemRel[];
|
167
168
|
type(): LineItemType;
|
168
169
|
}
|
169
170
|
export default LineItems;
|
@@ -55,7 +55,10 @@ class LineItems extends ApiResource {
|
|
55
55
|
return resource.type && (resource.type === LineItems.TYPE);
|
56
56
|
}
|
57
57
|
relationship(id) {
|
58
|
-
return (
|
58
|
+
return super.relationshipOneToOne(id);
|
59
|
+
}
|
60
|
+
relationshipToMany(...ids) {
|
61
|
+
return super.relationshipOneToMany(...ids);
|
59
62
|
}
|
60
63
|
type() {
|
61
64
|
return LineItems.TYPE;
|
@@ -28,6 +28,7 @@ declare class ManualGateways extends ApiResource<ManualGateway> {
|
|
28
28
|
versions(manualGatewayId: string | ManualGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
29
29
|
isManualGateway(resource: any): resource is ManualGateway;
|
30
30
|
relationship(id: string | ResourceId | null): ManualGatewayRel;
|
31
|
+
relationshipToMany(...ids: string[]): ManualGatewayRel[];
|
31
32
|
type(): ManualGatewayType;
|
32
33
|
}
|
33
34
|
export default ManualGateways;
|
@@ -22,7 +22,10 @@ class ManualGateways extends ApiResource {
|
|
22
22
|
return resource.type && (resource.type === ManualGateways.TYPE);
|
23
23
|
}
|
24
24
|
relationship(id) {
|
25
|
-
return (
|
25
|
+
return super.relationshipOneToOne(id);
|
26
|
+
}
|
27
|
+
relationshipToMany(...ids) {
|
28
|
+
return super.relationshipOneToMany(...ids);
|
26
29
|
}
|
27
30
|
type() {
|
28
31
|
return ManualGateways.TYPE;
|