@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
@@ -36,7 +36,6 @@ interface ShippingZoneUpdate extends ResourceUpdate {
|
|
36
36
|
}
|
37
37
|
declare class ShippingZones extends ApiResource<ShippingZone> {
|
38
38
|
static readonly TYPE: ShippingZoneType;
|
39
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingZone>>;
|
40
39
|
create(resource: ShippingZoneCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingZone>;
|
41
40
|
update(resource: ShippingZoneUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingZone>;
|
42
41
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class ShippingZones extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: ShippingZones.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: ShippingZones.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 { SkuList, SkuListType } from './sku_lists';
|
4
4
|
import type { Sku, SkuType } from './skus';
|
5
5
|
type SkuListItemType = 'sku_list_items';
|
@@ -34,7 +34,6 @@ interface SkuListItemUpdate extends ResourceUpdate {
|
|
34
34
|
}
|
35
35
|
declare class SkuListItems extends ApiResource<SkuListItem> {
|
36
36
|
static readonly TYPE: SkuListItemType;
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuListItem>>;
|
38
37
|
create(resource: SkuListItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListItem>;
|
39
38
|
update(resource: SkuListItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListItem>;
|
40
39
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class SkuListItems extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: SkuListItems.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: SkuListItems.TYPE }, params, options);
|
8
5
|
}
|
@@ -55,7 +55,6 @@ interface SkuListPromotionRuleUpdate extends ResourceUpdate {
|
|
55
55
|
}
|
56
56
|
declare class SkuListPromotionRules extends ApiResource<SkuListPromotionRule> {
|
57
57
|
static readonly TYPE: SkuListPromotionRuleType;
|
58
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuListPromotionRule>>;
|
59
58
|
create(resource: SkuListPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
60
59
|
update(resource: SkuListPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
61
60
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class SkuListPromotionRules extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: SkuListPromotionRules.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: SkuListPromotionRules.TYPE }, params, options);
|
8
5
|
}
|
@@ -44,7 +44,6 @@ interface SkuListUpdate extends ResourceUpdate {
|
|
44
44
|
}
|
45
45
|
declare class SkuLists extends ApiResource<SkuList> {
|
46
46
|
static readonly TYPE: SkuListType;
|
47
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuList>>;
|
48
47
|
create(resource: SkuListCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
49
48
|
update(resource: SkuListUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
50
49
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class SkuLists extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: SkuLists.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: SkuLists.TYPE }, params, options);
|
8
5
|
}
|
@@ -43,7 +43,6 @@ interface SkuOptionUpdate extends ResourceUpdate {
|
|
43
43
|
}
|
44
44
|
declare class SkuOptions extends ApiResource<SkuOption> {
|
45
45
|
static readonly TYPE: SkuOptionType;
|
46
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuOption>>;
|
47
46
|
create(resource: SkuOptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuOption>;
|
48
47
|
update(resource: SkuOptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuOption>;
|
49
48
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class SkuOptions extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: SkuOptions.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: SkuOptions.TYPE }, params, options);
|
8
5
|
}
|
@@ -61,7 +61,6 @@ interface SkuUpdate extends ResourceUpdate {
|
|
61
61
|
}
|
62
62
|
declare class Skus extends ApiResource<Sku> {
|
63
63
|
static readonly TYPE: SkuType;
|
64
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
65
64
|
create(resource: SkuCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
66
65
|
update(resource: SkuUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
67
66
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Skus extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Skus.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: Skus.TYPE }, params, options);
|
8
5
|
}
|
@@ -35,7 +35,6 @@ interface StockItemUpdate extends ResourceUpdate {
|
|
35
35
|
}
|
36
36
|
declare class StockItems extends ApiResource<StockItem> {
|
37
37
|
static readonly TYPE: StockItemType;
|
38
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockItem>>;
|
39
38
|
create(resource: StockItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
40
39
|
update(resource: StockItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
41
40
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockItems extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: StockItems.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: StockItems.TYPE }, params, options);
|
8
5
|
}
|
@@ -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 { Shipment } from './shipments';
|
4
4
|
import type { LineItem } from './line_items';
|
5
5
|
import type { StockItem } from './stock_items';
|
@@ -18,7 +18,6 @@ interface StockLineItem extends Resource {
|
|
18
18
|
}
|
19
19
|
declare class StockLineItems extends ApiResource<StockLineItem> {
|
20
20
|
static readonly TYPE: StockLineItemType;
|
21
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
|
22
21
|
shipment(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
|
23
22
|
line_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
24
23
|
stock_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockLineItems extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: StockLineItems.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async shipment(stockLineItemId, params, options) {
|
7
4
|
const _stockLineItemId = stockLineItemId.id || stockLineItemId;
|
8
5
|
return this.resources.fetch({ type: 'shipments' }, `stock_line_items/${_stockLineItemId}/shipment`, params, options);
|
@@ -40,7 +40,6 @@ interface StockLocationUpdate extends ResourceUpdate {
|
|
40
40
|
}
|
41
41
|
declare class StockLocations extends ApiResource<StockLocation> {
|
42
42
|
static readonly TYPE: StockLocationType;
|
43
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLocation>>;
|
44
43
|
create(resource: StockLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
45
44
|
update(resource: StockLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
46
45
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockLocations extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: StockLocations.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: StockLocations.TYPE }, params, options);
|
8
5
|
}
|
@@ -57,7 +57,6 @@ interface StockTransferUpdate extends ResourceUpdate {
|
|
57
57
|
}
|
58
58
|
declare class StockTransfers extends ApiResource<StockTransfer> {
|
59
59
|
static readonly TYPE: StockTransferType;
|
60
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
|
61
60
|
create(resource: StockTransferCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
62
61
|
update(resource: StockTransferUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
63
62
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockTransfers extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: StockTransfers.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: StockTransfers.TYPE }, params, options);
|
8
5
|
}
|
@@ -28,7 +28,6 @@ interface StripeGatewayUpdate extends ResourceUpdate {
|
|
28
28
|
}
|
29
29
|
declare class StripeGateways extends ApiResource<StripeGateway> {
|
30
30
|
static readonly TYPE: StripeGatewayType;
|
31
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StripeGateway>>;
|
32
31
|
create(resource: StripeGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripeGateway>;
|
33
32
|
update(resource: StripeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripeGateway>;
|
34
33
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StripeGateways extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: StripeGateways.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: StripeGateways.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 StripePaymentType = 'stripe_payments';
|
@@ -34,7 +34,6 @@ interface StripePaymentUpdate extends ResourceUpdate {
|
|
34
34
|
}
|
35
35
|
declare class StripePayments extends ApiResource<StripePayment> {
|
36
36
|
static readonly TYPE: StripePaymentType;
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StripePayment>>;
|
38
37
|
create(resource: StripePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripePayment>;
|
39
38
|
update(resource: StripePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripePayment>;
|
40
39
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StripePayments extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: StripePayments.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: StripePayments.TYPE }, params, options);
|
8
5
|
}
|
@@ -14,7 +14,6 @@ interface TaxCalculator extends Resource {
|
|
14
14
|
}
|
15
15
|
declare class TaxCalculators extends ApiResource<TaxCalculator> {
|
16
16
|
static readonly TYPE: TaxCalculatorType;
|
17
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCalculator>>;
|
18
17
|
markets(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
|
19
18
|
attachments(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
20
19
|
isTaxCalculator(resource: any): resource is TaxCalculator;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class TaxCalculators extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: TaxCalculators.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async markets(taxCalculatorId, params, options) {
|
7
4
|
const _taxCalculatorId = taxCalculatorId.id || taxCalculatorId;
|
8
5
|
return this.resources.fetch({ type: 'markets' }, `tax_calculators/${_taxCalculatorId}/markets`, params, options);
|
@@ -46,7 +46,6 @@ interface TaxCategoryUpdate extends ResourceUpdate {
|
|
46
46
|
}
|
47
47
|
declare class TaxCategories extends ApiResource<TaxCategory> {
|
48
48
|
static readonly TYPE: TaxCategoryType;
|
49
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
|
50
49
|
create(resource: TaxCategoryCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCategory>;
|
51
50
|
update(resource: TaxCategoryUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCategory>;
|
52
51
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class TaxCategories extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: TaxCategories.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: TaxCategories.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 { ManualTaxCalculator, ManualTaxCalculatorType } from './manual_tax_calculators';
|
4
4
|
type TaxRuleType = 'tax_rules';
|
5
5
|
type TaxRuleRel = ResourceRel & {
|
@@ -57,7 +57,6 @@ interface TaxRuleUpdate extends ResourceUpdate {
|
|
57
57
|
}
|
58
58
|
declare class TaxRules extends ApiResource<TaxRule> {
|
59
59
|
static readonly TYPE: TaxRuleType;
|
60
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxRule>>;
|
61
60
|
create(resource: TaxRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxRule>;
|
62
61
|
update(resource: TaxRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxRule>;
|
63
62
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class TaxRules extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: TaxRules.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: TaxRules.TYPE }, params, options);
|
8
5
|
}
|
@@ -29,7 +29,6 @@ interface TaxjarAccountUpdate extends ResourceUpdate {
|
|
29
29
|
}
|
30
30
|
declare class TaxjarAccounts extends ApiResource<TaxjarAccount> {
|
31
31
|
static readonly TYPE: TaxjarAccountType;
|
32
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxjarAccount>>;
|
33
32
|
create(resource: TaxjarAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxjarAccount>;
|
34
33
|
update(resource: TaxjarAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxjarAccount>;
|
35
34
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class TaxjarAccounts extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: TaxjarAccounts.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: TaxjarAccounts.TYPE }, params, options);
|
8
5
|
}
|
@@ -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 { Order } from './orders';
|
4
4
|
type TransactionType = 'transactions';
|
5
5
|
type TransactionRel = ResourceRel & {
|
@@ -22,7 +22,6 @@ interface Transaction extends Resource {
|
|
22
22
|
}
|
23
23
|
declare class Transactions extends ApiResource<Transaction> {
|
24
24
|
static readonly TYPE: TransactionType;
|
25
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Transaction>>;
|
26
25
|
order(transactionId: string | Transaction, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
27
26
|
isTransaction(resource: any): resource is Transaction;
|
28
27
|
relationship(id: string | ResourceId | null): TransactionRel;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Transactions extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Transactions.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async order(transactionId, params, options) {
|
7
4
|
const _transactionId = transactionId.id || transactionId;
|
8
5
|
return this.resources.fetch({ type: 'orders' }, `transactions/${_transactionId}/order`, params, options);
|
@@ -26,7 +26,6 @@ interface Void extends Resource {
|
|
26
26
|
}
|
27
27
|
declare class Voids extends ApiResource<Void> {
|
28
28
|
static readonly TYPE: VoidType;
|
29
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Void>>;
|
30
29
|
order(voidId: string | Void, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
31
30
|
reference_authorization(voidId: string | Void, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
32
31
|
events(voidId: string | Void, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Voids extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Voids.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async order(voidId, params, options) {
|
7
4
|
const _voidId = voidId.id || voidId;
|
8
5
|
return this.resources.fetch({ type: 'orders' }, `voids/${_voidId}/order`, params, options);
|
@@ -31,7 +31,6 @@ interface WebhookUpdate extends ResourceUpdate {
|
|
31
31
|
}
|
32
32
|
declare class Webhooks extends ApiResource<Webhook> {
|
33
33
|
static readonly TYPE: WebhookType;
|
34
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Webhook>>;
|
35
34
|
create(resource: WebhookCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
36
35
|
update(resource: WebhookUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
37
36
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Webhooks extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: Webhooks.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: Webhooks.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
|
type WireTransferType = 'wire_transfers';
|
5
5
|
type WireTransferRel = ResourceRel & {
|
@@ -21,7 +21,6 @@ interface WireTransferUpdate extends ResourceUpdate {
|
|
21
21
|
}
|
22
22
|
declare class WireTransfers extends ApiResource<WireTransfer> {
|
23
23
|
static readonly TYPE: WireTransferType;
|
24
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<WireTransfer>>;
|
25
24
|
create(resource: WireTransferCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<WireTransfer>;
|
26
25
|
update(resource: WireTransferUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<WireTransfer>;
|
27
26
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class WireTransfers extends ApiResource {
|
3
|
-
async list(params, options) {
|
4
|
-
return this.resources.list({ type: WireTransfers.TYPE }, params, options);
|
5
|
-
}
|
6
3
|
async create(resource, params, options) {
|
7
4
|
return this.resources.create({ ...resource, type: WireTransfers.TYPE }, params, options);
|
8
5
|
}
|