@commercelayer/sdk 5.35.0 → 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 +41 -75
- package/lib/cjs/commercelayer.d.ts +126 -125
- package/lib/cjs/commercelayer.js +267 -155
- package/lib/cjs/common.js +1 -12
- package/lib/cjs/config.js +0 -2
- package/lib/cjs/debug.js +0 -21
- package/lib/cjs/error.d.ts +6 -7
- package/lib/cjs/error.js +36 -35
- 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 +22 -10
- package/lib/cjs/jsonapi.js +0 -2
- package/lib/cjs/model.d.ts +0 -3
- package/lib/cjs/model.js +0 -1
- package/lib/cjs/query.d.ts +2 -1
- package/lib/cjs/query.js +8 -7
- package/lib/cjs/resource.d.ts +2 -5
- package/lib/cjs/resource.js +32 -58
- 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 +1 -0
- package/lib/cjs/resources/events.js +4 -1
- 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 +1 -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 +1 -0
- package/lib/cjs/resources/shipments.js +4 -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 +43 -90
- package/lib/esm/commercelayer.d.ts +126 -125
- package/lib/esm/commercelayer.js +270 -171
- package/lib/esm/common.js +1 -12
- package/lib/esm/config.js +0 -2
- package/lib/esm/debug.js +0 -21
- package/lib/esm/error.d.ts +6 -7
- package/lib/esm/error.js +44 -35
- 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 +22 -10
- package/lib/esm/jsonapi.js +0 -2
- package/lib/esm/model.d.ts +0 -3
- package/lib/esm/model.js +0 -1
- package/lib/esm/query.d.ts +2 -1
- package/lib/esm/query.js +7 -7
- package/lib/esm/resource.d.ts +2 -5
- package/lib/esm/resource.js +40 -76
- package/lib/esm/resources/addresses.d.ts +1 -0
- package/lib/esm/resources/addresses.js +5 -2
- package/lib/esm/resources/adjustments.d.ts +1 -0
- package/lib/esm/resources/adjustments.js +5 -2
- package/lib/esm/resources/adyen_gateways.d.ts +1 -0
- package/lib/esm/resources/adyen_gateways.js +5 -2
- package/lib/esm/resources/adyen_payments.d.ts +1 -0
- package/lib/esm/resources/adyen_payments.js +5 -2
- package/lib/esm/resources/application.d.ts +1 -0
- package/lib/esm/resources/application.js +5 -2
- package/lib/esm/resources/attachments.d.ts +1 -0
- package/lib/esm/resources/attachments.js +5 -2
- package/lib/esm/resources/authorizations.d.ts +1 -0
- package/lib/esm/resources/authorizations.js +5 -2
- package/lib/esm/resources/avalara_accounts.d.ts +1 -0
- package/lib/esm/resources/avalara_accounts.js +5 -2
- package/lib/esm/resources/axerve_gateways.d.ts +1 -0
- package/lib/esm/resources/axerve_gateways.js +5 -2
- package/lib/esm/resources/axerve_payments.d.ts +1 -0
- package/lib/esm/resources/axerve_payments.js +5 -2
- package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -0
- package/lib/esm/resources/billing_info_validation_rules.js +5 -2
- package/lib/esm/resources/bing_geocoders.d.ts +1 -0
- package/lib/esm/resources/bing_geocoders.js +5 -2
- package/lib/esm/resources/braintree_gateways.d.ts +1 -0
- package/lib/esm/resources/braintree_gateways.js +5 -2
- package/lib/esm/resources/braintree_payments.d.ts +1 -0
- package/lib/esm/resources/braintree_payments.js +5 -2
- package/lib/esm/resources/bundles.d.ts +1 -0
- package/lib/esm/resources/bundles.js +5 -2
- package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +1 -0
- package/lib/esm/resources/buy_x_pay_y_promotions.js +5 -2
- package/lib/esm/resources/captures.d.ts +1 -0
- package/lib/esm/resources/captures.js +5 -2
- package/lib/esm/resources/carrier_accounts.d.ts +1 -0
- package/lib/esm/resources/carrier_accounts.js +5 -2
- package/lib/esm/resources/checkout_com_gateways.d.ts +1 -0
- package/lib/esm/resources/checkout_com_gateways.js +5 -2
- package/lib/esm/resources/checkout_com_payments.d.ts +1 -0
- package/lib/esm/resources/checkout_com_payments.js +5 -2
- package/lib/esm/resources/cleanups.d.ts +1 -0
- package/lib/esm/resources/cleanups.js +5 -2
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +5 -2
- package/lib/esm/resources/coupon_recipients.d.ts +1 -0
- package/lib/esm/resources/coupon_recipients.js +5 -2
- package/lib/esm/resources/coupons.d.ts +1 -0
- package/lib/esm/resources/coupons.js +5 -2
- package/lib/esm/resources/custom_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/custom_promotion_rules.js +5 -2
- package/lib/esm/resources/customer_addresses.d.ts +1 -0
- package/lib/esm/resources/customer_addresses.js +5 -2
- package/lib/esm/resources/customer_groups.d.ts +1 -0
- package/lib/esm/resources/customer_groups.js +5 -2
- package/lib/esm/resources/customer_password_resets.d.ts +1 -0
- package/lib/esm/resources/customer_password_resets.js +5 -2
- package/lib/esm/resources/customer_payment_sources.d.ts +1 -0
- package/lib/esm/resources/customer_payment_sources.js +5 -2
- package/lib/esm/resources/customer_subscriptions.d.ts +1 -0
- package/lib/esm/resources/customer_subscriptions.js +5 -2
- package/lib/esm/resources/customers.d.ts +1 -0
- package/lib/esm/resources/customers.js +5 -2
- package/lib/esm/resources/delivery_lead_times.d.ts +1 -0
- package/lib/esm/resources/delivery_lead_times.js +5 -2
- package/lib/esm/resources/event_callbacks.d.ts +1 -0
- package/lib/esm/resources/event_callbacks.js +5 -2
- package/lib/esm/resources/events.d.ts +1 -0
- package/lib/esm/resources/events.js +5 -2
- package/lib/esm/resources/exports.d.ts +1 -0
- package/lib/esm/resources/exports.js +5 -2
- package/lib/esm/resources/external_gateways.d.ts +1 -0
- package/lib/esm/resources/external_gateways.js +5 -2
- package/lib/esm/resources/external_payments.d.ts +1 -0
- package/lib/esm/resources/external_payments.js +5 -2
- package/lib/esm/resources/external_promotions.d.ts +1 -0
- package/lib/esm/resources/external_promotions.js +5 -2
- package/lib/esm/resources/external_tax_calculators.d.ts +1 -0
- package/lib/esm/resources/external_tax_calculators.js +5 -2
- package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -0
- package/lib/esm/resources/fixed_amount_promotions.js +5 -2
- package/lib/esm/resources/fixed_price_promotions.d.ts +1 -0
- package/lib/esm/resources/fixed_price_promotions.js +5 -2
- package/lib/esm/resources/free_gift_promotions.d.ts +1 -0
- package/lib/esm/resources/free_gift_promotions.js +5 -2
- package/lib/esm/resources/free_shipping_promotions.d.ts +1 -0
- package/lib/esm/resources/free_shipping_promotions.js +5 -2
- package/lib/esm/resources/geocoders.d.ts +1 -0
- package/lib/esm/resources/geocoders.js +5 -2
- package/lib/esm/resources/gift_card_recipients.d.ts +1 -0
- package/lib/esm/resources/gift_card_recipients.js +5 -2
- package/lib/esm/resources/gift_cards.d.ts +1 -0
- package/lib/esm/resources/gift_cards.js +5 -2
- package/lib/esm/resources/google_geocoders.d.ts +1 -0
- package/lib/esm/resources/google_geocoders.js +5 -2
- package/lib/esm/resources/imports.d.ts +1 -0
- package/lib/esm/resources/imports.js +5 -2
- package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -0
- package/lib/esm/resources/in_stock_subscriptions.js +5 -2
- package/lib/esm/resources/inventory_models.d.ts +1 -0
- package/lib/esm/resources/inventory_models.js +5 -2
- package/lib/esm/resources/inventory_return_locations.d.ts +1 -0
- package/lib/esm/resources/inventory_return_locations.js +5 -2
- package/lib/esm/resources/inventory_stock_locations.d.ts +1 -0
- package/lib/esm/resources/inventory_stock_locations.js +5 -2
- package/lib/esm/resources/klarna_gateways.d.ts +1 -0
- package/lib/esm/resources/klarna_gateways.js +5 -2
- package/lib/esm/resources/klarna_payments.d.ts +1 -0
- package/lib/esm/resources/klarna_payments.js +5 -2
- package/lib/esm/resources/line_item_options.d.ts +1 -0
- package/lib/esm/resources/line_item_options.js +5 -2
- package/lib/esm/resources/line_items.d.ts +1 -0
- package/lib/esm/resources/line_items.js +5 -2
- package/lib/esm/resources/manual_gateways.d.ts +1 -0
- package/lib/esm/resources/manual_gateways.js +5 -2
- package/lib/esm/resources/manual_tax_calculators.d.ts +1 -0
- package/lib/esm/resources/manual_tax_calculators.js +5 -2
- package/lib/esm/resources/markets.d.ts +1 -0
- package/lib/esm/resources/markets.js +5 -2
- package/lib/esm/resources/merchants.d.ts +1 -0
- package/lib/esm/resources/merchants.js +5 -2
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/order_amount_promotion_rules.js +5 -2
- package/lib/esm/resources/order_copies.d.ts +1 -0
- package/lib/esm/resources/order_copies.js +5 -2
- package/lib/esm/resources/order_factories.d.ts +1 -0
- package/lib/esm/resources/order_factories.js +5 -2
- package/lib/esm/resources/order_subscription_items.d.ts +1 -0
- package/lib/esm/resources/order_subscription_items.js +5 -2
- package/lib/esm/resources/order_subscriptions.d.ts +1 -0
- package/lib/esm/resources/order_subscriptions.js +5 -2
- package/lib/esm/resources/order_validation_rules.d.ts +1 -0
- package/lib/esm/resources/order_validation_rules.js +5 -2
- package/lib/esm/resources/orders.d.ts +1 -0
- package/lib/esm/resources/orders.js +5 -2
- package/lib/esm/resources/organization.d.ts +1 -0
- package/lib/esm/resources/organization.js +5 -2
- package/lib/esm/resources/packages.d.ts +1 -0
- package/lib/esm/resources/packages.js +5 -2
- package/lib/esm/resources/parcel_line_items.d.ts +1 -0
- package/lib/esm/resources/parcel_line_items.js +5 -2
- package/lib/esm/resources/parcels.d.ts +1 -0
- package/lib/esm/resources/parcels.js +5 -2
- package/lib/esm/resources/payment_gateways.d.ts +1 -0
- package/lib/esm/resources/payment_gateways.js +5 -2
- package/lib/esm/resources/payment_methods.d.ts +1 -0
- package/lib/esm/resources/payment_methods.js +5 -2
- package/lib/esm/resources/payment_options.d.ts +1 -0
- package/lib/esm/resources/payment_options.js +5 -2
- package/lib/esm/resources/paypal_gateways.d.ts +1 -0
- package/lib/esm/resources/paypal_gateways.js +5 -2
- package/lib/esm/resources/paypal_payments.d.ts +1 -0
- package/lib/esm/resources/paypal_payments.js +5 -2
- package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -0
- package/lib/esm/resources/percentage_discount_promotions.js +5 -2
- package/lib/esm/resources/price_frequency_tiers.d.ts +1 -0
- package/lib/esm/resources/price_frequency_tiers.js +5 -2
- package/lib/esm/resources/price_lists.d.ts +1 -0
- package/lib/esm/resources/price_lists.js +5 -2
- package/lib/esm/resources/price_tiers.d.ts +1 -0
- package/lib/esm/resources/price_tiers.js +5 -2
- package/lib/esm/resources/price_volume_tiers.d.ts +1 -0
- package/lib/esm/resources/price_volume_tiers.js +5 -2
- package/lib/esm/resources/prices.d.ts +1 -0
- package/lib/esm/resources/prices.js +5 -2
- package/lib/esm/resources/promotion_rules.d.ts +1 -0
- package/lib/esm/resources/promotion_rules.js +5 -2
- package/lib/esm/resources/promotions.d.ts +1 -0
- package/lib/esm/resources/promotions.js +5 -2
- package/lib/esm/resources/recurring_order_copies.d.ts +1 -0
- package/lib/esm/resources/recurring_order_copies.js +5 -2
- package/lib/esm/resources/refunds.d.ts +1 -0
- package/lib/esm/resources/refunds.js +5 -2
- package/lib/esm/resources/reserved_stocks.d.ts +1 -0
- package/lib/esm/resources/reserved_stocks.js +5 -2
- package/lib/esm/resources/resource_errors.d.ts +1 -0
- package/lib/esm/resources/resource_errors.js +5 -2
- package/lib/esm/resources/return_line_items.d.ts +1 -0
- package/lib/esm/resources/return_line_items.js +5 -2
- package/lib/esm/resources/returns.d.ts +1 -0
- package/lib/esm/resources/returns.js +5 -2
- package/lib/esm/resources/satispay_gateways.d.ts +1 -0
- package/lib/esm/resources/satispay_gateways.js +5 -2
- package/lib/esm/resources/satispay_payments.d.ts +1 -0
- package/lib/esm/resources/satispay_payments.js +5 -2
- package/lib/esm/resources/shipments.d.ts +1 -0
- package/lib/esm/resources/shipments.js +5 -2
- package/lib/esm/resources/shipping_categories.d.ts +1 -0
- package/lib/esm/resources/shipping_categories.js +5 -2
- package/lib/esm/resources/shipping_method_tiers.d.ts +1 -0
- package/lib/esm/resources/shipping_method_tiers.js +5 -2
- package/lib/esm/resources/shipping_methods.d.ts +1 -0
- package/lib/esm/resources/shipping_methods.js +5 -2
- package/lib/esm/resources/shipping_weight_tiers.d.ts +1 -0
- package/lib/esm/resources/shipping_weight_tiers.js +5 -2
- package/lib/esm/resources/shipping_zones.d.ts +1 -0
- package/lib/esm/resources/shipping_zones.js +5 -2
- package/lib/esm/resources/sku_list_items.d.ts +1 -0
- package/lib/esm/resources/sku_list_items.js +5 -2
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +5 -2
- package/lib/esm/resources/sku_lists.d.ts +1 -0
- package/lib/esm/resources/sku_lists.js +5 -2
- package/lib/esm/resources/sku_options.d.ts +1 -0
- package/lib/esm/resources/sku_options.js +5 -2
- package/lib/esm/resources/skus.d.ts +1 -0
- package/lib/esm/resources/skus.js +5 -2
- package/lib/esm/resources/stock_items.d.ts +1 -0
- package/lib/esm/resources/stock_items.js +5 -2
- package/lib/esm/resources/stock_line_items.d.ts +1 -0
- package/lib/esm/resources/stock_line_items.js +5 -2
- package/lib/esm/resources/stock_locations.d.ts +1 -0
- package/lib/esm/resources/stock_locations.js +5 -2
- package/lib/esm/resources/stock_reservations.d.ts +1 -0
- package/lib/esm/resources/stock_reservations.js +5 -2
- package/lib/esm/resources/stock_transfers.d.ts +1 -0
- package/lib/esm/resources/stock_transfers.js +5 -2
- package/lib/esm/resources/stripe_gateways.d.ts +1 -0
- package/lib/esm/resources/stripe_gateways.js +5 -2
- package/lib/esm/resources/stripe_payments.d.ts +1 -0
- package/lib/esm/resources/stripe_payments.js +5 -2
- package/lib/esm/resources/subscription_models.d.ts +1 -0
- package/lib/esm/resources/subscription_models.js +5 -2
- package/lib/esm/resources/tags.d.ts +1 -0
- package/lib/esm/resources/tags.js +5 -2
- package/lib/esm/resources/tax_calculators.d.ts +1 -0
- package/lib/esm/resources/tax_calculators.js +5 -2
- package/lib/esm/resources/tax_categories.d.ts +1 -0
- package/lib/esm/resources/tax_categories.js +5 -2
- package/lib/esm/resources/tax_rules.d.ts +1 -0
- package/lib/esm/resources/tax_rules.js +5 -2
- package/lib/esm/resources/taxjar_accounts.d.ts +1 -0
- package/lib/esm/resources/taxjar_accounts.js +5 -2
- package/lib/esm/resources/transactions.d.ts +1 -0
- package/lib/esm/resources/transactions.js +5 -2
- package/lib/esm/resources/versions.d.ts +1 -0
- package/lib/esm/resources/versions.js +5 -2
- package/lib/esm/resources/voids.d.ts +1 -0
- package/lib/esm/resources/voids.js +5 -2
- package/lib/esm/resources/webhooks.d.ts +1 -0
- package/lib/esm/resources/webhooks.js +5 -2
- package/lib/esm/resources/wire_transfers.d.ts +1 -0
- package/lib/esm/resources/wire_transfers.js +5 -2
- 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 +20 -17
@@ -39,6 +39,7 @@ declare class ManualTaxCalculators extends ApiResource<ManualTaxCalculator> {
|
|
39
39
|
tax_rules(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxRule>>;
|
40
40
|
isManualTaxCalculator(resource: any): resource is ManualTaxCalculator;
|
41
41
|
relationship(id: string | ResourceId | null): ManualTaxCalculatorRel;
|
42
|
+
relationshipToMany(...ids: string[]): ManualTaxCalculatorRel[];
|
42
43
|
type(): ManualTaxCalculatorType;
|
43
44
|
}
|
44
45
|
export default ManualTaxCalculators;
|
@@ -31,7 +31,10 @@ class ManualTaxCalculators extends resource_1.ApiResource {
|
|
31
31
|
return resource.type && (resource.type === ManualTaxCalculators.TYPE);
|
32
32
|
}
|
33
33
|
relationship(id) {
|
34
|
-
return (
|
34
|
+
return super.relationshipOneToOne(id);
|
35
|
+
}
|
36
|
+
relationshipToMany(...ids) {
|
37
|
+
return super.relationshipOneToMany(...ids);
|
35
38
|
}
|
36
39
|
type() {
|
37
40
|
return ManualTaxCalculators.TYPE;
|
@@ -101,6 +101,7 @@ declare class Markets extends ApiResource<Market> {
|
|
101
101
|
_enable(id: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
102
102
|
isMarket(resource: any): resource is Market;
|
103
103
|
relationship(id: string | ResourceId | null): MarketRel;
|
104
|
+
relationshipToMany(...ids: string[]): MarketRel[];
|
104
105
|
type(): MarketType;
|
105
106
|
}
|
106
107
|
export default Markets;
|
@@ -53,7 +53,10 @@ class Markets extends resource_1.ApiResource {
|
|
53
53
|
return resource.type && (resource.type === Markets.TYPE);
|
54
54
|
}
|
55
55
|
relationship(id) {
|
56
|
-
return (
|
56
|
+
return super.relationshipOneToOne(id);
|
57
|
+
}
|
58
|
+
relationshipToMany(...ids) {
|
59
|
+
return super.relationshipOneToMany(...ids);
|
57
60
|
}
|
58
61
|
type() {
|
59
62
|
return Markets.TYPE;
|
@@ -36,6 +36,7 @@ declare class Merchants extends ApiResource<Merchant> {
|
|
36
36
|
versions(merchantId: string | Merchant, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
37
37
|
isMerchant(resource: any): resource is Merchant;
|
38
38
|
relationship(id: string | ResourceId | null): MerchantRel;
|
39
|
+
relationshipToMany(...ids: string[]): MerchantRel[];
|
39
40
|
type(): MerchantType;
|
40
41
|
}
|
41
42
|
export default Merchants;
|
@@ -27,7 +27,10 @@ class Merchants extends resource_1.ApiResource {
|
|
27
27
|
return resource.type && (resource.type === Merchants.TYPE);
|
28
28
|
}
|
29
29
|
relationship(id) {
|
30
|
-
return (
|
30
|
+
return super.relationshipOneToOne(id);
|
31
|
+
}
|
32
|
+
relationshipToMany(...ids) {
|
33
|
+
return super.relationshipOneToMany(...ids);
|
31
34
|
}
|
32
35
|
type() {
|
33
36
|
return Merchants.TYPE;
|
@@ -61,6 +61,7 @@ declare class OrderAmountPromotionRules extends ApiResource<OrderAmountPromotion
|
|
61
61
|
versions(orderAmountPromotionRuleId: string | OrderAmountPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
62
62
|
isOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule;
|
63
63
|
relationship(id: string | ResourceId | null): OrderAmountPromotionRuleRel;
|
64
|
+
relationshipToMany(...ids: string[]): OrderAmountPromotionRuleRel[];
|
64
65
|
type(): OrderAmountPromotionRuleType;
|
65
66
|
}
|
66
67
|
export default OrderAmountPromotionRules;
|
@@ -19,7 +19,10 @@ class OrderAmountPromotionRules extends resource_1.ApiResource {
|
|
19
19
|
return resource.type && (resource.type === OrderAmountPromotionRules.TYPE);
|
20
20
|
}
|
21
21
|
relationship(id) {
|
22
|
-
return (
|
22
|
+
return super.relationshipOneToOne(id);
|
23
|
+
}
|
24
|
+
relationshipToMany(...ids) {
|
25
|
+
return super.relationshipOneToMany(...ids);
|
23
26
|
}
|
24
27
|
type() {
|
25
28
|
return OrderAmountPromotionRules.TYPE;
|
@@ -45,6 +45,7 @@ declare class OrderCopies extends ApiResource<OrderCopy> {
|
|
45
45
|
order_subscription(orderCopyId: string | OrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
46
46
|
isOrderCopy(resource: any): resource is OrderCopy;
|
47
47
|
relationship(id: string | ResourceId | null): OrderCopyRel;
|
48
|
+
relationshipToMany(...ids: string[]): OrderCopyRel[];
|
48
49
|
type(): OrderCopyType;
|
49
50
|
}
|
50
51
|
export default OrderCopies;
|
@@ -31,7 +31,10 @@ class OrderCopies extends resource_1.ApiResource {
|
|
31
31
|
return resource.type && (resource.type === OrderCopies.TYPE);
|
32
32
|
}
|
33
33
|
relationship(id) {
|
34
|
-
return (
|
34
|
+
return super.relationshipOneToOne(id);
|
35
|
+
}
|
36
|
+
relationshipToMany(...ids) {
|
37
|
+
return super.relationshipOneToMany(...ids);
|
35
38
|
}
|
36
39
|
type() {
|
37
40
|
return OrderCopies.TYPE;
|
@@ -28,6 +28,7 @@ declare class OrderFactories extends ApiResource<OrderFactory> {
|
|
28
28
|
events(orderFactoryId: string | OrderFactory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
29
29
|
isOrderFactory(resource: any): resource is OrderFactory;
|
30
30
|
relationship(id: string | ResourceId | null): OrderFactoryRel;
|
31
|
+
relationshipToMany(...ids: string[]): OrderFactoryRel[];
|
31
32
|
type(): OrderFactoryType;
|
32
33
|
}
|
33
34
|
export default OrderFactories;
|
@@ -18,7 +18,10 @@ class OrderFactories extends resource_1.ApiResource {
|
|
18
18
|
return resource.type && (resource.type === OrderFactories.TYPE);
|
19
19
|
}
|
20
20
|
relationship(id) {
|
21
|
-
return (
|
21
|
+
return super.relationshipOneToOne(id);
|
22
|
+
}
|
23
|
+
relationshipToMany(...ids) {
|
24
|
+
return super.relationshipOneToMany(...ids);
|
22
25
|
}
|
23
26
|
type() {
|
24
27
|
return OrderFactories.TYPE;
|
@@ -62,6 +62,7 @@ declare class OrderSubscriptionItems extends ApiResource<OrderSubscriptionItem>
|
|
62
62
|
source_line_item(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
63
63
|
isOrderSubscriptionItem(resource: any): resource is OrderSubscriptionItem;
|
64
64
|
relationship(id: string | ResourceId | null): OrderSubscriptionItemRel;
|
65
|
+
relationshipToMany(...ids: string[]): OrderSubscriptionItemRel[];
|
65
66
|
type(): OrderSubscriptionItemType;
|
66
67
|
}
|
67
68
|
export default OrderSubscriptionItems;
|
@@ -23,7 +23,10 @@ class OrderSubscriptionItems extends resource_1.ApiResource {
|
|
23
23
|
return resource.type && (resource.type === OrderSubscriptionItems.TYPE);
|
24
24
|
}
|
25
25
|
relationship(id) {
|
26
|
-
return (
|
26
|
+
return super.relationshipOneToOne(id);
|
27
|
+
}
|
28
|
+
relationshipToMany(...ids) {
|
29
|
+
return super.relationshipOneToMany(...ids);
|
27
30
|
}
|
28
31
|
type() {
|
29
32
|
return OrderSubscriptionItems.TYPE;
|
@@ -90,6 +90,7 @@ declare class OrderSubscriptions extends ApiResource<OrderSubscription> {
|
|
90
90
|
_cancel(id: string | OrderSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
91
91
|
isOrderSubscription(resource: any): resource is OrderSubscription;
|
92
92
|
relationship(id: string | ResourceId | null): OrderSubscriptionRel;
|
93
|
+
relationshipToMany(...ids: string[]): OrderSubscriptionRel[];
|
93
94
|
type(): OrderSubscriptionType;
|
94
95
|
}
|
95
96
|
export default OrderSubscriptions;
|
@@ -68,7 +68,10 @@ class OrderSubscriptions extends resource_1.ApiResource {
|
|
68
68
|
return resource.type && (resource.type === OrderSubscriptions.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 OrderSubscriptions.TYPE;
|
@@ -21,6 +21,7 @@ declare class OrderValidationRules extends ApiResource<OrderValidationRule> {
|
|
21
21
|
versions(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
22
22
|
isOrderValidationRule(resource: any): resource is OrderValidationRule;
|
23
23
|
relationship(id: string | ResourceId | null): OrderValidationRuleRel;
|
24
|
+
relationshipToMany(...ids: string[]): OrderValidationRuleRel[];
|
24
25
|
type(): OrderValidationRuleType;
|
25
26
|
}
|
26
27
|
export default OrderValidationRules;
|
@@ -18,7 +18,10 @@ class OrderValidationRules extends resource_1.ApiResource {
|
|
18
18
|
return resource.type && (resource.type === OrderValidationRules.TYPE);
|
19
19
|
}
|
20
20
|
relationship(id) {
|
21
|
-
return (
|
21
|
+
return super.relationshipOneToOne(id);
|
22
|
+
}
|
23
|
+
relationshipToMany(...ids) {
|
24
|
+
return super.relationshipOneToMany(...ids);
|
22
25
|
}
|
23
26
|
type() {
|
24
27
|
return OrderValidationRules.TYPE;
|
@@ -383,6 +383,7 @@ declare class Orders extends ApiResource<Order> {
|
|
383
383
|
_reset_circuit(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
384
384
|
isOrder(resource: any): resource is Order;
|
385
385
|
relationship(id: string | ResourceId | null): OrderRel;
|
386
|
+
relationshipToMany(...ids: string[]): OrderRel[];
|
386
387
|
type(): OrderType;
|
387
388
|
}
|
388
389
|
export default Orders;
|
@@ -226,7 +226,10 @@ class Orders extends resource_1.ApiResource {
|
|
226
226
|
return resource.type && (resource.type === Orders.TYPE);
|
227
227
|
}
|
228
228
|
relationship(id) {
|
229
|
-
return (
|
229
|
+
return super.relationshipOneToOne(id);
|
230
|
+
}
|
231
|
+
relationshipToMany(...ids) {
|
232
|
+
return super.relationshipOneToMany(...ids);
|
230
233
|
}
|
231
234
|
type() {
|
232
235
|
return Orders.TYPE;
|
@@ -28,6 +28,7 @@ declare class Organizations extends ApiSingleton<Organization> {
|
|
28
28
|
static readonly TYPE: OrganizationType;
|
29
29
|
isOrganization(resource: any): resource is Organization;
|
30
30
|
relationship(id: string | ResourceId | null): OrganizationRel;
|
31
|
+
relationshipToMany(...ids: string[]): OrganizationRel[];
|
31
32
|
type(): OrganizationType;
|
32
33
|
}
|
33
34
|
export default Organizations;
|
@@ -6,7 +6,10 @@ class Organizations extends resource_1.ApiSingleton {
|
|
6
6
|
return resource.type && (resource.type === Organizations.TYPE);
|
7
7
|
}
|
8
8
|
relationship(id) {
|
9
|
-
return (
|
9
|
+
return super.relationshipOneToOne(id);
|
10
|
+
}
|
11
|
+
relationshipToMany(...ids) {
|
12
|
+
return super.relationshipOneToMany(...ids);
|
10
13
|
}
|
11
14
|
type() {
|
12
15
|
return Organizations.TYPE;
|
@@ -54,6 +54,7 @@ declare class Packages extends ApiResource<Package> {
|
|
54
54
|
versions(packageId: string | Package, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
55
55
|
isPackage(resource: any): resource is Package;
|
56
56
|
relationship(id: string | ResourceId | null): PackageRel;
|
57
|
+
relationshipToMany(...ids: string[]): PackageRel[];
|
57
58
|
type(): PackageType;
|
58
59
|
}
|
59
60
|
export default Packages;
|
@@ -31,7 +31,10 @@ class Packages extends resource_1.ApiResource {
|
|
31
31
|
return resource.type && (resource.type === Packages.TYPE);
|
32
32
|
}
|
33
33
|
relationship(id) {
|
34
|
-
return (
|
34
|
+
return super.relationshipOneToOne(id);
|
35
|
+
}
|
36
|
+
relationshipToMany(...ids) {
|
37
|
+
return super.relationshipOneToMany(...ids);
|
35
38
|
}
|
36
39
|
type() {
|
37
40
|
return Packages.TYPE;
|
@@ -41,6 +41,7 @@ declare class ParcelLineItems extends ApiResource<ParcelLineItem> {
|
|
41
41
|
versions(parcelLineItemId: string | ParcelLineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
42
42
|
isParcelLineItem(resource: any): resource is ParcelLineItem;
|
43
43
|
relationship(id: string | ResourceId | null): ParcelLineItemRel;
|
44
|
+
relationshipToMany(...ids: string[]): ParcelLineItemRel[];
|
44
45
|
type(): ParcelLineItemType;
|
45
46
|
}
|
46
47
|
export default ParcelLineItems;
|
@@ -27,7 +27,10 @@ class ParcelLineItems extends resource_1.ApiResource {
|
|
27
27
|
return resource.type && (resource.type === ParcelLineItems.TYPE);
|
28
28
|
}
|
29
29
|
relationship(id) {
|
30
|
-
return (
|
30
|
+
return super.relationshipOneToOne(id);
|
31
|
+
}
|
32
|
+
relationshipToMany(...ids) {
|
33
|
+
return super.relationshipOneToMany(...ids);
|
31
34
|
}
|
32
35
|
type() {
|
33
36
|
return ParcelLineItems.TYPE;
|
@@ -120,6 +120,7 @@ declare class Parcels extends ApiResource<Parcel> {
|
|
120
120
|
versions(parcelId: string | Parcel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
121
121
|
isParcel(resource: any): resource is Parcel;
|
122
122
|
relationship(id: string | ResourceId | null): ParcelRel;
|
123
|
+
relationshipToMany(...ids: string[]): ParcelRel[];
|
123
124
|
type(): ParcelType;
|
124
125
|
}
|
125
126
|
export default Parcels;
|
@@ -39,7 +39,10 @@ class Parcels extends resource_1.ApiResource {
|
|
39
39
|
return resource.type && (resource.type === Parcels.TYPE);
|
40
40
|
}
|
41
41
|
relationship(id) {
|
42
|
-
return (
|
42
|
+
return super.relationshipOneToOne(id);
|
43
|
+
}
|
44
|
+
relationshipToMany(...ids) {
|
45
|
+
return super.relationshipOneToMany(...ids);
|
43
46
|
}
|
44
47
|
type() {
|
45
48
|
return Parcels.TYPE;
|
@@ -19,6 +19,7 @@ declare class PaymentGateways extends ApiResource<PaymentGateway> {
|
|
19
19
|
versions(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
20
20
|
isPaymentGateway(resource: any): resource is PaymentGateway;
|
21
21
|
relationship(id: string | ResourceId | null): PaymentGatewayRel;
|
22
|
+
relationshipToMany(...ids: string[]): PaymentGatewayRel[];
|
22
23
|
type(): PaymentGatewayType;
|
23
24
|
}
|
24
25
|
export default PaymentGateways;
|
@@ -14,7 +14,10 @@ class PaymentGateways extends resource_1.ApiResource {
|
|
14
14
|
return resource.type && (resource.type === PaymentGateways.TYPE);
|
15
15
|
}
|
16
16
|
relationship(id) {
|
17
|
-
return (
|
17
|
+
return super.relationshipOneToOne(id);
|
18
|
+
}
|
19
|
+
relationshipToMany(...ids) {
|
20
|
+
return super.relationshipOneToMany(...ids);
|
18
21
|
}
|
19
22
|
type() {
|
20
23
|
return PaymentGateways.TYPE;
|
@@ -77,6 +77,7 @@ declare class PaymentMethods extends ApiResource<PaymentMethod> {
|
|
77
77
|
_enable(id: string | PaymentMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
|
78
78
|
isPaymentMethod(resource: any): resource is PaymentMethod;
|
79
79
|
relationship(id: string | ResourceId | null): PaymentMethodRel;
|
80
|
+
relationshipToMany(...ids: string[]): PaymentMethodRel[];
|
80
81
|
type(): PaymentMethodType;
|
81
82
|
}
|
82
83
|
export default PaymentMethods;
|
@@ -37,7 +37,10 @@ class PaymentMethods extends resource_1.ApiResource {
|
|
37
37
|
return resource.type && (resource.type === PaymentMethods.TYPE);
|
38
38
|
}
|
39
39
|
relationship(id) {
|
40
|
-
return (
|
40
|
+
return super.relationshipOneToOne(id);
|
41
|
+
}
|
42
|
+
relationshipToMany(...ids) {
|
43
|
+
return super.relationshipOneToMany(...ids);
|
41
44
|
}
|
42
45
|
type() {
|
43
46
|
return PaymentMethods.TYPE;
|
@@ -38,6 +38,7 @@ declare class PaymentOptions extends ApiResource<PaymentOption> {
|
|
38
38
|
attachments(paymentOptionId: string | PaymentOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
39
39
|
isPaymentOption(resource: any): resource is PaymentOption;
|
40
40
|
relationship(id: string | ResourceId | null): PaymentOptionRel;
|
41
|
+
relationshipToMany(...ids: string[]): PaymentOptionRel[];
|
41
42
|
type(): PaymentOptionType;
|
42
43
|
}
|
43
44
|
export default PaymentOptions;
|
@@ -23,7 +23,10 @@ class PaymentOptions extends resource_1.ApiResource {
|
|
23
23
|
return resource.type && (resource.type === PaymentOptions.TYPE);
|
24
24
|
}
|
25
25
|
relationship(id) {
|
26
|
-
return (
|
26
|
+
return super.relationshipOneToOne(id);
|
27
|
+
}
|
28
|
+
relationshipToMany(...ids) {
|
29
|
+
return super.relationshipOneToMany(...ids);
|
27
30
|
}
|
28
31
|
type() {
|
29
32
|
return PaymentOptions.TYPE;
|
@@ -35,6 +35,7 @@ declare class PaypalGateways extends ApiResource<PaypalGateway> {
|
|
35
35
|
paypal_payments(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaypalPayment>>;
|
36
36
|
isPaypalGateway(resource: any): resource is PaypalGateway;
|
37
37
|
relationship(id: string | ResourceId | null): PaypalGatewayRel;
|
38
|
+
relationshipToMany(...ids: string[]): PaypalGatewayRel[];
|
38
39
|
type(): PaypalGatewayType;
|
39
40
|
}
|
40
41
|
export default PaypalGateways;
|
@@ -27,7 +27,10 @@ class PaypalGateways extends resource_1.ApiResource {
|
|
27
27
|
return resource.type && (resource.type === PaypalGateways.TYPE);
|
28
28
|
}
|
29
29
|
relationship(id) {
|
30
|
-
return (
|
30
|
+
return super.relationshipOneToOne(id);
|
31
|
+
}
|
32
|
+
relationshipToMany(...ids) {
|
33
|
+
return super.relationshipOneToMany(...ids);
|
31
34
|
}
|
32
35
|
type() {
|
33
36
|
return PaypalGateways.TYPE;
|
@@ -50,6 +50,7 @@ declare class PaypalPayments extends ApiResource<PaypalPayment> {
|
|
50
50
|
versions(paypalPaymentId: string | PaypalPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
51
51
|
isPaypalPayment(resource: any): resource is PaypalPayment;
|
52
52
|
relationship(id: string | ResourceId | null): PaypalPaymentRel;
|
53
|
+
relationshipToMany(...ids: string[]): PaypalPaymentRel[];
|
53
54
|
type(): PaypalPaymentType;
|
54
55
|
}
|
55
56
|
export default PaypalPayments;
|
@@ -27,7 +27,10 @@ class PaypalPayments extends resource_1.ApiResource {
|
|
27
27
|
return resource.type && (resource.type === PaypalPayments.TYPE);
|
28
28
|
}
|
29
29
|
relationship(id) {
|
30
|
-
return (
|
30
|
+
return super.relationshipOneToOne(id);
|
31
|
+
}
|
32
|
+
relationshipToMany(...ids) {
|
33
|
+
return super.relationshipOneToMany(...ids);
|
31
34
|
}
|
32
35
|
type() {
|
33
36
|
return PaypalPayments.TYPE;
|
@@ -125,6 +125,7 @@ declare class PercentageDiscountPromotions extends ApiResource<PercentageDiscoun
|
|
125
125
|
_enable(id: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PercentageDiscountPromotion>;
|
126
126
|
isPercentageDiscountPromotion(resource: any): resource is PercentageDiscountPromotion;
|
127
127
|
relationship(id: string | ResourceId | null): PercentageDiscountPromotionRel;
|
128
|
+
relationshipToMany(...ids: string[]): PercentageDiscountPromotionRel[];
|
128
129
|
type(): PercentageDiscountPromotionType;
|
129
130
|
}
|
130
131
|
export default PercentageDiscountPromotions;
|
@@ -69,7 +69,10 @@ class PercentageDiscountPromotions extends resource_1.ApiResource {
|
|
69
69
|
return resource.type && (resource.type === PercentageDiscountPromotions.TYPE);
|
70
70
|
}
|
71
71
|
relationship(id) {
|
72
|
-
return (
|
72
|
+
return super.relationshipOneToOne(id);
|
73
|
+
}
|
74
|
+
relationshipToMany(...ids) {
|
75
|
+
return super.relationshipOneToMany(...ids);
|
73
76
|
}
|
74
77
|
type() {
|
75
78
|
return PercentageDiscountPromotions.TYPE;
|
@@ -47,6 +47,7 @@ declare class PriceFrequencyTiers extends ApiResource<PriceFrequencyTier> {
|
|
47
47
|
events(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
48
48
|
isPriceFrequencyTier(resource: any): resource is PriceFrequencyTier;
|
49
49
|
relationship(id: string | ResourceId | null): PriceFrequencyTierRel;
|
50
|
+
relationshipToMany(...ids: string[]): PriceFrequencyTierRel[];
|
50
51
|
type(): PriceFrequencyTierType;
|
51
52
|
}
|
52
53
|
export default PriceFrequencyTiers;
|
@@ -31,7 +31,10 @@ class PriceFrequencyTiers extends resource_1.ApiResource {
|
|
31
31
|
return resource.type && (resource.type === PriceFrequencyTiers.TYPE);
|
32
32
|
}
|
33
33
|
relationship(id) {
|
34
|
-
return (
|
34
|
+
return super.relationshipOneToOne(id);
|
35
|
+
}
|
36
|
+
relationshipToMany(...ids) {
|
37
|
+
return super.relationshipOneToMany(...ids);
|
35
38
|
}
|
36
39
|
type() {
|
37
40
|
return PriceFrequencyTiers.TYPE;
|
@@ -40,6 +40,7 @@ declare class PriceLists extends ApiResource<PriceList> {
|
|
40
40
|
versions(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
41
41
|
isPriceList(resource: any): resource is PriceList;
|
42
42
|
relationship(id: string | ResourceId | null): PriceListRel;
|
43
|
+
relationshipToMany(...ids: string[]): PriceListRel[];
|
43
44
|
type(): PriceListType;
|
44
45
|
}
|
45
46
|
export default PriceLists;
|
@@ -27,7 +27,10 @@ class PriceLists extends resource_1.ApiResource {
|
|
27
27
|
return resource.type && (resource.type === PriceLists.TYPE);
|
28
28
|
}
|
29
29
|
relationship(id) {
|
30
|
-
return (
|
30
|
+
return super.relationshipOneToOne(id);
|
31
|
+
}
|
32
|
+
relationshipToMany(...ids) {
|
33
|
+
return super.relationshipOneToMany(...ids);
|
31
34
|
}
|
32
35
|
type() {
|
33
36
|
return PriceLists.TYPE;
|
@@ -26,6 +26,7 @@ declare class PriceTiers extends ApiResource<PriceTier> {
|
|
26
26
|
versions(priceTierId: string | PriceTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
27
27
|
isPriceTier(resource: any): resource is PriceTier;
|
28
28
|
relationship(id: string | ResourceId | null): PriceTierRel;
|
29
|
+
relationshipToMany(...ids: string[]): PriceTierRel[];
|
29
30
|
type(): PriceTierType;
|
30
31
|
}
|
31
32
|
export default PriceTiers;
|
@@ -18,7 +18,10 @@ class PriceTiers extends resource_1.ApiResource {
|
|
18
18
|
return resource.type && (resource.type === PriceTiers.TYPE);
|
19
19
|
}
|
20
20
|
relationship(id) {
|
21
|
-
return (
|
21
|
+
return super.relationshipOneToOne(id);
|
22
|
+
}
|
23
|
+
relationshipToMany(...ids) {
|
24
|
+
return super.relationshipOneToMany(...ids);
|
22
25
|
}
|
23
26
|
type() {
|
24
27
|
return PriceTiers.TYPE;
|
@@ -47,6 +47,7 @@ declare class PriceVolumeTiers extends ApiResource<PriceVolumeTier> {
|
|
47
47
|
events(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
48
48
|
isPriceVolumeTier(resource: any): resource is PriceVolumeTier;
|
49
49
|
relationship(id: string | ResourceId | null): PriceVolumeTierRel;
|
50
|
+
relationshipToMany(...ids: string[]): PriceVolumeTierRel[];
|
50
51
|
type(): PriceVolumeTierType;
|
51
52
|
}
|
52
53
|
export default PriceVolumeTiers;
|
@@ -31,7 +31,10 @@ class PriceVolumeTiers extends resource_1.ApiResource {
|
|
31
31
|
return resource.type && (resource.type === PriceVolumeTiers.TYPE);
|
32
32
|
}
|
33
33
|
relationship(id) {
|
34
|
-
return (
|
34
|
+
return super.relationshipOneToOne(id);
|
35
|
+
}
|
36
|
+
relationshipToMany(...ids) {
|
37
|
+
return super.relationshipOneToMany(...ids);
|
35
38
|
}
|
36
39
|
type() {
|
37
40
|
return PriceVolumeTiers.TYPE;
|
@@ -69,6 +69,7 @@ declare class Prices extends ApiResource<Price> {
|
|
69
69
|
versions(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
70
70
|
isPrice(resource: any): resource is Price;
|
71
71
|
relationship(id: string | ResourceId | null): PriceRel;
|
72
|
+
relationshipToMany(...ids: string[]): PriceRel[];
|
72
73
|
type(): PriceType;
|
73
74
|
}
|
74
75
|
export default Prices;
|
@@ -43,7 +43,10 @@ class Prices extends resource_1.ApiResource {
|
|
43
43
|
return resource.type && (resource.type === Prices.TYPE);
|
44
44
|
}
|
45
45
|
relationship(id) {
|
46
|
-
return (
|
46
|
+
return super.relationshipOneToOne(id);
|
47
|
+
}
|
48
|
+
relationshipToMany(...ids) {
|
49
|
+
return super.relationshipOneToMany(...ids);
|
47
50
|
}
|
48
51
|
type() {
|
49
52
|
return Prices.TYPE;
|
@@ -23,6 +23,7 @@ declare class PromotionRules extends ApiResource<PromotionRule> {
|
|
23
23
|
versions(promotionRuleId: string | PromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
24
24
|
isPromotionRule(resource: any): resource is PromotionRule;
|
25
25
|
relationship(id: string | ResourceId | null): PromotionRuleRel;
|
26
|
+
relationshipToMany(...ids: string[]): PromotionRuleRel[];
|
26
27
|
type(): PromotionRuleType;
|
27
28
|
}
|
28
29
|
export default PromotionRules;
|
@@ -10,7 +10,10 @@ class PromotionRules extends resource_1.ApiResource {
|
|
10
10
|
return resource.type && (resource.type === PromotionRules.TYPE);
|
11
11
|
}
|
12
12
|
relationship(id) {
|
13
|
-
return (
|
13
|
+
return super.relationshipOneToOne(id);
|
14
|
+
}
|
15
|
+
relationshipToMany(...ids) {
|
16
|
+
return super.relationshipOneToMany(...ids);
|
14
17
|
}
|
15
18
|
type() {
|
16
19
|
return PromotionRules.TYPE;
|
@@ -57,6 +57,7 @@ declare class Promotions extends ApiResource<Promotion> {
|
|
57
57
|
versions(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
58
58
|
isPromotion(resource: any): resource is Promotion;
|
59
59
|
relationship(id: string | ResourceId | null): PromotionRel;
|
60
|
+
relationshipToMany(...ids: string[]): PromotionRel[];
|
60
61
|
type(): PromotionType;
|
61
62
|
}
|
62
63
|
export default Promotions;
|
@@ -50,7 +50,10 @@ class Promotions extends resource_1.ApiResource {
|
|
50
50
|
return resource.type && (resource.type === Promotions.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 Promotions.TYPE;
|
@@ -47,6 +47,7 @@ declare class RecurringOrderCopies extends ApiResource<RecurringOrderCopy> {
|
|
47
47
|
order_subscription(recurringOrderCopyId: string | RecurringOrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
48
48
|
isRecurringOrderCopy(resource: any): resource is RecurringOrderCopy;
|
49
49
|
relationship(id: string | ResourceId | null): RecurringOrderCopyRel;
|
50
|
+
relationshipToMany(...ids: string[]): RecurringOrderCopyRel[];
|
50
51
|
type(): RecurringOrderCopyType;
|
51
52
|
}
|
52
53
|
export default RecurringOrderCopies;
|