@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
@@ -7,6 +7,7 @@ import type { SubscriptionModel } from './subscription_models';
|
|
7
7
|
import type { TaxCalculator } from './tax_calculators';
|
8
8
|
import type { CustomerGroup } from './customer_groups';
|
9
9
|
import type { Attachment } from './attachments';
|
10
|
+
import type { Version } from './versions';
|
10
11
|
type MarketRel = ResourceRel & {
|
11
12
|
type: typeof Markets.TYPE;
|
12
13
|
};
|
@@ -31,6 +32,7 @@ type CustomerGroupRel = ResourceRel & {
|
|
31
32
|
interface Market extends Resource {
|
32
33
|
number?: number;
|
33
34
|
name?: string;
|
35
|
+
code?: string;
|
34
36
|
facebook_pixel_id?: string;
|
35
37
|
checkout_url?: string;
|
36
38
|
external_prices_url?: string;
|
@@ -45,13 +47,17 @@ interface Market extends Resource {
|
|
45
47
|
tax_calculator?: TaxCalculator;
|
46
48
|
customer_group?: CustomerGroup;
|
47
49
|
attachments?: Attachment[];
|
50
|
+
versions?: Version[];
|
48
51
|
}
|
49
52
|
interface MarketCreate extends ResourceCreate {
|
50
53
|
name: string;
|
54
|
+
code?: string;
|
51
55
|
facebook_pixel_id?: string;
|
52
56
|
checkout_url?: string;
|
53
57
|
external_prices_url?: string;
|
54
58
|
external_order_validation_url?: string;
|
59
|
+
_disable?: boolean;
|
60
|
+
_enable?: boolean;
|
55
61
|
merchant: MerchantRel;
|
56
62
|
price_list: PriceListRel;
|
57
63
|
inventory_model: InventoryModelRel;
|
@@ -61,6 +67,7 @@ interface MarketCreate extends ResourceCreate {
|
|
61
67
|
}
|
62
68
|
interface MarketUpdate extends ResourceUpdate {
|
63
69
|
name?: string;
|
70
|
+
code?: string;
|
64
71
|
facebook_pixel_id?: string;
|
65
72
|
checkout_url?: string;
|
66
73
|
external_prices_url?: string;
|
@@ -88,6 +95,7 @@ declare class Markets extends ApiResource {
|
|
88
95
|
tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCalculator>;
|
89
96
|
customer_group(marketId: string | Market, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
|
90
97
|
attachments(marketId: string | Market, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
98
|
+
versions(marketId: string | Market, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
91
99
|
isMarket(resource: any): resource is Market;
|
92
100
|
relationship(id: string | ResourceId | null): MarketRel;
|
93
101
|
type(): string;
|
@@ -46,6 +46,10 @@ class Markets extends resource_1.ApiResource {
|
|
46
46
|
const _marketId = marketId.id || marketId;
|
47
47
|
return this.resources.fetch({ type: 'attachments' }, `markets/${_marketId}/attachments`, params, options);
|
48
48
|
}
|
49
|
+
async versions(marketId, params, options) {
|
50
|
+
const _marketId = marketId.id || marketId;
|
51
|
+
return this.resources.fetch({ type: 'versions' }, `markets/${_marketId}/versions`, params, options);
|
52
|
+
}
|
49
53
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
50
54
|
isMarket(resource) {
|
51
55
|
return resource.type && (resource.type === Markets.TYPE);
|
@@ -2,6 +2,7 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig,
|
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Address } from './addresses';
|
4
4
|
import type { Attachment } from './attachments';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
type MerchantRel = ResourceRel & {
|
6
7
|
type: typeof Merchants.TYPE;
|
7
8
|
};
|
@@ -12,6 +13,7 @@ interface Merchant extends Resource {
|
|
12
13
|
name?: string;
|
13
14
|
address?: Address;
|
14
15
|
attachments?: Attachment[];
|
16
|
+
versions?: Version[];
|
15
17
|
}
|
16
18
|
interface MerchantCreate extends ResourceCreate {
|
17
19
|
name: string;
|
@@ -30,6 +32,7 @@ declare class Merchants extends ApiResource {
|
|
30
32
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
31
33
|
address(merchantId: string | Merchant, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
|
32
34
|
attachments(merchantId: string | Merchant, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
35
|
+
versions(merchantId: string | Merchant, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
33
36
|
isMerchant(resource: any): resource is Merchant;
|
34
37
|
relationship(id: string | ResourceId | null): MerchantRel;
|
35
38
|
type(): string;
|
@@ -26,6 +26,10 @@ class Merchants extends resource_1.ApiResource {
|
|
26
26
|
const _merchantId = merchantId.id || merchantId;
|
27
27
|
return this.resources.fetch({ type: 'attachments' }, `merchants/${_merchantId}/attachments`, params, options);
|
28
28
|
}
|
29
|
+
async versions(merchantId, params, options) {
|
30
|
+
const _merchantId = merchantId.id || merchantId;
|
31
|
+
return this.resources.fetch({ type: 'versions' }, `merchants/${_merchantId}/versions`, params, options);
|
32
|
+
}
|
29
33
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
34
|
isMerchant(resource) {
|
31
35
|
return resource.type && (resource.type === Merchants.TYPE);
|
@@ -2,10 +2,12 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig,
|
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
4
4
|
import type { FreeShippingPromotion } from './free_shipping_promotions';
|
5
|
+
import type { BuyXPayYPromotion } from './buy_x_pay_y_promotions';
|
5
6
|
import type { FreeGiftPromotion } from './free_gift_promotions';
|
6
7
|
import type { FixedPricePromotion } from './fixed_price_promotions';
|
7
8
|
import type { ExternalPromotion } from './external_promotions';
|
8
9
|
import type { FixedAmountPromotion } from './fixed_amount_promotions';
|
10
|
+
import type { Version } from './versions';
|
9
11
|
type OrderAmountPromotionRuleRel = ResourceRel & {
|
10
12
|
type: typeof OrderAmountPromotionRules.TYPE;
|
11
13
|
};
|
@@ -15,6 +17,9 @@ type PercentageDiscountPromotionRel = ResourceRel & {
|
|
15
17
|
type FreeShippingPromotionRel = ResourceRel & {
|
16
18
|
type: 'free_shipping_promotions';
|
17
19
|
};
|
20
|
+
type BuyXPayYPromotionRel = ResourceRel & {
|
21
|
+
type: 'buy_x_pay_y_promotions';
|
22
|
+
};
|
18
23
|
type FreeGiftPromotionRel = ResourceRel & {
|
19
24
|
type: 'free_gift_promotions';
|
20
25
|
};
|
@@ -31,15 +36,19 @@ interface OrderAmountPromotionRule extends Resource {
|
|
31
36
|
order_amount_cents?: number;
|
32
37
|
order_amount_float?: number;
|
33
38
|
formatted_order_amount?: string;
|
34
|
-
|
39
|
+
use_subtotal?: boolean;
|
40
|
+
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion;
|
41
|
+
versions?: Version[];
|
35
42
|
}
|
36
43
|
interface OrderAmountPromotionRuleCreate extends ResourceCreate {
|
37
44
|
order_amount_cents?: number;
|
38
|
-
|
45
|
+
use_subtotal?: boolean;
|
46
|
+
promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel;
|
39
47
|
}
|
40
48
|
interface OrderAmountPromotionRuleUpdate extends ResourceUpdate {
|
41
49
|
order_amount_cents?: number;
|
42
|
-
|
50
|
+
use_subtotal?: boolean;
|
51
|
+
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel;
|
43
52
|
}
|
44
53
|
declare class OrderAmountPromotionRules extends ApiResource {
|
45
54
|
static readonly TYPE: 'order_amount_promotion_rules';
|
@@ -48,6 +57,7 @@ declare class OrderAmountPromotionRules extends ApiResource {
|
|
48
57
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
49
58
|
update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
50
59
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
60
|
+
versions(orderAmountPromotionRuleId: string | OrderAmountPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
51
61
|
isOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule;
|
52
62
|
relationship(id: string | ResourceId | null): OrderAmountPromotionRuleRel;
|
53
63
|
type(): string;
|
@@ -18,6 +18,10 @@ class OrderAmountPromotionRules extends resource_1.ApiResource {
|
|
18
18
|
async delete(id, options) {
|
19
19
|
await this.resources.delete({ type: OrderAmountPromotionRules.TYPE, id }, options);
|
20
20
|
}
|
21
|
+
async versions(orderAmountPromotionRuleId, params, options) {
|
22
|
+
const _orderAmountPromotionRuleId = orderAmountPromotionRuleId.id || orderAmountPromotionRuleId;
|
23
|
+
return this.resources.fetch({ type: 'versions' }, `order_amount_promotion_rules/${_orderAmountPromotionRuleId}/versions`, params, options);
|
24
|
+
}
|
21
25
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
22
26
|
isOrderAmountPromotionRule(resource) {
|
23
27
|
return resource.type && (resource.type === OrderAmountPromotionRules.TYPE);
|
@@ -4,6 +4,7 @@ import type { OrderSubscription } from './order_subscriptions';
|
|
4
4
|
import type { Adjustment } from './adjustments';
|
5
5
|
import type { Bundle } from './bundles';
|
6
6
|
import type { Sku } from './skus';
|
7
|
+
import type { LineItem } from './line_items';
|
7
8
|
type OrderSubscriptionItemRel = ResourceRel & {
|
8
9
|
type: typeof OrderSubscriptionItems.TYPE;
|
9
10
|
};
|
@@ -29,6 +30,9 @@ interface OrderSubscriptionItem extends Resource {
|
|
29
30
|
formatted_total_amount?: string;
|
30
31
|
order_subscription?: OrderSubscription;
|
31
32
|
item?: Adjustment | Bundle | Sku;
|
33
|
+
sku?: Sku;
|
34
|
+
bundle?: Bundle;
|
35
|
+
source_line_item?: LineItem;
|
32
36
|
}
|
33
37
|
interface OrderSubscriptionItemCreate extends ResourceCreate {
|
34
38
|
sku_code?: string;
|
@@ -37,6 +41,8 @@ interface OrderSubscriptionItemCreate extends ResourceCreate {
|
|
37
41
|
unit_amount_cents?: number;
|
38
42
|
order_subscription: OrderSubscriptionRel;
|
39
43
|
item: AdjustmentRel | BundleRel | SkuRel;
|
44
|
+
sku?: SkuRel;
|
45
|
+
bundle?: BundleRel;
|
40
46
|
}
|
41
47
|
interface OrderSubscriptionItemUpdate extends ResourceUpdate {
|
42
48
|
sku_code?: string;
|
@@ -52,6 +58,7 @@ declare class OrderSubscriptionItems extends ApiResource {
|
|
52
58
|
update(resource: OrderSubscriptionItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscriptionItem>;
|
53
59
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
54
60
|
order_subscription(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
61
|
+
source_line_item(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
55
62
|
isOrderSubscriptionItem(resource: any): resource is OrderSubscriptionItem;
|
56
63
|
relationship(id: string | ResourceId | null): OrderSubscriptionItemRel;
|
57
64
|
type(): string;
|
@@ -22,6 +22,10 @@ class OrderSubscriptionItems extends resource_1.ApiResource {
|
|
22
22
|
const _orderSubscriptionItemId = orderSubscriptionItemId.id || orderSubscriptionItemId;
|
23
23
|
return this.resources.fetch({ type: 'order_subscriptions' }, `order_subscription_items/${_orderSubscriptionItemId}/order_subscription`, params, options);
|
24
24
|
}
|
25
|
+
async source_line_item(orderSubscriptionItemId, params, options) {
|
26
|
+
const _orderSubscriptionItemId = orderSubscriptionItemId.id || orderSubscriptionItemId;
|
27
|
+
return this.resources.fetch({ type: 'line_items' }, `order_subscription_items/${_orderSubscriptionItemId}/source_line_item`, params, options);
|
28
|
+
}
|
25
29
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
26
30
|
isOrderSubscriptionItem(resource) {
|
27
31
|
return resource.type && (resource.type === OrderSubscriptionItems.TYPE);
|
@@ -9,6 +9,7 @@ import type { OrderSubscriptionItem } from './order_subscription_items';
|
|
9
9
|
import type { OrderFactory } from './order_factories';
|
10
10
|
import type { RecurringOrderCopy } from './recurring_order_copies';
|
11
11
|
import type { Event } from './events';
|
12
|
+
import type { Version } from './versions';
|
12
13
|
type OrderSubscriptionRel = ResourceRel & {
|
13
14
|
type: typeof OrderSubscriptions.TYPE;
|
14
15
|
};
|
@@ -29,6 +30,7 @@ interface OrderSubscription extends Resource {
|
|
29
30
|
customer_email?: string;
|
30
31
|
starts_at?: string;
|
31
32
|
expires_at?: string;
|
33
|
+
last_run_at?: string;
|
32
34
|
next_run_at?: string;
|
33
35
|
occurrencies?: number;
|
34
36
|
errors_count?: number;
|
@@ -48,6 +50,7 @@ interface OrderSubscription extends Resource {
|
|
48
50
|
recurring_order_copies?: RecurringOrderCopy[];
|
49
51
|
orders?: Order[];
|
50
52
|
events?: Event[];
|
53
|
+
versions?: Version[];
|
51
54
|
}
|
52
55
|
interface OrderSubscriptionCreate extends ResourceCreate {
|
53
56
|
frequency: string;
|
@@ -84,6 +87,7 @@ declare class OrderSubscriptions extends ApiResource {
|
|
84
87
|
recurring_order_copies(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<RecurringOrderCopy>>;
|
85
88
|
orders(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Order>>;
|
86
89
|
events(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
90
|
+
versions(orderSubscriptionId: string | OrderSubscription, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
87
91
|
isOrderSubscription(resource: any): resource is OrderSubscription;
|
88
92
|
relationship(id: string | ResourceId | null): OrderSubscriptionRel;
|
89
93
|
type(): string;
|
@@ -58,6 +58,10 @@ class OrderSubscriptions extends resource_1.ApiResource {
|
|
58
58
|
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
59
59
|
return this.resources.fetch({ type: 'events' }, `order_subscriptions/${_orderSubscriptionId}/events`, params, options);
|
60
60
|
}
|
61
|
+
async versions(orderSubscriptionId, params, options) {
|
62
|
+
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
63
|
+
return this.resources.fetch({ type: 'versions' }, `order_subscriptions/${_orderSubscriptionId}/versions`, params, options);
|
64
|
+
}
|
61
65
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
62
66
|
isOrderSubscription(resource) {
|
63
67
|
return resource.type && (resource.type === OrderSubscriptions.TYPE);
|
@@ -2,12 +2,14 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListRe
|
|
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
|
type OrderValidationRuleRel = ResourceRel & {
|
6
7
|
type: typeof OrderValidationRules.TYPE;
|
7
8
|
};
|
8
9
|
interface OrderValidationRule extends Resource {
|
9
10
|
market?: Market;
|
10
11
|
attachments?: Attachment[];
|
12
|
+
versions?: Version[];
|
11
13
|
}
|
12
14
|
declare class OrderValidationRules extends ApiResource {
|
13
15
|
static readonly TYPE: 'order_validation_rules';
|
@@ -15,6 +17,7 @@ declare class OrderValidationRules extends ApiResource {
|
|
15
17
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderValidationRule>;
|
16
18
|
market(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
17
19
|
attachments(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
20
|
+
versions(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
18
21
|
isOrderValidationRule(resource: any): resource is OrderValidationRule;
|
19
22
|
relationship(id: string | ResourceId | null): OrderValidationRuleRel;
|
20
23
|
type(): string;
|
@@ -17,6 +17,10 @@ class OrderValidationRules extends resource_1.ApiResource {
|
|
17
17
|
const _orderValidationRuleId = orderValidationRuleId.id || orderValidationRuleId;
|
18
18
|
return this.resources.fetch({ type: 'attachments' }, `order_validation_rules/${_orderValidationRuleId}/attachments`, params, options);
|
19
19
|
}
|
20
|
+
async versions(orderValidationRuleId, params, options) {
|
21
|
+
const _orderValidationRuleId = orderValidationRuleId.id || orderValidationRuleId;
|
22
|
+
return this.resources.fetch({ type: 'versions' }, `order_validation_rules/${_orderValidationRuleId}/versions`, params, options);
|
23
|
+
}
|
20
24
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
21
25
|
isOrderValidationRule(resource) {
|
22
26
|
return resource.type && (resource.type === OrderValidationRules.TYPE);
|
@@ -18,10 +18,15 @@ import type { SatispayPayment } from './satispay_payments';
|
|
18
18
|
import type { StripePayment } from './stripe_payments';
|
19
19
|
import type { WireTransfer } from './wire_transfers';
|
20
20
|
import type { LineItem } from './line_items';
|
21
|
+
import type { LineItemOption } from './line_item_options';
|
22
|
+
import type { StockReservation } from './stock_reservations';
|
23
|
+
import type { StockLineItem } from './stock_line_items';
|
24
|
+
import type { StockTransfer } from './stock_transfers';
|
21
25
|
import type { Shipment } from './shipments';
|
26
|
+
import type { PaymentOption } from './payment_options';
|
22
27
|
import type { Authorization } from './authorizations';
|
23
|
-
import type { Void } from './voids';
|
24
28
|
import type { Capture } from './captures';
|
29
|
+
import type { Void } from './voids';
|
25
30
|
import type { Refund } from './refunds';
|
26
31
|
import type { Return } from './returns';
|
27
32
|
import type { OrderSubscription } from './order_subscriptions';
|
@@ -30,6 +35,8 @@ import type { OrderCopy } from './order_copies';
|
|
30
35
|
import type { RecurringOrderCopy } from './recurring_order_copies';
|
31
36
|
import type { Attachment } from './attachments';
|
32
37
|
import type { Event } from './events';
|
38
|
+
import type { Tag } from './tags';
|
39
|
+
import type { Version } from './versions';
|
33
40
|
type OrderRel = ResourceRel & {
|
34
41
|
type: typeof Orders.TYPE;
|
35
42
|
};
|
@@ -75,8 +82,11 @@ type StripePaymentRel = ResourceRel & {
|
|
75
82
|
type WireTransferRel = ResourceRel & {
|
76
83
|
type: 'wire_transfers';
|
77
84
|
};
|
85
|
+
type TagRel = ResourceRel & {
|
86
|
+
type: 'tags';
|
87
|
+
};
|
78
88
|
interface Order extends Resource {
|
79
|
-
number?:
|
89
|
+
number?: string;
|
80
90
|
autorefresh?: boolean;
|
81
91
|
status?: string;
|
82
92
|
payment_status?: string;
|
@@ -89,12 +99,14 @@ interface Order extends Resource {
|
|
89
99
|
tax_included?: boolean;
|
90
100
|
tax_rate?: number;
|
91
101
|
freight_taxable?: boolean;
|
102
|
+
payment_method_taxable?: boolean;
|
103
|
+
adjustment_taxable?: boolean;
|
104
|
+
gift_card_taxable?: boolean;
|
92
105
|
requires_billing_info?: boolean;
|
93
106
|
country_code?: string;
|
94
107
|
shipping_country_code_lock?: string;
|
95
108
|
coupon_code?: string;
|
96
109
|
gift_card_code?: string;
|
97
|
-
gift_card_or_coupon_code?: string;
|
98
110
|
subtotal_amount_cents?: number;
|
99
111
|
subtotal_amount_float?: number;
|
100
112
|
formatted_subtotal_amount?: string;
|
@@ -155,10 +167,14 @@ interface Order extends Resource {
|
|
155
167
|
duty_amount_cents?: number;
|
156
168
|
duty_amount_float?: number;
|
157
169
|
formatted_duty_amount?: string;
|
170
|
+
place_total_amount_cents?: number;
|
171
|
+
place_total_amount_float?: number;
|
172
|
+
formatted_place_total_amount?: string;
|
158
173
|
skus_count?: number;
|
159
174
|
line_item_options_count?: number;
|
160
175
|
shipments_count?: number;
|
161
176
|
tax_calculations_count?: number;
|
177
|
+
validations_count?: number;
|
162
178
|
payment_source_details?: object;
|
163
179
|
token?: string;
|
164
180
|
cart_url?: string;
|
@@ -186,30 +202,42 @@ interface Order extends Resource {
|
|
186
202
|
payment_method?: PaymentMethod;
|
187
203
|
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer;
|
188
204
|
line_items?: LineItem[];
|
205
|
+
line_item_options?: LineItemOption[];
|
206
|
+
stock_reservations?: StockReservation[];
|
207
|
+
stock_line_items?: StockLineItem[];
|
208
|
+
stock_transfers?: StockTransfer[];
|
189
209
|
shipments?: Shipment[];
|
190
|
-
|
210
|
+
payment_options?: PaymentOption[];
|
211
|
+
transactions?: Array<Authorization | Capture | Void | Refund>;
|
191
212
|
authorizations?: Authorization[];
|
192
213
|
captures?: Capture[];
|
193
214
|
voids?: Void[];
|
194
215
|
refunds?: Refund[];
|
195
216
|
returns?: Return[];
|
217
|
+
order_subscription?: OrderSubscription;
|
196
218
|
order_subscriptions?: OrderSubscription[];
|
197
219
|
order_factories?: OrderFactory[];
|
198
220
|
order_copies?: OrderCopy[];
|
199
221
|
recurring_order_copies?: RecurringOrderCopy[];
|
200
222
|
attachments?: Attachment[];
|
201
223
|
events?: Event[];
|
224
|
+
tags?: Tag[];
|
225
|
+
versions?: Version[];
|
202
226
|
}
|
203
227
|
interface OrderCreate extends ResourceCreate {
|
228
|
+
number?: string;
|
204
229
|
autorefresh?: boolean;
|
205
230
|
guest?: boolean;
|
206
231
|
customer_email?: string;
|
207
232
|
customer_password?: string;
|
208
233
|
language_code?: string;
|
234
|
+
freight_taxable?: boolean;
|
235
|
+
payment_method_taxable?: boolean;
|
236
|
+
adjustment_taxable?: boolean;
|
237
|
+
gift_card_taxable?: boolean;
|
209
238
|
shipping_country_code_lock?: string;
|
210
239
|
coupon_code?: string;
|
211
240
|
gift_card_code?: string;
|
212
|
-
gift_card_or_coupon_code?: string;
|
213
241
|
cart_url?: string;
|
214
242
|
return_url?: string;
|
215
243
|
terms_url?: string;
|
@@ -220,17 +248,22 @@ interface OrderCreate extends ResourceCreate {
|
|
220
248
|
billing_address?: AddressRel;
|
221
249
|
payment_method?: PaymentMethodRel;
|
222
250
|
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel;
|
251
|
+
tags?: TagRel[];
|
223
252
|
}
|
224
253
|
interface OrderUpdate extends ResourceUpdate {
|
254
|
+
number?: string;
|
225
255
|
autorefresh?: boolean;
|
226
256
|
guest?: boolean;
|
227
257
|
customer_email?: string;
|
228
258
|
customer_password?: string;
|
229
259
|
language_code?: string;
|
260
|
+
freight_taxable?: boolean;
|
261
|
+
payment_method_taxable?: boolean;
|
262
|
+
adjustment_taxable?: boolean;
|
263
|
+
gift_card_taxable?: boolean;
|
230
264
|
shipping_country_code_lock?: string;
|
231
265
|
coupon_code?: string;
|
232
266
|
gift_card_code?: string;
|
233
|
-
gift_card_or_coupon_code?: string;
|
234
267
|
cart_url?: string;
|
235
268
|
return_url?: string;
|
236
269
|
terms_url?: string;
|
@@ -260,12 +293,15 @@ interface OrderUpdate extends ResourceUpdate {
|
|
260
293
|
_refresh?: boolean;
|
261
294
|
_validate?: boolean;
|
262
295
|
_create_subscriptions?: boolean;
|
296
|
+
_start_editing?: boolean;
|
297
|
+
_stop_editing?: boolean;
|
263
298
|
market?: MarketRel;
|
264
299
|
customer?: CustomerRel;
|
265
300
|
shipping_address?: AddressRel;
|
266
301
|
billing_address?: AddressRel;
|
267
302
|
payment_method?: PaymentMethodRel;
|
268
303
|
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel;
|
304
|
+
tags?: TagRel[];
|
269
305
|
}
|
270
306
|
declare class Orders extends ApiResource {
|
271
307
|
static readonly TYPE: 'orders';
|
@@ -284,18 +320,26 @@ declare class Orders extends ApiResource {
|
|
284
320
|
available_free_bundles(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
|
285
321
|
payment_method(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
|
286
322
|
line_items(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItem>>;
|
323
|
+
line_item_options(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>>;
|
324
|
+
stock_reservations(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
|
325
|
+
stock_line_items(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
|
326
|
+
stock_transfers(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
|
287
327
|
shipments(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Shipment>>;
|
328
|
+
payment_options(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentOption>>;
|
288
329
|
authorizations(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Authorization>>;
|
289
330
|
captures(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Capture>>;
|
290
331
|
voids(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Void>>;
|
291
332
|
refunds(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Refund>>;
|
292
333
|
returns(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Return>>;
|
334
|
+
order_subscription(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
293
335
|
order_subscriptions(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>>;
|
294
336
|
order_factories(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderFactory>>;
|
295
337
|
order_copies(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
|
296
338
|
recurring_order_copies(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<RecurringOrderCopy>>;
|
297
339
|
attachments(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
298
340
|
events(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
341
|
+
tags(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
342
|
+
versions(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
299
343
|
isOrder(resource: any): resource is Order;
|
300
344
|
relationship(id: string | ResourceId | null): OrderRel;
|
301
345
|
type(): string;
|
@@ -58,10 +58,30 @@ class Orders extends resource_1.ApiResource {
|
|
58
58
|
const _orderId = orderId.id || orderId;
|
59
59
|
return this.resources.fetch({ type: 'line_items' }, `orders/${_orderId}/line_items`, params, options);
|
60
60
|
}
|
61
|
+
async line_item_options(orderId, params, options) {
|
62
|
+
const _orderId = orderId.id || orderId;
|
63
|
+
return this.resources.fetch({ type: 'line_item_options' }, `orders/${_orderId}/line_item_options`, params, options);
|
64
|
+
}
|
65
|
+
async stock_reservations(orderId, params, options) {
|
66
|
+
const _orderId = orderId.id || orderId;
|
67
|
+
return this.resources.fetch({ type: 'stock_reservations' }, `orders/${_orderId}/stock_reservations`, params, options);
|
68
|
+
}
|
69
|
+
async stock_line_items(orderId, params, options) {
|
70
|
+
const _orderId = orderId.id || orderId;
|
71
|
+
return this.resources.fetch({ type: 'stock_line_items' }, `orders/${_orderId}/stock_line_items`, params, options);
|
72
|
+
}
|
73
|
+
async stock_transfers(orderId, params, options) {
|
74
|
+
const _orderId = orderId.id || orderId;
|
75
|
+
return this.resources.fetch({ type: 'stock_transfers' }, `orders/${_orderId}/stock_transfers`, params, options);
|
76
|
+
}
|
61
77
|
async shipments(orderId, params, options) {
|
62
78
|
const _orderId = orderId.id || orderId;
|
63
79
|
return this.resources.fetch({ type: 'shipments' }, `orders/${_orderId}/shipments`, params, options);
|
64
80
|
}
|
81
|
+
async payment_options(orderId, params, options) {
|
82
|
+
const _orderId = orderId.id || orderId;
|
83
|
+
return this.resources.fetch({ type: 'payment_options' }, `orders/${_orderId}/payment_options`, params, options);
|
84
|
+
}
|
65
85
|
async authorizations(orderId, params, options) {
|
66
86
|
const _orderId = orderId.id || orderId;
|
67
87
|
return this.resources.fetch({ type: 'authorizations' }, `orders/${_orderId}/authorizations`, params, options);
|
@@ -82,6 +102,10 @@ class Orders extends resource_1.ApiResource {
|
|
82
102
|
const _orderId = orderId.id || orderId;
|
83
103
|
return this.resources.fetch({ type: 'returns' }, `orders/${_orderId}/returns`, params, options);
|
84
104
|
}
|
105
|
+
async order_subscription(orderId, params, options) {
|
106
|
+
const _orderId = orderId.id || orderId;
|
107
|
+
return this.resources.fetch({ type: 'order_subscriptions' }, `orders/${_orderId}/order_subscription`, params, options);
|
108
|
+
}
|
85
109
|
async order_subscriptions(orderId, params, options) {
|
86
110
|
const _orderId = orderId.id || orderId;
|
87
111
|
return this.resources.fetch({ type: 'order_subscriptions' }, `orders/${_orderId}/order_subscriptions`, params, options);
|
@@ -106,6 +130,14 @@ class Orders extends resource_1.ApiResource {
|
|
106
130
|
const _orderId = orderId.id || orderId;
|
107
131
|
return this.resources.fetch({ type: 'events' }, `orders/${_orderId}/events`, params, options);
|
108
132
|
}
|
133
|
+
async tags(orderId, params, options) {
|
134
|
+
const _orderId = orderId.id || orderId;
|
135
|
+
return this.resources.fetch({ type: 'tags' }, `orders/${_orderId}/tags`, params, options);
|
136
|
+
}
|
137
|
+
async versions(orderId, params, options) {
|
138
|
+
const _orderId = orderId.id || orderId;
|
139
|
+
return this.resources.fetch({ type: 'versions' }, `orders/${_orderId}/versions`, params, options);
|
140
|
+
}
|
109
141
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
110
142
|
isOrder(resource) {
|
111
143
|
return resource.type && (resource.type === Orders.TYPE);
|
@@ -12,14 +12,14 @@ interface Organization extends Resource {
|
|
12
12
|
logo_url?: string;
|
13
13
|
favicon_url?: string;
|
14
14
|
primary_color?: string;
|
15
|
-
contrast_color?: string;
|
16
15
|
gtm_id?: string;
|
17
16
|
gtm_id_test?: string;
|
18
|
-
discount_disabled?: boolean;
|
19
|
-
account_disabled?: boolean;
|
20
|
-
acceptance_disabled?: boolean;
|
21
17
|
max_concurrent_promotions?: number;
|
22
18
|
max_concurrent_imports?: number;
|
19
|
+
max_concurrent_exports?: number;
|
20
|
+
max_concurrent_cleanups?: number;
|
21
|
+
order_number_editable_test?: boolean;
|
22
|
+
order_number_editable_live?: boolean;
|
23
23
|
}
|
24
24
|
declare class Organizations extends ApiResource {
|
25
25
|
static readonly TYPE: 'organization';
|
@@ -3,6 +3,7 @@ import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
|
3
3
|
import type { StockLocation } from './stock_locations';
|
4
4
|
import type { Parcel } from './parcels';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type PackageRel = ResourceRel & {
|
7
8
|
type: typeof Packages.TYPE;
|
8
9
|
};
|
@@ -19,6 +20,7 @@ interface Package extends Resource {
|
|
19
20
|
stock_location?: StockLocation;
|
20
21
|
parcels?: Parcel[];
|
21
22
|
attachments?: Attachment[];
|
23
|
+
versions?: Version[];
|
22
24
|
}
|
23
25
|
interface PackageCreate extends ResourceCreate {
|
24
26
|
name: string;
|
@@ -48,6 +50,7 @@ declare class Packages extends ApiResource {
|
|
48
50
|
stock_location(packageId: string | Package, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
49
51
|
parcels(packageId: string | Package, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Parcel>>;
|
50
52
|
attachments(packageId: string | Package, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
53
|
+
versions(packageId: string | Package, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
51
54
|
isPackage(resource: any): resource is Package;
|
52
55
|
relationship(id: string | ResourceId | null): PackageRel;
|
53
56
|
type(): string;
|
@@ -30,6 +30,10 @@ class Packages extends resource_1.ApiResource {
|
|
30
30
|
const _packageId = packageId.id || packageId;
|
31
31
|
return this.resources.fetch({ type: 'attachments' }, `packages/${_packageId}/attachments`, params, options);
|
32
32
|
}
|
33
|
+
async versions(packageId, params, options) {
|
34
|
+
const _packageId = packageId.id || packageId;
|
35
|
+
return this.resources.fetch({ type: 'versions' }, `packages/${_packageId}/versions`, params, options);
|
36
|
+
}
|
33
37
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
34
38
|
isPackage(resource) {
|
35
39
|
return resource.type && (resource.type === Packages.TYPE);
|
@@ -2,6 +2,7 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig,
|
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Parcel } from './parcels';
|
4
4
|
import type { StockLineItem } from './stock_line_items';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
type ParcelLineItemRel = ResourceRel & {
|
6
7
|
type: typeof ParcelLineItems.TYPE;
|
7
8
|
};
|
@@ -13,6 +14,7 @@ type StockLineItemRel = ResourceRel & {
|
|
13
14
|
};
|
14
15
|
interface ParcelLineItem extends Resource {
|
15
16
|
sku_code?: string;
|
17
|
+
bundle_code?: string;
|
16
18
|
quantity?: number;
|
17
19
|
name?: string;
|
18
20
|
image_url?: string;
|
@@ -22,9 +24,9 @@ interface ParcelLineItem extends Resource {
|
|
22
24
|
* @deprecated This field should not be used as it may be removed in the future without notice
|
23
25
|
*/
|
24
26
|
shipment_line_item?: object;
|
27
|
+
versions?: Version[];
|
25
28
|
}
|
26
29
|
interface ParcelLineItemCreate extends ResourceCreate {
|
27
|
-
sku_code?: string;
|
28
30
|
quantity: number;
|
29
31
|
parcel: ParcelRel;
|
30
32
|
stock_line_item: StockLineItemRel;
|
@@ -43,6 +45,7 @@ declare class ParcelLineItems extends ApiResource {
|
|
43
45
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
44
46
|
parcel(parcelLineItemId: string | ParcelLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Parcel>;
|
45
47
|
stock_line_item(parcelLineItemId: string | ParcelLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLineItem>;
|
48
|
+
versions(parcelLineItemId: string | ParcelLineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
46
49
|
isParcelLineItem(resource: any): resource is ParcelLineItem;
|
47
50
|
relationship(id: string | ResourceId | null): ParcelLineItemRel;
|
48
51
|
type(): string;
|
@@ -26,6 +26,10 @@ class ParcelLineItems extends resource_1.ApiResource {
|
|
26
26
|
const _parcelLineItemId = parcelLineItemId.id || parcelLineItemId;
|
27
27
|
return this.resources.fetch({ type: 'stock_line_items' }, `parcel_line_items/${_parcelLineItemId}/stock_line_item`, params, options);
|
28
28
|
}
|
29
|
+
async versions(parcelLineItemId, params, options) {
|
30
|
+
const _parcelLineItemId = parcelLineItemId.id || parcelLineItemId;
|
31
|
+
return this.resources.fetch({ type: 'versions' }, `parcel_line_items/${_parcelLineItemId}/versions`, params, options);
|
32
|
+
}
|
29
33
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
34
|
isParcelLineItem(resource) {
|
31
35
|
return resource.type && (resource.type === ParcelLineItems.TYPE);
|