@commercelayer/sdk 5.0.0-beta.7 → 5.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/api.d.ts +15 -0
- package/lib/cjs/api.js +0 -13
- package/lib/cjs/commercelayer.d.ts +2 -2
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/query.d.ts +1 -1
- package/lib/cjs/resource.d.ts +10 -13
- 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/cjs/static.d.ts +1 -1
- package/lib/esm/api.d.ts +15 -0
- package/lib/esm/api.js +0 -13
- package/lib/esm/commercelayer.d.ts +2 -2
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/query.d.ts +1 -1
- package/lib/esm/resource.d.ts +10 -13
- 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/esm/static.d.ts +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -31,7 +31,6 @@ interface CouponRecipientUpdate extends ResourceUpdate {
|
|
31
31
|
}
|
32
32
|
declare class CouponRecipients extends ApiResource<CouponRecipient> {
|
33
33
|
static readonly TYPE: CouponRecipientType;
|
34
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CouponRecipient>>;
|
35
34
|
create(resource: CouponRecipientCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
|
36
35
|
update(resource: CouponRecipientUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
|
37
36
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CouponRecipients extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: CouponRecipients.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: CouponRecipients.TYPE }, params, options);
|
10
7
|
}
|
@@ -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 { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules';
|
4
4
|
type CouponType = 'coupons';
|
5
5
|
type CouponRel = ResourceRel & {
|
@@ -33,7 +33,6 @@ interface CouponUpdate extends ResourceUpdate {
|
|
33
33
|
}
|
34
34
|
declare class Coupons extends ApiResource<Coupon> {
|
35
35
|
static readonly TYPE: CouponType;
|
36
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
|
37
36
|
create(resource: CouponCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
|
38
37
|
update(resource: CouponUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
|
39
38
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Coupons extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: Coupons.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: Coupons.TYPE }, params, options);
|
10
7
|
}
|
@@ -30,7 +30,6 @@ interface CustomerAddressUpdate extends ResourceUpdate {
|
|
30
30
|
}
|
31
31
|
declare class CustomerAddresses extends ApiResource<CustomerAddress> {
|
32
32
|
static readonly TYPE: CustomerAddressType;
|
33
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerAddress>>;
|
34
33
|
create(resource: CustomerAddressCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
|
35
34
|
update(resource: CustomerAddressUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
|
36
35
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CustomerAddresses extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: CustomerAddresses.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: CustomerAddresses.TYPE }, params, options);
|
10
7
|
}
|
@@ -22,7 +22,6 @@ interface CustomerGroupUpdate extends ResourceUpdate {
|
|
22
22
|
}
|
23
23
|
declare class CustomerGroups extends ApiResource<CustomerGroup> {
|
24
24
|
static readonly TYPE: CustomerGroupType;
|
25
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerGroup>>;
|
26
25
|
create(resource: CustomerGroupCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
|
27
26
|
update(resource: CustomerGroupUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
|
28
27
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CustomerGroups extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: CustomerGroups.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: CustomerGroups.TYPE }, params, options);
|
10
7
|
}
|
@@ -23,7 +23,6 @@ interface CustomerPasswordResetUpdate extends ResourceUpdate {
|
|
23
23
|
}
|
24
24
|
declare class CustomerPasswordResets extends ApiResource<CustomerPasswordReset> {
|
25
25
|
static readonly TYPE: CustomerPasswordResetType;
|
26
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerPasswordReset>>;
|
27
26
|
create(resource: CustomerPasswordResetCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
28
27
|
update(resource: CustomerPasswordResetUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
29
28
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CustomerPasswordResets extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: CustomerPasswordResets.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: CustomerPasswordResets.TYPE }, params, options);
|
10
7
|
}
|
@@ -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 { Customer, CustomerType } from './customers';
|
4
4
|
import type { AdyenPayment, AdyenPaymentType } from './adyen_payments';
|
5
5
|
import type { AxervePayment, AxervePaymentType } from './axerve_payments';
|
@@ -66,7 +66,6 @@ interface CustomerPaymentSourceUpdate extends ResourceUpdate {
|
|
66
66
|
}
|
67
67
|
declare class CustomerPaymentSources extends ApiResource<CustomerPaymentSource> {
|
68
68
|
static readonly TYPE: CustomerPaymentSourceType;
|
69
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>>;
|
70
69
|
create(resource: CustomerPaymentSourceCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
|
71
70
|
update(resource: CustomerPaymentSourceUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
|
72
71
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CustomerPaymentSources extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: CustomerPaymentSources.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: CustomerPaymentSources.TYPE }, params, options);
|
10
7
|
}
|
@@ -18,7 +18,6 @@ interface CustomerSubscriptionCreate extends ResourceCreate {
|
|
18
18
|
type CustomerSubscriptionUpdate = ResourceUpdate;
|
19
19
|
declare class CustomerSubscriptions extends ApiResource<CustomerSubscription> {
|
20
20
|
static readonly TYPE: CustomerSubscriptionType;
|
21
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerSubscription>>;
|
22
21
|
create(resource: CustomerSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerSubscription>;
|
23
22
|
update(resource: CustomerSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerSubscription>;
|
24
23
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CustomerSubscriptions extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: CustomerSubscriptions.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: CustomerSubscriptions.TYPE }, params, options);
|
10
7
|
}
|
@@ -45,7 +45,6 @@ interface CustomerUpdate extends ResourceUpdate {
|
|
45
45
|
}
|
46
46
|
declare class Customers extends ApiResource<Customer> {
|
47
47
|
static readonly TYPE: CustomerType;
|
48
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Customer>>;
|
49
48
|
create(resource: CustomerCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
50
49
|
update(resource: CustomerUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
51
50
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Customers extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: Customers.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: Customers.TYPE }, params, options);
|
10
7
|
}
|
@@ -37,7 +37,6 @@ interface DeliveryLeadTimeUpdate extends ResourceUpdate {
|
|
37
37
|
}
|
38
38
|
declare class DeliveryLeadTimes extends ApiResource<DeliveryLeadTime> {
|
39
39
|
static readonly TYPE: DeliveryLeadTimeType;
|
40
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
|
41
40
|
create(resource: DeliveryLeadTimeCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
42
41
|
update(resource: DeliveryLeadTimeUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
43
42
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class DeliveryLeadTimes extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: DeliveryLeadTimes.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: DeliveryLeadTimes.TYPE }, params, options);
|
10
7
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceId, ResourcesConfig, ResourceRel
|
2
|
-
import type { QueryParamsRetrieve
|
1
|
+
import { ApiResource, Resource, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
|
+
import type { QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Webhook } from './webhooks';
|
4
4
|
type EventCallbackType = 'event_callbacks';
|
5
5
|
type EventCallbackRel = ResourceRel & {
|
@@ -15,7 +15,6 @@ interface EventCallback extends Resource {
|
|
15
15
|
}
|
16
16
|
declare class EventCallbacks extends ApiResource<EventCallback> {
|
17
17
|
static readonly TYPE: EventCallbackType;
|
18
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<EventCallback>>;
|
19
18
|
webhook(eventCallbackId: string | EventCallback, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
20
19
|
isEventCallback(resource: any): resource is EventCallback;
|
21
20
|
relationship(id: string | ResourceId | null): EventCallbackRel;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class EventCallbacks extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: EventCallbacks.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async webhook(eventCallbackId, params, options) {
|
9
6
|
const _eventCallbackId = eventCallbackId.id || eventCallbackId;
|
10
7
|
return this.resources.fetch({ type: 'webhooks' }, `event_callbacks/${_eventCallbackId}/webhook`, params, options);
|
@@ -14,7 +14,6 @@ interface Event extends Resource {
|
|
14
14
|
}
|
15
15
|
declare class Events extends ApiResource<Event> {
|
16
16
|
static readonly TYPE: EventType;
|
17
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
18
17
|
last_event_callbacks(eventId: string | Event, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<EventCallback>>;
|
19
18
|
webhooks(eventId: string | Event, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Webhook>>;
|
20
19
|
isEvent(resource: any): resource is Event;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Events extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: Events.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async last_event_callbacks(eventId, params, options) {
|
9
6
|
const _eventId = eventId.id || eventId;
|
10
7
|
return this.resources.fetch({ type: 'event_callbacks' }, `events/${_eventId}/last_event_callbacks`, params, options);
|
@@ -29,7 +29,6 @@ interface ExportCreate extends ResourceCreate {
|
|
29
29
|
}
|
30
30
|
declare class Exports extends ApiResource<Export> {
|
31
31
|
static readonly TYPE: ExportType;
|
32
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Export>>;
|
33
32
|
create(resource: ExportCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Export>;
|
34
33
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
35
34
|
events(exportId: string | Export, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Exports extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: Exports.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: Exports.TYPE }, params, options);
|
10
7
|
}
|
@@ -36,7 +36,6 @@ interface ExternalGatewayUpdate extends ResourceUpdate {
|
|
36
36
|
}
|
37
37
|
declare class ExternalGateways extends ApiResource<ExternalGateway> {
|
38
38
|
static readonly TYPE: ExternalGatewayType;
|
39
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalGateway>>;
|
40
39
|
create(resource: ExternalGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
41
40
|
update(resource: ExternalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
42
41
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class ExternalGateways extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: ExternalGateways.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: ExternalGateways.TYPE }, params, options);
|
10
7
|
}
|
@@ -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
|
import type { CustomerPaymentSource } from './customer_payment_sources';
|
@@ -30,7 +30,6 @@ interface ExternalPaymentUpdate extends ResourceUpdate {
|
|
30
30
|
}
|
31
31
|
declare class ExternalPayments extends ApiResource<ExternalPayment> {
|
32
32
|
static readonly TYPE: ExternalPaymentType;
|
33
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>>;
|
34
33
|
create(resource: ExternalPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
35
34
|
update(resource: ExternalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
36
35
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class ExternalPayments extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: ExternalPayments.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: ExternalPayments.TYPE }, params, options);
|
10
7
|
}
|
@@ -73,7 +73,6 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
|
|
73
73
|
}
|
74
74
|
declare class ExternalPromotions extends ApiResource<ExternalPromotion> {
|
75
75
|
static readonly TYPE: ExternalPromotionType;
|
76
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPromotion>>;
|
77
76
|
create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
78
77
|
update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
79
78
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class ExternalPromotions extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: ExternalPromotions.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: ExternalPromotions.TYPE }, params, options);
|
10
7
|
}
|
@@ -24,7 +24,6 @@ interface ExternalTaxCalculatorUpdate extends ResourceUpdate {
|
|
24
24
|
}
|
25
25
|
declare class ExternalTaxCalculators extends ApiResource<ExternalTaxCalculator> {
|
26
26
|
static readonly TYPE: ExternalTaxCalculatorType;
|
27
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalTaxCalculator>>;
|
28
27
|
create(resource: ExternalTaxCalculatorCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
29
28
|
update(resource: ExternalTaxCalculatorUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
30
29
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class ExternalTaxCalculators extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: ExternalTaxCalculators.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: ExternalTaxCalculators.TYPE }, params, options);
|
10
7
|
}
|
@@ -74,7 +74,6 @@ interface FixedAmountPromotionUpdate extends ResourceUpdate {
|
|
74
74
|
}
|
75
75
|
declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion> {
|
76
76
|
static readonly TYPE: FixedAmountPromotionType;
|
77
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FixedAmountPromotion>>;
|
78
77
|
create(resource: FixedAmountPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
79
78
|
update(resource: FixedAmountPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
80
79
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class FixedAmountPromotions extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: FixedAmountPromotions.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: FixedAmountPromotions.TYPE }, params, options);
|
10
7
|
}
|
@@ -83,7 +83,6 @@ interface FixedPricePromotionUpdate extends ResourceUpdate {
|
|
83
83
|
}
|
84
84
|
declare class FixedPricePromotions extends ApiResource<FixedPricePromotion> {
|
85
85
|
static readonly TYPE: FixedPricePromotionType;
|
86
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FixedPricePromotion>>;
|
87
86
|
create(resource: FixedPricePromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
88
87
|
update(resource: FixedPricePromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
89
88
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class FixedPricePromotions extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: FixedPricePromotions.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: FixedPricePromotions.TYPE }, params, options);
|
10
7
|
}
|
@@ -81,7 +81,6 @@ interface FreeGiftPromotionUpdate extends ResourceUpdate {
|
|
81
81
|
}
|
82
82
|
declare class FreeGiftPromotions extends ApiResource<FreeGiftPromotion> {
|
83
83
|
static readonly TYPE: FreeGiftPromotionType;
|
84
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FreeGiftPromotion>>;
|
85
84
|
create(resource: FreeGiftPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
86
85
|
update(resource: FreeGiftPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
87
86
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class FreeGiftPromotions extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: FreeGiftPromotions.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: FreeGiftPromotions.TYPE }, params, options);
|
10
7
|
}
|
@@ -67,7 +67,6 @@ interface FreeShippingPromotionUpdate extends ResourceUpdate {
|
|
67
67
|
}
|
68
68
|
declare class FreeShippingPromotions extends ApiResource<FreeShippingPromotion> {
|
69
69
|
static readonly TYPE: FreeShippingPromotionType;
|
70
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FreeShippingPromotion>>;
|
71
70
|
create(resource: FreeShippingPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
72
71
|
update(resource: FreeShippingPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
73
72
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class FreeShippingPromotions extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: FreeShippingPromotions.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: FreeShippingPromotions.TYPE }, params, options);
|
10
7
|
}
|
@@ -14,7 +14,6 @@ interface Geocoder extends Resource {
|
|
14
14
|
}
|
15
15
|
declare class Geocoders extends ApiResource<Geocoder> {
|
16
16
|
static readonly TYPE: GeocoderType;
|
17
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Geocoder>>;
|
18
17
|
addresses(geocoderId: string | Geocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Address>>;
|
19
18
|
attachments(geocoderId: string | Geocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
20
19
|
isGeocoder(resource: any): resource is Geocoder;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Geocoders extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: Geocoders.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async addresses(geocoderId, params, options) {
|
9
6
|
const _geocoderId = geocoderId.id || geocoderId;
|
10
7
|
return this.resources.fetch({ type: 'addresses' }, `geocoders/${_geocoderId}/addresses`, params, options);
|
@@ -31,7 +31,6 @@ interface GiftCardRecipientUpdate extends ResourceUpdate {
|
|
31
31
|
}
|
32
32
|
declare class GiftCardRecipients extends ApiResource<GiftCardRecipient> {
|
33
33
|
static readonly TYPE: GiftCardRecipientType;
|
34
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GiftCardRecipient>>;
|
35
34
|
create(resource: GiftCardRecipientCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
36
35
|
update(resource: GiftCardRecipientUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
37
36
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class GiftCardRecipients extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: GiftCardRecipients.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: GiftCardRecipients.TYPE }, params, options);
|
10
7
|
}
|
@@ -70,7 +70,6 @@ interface GiftCardUpdate extends ResourceUpdate {
|
|
70
70
|
}
|
71
71
|
declare class GiftCards extends ApiResource<GiftCard> {
|
72
72
|
static readonly TYPE: GiftCardType;
|
73
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GiftCard>>;
|
74
73
|
create(resource: GiftCardCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
75
74
|
update(resource: GiftCardUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
76
75
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class GiftCards extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: GiftCards.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: GiftCards.TYPE }, params, options);
|
10
7
|
}
|
@@ -22,7 +22,6 @@ interface GoogleGeocoderUpdate extends ResourceUpdate {
|
|
22
22
|
}
|
23
23
|
declare class GoogleGeocoders extends ApiResource<GoogleGeocoder> {
|
24
24
|
static readonly TYPE: GoogleGeocoderType;
|
25
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GoogleGeocoder>>;
|
26
25
|
create(resource: GoogleGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
|
27
26
|
update(resource: GoogleGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
|
28
27
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class GoogleGeocoders extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: GoogleGeocoders.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: GoogleGeocoders.TYPE }, params, options);
|
10
7
|
}
|
@@ -34,7 +34,6 @@ interface ImportCreate extends ResourceCreate {
|
|
34
34
|
}
|
35
35
|
declare class Imports extends ApiResource<Import> {
|
36
36
|
static readonly TYPE: ImportType;
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Import>>;
|
38
37
|
create(resource: ImportCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Import>;
|
39
38
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
40
39
|
events(importId: string | Import, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Imports extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: Imports.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: Imports.TYPE }, params, options);
|
10
7
|
}
|
@@ -47,7 +47,6 @@ interface InStockSubscriptionUpdate extends ResourceUpdate {
|
|
47
47
|
}
|
48
48
|
declare class InStockSubscriptions extends ApiResource<InStockSubscription> {
|
49
49
|
static readonly TYPE: InStockSubscriptionType;
|
50
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InStockSubscription>>;
|
51
50
|
create(resource: InStockSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
52
51
|
update(resource: InStockSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
53
52
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class InStockSubscriptions extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: InStockSubscriptions.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: InStockSubscriptions.TYPE }, params, options);
|
10
7
|
}
|
@@ -28,7 +28,6 @@ interface InventoryModelUpdate extends ResourceUpdate {
|
|
28
28
|
}
|
29
29
|
declare class InventoryModels extends ApiResource<InventoryModel> {
|
30
30
|
static readonly TYPE: InventoryModelType;
|
31
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryModel>>;
|
32
31
|
create(resource: InventoryModelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
33
32
|
update(resource: InventoryModelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
34
33
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class InventoryModels extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: InventoryModels.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: InventoryModels.TYPE }, params, options);
|
10
7
|
}
|
@@ -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 { StockLocation, StockLocationType } from './stock_locations';
|
4
4
|
import type { InventoryModel, InventoryModelType } from './inventory_models';
|
5
5
|
type InventoryReturnLocationType = 'inventory_return_locations';
|
@@ -30,7 +30,6 @@ interface InventoryReturnLocationUpdate extends ResourceUpdate {
|
|
30
30
|
}
|
31
31
|
declare class InventoryReturnLocations extends ApiResource<InventoryReturnLocation> {
|
32
32
|
static readonly TYPE: InventoryReturnLocationType;
|
33
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
|
34
33
|
create(resource: InventoryReturnLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
35
34
|
update(resource: InventoryReturnLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
36
35
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class InventoryReturnLocations extends resource_1.ApiResource {
|
5
|
-
async list(params, options) {
|
6
|
-
return this.resources.list({ type: InventoryReturnLocations.TYPE }, params, options);
|
7
|
-
}
|
8
5
|
async create(resource, params, options) {
|
9
6
|
return this.resources.create({ ...resource, type: InventoryReturnLocations.TYPE }, params, options);
|
10
7
|
}
|