@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
@@ -5,17 +5,20 @@ import type { PromotionRule } from './promotion_rules';
|
|
5
5
|
import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
6
6
|
import type { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
7
|
import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
|
+
import type { CustomPromotionRule } from './custom_promotion_rules';
|
9
|
+
import type { SkuList } from './sku_lists';
|
10
|
+
import type { Coupon } from './coupons';
|
8
11
|
import type { Attachment } from './attachments';
|
9
12
|
import type { Event } from './events';
|
13
|
+
import type { Tag } from './tags';
|
14
|
+
import type { Version } from './versions';
|
15
|
+
import type { Sku } from './skus';
|
10
16
|
type ExternalPromotionRel = ResourceRel & {
|
11
17
|
type: typeof ExternalPromotions.TYPE;
|
12
18
|
};
|
13
19
|
type MarketRel = ResourceRel & {
|
14
20
|
type: 'markets';
|
15
21
|
};
|
16
|
-
type PromotionRuleRel = ResourceRel & {
|
17
|
-
type: 'promotion_rules';
|
18
|
-
};
|
19
22
|
type OrderAmountPromotionRuleRel = ResourceRel & {
|
20
23
|
type: 'order_amount_promotion_rules';
|
21
24
|
};
|
@@ -25,14 +28,26 @@ type SkuListPromotionRuleRel = ResourceRel & {
|
|
25
28
|
type CouponCodesPromotionRuleRel = ResourceRel & {
|
26
29
|
type: 'coupon_codes_promotion_rules';
|
27
30
|
};
|
31
|
+
type CustomPromotionRuleRel = ResourceRel & {
|
32
|
+
type: 'custom_promotion_rules';
|
33
|
+
};
|
34
|
+
type SkuListRel = ResourceRel & {
|
35
|
+
type: 'sku_lists';
|
36
|
+
};
|
37
|
+
type TagRel = ResourceRel & {
|
38
|
+
type: 'tags';
|
39
|
+
};
|
28
40
|
interface ExternalPromotion extends Resource {
|
29
41
|
name?: string;
|
30
42
|
currency_code?: string;
|
43
|
+
exclusive?: boolean;
|
44
|
+
priority?: number;
|
31
45
|
starts_at?: string;
|
32
46
|
expires_at?: string;
|
33
47
|
total_usage_limit?: number;
|
34
48
|
total_usage_count?: number;
|
35
49
|
active?: boolean;
|
50
|
+
disabled_at?: string;
|
36
51
|
promotion_url?: string;
|
37
52
|
shared_secret?: string;
|
38
53
|
market?: Market;
|
@@ -40,34 +55,52 @@ interface ExternalPromotion extends Resource {
|
|
40
55
|
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
41
56
|
sku_list_promotion_rule?: SkuListPromotionRule;
|
42
57
|
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
58
|
+
custom_promotion_rule?: CustomPromotionRule;
|
59
|
+
sku_list?: SkuList;
|
60
|
+
coupons?: Coupon[];
|
43
61
|
attachments?: Attachment[];
|
44
62
|
events?: Event[];
|
63
|
+
tags?: Tag[];
|
64
|
+
versions?: Version[];
|
65
|
+
skus?: Sku[];
|
45
66
|
}
|
46
67
|
interface ExternalPromotionCreate extends ResourceCreate {
|
47
68
|
name: string;
|
48
69
|
currency_code?: string;
|
70
|
+
exclusive?: boolean;
|
71
|
+
priority?: number;
|
49
72
|
starts_at: string;
|
50
73
|
expires_at: string;
|
51
|
-
total_usage_limit
|
74
|
+
total_usage_limit?: number;
|
75
|
+
_disable?: boolean;
|
76
|
+
_enable?: boolean;
|
52
77
|
promotion_url: string;
|
53
78
|
market?: MarketRel;
|
54
|
-
promotion_rules?: PromotionRuleRel[];
|
55
79
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
56
80
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
57
81
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
82
|
+
custom_promotion_rule?: CustomPromotionRuleRel;
|
83
|
+
sku_list?: SkuListRel;
|
84
|
+
tags?: TagRel[];
|
58
85
|
}
|
59
86
|
interface ExternalPromotionUpdate extends ResourceUpdate {
|
60
87
|
name?: string;
|
61
88
|
currency_code?: string;
|
89
|
+
exclusive?: boolean;
|
90
|
+
priority?: number;
|
62
91
|
starts_at?: string;
|
63
92
|
expires_at?: string;
|
64
93
|
total_usage_limit?: number;
|
94
|
+
_disable?: boolean;
|
95
|
+
_enable?: boolean;
|
65
96
|
promotion_url?: string;
|
66
97
|
market?: MarketRel;
|
67
|
-
promotion_rules?: PromotionRuleRel[];
|
68
98
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
69
99
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
70
100
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
101
|
+
custom_promotion_rule?: CustomPromotionRuleRel;
|
102
|
+
sku_list?: SkuListRel;
|
103
|
+
tags?: TagRel[];
|
71
104
|
}
|
72
105
|
declare class ExternalPromotions extends ApiResource {
|
73
106
|
static readonly TYPE: 'external_promotions';
|
@@ -80,8 +113,14 @@ declare class ExternalPromotions extends ApiResource {
|
|
80
113
|
order_amount_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
81
114
|
sku_list_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
82
115
|
coupon_codes_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
116
|
+
custom_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>;
|
117
|
+
sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
118
|
+
coupons(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
|
83
119
|
attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
84
120
|
events(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
121
|
+
tags(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
122
|
+
versions(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
123
|
+
skus(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
85
124
|
isExternalPromotion(resource: any): resource is ExternalPromotion;
|
86
125
|
relationship(id: string | ResourceId | null): ExternalPromotionRel;
|
87
126
|
type(): string;
|
@@ -32,6 +32,18 @@ class ExternalPromotions extends ApiResource {
|
|
32
32
|
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
33
33
|
return this.resources.fetch({ type: 'coupon_codes_promotion_rules' }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options);
|
34
34
|
}
|
35
|
+
async custom_promotion_rule(externalPromotionId, params, options) {
|
36
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
37
|
+
return this.resources.fetch({ type: 'custom_promotion_rules' }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options);
|
38
|
+
}
|
39
|
+
async sku_list(externalPromotionId, params, options) {
|
40
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
41
|
+
return this.resources.fetch({ type: 'sku_lists' }, `external_promotions/${_externalPromotionId}/sku_list`, params, options);
|
42
|
+
}
|
43
|
+
async coupons(externalPromotionId, params, options) {
|
44
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
45
|
+
return this.resources.fetch({ type: 'coupons' }, `external_promotions/${_externalPromotionId}/coupons`, params, options);
|
46
|
+
}
|
35
47
|
async attachments(externalPromotionId, params, options) {
|
36
48
|
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
37
49
|
return this.resources.fetch({ type: 'attachments' }, `external_promotions/${_externalPromotionId}/attachments`, params, options);
|
@@ -40,6 +52,18 @@ class ExternalPromotions extends ApiResource {
|
|
40
52
|
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
41
53
|
return this.resources.fetch({ type: 'events' }, `external_promotions/${_externalPromotionId}/events`, params, options);
|
42
54
|
}
|
55
|
+
async tags(externalPromotionId, params, options) {
|
56
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
57
|
+
return this.resources.fetch({ type: 'tags' }, `external_promotions/${_externalPromotionId}/tags`, params, options);
|
58
|
+
}
|
59
|
+
async versions(externalPromotionId, params, options) {
|
60
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
61
|
+
return this.resources.fetch({ type: 'versions' }, `external_promotions/${_externalPromotionId}/versions`, params, options);
|
62
|
+
}
|
63
|
+
async skus(externalPromotionId, params, options) {
|
64
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
65
|
+
return this.resources.fetch({ type: 'skus' }, `external_promotions/${_externalPromotionId}/skus`, params, options);
|
66
|
+
}
|
43
67
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
44
68
|
isExternalPromotion(resource) {
|
45
69
|
return resource.type && (resource.type === ExternalPromotions.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
|
type ExternalTaxCalculatorRel = ResourceRel & {
|
6
7
|
type: typeof ExternalTaxCalculators.TYPE;
|
7
8
|
};
|
@@ -11,6 +12,7 @@ interface ExternalTaxCalculator extends Resource {
|
|
11
12
|
shared_secret?: string;
|
12
13
|
markets?: Market[];
|
13
14
|
attachments?: Attachment[];
|
15
|
+
versions?: Version[];
|
14
16
|
}
|
15
17
|
interface ExternalTaxCalculatorCreate extends ResourceCreate {
|
16
18
|
name: string;
|
@@ -29,6 +31,7 @@ declare class ExternalTaxCalculators extends ApiResource {
|
|
29
31
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
30
32
|
markets(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
|
31
33
|
attachments(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
34
|
+
versions(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
32
35
|
isExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator;
|
33
36
|
relationship(id: string | ResourceId | null): ExternalTaxCalculatorRel;
|
34
37
|
type(): string;
|
@@ -24,6 +24,10 @@ class ExternalTaxCalculators extends ApiResource {
|
|
24
24
|
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
25
25
|
return this.resources.fetch({ type: 'attachments' }, `external_tax_calculators/${_externalTaxCalculatorId}/attachments`, params, options);
|
26
26
|
}
|
27
|
+
async versions(externalTaxCalculatorId, params, options) {
|
28
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
29
|
+
return this.resources.fetch({ type: 'versions' }, `external_tax_calculators/${_externalTaxCalculatorId}/versions`, params, options);
|
30
|
+
}
|
27
31
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
28
32
|
isExternalTaxCalculator(resource) {
|
29
33
|
return resource.type && (resource.type === ExternalTaxCalculators.TYPE);
|
@@ -5,17 +5,20 @@ import type { PromotionRule } from './promotion_rules';
|
|
5
5
|
import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
6
6
|
import type { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
7
|
import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
|
+
import type { CustomPromotionRule } from './custom_promotion_rules';
|
9
|
+
import type { SkuList } from './sku_lists';
|
10
|
+
import type { Coupon } from './coupons';
|
8
11
|
import type { Attachment } from './attachments';
|
9
12
|
import type { Event } from './events';
|
13
|
+
import type { Tag } from './tags';
|
14
|
+
import type { Version } from './versions';
|
15
|
+
import type { Sku } from './skus';
|
10
16
|
type FixedAmountPromotionRel = ResourceRel & {
|
11
17
|
type: typeof FixedAmountPromotions.TYPE;
|
12
18
|
};
|
13
19
|
type MarketRel = ResourceRel & {
|
14
20
|
type: 'markets';
|
15
21
|
};
|
16
|
-
type PromotionRuleRel = ResourceRel & {
|
17
|
-
type: 'promotion_rules';
|
18
|
-
};
|
19
22
|
type OrderAmountPromotionRuleRel = ResourceRel & {
|
20
23
|
type: 'order_amount_promotion_rules';
|
21
24
|
};
|
@@ -25,14 +28,26 @@ type SkuListPromotionRuleRel = ResourceRel & {
|
|
25
28
|
type CouponCodesPromotionRuleRel = ResourceRel & {
|
26
29
|
type: 'coupon_codes_promotion_rules';
|
27
30
|
};
|
31
|
+
type CustomPromotionRuleRel = ResourceRel & {
|
32
|
+
type: 'custom_promotion_rules';
|
33
|
+
};
|
34
|
+
type SkuListRel = ResourceRel & {
|
35
|
+
type: 'sku_lists';
|
36
|
+
};
|
37
|
+
type TagRel = ResourceRel & {
|
38
|
+
type: 'tags';
|
39
|
+
};
|
28
40
|
interface FixedAmountPromotion extends Resource {
|
29
41
|
name?: string;
|
30
42
|
currency_code?: string;
|
43
|
+
exclusive?: boolean;
|
44
|
+
priority?: number;
|
31
45
|
starts_at?: string;
|
32
46
|
expires_at?: string;
|
33
47
|
total_usage_limit?: number;
|
34
48
|
total_usage_count?: number;
|
35
49
|
active?: boolean;
|
50
|
+
disabled_at?: string;
|
36
51
|
fixed_amount_cents?: number;
|
37
52
|
fixed_amount_float?: number;
|
38
53
|
formatted_fixed_amount?: string;
|
@@ -41,34 +56,52 @@ interface FixedAmountPromotion extends Resource {
|
|
41
56
|
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
42
57
|
sku_list_promotion_rule?: SkuListPromotionRule;
|
43
58
|
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
59
|
+
custom_promotion_rule?: CustomPromotionRule;
|
60
|
+
sku_list?: SkuList;
|
61
|
+
coupons?: Coupon[];
|
44
62
|
attachments?: Attachment[];
|
45
63
|
events?: Event[];
|
64
|
+
tags?: Tag[];
|
65
|
+
versions?: Version[];
|
66
|
+
skus?: Sku[];
|
46
67
|
}
|
47
68
|
interface FixedAmountPromotionCreate extends ResourceCreate {
|
48
69
|
name: string;
|
49
70
|
currency_code?: string;
|
71
|
+
exclusive?: boolean;
|
72
|
+
priority?: number;
|
50
73
|
starts_at: string;
|
51
74
|
expires_at: string;
|
52
|
-
total_usage_limit
|
75
|
+
total_usage_limit?: number;
|
76
|
+
_disable?: boolean;
|
77
|
+
_enable?: boolean;
|
53
78
|
fixed_amount_cents: number;
|
54
79
|
market?: MarketRel;
|
55
|
-
promotion_rules?: PromotionRuleRel[];
|
56
80
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
57
81
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
58
82
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
83
|
+
custom_promotion_rule?: CustomPromotionRuleRel;
|
84
|
+
sku_list?: SkuListRel;
|
85
|
+
tags?: TagRel[];
|
59
86
|
}
|
60
87
|
interface FixedAmountPromotionUpdate extends ResourceUpdate {
|
61
88
|
name?: string;
|
62
89
|
currency_code?: string;
|
90
|
+
exclusive?: boolean;
|
91
|
+
priority?: number;
|
63
92
|
starts_at?: string;
|
64
93
|
expires_at?: string;
|
65
94
|
total_usage_limit?: number;
|
95
|
+
_disable?: boolean;
|
96
|
+
_enable?: boolean;
|
66
97
|
fixed_amount_cents?: number;
|
67
98
|
market?: MarketRel;
|
68
|
-
promotion_rules?: PromotionRuleRel[];
|
69
99
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
70
100
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
71
101
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
102
|
+
custom_promotion_rule?: CustomPromotionRuleRel;
|
103
|
+
sku_list?: SkuListRel;
|
104
|
+
tags?: TagRel[];
|
72
105
|
}
|
73
106
|
declare class FixedAmountPromotions extends ApiResource {
|
74
107
|
static readonly TYPE: 'fixed_amount_promotions';
|
@@ -81,8 +114,14 @@ declare class FixedAmountPromotions extends ApiResource {
|
|
81
114
|
order_amount_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
82
115
|
sku_list_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
83
116
|
coupon_codes_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
117
|
+
custom_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>;
|
118
|
+
sku_list(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
119
|
+
coupons(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
|
84
120
|
attachments(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
85
121
|
events(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
122
|
+
tags(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
123
|
+
versions(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
124
|
+
skus(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
86
125
|
isFixedAmountPromotion(resource: any): resource is FixedAmountPromotion;
|
87
126
|
relationship(id: string | ResourceId | null): FixedAmountPromotionRel;
|
88
127
|
type(): string;
|
@@ -32,6 +32,18 @@ class FixedAmountPromotions extends ApiResource {
|
|
32
32
|
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
33
33
|
return this.resources.fetch({ type: 'coupon_codes_promotion_rules' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/coupon_codes_promotion_rule`, params, options);
|
34
34
|
}
|
35
|
+
async custom_promotion_rule(fixedAmountPromotionId, params, options) {
|
36
|
+
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
37
|
+
return this.resources.fetch({ type: 'custom_promotion_rules' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/custom_promotion_rule`, params, options);
|
38
|
+
}
|
39
|
+
async sku_list(fixedAmountPromotionId, params, options) {
|
40
|
+
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
41
|
+
return this.resources.fetch({ type: 'sku_lists' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/sku_list`, params, options);
|
42
|
+
}
|
43
|
+
async coupons(fixedAmountPromotionId, params, options) {
|
44
|
+
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
45
|
+
return this.resources.fetch({ type: 'coupons' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/coupons`, params, options);
|
46
|
+
}
|
35
47
|
async attachments(fixedAmountPromotionId, params, options) {
|
36
48
|
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
37
49
|
return this.resources.fetch({ type: 'attachments' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/attachments`, params, options);
|
@@ -40,6 +52,18 @@ class FixedAmountPromotions extends ApiResource {
|
|
40
52
|
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
41
53
|
return this.resources.fetch({ type: 'events' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/events`, params, options);
|
42
54
|
}
|
55
|
+
async tags(fixedAmountPromotionId, params, options) {
|
56
|
+
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
57
|
+
return this.resources.fetch({ type: 'tags' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/tags`, params, options);
|
58
|
+
}
|
59
|
+
async versions(fixedAmountPromotionId, params, options) {
|
60
|
+
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
61
|
+
return this.resources.fetch({ type: 'versions' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/versions`, params, options);
|
62
|
+
}
|
63
|
+
async skus(fixedAmountPromotionId, params, options) {
|
64
|
+
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
65
|
+
return this.resources.fetch({ type: 'skus' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/skus`, params, options);
|
66
|
+
}
|
43
67
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
44
68
|
isFixedAmountPromotion(resource) {
|
45
69
|
return resource.type && (resource.type === FixedAmountPromotions.TYPE);
|
@@ -5,9 +5,13 @@ import type { PromotionRule } from './promotion_rules';
|
|
5
5
|
import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
6
6
|
import type { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
7
|
import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
|
+
import type { CustomPromotionRule } from './custom_promotion_rules';
|
9
|
+
import type { SkuList } from './sku_lists';
|
10
|
+
import type { Coupon } from './coupons';
|
8
11
|
import type { Attachment } from './attachments';
|
9
12
|
import type { Event } from './events';
|
10
|
-
import type {
|
13
|
+
import type { Tag } from './tags';
|
14
|
+
import type { Version } from './versions';
|
11
15
|
import type { Sku } from './skus';
|
12
16
|
type FixedPricePromotionRel = ResourceRel & {
|
13
17
|
type: typeof FixedPricePromotions.TYPE;
|
@@ -15,9 +19,6 @@ type FixedPricePromotionRel = ResourceRel & {
|
|
15
19
|
type MarketRel = ResourceRel & {
|
16
20
|
type: 'markets';
|
17
21
|
};
|
18
|
-
type PromotionRuleRel = ResourceRel & {
|
19
|
-
type: 'promotion_rules';
|
20
|
-
};
|
21
22
|
type OrderAmountPromotionRuleRel = ResourceRel & {
|
22
23
|
type: 'order_amount_promotion_rules';
|
23
24
|
};
|
@@ -27,17 +28,26 @@ type SkuListPromotionRuleRel = ResourceRel & {
|
|
27
28
|
type CouponCodesPromotionRuleRel = ResourceRel & {
|
28
29
|
type: 'coupon_codes_promotion_rules';
|
29
30
|
};
|
31
|
+
type CustomPromotionRuleRel = ResourceRel & {
|
32
|
+
type: 'custom_promotion_rules';
|
33
|
+
};
|
30
34
|
type SkuListRel = ResourceRel & {
|
31
35
|
type: 'sku_lists';
|
32
36
|
};
|
37
|
+
type TagRel = ResourceRel & {
|
38
|
+
type: 'tags';
|
39
|
+
};
|
33
40
|
interface FixedPricePromotion extends Resource {
|
34
41
|
name?: string;
|
35
42
|
currency_code?: string;
|
43
|
+
exclusive?: boolean;
|
44
|
+
priority?: number;
|
36
45
|
starts_at?: string;
|
37
46
|
expires_at?: string;
|
38
47
|
total_usage_limit?: number;
|
39
48
|
total_usage_count?: number;
|
40
49
|
active?: boolean;
|
50
|
+
disabled_at?: string;
|
41
51
|
fixed_amount_cents?: number;
|
42
52
|
fixed_amount_float?: number;
|
43
53
|
formatted_fixed_amount?: string;
|
@@ -46,38 +56,52 @@ interface FixedPricePromotion extends Resource {
|
|
46
56
|
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
47
57
|
sku_list_promotion_rule?: SkuListPromotionRule;
|
48
58
|
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
59
|
+
custom_promotion_rule?: CustomPromotionRule;
|
60
|
+
sku_list?: SkuList;
|
61
|
+
coupons?: Coupon[];
|
49
62
|
attachments?: Attachment[];
|
50
63
|
events?: Event[];
|
51
|
-
|
64
|
+
tags?: Tag[];
|
65
|
+
versions?: Version[];
|
52
66
|
skus?: Sku[];
|
53
67
|
}
|
54
68
|
interface FixedPricePromotionCreate extends ResourceCreate {
|
55
69
|
name: string;
|
56
70
|
currency_code?: string;
|
71
|
+
exclusive?: boolean;
|
72
|
+
priority?: number;
|
57
73
|
starts_at: string;
|
58
74
|
expires_at: string;
|
59
|
-
total_usage_limit
|
75
|
+
total_usage_limit?: number;
|
76
|
+
_disable?: boolean;
|
77
|
+
_enable?: boolean;
|
60
78
|
fixed_amount_cents: number;
|
61
79
|
market?: MarketRel;
|
62
|
-
promotion_rules?: PromotionRuleRel[];
|
63
80
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
64
81
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
65
82
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
83
|
+
custom_promotion_rule?: CustomPromotionRuleRel;
|
66
84
|
sku_list: SkuListRel;
|
85
|
+
tags?: TagRel[];
|
67
86
|
}
|
68
87
|
interface FixedPricePromotionUpdate extends ResourceUpdate {
|
69
88
|
name?: string;
|
70
89
|
currency_code?: string;
|
90
|
+
exclusive?: boolean;
|
91
|
+
priority?: number;
|
71
92
|
starts_at?: string;
|
72
93
|
expires_at?: string;
|
73
94
|
total_usage_limit?: number;
|
95
|
+
_disable?: boolean;
|
96
|
+
_enable?: boolean;
|
74
97
|
fixed_amount_cents?: number;
|
75
98
|
market?: MarketRel;
|
76
|
-
promotion_rules?: PromotionRuleRel[];
|
77
99
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
78
100
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
79
101
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
102
|
+
custom_promotion_rule?: CustomPromotionRuleRel;
|
80
103
|
sku_list?: SkuListRel;
|
104
|
+
tags?: TagRel[];
|
81
105
|
}
|
82
106
|
declare class FixedPricePromotions extends ApiResource {
|
83
107
|
static readonly TYPE: 'fixed_price_promotions';
|
@@ -90,9 +114,13 @@ declare class FixedPricePromotions extends ApiResource {
|
|
90
114
|
order_amount_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
91
115
|
sku_list_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
92
116
|
coupon_codes_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
117
|
+
custom_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>;
|
118
|
+
sku_list(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
119
|
+
coupons(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
|
93
120
|
attachments(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
94
121
|
events(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
95
|
-
|
122
|
+
tags(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
123
|
+
versions(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
96
124
|
skus(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
97
125
|
isFixedPricePromotion(resource: any): resource is FixedPricePromotion;
|
98
126
|
relationship(id: string | ResourceId | null): FixedPricePromotionRel;
|
@@ -32,6 +32,18 @@ class FixedPricePromotions extends ApiResource {
|
|
32
32
|
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
33
33
|
return this.resources.fetch({ type: 'coupon_codes_promotion_rules' }, `fixed_price_promotions/${_fixedPricePromotionId}/coupon_codes_promotion_rule`, params, options);
|
34
34
|
}
|
35
|
+
async custom_promotion_rule(fixedPricePromotionId, params, options) {
|
36
|
+
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
37
|
+
return this.resources.fetch({ type: 'custom_promotion_rules' }, `fixed_price_promotions/${_fixedPricePromotionId}/custom_promotion_rule`, params, options);
|
38
|
+
}
|
39
|
+
async sku_list(fixedPricePromotionId, params, options) {
|
40
|
+
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
41
|
+
return this.resources.fetch({ type: 'sku_lists' }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list`, params, options);
|
42
|
+
}
|
43
|
+
async coupons(fixedPricePromotionId, params, options) {
|
44
|
+
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
45
|
+
return this.resources.fetch({ type: 'coupons' }, `fixed_price_promotions/${_fixedPricePromotionId}/coupons`, params, options);
|
46
|
+
}
|
35
47
|
async attachments(fixedPricePromotionId, params, options) {
|
36
48
|
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
37
49
|
return this.resources.fetch({ type: 'attachments' }, `fixed_price_promotions/${_fixedPricePromotionId}/attachments`, params, options);
|
@@ -40,9 +52,13 @@ class FixedPricePromotions extends ApiResource {
|
|
40
52
|
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
41
53
|
return this.resources.fetch({ type: 'events' }, `fixed_price_promotions/${_fixedPricePromotionId}/events`, params, options);
|
42
54
|
}
|
43
|
-
async
|
55
|
+
async tags(fixedPricePromotionId, params, options) {
|
44
56
|
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
45
|
-
return this.resources.fetch({ type: '
|
57
|
+
return this.resources.fetch({ type: 'tags' }, `fixed_price_promotions/${_fixedPricePromotionId}/tags`, params, options);
|
58
|
+
}
|
59
|
+
async versions(fixedPricePromotionId, params, options) {
|
60
|
+
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
61
|
+
return this.resources.fetch({ type: 'versions' }, `fixed_price_promotions/${_fixedPricePromotionId}/versions`, params, options);
|
46
62
|
}
|
47
63
|
async skus(fixedPricePromotionId, params, options) {
|
48
64
|
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
@@ -5,9 +5,13 @@ import type { PromotionRule } from './promotion_rules';
|
|
5
5
|
import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
6
6
|
import type { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
7
|
import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
|
+
import type { CustomPromotionRule } from './custom_promotion_rules';
|
9
|
+
import type { SkuList } from './sku_lists';
|
10
|
+
import type { Coupon } from './coupons';
|
8
11
|
import type { Attachment } from './attachments';
|
9
12
|
import type { Event } from './events';
|
10
|
-
import type {
|
13
|
+
import type { Tag } from './tags';
|
14
|
+
import type { Version } from './versions';
|
11
15
|
import type { Sku } from './skus';
|
12
16
|
type FreeGiftPromotionRel = ResourceRel & {
|
13
17
|
type: typeof FreeGiftPromotions.TYPE;
|
@@ -15,9 +19,6 @@ type FreeGiftPromotionRel = ResourceRel & {
|
|
15
19
|
type MarketRel = ResourceRel & {
|
16
20
|
type: 'markets';
|
17
21
|
};
|
18
|
-
type PromotionRuleRel = ResourceRel & {
|
19
|
-
type: 'promotion_rules';
|
20
|
-
};
|
21
22
|
type OrderAmountPromotionRuleRel = ResourceRel & {
|
22
23
|
type: 'order_amount_promotion_rules';
|
23
24
|
};
|
@@ -27,55 +28,78 @@ type SkuListPromotionRuleRel = ResourceRel & {
|
|
27
28
|
type CouponCodesPromotionRuleRel = ResourceRel & {
|
28
29
|
type: 'coupon_codes_promotion_rules';
|
29
30
|
};
|
31
|
+
type CustomPromotionRuleRel = ResourceRel & {
|
32
|
+
type: 'custom_promotion_rules';
|
33
|
+
};
|
30
34
|
type SkuListRel = ResourceRel & {
|
31
35
|
type: 'sku_lists';
|
32
36
|
};
|
37
|
+
type TagRel = ResourceRel & {
|
38
|
+
type: 'tags';
|
39
|
+
};
|
33
40
|
interface FreeGiftPromotion extends Resource {
|
34
41
|
name?: string;
|
35
42
|
currency_code?: string;
|
43
|
+
exclusive?: boolean;
|
44
|
+
priority?: number;
|
36
45
|
starts_at?: string;
|
37
46
|
expires_at?: string;
|
38
47
|
total_usage_limit?: number;
|
39
48
|
total_usage_count?: number;
|
40
49
|
active?: boolean;
|
50
|
+
disabled_at?: string;
|
41
51
|
max_quantity?: number;
|
42
52
|
market?: Market;
|
43
53
|
promotion_rules?: PromotionRule[];
|
44
54
|
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
45
55
|
sku_list_promotion_rule?: SkuListPromotionRule;
|
46
56
|
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
57
|
+
custom_promotion_rule?: CustomPromotionRule;
|
58
|
+
sku_list?: SkuList;
|
59
|
+
coupons?: Coupon[];
|
47
60
|
attachments?: Attachment[];
|
48
61
|
events?: Event[];
|
49
|
-
|
62
|
+
tags?: Tag[];
|
63
|
+
versions?: Version[];
|
50
64
|
skus?: Sku[];
|
51
65
|
}
|
52
66
|
interface FreeGiftPromotionCreate extends ResourceCreate {
|
53
67
|
name: string;
|
54
68
|
currency_code?: string;
|
69
|
+
exclusive?: boolean;
|
70
|
+
priority?: number;
|
55
71
|
starts_at: string;
|
56
72
|
expires_at: string;
|
57
|
-
total_usage_limit
|
73
|
+
total_usage_limit?: number;
|
74
|
+
_disable?: boolean;
|
75
|
+
_enable?: boolean;
|
58
76
|
max_quantity?: number;
|
59
77
|
market?: MarketRel;
|
60
|
-
promotion_rules?: PromotionRuleRel[];
|
61
78
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
62
79
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
63
80
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
81
|
+
custom_promotion_rule?: CustomPromotionRuleRel;
|
64
82
|
sku_list: SkuListRel;
|
83
|
+
tags?: TagRel[];
|
65
84
|
}
|
66
85
|
interface FreeGiftPromotionUpdate extends ResourceUpdate {
|
67
86
|
name?: string;
|
68
87
|
currency_code?: string;
|
88
|
+
exclusive?: boolean;
|
89
|
+
priority?: number;
|
69
90
|
starts_at?: string;
|
70
91
|
expires_at?: string;
|
71
92
|
total_usage_limit?: number;
|
93
|
+
_disable?: boolean;
|
94
|
+
_enable?: boolean;
|
72
95
|
max_quantity?: number;
|
73
96
|
market?: MarketRel;
|
74
|
-
promotion_rules?: PromotionRuleRel[];
|
75
97
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
76
98
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
77
99
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
100
|
+
custom_promotion_rule?: CustomPromotionRuleRel;
|
78
101
|
sku_list?: SkuListRel;
|
102
|
+
tags?: TagRel[];
|
79
103
|
}
|
80
104
|
declare class FreeGiftPromotions extends ApiResource {
|
81
105
|
static readonly TYPE: 'free_gift_promotions';
|
@@ -88,9 +112,13 @@ declare class FreeGiftPromotions extends ApiResource {
|
|
88
112
|
order_amount_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
89
113
|
sku_list_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
90
114
|
coupon_codes_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
115
|
+
custom_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>;
|
116
|
+
sku_list(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
117
|
+
coupons(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
|
91
118
|
attachments(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
92
119
|
events(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
93
|
-
|
120
|
+
tags(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
121
|
+
versions(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
94
122
|
skus(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
95
123
|
isFreeGiftPromotion(resource: any): resource is FreeGiftPromotion;
|
96
124
|
relationship(id: string | ResourceId | null): FreeGiftPromotionRel;
|