@commercelayer/sdk 5.12.5 → 5.13.0
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 +11 -2
- package/lib/cjs/api.js +4 -1
- package/lib/cjs/commercelayer.d.ts +4 -3
- package/lib/cjs/commercelayer.js +6 -1
- package/lib/cjs/config.js +3 -1
- package/lib/cjs/model.d.ts +1 -0
- package/lib/cjs/resource.d.ts +1 -1
- package/lib/cjs/resource.js +6 -0
- package/lib/cjs/resources/addresses.d.ts +3 -0
- package/lib/cjs/resources/addresses.js +4 -0
- package/lib/cjs/resources/adjustments.d.ts +5 -2
- package/lib/cjs/resources/adjustments.js +4 -0
- package/lib/cjs/resources/adyen_gateways.d.ts +3 -0
- package/lib/cjs/resources/adyen_gateways.js +4 -0
- package/lib/cjs/resources/adyen_payments.d.ts +5 -2
- package/lib/cjs/resources/adyen_payments.js +4 -0
- package/lib/cjs/resources/authorizations.d.ts +3 -0
- package/lib/cjs/resources/authorizations.js +4 -0
- package/lib/cjs/resources/avalara_accounts.d.ts +3 -0
- package/lib/cjs/resources/avalara_accounts.js +4 -0
- package/lib/cjs/resources/axerve_gateways.d.ts +4 -0
- package/lib/cjs/resources/axerve_gateways.js +4 -0
- package/lib/cjs/resources/axerve_payments.d.ts +5 -2
- package/lib/cjs/resources/axerve_payments.js +4 -0
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +3 -0
- package/lib/cjs/resources/billing_info_validation_rules.js +4 -0
- package/lib/cjs/resources/braintree_gateways.d.ts +3 -0
- package/lib/cjs/resources/braintree_gateways.js +4 -0
- package/lib/cjs/resources/braintree_payments.d.ts +5 -2
- package/lib/cjs/resources/braintree_payments.js +4 -0
- package/lib/cjs/resources/bundles.d.ts +3 -0
- package/lib/cjs/resources/bundles.js +4 -0
- package/lib/cjs/resources/captures.d.ts +3 -0
- package/lib/cjs/resources/captures.js +4 -0
- package/lib/cjs/resources/carrier_accounts.d.ts +3 -0
- package/lib/cjs/resources/carrier_accounts.js +4 -0
- package/lib/cjs/resources/checkout_com_gateways.d.ts +3 -0
- package/lib/cjs/resources/checkout_com_gateways.js +4 -0
- package/lib/cjs/resources/checkout_com_payments.d.ts +5 -2
- package/lib/cjs/resources/checkout_com_payments.js +4 -0
- package/lib/cjs/resources/cleanups.d.ts +3 -0
- package/lib/cjs/resources/cleanups.js +4 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +3 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +4 -0
- package/lib/cjs/resources/coupon_recipients.d.ts +3 -0
- package/lib/cjs/resources/coupon_recipients.js +4 -0
- package/lib/cjs/resources/coupons.d.ts +3 -0
- package/lib/cjs/resources/coupons.js +4 -0
- package/lib/cjs/resources/customer_addresses.d.ts +3 -0
- package/lib/cjs/resources/customer_addresses.js +4 -0
- package/lib/cjs/resources/customer_groups.d.ts +3 -0
- package/lib/cjs/resources/customer_groups.js +4 -0
- package/lib/cjs/resources/customer_payment_sources.d.ts +8 -13
- package/lib/cjs/resources/customer_payment_sources.js +4 -0
- package/lib/cjs/resources/customer_subscriptions.d.ts +3 -0
- package/lib/cjs/resources/customer_subscriptions.js +4 -0
- package/lib/cjs/resources/delivery_lead_times.d.ts +3 -0
- package/lib/cjs/resources/delivery_lead_times.js +4 -0
- package/lib/cjs/resources/external_gateways.d.ts +3 -0
- package/lib/cjs/resources/external_gateways.js +4 -0
- package/lib/cjs/resources/external_payments.d.ts +5 -2
- package/lib/cjs/resources/external_payments.js +4 -0
- package/lib/cjs/resources/external_promotions.d.ts +3 -0
- package/lib/cjs/resources/external_promotions.js +4 -0
- package/lib/cjs/resources/external_tax_calculators.d.ts +3 -0
- package/lib/cjs/resources/external_tax_calculators.js +4 -0
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +3 -0
- package/lib/cjs/resources/fixed_amount_promotions.js +4 -0
- package/lib/cjs/resources/fixed_price_promotions.d.ts +3 -0
- package/lib/cjs/resources/fixed_price_promotions.js +4 -0
- package/lib/cjs/resources/free_gift_promotions.d.ts +3 -0
- package/lib/cjs/resources/free_gift_promotions.js +4 -0
- package/lib/cjs/resources/free_shipping_promotions.d.ts +3 -0
- package/lib/cjs/resources/free_shipping_promotions.js +4 -0
- package/lib/cjs/resources/gift_card_recipients.d.ts +3 -0
- package/lib/cjs/resources/gift_card_recipients.js +4 -0
- package/lib/cjs/resources/gift_cards.d.ts +3 -0
- package/lib/cjs/resources/gift_cards.js +4 -0
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +3 -0
- package/lib/cjs/resources/in_stock_subscriptions.js +4 -0
- package/lib/cjs/resources/inventory_models.d.ts +3 -0
- package/lib/cjs/resources/inventory_models.js +4 -0
- package/lib/cjs/resources/inventory_return_locations.d.ts +5 -2
- package/lib/cjs/resources/inventory_return_locations.js +4 -0
- package/lib/cjs/resources/inventory_stock_locations.d.ts +5 -2
- package/lib/cjs/resources/inventory_stock_locations.js +4 -0
- package/lib/cjs/resources/klarna_gateways.d.ts +3 -0
- package/lib/cjs/resources/klarna_gateways.js +4 -0
- package/lib/cjs/resources/klarna_payments.d.ts +5 -2
- package/lib/cjs/resources/klarna_payments.js +4 -0
- package/lib/cjs/resources/manual_gateways.d.ts +3 -0
- package/lib/cjs/resources/manual_gateways.js +4 -0
- package/lib/cjs/resources/manual_tax_calculators.d.ts +3 -0
- package/lib/cjs/resources/manual_tax_calculators.js +4 -0
- package/lib/cjs/resources/markets.d.ts +3 -0
- package/lib/cjs/resources/markets.js +4 -0
- package/lib/cjs/resources/merchants.d.ts +3 -0
- package/lib/cjs/resources/merchants.js +4 -0
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +5 -2
- package/lib/cjs/resources/order_amount_promotion_rules.js +4 -0
- package/lib/cjs/resources/order_subscription_items.d.ts +3 -0
- package/lib/cjs/resources/order_subscription_items.js +4 -0
- package/lib/cjs/resources/order_subscriptions.d.ts +3 -0
- package/lib/cjs/resources/order_subscriptions.js +4 -0
- package/lib/cjs/resources/order_validation_rules.d.ts +3 -0
- package/lib/cjs/resources/order_validation_rules.js +4 -0
- package/lib/cjs/resources/orders.d.ts +8 -2
- package/lib/cjs/resources/orders.js +4 -0
- package/lib/cjs/resources/packages.d.ts +3 -0
- package/lib/cjs/resources/packages.js +4 -0
- package/lib/cjs/resources/parcel_line_items.d.ts +5 -2
- package/lib/cjs/resources/parcel_line_items.js +4 -0
- package/lib/cjs/resources/parcels.d.ts +3 -0
- package/lib/cjs/resources/parcels.js +4 -0
- package/lib/cjs/resources/payment_gateways.d.ts +3 -0
- package/lib/cjs/resources/payment_gateways.js +4 -0
- package/lib/cjs/resources/payment_methods.d.ts +3 -0
- package/lib/cjs/resources/payment_methods.js +4 -0
- package/lib/cjs/resources/paypal_gateways.d.ts +3 -0
- package/lib/cjs/resources/paypal_gateways.js +4 -0
- package/lib/cjs/resources/paypal_payments.d.ts +5 -2
- package/lib/cjs/resources/paypal_payments.js +4 -0
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +3 -0
- package/lib/cjs/resources/percentage_discount_promotions.js +4 -0
- package/lib/cjs/resources/price_frequency_tiers.d.ts +3 -0
- package/lib/cjs/resources/price_frequency_tiers.js +4 -0
- package/lib/cjs/resources/price_lists.d.ts +3 -0
- package/lib/cjs/resources/price_lists.js +4 -0
- package/lib/cjs/resources/price_tiers.d.ts +3 -0
- package/lib/cjs/resources/price_tiers.js +4 -0
- package/lib/cjs/resources/price_volume_tiers.d.ts +3 -0
- package/lib/cjs/resources/price_volume_tiers.js +4 -0
- package/lib/cjs/resources/prices.d.ts +3 -0
- package/lib/cjs/resources/prices.js +4 -0
- package/lib/cjs/resources/promotion_rules.d.ts +5 -1
- package/lib/cjs/resources/promotion_rules.js +4 -0
- package/lib/cjs/resources/promotions.d.ts +3 -0
- package/lib/cjs/resources/promotions.js +4 -0
- package/lib/cjs/resources/refunds.d.ts +3 -0
- package/lib/cjs/resources/refunds.js +4 -0
- package/lib/cjs/resources/returns.d.ts +3 -0
- package/lib/cjs/resources/returns.js +4 -0
- package/lib/cjs/resources/satispay_gateways.d.ts +3 -0
- package/lib/cjs/resources/satispay_gateways.js +4 -0
- package/lib/cjs/resources/satispay_payments.d.ts +6 -2
- package/lib/cjs/resources/satispay_payments.js +4 -0
- package/lib/cjs/resources/shipments.d.ts +3 -0
- package/lib/cjs/resources/shipments.js +4 -0
- package/lib/cjs/resources/shipping_categories.d.ts +3 -0
- package/lib/cjs/resources/shipping_categories.js +4 -0
- package/lib/cjs/resources/shipping_method_tiers.d.ts +3 -0
- package/lib/cjs/resources/shipping_method_tiers.js +4 -0
- package/lib/cjs/resources/shipping_methods.d.ts +3 -0
- package/lib/cjs/resources/shipping_methods.js +4 -0
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +3 -0
- package/lib/cjs/resources/shipping_weight_tiers.js +4 -0
- package/lib/cjs/resources/shipping_zones.d.ts +3 -0
- package/lib/cjs/resources/shipping_zones.js +4 -0
- package/lib/cjs/resources/sku_list_items.d.ts +5 -2
- package/lib/cjs/resources/sku_list_items.js +4 -0
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +3 -0
- package/lib/cjs/resources/sku_list_promotion_rules.js +4 -0
- package/lib/cjs/resources/sku_lists.d.ts +3 -0
- package/lib/cjs/resources/sku_lists.js +4 -0
- package/lib/cjs/resources/sku_options.d.ts +3 -0
- package/lib/cjs/resources/sku_options.js +4 -0
- package/lib/cjs/resources/skus.d.ts +3 -0
- package/lib/cjs/resources/skus.js +4 -0
- package/lib/cjs/resources/stock_items.d.ts +3 -0
- package/lib/cjs/resources/stock_items.js +4 -0
- package/lib/cjs/resources/stock_line_items.d.ts +5 -2
- package/lib/cjs/resources/stock_line_items.js +4 -0
- package/lib/cjs/resources/stock_locations.d.ts +3 -0
- package/lib/cjs/resources/stock_locations.js +4 -0
- package/lib/cjs/resources/stock_transfers.d.ts +3 -0
- package/lib/cjs/resources/stock_transfers.js +4 -0
- package/lib/cjs/resources/stripe_gateways.d.ts +3 -0
- package/lib/cjs/resources/stripe_gateways.js +4 -0
- package/lib/cjs/resources/stripe_payments.d.ts +8 -2
- package/lib/cjs/resources/stripe_payments.js +4 -0
- package/lib/cjs/resources/tax_calculators.d.ts +3 -0
- package/lib/cjs/resources/tax_calculators.js +4 -0
- package/lib/cjs/resources/tax_categories.d.ts +3 -0
- package/lib/cjs/resources/tax_categories.js +4 -0
- package/lib/cjs/resources/tax_rules.d.ts +5 -2
- package/lib/cjs/resources/tax_rules.js +4 -0
- package/lib/cjs/resources/taxjar_accounts.d.ts +3 -0
- package/lib/cjs/resources/taxjar_accounts.js +4 -0
- package/lib/cjs/resources/transactions.d.ts +3 -0
- package/lib/cjs/resources/transactions.js +4 -0
- package/lib/cjs/resources/versions.d.ts +22 -0
- package/lib/cjs/resources/versions.js +16 -0
- package/lib/cjs/resources/voids.d.ts +3 -0
- package/lib/cjs/resources/voids.js +4 -0
- package/lib/cjs/resources/webhooks.d.ts +3 -0
- package/lib/cjs/resources/webhooks.js +4 -0
- package/lib/cjs/resources/wire_transfers.d.ts +5 -2
- package/lib/cjs/resources/wire_transfers.js +4 -0
- package/lib/cjs/util.d.ts +1 -1
- package/lib/esm/api.d.ts +11 -2
- package/lib/esm/api.js +2 -0
- package/lib/esm/commercelayer.d.ts +4 -3
- package/lib/esm/commercelayer.js +6 -1
- package/lib/esm/config.js +3 -1
- package/lib/esm/model.d.ts +1 -0
- package/lib/esm/resource.d.ts +1 -1
- package/lib/esm/resource.js +6 -0
- package/lib/esm/resources/addresses.d.ts +3 -0
- package/lib/esm/resources/addresses.js +4 -0
- package/lib/esm/resources/adjustments.d.ts +5 -2
- package/lib/esm/resources/adjustments.js +4 -0
- package/lib/esm/resources/adyen_gateways.d.ts +3 -0
- package/lib/esm/resources/adyen_gateways.js +4 -0
- package/lib/esm/resources/adyen_payments.d.ts +5 -2
- package/lib/esm/resources/adyen_payments.js +4 -0
- package/lib/esm/resources/authorizations.d.ts +3 -0
- package/lib/esm/resources/authorizations.js +4 -0
- package/lib/esm/resources/avalara_accounts.d.ts +3 -0
- package/lib/esm/resources/avalara_accounts.js +4 -0
- package/lib/esm/resources/axerve_gateways.d.ts +4 -0
- package/lib/esm/resources/axerve_gateways.js +4 -0
- package/lib/esm/resources/axerve_payments.d.ts +5 -2
- package/lib/esm/resources/axerve_payments.js +4 -0
- package/lib/esm/resources/billing_info_validation_rules.d.ts +3 -0
- package/lib/esm/resources/billing_info_validation_rules.js +4 -0
- package/lib/esm/resources/braintree_gateways.d.ts +3 -0
- package/lib/esm/resources/braintree_gateways.js +4 -0
- package/lib/esm/resources/braintree_payments.d.ts +5 -2
- package/lib/esm/resources/braintree_payments.js +4 -0
- package/lib/esm/resources/bundles.d.ts +3 -0
- package/lib/esm/resources/bundles.js +4 -0
- package/lib/esm/resources/captures.d.ts +3 -0
- package/lib/esm/resources/captures.js +4 -0
- package/lib/esm/resources/carrier_accounts.d.ts +3 -0
- package/lib/esm/resources/carrier_accounts.js +4 -0
- package/lib/esm/resources/checkout_com_gateways.d.ts +3 -0
- package/lib/esm/resources/checkout_com_gateways.js +4 -0
- package/lib/esm/resources/checkout_com_payments.d.ts +5 -2
- package/lib/esm/resources/checkout_com_payments.js +4 -0
- package/lib/esm/resources/cleanups.d.ts +3 -0
- package/lib/esm/resources/cleanups.js +4 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +3 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +4 -0
- package/lib/esm/resources/coupon_recipients.d.ts +3 -0
- package/lib/esm/resources/coupon_recipients.js +4 -0
- package/lib/esm/resources/coupons.d.ts +3 -0
- package/lib/esm/resources/coupons.js +4 -0
- package/lib/esm/resources/customer_addresses.d.ts +3 -0
- package/lib/esm/resources/customer_addresses.js +4 -0
- package/lib/esm/resources/customer_groups.d.ts +3 -0
- package/lib/esm/resources/customer_groups.js +4 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +8 -13
- package/lib/esm/resources/customer_payment_sources.js +4 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +3 -0
- package/lib/esm/resources/customer_subscriptions.js +4 -0
- package/lib/esm/resources/delivery_lead_times.d.ts +3 -0
- package/lib/esm/resources/delivery_lead_times.js +4 -0
- package/lib/esm/resources/external_gateways.d.ts +3 -0
- package/lib/esm/resources/external_gateways.js +4 -0
- package/lib/esm/resources/external_payments.d.ts +5 -2
- package/lib/esm/resources/external_payments.js +4 -0
- package/lib/esm/resources/external_promotions.d.ts +3 -0
- package/lib/esm/resources/external_promotions.js +4 -0
- package/lib/esm/resources/external_tax_calculators.d.ts +3 -0
- package/lib/esm/resources/external_tax_calculators.js +4 -0
- package/lib/esm/resources/fixed_amount_promotions.d.ts +3 -0
- package/lib/esm/resources/fixed_amount_promotions.js +4 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +3 -0
- package/lib/esm/resources/fixed_price_promotions.js +4 -0
- package/lib/esm/resources/free_gift_promotions.d.ts +3 -0
- package/lib/esm/resources/free_gift_promotions.js +4 -0
- package/lib/esm/resources/free_shipping_promotions.d.ts +3 -0
- package/lib/esm/resources/free_shipping_promotions.js +4 -0
- package/lib/esm/resources/gift_card_recipients.d.ts +3 -0
- package/lib/esm/resources/gift_card_recipients.js +4 -0
- package/lib/esm/resources/gift_cards.d.ts +3 -0
- package/lib/esm/resources/gift_cards.js +4 -0
- package/lib/esm/resources/in_stock_subscriptions.d.ts +3 -0
- package/lib/esm/resources/in_stock_subscriptions.js +4 -0
- package/lib/esm/resources/inventory_models.d.ts +3 -0
- package/lib/esm/resources/inventory_models.js +4 -0
- package/lib/esm/resources/inventory_return_locations.d.ts +5 -2
- package/lib/esm/resources/inventory_return_locations.js +4 -0
- package/lib/esm/resources/inventory_stock_locations.d.ts +5 -2
- package/lib/esm/resources/inventory_stock_locations.js +4 -0
- package/lib/esm/resources/klarna_gateways.d.ts +3 -0
- package/lib/esm/resources/klarna_gateways.js +4 -0
- package/lib/esm/resources/klarna_payments.d.ts +5 -2
- package/lib/esm/resources/klarna_payments.js +4 -0
- package/lib/esm/resources/manual_gateways.d.ts +3 -0
- package/lib/esm/resources/manual_gateways.js +4 -0
- package/lib/esm/resources/manual_tax_calculators.d.ts +3 -0
- package/lib/esm/resources/manual_tax_calculators.js +4 -0
- package/lib/esm/resources/markets.d.ts +3 -0
- package/lib/esm/resources/markets.js +4 -0
- package/lib/esm/resources/merchants.d.ts +3 -0
- package/lib/esm/resources/merchants.js +4 -0
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +5 -2
- package/lib/esm/resources/order_amount_promotion_rules.js +4 -0
- package/lib/esm/resources/order_subscription_items.d.ts +3 -0
- package/lib/esm/resources/order_subscription_items.js +4 -0
- package/lib/esm/resources/order_subscriptions.d.ts +3 -0
- package/lib/esm/resources/order_subscriptions.js +4 -0
- package/lib/esm/resources/order_validation_rules.d.ts +3 -0
- package/lib/esm/resources/order_validation_rules.js +4 -0
- package/lib/esm/resources/orders.d.ts +8 -2
- package/lib/esm/resources/orders.js +4 -0
- package/lib/esm/resources/packages.d.ts +3 -0
- package/lib/esm/resources/packages.js +4 -0
- package/lib/esm/resources/parcel_line_items.d.ts +5 -2
- package/lib/esm/resources/parcel_line_items.js +4 -0
- package/lib/esm/resources/parcels.d.ts +3 -0
- package/lib/esm/resources/parcels.js +4 -0
- package/lib/esm/resources/payment_gateways.d.ts +3 -0
- package/lib/esm/resources/payment_gateways.js +4 -0
- package/lib/esm/resources/payment_methods.d.ts +3 -0
- package/lib/esm/resources/payment_methods.js +4 -0
- package/lib/esm/resources/paypal_gateways.d.ts +3 -0
- package/lib/esm/resources/paypal_gateways.js +4 -0
- package/lib/esm/resources/paypal_payments.d.ts +5 -2
- package/lib/esm/resources/paypal_payments.js +4 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +3 -0
- package/lib/esm/resources/percentage_discount_promotions.js +4 -0
- package/lib/esm/resources/price_frequency_tiers.d.ts +3 -0
- package/lib/esm/resources/price_frequency_tiers.js +4 -0
- package/lib/esm/resources/price_lists.d.ts +3 -0
- package/lib/esm/resources/price_lists.js +4 -0
- package/lib/esm/resources/price_tiers.d.ts +3 -0
- package/lib/esm/resources/price_tiers.js +4 -0
- package/lib/esm/resources/price_volume_tiers.d.ts +3 -0
- package/lib/esm/resources/price_volume_tiers.js +4 -0
- package/lib/esm/resources/prices.d.ts +3 -0
- package/lib/esm/resources/prices.js +4 -0
- package/lib/esm/resources/promotion_rules.d.ts +5 -1
- package/lib/esm/resources/promotion_rules.js +4 -0
- package/lib/esm/resources/promotions.d.ts +3 -0
- package/lib/esm/resources/promotions.js +4 -0
- package/lib/esm/resources/refunds.d.ts +3 -0
- package/lib/esm/resources/refunds.js +4 -0
- package/lib/esm/resources/returns.d.ts +3 -0
- package/lib/esm/resources/returns.js +4 -0
- package/lib/esm/resources/satispay_gateways.d.ts +3 -0
- package/lib/esm/resources/satispay_gateways.js +4 -0
- package/lib/esm/resources/satispay_payments.d.ts +6 -2
- package/lib/esm/resources/satispay_payments.js +4 -0
- package/lib/esm/resources/shipments.d.ts +3 -0
- package/lib/esm/resources/shipments.js +4 -0
- package/lib/esm/resources/shipping_categories.d.ts +3 -0
- package/lib/esm/resources/shipping_categories.js +4 -0
- package/lib/esm/resources/shipping_method_tiers.d.ts +3 -0
- package/lib/esm/resources/shipping_method_tiers.js +4 -0
- package/lib/esm/resources/shipping_methods.d.ts +3 -0
- package/lib/esm/resources/shipping_methods.js +4 -0
- package/lib/esm/resources/shipping_weight_tiers.d.ts +3 -0
- package/lib/esm/resources/shipping_weight_tiers.js +4 -0
- package/lib/esm/resources/shipping_zones.d.ts +3 -0
- package/lib/esm/resources/shipping_zones.js +4 -0
- package/lib/esm/resources/sku_list_items.d.ts +5 -2
- package/lib/esm/resources/sku_list_items.js +4 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +3 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +4 -0
- package/lib/esm/resources/sku_lists.d.ts +3 -0
- package/lib/esm/resources/sku_lists.js +4 -0
- package/lib/esm/resources/sku_options.d.ts +3 -0
- package/lib/esm/resources/sku_options.js +4 -0
- package/lib/esm/resources/skus.d.ts +3 -0
- package/lib/esm/resources/skus.js +4 -0
- package/lib/esm/resources/stock_items.d.ts +3 -0
- package/lib/esm/resources/stock_items.js +4 -0
- package/lib/esm/resources/stock_line_items.d.ts +5 -2
- package/lib/esm/resources/stock_line_items.js +4 -0
- package/lib/esm/resources/stock_locations.d.ts +3 -0
- package/lib/esm/resources/stock_locations.js +4 -0
- package/lib/esm/resources/stock_transfers.d.ts +3 -0
- package/lib/esm/resources/stock_transfers.js +4 -0
- package/lib/esm/resources/stripe_gateways.d.ts +3 -0
- package/lib/esm/resources/stripe_gateways.js +4 -0
- package/lib/esm/resources/stripe_payments.d.ts +8 -2
- package/lib/esm/resources/stripe_payments.js +4 -0
- package/lib/esm/resources/tax_calculators.d.ts +3 -0
- package/lib/esm/resources/tax_calculators.js +4 -0
- package/lib/esm/resources/tax_categories.d.ts +3 -0
- package/lib/esm/resources/tax_categories.js +4 -0
- package/lib/esm/resources/tax_rules.d.ts +5 -2
- package/lib/esm/resources/tax_rules.js +4 -0
- package/lib/esm/resources/taxjar_accounts.d.ts +3 -0
- package/lib/esm/resources/taxjar_accounts.js +4 -0
- package/lib/esm/resources/transactions.d.ts +3 -0
- package/lib/esm/resources/transactions.js +4 -0
- package/lib/esm/resources/versions.d.ts +22 -0
- package/lib/esm/resources/versions.js +14 -0
- package/lib/esm/resources/voids.d.ts +3 -0
- package/lib/esm/resources/voids.js +4 -0
- package/lib/esm/resources/webhooks.d.ts +3 -0
- package/lib/esm/resources/webhooks.js +4 -0
- package/lib/esm/resources/wire_transfers.d.ts +5 -2
- package/lib/esm/resources/wire_transfers.js +4 -0
- package/lib/esm/util.d.ts +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
@@ -2,6 +2,7 @@ import { ApiResource } from '../resource';
|
|
2
2
|
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Attachment } from './attachments';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
type ShippingZoneType = 'shipping_zones';
|
6
7
|
type ShippingZoneRel = ResourceRel & {
|
7
8
|
type: ShippingZoneType;
|
@@ -16,6 +17,7 @@ interface ShippingZone extends Resource {
|
|
16
17
|
zip_code_regex?: string | null;
|
17
18
|
not_zip_code_regex?: string | null;
|
18
19
|
attachments?: Attachment[] | null;
|
20
|
+
versions?: Version[] | null;
|
19
21
|
}
|
20
22
|
interface ShippingZoneCreate extends ResourceCreate {
|
21
23
|
name: string;
|
@@ -41,6 +43,7 @@ declare class ShippingZones extends ApiResource<ShippingZone> {
|
|
41
43
|
update(resource: ShippingZoneUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingZone>;
|
42
44
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
43
45
|
attachments(shippingZoneId: string | ShippingZone, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
46
|
+
versions(shippingZoneId: string | ShippingZone, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
44
47
|
isShippingZone(resource: any): resource is ShippingZone;
|
45
48
|
relationship(id: string | ResourceId | null): ShippingZoneRel;
|
46
49
|
type(): ShippingZoneType;
|
@@ -15,6 +15,10 @@ class ShippingZones extends resource_1.ApiResource {
|
|
15
15
|
const _shippingZoneId = shippingZoneId.id || shippingZoneId;
|
16
16
|
return this.resources.fetch({ type: 'attachments' }, `shipping_zones/${_shippingZoneId}/attachments`, params, options);
|
17
17
|
}
|
18
|
+
async versions(shippingZoneId, params, options) {
|
19
|
+
const _shippingZoneId = shippingZoneId.id || shippingZoneId;
|
20
|
+
return this.resources.fetch({ type: 'versions' }, `shipping_zones/${_shippingZoneId}/versions`, params, options);
|
21
|
+
}
|
18
22
|
isShippingZone(resource) {
|
19
23
|
return resource.type && (resource.type === ShippingZones.TYPE);
|
20
24
|
}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
3
|
-
import type { QueryParamsRetrieve } from '../query';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
+
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { SkuList, SkuListType } from './sku_lists';
|
5
5
|
import type { Sku, SkuType } from './skus';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type SkuListItemType = 'sku_list_items';
|
7
8
|
type SkuListItemRel = ResourceRel & {
|
8
9
|
type: SkuListItemType;
|
@@ -20,6 +21,7 @@ interface SkuListItem extends Resource {
|
|
20
21
|
quantity?: number | null;
|
21
22
|
sku_list?: SkuList | null;
|
22
23
|
sku?: Sku | null;
|
24
|
+
versions?: Version[] | null;
|
23
25
|
}
|
24
26
|
interface SkuListItemCreate extends ResourceCreate {
|
25
27
|
position?: number | null;
|
@@ -40,6 +42,7 @@ declare class SkuListItems extends ApiResource<SkuListItem> {
|
|
40
42
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
41
43
|
sku_list(skuListItemId: string | SkuListItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
42
44
|
sku(skuListItemId: string | SkuListItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
45
|
+
versions(skuListItemId: string | SkuListItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
43
46
|
isSkuListItem(resource: any): resource is SkuListItem;
|
44
47
|
relationship(id: string | ResourceId | null): SkuListItemRel;
|
45
48
|
type(): SkuListItemType;
|
@@ -19,6 +19,10 @@ class SkuListItems extends resource_1.ApiResource {
|
|
19
19
|
const _skuListItemId = skuListItemId.id || skuListItemId;
|
20
20
|
return this.resources.fetch({ type: 'skus' }, `sku_list_items/${_skuListItemId}/sku`, params, options);
|
21
21
|
}
|
22
|
+
async versions(skuListItemId, params, options) {
|
23
|
+
const _skuListItemId = skuListItemId.id || skuListItemId;
|
24
|
+
return this.resources.fetch({ type: 'versions' }, `sku_list_items/${_skuListItemId}/versions`, params, options);
|
25
|
+
}
|
22
26
|
isSkuListItem(resource) {
|
23
27
|
return resource.type && (resource.type === SkuListItems.TYPE);
|
24
28
|
}
|
@@ -7,6 +7,7 @@ import type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promo
|
|
7
7
|
import type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions';
|
8
8
|
import type { ExternalPromotion, ExternalPromotionType } from './external_promotions';
|
9
9
|
import type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions';
|
10
|
+
import type { Version } from './versions';
|
10
11
|
import type { SkuList, SkuListType } from './sku_lists';
|
11
12
|
import type { Sku } from './skus';
|
12
13
|
type SkuListPromotionRuleType = 'sku_list_promotion_rules';
|
@@ -39,6 +40,7 @@ interface SkuListPromotionRule extends Resource {
|
|
39
40
|
all_skus?: boolean | null;
|
40
41
|
min_quantity?: number | null;
|
41
42
|
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
|
43
|
+
versions?: Version[] | null;
|
42
44
|
sku_list?: SkuList | null;
|
43
45
|
skus?: Sku[] | null;
|
44
46
|
}
|
@@ -59,6 +61,7 @@ declare class SkuListPromotionRules extends ApiResource<SkuListPromotionRule> {
|
|
59
61
|
create(resource: SkuListPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
60
62
|
update(resource: SkuListPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
61
63
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
64
|
+
versions(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
62
65
|
sku_list(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
63
66
|
skus(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
64
67
|
isSkuListPromotionRule(resource: any): resource is SkuListPromotionRule;
|
@@ -11,6 +11,10 @@ class SkuListPromotionRules extends resource_1.ApiResource {
|
|
11
11
|
async delete(id, options) {
|
12
12
|
await this.resources.delete((typeof id === 'string') ? { id, type: SkuListPromotionRules.TYPE } : id, options);
|
13
13
|
}
|
14
|
+
async versions(skuListPromotionRuleId, params, options) {
|
15
|
+
const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
|
16
|
+
return this.resources.fetch({ type: 'versions' }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/versions`, params, options);
|
17
|
+
}
|
14
18
|
async sku_list(skuListPromotionRuleId, params, options) {
|
15
19
|
const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
|
16
20
|
return this.resources.fetch({ type: 'sku_lists' }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/sku_list`, params, options);
|
@@ -6,6 +6,7 @@ import type { Sku } from './skus';
|
|
6
6
|
import type { SkuListItem } from './sku_list_items';
|
7
7
|
import type { Bundle } from './bundles';
|
8
8
|
import type { Attachment } from './attachments';
|
9
|
+
import type { Version } from './versions';
|
9
10
|
type SkuListType = 'sku_lists';
|
10
11
|
type SkuListRel = ResourceRel & {
|
11
12
|
type: SkuListType;
|
@@ -26,6 +27,7 @@ interface SkuList extends Resource {
|
|
26
27
|
sku_list_items?: SkuListItem[] | null;
|
27
28
|
bundles?: Bundle[] | null;
|
28
29
|
attachments?: Attachment[] | null;
|
30
|
+
versions?: Version[] | null;
|
29
31
|
}
|
30
32
|
interface SkuListCreate extends ResourceCreate {
|
31
33
|
name: string;
|
@@ -53,6 +55,7 @@ declare class SkuLists extends ApiResource<SkuList> {
|
|
53
55
|
sku_list_items(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuListItem>>;
|
54
56
|
bundles(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
|
55
57
|
attachments(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
58
|
+
versions(skuListId: string | SkuList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
56
59
|
isSkuList(resource: any): resource is SkuList;
|
57
60
|
relationship(id: string | ResourceId | null): SkuListRel;
|
58
61
|
type(): SkuListType;
|
@@ -31,6 +31,10 @@ class SkuLists extends resource_1.ApiResource {
|
|
31
31
|
const _skuListId = skuListId.id || skuListId;
|
32
32
|
return this.resources.fetch({ type: 'attachments' }, `sku_lists/${_skuListId}/attachments`, params, options);
|
33
33
|
}
|
34
|
+
async versions(skuListId, params, options) {
|
35
|
+
const _skuListId = skuListId.id || skuListId;
|
36
|
+
return this.resources.fetch({ type: 'versions' }, `sku_lists/${_skuListId}/versions`, params, options);
|
37
|
+
}
|
34
38
|
isSkuList(resource) {
|
35
39
|
return resource.type && (resource.type === SkuLists.TYPE);
|
36
40
|
}
|
@@ -5,6 +5,7 @@ import type { Market, MarketType } from './markets';
|
|
5
5
|
import type { Attachment } from './attachments';
|
6
6
|
import type { Event } from './events';
|
7
7
|
import type { Tag, TagType } from './tags';
|
8
|
+
import type { Version } from './versions';
|
8
9
|
type SkuOptionType = 'sku_options';
|
9
10
|
type SkuOptionRel = ResourceRel & {
|
10
11
|
type: SkuOptionType;
|
@@ -30,6 +31,7 @@ interface SkuOption extends Resource {
|
|
30
31
|
attachments?: Attachment[] | null;
|
31
32
|
events?: Event[] | null;
|
32
33
|
tags?: Tag[] | null;
|
34
|
+
versions?: Version[] | null;
|
33
35
|
}
|
34
36
|
interface SkuOptionCreate extends ResourceCreate {
|
35
37
|
name: string;
|
@@ -60,6 +62,7 @@ declare class SkuOptions extends ApiResource<SkuOption> {
|
|
60
62
|
attachments(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
61
63
|
events(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
62
64
|
tags(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
65
|
+
versions(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
63
66
|
isSkuOption(resource: any): resource is SkuOption;
|
64
67
|
relationship(id: string | ResourceId | null): SkuOptionRel;
|
65
68
|
type(): SkuOptionType;
|
@@ -27,6 +27,10 @@ class SkuOptions extends resource_1.ApiResource {
|
|
27
27
|
const _skuOptionId = skuOptionId.id || skuOptionId;
|
28
28
|
return this.resources.fetch({ type: 'tags' }, `sku_options/${_skuOptionId}/tags`, params, options);
|
29
29
|
}
|
30
|
+
async versions(skuOptionId, params, options) {
|
31
|
+
const _skuOptionId = skuOptionId.id || skuOptionId;
|
32
|
+
return this.resources.fetch({ type: 'versions' }, `sku_options/${_skuOptionId}/versions`, params, options);
|
33
|
+
}
|
30
34
|
isSkuOption(resource) {
|
31
35
|
return resource.type && (resource.type === SkuOptions.TYPE);
|
32
36
|
}
|
@@ -10,6 +10,7 @@ import type { SkuOption } from './sku_options';
|
|
10
10
|
import type { Attachment } from './attachments';
|
11
11
|
import type { Event } from './events';
|
12
12
|
import type { Tag, TagType } from './tags';
|
13
|
+
import type { Version } from './versions';
|
13
14
|
type SkuType = 'skus';
|
14
15
|
type SkuRel = ResourceRel & {
|
15
16
|
type: SkuType;
|
@@ -42,6 +43,7 @@ interface Sku extends Resource {
|
|
42
43
|
attachments?: Attachment[] | null;
|
43
44
|
events?: Event[] | null;
|
44
45
|
tags?: Tag[] | null;
|
46
|
+
versions?: Version[] | null;
|
45
47
|
}
|
46
48
|
interface SkuCreate extends ResourceCreate {
|
47
49
|
code: string;
|
@@ -85,6 +87,7 @@ declare class Skus extends ApiResource<Sku> {
|
|
85
87
|
attachments(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
86
88
|
events(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
87
89
|
tags(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
90
|
+
versions(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
88
91
|
isSku(resource: any): resource is Sku;
|
89
92
|
relationship(id: string | ResourceId | null): SkuRel;
|
90
93
|
type(): SkuType;
|
@@ -47,6 +47,10 @@ class Skus extends resource_1.ApiResource {
|
|
47
47
|
const _skuId = skuId.id || skuId;
|
48
48
|
return this.resources.fetch({ type: 'tags' }, `skus/${_skuId}/tags`, params, options);
|
49
49
|
}
|
50
|
+
async versions(skuId, params, options) {
|
51
|
+
const _skuId = skuId.id || skuId;
|
52
|
+
return this.resources.fetch({ type: 'versions' }, `skus/${_skuId}/versions`, params, options);
|
53
|
+
}
|
50
54
|
isSku(resource) {
|
51
55
|
return resource.type && (resource.type === Skus.TYPE);
|
52
56
|
}
|
@@ -6,6 +6,7 @@ import type { Sku, SkuType } from './skus';
|
|
6
6
|
import type { ReservedStock } from './reserved_stocks';
|
7
7
|
import type { StockReservation } from './stock_reservations';
|
8
8
|
import type { Attachment } from './attachments';
|
9
|
+
import type { Version } from './versions';
|
9
10
|
type StockItemType = 'stock_items';
|
10
11
|
type StockItemRel = ResourceRel & {
|
11
12
|
type: StockItemType;
|
@@ -25,6 +26,7 @@ interface StockItem extends Resource {
|
|
25
26
|
reserved_stock?: ReservedStock | null;
|
26
27
|
stock_reservations?: StockReservation[] | null;
|
27
28
|
attachments?: Attachment[] | null;
|
29
|
+
versions?: Version[] | null;
|
28
30
|
}
|
29
31
|
interface StockItemCreate extends ResourceCreate {
|
30
32
|
sku_code?: string | null;
|
@@ -48,6 +50,7 @@ declare class StockItems extends ApiResource<StockItem> {
|
|
48
50
|
reserved_stock(stockItemId: string | StockItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ReservedStock>;
|
49
51
|
stock_reservations(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
|
50
52
|
attachments(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
53
|
+
versions(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
51
54
|
isStockItem(resource: any): resource is StockItem;
|
52
55
|
relationship(id: string | ResourceId | null): StockItemRel;
|
53
56
|
type(): StockItemType;
|
@@ -31,6 +31,10 @@ class StockItems extends resource_1.ApiResource {
|
|
31
31
|
const _stockItemId = stockItemId.id || stockItemId;
|
32
32
|
return this.resources.fetch({ type: 'attachments' }, `stock_items/${_stockItemId}/attachments`, params, options);
|
33
33
|
}
|
34
|
+
async versions(stockItemId, params, options) {
|
35
|
+
const _stockItemId = stockItemId.id || stockItemId;
|
36
|
+
return this.resources.fetch({ type: 'versions' }, `stock_items/${_stockItemId}/versions`, params, options);
|
37
|
+
}
|
34
38
|
isStockItem(resource) {
|
35
39
|
return resource.type && (resource.type === StockItems.TYPE);
|
36
40
|
}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
3
|
-
import type { QueryParamsRetrieve } from '../query';
|
2
|
+
import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
+
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Shipment } from './shipments';
|
5
5
|
import type { LineItem } from './line_items';
|
6
6
|
import type { StockItem } from './stock_items';
|
7
7
|
import type { Sku } from './skus';
|
8
|
+
import type { Version } from './versions';
|
8
9
|
type StockLineItemType = 'stock_line_items';
|
9
10
|
type StockLineItemRel = ResourceRel & {
|
10
11
|
type: StockLineItemType;
|
@@ -18,6 +19,7 @@ interface StockLineItem extends Resource {
|
|
18
19
|
line_item?: LineItem | null;
|
19
20
|
stock_item?: StockItem | null;
|
20
21
|
sku?: Sku | null;
|
22
|
+
versions?: Version[] | null;
|
21
23
|
}
|
22
24
|
declare class StockLineItems extends ApiResource<StockLineItem> {
|
23
25
|
static readonly TYPE: StockLineItemType;
|
@@ -25,6 +27,7 @@ declare class StockLineItems extends ApiResource<StockLineItem> {
|
|
25
27
|
line_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
26
28
|
stock_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
27
29
|
sku(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
30
|
+
versions(stockLineItemId: string | StockLineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
28
31
|
isStockLineItem(resource: any): resource is StockLineItem;
|
29
32
|
relationship(id: string | ResourceId | null): StockLineItemRel;
|
30
33
|
type(): StockLineItemType;
|
@@ -18,6 +18,10 @@ class StockLineItems extends resource_1.ApiResource {
|
|
18
18
|
const _stockLineItemId = stockLineItemId.id || stockLineItemId;
|
19
19
|
return this.resources.fetch({ type: 'skus' }, `stock_line_items/${_stockLineItemId}/sku`, params, options);
|
20
20
|
}
|
21
|
+
async versions(stockLineItemId, params, options) {
|
22
|
+
const _stockLineItemId = stockLineItemId.id || stockLineItemId;
|
23
|
+
return this.resources.fetch({ type: 'versions' }, `stock_line_items/${_stockLineItemId}/versions`, params, options);
|
24
|
+
}
|
21
25
|
isStockLineItem(resource) {
|
22
26
|
return resource.type && (resource.type === StockLineItems.TYPE);
|
23
27
|
}
|
@@ -7,6 +7,7 @@ import type { InventoryReturnLocation } from './inventory_return_locations';
|
|
7
7
|
import type { StockItem } from './stock_items';
|
8
8
|
import type { StockTransfer } from './stock_transfers';
|
9
9
|
import type { Attachment } from './attachments';
|
10
|
+
import type { Version } from './versions';
|
10
11
|
type StockLocationType = 'stock_locations';
|
11
12
|
type StockLocationRel = ResourceRel & {
|
12
13
|
type: StockLocationType;
|
@@ -26,6 +27,7 @@ interface StockLocation extends Resource {
|
|
26
27
|
stock_items?: StockItem[] | null;
|
27
28
|
stock_transfers?: StockTransfer[] | null;
|
28
29
|
attachments?: Attachment[] | null;
|
30
|
+
versions?: Version[] | null;
|
29
31
|
}
|
30
32
|
interface StockLocationCreate extends ResourceCreate {
|
31
33
|
name: string;
|
@@ -50,6 +52,7 @@ declare class StockLocations extends ApiResource<StockLocation> {
|
|
50
52
|
stock_items(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockItem>>;
|
51
53
|
stock_transfers(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
|
52
54
|
attachments(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
55
|
+
versions(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
53
56
|
isStockLocation(resource: any): resource is StockLocation;
|
54
57
|
relationship(id: string | ResourceId | null): StockLocationRel;
|
55
58
|
type(): StockLocationType;
|
@@ -35,6 +35,10 @@ class StockLocations extends resource_1.ApiResource {
|
|
35
35
|
const _stockLocationId = stockLocationId.id || stockLocationId;
|
36
36
|
return this.resources.fetch({ type: 'attachments' }, `stock_locations/${_stockLocationId}/attachments`, params, options);
|
37
37
|
}
|
38
|
+
async versions(stockLocationId, params, options) {
|
39
|
+
const _stockLocationId = stockLocationId.id || stockLocationId;
|
40
|
+
return this.resources.fetch({ type: 'versions' }, `stock_locations/${_stockLocationId}/versions`, params, options);
|
41
|
+
}
|
38
42
|
isStockLocation(resource) {
|
39
43
|
return resource.type && (resource.type === StockLocations.TYPE);
|
40
44
|
}
|
@@ -6,6 +6,7 @@ import type { StockLocation, StockLocationType } from './stock_locations';
|
|
6
6
|
import type { Shipment, ShipmentType } from './shipments';
|
7
7
|
import type { LineItem, LineItemType } from './line_items';
|
8
8
|
import type { Event } from './events';
|
9
|
+
import type { Version } from './versions';
|
9
10
|
type StockTransferType = 'stock_transfers';
|
10
11
|
type StockTransferRel = ResourceRel & {
|
11
12
|
type: StockTransferType;
|
@@ -35,6 +36,7 @@ interface StockTransfer extends Resource {
|
|
35
36
|
shipment?: Shipment | null;
|
36
37
|
line_item?: LineItem | null;
|
37
38
|
events?: Event[] | null;
|
39
|
+
versions?: Version[] | null;
|
38
40
|
}
|
39
41
|
interface StockTransferCreate extends ResourceCreate {
|
40
42
|
sku_code?: string | null;
|
@@ -67,6 +69,7 @@ declare class StockTransfers extends ApiResource<StockTransfer> {
|
|
67
69
|
shipment(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
|
68
70
|
line_item(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
69
71
|
events(stockTransferId: string | StockTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
72
|
+
versions(stockTransferId: string | StockTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
70
73
|
_upcoming(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
71
74
|
_picking(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
72
75
|
_in_transit(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
@@ -35,6 +35,10 @@ class StockTransfers extends resource_1.ApiResource {
|
|
35
35
|
const _stockTransferId = stockTransferId.id || stockTransferId;
|
36
36
|
return this.resources.fetch({ type: 'events' }, `stock_transfers/${_stockTransferId}/events`, params, options);
|
37
37
|
}
|
38
|
+
async versions(stockTransferId, params, options) {
|
39
|
+
const _stockTransferId = stockTransferId.id || stockTransferId;
|
40
|
+
return this.resources.fetch({ type: 'versions' }, `stock_transfers/${_stockTransferId}/versions`, params, options);
|
41
|
+
}
|
38
42
|
async _upcoming(id, params, options) {
|
39
43
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: StockTransfers.TYPE, _upcoming: true }, params, options);
|
40
44
|
}
|
@@ -2,6 +2,7 @@ import { ApiResource } from '../resource';
|
|
2
2
|
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { PaymentMethod } from './payment_methods';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
import type { StripePayment } from './stripe_payments';
|
6
7
|
type StripeGatewayType = 'stripe_gateways';
|
7
8
|
type StripeGatewayRel = ResourceRel & {
|
@@ -15,6 +16,7 @@ interface StripeGateway extends Resource {
|
|
15
16
|
webhook_endpoint_secret?: string | null;
|
16
17
|
webhook_endpoint_url?: string | null;
|
17
18
|
payment_methods?: PaymentMethod[] | null;
|
19
|
+
versions?: Version[] | null;
|
18
20
|
stripe_payments?: StripePayment[] | null;
|
19
21
|
}
|
20
22
|
interface StripeGatewayCreate extends ResourceCreate {
|
@@ -33,6 +35,7 @@ declare class StripeGateways extends ApiResource<StripeGateway> {
|
|
33
35
|
update(resource: StripeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripeGateway>;
|
34
36
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
35
37
|
payment_methods(stripeGatewayId: string | StripeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
38
|
+
versions(stripeGatewayId: string | StripeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
36
39
|
stripe_payments(stripeGatewayId: string | StripeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StripePayment>>;
|
37
40
|
isStripeGateway(resource: any): resource is StripeGateway;
|
38
41
|
relationship(id: string | ResourceId | null): StripeGatewayRel;
|
@@ -15,6 +15,10 @@ class StripeGateways extends resource_1.ApiResource {
|
|
15
15
|
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
16
16
|
return this.resources.fetch({ type: 'payment_methods' }, `stripe_gateways/${_stripeGatewayId}/payment_methods`, params, options);
|
17
17
|
}
|
18
|
+
async versions(stripeGatewayId, params, options) {
|
19
|
+
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
20
|
+
return this.resources.fetch({ type: 'versions' }, `stripe_gateways/${_stripeGatewayId}/versions`, params, options);
|
21
|
+
}
|
18
22
|
async stripe_payments(stripeGatewayId, params, options) {
|
19
23
|
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
20
24
|
return this.resources.fetch({ type: 'stripe_payments' }, `stripe_gateways/${_stripeGatewayId}/stripe_payments`, params, options);
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
3
|
-
import type { QueryParamsRetrieve } from '../query';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
+
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Order, OrderType } from './orders';
|
5
5
|
import type { PaymentGateway } from './payment_gateways';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type StripePaymentType = 'stripe_payments';
|
7
8
|
type StripePaymentRel = ResourceRel & {
|
8
9
|
type: StripePaymentType;
|
@@ -20,16 +21,20 @@ interface StripePayment extends Resource {
|
|
20
21
|
intent_amount_cents: number;
|
21
22
|
intent_amount_float?: number | null;
|
22
23
|
formatted_intent_amount?: string | null;
|
24
|
+
return_url?: string | null;
|
23
25
|
payment_instrument?: Record<string, any> | null;
|
24
26
|
order?: Order | null;
|
25
27
|
payment_gateway?: PaymentGateway | null;
|
28
|
+
versions?: Version[] | null;
|
26
29
|
}
|
27
30
|
interface StripePaymentCreate extends ResourceCreate {
|
28
31
|
options?: Record<string, any> | null;
|
32
|
+
return_url?: string | null;
|
29
33
|
order: OrderRel;
|
30
34
|
}
|
31
35
|
interface StripePaymentUpdate extends ResourceUpdate {
|
32
36
|
options?: Record<string, any> | null;
|
37
|
+
return_url?: string | null;
|
33
38
|
_update?: boolean | null;
|
34
39
|
_refresh?: boolean | null;
|
35
40
|
order?: OrderRel | null;
|
@@ -41,6 +46,7 @@ declare class StripePayments extends ApiResource<StripePayment> {
|
|
41
46
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
42
47
|
order(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
43
48
|
payment_gateway(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
49
|
+
versions(stripePaymentId: string | StripePayment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
44
50
|
_update(id: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripePayment>;
|
45
51
|
_refresh(id: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripePayment>;
|
46
52
|
isStripePayment(resource: any): resource is StripePayment;
|
@@ -19,6 +19,10 @@ class StripePayments extends resource_1.ApiResource {
|
|
19
19
|
const _stripePaymentId = stripePaymentId.id || stripePaymentId;
|
20
20
|
return this.resources.fetch({ type: 'payment_gateways' }, `stripe_payments/${_stripePaymentId}/payment_gateway`, params, options);
|
21
21
|
}
|
22
|
+
async versions(stripePaymentId, params, options) {
|
23
|
+
const _stripePaymentId = stripePaymentId.id || stripePaymentId;
|
24
|
+
return this.resources.fetch({ type: 'versions' }, `stripe_payments/${_stripePaymentId}/versions`, params, options);
|
25
|
+
}
|
22
26
|
async _update(id, params, options) {
|
23
27
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: StripePayments.TYPE, _update: true }, params, options);
|
24
28
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse }
|
|
3
3
|
import type { QueryParamsList } from '../query';
|
4
4
|
import type { Market } from './markets';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type TaxCalculatorType = 'tax_calculators';
|
7
8
|
type TaxCalculatorRel = ResourceRel & {
|
8
9
|
type: TaxCalculatorType;
|
@@ -12,11 +13,13 @@ interface TaxCalculator extends Resource {
|
|
12
13
|
name: string;
|
13
14
|
markets?: Market[] | null;
|
14
15
|
attachments?: Attachment[] | null;
|
16
|
+
versions?: Version[] | null;
|
15
17
|
}
|
16
18
|
declare class TaxCalculators extends ApiResource<TaxCalculator> {
|
17
19
|
static readonly TYPE: TaxCalculatorType;
|
18
20
|
markets(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
|
19
21
|
attachments(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
22
|
+
versions(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
20
23
|
isTaxCalculator(resource: any): resource is TaxCalculator;
|
21
24
|
relationship(id: string | ResourceId | null): TaxCalculatorRel;
|
22
25
|
type(): TaxCalculatorType;
|
@@ -10,6 +10,10 @@ class TaxCalculators extends resource_1.ApiResource {
|
|
10
10
|
const _taxCalculatorId = taxCalculatorId.id || taxCalculatorId;
|
11
11
|
return this.resources.fetch({ type: 'attachments' }, `tax_calculators/${_taxCalculatorId}/attachments`, params, options);
|
12
12
|
}
|
13
|
+
async versions(taxCalculatorId, params, options) {
|
14
|
+
const _taxCalculatorId = taxCalculatorId.id || taxCalculatorId;
|
15
|
+
return this.resources.fetch({ type: 'versions' }, `tax_calculators/${_taxCalculatorId}/versions`, params, options);
|
16
|
+
}
|
13
17
|
isTaxCalculator(resource) {
|
14
18
|
return resource.type && (resource.type === TaxCalculators.TYPE);
|
15
19
|
}
|
@@ -7,6 +7,7 @@ import type { TaxjarAccount, TaxjarAccountType } from './taxjar_accounts';
|
|
7
7
|
import type { ManualTaxCalculator, ManualTaxCalculatorType } from './manual_tax_calculators';
|
8
8
|
import type { ExternalTaxCalculator, ExternalTaxCalculatorType } from './external_tax_calculators';
|
9
9
|
import type { Attachment } from './attachments';
|
10
|
+
import type { Version } from './versions';
|
10
11
|
type TaxCategoryType = 'tax_categories';
|
11
12
|
type TaxCategoryRel = ResourceRel & {
|
12
13
|
type: TaxCategoryType;
|
@@ -33,6 +34,7 @@ interface TaxCategory extends Resource {
|
|
33
34
|
sku?: Sku | null;
|
34
35
|
tax_calculator?: AvalaraAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null;
|
35
36
|
attachments?: Attachment[] | null;
|
37
|
+
versions?: Version[] | null;
|
36
38
|
}
|
37
39
|
interface TaxCategoryCreate extends ResourceCreate {
|
38
40
|
code: string;
|
@@ -52,6 +54,7 @@ declare class TaxCategories extends ApiResource<TaxCategory> {
|
|
52
54
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
53
55
|
sku(taxCategoryId: string | TaxCategory, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
54
56
|
attachments(taxCategoryId: string | TaxCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
57
|
+
versions(taxCategoryId: string | TaxCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
55
58
|
isTaxCategory(resource: any): resource is TaxCategory;
|
56
59
|
relationship(id: string | ResourceId | null): TaxCategoryRel;
|
57
60
|
type(): TaxCategoryType;
|
@@ -19,6 +19,10 @@ class TaxCategories extends resource_1.ApiResource {
|
|
19
19
|
const _taxCategoryId = taxCategoryId.id || taxCategoryId;
|
20
20
|
return this.resources.fetch({ type: 'attachments' }, `tax_categories/${_taxCategoryId}/attachments`, params, options);
|
21
21
|
}
|
22
|
+
async versions(taxCategoryId, params, options) {
|
23
|
+
const _taxCategoryId = taxCategoryId.id || taxCategoryId;
|
24
|
+
return this.resources.fetch({ type: 'versions' }, `tax_categories/${_taxCategoryId}/versions`, params, options);
|
25
|
+
}
|
22
26
|
isTaxCategory(resource) {
|
23
27
|
return resource.type && (resource.type === TaxCategories.TYPE);
|
24
28
|
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
3
|
-
import type { QueryParamsRetrieve } from '../query';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
+
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { ManualTaxCalculator, ManualTaxCalculatorType } from './manual_tax_calculators';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
type TaxRuleType = 'tax_rules';
|
6
7
|
type TaxRuleRel = ResourceRel & {
|
7
8
|
type: TaxRuleType;
|
@@ -25,6 +26,7 @@ interface TaxRule extends Resource {
|
|
25
26
|
adjustment_taxable?: boolean | null;
|
26
27
|
breakdown?: Record<string, any> | null;
|
27
28
|
manual_tax_calculator?: ManualTaxCalculator | null;
|
29
|
+
versions?: Version[] | null;
|
28
30
|
}
|
29
31
|
interface TaxRuleCreate extends ResourceCreate {
|
30
32
|
name: string;
|
@@ -62,6 +64,7 @@ declare class TaxRules extends ApiResource<TaxRule> {
|
|
62
64
|
update(resource: TaxRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxRule>;
|
63
65
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
64
66
|
manual_tax_calculator(taxRuleId: string | TaxRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
|
67
|
+
versions(taxRuleId: string | TaxRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
65
68
|
isTaxRule(resource: any): resource is TaxRule;
|
66
69
|
relationship(id: string | ResourceId | null): TaxRuleRel;
|
67
70
|
type(): TaxRuleType;
|
@@ -15,6 +15,10 @@ class TaxRules extends resource_1.ApiResource {
|
|
15
15
|
const _taxRuleId = taxRuleId.id || taxRuleId;
|
16
16
|
return this.resources.fetch({ type: 'manual_tax_calculators' }, `tax_rules/${_taxRuleId}/manual_tax_calculator`, params, options);
|
17
17
|
}
|
18
|
+
async versions(taxRuleId, params, options) {
|
19
|
+
const _taxRuleId = taxRuleId.id || taxRuleId;
|
20
|
+
return this.resources.fetch({ type: 'versions' }, `tax_rules/${_taxRuleId}/versions`, params, options);
|
21
|
+
}
|
18
22
|
isTaxRule(resource) {
|
19
23
|
return resource.type && (resource.type === TaxRules.TYPE);
|
20
24
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesCon
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Market } from './markets';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
import type { TaxCategory, TaxCategoryType } from './tax_categories';
|
7
8
|
type TaxjarAccountType = 'taxjar_accounts';
|
8
9
|
type TaxjarAccountRel = ResourceRel & {
|
@@ -16,6 +17,7 @@ interface TaxjarAccount extends Resource {
|
|
16
17
|
name: string;
|
17
18
|
markets?: Market[] | null;
|
18
19
|
attachments?: Attachment[] | null;
|
20
|
+
versions?: Version[] | null;
|
19
21
|
tax_categories?: TaxCategory[] | null;
|
20
22
|
}
|
21
23
|
interface TaxjarAccountCreate extends ResourceCreate {
|
@@ -35,6 +37,7 @@ declare class TaxjarAccounts extends ApiResource<TaxjarAccount> {
|
|
35
37
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
36
38
|
markets(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
|
37
39
|
attachments(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
40
|
+
versions(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
38
41
|
tax_categories(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
|
39
42
|
isTaxjarAccount(resource: any): resource is TaxjarAccount;
|
40
43
|
relationship(id: string | ResourceId | null): TaxjarAccountRel;
|
@@ -19,6 +19,10 @@ class TaxjarAccounts extends resource_1.ApiResource {
|
|
19
19
|
const _taxjarAccountId = taxjarAccountId.id || taxjarAccountId;
|
20
20
|
return this.resources.fetch({ type: 'attachments' }, `taxjar_accounts/${_taxjarAccountId}/attachments`, params, options);
|
21
21
|
}
|
22
|
+
async versions(taxjarAccountId, params, options) {
|
23
|
+
const _taxjarAccountId = taxjarAccountId.id || taxjarAccountId;
|
24
|
+
return this.resources.fetch({ type: 'versions' }, `taxjar_accounts/${_taxjarAccountId}/versions`, params, options);
|
25
|
+
}
|
22
26
|
async tax_categories(taxjarAccountId, params, options) {
|
23
27
|
const _taxjarAccountId = taxjarAccountId.id || taxjarAccountId;
|
24
28
|
return this.resources.fetch({ type: 'tax_categories' }, `taxjar_accounts/${_taxjarAccountId}/tax_categories`, params, options);
|