@commercelayer/sdk 5.0.0-beta.7 → 5.0.0-beta.8
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/resource.d.ts +1 -0
- package/lib/cjs/resource.js +3 -0
- package/lib/cjs/resources/addresses.d.ts +2 -3
- package/lib/cjs/resources/addresses.js +0 -3
- package/lib/cjs/resources/adjustments.d.ts +2 -3
- package/lib/cjs/resources/adjustments.js +0 -3
- package/lib/cjs/resources/adyen_gateways.d.ts +0 -1
- package/lib/cjs/resources/adyen_gateways.js +0 -3
- package/lib/cjs/resources/adyen_payments.d.ts +2 -3
- package/lib/cjs/resources/adyen_payments.js +0 -3
- package/lib/cjs/resources/attachments.d.ts +2 -3
- package/lib/cjs/resources/attachments.js +0 -3
- package/lib/cjs/resources/authorizations.d.ts +0 -1
- package/lib/cjs/resources/authorizations.js +0 -3
- package/lib/cjs/resources/avalara_accounts.d.ts +0 -1
- package/lib/cjs/resources/avalara_accounts.js +0 -3
- package/lib/cjs/resources/axerve_gateways.d.ts +0 -1
- package/lib/cjs/resources/axerve_gateways.js +0 -3
- package/lib/cjs/resources/axerve_payments.d.ts +2 -3
- package/lib/cjs/resources/axerve_payments.js +0 -3
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +0 -1
- package/lib/cjs/resources/billing_info_validation_rules.js +0 -3
- package/lib/cjs/resources/bing_geocoders.d.ts +0 -1
- package/lib/cjs/resources/bing_geocoders.js +0 -3
- package/lib/cjs/resources/braintree_gateways.d.ts +0 -1
- package/lib/cjs/resources/braintree_gateways.js +0 -3
- package/lib/cjs/resources/braintree_payments.d.ts +2 -3
- package/lib/cjs/resources/braintree_payments.js +0 -3
- package/lib/cjs/resources/bundles.d.ts +0 -1
- package/lib/cjs/resources/bundles.js +0 -3
- package/lib/cjs/resources/captures.d.ts +0 -1
- package/lib/cjs/resources/captures.js +0 -3
- package/lib/cjs/resources/carrier_accounts.d.ts +0 -1
- package/lib/cjs/resources/carrier_accounts.js +0 -3
- package/lib/cjs/resources/checkout_com_gateways.d.ts +0 -1
- package/lib/cjs/resources/checkout_com_gateways.js +0 -3
- package/lib/cjs/resources/checkout_com_payments.d.ts +2 -3
- package/lib/cjs/resources/checkout_com_payments.js +0 -3
- package/lib/cjs/resources/cleanups.d.ts +0 -1
- package/lib/cjs/resources/cleanups.js +0 -3
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +0 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +0 -3
- package/lib/cjs/resources/coupon_recipients.d.ts +0 -1
- package/lib/cjs/resources/coupon_recipients.js +0 -3
- package/lib/cjs/resources/coupons.d.ts +2 -3
- package/lib/cjs/resources/coupons.js +0 -3
- package/lib/cjs/resources/customer_addresses.d.ts +0 -1
- package/lib/cjs/resources/customer_addresses.js +0 -3
- package/lib/cjs/resources/customer_groups.d.ts +0 -1
- package/lib/cjs/resources/customer_groups.js +0 -3
- package/lib/cjs/resources/customer_password_resets.d.ts +0 -1
- package/lib/cjs/resources/customer_password_resets.js +0 -3
- package/lib/cjs/resources/customer_payment_sources.d.ts +2 -3
- package/lib/cjs/resources/customer_payment_sources.js +0 -3
- package/lib/cjs/resources/customer_subscriptions.d.ts +0 -1
- package/lib/cjs/resources/customer_subscriptions.js +0 -3
- package/lib/cjs/resources/customers.d.ts +0 -1
- package/lib/cjs/resources/customers.js +0 -3
- package/lib/cjs/resources/delivery_lead_times.d.ts +0 -1
- package/lib/cjs/resources/delivery_lead_times.js +0 -3
- package/lib/cjs/resources/event_callbacks.d.ts +2 -3
- package/lib/cjs/resources/event_callbacks.js +0 -3
- package/lib/cjs/resources/events.d.ts +0 -1
- package/lib/cjs/resources/events.js +0 -3
- package/lib/cjs/resources/exports.d.ts +0 -1
- package/lib/cjs/resources/exports.js +0 -3
- package/lib/cjs/resources/external_gateways.d.ts +0 -1
- package/lib/cjs/resources/external_gateways.js +0 -3
- package/lib/cjs/resources/external_payments.d.ts +2 -3
- package/lib/cjs/resources/external_payments.js +0 -3
- package/lib/cjs/resources/external_promotions.d.ts +0 -1
- package/lib/cjs/resources/external_promotions.js +0 -3
- package/lib/cjs/resources/external_tax_calculators.d.ts +0 -1
- package/lib/cjs/resources/external_tax_calculators.js +0 -3
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +0 -1
- package/lib/cjs/resources/fixed_amount_promotions.js +0 -3
- package/lib/cjs/resources/fixed_price_promotions.d.ts +0 -1
- package/lib/cjs/resources/fixed_price_promotions.js +0 -3
- package/lib/cjs/resources/free_gift_promotions.d.ts +0 -1
- package/lib/cjs/resources/free_gift_promotions.js +0 -3
- package/lib/cjs/resources/free_shipping_promotions.d.ts +0 -1
- package/lib/cjs/resources/free_shipping_promotions.js +0 -3
- package/lib/cjs/resources/geocoders.d.ts +0 -1
- package/lib/cjs/resources/geocoders.js +0 -3
- package/lib/cjs/resources/gift_card_recipients.d.ts +0 -1
- package/lib/cjs/resources/gift_card_recipients.js +0 -3
- package/lib/cjs/resources/gift_cards.d.ts +0 -1
- package/lib/cjs/resources/gift_cards.js +0 -3
- package/lib/cjs/resources/google_geocoders.d.ts +0 -1
- package/lib/cjs/resources/google_geocoders.js +0 -3
- package/lib/cjs/resources/imports.d.ts +0 -1
- package/lib/cjs/resources/imports.js +0 -3
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +0 -1
- package/lib/cjs/resources/in_stock_subscriptions.js +0 -3
- package/lib/cjs/resources/inventory_models.d.ts +0 -1
- package/lib/cjs/resources/inventory_models.js +0 -3
- package/lib/cjs/resources/inventory_return_locations.d.ts +2 -3
- package/lib/cjs/resources/inventory_return_locations.js +0 -3
- package/lib/cjs/resources/inventory_stock_locations.d.ts +2 -3
- package/lib/cjs/resources/inventory_stock_locations.js +0 -3
- package/lib/cjs/resources/klarna_gateways.d.ts +0 -1
- package/lib/cjs/resources/klarna_gateways.js +0 -3
- package/lib/cjs/resources/klarna_payments.d.ts +2 -3
- package/lib/cjs/resources/klarna_payments.js +0 -3
- package/lib/cjs/resources/line_item_options.d.ts +2 -3
- package/lib/cjs/resources/line_item_options.js +0 -3
- package/lib/cjs/resources/line_items.d.ts +0 -1
- package/lib/cjs/resources/line_items.js +0 -3
- package/lib/cjs/resources/manual_gateways.d.ts +0 -1
- package/lib/cjs/resources/manual_gateways.js +0 -3
- package/lib/cjs/resources/manual_tax_calculators.d.ts +0 -1
- package/lib/cjs/resources/manual_tax_calculators.js +0 -3
- package/lib/cjs/resources/markets.d.ts +0 -1
- package/lib/cjs/resources/markets.js +0 -3
- package/lib/cjs/resources/merchants.d.ts +0 -1
- package/lib/cjs/resources/merchants.js +0 -3
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +2 -3
- package/lib/cjs/resources/order_amount_promotion_rules.js +0 -3
- package/lib/cjs/resources/order_copies.d.ts +0 -1
- package/lib/cjs/resources/order_copies.js +0 -3
- package/lib/cjs/resources/order_subscriptions.d.ts +0 -1
- package/lib/cjs/resources/order_subscriptions.js +0 -3
- package/lib/cjs/resources/order_validation_rules.d.ts +0 -1
- package/lib/cjs/resources/order_validation_rules.js +0 -3
- package/lib/cjs/resources/orders.d.ts +0 -1
- package/lib/cjs/resources/orders.js +0 -3
- package/lib/cjs/resources/packages.d.ts +0 -1
- package/lib/cjs/resources/packages.js +0 -3
- package/lib/cjs/resources/parcel_line_items.d.ts +2 -3
- package/lib/cjs/resources/parcel_line_items.js +0 -3
- package/lib/cjs/resources/parcels.d.ts +0 -1
- package/lib/cjs/resources/parcels.js +0 -3
- package/lib/cjs/resources/payment_gateways.d.ts +0 -1
- package/lib/cjs/resources/payment_gateways.js +0 -3
- package/lib/cjs/resources/payment_methods.d.ts +0 -1
- package/lib/cjs/resources/payment_methods.js +0 -3
- package/lib/cjs/resources/paypal_gateways.d.ts +0 -1
- package/lib/cjs/resources/paypal_gateways.js +0 -3
- package/lib/cjs/resources/paypal_payments.d.ts +2 -3
- package/lib/cjs/resources/paypal_payments.js +0 -3
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +0 -1
- package/lib/cjs/resources/percentage_discount_promotions.js +0 -3
- package/lib/cjs/resources/price_lists.d.ts +0 -1
- package/lib/cjs/resources/price_lists.js +0 -3
- package/lib/cjs/resources/price_tiers.d.ts +0 -1
- package/lib/cjs/resources/price_tiers.js +0 -3
- package/lib/cjs/resources/price_volume_tiers.d.ts +0 -1
- package/lib/cjs/resources/price_volume_tiers.js +0 -3
- package/lib/cjs/resources/prices.d.ts +0 -1
- package/lib/cjs/resources/prices.js +0 -3
- package/lib/cjs/resources/promotion_rules.d.ts +1 -3
- package/lib/cjs/resources/promotion_rules.js +0 -3
- package/lib/cjs/resources/promotions.d.ts +0 -1
- package/lib/cjs/resources/promotions.js +0 -3
- package/lib/cjs/resources/refunds.d.ts +0 -1
- package/lib/cjs/resources/refunds.js +0 -3
- package/lib/cjs/resources/return_line_items.d.ts +2 -3
- package/lib/cjs/resources/return_line_items.js +0 -3
- package/lib/cjs/resources/returns.d.ts +0 -1
- package/lib/cjs/resources/returns.js +0 -3
- package/lib/cjs/resources/satispay_gateways.d.ts +0 -1
- package/lib/cjs/resources/satispay_gateways.js +0 -3
- package/lib/cjs/resources/satispay_payments.d.ts +2 -3
- package/lib/cjs/resources/satispay_payments.js +0 -3
- package/lib/cjs/resources/shipments.d.ts +0 -1
- package/lib/cjs/resources/shipments.js +0 -3
- package/lib/cjs/resources/shipping_categories.d.ts +0 -1
- package/lib/cjs/resources/shipping_categories.js +0 -3
- package/lib/cjs/resources/shipping_method_tiers.d.ts +0 -1
- package/lib/cjs/resources/shipping_method_tiers.js +0 -3
- package/lib/cjs/resources/shipping_methods.d.ts +0 -1
- package/lib/cjs/resources/shipping_methods.js +0 -3
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +0 -1
- package/lib/cjs/resources/shipping_weight_tiers.js +0 -3
- package/lib/cjs/resources/shipping_zones.d.ts +0 -1
- package/lib/cjs/resources/shipping_zones.js +0 -3
- package/lib/cjs/resources/sku_list_items.d.ts +2 -3
- package/lib/cjs/resources/sku_list_items.js +0 -3
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +0 -1
- package/lib/cjs/resources/sku_list_promotion_rules.js +0 -3
- package/lib/cjs/resources/sku_lists.d.ts +0 -1
- package/lib/cjs/resources/sku_lists.js +0 -3
- package/lib/cjs/resources/sku_options.d.ts +0 -1
- package/lib/cjs/resources/sku_options.js +0 -3
- package/lib/cjs/resources/skus.d.ts +0 -1
- package/lib/cjs/resources/skus.js +0 -3
- package/lib/cjs/resources/stock_items.d.ts +0 -1
- package/lib/cjs/resources/stock_items.js +0 -3
- package/lib/cjs/resources/stock_line_items.d.ts +2 -3
- package/lib/cjs/resources/stock_line_items.js +0 -3
- package/lib/cjs/resources/stock_locations.d.ts +0 -1
- package/lib/cjs/resources/stock_locations.js +0 -3
- package/lib/cjs/resources/stock_transfers.d.ts +0 -1
- package/lib/cjs/resources/stock_transfers.js +0 -3
- package/lib/cjs/resources/stripe_gateways.d.ts +0 -1
- package/lib/cjs/resources/stripe_gateways.js +0 -3
- package/lib/cjs/resources/stripe_payments.d.ts +2 -3
- package/lib/cjs/resources/stripe_payments.js +0 -3
- package/lib/cjs/resources/tax_calculators.d.ts +0 -1
- package/lib/cjs/resources/tax_calculators.js +0 -3
- package/lib/cjs/resources/tax_categories.d.ts +0 -1
- package/lib/cjs/resources/tax_categories.js +0 -3
- package/lib/cjs/resources/tax_rules.d.ts +2 -3
- package/lib/cjs/resources/tax_rules.js +0 -3
- package/lib/cjs/resources/taxjar_accounts.d.ts +0 -1
- package/lib/cjs/resources/taxjar_accounts.js +0 -3
- package/lib/cjs/resources/transactions.d.ts +2 -3
- package/lib/cjs/resources/transactions.js +0 -3
- package/lib/cjs/resources/voids.d.ts +0 -1
- package/lib/cjs/resources/voids.js +0 -3
- package/lib/cjs/resources/webhooks.d.ts +0 -1
- package/lib/cjs/resources/webhooks.js +0 -3
- package/lib/cjs/resources/wire_transfers.d.ts +2 -3
- package/lib/cjs/resources/wire_transfers.js +0 -3
- package/lib/esm/resource.d.ts +1 -0
- package/lib/esm/resource.js +3 -0
- package/lib/esm/resources/addresses.d.ts +2 -3
- package/lib/esm/resources/addresses.js +0 -3
- package/lib/esm/resources/adjustments.d.ts +2 -3
- package/lib/esm/resources/adjustments.js +0 -3
- package/lib/esm/resources/adyen_gateways.d.ts +0 -1
- package/lib/esm/resources/adyen_gateways.js +0 -3
- package/lib/esm/resources/adyen_payments.d.ts +2 -3
- package/lib/esm/resources/adyen_payments.js +0 -3
- package/lib/esm/resources/attachments.d.ts +2 -3
- package/lib/esm/resources/attachments.js +0 -3
- package/lib/esm/resources/authorizations.d.ts +0 -1
- package/lib/esm/resources/authorizations.js +0 -3
- package/lib/esm/resources/avalara_accounts.d.ts +0 -1
- package/lib/esm/resources/avalara_accounts.js +0 -3
- package/lib/esm/resources/axerve_gateways.d.ts +0 -1
- package/lib/esm/resources/axerve_gateways.js +0 -3
- package/lib/esm/resources/axerve_payments.d.ts +2 -3
- package/lib/esm/resources/axerve_payments.js +0 -3
- package/lib/esm/resources/billing_info_validation_rules.d.ts +0 -1
- package/lib/esm/resources/billing_info_validation_rules.js +0 -3
- package/lib/esm/resources/bing_geocoders.d.ts +0 -1
- package/lib/esm/resources/bing_geocoders.js +0 -3
- package/lib/esm/resources/braintree_gateways.d.ts +0 -1
- package/lib/esm/resources/braintree_gateways.js +0 -3
- package/lib/esm/resources/braintree_payments.d.ts +2 -3
- package/lib/esm/resources/braintree_payments.js +0 -3
- package/lib/esm/resources/bundles.d.ts +0 -1
- package/lib/esm/resources/bundles.js +0 -3
- package/lib/esm/resources/captures.d.ts +0 -1
- package/lib/esm/resources/captures.js +0 -3
- package/lib/esm/resources/carrier_accounts.d.ts +0 -1
- package/lib/esm/resources/carrier_accounts.js +0 -3
- package/lib/esm/resources/checkout_com_gateways.d.ts +0 -1
- package/lib/esm/resources/checkout_com_gateways.js +0 -3
- package/lib/esm/resources/checkout_com_payments.d.ts +2 -3
- package/lib/esm/resources/checkout_com_payments.js +0 -3
- package/lib/esm/resources/cleanups.d.ts +0 -1
- package/lib/esm/resources/cleanups.js +0 -3
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +0 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.js +0 -3
- package/lib/esm/resources/coupon_recipients.d.ts +0 -1
- package/lib/esm/resources/coupon_recipients.js +0 -3
- package/lib/esm/resources/coupons.d.ts +2 -3
- package/lib/esm/resources/coupons.js +0 -3
- package/lib/esm/resources/customer_addresses.d.ts +0 -1
- package/lib/esm/resources/customer_addresses.js +0 -3
- package/lib/esm/resources/customer_groups.d.ts +0 -1
- package/lib/esm/resources/customer_groups.js +0 -3
- package/lib/esm/resources/customer_password_resets.d.ts +0 -1
- package/lib/esm/resources/customer_password_resets.js +0 -3
- package/lib/esm/resources/customer_payment_sources.d.ts +2 -3
- package/lib/esm/resources/customer_payment_sources.js +0 -3
- package/lib/esm/resources/customer_subscriptions.d.ts +0 -1
- package/lib/esm/resources/customer_subscriptions.js +0 -3
- package/lib/esm/resources/customers.d.ts +0 -1
- package/lib/esm/resources/customers.js +0 -3
- package/lib/esm/resources/delivery_lead_times.d.ts +0 -1
- package/lib/esm/resources/delivery_lead_times.js +0 -3
- package/lib/esm/resources/event_callbacks.d.ts +2 -3
- package/lib/esm/resources/event_callbacks.js +0 -3
- package/lib/esm/resources/events.d.ts +0 -1
- package/lib/esm/resources/events.js +0 -3
- package/lib/esm/resources/exports.d.ts +0 -1
- package/lib/esm/resources/exports.js +0 -3
- package/lib/esm/resources/external_gateways.d.ts +0 -1
- package/lib/esm/resources/external_gateways.js +0 -3
- package/lib/esm/resources/external_payments.d.ts +2 -3
- package/lib/esm/resources/external_payments.js +0 -3
- package/lib/esm/resources/external_promotions.d.ts +0 -1
- package/lib/esm/resources/external_promotions.js +0 -3
- package/lib/esm/resources/external_tax_calculators.d.ts +0 -1
- package/lib/esm/resources/external_tax_calculators.js +0 -3
- package/lib/esm/resources/fixed_amount_promotions.d.ts +0 -1
- package/lib/esm/resources/fixed_amount_promotions.js +0 -3
- package/lib/esm/resources/fixed_price_promotions.d.ts +0 -1
- package/lib/esm/resources/fixed_price_promotions.js +0 -3
- package/lib/esm/resources/free_gift_promotions.d.ts +0 -1
- package/lib/esm/resources/free_gift_promotions.js +0 -3
- package/lib/esm/resources/free_shipping_promotions.d.ts +0 -1
- package/lib/esm/resources/free_shipping_promotions.js +0 -3
- package/lib/esm/resources/geocoders.d.ts +0 -1
- package/lib/esm/resources/geocoders.js +0 -3
- package/lib/esm/resources/gift_card_recipients.d.ts +0 -1
- package/lib/esm/resources/gift_card_recipients.js +0 -3
- package/lib/esm/resources/gift_cards.d.ts +0 -1
- package/lib/esm/resources/gift_cards.js +0 -3
- package/lib/esm/resources/google_geocoders.d.ts +0 -1
- package/lib/esm/resources/google_geocoders.js +0 -3
- package/lib/esm/resources/imports.d.ts +0 -1
- package/lib/esm/resources/imports.js +0 -3
- package/lib/esm/resources/in_stock_subscriptions.d.ts +0 -1
- package/lib/esm/resources/in_stock_subscriptions.js +0 -3
- package/lib/esm/resources/inventory_models.d.ts +0 -1
- package/lib/esm/resources/inventory_models.js +0 -3
- package/lib/esm/resources/inventory_return_locations.d.ts +2 -3
- package/lib/esm/resources/inventory_return_locations.js +0 -3
- package/lib/esm/resources/inventory_stock_locations.d.ts +2 -3
- package/lib/esm/resources/inventory_stock_locations.js +0 -3
- package/lib/esm/resources/klarna_gateways.d.ts +0 -1
- package/lib/esm/resources/klarna_gateways.js +0 -3
- package/lib/esm/resources/klarna_payments.d.ts +2 -3
- package/lib/esm/resources/klarna_payments.js +0 -3
- package/lib/esm/resources/line_item_options.d.ts +2 -3
- package/lib/esm/resources/line_item_options.js +0 -3
- package/lib/esm/resources/line_items.d.ts +0 -1
- package/lib/esm/resources/line_items.js +0 -3
- package/lib/esm/resources/manual_gateways.d.ts +0 -1
- package/lib/esm/resources/manual_gateways.js +0 -3
- package/lib/esm/resources/manual_tax_calculators.d.ts +0 -1
- package/lib/esm/resources/manual_tax_calculators.js +0 -3
- package/lib/esm/resources/markets.d.ts +0 -1
- package/lib/esm/resources/markets.js +0 -3
- package/lib/esm/resources/merchants.d.ts +0 -1
- package/lib/esm/resources/merchants.js +0 -3
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +2 -3
- package/lib/esm/resources/order_amount_promotion_rules.js +0 -3
- package/lib/esm/resources/order_copies.d.ts +0 -1
- package/lib/esm/resources/order_copies.js +0 -3
- package/lib/esm/resources/order_subscriptions.d.ts +0 -1
- package/lib/esm/resources/order_subscriptions.js +0 -3
- package/lib/esm/resources/order_validation_rules.d.ts +0 -1
- package/lib/esm/resources/order_validation_rules.js +0 -3
- package/lib/esm/resources/orders.d.ts +0 -1
- package/lib/esm/resources/orders.js +0 -3
- package/lib/esm/resources/packages.d.ts +0 -1
- package/lib/esm/resources/packages.js +0 -3
- package/lib/esm/resources/parcel_line_items.d.ts +2 -3
- package/lib/esm/resources/parcel_line_items.js +0 -3
- package/lib/esm/resources/parcels.d.ts +0 -1
- package/lib/esm/resources/parcels.js +0 -3
- package/lib/esm/resources/payment_gateways.d.ts +0 -1
- package/lib/esm/resources/payment_gateways.js +0 -3
- package/lib/esm/resources/payment_methods.d.ts +0 -1
- package/lib/esm/resources/payment_methods.js +0 -3
- package/lib/esm/resources/paypal_gateways.d.ts +0 -1
- package/lib/esm/resources/paypal_gateways.js +0 -3
- package/lib/esm/resources/paypal_payments.d.ts +2 -3
- package/lib/esm/resources/paypal_payments.js +0 -3
- package/lib/esm/resources/percentage_discount_promotions.d.ts +0 -1
- package/lib/esm/resources/percentage_discount_promotions.js +0 -3
- package/lib/esm/resources/price_lists.d.ts +0 -1
- package/lib/esm/resources/price_lists.js +0 -3
- package/lib/esm/resources/price_tiers.d.ts +0 -1
- package/lib/esm/resources/price_tiers.js +0 -3
- package/lib/esm/resources/price_volume_tiers.d.ts +0 -1
- package/lib/esm/resources/price_volume_tiers.js +0 -3
- package/lib/esm/resources/prices.d.ts +0 -1
- package/lib/esm/resources/prices.js +0 -3
- package/lib/esm/resources/promotion_rules.d.ts +1 -3
- package/lib/esm/resources/promotion_rules.js +0 -3
- package/lib/esm/resources/promotions.d.ts +0 -1
- package/lib/esm/resources/promotions.js +0 -3
- package/lib/esm/resources/refunds.d.ts +0 -1
- package/lib/esm/resources/refunds.js +0 -3
- package/lib/esm/resources/return_line_items.d.ts +2 -3
- package/lib/esm/resources/return_line_items.js +0 -3
- package/lib/esm/resources/returns.d.ts +0 -1
- package/lib/esm/resources/returns.js +0 -3
- package/lib/esm/resources/satispay_gateways.d.ts +0 -1
- package/lib/esm/resources/satispay_gateways.js +0 -3
- package/lib/esm/resources/satispay_payments.d.ts +2 -3
- package/lib/esm/resources/satispay_payments.js +0 -3
- package/lib/esm/resources/shipments.d.ts +0 -1
- package/lib/esm/resources/shipments.js +0 -3
- package/lib/esm/resources/shipping_categories.d.ts +0 -1
- package/lib/esm/resources/shipping_categories.js +0 -3
- package/lib/esm/resources/shipping_method_tiers.d.ts +0 -1
- package/lib/esm/resources/shipping_method_tiers.js +0 -3
- package/lib/esm/resources/shipping_methods.d.ts +0 -1
- package/lib/esm/resources/shipping_methods.js +0 -3
- package/lib/esm/resources/shipping_weight_tiers.d.ts +0 -1
- package/lib/esm/resources/shipping_weight_tiers.js +0 -3
- package/lib/esm/resources/shipping_zones.d.ts +0 -1
- package/lib/esm/resources/shipping_zones.js +0 -3
- package/lib/esm/resources/sku_list_items.d.ts +2 -3
- package/lib/esm/resources/sku_list_items.js +0 -3
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +0 -1
- package/lib/esm/resources/sku_list_promotion_rules.js +0 -3
- package/lib/esm/resources/sku_lists.d.ts +0 -1
- package/lib/esm/resources/sku_lists.js +0 -3
- package/lib/esm/resources/sku_options.d.ts +0 -1
- package/lib/esm/resources/sku_options.js +0 -3
- package/lib/esm/resources/skus.d.ts +0 -1
- package/lib/esm/resources/skus.js +0 -3
- package/lib/esm/resources/stock_items.d.ts +0 -1
- package/lib/esm/resources/stock_items.js +0 -3
- package/lib/esm/resources/stock_line_items.d.ts +2 -3
- package/lib/esm/resources/stock_line_items.js +0 -3
- package/lib/esm/resources/stock_locations.d.ts +0 -1
- package/lib/esm/resources/stock_locations.js +0 -3
- package/lib/esm/resources/stock_transfers.d.ts +0 -1
- package/lib/esm/resources/stock_transfers.js +0 -3
- package/lib/esm/resources/stripe_gateways.d.ts +0 -1
- package/lib/esm/resources/stripe_gateways.js +0 -3
- package/lib/esm/resources/stripe_payments.d.ts +2 -3
- package/lib/esm/resources/stripe_payments.js +0 -3
- package/lib/esm/resources/tax_calculators.d.ts +0 -1
- package/lib/esm/resources/tax_calculators.js +0 -3
- package/lib/esm/resources/tax_categories.d.ts +0 -1
- package/lib/esm/resources/tax_categories.js +0 -3
- package/lib/esm/resources/tax_rules.d.ts +2 -3
- package/lib/esm/resources/tax_rules.js +0 -3
- package/lib/esm/resources/taxjar_accounts.d.ts +0 -1
- package/lib/esm/resources/taxjar_accounts.js +0 -3
- package/lib/esm/resources/transactions.d.ts +2 -3
- package/lib/esm/resources/transactions.js +0 -3
- package/lib/esm/resources/voids.d.ts +0 -1
- package/lib/esm/resources/voids.js +0 -3
- package/lib/esm/resources/webhooks.d.ts +0 -1
- package/lib/esm/resources/webhooks.js +0 -3
- package/lib/esm/resources/wire_transfers.d.ts +2 -3
- package/lib/esm/resources/wire_transfers.js +0 -3
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel
|
2
|
-
import type { QueryParamsRetrieve
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
|
+
import type { QueryParamsRetrieve } from '../query';
|
3
3
|
import type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions';
|
4
4
|
import type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions';
|
5
5
|
import type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions';
|
@@ -45,7 +45,6 @@ interface OrderAmountPromotionRuleUpdate extends ResourceUpdate {
|
|
45
45
|
}
|
46
46
|
declare class OrderAmountPromotionRules extends ApiResource<OrderAmountPromotionRule> {
|
47
47
|
static readonly TYPE: OrderAmountPromotionRuleType;
|
48
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderAmountPromotionRule>>;
|
49
48
|
create(resource: OrderAmountPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
50
49
|
update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
51
50
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class OrderAmountPromotionRules extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: OrderAmountPromotionRules.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: OrderAmountPromotionRules.TYPE }, params, options);
|
8
5
|
}
|
@@ -34,7 +34,6 @@ interface OrderCopyCreate extends ResourceCreate {
|
|
34
34
|
}
|
35
35
|
declare class OrderCopies extends ApiResource<OrderCopy> {
|
36
36
|
static readonly TYPE: OrderCopyType;
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
|
38
37
|
create(resource: OrderCopyCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderCopy>;
|
39
38
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
40
39
|
source_order(orderCopyId: string | OrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class OrderCopies extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: OrderCopies.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: OrderCopies.TYPE }, params, options);
|
8
5
|
}
|
@@ -53,7 +53,6 @@ interface OrderSubscriptionUpdate extends ResourceUpdate {
|
|
53
53
|
}
|
54
54
|
declare class OrderSubscriptions extends ApiResource<OrderSubscription> {
|
55
55
|
static readonly TYPE: OrderSubscriptionType;
|
56
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>>;
|
57
56
|
create(resource: OrderSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
58
57
|
update(resource: OrderSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
59
58
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class OrderSubscriptions extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: OrderSubscriptions.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: OrderSubscriptions.TYPE }, params, options);
|
8
5
|
}
|
@@ -13,7 +13,6 @@ interface OrderValidationRule extends Resource {
|
|
13
13
|
}
|
14
14
|
declare class OrderValidationRules extends ApiResource<OrderValidationRule> {
|
15
15
|
static readonly TYPE: OrderValidationRuleType;
|
16
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderValidationRule>>;
|
17
16
|
market(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
18
17
|
attachments(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
19
18
|
isOrderValidationRule(resource: any): resource is OrderValidationRule;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class OrderValidationRules extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: OrderValidationRules.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async market(orderValidationRuleId, params, options) {
|
7
4
|
const _orderValidationRuleId = orderValidationRuleId.id || orderValidationRuleId;
|
8
5
|
return this.resources.fetch({ type: 'markets' }, `order_validation_rules/${_orderValidationRuleId}/market`, params, options);
|
@@ -265,7 +265,6 @@ interface OrderUpdate extends ResourceUpdate {
|
|
265
265
|
}
|
266
266
|
declare class Orders extends ApiResource<Order> {
|
267
267
|
static readonly TYPE: OrderType;
|
268
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Order>>;
|
269
268
|
create(resource: OrderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
270
269
|
update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
271
270
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Orders extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Orders.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: Orders.TYPE }, params, options);
|
8
5
|
}
|
@@ -42,7 +42,6 @@ interface PackageUpdate extends ResourceUpdate {
|
|
42
42
|
}
|
43
43
|
declare class Packages extends ApiResource<Package> {
|
44
44
|
static readonly TYPE: PackageType;
|
45
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Package>>;
|
46
45
|
create(resource: PackageCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Package>;
|
47
46
|
update(resource: PackageUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Package>;
|
48
47
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Packages extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Packages.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: Packages.TYPE }, params, options);
|
8
5
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel
|
2
|
-
import type { QueryParamsRetrieve
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
|
+
import type { QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Parcel, ParcelType } from './parcels';
|
4
4
|
import type { StockLineItem, StockLineItemType } from './stock_line_items';
|
5
5
|
type ParcelLineItemType = 'parcel_line_items';
|
@@ -38,7 +38,6 @@ interface ParcelLineItemCreate extends ResourceCreate {
|
|
38
38
|
type ParcelLineItemUpdate = ResourceUpdate;
|
39
39
|
declare class ParcelLineItems extends ApiResource<ParcelLineItem> {
|
40
40
|
static readonly TYPE: ParcelLineItemType;
|
41
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ParcelLineItem>>;
|
42
41
|
create(resource: ParcelLineItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ParcelLineItem>;
|
43
42
|
update(resource: ParcelLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ParcelLineItem>;
|
44
43
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class ParcelLineItems extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: ParcelLineItems.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: ParcelLineItems.TYPE }, params, options);
|
8
5
|
}
|
@@ -103,7 +103,6 @@ interface ParcelUpdate extends ResourceUpdate {
|
|
103
103
|
}
|
104
104
|
declare class Parcels extends ApiResource<Parcel> {
|
105
105
|
static readonly TYPE: ParcelType;
|
106
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Parcel>>;
|
107
106
|
create(resource: ParcelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Parcel>;
|
108
107
|
update(resource: ParcelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Parcel>;
|
109
108
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Parcels extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Parcels.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: Parcels.TYPE }, params, options);
|
8
5
|
}
|
@@ -12,7 +12,6 @@ interface PaymentGateway extends Resource {
|
|
12
12
|
}
|
13
13
|
declare class PaymentGateways extends ApiResource<PaymentGateway> {
|
14
14
|
static readonly TYPE: PaymentGatewayType;
|
15
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentGateway>>;
|
16
15
|
payment_methods(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
17
16
|
isPaymentGateway(resource: any): resource is PaymentGateway;
|
18
17
|
relationship(id: string | ResourceId | null): PaymentGatewayRel;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class PaymentGateways extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: PaymentGateways.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async payment_methods(paymentGatewayId, params, options) {
|
7
4
|
const _paymentGatewayId = paymentGatewayId.id || paymentGatewayId;
|
8
5
|
return this.resources.fetch({ type: 'payment_methods' }, `payment_gateways/${_paymentGatewayId}/payment_methods`, params, options);
|
@@ -58,7 +58,6 @@ interface PaymentMethodUpdate extends ResourceUpdate {
|
|
58
58
|
}
|
59
59
|
declare class PaymentMethods extends ApiResource<PaymentMethod> {
|
60
60
|
static readonly TYPE: PaymentMethodType;
|
61
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
62
61
|
create(resource: PaymentMethodCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
|
63
62
|
update(resource: PaymentMethodUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
|
64
63
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class PaymentMethods extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: PaymentMethods.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: PaymentMethods.TYPE }, params, options);
|
8
5
|
}
|
@@ -24,7 +24,6 @@ interface PaypalGatewayUpdate extends ResourceUpdate {
|
|
24
24
|
}
|
25
25
|
declare class PaypalGateways extends ApiResource<PaypalGateway> {
|
26
26
|
static readonly TYPE: PaypalGatewayType;
|
27
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaypalGateway>>;
|
28
27
|
create(resource: PaypalGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
|
29
28
|
update(resource: PaypalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
|
30
29
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class PaypalGateways extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: PaypalGateways.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: PaypalGateways.TYPE }, params, options);
|
8
5
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel
|
2
|
-
import type { QueryParamsRetrieve
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
|
+
import type { QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Order, OrderType } from './orders';
|
4
4
|
import type { PaymentGateway } from './payment_gateways';
|
5
5
|
type PaypalPaymentType = 'paypal_payments';
|
@@ -39,7 +39,6 @@ interface PaypalPaymentUpdate extends ResourceUpdate {
|
|
39
39
|
}
|
40
40
|
declare class PaypalPayments extends ApiResource<PaypalPayment> {
|
41
41
|
static readonly TYPE: PaypalPaymentType;
|
42
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaypalPayment>>;
|
43
42
|
create(resource: PaypalPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalPayment>;
|
44
43
|
update(resource: PaypalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalPayment>;
|
45
44
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class PaypalPayments extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: PaypalPayments.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: PaypalPayments.TYPE }, params, options);
|
8
5
|
}
|
@@ -81,7 +81,6 @@ interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
|
|
81
81
|
}
|
82
82
|
declare class PercentageDiscountPromotions extends ApiResource<PercentageDiscountPromotion> {
|
83
83
|
static readonly TYPE: PercentageDiscountPromotionType;
|
84
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PercentageDiscountPromotion>>;
|
85
84
|
create(resource: PercentageDiscountPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PercentageDiscountPromotion>;
|
86
85
|
update(resource: PercentageDiscountPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PercentageDiscountPromotion>;
|
87
86
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class PercentageDiscountPromotions extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: PercentageDiscountPromotions.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: PercentageDiscountPromotions.TYPE }, params, options);
|
8
5
|
}
|
@@ -26,7 +26,6 @@ interface PriceListUpdate extends ResourceUpdate {
|
|
26
26
|
}
|
27
27
|
declare class PriceLists extends ApiResource<PriceList> {
|
28
28
|
static readonly TYPE: PriceListType;
|
29
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceList>>;
|
30
29
|
create(resource: PriceListCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
|
31
30
|
update(resource: PriceListUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
|
32
31
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class PriceLists extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: PriceLists.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: PriceLists.TYPE }, params, options);
|
8
5
|
}
|
@@ -18,7 +18,6 @@ interface PriceTier extends Resource {
|
|
18
18
|
}
|
19
19
|
declare class PriceTiers extends ApiResource<PriceTier> {
|
20
20
|
static readonly TYPE: PriceTierType;
|
21
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceTier>>;
|
22
21
|
price(priceTierId: string | PriceTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
23
22
|
attachments(priceTierId: string | PriceTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
24
23
|
isPriceTier(resource: any): resource is PriceTier;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class PriceTiers extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: PriceTiers.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async price(priceTierId, params, options) {
|
7
4
|
const _priceTierId = priceTierId.id || priceTierId;
|
8
5
|
return this.resources.fetch({ type: 'prices' }, `price_tiers/${_priceTierId}/price`, params, options);
|
@@ -33,7 +33,6 @@ interface PriceVolumeTierUpdate extends ResourceUpdate {
|
|
33
33
|
}
|
34
34
|
declare class PriceVolumeTiers extends ApiResource<PriceVolumeTier> {
|
35
35
|
static readonly TYPE: PriceVolumeTierType;
|
36
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceVolumeTier>>;
|
37
36
|
create(resource: PriceVolumeTierCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceVolumeTier>;
|
38
37
|
update(resource: PriceVolumeTierUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceVolumeTier>;
|
39
38
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class PriceVolumeTiers extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: PriceVolumeTiers.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: PriceVolumeTiers.TYPE }, params, options);
|
8
5
|
}
|
@@ -52,7 +52,6 @@ interface PriceUpdate extends ResourceUpdate {
|
|
52
52
|
}
|
53
53
|
declare class Prices extends ApiResource<Price> {
|
54
54
|
static readonly TYPE: PriceType;
|
55
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Price>>;
|
56
55
|
create(resource: PriceCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
57
56
|
update(resource: PriceUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
58
57
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Prices extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Prices.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: Prices.TYPE }, params, options);
|
8
5
|
}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceId,
|
2
|
-
import type { QueryParamsList } from '../query';
|
1
|
+
import { ApiResource, Resource, ResourceId, ResourceRel } from '../resource';
|
3
2
|
import type { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
4
3
|
import type { FreeShippingPromotion } from './free_shipping_promotions';
|
5
4
|
import type { FreeGiftPromotion } from './free_gift_promotions';
|
@@ -16,7 +15,6 @@ interface PromotionRule extends Resource {
|
|
16
15
|
}
|
17
16
|
declare class PromotionRules extends ApiResource<PromotionRule> {
|
18
17
|
static readonly TYPE: PromotionRuleType;
|
19
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PromotionRule>>;
|
20
18
|
isPromotionRule(resource: any): resource is PromotionRule;
|
21
19
|
relationship(id: string | ResourceId | null): PromotionRuleRel;
|
22
20
|
type(): PromotionRuleType;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class PromotionRules extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: PromotionRules.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
isPromotionRule(resource) {
|
7
4
|
return resource.type && (resource.type === PromotionRules.TYPE);
|
8
5
|
}
|
@@ -28,7 +28,6 @@ interface Promotion extends Resource {
|
|
28
28
|
}
|
29
29
|
declare class Promotions extends ApiResource<Promotion> {
|
30
30
|
static readonly TYPE: PromotionType;
|
31
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Promotion>>;
|
32
31
|
market(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
33
32
|
order_amount_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
34
33
|
sku_list_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Promotions extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Promotions.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async market(promotionId, params, options) {
|
7
4
|
const _promotionId = promotionId.id || promotionId;
|
8
5
|
return this.resources.fetch({ type: 'markets' }, `promotions/${_promotionId}/market`, params, options);
|
@@ -26,7 +26,6 @@ interface Refund extends Resource {
|
|
26
26
|
}
|
27
27
|
declare class Refunds extends ApiResource<Refund> {
|
28
28
|
static readonly TYPE: RefundType;
|
29
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Refund>>;
|
30
29
|
order(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
31
30
|
reference_capture(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
32
31
|
events(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Refunds extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Refunds.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async order(refundId, params, options) {
|
7
4
|
const _refundId = refundId.id || refundId;
|
8
5
|
return this.resources.fetch({ type: 'orders' }, `refunds/${_refundId}/order`, params, options);
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel
|
2
|
-
import type { QueryParamsRetrieve
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
|
+
import type { QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Return, ReturnType } from './returns';
|
4
4
|
import type { LineItem, LineItemType } from './line_items';
|
5
5
|
type ReturnLineItemType = 'return_line_items';
|
@@ -36,7 +36,6 @@ interface ReturnLineItemUpdate extends ResourceUpdate {
|
|
36
36
|
}
|
37
37
|
declare class ReturnLineItems extends ApiResource<ReturnLineItem> {
|
38
38
|
static readonly TYPE: ReturnLineItemType;
|
39
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ReturnLineItem>>;
|
40
39
|
create(resource: ReturnLineItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ReturnLineItem>;
|
41
40
|
update(resource: ReturnLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ReturnLineItem>;
|
42
41
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class ReturnLineItems extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: ReturnLineItems.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: ReturnLineItems.TYPE }, params, options);
|
8
5
|
}
|
@@ -56,7 +56,6 @@ interface ReturnUpdate extends ResourceUpdate {
|
|
56
56
|
}
|
57
57
|
declare class Returns extends ApiResource<Return> {
|
58
58
|
static readonly TYPE: ReturnType;
|
59
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Return>>;
|
60
59
|
create(resource: ReturnCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
|
61
60
|
update(resource: ReturnUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
|
62
61
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Returns extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Returns.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: Returns.TYPE }, params, options);
|
8
5
|
}
|
@@ -26,7 +26,6 @@ interface SatispayGatewayUpdate extends ResourceUpdate {
|
|
26
26
|
}
|
27
27
|
declare class SatispayGateways extends ApiResource<SatispayGateway> {
|
28
28
|
static readonly TYPE: SatispayGatewayType;
|
29
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SatispayGateway>>;
|
30
29
|
create(resource: SatispayGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayGateway>;
|
31
30
|
update(resource: SatispayGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayGateway>;
|
32
31
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class SatispayGateways extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: SatispayGateways.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: SatispayGateways.TYPE }, params, options);
|
8
5
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel
|
2
|
-
import type { QueryParamsRetrieve
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
|
+
import type { QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Order, OrderType } from './orders';
|
4
4
|
import type { PaymentGateway } from './payment_gateways';
|
5
5
|
type SatispayPaymentType = 'satispay_payments';
|
@@ -30,7 +30,6 @@ interface SatispayPaymentUpdate extends ResourceUpdate {
|
|
30
30
|
}
|
31
31
|
declare class SatispayPayments extends ApiResource<SatispayPayment> {
|
32
32
|
static readonly TYPE: SatispayPaymentType;
|
33
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>>;
|
34
33
|
create(resource: SatispayPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayPayment>;
|
35
34
|
update(resource: SatispayPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayPayment>;
|
36
35
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class SatispayPayments extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: SatispayPayments.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: SatispayPayments.TYPE }, params, options);
|
8
5
|
}
|
@@ -70,7 +70,6 @@ interface ShipmentUpdate extends ResourceUpdate {
|
|
70
70
|
}
|
71
71
|
declare class Shipments extends ApiResource<Shipment> {
|
72
72
|
static readonly TYPE: ShipmentType;
|
73
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Shipment>>;
|
74
73
|
update(resource: ShipmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
|
75
74
|
order(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
76
75
|
shipping_category(shipmentId: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Shipments extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Shipments.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async update(resource, params, options) {
|
7
4
|
return this.resources.update({ ...resource, type: Shipments.TYPE }, params, options);
|
8
5
|
}
|
@@ -20,7 +20,6 @@ interface ShippingCategoryUpdate extends ResourceUpdate {
|
|
20
20
|
}
|
21
21
|
declare class ShippingCategories extends ApiResource<ShippingCategory> {
|
22
22
|
static readonly TYPE: ShippingCategoryType;
|
23
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingCategory>>;
|
24
23
|
create(resource: ShippingCategoryCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
|
25
24
|
update(resource: ShippingCategoryUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
|
26
25
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class ShippingCategories extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: ShippingCategories.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: ShippingCategories.TYPE }, params, options);
|
8
5
|
}
|
@@ -18,7 +18,6 @@ interface ShippingMethodTier extends Resource {
|
|
18
18
|
}
|
19
19
|
declare class ShippingMethodTiers extends ApiResource<ShippingMethodTier> {
|
20
20
|
static readonly TYPE: ShippingMethodTierType;
|
21
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingMethodTier>>;
|
22
21
|
shipping_method(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
|
23
22
|
attachments(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
24
23
|
isShippingMethodTier(resource: any): resource is ShippingMethodTier;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class ShippingMethodTiers extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: ShippingMethodTiers.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async shipping_method(shippingMethodTierId, params, options) {
|
7
4
|
const _shippingMethodTierId = shippingMethodTierId.id || shippingMethodTierId;
|
8
5
|
return this.resources.fetch({ type: 'shipping_methods' }, `shipping_method_tiers/${_shippingMethodTierId}/shipping_method`, params, options);
|
@@ -88,7 +88,6 @@ interface ShippingMethodUpdate extends ResourceUpdate {
|
|
88
88
|
}
|
89
89
|
declare class ShippingMethods extends ApiResource<ShippingMethod> {
|
90
90
|
static readonly TYPE: ShippingMethodType;
|
91
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingMethod>>;
|
92
91
|
create(resource: ShippingMethodCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
|
93
92
|
update(resource: ShippingMethodUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
|
94
93
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class ShippingMethods extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: ShippingMethods.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: ShippingMethods.TYPE }, params, options);
|
8
5
|
}
|
@@ -33,7 +33,6 @@ interface ShippingWeightTierUpdate extends ResourceUpdate {
|
|
33
33
|
}
|
34
34
|
declare class ShippingWeightTiers extends ApiResource<ShippingWeightTier> {
|
35
35
|
static readonly TYPE: ShippingWeightTierType;
|
36
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingWeightTier>>;
|
37
36
|
create(resource: ShippingWeightTierCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingWeightTier>;
|
38
37
|
update(resource: ShippingWeightTierUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingWeightTier>;
|
39
38
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class ShippingWeightTiers extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: ShippingWeightTiers.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: ShippingWeightTiers.TYPE }, params, options);
|
8
5
|
}
|