@commercelayer/sdk 4.27.1 → 4.28.1
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 +10 -3
- package/lib/cjs/api.js +25 -4
- package/lib/cjs/commercelayer.d.ts +9 -2
- package/lib/cjs/commercelayer.js +8 -1
- package/lib/cjs/model.d.ts +10 -3
- package/lib/cjs/resource.d.ts +7 -9
- package/lib/cjs/resources/addresses.d.ts +14 -0
- package/lib/cjs/resources/addresses.js +12 -0
- package/lib/cjs/resources/adjustments.d.ts +3 -0
- package/lib/cjs/resources/adjustments.js +4 -0
- package/lib/cjs/resources/adyen_gateways.d.ts +5 -2
- package/lib/cjs/resources/adyen_gateways.js +4 -0
- package/lib/cjs/resources/adyen_payments.d.ts +3 -0
- package/lib/cjs/resources/adyen_payments.js +4 -0
- package/lib/cjs/resources/authorizations.d.ts +9 -3
- package/lib/cjs/resources/authorizations.js +12 -4
- package/lib/cjs/resources/avalara_accounts.d.ts +9 -6
- 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 +9 -0
- 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 +3 -0
- package/lib/cjs/resources/braintree_payments.js +4 -0
- package/lib/cjs/resources/bundles.d.ts +16 -2
- package/lib/cjs/resources/bundles.js +12 -0
- package/lib/cjs/resources/buy_x_pay_y_promotions.d.ts +134 -0
- package/lib/cjs/resources/buy_x_pay_y_promotions.js +81 -0
- package/lib/cjs/resources/captures.d.ts +9 -3
- package/lib/cjs/resources/captures.js +12 -4
- 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 +3 -0
- 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 +10 -3
- 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 +26 -1
- package/lib/cjs/resources/coupons.js +16 -0
- package/lib/cjs/resources/custom_promotion_rules.d.ts +61 -0
- package/lib/cjs/resources/custom_promotion_rules.js +37 -0
- package/lib/cjs/resources/customer_addresses.d.ts +5 -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 +18 -11
- package/lib/cjs/resources/customer_payment_sources.js +8 -0
- package/lib/cjs/resources/customer_subscriptions.d.ts +3 -0
- package/lib/cjs/resources/customer_subscriptions.js +4 -0
- package/lib/cjs/resources/customers.d.ts +9 -0
- package/lib/cjs/resources/customers.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 +3 -0
- package/lib/cjs/resources/external_payments.js +4 -0
- package/lib/cjs/resources/external_promotions.d.ts +45 -6
- package/lib/cjs/resources/external_promotions.js +24 -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 +45 -6
- package/lib/cjs/resources/fixed_amount_promotions.js +24 -0
- package/lib/cjs/resources/fixed_price_promotions.d.ts +37 -9
- package/lib/cjs/resources/fixed_price_promotions.js +18 -2
- package/lib/cjs/resources/free_gift_promotions.d.ts +37 -9
- package/lib/cjs/resources/free_gift_promotions.js +18 -2
- package/lib/cjs/resources/free_shipping_promotions.d.ts +42 -6
- package/lib/cjs/resources/free_shipping_promotions.js +20 -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 +11 -0
- package/lib/cjs/resources/gift_cards.js +8 -0
- package/lib/cjs/resources/imports.d.ts +1 -3
- 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 +12 -0
- package/lib/cjs/resources/inventory_models.js +4 -0
- package/lib/cjs/resources/inventory_return_locations.d.ts +3 -0
- package/lib/cjs/resources/inventory_return_locations.js +4 -0
- package/lib/cjs/resources/inventory_stock_locations.d.ts +3 -0
- 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 +3 -0
- package/lib/cjs/resources/klarna_payments.js +4 -0
- package/lib/cjs/resources/line_item_options.d.ts +11 -0
- package/lib/cjs/resources/line_item_options.js +8 -0
- package/lib/cjs/resources/line_items.d.ts +30 -0
- package/lib/cjs/resources/line_items.js +16 -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 +8 -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 +13 -3
- package/lib/cjs/resources/order_amount_promotion_rules.js +4 -0
- package/lib/cjs/resources/order_subscription_items.d.ts +7 -0
- package/lib/cjs/resources/order_subscription_items.js +4 -0
- package/lib/cjs/resources/order_subscriptions.d.ts +4 -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 +50 -6
- package/lib/cjs/resources/orders.js +32 -0
- package/lib/cjs/resources/organization.d.ts +4 -4
- 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 +4 -1
- package/lib/cjs/resources/parcel_line_items.js +4 -0
- package/lib/cjs/resources/parcels.d.ts +9 -3
- 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 +9 -1
- package/lib/cjs/resources/payment_methods.js +4 -0
- package/lib/cjs/resources/payment_options.d.ts +43 -0
- package/lib/cjs/resources/payment_options.js +41 -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 +3 -0
- package/lib/cjs/resources/paypal_payments.js +4 -0
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +37 -9
- package/lib/cjs/resources/percentage_discount_promotions.js +18 -2
- 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 +6 -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 +4 -1
- 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 +18 -0
- package/lib/cjs/resources/promotions.js +20 -0
- package/lib/cjs/resources/refunds.d.ts +9 -3
- package/lib/cjs/resources/refunds.js +10 -2
- package/lib/cjs/resources/reserved_stocks.d.ts +27 -0
- package/lib/cjs/resources/reserved_stocks.js +36 -0
- package/lib/cjs/resources/return_line_items.d.ts +2 -1
- package/lib/cjs/resources/returns.d.ts +11 -0
- package/lib/cjs/resources/returns.js +8 -0
- package/lib/cjs/resources/satispay_gateways.d.ts +6 -0
- package/lib/cjs/resources/satispay_gateways.js +4 -0
- package/lib/cjs/resources/satispay_payments.d.ts +11 -3
- package/lib/cjs/resources/satispay_payments.js +4 -0
- package/lib/cjs/resources/shipments.d.ts +49 -2
- package/lib/cjs/resources/shipments.js +18 -0
- package/lib/cjs/resources/shipping_categories.d.ts +6 -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 +11 -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 +3 -0
- package/lib/cjs/resources/sku_list_items.js +4 -0
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +10 -3
- 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 +14 -0
- package/lib/cjs/resources/sku_options.js +12 -0
- package/lib/cjs/resources/skus.d.ts +17 -0
- package/lib/cjs/resources/skus.js +16 -0
- package/lib/cjs/resources/stock_items.d.ts +9 -0
- package/lib/cjs/resources/stock_items.js +12 -0
- package/lib/cjs/resources/stock_line_items.d.ts +42 -2
- package/lib/cjs/resources/stock_line_items.js +17 -0
- package/lib/cjs/resources/stock_locations.d.ts +6 -0
- package/lib/cjs/resources/stock_locations.js +4 -0
- package/lib/cjs/resources/stock_reservations.d.ts +49 -0
- package/lib/cjs/resources/stock_reservations.js +53 -0
- package/lib/cjs/resources/stock_transfers.d.ts +5 -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 +12 -0
- package/lib/cjs/resources/stripe_payments.js +4 -0
- package/lib/cjs/resources/tags.d.ts +27 -0
- package/lib/cjs/resources/tags.js +33 -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 +3 -0
- 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 +9 -0
- package/lib/cjs/resources/transactions.js +12 -0
- package/lib/cjs/resources/versions.d.ts +22 -0
- package/lib/cjs/resources/versions.js +24 -0
- package/lib/cjs/resources/voids.d.ts +9 -3
- package/lib/cjs/resources/voids.js +10 -2
- package/lib/cjs/resources/webhooks.d.ts +8 -0
- package/lib/cjs/resources/webhooks.js +4 -0
- package/lib/cjs/resources/wire_transfers.d.ts +3 -0
- package/lib/cjs/resources/wire_transfers.js +4 -0
- package/lib/cjs/util.d.ts +1 -0
- package/lib/esm/api.d.ts +10 -3
- package/lib/esm/api.js +15 -1
- package/lib/esm/commercelayer.d.ts +9 -2
- package/lib/esm/commercelayer.js +8 -1
- package/lib/esm/model.d.ts +10 -3
- package/lib/esm/resource.d.ts +7 -9
- package/lib/esm/resources/addresses.d.ts +14 -0
- package/lib/esm/resources/addresses.js +12 -0
- package/lib/esm/resources/adjustments.d.ts +3 -0
- package/lib/esm/resources/adjustments.js +4 -0
- package/lib/esm/resources/adyen_gateways.d.ts +5 -2
- package/lib/esm/resources/adyen_gateways.js +4 -0
- package/lib/esm/resources/adyen_payments.d.ts +3 -0
- package/lib/esm/resources/adyen_payments.js +4 -0
- package/lib/esm/resources/authorizations.d.ts +9 -3
- package/lib/esm/resources/authorizations.js +12 -4
- package/lib/esm/resources/avalara_accounts.d.ts +9 -6
- 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 +9 -0
- 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 +3 -0
- package/lib/esm/resources/braintree_payments.js +4 -0
- package/lib/esm/resources/bundles.d.ts +16 -2
- package/lib/esm/resources/bundles.js +12 -0
- package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +134 -0
- package/lib/esm/resources/buy_x_pay_y_promotions.js +79 -0
- package/lib/esm/resources/captures.d.ts +9 -3
- package/lib/esm/resources/captures.js +12 -4
- 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 +3 -0
- 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 +10 -3
- 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 +26 -1
- package/lib/esm/resources/coupons.js +16 -0
- package/lib/esm/resources/custom_promotion_rules.d.ts +61 -0
- package/lib/esm/resources/custom_promotion_rules.js +35 -0
- package/lib/esm/resources/customer_addresses.d.ts +5 -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 +18 -11
- package/lib/esm/resources/customer_payment_sources.js +8 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +3 -0
- package/lib/esm/resources/customer_subscriptions.js +4 -0
- package/lib/esm/resources/customers.d.ts +9 -0
- package/lib/esm/resources/customers.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 +3 -0
- package/lib/esm/resources/external_payments.js +4 -0
- package/lib/esm/resources/external_promotions.d.ts +45 -6
- package/lib/esm/resources/external_promotions.js +24 -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 +45 -6
- package/lib/esm/resources/fixed_amount_promotions.js +24 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +37 -9
- package/lib/esm/resources/fixed_price_promotions.js +18 -2
- package/lib/esm/resources/free_gift_promotions.d.ts +37 -9
- package/lib/esm/resources/free_gift_promotions.js +18 -2
- package/lib/esm/resources/free_shipping_promotions.d.ts +42 -6
- package/lib/esm/resources/free_shipping_promotions.js +20 -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 +11 -0
- package/lib/esm/resources/gift_cards.js +8 -0
- package/lib/esm/resources/imports.d.ts +1 -3
- 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 +12 -0
- package/lib/esm/resources/inventory_models.js +4 -0
- package/lib/esm/resources/inventory_return_locations.d.ts +3 -0
- package/lib/esm/resources/inventory_return_locations.js +4 -0
- package/lib/esm/resources/inventory_stock_locations.d.ts +3 -0
- 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 +3 -0
- package/lib/esm/resources/klarna_payments.js +4 -0
- package/lib/esm/resources/line_item_options.d.ts +11 -0
- package/lib/esm/resources/line_item_options.js +8 -0
- package/lib/esm/resources/line_items.d.ts +30 -0
- package/lib/esm/resources/line_items.js +16 -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 +8 -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 +13 -3
- package/lib/esm/resources/order_amount_promotion_rules.js +4 -0
- package/lib/esm/resources/order_subscription_items.d.ts +7 -0
- package/lib/esm/resources/order_subscription_items.js +4 -0
- package/lib/esm/resources/order_subscriptions.d.ts +4 -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 +50 -6
- package/lib/esm/resources/orders.js +32 -0
- package/lib/esm/resources/organization.d.ts +4 -4
- 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 +4 -1
- package/lib/esm/resources/parcel_line_items.js +4 -0
- package/lib/esm/resources/parcels.d.ts +9 -3
- 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 +9 -1
- package/lib/esm/resources/payment_methods.js +4 -0
- package/lib/esm/resources/payment_options.d.ts +43 -0
- package/lib/esm/resources/payment_options.js +39 -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 +3 -0
- package/lib/esm/resources/paypal_payments.js +4 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +37 -9
- package/lib/esm/resources/percentage_discount_promotions.js +18 -2
- 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 +6 -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 +4 -1
- 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 +18 -0
- package/lib/esm/resources/promotions.js +20 -0
- package/lib/esm/resources/refunds.d.ts +9 -3
- package/lib/esm/resources/refunds.js +10 -2
- package/lib/esm/resources/reserved_stocks.d.ts +27 -0
- package/lib/esm/resources/reserved_stocks.js +34 -0
- package/lib/esm/resources/return_line_items.d.ts +2 -1
- package/lib/esm/resources/returns.d.ts +11 -0
- package/lib/esm/resources/returns.js +8 -0
- package/lib/esm/resources/satispay_gateways.d.ts +6 -0
- package/lib/esm/resources/satispay_gateways.js +4 -0
- package/lib/esm/resources/satispay_payments.d.ts +11 -3
- package/lib/esm/resources/satispay_payments.js +4 -0
- package/lib/esm/resources/shipments.d.ts +49 -2
- package/lib/esm/resources/shipments.js +18 -0
- package/lib/esm/resources/shipping_categories.d.ts +6 -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 +11 -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 +3 -0
- package/lib/esm/resources/sku_list_items.js +4 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +10 -3
- 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 +14 -0
- package/lib/esm/resources/sku_options.js +12 -0
- package/lib/esm/resources/skus.d.ts +17 -0
- package/lib/esm/resources/skus.js +16 -0
- package/lib/esm/resources/stock_items.d.ts +9 -0
- package/lib/esm/resources/stock_items.js +12 -0
- package/lib/esm/resources/stock_line_items.d.ts +42 -2
- package/lib/esm/resources/stock_line_items.js +17 -0
- package/lib/esm/resources/stock_locations.d.ts +6 -0
- package/lib/esm/resources/stock_locations.js +4 -0
- package/lib/esm/resources/stock_reservations.d.ts +49 -0
- package/lib/esm/resources/stock_reservations.js +51 -0
- package/lib/esm/resources/stock_transfers.d.ts +5 -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 +12 -0
- package/lib/esm/resources/stripe_payments.js +4 -0
- package/lib/esm/resources/tags.d.ts +27 -0
- package/lib/esm/resources/tags.js +31 -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 +3 -0
- 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 +9 -0
- package/lib/esm/resources/transactions.js +12 -0
- package/lib/esm/resources/versions.d.ts +22 -0
- package/lib/esm/resources/versions.js +22 -0
- package/lib/esm/resources/voids.d.ts +9 -3
- package/lib/esm/resources/voids.js +10 -2
- package/lib/esm/resources/webhooks.d.ts +8 -0
- package/lib/esm/resources/webhooks.js +4 -0
- package/lib/esm/resources/wire_transfers.d.ts +3 -0
- package/lib/esm/resources/wire_transfers.js +4 -0
- package/lib/esm/util.d.ts +1 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -25
- package/lib/cjs/micro.d.ts +0 -4
- package/lib/cjs/micro.js +0 -13
- package/lib/esm/micro.d.ts +0 -4
- package/lib/esm/micro.js +0 -7
@@ -26,6 +26,10 @@ class GiftCardRecipients extends resource_1.ApiResource {
|
|
26
26
|
const _giftCardRecipientId = giftCardRecipientId.id || giftCardRecipientId;
|
27
27
|
return this.resources.fetch({ type: 'attachments' }, `gift_card_recipients/${_giftCardRecipientId}/attachments`, params, options);
|
28
28
|
}
|
29
|
+
async versions(giftCardRecipientId, params, options) {
|
30
|
+
const _giftCardRecipientId = giftCardRecipientId.id || giftCardRecipientId;
|
31
|
+
return this.resources.fetch({ type: 'versions' }, `gift_card_recipients/${_giftCardRecipientId}/versions`, params, options);
|
32
|
+
}
|
29
33
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
34
|
isGiftCardRecipient(resource) {
|
31
35
|
return resource.type && (resource.type === GiftCardRecipients.TYPE);
|
@@ -4,6 +4,8 @@ import type { Market } from './markets';
|
|
4
4
|
import type { GiftCardRecipient } from './gift_card_recipients';
|
5
5
|
import type { Attachment } from './attachments';
|
6
6
|
import type { Event } from './events';
|
7
|
+
import type { Tag } from './tags';
|
8
|
+
import type { Version } from './versions';
|
7
9
|
type GiftCardRel = ResourceRel & {
|
8
10
|
type: typeof GiftCards.TYPE;
|
9
11
|
};
|
@@ -13,6 +15,9 @@ type MarketRel = ResourceRel & {
|
|
13
15
|
type GiftCardRecipientRel = ResourceRel & {
|
14
16
|
type: 'gift_card_recipients';
|
15
17
|
};
|
18
|
+
type TagRel = ResourceRel & {
|
19
|
+
type: 'tags';
|
20
|
+
};
|
16
21
|
interface GiftCard extends Resource {
|
17
22
|
status?: string;
|
18
23
|
code?: string;
|
@@ -36,6 +41,8 @@ interface GiftCard extends Resource {
|
|
36
41
|
gift_card_recipient?: GiftCardRecipient;
|
37
42
|
attachments?: Attachment[];
|
38
43
|
events?: Event[];
|
44
|
+
tags?: Tag[];
|
45
|
+
versions?: Version[];
|
39
46
|
}
|
40
47
|
interface GiftCardCreate extends ResourceCreate {
|
41
48
|
code?: string;
|
@@ -49,6 +56,7 @@ interface GiftCardCreate extends ResourceCreate {
|
|
49
56
|
recipient_email?: string;
|
50
57
|
market?: MarketRel;
|
51
58
|
gift_card_recipient?: GiftCardRecipientRel;
|
59
|
+
tags?: TagRel[];
|
52
60
|
}
|
53
61
|
interface GiftCardUpdate extends ResourceUpdate {
|
54
62
|
currency_code?: string;
|
@@ -65,6 +73,7 @@ interface GiftCardUpdate extends ResourceUpdate {
|
|
65
73
|
_balance_change_cents?: number;
|
66
74
|
market?: MarketRel;
|
67
75
|
gift_card_recipient?: GiftCardRecipientRel;
|
76
|
+
tags?: TagRel[];
|
68
77
|
}
|
69
78
|
declare class GiftCards extends ApiResource {
|
70
79
|
static readonly TYPE: 'gift_cards';
|
@@ -77,6 +86,8 @@ declare class GiftCards extends ApiResource {
|
|
77
86
|
gift_card_recipient(giftCardId: string | GiftCard, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
78
87
|
attachments(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
79
88
|
events(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
89
|
+
tags(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
90
|
+
versions(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
80
91
|
isGiftCard(resource: any): resource is GiftCard;
|
81
92
|
relationship(id: string | ResourceId | null): GiftCardRel;
|
82
93
|
type(): string;
|
@@ -34,6 +34,14 @@ class GiftCards extends resource_1.ApiResource {
|
|
34
34
|
const _giftCardId = giftCardId.id || giftCardId;
|
35
35
|
return this.resources.fetch({ type: 'events' }, `gift_cards/${_giftCardId}/events`, params, options);
|
36
36
|
}
|
37
|
+
async tags(giftCardId, params, options) {
|
38
|
+
const _giftCardId = giftCardId.id || giftCardId;
|
39
|
+
return this.resources.fetch({ type: 'tags' }, `gift_cards/${_giftCardId}/tags`, params, options);
|
40
|
+
}
|
41
|
+
async versions(giftCardId, params, options) {
|
42
|
+
const _giftCardId = giftCardId.id || giftCardId;
|
43
|
+
return this.resources.fetch({ type: 'versions' }, `gift_cards/${_giftCardId}/versions`, params, options);
|
44
|
+
}
|
37
45
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
38
46
|
isGiftCard(resource) {
|
39
47
|
return resource.type && (resource.type === GiftCards.TYPE);
|
@@ -6,6 +6,7 @@ type ImportRel = ResourceRel & {
|
|
6
6
|
};
|
7
7
|
interface Import extends Resource {
|
8
8
|
resource_type?: string;
|
9
|
+
format?: string;
|
9
10
|
parent_resource_id?: string;
|
10
11
|
status?: string;
|
11
12
|
started_at?: string;
|
@@ -15,11 +16,9 @@ interface Import extends Resource {
|
|
15
16
|
inputs_size?: number;
|
16
17
|
errors_count?: number;
|
17
18
|
warnings_count?: number;
|
18
|
-
destroyed_count?: number;
|
19
19
|
processed_count?: number;
|
20
20
|
errors_log?: object;
|
21
21
|
warnings_log?: object;
|
22
|
-
cleanup_records?: boolean;
|
23
22
|
attachment_url?: string;
|
24
23
|
events?: Event[];
|
25
24
|
}
|
@@ -28,7 +27,6 @@ interface ImportCreate extends ResourceCreate {
|
|
28
27
|
format?: string;
|
29
28
|
parent_resource_id?: string;
|
30
29
|
inputs: object[];
|
31
|
-
cleanup_records?: boolean;
|
32
30
|
}
|
33
31
|
declare class Imports extends ApiResource {
|
34
32
|
static readonly TYPE: 'imports';
|
@@ -4,6 +4,7 @@ import type { Market } from './markets';
|
|
4
4
|
import type { Customer } from './customers';
|
5
5
|
import type { Sku } from './skus';
|
6
6
|
import type { Event } from './events';
|
7
|
+
import type { Version } from './versions';
|
7
8
|
type InStockSubscriptionRel = ResourceRel & {
|
8
9
|
type: typeof InStockSubscriptions.TYPE;
|
9
10
|
};
|
@@ -25,6 +26,7 @@ interface InStockSubscription extends Resource {
|
|
25
26
|
customer?: Customer;
|
26
27
|
sku?: Sku;
|
27
28
|
events?: Event[];
|
29
|
+
versions?: Version[];
|
28
30
|
}
|
29
31
|
interface InStockSubscriptionCreate extends ResourceCreate {
|
30
32
|
customer_email?: string;
|
@@ -54,6 +56,7 @@ declare class InStockSubscriptions extends ApiResource {
|
|
54
56
|
customer(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
55
57
|
sku(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
56
58
|
events(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
59
|
+
versions(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
57
60
|
isInStockSubscription(resource: any): resource is InStockSubscription;
|
58
61
|
relationship(id: string | ResourceId | null): InStockSubscriptionRel;
|
59
62
|
type(): string;
|
@@ -34,6 +34,10 @@ class InStockSubscriptions extends resource_1.ApiResource {
|
|
34
34
|
const _inStockSubscriptionId = inStockSubscriptionId.id || inStockSubscriptionId;
|
35
35
|
return this.resources.fetch({ type: 'events' }, `in_stock_subscriptions/${_inStockSubscriptionId}/events`, params, options);
|
36
36
|
}
|
37
|
+
async versions(inStockSubscriptionId, params, options) {
|
38
|
+
const _inStockSubscriptionId = inStockSubscriptionId.id || inStockSubscriptionId;
|
39
|
+
return this.resources.fetch({ type: 'versions' }, `in_stock_subscriptions/${_inStockSubscriptionId}/versions`, params, options);
|
40
|
+
}
|
37
41
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
38
42
|
isInStockSubscription(resource) {
|
39
43
|
return resource.type && (resource.type === InStockSubscriptions.TYPE);
|
@@ -3,6 +3,7 @@ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
|
3
3
|
import type { InventoryStockLocation } from './inventory_stock_locations';
|
4
4
|
import type { InventoryReturnLocation } from './inventory_return_locations';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type InventoryModelRel = ResourceRel & {
|
7
8
|
type: typeof InventoryModels.TYPE;
|
8
9
|
};
|
@@ -10,19 +11,29 @@ interface InventoryModel extends Resource {
|
|
10
11
|
name?: string;
|
11
12
|
strategy?: string;
|
12
13
|
stock_locations_cutoff?: number;
|
14
|
+
stock_reservation_cutoff?: number;
|
15
|
+
put_stock_transfers_on_hold?: boolean;
|
16
|
+
manual_stock_decrement?: boolean;
|
13
17
|
inventory_stock_locations?: InventoryStockLocation[];
|
14
18
|
inventory_return_locations?: InventoryReturnLocation[];
|
15
19
|
attachments?: Attachment[];
|
20
|
+
versions?: Version[];
|
16
21
|
}
|
17
22
|
interface InventoryModelCreate extends ResourceCreate {
|
18
23
|
name: string;
|
19
24
|
strategy?: string;
|
20
25
|
stock_locations_cutoff?: number;
|
26
|
+
stock_reservation_cutoff?: number;
|
27
|
+
put_stock_transfers_on_hold?: boolean;
|
28
|
+
manual_stock_decrement?: boolean;
|
21
29
|
}
|
22
30
|
interface InventoryModelUpdate extends ResourceUpdate {
|
23
31
|
name?: string;
|
24
32
|
strategy?: string;
|
25
33
|
stock_locations_cutoff?: number;
|
34
|
+
stock_reservation_cutoff?: number;
|
35
|
+
put_stock_transfers_on_hold?: boolean;
|
36
|
+
manual_stock_decrement?: boolean;
|
26
37
|
}
|
27
38
|
declare class InventoryModels extends ApiResource {
|
28
39
|
static readonly TYPE: 'inventory_models';
|
@@ -34,6 +45,7 @@ declare class InventoryModels extends ApiResource {
|
|
34
45
|
inventory_stock_locations(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>>;
|
35
46
|
inventory_return_locations(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
|
36
47
|
attachments(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
48
|
+
versions(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
37
49
|
isInventoryModel(resource: any): resource is InventoryModel;
|
38
50
|
relationship(id: string | ResourceId | null): InventoryModelRel;
|
39
51
|
type(): string;
|
@@ -30,6 +30,10 @@ class InventoryModels extends resource_1.ApiResource {
|
|
30
30
|
const _inventoryModelId = inventoryModelId.id || inventoryModelId;
|
31
31
|
return this.resources.fetch({ type: 'attachments' }, `inventory_models/${_inventoryModelId}/attachments`, params, options);
|
32
32
|
}
|
33
|
+
async versions(inventoryModelId, params, options) {
|
34
|
+
const _inventoryModelId = inventoryModelId.id || inventoryModelId;
|
35
|
+
return this.resources.fetch({ type: 'versions' }, `inventory_models/${_inventoryModelId}/versions`, params, options);
|
36
|
+
}
|
33
37
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
34
38
|
isInventoryModel(resource) {
|
35
39
|
return resource.type && (resource.type === InventoryModels.TYPE);
|
@@ -2,6 +2,7 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig,
|
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { StockLocation } from './stock_locations';
|
4
4
|
import type { InventoryModel } from './inventory_models';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
type InventoryReturnLocationRel = ResourceRel & {
|
6
7
|
type: typeof InventoryReturnLocations.TYPE;
|
7
8
|
};
|
@@ -15,6 +16,7 @@ interface InventoryReturnLocation extends Resource {
|
|
15
16
|
priority?: number;
|
16
17
|
stock_location?: StockLocation;
|
17
18
|
inventory_model?: InventoryModel;
|
19
|
+
versions?: Version[];
|
18
20
|
}
|
19
21
|
interface InventoryReturnLocationCreate extends ResourceCreate {
|
20
22
|
priority: number;
|
@@ -35,6 +37,7 @@ declare class InventoryReturnLocations extends ApiResource {
|
|
35
37
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
36
38
|
stock_location(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
37
39
|
inventory_model(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
40
|
+
versions(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
38
41
|
isInventoryReturnLocation(resource: any): resource is InventoryReturnLocation;
|
39
42
|
relationship(id: string | ResourceId | null): InventoryReturnLocationRel;
|
40
43
|
type(): string;
|
@@ -26,6 +26,10 @@ class InventoryReturnLocations extends resource_1.ApiResource {
|
|
26
26
|
const _inventoryReturnLocationId = inventoryReturnLocationId.id || inventoryReturnLocationId;
|
27
27
|
return this.resources.fetch({ type: 'inventory_models' }, `inventory_return_locations/${_inventoryReturnLocationId}/inventory_model`, params, options);
|
28
28
|
}
|
29
|
+
async versions(inventoryReturnLocationId, params, options) {
|
30
|
+
const _inventoryReturnLocationId = inventoryReturnLocationId.id || inventoryReturnLocationId;
|
31
|
+
return this.resources.fetch({ type: 'versions' }, `inventory_return_locations/${_inventoryReturnLocationId}/versions`, params, options);
|
32
|
+
}
|
29
33
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
34
|
isInventoryReturnLocation(resource) {
|
31
35
|
return resource.type && (resource.type === InventoryReturnLocations.TYPE);
|
@@ -2,6 +2,7 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig,
|
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { StockLocation } from './stock_locations';
|
4
4
|
import type { InventoryModel } from './inventory_models';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
type InventoryStockLocationRel = ResourceRel & {
|
6
7
|
type: typeof InventoryStockLocations.TYPE;
|
7
8
|
};
|
@@ -16,6 +17,7 @@ interface InventoryStockLocation extends Resource {
|
|
16
17
|
on_hold?: boolean;
|
17
18
|
stock_location?: StockLocation;
|
18
19
|
inventory_model?: InventoryModel;
|
20
|
+
versions?: Version[];
|
19
21
|
}
|
20
22
|
interface InventoryStockLocationCreate extends ResourceCreate {
|
21
23
|
priority: number;
|
@@ -38,6 +40,7 @@ declare class InventoryStockLocations extends ApiResource {
|
|
38
40
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
39
41
|
stock_location(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
40
42
|
inventory_model(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
43
|
+
versions(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
41
44
|
isInventoryStockLocation(resource: any): resource is InventoryStockLocation;
|
42
45
|
relationship(id: string | ResourceId | null): InventoryStockLocationRel;
|
43
46
|
type(): string;
|
@@ -26,6 +26,10 @@ class InventoryStockLocations extends resource_1.ApiResource {
|
|
26
26
|
const _inventoryStockLocationId = inventoryStockLocationId.id || inventoryStockLocationId;
|
27
27
|
return this.resources.fetch({ type: 'inventory_models' }, `inventory_stock_locations/${_inventoryStockLocationId}/inventory_model`, params, options);
|
28
28
|
}
|
29
|
+
async versions(inventoryStockLocationId, params, options) {
|
30
|
+
const _inventoryStockLocationId = inventoryStockLocationId.id || inventoryStockLocationId;
|
31
|
+
return this.resources.fetch({ type: 'versions' }, `inventory_stock_locations/${_inventoryStockLocationId}/versions`, params, options);
|
32
|
+
}
|
29
33
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
34
|
isInventoryStockLocation(resource) {
|
31
35
|
return resource.type && (resource.type === InventoryStockLocations.TYPE);
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { PaymentMethod } from './payment_methods';
|
4
|
+
import type { Version } from './versions';
|
4
5
|
import type { KlarnaPayment } from './klarna_payments';
|
5
6
|
type KlarnaGatewayRel = ResourceRel & {
|
6
7
|
type: typeof KlarnaGateways.TYPE;
|
@@ -11,6 +12,7 @@ type KlarnaPaymentRel = ResourceRel & {
|
|
11
12
|
interface KlarnaGateway extends Resource {
|
12
13
|
name?: string;
|
13
14
|
payment_methods?: PaymentMethod[];
|
15
|
+
versions?: Version[];
|
14
16
|
klarna_payments?: KlarnaPayment[];
|
15
17
|
}
|
16
18
|
interface KlarnaGatewayCreate extends ResourceCreate {
|
@@ -35,6 +37,7 @@ declare class KlarnaGateways extends ApiResource {
|
|
35
37
|
update(resource: KlarnaGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaGateway>;
|
36
38
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
37
39
|
payment_methods(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
40
|
+
versions(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
38
41
|
klarna_payments(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>>;
|
39
42
|
isKlarnaGateway(resource: any): resource is KlarnaGateway;
|
40
43
|
relationship(id: string | ResourceId | null): KlarnaGatewayRel;
|
@@ -22,6 +22,10 @@ class KlarnaGateways extends resource_1.ApiResource {
|
|
22
22
|
const _klarnaGatewayId = klarnaGatewayId.id || klarnaGatewayId;
|
23
23
|
return this.resources.fetch({ type: 'payment_methods' }, `klarna_gateways/${_klarnaGatewayId}/payment_methods`, params, options);
|
24
24
|
}
|
25
|
+
async versions(klarnaGatewayId, params, options) {
|
26
|
+
const _klarnaGatewayId = klarnaGatewayId.id || klarnaGatewayId;
|
27
|
+
return this.resources.fetch({ type: 'versions' }, `klarna_gateways/${_klarnaGatewayId}/versions`, params, options);
|
28
|
+
}
|
25
29
|
async klarna_payments(klarnaGatewayId, params, options) {
|
26
30
|
const _klarnaGatewayId = klarnaGatewayId.id || klarnaGatewayId;
|
27
31
|
return this.resources.fetch({ type: 'klarna_payments' }, `klarna_gateways/${_klarnaGatewayId}/klarna_payments`, params, options);
|
@@ -2,6 +2,7 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig,
|
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Order } from './orders';
|
4
4
|
import type { PaymentGateway } from './payment_gateways';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
type KlarnaPaymentRel = ResourceRel & {
|
6
7
|
type: typeof KlarnaPayments.TYPE;
|
7
8
|
};
|
@@ -20,6 +21,7 @@ interface KlarnaPayment extends Resource {
|
|
20
21
|
payment_instrument?: object;
|
21
22
|
order?: Order;
|
22
23
|
payment_gateway?: PaymentGateway;
|
24
|
+
versions?: Version[];
|
23
25
|
}
|
24
26
|
interface KlarnaPaymentCreate extends ResourceCreate {
|
25
27
|
order: OrderRel;
|
@@ -38,6 +40,7 @@ declare class KlarnaPayments extends ApiResource {
|
|
38
40
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
39
41
|
order(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
40
42
|
payment_gateway(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
43
|
+
versions(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
41
44
|
isKlarnaPayment(resource: any): resource is KlarnaPayment;
|
42
45
|
relationship(id: string | ResourceId | null): KlarnaPaymentRel;
|
43
46
|
type(): string;
|
@@ -26,6 +26,10 @@ class KlarnaPayments extends resource_1.ApiResource {
|
|
26
26
|
const _klarnaPaymentId = klarnaPaymentId.id || klarnaPaymentId;
|
27
27
|
return this.resources.fetch({ type: 'payment_gateways' }, `klarna_payments/${_klarnaPaymentId}/payment_gateway`, params, options);
|
28
28
|
}
|
29
|
+
async versions(klarnaPaymentId, params, options) {
|
30
|
+
const _klarnaPaymentId = klarnaPaymentId.id || klarnaPaymentId;
|
31
|
+
return this.resources.fetch({ type: 'versions' }, `klarna_payments/${_klarnaPaymentId}/versions`, params, options);
|
32
|
+
}
|
29
33
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
34
|
isKlarnaPayment(resource) {
|
31
35
|
return resource.type && (resource.type === KlarnaPayments.TYPE);
|
@@ -2,6 +2,8 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig,
|
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { LineItem } from './line_items';
|
4
4
|
import type { SkuOption } from './sku_options';
|
5
|
+
import type { Event } from './events';
|
6
|
+
import type { Tag } from './tags';
|
5
7
|
type LineItemOptionRel = ResourceRel & {
|
6
8
|
type: typeof LineItemOptions.TYPE;
|
7
9
|
};
|
@@ -11,6 +13,9 @@ type LineItemRel = ResourceRel & {
|
|
11
13
|
type SkuOptionRel = ResourceRel & {
|
12
14
|
type: 'sku_options';
|
13
15
|
};
|
16
|
+
type TagRel = ResourceRel & {
|
17
|
+
type: 'tags';
|
18
|
+
};
|
14
19
|
interface LineItemOption extends Resource {
|
15
20
|
name?: string;
|
16
21
|
quantity?: number;
|
@@ -26,6 +31,8 @@ interface LineItemOption extends Resource {
|
|
26
31
|
options?: object;
|
27
32
|
line_item?: LineItem;
|
28
33
|
sku_option?: SkuOption;
|
34
|
+
events?: Event[];
|
35
|
+
tags?: Tag[];
|
29
36
|
}
|
30
37
|
interface LineItemOptionCreate extends ResourceCreate {
|
31
38
|
name?: string;
|
@@ -33,12 +40,14 @@ interface LineItemOptionCreate extends ResourceCreate {
|
|
33
40
|
options: object;
|
34
41
|
line_item: LineItemRel;
|
35
42
|
sku_option: SkuOptionRel;
|
43
|
+
tags?: TagRel[];
|
36
44
|
}
|
37
45
|
interface LineItemOptionUpdate extends ResourceUpdate {
|
38
46
|
name?: string;
|
39
47
|
quantity?: number;
|
40
48
|
options?: object;
|
41
49
|
sku_option?: SkuOptionRel;
|
50
|
+
tags?: TagRel[];
|
42
51
|
}
|
43
52
|
declare class LineItemOptions extends ApiResource {
|
44
53
|
static readonly TYPE: 'line_item_options';
|
@@ -49,6 +58,8 @@ declare class LineItemOptions extends ApiResource {
|
|
49
58
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
50
59
|
line_item(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
51
60
|
sku_option(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuOption>;
|
61
|
+
events(lineItemOptionId: string | LineItemOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
62
|
+
tags(lineItemOptionId: string | LineItemOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
52
63
|
isLineItemOption(resource: any): resource is LineItemOption;
|
53
64
|
relationship(id: string | ResourceId | null): LineItemOptionRel;
|
54
65
|
type(): string;
|
@@ -26,6 +26,14 @@ class LineItemOptions extends resource_1.ApiResource {
|
|
26
26
|
const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
|
27
27
|
return this.resources.fetch({ type: 'sku_options' }, `line_item_options/${_lineItemOptionId}/sku_option`, params, options);
|
28
28
|
}
|
29
|
+
async events(lineItemOptionId, params, options) {
|
30
|
+
const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
|
31
|
+
return this.resources.fetch({ type: 'events' }, `line_item_options/${_lineItemOptionId}/events`, params, options);
|
32
|
+
}
|
33
|
+
async tags(lineItemOptionId, params, options) {
|
34
|
+
const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
|
35
|
+
return this.resources.fetch({ type: 'tags' }, `line_item_options/${_lineItemOptionId}/tags`, params, options);
|
36
|
+
}
|
29
37
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
38
|
isLineItemOption(resource) {
|
31
39
|
return resource.type && (resource.type === LineItemOptions.TYPE);
|
@@ -12,8 +12,12 @@ import type { PercentageDiscountPromotion } from './percentage_discount_promotio
|
|
12
12
|
import type { Shipment } from './shipments';
|
13
13
|
import type { Sku } from './skus';
|
14
14
|
import type { LineItemOption } from './line_item_options';
|
15
|
+
import type { ReturnLineItem } from './return_line_items';
|
16
|
+
import type { StockReservation } from './stock_reservations';
|
15
17
|
import type { StockLineItem } from './stock_line_items';
|
16
18
|
import type { StockTransfer } from './stock_transfers';
|
19
|
+
import type { Event } from './events';
|
20
|
+
import type { Tag } from './tags';
|
17
21
|
type LineItemRel = ResourceRel & {
|
18
22
|
type: typeof LineItems.TYPE;
|
19
23
|
};
|
@@ -50,14 +54,21 @@ type ShipmentRel = ResourceRel & {
|
|
50
54
|
type SkuRel = ResourceRel & {
|
51
55
|
type: 'skus';
|
52
56
|
};
|
57
|
+
type TagRel = ResourceRel & {
|
58
|
+
type: 'tags';
|
59
|
+
};
|
53
60
|
interface LineItem extends Resource {
|
54
61
|
sku_code?: string;
|
55
62
|
bundle_code?: string;
|
56
63
|
quantity?: number;
|
64
|
+
_external_price?: boolean;
|
57
65
|
currency_code?: string;
|
58
66
|
unit_amount_cents?: number;
|
59
67
|
unit_amount_float?: number;
|
60
68
|
formatted_unit_amount?: string;
|
69
|
+
compare_at_amount_cents?: number;
|
70
|
+
compare_at_amount_float?: number;
|
71
|
+
formatted_compare_at_amount?: string;
|
61
72
|
options_amount_cents?: number;
|
62
73
|
options_amount_float?: number;
|
63
74
|
formatted_options_amount?: string;
|
@@ -77,15 +88,22 @@ interface LineItem extends Resource {
|
|
77
88
|
tax_breakdown?: object;
|
78
89
|
item_type?: string;
|
79
90
|
frequency?: string;
|
91
|
+
coupon_code?: string;
|
80
92
|
order?: Order;
|
81
93
|
item?: Adjustment | Bundle | ExternalPromotion | FixedAmountPromotion | FreeShippingPromotion | GiftCard | PaymentMethod | PercentageDiscountPromotion | Shipment | Sku;
|
94
|
+
sku?: Sku;
|
95
|
+
bundle?: Bundle;
|
82
96
|
line_item_options?: LineItemOption[];
|
97
|
+
return_line_items?: ReturnLineItem[];
|
83
98
|
/**
|
84
99
|
* @deprecated This field should not be used as it may be removed in the future without notice
|
85
100
|
*/
|
86
101
|
shipment_line_items?: object[];
|
102
|
+
stock_reservations?: StockReservation[];
|
87
103
|
stock_line_items?: StockLineItem[];
|
88
104
|
stock_transfers?: StockTransfer[];
|
105
|
+
events?: Event[];
|
106
|
+
tags?: Tag[];
|
89
107
|
}
|
90
108
|
interface LineItemCreate extends ResourceCreate {
|
91
109
|
sku_code?: string;
|
@@ -93,22 +111,30 @@ interface LineItemCreate extends ResourceCreate {
|
|
93
111
|
quantity: number;
|
94
112
|
_external_price?: boolean;
|
95
113
|
_update_quantity?: boolean;
|
114
|
+
_reserve_stock?: boolean;
|
96
115
|
unit_amount_cents?: number;
|
116
|
+
compare_at_amount_cents?: number;
|
97
117
|
name?: string;
|
98
118
|
image_url?: string;
|
99
119
|
item_type?: string;
|
100
120
|
frequency?: string;
|
101
121
|
order: OrderRel;
|
102
122
|
item?: AdjustmentRel | BundleRel | ExternalPromotionRel | FixedAmountPromotionRel | FreeShippingPromotionRel | GiftCardRel | PaymentMethodRel | PercentageDiscountPromotionRel | ShipmentRel | SkuRel;
|
123
|
+
sku?: SkuRel;
|
124
|
+
bundle?: BundleRel;
|
125
|
+
tags?: TagRel[];
|
103
126
|
}
|
104
127
|
interface LineItemUpdate extends ResourceUpdate {
|
105
128
|
sku_code?: string;
|
106
129
|
bundle_code?: string;
|
107
130
|
quantity?: number;
|
108
131
|
_external_price?: boolean;
|
132
|
+
_reserve_stock?: boolean;
|
133
|
+
compare_at_amount_cents?: number;
|
109
134
|
name?: string;
|
110
135
|
image_url?: string;
|
111
136
|
frequency?: string;
|
137
|
+
tags?: TagRel[];
|
112
138
|
}
|
113
139
|
declare class LineItems extends ApiResource {
|
114
140
|
static readonly TYPE: 'line_items';
|
@@ -119,8 +145,12 @@ declare class LineItems extends ApiResource {
|
|
119
145
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
120
146
|
order(lineItemId: string | LineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
121
147
|
line_item_options(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>>;
|
148
|
+
return_line_items(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ReturnLineItem>>;
|
149
|
+
stock_reservations(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
|
122
150
|
stock_line_items(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
|
123
151
|
stock_transfers(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
|
152
|
+
events(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
153
|
+
tags(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
124
154
|
isLineItem(resource: any): resource is LineItem;
|
125
155
|
relationship(id: string | ResourceId | null): LineItemRel;
|
126
156
|
type(): string;
|
@@ -26,6 +26,14 @@ class LineItems extends resource_1.ApiResource {
|
|
26
26
|
const _lineItemId = lineItemId.id || lineItemId;
|
27
27
|
return this.resources.fetch({ type: 'line_item_options' }, `line_items/${_lineItemId}/line_item_options`, params, options);
|
28
28
|
}
|
29
|
+
async return_line_items(lineItemId, params, options) {
|
30
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
31
|
+
return this.resources.fetch({ type: 'return_line_items' }, `line_items/${_lineItemId}/return_line_items`, params, options);
|
32
|
+
}
|
33
|
+
async stock_reservations(lineItemId, params, options) {
|
34
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
35
|
+
return this.resources.fetch({ type: 'stock_reservations' }, `line_items/${_lineItemId}/stock_reservations`, params, options);
|
36
|
+
}
|
29
37
|
async stock_line_items(lineItemId, params, options) {
|
30
38
|
const _lineItemId = lineItemId.id || lineItemId;
|
31
39
|
return this.resources.fetch({ type: 'stock_line_items' }, `line_items/${_lineItemId}/stock_line_items`, params, options);
|
@@ -34,6 +42,14 @@ class LineItems extends resource_1.ApiResource {
|
|
34
42
|
const _lineItemId = lineItemId.id || lineItemId;
|
35
43
|
return this.resources.fetch({ type: 'stock_transfers' }, `line_items/${_lineItemId}/stock_transfers`, params, options);
|
36
44
|
}
|
45
|
+
async events(lineItemId, params, options) {
|
46
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
47
|
+
return this.resources.fetch({ type: 'events' }, `line_items/${_lineItemId}/events`, params, options);
|
48
|
+
}
|
49
|
+
async tags(lineItemId, params, options) {
|
50
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
51
|
+
return this.resources.fetch({ type: 'tags' }, `line_items/${_lineItemId}/tags`, params, options);
|
52
|
+
}
|
37
53
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
38
54
|
isLineItem(resource) {
|
39
55
|
return resource.type && (resource.type === LineItems.TYPE);
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { PaymentMethod } from './payment_methods';
|
4
|
+
import type { Version } from './versions';
|
4
5
|
type ManualGatewayRel = ResourceRel & {
|
5
6
|
type: typeof ManualGateways.TYPE;
|
6
7
|
};
|
7
8
|
interface ManualGateway extends Resource {
|
8
9
|
name?: string;
|
9
10
|
payment_methods?: PaymentMethod[];
|
11
|
+
versions?: Version[];
|
10
12
|
}
|
11
13
|
interface ManualGatewayCreate extends ResourceCreate {
|
12
14
|
name: string;
|
@@ -22,6 +24,7 @@ declare class ManualGateways extends ApiResource {
|
|
22
24
|
update(resource: ManualGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
|
23
25
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
24
26
|
payment_methods(manualGatewayId: string | ManualGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
27
|
+
versions(manualGatewayId: string | ManualGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
25
28
|
isManualGateway(resource: any): resource is ManualGateway;
|
26
29
|
relationship(id: string | ResourceId | null): ManualGatewayRel;
|
27
30
|
type(): string;
|
@@ -22,6 +22,10 @@ class ManualGateways extends resource_1.ApiResource {
|
|
22
22
|
const _manualGatewayId = manualGatewayId.id || manualGatewayId;
|
23
23
|
return this.resources.fetch({ type: 'payment_methods' }, `manual_gateways/${_manualGatewayId}/payment_methods`, params, options);
|
24
24
|
}
|
25
|
+
async versions(manualGatewayId, params, options) {
|
26
|
+
const _manualGatewayId = manualGatewayId.id || manualGatewayId;
|
27
|
+
return this.resources.fetch({ type: 'versions' }, `manual_gateways/${_manualGatewayId}/versions`, params, options);
|
28
|
+
}
|
25
29
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
26
30
|
isManualGateway(resource) {
|
27
31
|
return resource.type && (resource.type === ManualGateways.TYPE);
|
@@ -2,6 +2,7 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig,
|
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Market } from './markets';
|
4
4
|
import type { Attachment } from './attachments';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
import type { TaxRule } from './tax_rules';
|
6
7
|
type ManualTaxCalculatorRel = ResourceRel & {
|
7
8
|
type: typeof ManualTaxCalculators.TYPE;
|
@@ -13,6 +14,7 @@ interface ManualTaxCalculator extends Resource {
|
|
13
14
|
name?: string;
|
14
15
|
markets?: Market[];
|
15
16
|
attachments?: Attachment[];
|
17
|
+
versions?: Version[];
|
16
18
|
tax_rules?: TaxRule[];
|
17
19
|
}
|
18
20
|
interface ManualTaxCalculatorCreate extends ResourceCreate {
|
@@ -32,6 +34,7 @@ declare class ManualTaxCalculators extends ApiResource {
|
|
32
34
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
33
35
|
markets(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
|
34
36
|
attachments(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
37
|
+
versions(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
35
38
|
tax_rules(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxRule>>;
|
36
39
|
isManualTaxCalculator(resource: any): resource is ManualTaxCalculator;
|
37
40
|
relationship(id: string | ResourceId | null): ManualTaxCalculatorRel;
|
@@ -26,6 +26,10 @@ class ManualTaxCalculators extends resource_1.ApiResource {
|
|
26
26
|
const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
|
27
27
|
return this.resources.fetch({ type: 'attachments' }, `manual_tax_calculators/${_manualTaxCalculatorId}/attachments`, params, options);
|
28
28
|
}
|
29
|
+
async versions(manualTaxCalculatorId, params, options) {
|
30
|
+
const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
|
31
|
+
return this.resources.fetch({ type: 'versions' }, `manual_tax_calculators/${_manualTaxCalculatorId}/versions`, params, options);
|
32
|
+
}
|
29
33
|
async tax_rules(manualTaxCalculatorId, params, options) {
|
30
34
|
const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
|
31
35
|
return this.resources.fetch({ type: 'tax_rules' }, `manual_tax_calculators/${_manualTaxCalculatorId}/tax_rules`, params, options);
|