@commercelayer/sdk 6.0.0-alfa.1 → 6.0.0-alfa.3
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/commercelayer.d.ts +2 -2
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/config.d.ts +3 -0
- package/lib/cjs/config.js +3 -0
- package/lib/cjs/jsonapi.js +10 -5
- package/lib/cjs/query.d.ts +1 -1
- package/lib/cjs/query.js +18 -1
- package/lib/cjs/resource.d.ts +7 -2
- package/lib/cjs/resource.js +20 -7
- 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/esm/commercelayer.d.ts +2 -2
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/config.d.ts +3 -0
- package/lib/esm/config.js +3 -0
- package/lib/esm/jsonapi.js +10 -5
- package/lib/esm/query.d.ts +1 -1
- package/lib/esm/query.js +18 -1
- package/lib/esm/resource.d.ts +7 -2
- package/lib/esm/resource.js +20 -7
- 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/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
@@ -59,6 +59,7 @@ declare class CheckoutComPayments extends ApiResource<CheckoutComPayment> {
|
|
59
59
|
_refresh(id: string | CheckoutComPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
60
60
|
isCheckoutComPayment(resource: any): resource is CheckoutComPayment;
|
61
61
|
relationship(id: string | ResourceId | null): CheckoutComPaymentRel;
|
62
|
+
relationshipToMany(...ids: string[]): CheckoutComPaymentRel[];
|
62
63
|
type(): CheckoutComPaymentType;
|
63
64
|
}
|
64
65
|
export default CheckoutComPayments;
|
@@ -33,7 +33,10 @@ class CheckoutComPayments extends resource_1.ApiResource {
|
|
33
33
|
return resource.type && (resource.type === CheckoutComPayments.TYPE);
|
34
34
|
}
|
35
35
|
relationship(id) {
|
36
|
-
return (
|
36
|
+
return super.relationshipOneToOne(id);
|
37
|
+
}
|
38
|
+
relationshipToMany(...ids) {
|
39
|
+
return super.relationshipOneToMany(...ids);
|
37
40
|
}
|
38
41
|
type() {
|
39
42
|
return CheckoutComPayments.TYPE;
|
@@ -34,6 +34,7 @@ declare class Cleanups extends ApiResource<Cleanup> {
|
|
34
34
|
versions(cleanupId: string | Cleanup, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
35
35
|
isCleanup(resource: any): resource is Cleanup;
|
36
36
|
relationship(id: string | ResourceId | null): CleanupRel;
|
37
|
+
relationshipToMany(...ids: string[]): CleanupRel[];
|
37
38
|
type(): CleanupType;
|
38
39
|
}
|
39
40
|
export default Cleanups;
|
@@ -20,7 +20,10 @@ class Cleanups extends resource_1.ApiResource {
|
|
20
20
|
return resource.type && (resource.type === Cleanups.TYPE);
|
21
21
|
}
|
22
22
|
relationship(id) {
|
23
|
-
return (
|
23
|
+
return super.relationshipOneToOne(id);
|
24
|
+
}
|
25
|
+
relationshipToMany(...ids) {
|
26
|
+
return super.relationshipOneToMany(...ids);
|
24
27
|
}
|
25
28
|
type() {
|
26
29
|
return Cleanups.TYPE;
|
@@ -61,6 +61,7 @@ declare class CouponCodesPromotionRules extends ApiResource<CouponCodesPromotion
|
|
61
61
|
coupons(couponCodesPromotionRuleId: string | CouponCodesPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
|
62
62
|
isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule;
|
63
63
|
relationship(id: string | ResourceId | null): CouponCodesPromotionRuleRel;
|
64
|
+
relationshipToMany(...ids: string[]): CouponCodesPromotionRuleRel[];
|
64
65
|
type(): CouponCodesPromotionRuleType;
|
65
66
|
}
|
66
67
|
export default CouponCodesPromotionRules;
|
@@ -23,7 +23,10 @@ class CouponCodesPromotionRules extends resource_1.ApiResource {
|
|
23
23
|
return resource.type && (resource.type === CouponCodesPromotionRules.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 CouponCodesPromotionRules.TYPE;
|
@@ -42,6 +42,7 @@ declare class CouponRecipients extends ApiResource<CouponRecipient> {
|
|
42
42
|
versions(couponRecipientId: string | CouponRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
43
43
|
isCouponRecipient(resource: any): resource is CouponRecipient;
|
44
44
|
relationship(id: string | ResourceId | null): CouponRecipientRel;
|
45
|
+
relationshipToMany(...ids: string[]): CouponRecipientRel[];
|
45
46
|
type(): CouponRecipientType;
|
46
47
|
}
|
47
48
|
export default CouponRecipients;
|
@@ -27,7 +27,10 @@ class CouponRecipients extends resource_1.ApiResource {
|
|
27
27
|
return resource.type && (resource.type === CouponRecipients.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 CouponRecipients.TYPE;
|
@@ -65,6 +65,7 @@ declare class Coupons extends ApiResource<Coupon> {
|
|
65
65
|
versions(couponId: string | Coupon, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
66
66
|
isCoupon(resource: any): resource is Coupon;
|
67
67
|
relationship(id: string | ResourceId | null): CouponRel;
|
68
|
+
relationshipToMany(...ids: string[]): CouponRel[];
|
68
69
|
type(): CouponType;
|
69
70
|
}
|
70
71
|
export default Coupons;
|
@@ -35,7 +35,10 @@ class Coupons extends resource_1.ApiResource {
|
|
35
35
|
return resource.type && (resource.type === Coupons.TYPE);
|
36
36
|
}
|
37
37
|
relationship(id) {
|
38
|
-
return (
|
38
|
+
return super.relationshipOneToOne(id);
|
39
|
+
}
|
40
|
+
relationshipToMany(...ids) {
|
41
|
+
return super.relationshipOneToMany(...ids);
|
39
42
|
}
|
40
43
|
type() {
|
41
44
|
return Coupons.TYPE;
|
@@ -56,6 +56,7 @@ declare class CustomPromotionRules extends ApiResource<CustomPromotionRule> {
|
|
56
56
|
versions(customPromotionRuleId: string | CustomPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
57
57
|
isCustomPromotionRule(resource: any): resource is CustomPromotionRule;
|
58
58
|
relationship(id: string | ResourceId | null): CustomPromotionRuleRel;
|
59
|
+
relationshipToMany(...ids: string[]): CustomPromotionRuleRel[];
|
59
60
|
type(): CustomPromotionRuleType;
|
60
61
|
}
|
61
62
|
export default CustomPromotionRules;
|
@@ -19,7 +19,10 @@ class CustomPromotionRules extends resource_1.ApiResource {
|
|
19
19
|
return resource.type && (resource.type === CustomPromotionRules.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 CustomPromotionRules.TYPE;
|
@@ -44,6 +44,7 @@ declare class CustomerAddresses extends ApiResource<CustomerAddress> {
|
|
44
44
|
versions(customerAddressId: string | CustomerAddress, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
45
45
|
isCustomerAddress(resource: any): resource is CustomerAddress;
|
46
46
|
relationship(id: string | ResourceId | null): CustomerAddressRel;
|
47
|
+
relationshipToMany(...ids: string[]): CustomerAddressRel[];
|
47
48
|
type(): CustomerAddressType;
|
48
49
|
}
|
49
50
|
export default CustomerAddresses;
|
@@ -31,7 +31,10 @@ class CustomerAddresses extends resource_1.ApiResource {
|
|
31
31
|
return resource.type && (resource.type === CustomerAddresses.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 CustomerAddresses.TYPE;
|
@@ -34,6 +34,7 @@ declare class CustomerGroups extends ApiResource<CustomerGroup> {
|
|
34
34
|
versions(customerGroupId: string | CustomerGroup, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
35
35
|
isCustomerGroup(resource: any): resource is CustomerGroup;
|
36
36
|
relationship(id: string | ResourceId | null): CustomerGroupRel;
|
37
|
+
relationshipToMany(...ids: string[]): CustomerGroupRel[];
|
37
38
|
type(): CustomerGroupType;
|
38
39
|
}
|
39
40
|
export default CustomerGroups;
|
@@ -31,7 +31,10 @@ class CustomerGroups extends resource_1.ApiResource {
|
|
31
31
|
return resource.type && (resource.type === CustomerGroups.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 CustomerGroups.TYPE;
|
@@ -32,6 +32,7 @@ declare class CustomerPasswordResets extends ApiResource<CustomerPasswordReset>
|
|
32
32
|
_reset_password_token(id: string | CustomerPasswordReset, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
33
33
|
isCustomerPasswordReset(resource: any): resource is CustomerPasswordReset;
|
34
34
|
relationship(id: string | ResourceId | null): CustomerPasswordResetRel;
|
35
|
+
relationshipToMany(...ids: string[]): CustomerPasswordResetRel[];
|
35
36
|
type(): CustomerPasswordResetType;
|
36
37
|
}
|
37
38
|
export default CustomerPasswordResets;
|
@@ -26,7 +26,10 @@ class CustomerPasswordResets extends resource_1.ApiResource {
|
|
26
26
|
return resource.type && (resource.type === CustomerPasswordResets.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 CustomerPasswordResets.TYPE;
|
@@ -80,6 +80,7 @@ declare class CustomerPaymentSources extends ApiResource<CustomerPaymentSource>
|
|
80
80
|
versions(customerPaymentSourceId: string | CustomerPaymentSource, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
81
81
|
isCustomerPaymentSource(resource: any): resource is CustomerPaymentSource;
|
82
82
|
relationship(id: string | ResourceId | null): CustomerPaymentSourceRel;
|
83
|
+
relationshipToMany(...ids: string[]): CustomerPaymentSourceRel[];
|
83
84
|
type(): CustomerPaymentSourceType;
|
84
85
|
}
|
85
86
|
export default CustomerPaymentSources;
|
@@ -27,7 +27,10 @@ class CustomerPaymentSources extends resource_1.ApiResource {
|
|
27
27
|
return resource.type && (resource.type === CustomerPaymentSources.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 CustomerPaymentSources.TYPE;
|
@@ -29,6 +29,7 @@ declare class CustomerSubscriptions extends ApiResource<CustomerSubscription> {
|
|
29
29
|
versions(customerSubscriptionId: string | CustomerSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
30
30
|
isCustomerSubscription(resource: any): resource is CustomerSubscription;
|
31
31
|
relationship(id: string | ResourceId | null): CustomerSubscriptionRel;
|
32
|
+
relationshipToMany(...ids: string[]): CustomerSubscriptionRel[];
|
32
33
|
type(): CustomerSubscriptionType;
|
33
34
|
}
|
34
35
|
export default CustomerSubscriptions;
|
@@ -27,7 +27,10 @@ class CustomerSubscriptions extends resource_1.ApiResource {
|
|
27
27
|
return resource.type && (resource.type === CustomerSubscriptions.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 CustomerSubscriptions.TYPE;
|
@@ -70,6 +70,7 @@ declare class Customers extends ApiResource<Customer> {
|
|
70
70
|
tags(customerId: string | Customer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
71
71
|
isCustomer(resource: any): resource is Customer;
|
72
72
|
relationship(id: string | ResourceId | null): CustomerRel;
|
73
|
+
relationshipToMany(...ids: string[]): CustomerRel[];
|
73
74
|
type(): CustomerType;
|
74
75
|
}
|
75
76
|
export default Customers;
|
@@ -59,7 +59,10 @@ class Customers extends resource_1.ApiResource {
|
|
59
59
|
return resource.type && (resource.type === Customers.TYPE);
|
60
60
|
}
|
61
61
|
relationship(id) {
|
62
|
-
return (
|
62
|
+
return super.relationshipOneToOne(id);
|
63
|
+
}
|
64
|
+
relationshipToMany(...ids) {
|
65
|
+
return super.relationshipOneToMany(...ids);
|
63
66
|
}
|
64
67
|
type() {
|
65
68
|
return Customers.TYPE;
|
@@ -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;
|
@@ -31,7 +31,10 @@ class DeliveryLeadTimes extends resource_1.ApiResource {
|
|
31
31
|
return resource.type && (resource.type === DeliveryLeadTimes.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 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;
|
@@ -10,7 +10,10 @@ class EventCallbacks extends resource_1.ApiResource {
|
|
10
10
|
return resource.type && (resource.type === EventCallbacks.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 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;
|
@@ -2,19 +2,22 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Events extends resource_1.ApiResource {
|
5
|
-
async last_event_callbacks(eventId, params, options) {
|
6
|
-
const _eventId = eventId.id || eventId;
|
7
|
-
return this.resources.fetch({ type: 'event_callbacks' }, `events/${_eventId}/last_event_callbacks`, params, options);
|
8
|
-
}
|
9
5
|
async webhooks(eventId, params, options) {
|
10
6
|
const _eventId = eventId.id || eventId;
|
11
7
|
return this.resources.fetch({ type: 'webhooks' }, `events/${_eventId}/webhooks`, params, options);
|
12
8
|
}
|
9
|
+
async last_event_callbacks(eventId, params, options) {
|
10
|
+
const _eventId = eventId.id || eventId;
|
11
|
+
return this.resources.fetch({ type: 'event_callbacks' }, `events/${_eventId}/last_event_callbacks`, params, options);
|
12
|
+
}
|
13
13
|
isEvent(resource) {
|
14
14
|
return resource.type && (resource.type === Events.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 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;
|
@@ -16,7 +16,10 @@ class Exports extends resource_1.ApiResource {
|
|
16
16
|
return resource.type && (resource.type === Exports.TYPE);
|
17
17
|
}
|
18
18
|
relationship(id) {
|
19
|
-
return (
|
19
|
+
return super.relationshipOneToOne(id);
|
20
|
+
}
|
21
|
+
relationshipToMany(...ids) {
|
22
|
+
return super.relationshipOneToMany(...ids);
|
20
23
|
}
|
21
24
|
type() {
|
22
25
|
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;
|
@@ -30,7 +30,10 @@ class ExternalGateways extends resource_1.ApiResource {
|
|
30
30
|
return resource.type && (resource.type === ExternalGateways.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 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;
|
@@ -31,7 +31,10 @@ class ExternalPayments extends resource_1.ApiResource {
|
|
31
31
|
return resource.type && (resource.type === ExternalPayments.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 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;
|
@@ -72,7 +72,10 @@ class ExternalPromotions extends resource_1.ApiResource {
|
|
72
72
|
return resource.type && (resource.type === ExternalPromotions.TYPE);
|
73
73
|
}
|
74
74
|
relationship(id) {
|
75
|
-
return (
|
75
|
+
return super.relationshipOneToOne(id);
|
76
|
+
}
|
77
|
+
relationshipToMany(...ids) {
|
78
|
+
return super.relationshipOneToMany(...ids);
|
76
79
|
}
|
77
80
|
type() {
|
78
81
|
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;
|
@@ -30,7 +30,10 @@ class ExternalTaxCalculators extends resource_1.ApiResource {
|
|
30
30
|
return resource.type && (resource.type === ExternalTaxCalculators.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 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;
|
@@ -69,7 +69,10 @@ class FixedAmountPromotions extends resource_1.ApiResource {
|
|
69
69
|
return resource.type && (resource.type === FixedAmountPromotions.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 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;
|
@@ -69,7 +69,10 @@ class FixedPricePromotions extends resource_1.ApiResource {
|
|
69
69
|
return resource.type && (resource.type === FixedPricePromotions.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 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;
|
@@ -69,7 +69,10 @@ class FreeGiftPromotions extends resource_1.ApiResource {
|
|
69
69
|
return resource.type && (resource.type === FreeGiftPromotions.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 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;
|
@@ -65,7 +65,10 @@ class FreeShippingPromotions extends resource_1.ApiResource {
|
|
65
65
|
return resource.type && (resource.type === FreeShippingPromotions.TYPE);
|
66
66
|
}
|
67
67
|
relationship(id) {
|
68
|
-
return (
|
68
|
+
return super.relationshipOneToOne(id);
|
69
|
+
}
|
70
|
+
relationshipToMany(...ids) {
|
71
|
+
return super.relationshipOneToMany(...ids);
|
69
72
|
}
|
70
73
|
type() {
|
71
74
|
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;
|
@@ -14,7 +14,10 @@ class Geocoders extends resource_1.ApiResource {
|
|
14
14
|
return resource.type && (resource.type === Geocoders.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 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;
|
@@ -27,7 +27,10 @@ class GiftCardRecipients extends resource_1.ApiResource {
|
|
27
27
|
return resource.type && (resource.type === GiftCardRecipients.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 GiftCardRecipients.TYPE;
|