@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
@@ -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;
|
@@ -26,7 +26,10 @@ class PriceLists extends ApiResource {
|
|
26
26
|
return resource.type && (resource.type === PriceLists.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 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;
|
@@ -17,7 +17,10 @@ class PriceTiers extends ApiResource {
|
|
17
17
|
return resource.type && (resource.type === PriceTiers.TYPE);
|
18
18
|
}
|
19
19
|
relationship(id) {
|
20
|
-
return (
|
20
|
+
return super.relationshipOneToOne(id);
|
21
|
+
}
|
22
|
+
relationshipToMany(...ids) {
|
23
|
+
return super.relationshipOneToMany(...ids);
|
21
24
|
}
|
22
25
|
type() {
|
23
26
|
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;
|
@@ -30,7 +30,10 @@ class PriceVolumeTiers extends ApiResource {
|
|
30
30
|
return resource.type && (resource.type === PriceVolumeTiers.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 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;
|
@@ -42,7 +42,10 @@ class Prices extends ApiResource {
|
|
42
42
|
return resource.type && (resource.type === Prices.TYPE);
|
43
43
|
}
|
44
44
|
relationship(id) {
|
45
|
-
return (
|
45
|
+
return super.relationshipOneToOne(id);
|
46
|
+
}
|
47
|
+
relationshipToMany(...ids) {
|
48
|
+
return super.relationshipOneToMany(...ids);
|
46
49
|
}
|
47
50
|
type() {
|
48
51
|
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;
|
@@ -9,7 +9,10 @@ class PromotionRules extends ApiResource {
|
|
9
9
|
return resource.type && (resource.type === PromotionRules.TYPE);
|
10
10
|
}
|
11
11
|
relationship(id) {
|
12
|
-
return (
|
12
|
+
return super.relationshipOneToOne(id);
|
13
|
+
}
|
14
|
+
relationshipToMany(...ids) {
|
15
|
+
return super.relationshipOneToMany(...ids);
|
13
16
|
}
|
14
17
|
type() {
|
15
18
|
return 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;
|
@@ -49,7 +49,10 @@ class Promotions extends ApiResource {
|
|
49
49
|
return resource.type && (resource.type === Promotions.TYPE);
|
50
50
|
}
|
51
51
|
relationship(id) {
|
52
|
-
return (
|
52
|
+
return super.relationshipOneToOne(id);
|
53
|
+
}
|
54
|
+
relationshipToMany(...ids) {
|
55
|
+
return super.relationshipOneToMany(...ids);
|
53
56
|
}
|
54
57
|
type() {
|
55
58
|
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;
|
@@ -30,7 +30,10 @@ class RecurringOrderCopies extends ApiResource {
|
|
30
30
|
return resource.type && (resource.type === RecurringOrderCopies.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 RecurringOrderCopies.TYPE;
|
@@ -38,6 +38,7 @@ declare class Refunds extends ApiResource<Refund> {
|
|
38
38
|
reference_capture(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
39
39
|
isRefund(resource: any): resource is Refund;
|
40
40
|
relationship(id: string | ResourceId | null): RefundRel;
|
41
|
+
relationshipToMany(...ids: string[]): RefundRel[];
|
41
42
|
type(): RefundType;
|
42
43
|
}
|
43
44
|
export default Refunds;
|
@@ -25,7 +25,10 @@ class Refunds extends ApiResource {
|
|
25
25
|
return resource.type && (resource.type === Refunds.TYPE);
|
26
26
|
}
|
27
27
|
relationship(id) {
|
28
|
-
return (
|
28
|
+
return super.relationshipOneToOne(id);
|
29
|
+
}
|
30
|
+
relationshipToMany(...ids) {
|
31
|
+
return super.relationshipOneToMany(...ids);
|
29
32
|
}
|
30
33
|
type() {
|
31
34
|
return Refunds.TYPE;
|
@@ -22,6 +22,7 @@ declare class ReservedStocks extends ApiResource<ReservedStock> {
|
|
22
22
|
stock_reservations(reservedStockId: string | ReservedStock, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
|
23
23
|
isReservedStock(resource: any): resource is ReservedStock;
|
24
24
|
relationship(id: string | ResourceId | null): ReservedStockRel;
|
25
|
+
relationshipToMany(...ids: string[]): ReservedStockRel[];
|
25
26
|
type(): ReservedStockType;
|
26
27
|
}
|
27
28
|
export default ReservedStocks;
|
@@ -17,7 +17,10 @@ class ReservedStocks extends ApiResource {
|
|
17
17
|
return resource.type && (resource.type === ReservedStocks.TYPE);
|
18
18
|
}
|
19
19
|
relationship(id) {
|
20
|
-
return (
|
20
|
+
return super.relationshipOneToOne(id);
|
21
|
+
}
|
22
|
+
relationshipToMany(...ids) {
|
23
|
+
return super.relationshipOneToMany(...ids);
|
21
24
|
}
|
22
25
|
type() {
|
23
26
|
return ReservedStocks.TYPE;
|
@@ -16,6 +16,7 @@ declare class ResourceErrors extends ApiResource<ResourceError> {
|
|
16
16
|
static readonly TYPE: ResourceErrorType;
|
17
17
|
isResourceError(resource: any): resource is ResourceError;
|
18
18
|
relationship(id: string | ResourceId | null): ResourceErrorRel;
|
19
|
+
relationshipToMany(...ids: string[]): ResourceErrorRel[];
|
19
20
|
type(): ResourceErrorType;
|
20
21
|
}
|
21
22
|
export default ResourceErrors;
|
@@ -5,7 +5,10 @@ class ResourceErrors extends ApiResource {
|
|
5
5
|
return resource.type && (resource.type === ResourceErrors.TYPE);
|
6
6
|
}
|
7
7
|
relationship(id) {
|
8
|
-
return (
|
8
|
+
return super.relationshipOneToOne(id);
|
9
|
+
}
|
10
|
+
relationshipToMany(...ids) {
|
11
|
+
return super.relationshipOneToMany(...ids);
|
9
12
|
}
|
10
13
|
type() {
|
11
14
|
return ResourceErrors.TYPE;
|
@@ -46,6 +46,7 @@ declare class ReturnLineItems extends ApiResource<ReturnLineItem> {
|
|
46
46
|
_restock(id: string | ReturnLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ReturnLineItem>;
|
47
47
|
isReturnLineItem(resource: any): resource is ReturnLineItem;
|
48
48
|
relationship(id: string | ResourceId | null): ReturnLineItemRel;
|
49
|
+
relationshipToMany(...ids: string[]): ReturnLineItemRel[];
|
49
50
|
type(): ReturnLineItemType;
|
50
51
|
}
|
51
52
|
export default ReturnLineItems;
|
@@ -25,7 +25,10 @@ class ReturnLineItems extends ApiResource {
|
|
25
25
|
return resource.type && (resource.type === ReturnLineItems.TYPE);
|
26
26
|
}
|
27
27
|
relationship(id) {
|
28
|
-
return (
|
28
|
+
return super.relationshipOneToOne(id);
|
29
|
+
}
|
30
|
+
relationshipToMany(...ids) {
|
31
|
+
return super.relationshipOneToMany(...ids);
|
29
32
|
}
|
30
33
|
type() {
|
31
34
|
return ReturnLineItems.TYPE;
|
@@ -90,6 +90,7 @@ declare class Returns extends ApiResource<Return> {
|
|
90
90
|
_unarchive(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
|
91
91
|
isReturn(resource: any): resource is Return;
|
92
92
|
relationship(id: string | ResourceId | null): ReturnRel;
|
93
|
+
relationshipToMany(...ids: string[]): ReturnRel[];
|
93
94
|
type(): ReturnType;
|
94
95
|
}
|
95
96
|
export default Returns;
|
@@ -81,7 +81,10 @@ class Returns extends ApiResource {
|
|
81
81
|
return resource.type && (resource.type === Returns.TYPE);
|
82
82
|
}
|
83
83
|
relationship(id) {
|
84
|
-
return (
|
84
|
+
return super.relationshipOneToOne(id);
|
85
|
+
}
|
86
|
+
relationshipToMany(...ids) {
|
87
|
+
return super.relationshipOneToMany(...ids);
|
85
88
|
}
|
86
89
|
type() {
|
87
90
|
return Returns.TYPE;
|
@@ -40,6 +40,7 @@ declare class SatispayGateways extends ApiResource<SatispayGateway> {
|
|
40
40
|
satispay_payments(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>>;
|
41
41
|
isSatispayGateway(resource: any): resource is SatispayGateway;
|
42
42
|
relationship(id: string | ResourceId | null): SatispayGatewayRel;
|
43
|
+
relationshipToMany(...ids: string[]): SatispayGatewayRel[];
|
43
44
|
type(): SatispayGatewayType;
|
44
45
|
}
|
45
46
|
export default SatispayGateways;
|
@@ -26,7 +26,10 @@ class SatispayGateways extends ApiResource {
|
|
26
26
|
return resource.type && (resource.type === SatispayGateways.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 SatispayGateways.TYPE;
|
@@ -47,6 +47,7 @@ declare class SatispayPayments extends ApiResource<SatispayPayment> {
|
|
47
47
|
_refresh(id: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayPayment>;
|
48
48
|
isSatispayPayment(resource: any): resource is SatispayPayment;
|
49
49
|
relationship(id: string | ResourceId | null): SatispayPaymentRel;
|
50
|
+
relationshipToMany(...ids: string[]): SatispayPaymentRel[];
|
50
51
|
type(): SatispayPaymentType;
|
51
52
|
}
|
52
53
|
export default SatispayPayments;
|
@@ -29,7 +29,10 @@ class SatispayPayments extends ApiResource {
|
|
29
29
|
return resource.type && (resource.type === SatispayPayments.TYPE);
|
30
30
|
}
|
31
31
|
relationship(id) {
|
32
|
-
return (
|
32
|
+
return super.relationshipOneToOne(id);
|
33
|
+
}
|
34
|
+
relationshipToMany(...ids) {
|
35
|
+
return super.relationshipOneToMany(...ids);
|
33
36
|
}
|
34
37
|
type() {
|
35
38
|
return SatispayPayments.TYPE;
|
@@ -10,6 +10,7 @@ import type { ShippingMethod, ShippingMethodType } from './shipping_methods';
|
|
10
10
|
import type { DeliveryLeadTime } from './delivery_lead_times';
|
11
11
|
import type { StockLineItem } from './stock_line_items';
|
12
12
|
import type { StockTransfer } from './stock_transfers';
|
13
|
+
import type { LineItem } from './line_items';
|
13
14
|
import type { CarrierAccount } from './carrier_accounts';
|
14
15
|
import type { Parcel } from './parcels';
|
15
16
|
import type { Attachment } from './attachments';
|
@@ -72,6 +73,7 @@ interface Shipment extends Resource {
|
|
72
73
|
delivery_lead_time?: DeliveryLeadTime | null;
|
73
74
|
stock_line_items?: StockLineItem[] | null;
|
74
75
|
stock_transfers?: StockTransfer[] | null;
|
76
|
+
line_items?: LineItem[] | null;
|
75
77
|
available_shipping_methods?: ShippingMethod[] | null;
|
76
78
|
carrier_accounts?: CarrierAccount[] | null;
|
77
79
|
parcels?: Parcel[] | null;
|
@@ -122,6 +124,7 @@ declare class Shipments extends ApiResource<Shipment> {
|
|
122
124
|
delivery_lead_time(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
123
125
|
stock_line_items(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
|
124
126
|
stock_transfers(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
|
127
|
+
line_items(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItem>>;
|
125
128
|
available_shipping_methods(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingMethod>>;
|
126
129
|
carrier_accounts(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CarrierAccount>>;
|
127
130
|
parcels(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Parcel>>;
|
@@ -142,6 +145,7 @@ declare class Shipments extends ApiResource<Shipment> {
|
|
142
145
|
_purchase(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
|
143
146
|
isShipment(resource: any): resource is Shipment;
|
144
147
|
relationship(id: string | ResourceId | null): ShipmentRel;
|
148
|
+
relationshipToMany(...ids: string[]): ShipmentRel[];
|
145
149
|
type(): ShipmentType;
|
146
150
|
}
|
147
151
|
export default Shipments;
|
@@ -50,6 +50,10 @@ class Shipments extends ApiResource {
|
|
50
50
|
const _shipmentId = shipmentId.id || shipmentId;
|
51
51
|
return this.resources.fetch({ type: 'stock_transfers' }, `shipments/${_shipmentId}/stock_transfers`, params, options);
|
52
52
|
}
|
53
|
+
async line_items(shipmentId, params, options) {
|
54
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
55
|
+
return this.resources.fetch({ type: 'line_items' }, `shipments/${_shipmentId}/line_items`, params, options);
|
56
|
+
}
|
53
57
|
async available_shipping_methods(shipmentId, params, options) {
|
54
58
|
const _shipmentId = shipmentId.id || shipmentId;
|
55
59
|
return this.resources.fetch({ type: 'shipping_methods' }, `shipments/${_shipmentId}/available_shipping_methods`, params, options);
|
@@ -115,7 +119,10 @@ class Shipments extends ApiResource {
|
|
115
119
|
return resource.type && (resource.type === Shipments.TYPE);
|
116
120
|
}
|
117
121
|
relationship(id) {
|
118
|
-
return (
|
122
|
+
return super.relationshipOneToOne(id);
|
123
|
+
}
|
124
|
+
relationshipToMany(...ids) {
|
125
|
+
return super.relationshipOneToMany(...ids);
|
119
126
|
}
|
120
127
|
type() {
|
121
128
|
return Shipments.TYPE;
|
@@ -34,6 +34,7 @@ declare class ShippingCategories extends ApiResource<ShippingCategory> {
|
|
34
34
|
versions(shippingCategoryId: string | ShippingCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
35
35
|
isShippingCategory(resource: any): resource is ShippingCategory;
|
36
36
|
relationship(id: string | ResourceId | null): ShippingCategoryRel;
|
37
|
+
relationshipToMany(...ids: string[]): ShippingCategoryRel[];
|
37
38
|
type(): ShippingCategoryType;
|
38
39
|
}
|
39
40
|
export default ShippingCategories;
|
@@ -26,7 +26,10 @@ class ShippingCategories extends ApiResource {
|
|
26
26
|
return resource.type && (resource.type === ShippingCategories.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 ShippingCategories.TYPE;
|
@@ -26,6 +26,7 @@ declare class ShippingMethodTiers extends ApiResource<ShippingMethodTier> {
|
|
26
26
|
versions(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
27
27
|
isShippingMethodTier(resource: any): resource is ShippingMethodTier;
|
28
28
|
relationship(id: string | ResourceId | null): ShippingMethodTierRel;
|
29
|
+
relationshipToMany(...ids: string[]): ShippingMethodTierRel[];
|
29
30
|
type(): ShippingMethodTierType;
|
30
31
|
}
|
31
32
|
export default ShippingMethodTiers;
|
@@ -17,7 +17,10 @@ class ShippingMethodTiers extends ApiResource {
|
|
17
17
|
return resource.type && (resource.type === ShippingMethodTiers.TYPE);
|
18
18
|
}
|
19
19
|
relationship(id) {
|
20
|
-
return (
|
20
|
+
return super.relationshipOneToOne(id);
|
21
|
+
}
|
22
|
+
relationshipToMany(...ids) {
|
23
|
+
return super.relationshipOneToMany(...ids);
|
21
24
|
}
|
22
25
|
type() {
|
23
26
|
return ShippingMethodTiers.TYPE;
|
@@ -119,6 +119,7 @@ declare class ShippingMethods extends ApiResource<ShippingMethod> {
|
|
119
119
|
_reset_circuit(id: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
|
120
120
|
isShippingMethod(resource: any): resource is ShippingMethod;
|
121
121
|
relationship(id: string | ResourceId | null): ShippingMethodRel;
|
122
|
+
relationshipToMany(...ids: string[]): ShippingMethodRel[];
|
122
123
|
type(): ShippingMethodType;
|
123
124
|
}
|
124
125
|
export default ShippingMethods;
|
@@ -59,7 +59,10 @@ class ShippingMethods extends ApiResource {
|
|
59
59
|
return resource.type && (resource.type === ShippingMethods.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 ShippingMethods.TYPE;
|
@@ -44,6 +44,7 @@ declare class ShippingWeightTiers extends ApiResource<ShippingWeightTier> {
|
|
44
44
|
versions(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
45
45
|
isShippingWeightTier(resource: any): resource is ShippingWeightTier;
|
46
46
|
relationship(id: string | ResourceId | null): ShippingWeightTierRel;
|
47
|
+
relationshipToMany(...ids: string[]): ShippingWeightTierRel[];
|
47
48
|
type(): ShippingWeightTierType;
|
48
49
|
}
|
49
50
|
export default ShippingWeightTiers;
|
@@ -26,7 +26,10 @@ class ShippingWeightTiers extends ApiResource {
|
|
26
26
|
return resource.type && (resource.type === ShippingWeightTiers.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 ShippingWeightTiers.TYPE;
|
@@ -46,6 +46,7 @@ declare class ShippingZones extends ApiResource<ShippingZone> {
|
|
46
46
|
versions(shippingZoneId: string | ShippingZone, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
47
47
|
isShippingZone(resource: any): resource is ShippingZone;
|
48
48
|
relationship(id: string | ResourceId | null): ShippingZoneRel;
|
49
|
+
relationshipToMany(...ids: string[]): ShippingZoneRel[];
|
49
50
|
type(): ShippingZoneType;
|
50
51
|
}
|
51
52
|
export default ShippingZones;
|
@@ -22,7 +22,10 @@ class ShippingZones extends ApiResource {
|
|
22
22
|
return resource.type && (resource.type === ShippingZones.TYPE);
|
23
23
|
}
|
24
24
|
relationship(id) {
|
25
|
-
return (
|
25
|
+
return super.relationshipOneToOne(id);
|
26
|
+
}
|
27
|
+
relationshipToMany(...ids) {
|
28
|
+
return super.relationshipOneToMany(...ids);
|
26
29
|
}
|
27
30
|
type() {
|
28
31
|
return ShippingZones.TYPE;
|
@@ -45,6 +45,7 @@ declare class SkuListItems extends ApiResource<SkuListItem> {
|
|
45
45
|
versions(skuListItemId: string | SkuListItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
46
46
|
isSkuListItem(resource: any): resource is SkuListItem;
|
47
47
|
relationship(id: string | ResourceId | null): SkuListItemRel;
|
48
|
+
relationshipToMany(...ids: string[]): SkuListItemRel[];
|
48
49
|
type(): SkuListItemType;
|
49
50
|
}
|
50
51
|
export default SkuListItems;
|
@@ -26,7 +26,10 @@ class SkuListItems extends ApiResource {
|
|
26
26
|
return resource.type && (resource.type === SkuListItems.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 SkuListItems.TYPE;
|
@@ -70,6 +70,7 @@ declare class SkuListPromotionRules extends ApiResource<SkuListPromotionRule> {
|
|
70
70
|
skus(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
71
71
|
isSkuListPromotionRule(resource: any): resource is SkuListPromotionRule;
|
72
72
|
relationship(id: string | ResourceId | null): SkuListPromotionRuleRel;
|
73
|
+
relationshipToMany(...ids: string[]): SkuListPromotionRuleRel[];
|
73
74
|
type(): SkuListPromotionRuleType;
|
74
75
|
}
|
75
76
|
export default SkuListPromotionRules;
|
@@ -26,7 +26,10 @@ class SkuListPromotionRules extends ApiResource {
|
|
26
26
|
return resource.type && (resource.type === SkuListPromotionRules.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 SkuListPromotionRules.TYPE;
|
@@ -58,6 +58,7 @@ declare class SkuLists extends ApiResource<SkuList> {
|
|
58
58
|
versions(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
59
59
|
isSkuList(resource: any): resource is SkuList;
|
60
60
|
relationship(id: string | ResourceId | null): SkuListRel;
|
61
|
+
relationshipToMany(...ids: string[]): SkuListRel[];
|
61
62
|
type(): SkuListType;
|
62
63
|
}
|
63
64
|
export default SkuLists;
|
@@ -38,7 +38,10 @@ class SkuLists extends ApiResource {
|
|
38
38
|
return resource.type && (resource.type === SkuLists.TYPE);
|
39
39
|
}
|
40
40
|
relationship(id) {
|
41
|
-
return (
|
41
|
+
return super.relationshipOneToOne(id);
|
42
|
+
}
|
43
|
+
relationshipToMany(...ids) {
|
44
|
+
return super.relationshipOneToMany(...ids);
|
42
45
|
}
|
43
46
|
type() {
|
44
47
|
return SkuLists.TYPE;
|
@@ -65,6 +65,7 @@ declare class SkuOptions extends ApiResource<SkuOption> {
|
|
65
65
|
versions(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
66
66
|
isSkuOption(resource: any): resource is SkuOption;
|
67
67
|
relationship(id: string | ResourceId | null): SkuOptionRel;
|
68
|
+
relationshipToMany(...ids: string[]): SkuOptionRel[];
|
68
69
|
type(): SkuOptionType;
|
69
70
|
}
|
70
71
|
export default SkuOptions;
|
@@ -34,7 +34,10 @@ class SkuOptions extends ApiResource {
|
|
34
34
|
return resource.type && (resource.type === SkuOptions.TYPE);
|
35
35
|
}
|
36
36
|
relationship(id) {
|
37
|
-
return (
|
37
|
+
return super.relationshipOneToOne(id);
|
38
|
+
}
|
39
|
+
relationshipToMany(...ids) {
|
40
|
+
return super.relationshipOneToMany(...ids);
|
38
41
|
}
|
39
42
|
type() {
|
40
43
|
return SkuOptions.TYPE;
|
@@ -90,6 +90,7 @@ declare class Skus extends ApiResource<Sku> {
|
|
90
90
|
versions(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
91
91
|
isSku(resource: any): resource is Sku;
|
92
92
|
relationship(id: string | ResourceId | null): SkuRel;
|
93
|
+
relationshipToMany(...ids: string[]): SkuRel[];
|
93
94
|
type(): SkuType;
|
94
95
|
}
|
95
96
|
export default Skus;
|
@@ -54,7 +54,10 @@ class Skus extends ApiResource {
|
|
54
54
|
return resource.type && (resource.type === Skus.TYPE);
|
55
55
|
}
|
56
56
|
relationship(id) {
|
57
|
-
return (
|
57
|
+
return super.relationshipOneToOne(id);
|
58
|
+
}
|
59
|
+
relationshipToMany(...ids) {
|
60
|
+
return super.relationshipOneToMany(...ids);
|
58
61
|
}
|
59
62
|
type() {
|
60
63
|
return Skus.TYPE;
|
@@ -53,6 +53,7 @@ declare class StockItems extends ApiResource<StockItem> {
|
|
53
53
|
versions(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
54
54
|
isStockItem(resource: any): resource is StockItem;
|
55
55
|
relationship(id: string | ResourceId | null): StockItemRel;
|
56
|
+
relationshipToMany(...ids: string[]): StockItemRel[];
|
56
57
|
type(): StockItemType;
|
57
58
|
}
|
58
59
|
export default StockItems;
|
@@ -38,7 +38,10 @@ class StockItems extends ApiResource {
|
|
38
38
|
return resource.type && (resource.type === StockItems.TYPE);
|
39
39
|
}
|
40
40
|
relationship(id) {
|
41
|
-
return (
|
41
|
+
return super.relationshipOneToOne(id);
|
42
|
+
}
|
43
|
+
relationshipToMany(...ids) {
|
44
|
+
return super.relationshipOneToMany(...ids);
|
42
45
|
}
|
43
46
|
type() {
|
44
47
|
return StockItems.TYPE;
|
@@ -67,6 +67,7 @@ declare class StockLineItems extends ApiResource<StockLineItem> {
|
|
67
67
|
_decrement_stock(id: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLineItem>;
|
68
68
|
isStockLineItem(resource: any): resource is StockLineItem;
|
69
69
|
relationship(id: string | ResourceId | null): StockLineItemRel;
|
70
|
+
relationshipToMany(...ids: string[]): StockLineItemRel[];
|
70
71
|
type(): StockLineItemType;
|
71
72
|
}
|
72
73
|
export default StockLineItems;
|