@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
@@ -1,6 +1,9 @@
|
|
1
1
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Order } from './orders';
|
4
|
+
import type { Attachment } from './attachments';
|
5
|
+
import type { Event } from './events';
|
6
|
+
import type { Version } from './versions';
|
4
7
|
type TransactionRel = ResourceRel & {
|
5
8
|
type: typeof Transactions.TYPE;
|
6
9
|
};
|
@@ -17,12 +20,18 @@ interface Transaction extends Resource {
|
|
17
20
|
token?: string;
|
18
21
|
gateway_transaction_id?: string;
|
19
22
|
order?: Order;
|
23
|
+
attachments?: Attachment[];
|
24
|
+
events?: Event[];
|
25
|
+
versions?: Version[];
|
20
26
|
}
|
21
27
|
declare class Transactions extends ApiResource {
|
22
28
|
static readonly TYPE: 'transactions';
|
23
29
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Transaction>>;
|
24
30
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Transaction>;
|
25
31
|
order(transactionId: string | Transaction, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
32
|
+
attachments(transactionId: string | Transaction, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
33
|
+
events(transactionId: string | Transaction, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
34
|
+
versions(transactionId: string | Transaction, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
26
35
|
isTransaction(resource: any): resource is Transaction;
|
27
36
|
relationship(id: string | ResourceId | null): TransactionRel;
|
28
37
|
type(): string;
|
@@ -13,6 +13,18 @@ class Transactions extends resource_1.ApiResource {
|
|
13
13
|
const _transactionId = transactionId.id || transactionId;
|
14
14
|
return this.resources.fetch({ type: 'orders' }, `transactions/${_transactionId}/order`, params, options);
|
15
15
|
}
|
16
|
+
async attachments(transactionId, params, options) {
|
17
|
+
const _transactionId = transactionId.id || transactionId;
|
18
|
+
return this.resources.fetch({ type: 'attachments' }, `transactions/${_transactionId}/attachments`, params, options);
|
19
|
+
}
|
20
|
+
async events(transactionId, params, options) {
|
21
|
+
const _transactionId = transactionId.id || transactionId;
|
22
|
+
return this.resources.fetch({ type: 'events' }, `transactions/${_transactionId}/events`, params, options);
|
23
|
+
}
|
24
|
+
async versions(transactionId, params, options) {
|
25
|
+
const _transactionId = transactionId.id || transactionId;
|
26
|
+
return this.resources.fetch({ type: 'versions' }, `transactions/${_transactionId}/versions`, params, options);
|
27
|
+
}
|
16
28
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
17
29
|
isTransaction(resource) {
|
18
30
|
return resource.type && (resource.type === Transactions.TYPE);
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
+
type VersionRel = ResourceRel & {
|
4
|
+
type: typeof Versions.TYPE;
|
5
|
+
};
|
6
|
+
interface Version extends Resource {
|
7
|
+
resource_type?: string;
|
8
|
+
resource_id?: string;
|
9
|
+
event?: string;
|
10
|
+
changes?: object;
|
11
|
+
who?: object;
|
12
|
+
}
|
13
|
+
declare class Versions extends ApiResource {
|
14
|
+
static readonly TYPE: 'versions';
|
15
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
16
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Version>;
|
17
|
+
isVersion(resource: any): resource is Version;
|
18
|
+
relationship(id: string | ResourceId | null): VersionRel;
|
19
|
+
type(): string;
|
20
|
+
}
|
21
|
+
export default Versions;
|
22
|
+
export { Version };
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const resource_1 = require("../resource");
|
4
|
+
class Versions extends resource_1.ApiResource {
|
5
|
+
// static readonly PATH = 'versions'
|
6
|
+
async list(params, options) {
|
7
|
+
return this.resources.list({ type: Versions.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async retrieve(id, params, options) {
|
10
|
+
return this.resources.retrieve({ type: Versions.TYPE, id }, params, options);
|
11
|
+
}
|
12
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
13
|
+
isVersion(resource) {
|
14
|
+
return resource.type && (resource.type === Versions.TYPE);
|
15
|
+
}
|
16
|
+
relationship(id) {
|
17
|
+
return ((id === null) || (typeof id === 'string')) ? { id, type: Versions.TYPE } : { id: id.id, type: Versions.TYPE };
|
18
|
+
}
|
19
|
+
type() {
|
20
|
+
return Versions.TYPE;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
Versions.TYPE = 'versions';
|
24
|
+
exports.default = Versions;
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Order } from './orders';
|
4
|
-
import type {
|
4
|
+
import type { Attachment } from './attachments';
|
5
5
|
import type { Event } from './events';
|
6
|
+
import type { Version } from './versions';
|
7
|
+
import type { Authorization } from './authorizations';
|
6
8
|
type VoidRel = ResourceRel & {
|
7
9
|
type: typeof Voids.TYPE;
|
8
10
|
};
|
@@ -19,16 +21,20 @@ interface Void extends Resource {
|
|
19
21
|
token?: string;
|
20
22
|
gateway_transaction_id?: string;
|
21
23
|
order?: Order;
|
22
|
-
|
24
|
+
attachments?: Attachment[];
|
23
25
|
events?: Event[];
|
26
|
+
versions?: Version[];
|
27
|
+
reference_authorization?: Authorization;
|
24
28
|
}
|
25
29
|
declare class Voids extends ApiResource {
|
26
30
|
static readonly TYPE: 'voids';
|
27
31
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Void>>;
|
28
32
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Void>;
|
29
33
|
order(voidId: string | Void, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
30
|
-
|
34
|
+
attachments(voidId: string | Void, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
31
35
|
events(voidId: string | Void, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
36
|
+
versions(voidId: string | Void, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
37
|
+
reference_authorization(voidId: string | Void, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
32
38
|
isVoid(resource: any): resource is Void;
|
33
39
|
relationship(id: string | ResourceId | null): VoidRel;
|
34
40
|
type(): string;
|
@@ -13,14 +13,22 @@ class Voids extends resource_1.ApiResource {
|
|
13
13
|
const _voidId = voidId.id || voidId;
|
14
14
|
return this.resources.fetch({ type: 'orders' }, `voids/${_voidId}/order`, params, options);
|
15
15
|
}
|
16
|
-
async
|
16
|
+
async attachments(voidId, params, options) {
|
17
17
|
const _voidId = voidId.id || voidId;
|
18
|
-
return this.resources.fetch({ type: '
|
18
|
+
return this.resources.fetch({ type: 'attachments' }, `voids/${_voidId}/attachments`, params, options);
|
19
19
|
}
|
20
20
|
async events(voidId, params, options) {
|
21
21
|
const _voidId = voidId.id || voidId;
|
22
22
|
return this.resources.fetch({ type: 'events' }, `voids/${_voidId}/events`, params, options);
|
23
23
|
}
|
24
|
+
async versions(voidId, params, options) {
|
25
|
+
const _voidId = voidId.id || voidId;
|
26
|
+
return this.resources.fetch({ type: 'versions' }, `voids/${_voidId}/versions`, params, options);
|
27
|
+
}
|
28
|
+
async reference_authorization(voidId, params, options) {
|
29
|
+
const _voidId = voidId.id || voidId;
|
30
|
+
return this.resources.fetch({ type: 'authorizations' }, `voids/${_voidId}/reference_authorization`, params, options);
|
31
|
+
}
|
24
32
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
25
33
|
isVoid(resource) {
|
26
34
|
return resource.type && (resource.type === Voids.TYPE);
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { EventCallback } from './event_callbacks';
|
4
|
+
import type { Version } from './versions';
|
4
5
|
type WebhookRel = ResourceRel & {
|
5
6
|
type: typeof Webhooks.TYPE;
|
6
7
|
};
|
@@ -12,13 +13,17 @@ interface Webhook extends Resource {
|
|
12
13
|
circuit_state?: string;
|
13
14
|
circuit_failure_count?: number;
|
14
15
|
shared_secret?: string;
|
16
|
+
disabled_at?: string;
|
15
17
|
last_event_callbacks?: EventCallback[];
|
18
|
+
versions?: Version[];
|
16
19
|
}
|
17
20
|
interface WebhookCreate extends ResourceCreate {
|
18
21
|
name?: string;
|
19
22
|
topic: string;
|
20
23
|
callback_url: string;
|
21
24
|
include_resources?: string[];
|
25
|
+
_disable?: boolean;
|
26
|
+
_enable?: boolean;
|
22
27
|
}
|
23
28
|
interface WebhookUpdate extends ResourceUpdate {
|
24
29
|
name?: string;
|
@@ -26,6 +31,8 @@ interface WebhookUpdate extends ResourceUpdate {
|
|
26
31
|
callback_url?: string;
|
27
32
|
include_resources?: string[];
|
28
33
|
_reset_circuit?: boolean;
|
34
|
+
_disable?: boolean;
|
35
|
+
_enable?: boolean;
|
29
36
|
}
|
30
37
|
declare class Webhooks extends ApiResource {
|
31
38
|
static readonly TYPE: 'webhooks';
|
@@ -35,6 +42,7 @@ declare class Webhooks extends ApiResource {
|
|
35
42
|
update(resource: WebhookUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
36
43
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
37
44
|
last_event_callbacks(webhookId: string | Webhook, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<EventCallback>>;
|
45
|
+
versions(webhookId: string | Webhook, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
38
46
|
isWebhook(resource: any): resource is Webhook;
|
39
47
|
relationship(id: string | ResourceId | null): WebhookRel;
|
40
48
|
type(): string;
|
@@ -22,6 +22,10 @@ class Webhooks extends resource_1.ApiResource {
|
|
22
22
|
const _webhookId = webhookId.id || webhookId;
|
23
23
|
return this.resources.fetch({ type: 'event_callbacks' }, `webhooks/${_webhookId}/last_event_callbacks`, params, options);
|
24
24
|
}
|
25
|
+
async versions(webhookId, params, options) {
|
26
|
+
const _webhookId = webhookId.id || webhookId;
|
27
|
+
return this.resources.fetch({ type: 'versions' }, `webhooks/${_webhookId}/versions`, params, options);
|
28
|
+
}
|
25
29
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
26
30
|
isWebhook(resource) {
|
27
31
|
return resource.type && (resource.type === Webhooks.TYPE);
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Order } from './orders';
|
4
|
+
import type { Version } from './versions';
|
4
5
|
type WireTransferRel = ResourceRel & {
|
5
6
|
type: typeof WireTransfers.TYPE;
|
6
7
|
};
|
@@ -10,6 +11,7 @@ type OrderRel = ResourceRel & {
|
|
10
11
|
interface WireTransfer extends Resource {
|
11
12
|
payment_instrument?: object;
|
12
13
|
order?: Order;
|
14
|
+
versions?: Version[];
|
13
15
|
}
|
14
16
|
interface WireTransferCreate extends ResourceCreate {
|
15
17
|
order: OrderRel;
|
@@ -25,6 +27,7 @@ declare class WireTransfers extends ApiResource {
|
|
25
27
|
update(resource: WireTransferUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<WireTransfer>;
|
26
28
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
27
29
|
order(wireTransferId: string | WireTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
30
|
+
versions(wireTransferId: string | WireTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
28
31
|
isWireTransfer(resource: any): resource is WireTransfer;
|
29
32
|
relationship(id: string | ResourceId | null): WireTransferRel;
|
30
33
|
type(): string;
|
@@ -22,6 +22,10 @@ class WireTransfers extends resource_1.ApiResource {
|
|
22
22
|
const _wireTransferId = wireTransferId.id || wireTransferId;
|
23
23
|
return this.resources.fetch({ type: 'orders' }, `wire_transfers/${_wireTransferId}/order`, params, options);
|
24
24
|
}
|
25
|
+
async versions(wireTransferId, params, options) {
|
26
|
+
const _wireTransferId = wireTransferId.id || wireTransferId;
|
27
|
+
return this.resources.fetch({ type: 'versions' }, `wire_transfers/${_wireTransferId}/versions`, params, options);
|
28
|
+
}
|
25
29
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
26
30
|
isWireTransfer(resource) {
|
27
31
|
return resource.type && (resource.type === WireTransfers.TYPE);
|
package/lib/cjs/util.d.ts
CHANGED
package/lib/esm/api.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
2
|
+
* ©2024 Commerce Layer Inc.
|
3
3
|
**/
|
4
4
|
export { default as Addresses } from './resources/addresses';
|
5
5
|
export { default as Adjustments } from './resources/adjustments';
|
@@ -16,6 +16,7 @@ export { default as BingGeocoders } from './resources/bing_geocoders';
|
|
16
16
|
export { default as BraintreeGateways } from './resources/braintree_gateways';
|
17
17
|
export { default as BraintreePayments } from './resources/braintree_payments';
|
18
18
|
export { default as Bundles } from './resources/bundles';
|
19
|
+
export { default as BuyXPayYPromotions } from './resources/buy_x_pay_y_promotions';
|
19
20
|
export { default as Captures } from './resources/captures';
|
20
21
|
export { default as CarrierAccounts } from './resources/carrier_accounts';
|
21
22
|
export { default as CheckoutComGateways } from './resources/checkout_com_gateways';
|
@@ -24,6 +25,7 @@ export { default as Cleanups } from './resources/cleanups';
|
|
24
25
|
export { default as CouponCodesPromotionRules } from './resources/coupon_codes_promotion_rules';
|
25
26
|
export { default as CouponRecipients } from './resources/coupon_recipients';
|
26
27
|
export { default as Coupons } from './resources/coupons';
|
28
|
+
export { default as CustomPromotionRules } from './resources/custom_promotion_rules';
|
27
29
|
export { default as CustomerAddresses } from './resources/customer_addresses';
|
28
30
|
export { default as CustomerGroups } from './resources/customer_groups';
|
29
31
|
export { default as CustomerPasswordResets } from './resources/customer_password_resets';
|
@@ -72,6 +74,7 @@ export { default as ParcelLineItems } from './resources/parcel_line_items';
|
|
72
74
|
export { default as Parcels } from './resources/parcels';
|
73
75
|
export { default as PaymentGateways } from './resources/payment_gateways';
|
74
76
|
export { default as PaymentMethods } from './resources/payment_methods';
|
77
|
+
export { default as PaymentOptions } from './resources/payment_options';
|
75
78
|
export { default as PaypalGateways } from './resources/paypal_gateways';
|
76
79
|
export { default as PaypalPayments } from './resources/paypal_payments';
|
77
80
|
export { default as PercentageDiscountPromotions } from './resources/percentage_discount_promotions';
|
@@ -84,6 +87,7 @@ export { default as PromotionRules } from './resources/promotion_rules';
|
|
84
87
|
export { default as Promotions } from './resources/promotions';
|
85
88
|
export { default as RecurringOrderCopies } from './resources/recurring_order_copies';
|
86
89
|
export { default as Refunds } from './resources/refunds';
|
90
|
+
export { default as ReservedStocks } from './resources/reserved_stocks';
|
87
91
|
export { default as ReturnLineItems } from './resources/return_line_items';
|
88
92
|
export { default as Returns } from './resources/returns';
|
89
93
|
export { default as SatispayGateways } from './resources/satispay_gateways';
|
@@ -102,17 +106,20 @@ export { default as Skus } from './resources/skus';
|
|
102
106
|
export { default as StockItems } from './resources/stock_items';
|
103
107
|
export { default as StockLineItems } from './resources/stock_line_items';
|
104
108
|
export { default as StockLocations } from './resources/stock_locations';
|
109
|
+
export { default as StockReservations } from './resources/stock_reservations';
|
105
110
|
export { default as StockTransfers } from './resources/stock_transfers';
|
106
111
|
export { default as StripeGateways } from './resources/stripe_gateways';
|
107
112
|
export { default as StripePayments } from './resources/stripe_payments';
|
108
113
|
export { default as SubscriptionModels } from './resources/subscription_models';
|
114
|
+
export { default as Tags } from './resources/tags';
|
109
115
|
export { default as TaxCalculators } from './resources/tax_calculators';
|
110
116
|
export { default as TaxCategories } from './resources/tax_categories';
|
111
117
|
export { default as TaxRules } from './resources/tax_rules';
|
112
118
|
export { default as TaxjarAccounts } from './resources/taxjar_accounts';
|
113
119
|
export { default as Transactions } from './resources/transactions';
|
120
|
+
export { default as Versions } from './resources/versions';
|
114
121
|
export { default as Voids } from './resources/voids';
|
115
122
|
export { default as Webhooks } from './resources/webhooks';
|
116
123
|
export { default as WireTransfers } from './resources/wire_transfers';
|
117
|
-
export type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
118
|
-
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|
124
|
+
export type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'reserved_stocks' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'versions' | 'voids' | 'webhooks' | 'wire_transfers';
|
125
|
+
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "reserved_stocks", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tags", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "versions", "voids", "webhooks", "wire_transfers"];
|
package/lib/esm/api.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
// ##__API_RESOURCES_START__##
|
2
2
|
// ##__API_RESOURCES_TEMPLATE:: export { default as ##__RESOURCE_CLASS__## } from './resources/##__RESOURCE_TYPE__##'
|
3
3
|
/**
|
4
|
-
* ©
|
4
|
+
* ©2024 Commerce Layer Inc.
|
5
5
|
**/
|
6
6
|
export { default as Addresses } from './resources/addresses';
|
7
7
|
export { default as Adjustments } from './resources/adjustments';
|
@@ -18,6 +18,7 @@ export { default as BingGeocoders } from './resources/bing_geocoders';
|
|
18
18
|
export { default as BraintreeGateways } from './resources/braintree_gateways';
|
19
19
|
export { default as BraintreePayments } from './resources/braintree_payments';
|
20
20
|
export { default as Bundles } from './resources/bundles';
|
21
|
+
export { default as BuyXPayYPromotions } from './resources/buy_x_pay_y_promotions';
|
21
22
|
export { default as Captures } from './resources/captures';
|
22
23
|
export { default as CarrierAccounts } from './resources/carrier_accounts';
|
23
24
|
export { default as CheckoutComGateways } from './resources/checkout_com_gateways';
|
@@ -26,6 +27,7 @@ export { default as Cleanups } from './resources/cleanups';
|
|
26
27
|
export { default as CouponCodesPromotionRules } from './resources/coupon_codes_promotion_rules';
|
27
28
|
export { default as CouponRecipients } from './resources/coupon_recipients';
|
28
29
|
export { default as Coupons } from './resources/coupons';
|
30
|
+
export { default as CustomPromotionRules } from './resources/custom_promotion_rules';
|
29
31
|
export { default as CustomerAddresses } from './resources/customer_addresses';
|
30
32
|
export { default as CustomerGroups } from './resources/customer_groups';
|
31
33
|
export { default as CustomerPasswordResets } from './resources/customer_password_resets';
|
@@ -74,6 +76,7 @@ export { default as ParcelLineItems } from './resources/parcel_line_items';
|
|
74
76
|
export { default as Parcels } from './resources/parcels';
|
75
77
|
export { default as PaymentGateways } from './resources/payment_gateways';
|
76
78
|
export { default as PaymentMethods } from './resources/payment_methods';
|
79
|
+
export { default as PaymentOptions } from './resources/payment_options';
|
77
80
|
export { default as PaypalGateways } from './resources/paypal_gateways';
|
78
81
|
export { default as PaypalPayments } from './resources/paypal_payments';
|
79
82
|
export { default as PercentageDiscountPromotions } from './resources/percentage_discount_promotions';
|
@@ -86,6 +89,7 @@ export { default as PromotionRules } from './resources/promotion_rules';
|
|
86
89
|
export { default as Promotions } from './resources/promotions';
|
87
90
|
export { default as RecurringOrderCopies } from './resources/recurring_order_copies';
|
88
91
|
export { default as Refunds } from './resources/refunds';
|
92
|
+
export { default as ReservedStocks } from './resources/reserved_stocks';
|
89
93
|
export { default as ReturnLineItems } from './resources/return_line_items';
|
90
94
|
export { default as Returns } from './resources/returns';
|
91
95
|
export { default as SatispayGateways } from './resources/satispay_gateways';
|
@@ -104,15 +108,18 @@ export { default as Skus } from './resources/skus';
|
|
104
108
|
export { default as StockItems } from './resources/stock_items';
|
105
109
|
export { default as StockLineItems } from './resources/stock_line_items';
|
106
110
|
export { default as StockLocations } from './resources/stock_locations';
|
111
|
+
export { default as StockReservations } from './resources/stock_reservations';
|
107
112
|
export { default as StockTransfers } from './resources/stock_transfers';
|
108
113
|
export { default as StripeGateways } from './resources/stripe_gateways';
|
109
114
|
export { default as StripePayments } from './resources/stripe_payments';
|
110
115
|
export { default as SubscriptionModels } from './resources/subscription_models';
|
116
|
+
export { default as Tags } from './resources/tags';
|
111
117
|
export { default as TaxCalculators } from './resources/tax_calculators';
|
112
118
|
export { default as TaxCategories } from './resources/tax_categories';
|
113
119
|
export { default as TaxRules } from './resources/tax_rules';
|
114
120
|
export { default as TaxjarAccounts } from './resources/taxjar_accounts';
|
115
121
|
export { default as Transactions } from './resources/transactions';
|
122
|
+
export { default as Versions } from './resources/versions';
|
116
123
|
export { default as Voids } from './resources/voids';
|
117
124
|
export { default as Webhooks } from './resources/webhooks';
|
118
125
|
export { default as WireTransfers } from './resources/wire_transfers';
|
@@ -134,6 +141,7 @@ export const resourceList = [
|
|
134
141
|
'braintree_gateways',
|
135
142
|
'braintree_payments',
|
136
143
|
'bundles',
|
144
|
+
'buy_x_pay_y_promotions',
|
137
145
|
'captures',
|
138
146
|
'carrier_accounts',
|
139
147
|
'checkout_com_gateways',
|
@@ -142,6 +150,7 @@ export const resourceList = [
|
|
142
150
|
'coupon_codes_promotion_rules',
|
143
151
|
'coupon_recipients',
|
144
152
|
'coupons',
|
153
|
+
'custom_promotion_rules',
|
145
154
|
'customer_addresses',
|
146
155
|
'customer_groups',
|
147
156
|
'customer_password_resets',
|
@@ -190,6 +199,7 @@ export const resourceList = [
|
|
190
199
|
'parcels',
|
191
200
|
'payment_gateways',
|
192
201
|
'payment_methods',
|
202
|
+
'payment_options',
|
193
203
|
'paypal_gateways',
|
194
204
|
'paypal_payments',
|
195
205
|
'percentage_discount_promotions',
|
@@ -202,6 +212,7 @@ export const resourceList = [
|
|
202
212
|
'promotions',
|
203
213
|
'recurring_order_copies',
|
204
214
|
'refunds',
|
215
|
+
'reserved_stocks',
|
205
216
|
'return_line_items',
|
206
217
|
'returns',
|
207
218
|
'satispay_gateways',
|
@@ -220,15 +231,18 @@ export const resourceList = [
|
|
220
231
|
'stock_items',
|
221
232
|
'stock_line_items',
|
222
233
|
'stock_locations',
|
234
|
+
'stock_reservations',
|
223
235
|
'stock_transfers',
|
224
236
|
'stripe_gateways',
|
225
237
|
'stripe_payments',
|
226
238
|
'subscription_models',
|
239
|
+
'tags',
|
227
240
|
'tax_calculators',
|
228
241
|
'tax_categories',
|
229
242
|
'tax_rules',
|
230
243
|
'taxjar_accounts',
|
231
244
|
'transactions',
|
245
|
+
'versions',
|
232
246
|
'voids',
|
233
247
|
'webhooks',
|
234
248
|
'wire_transfers'
|
@@ -2,7 +2,7 @@ import * as api from './api';
|
|
2
2
|
import { ApiError } from './error';
|
3
3
|
import type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor } from './interceptor';
|
4
4
|
import { ResourcesInitConfig } from './resource';
|
5
|
-
declare const OPEN_API_SCHEMA_VERSION = "4.
|
5
|
+
declare const OPEN_API_SCHEMA_VERSION = "4.26.0";
|
6
6
|
export { OPEN_API_SCHEMA_VERSION };
|
7
7
|
type SdkConfig = {};
|
8
8
|
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
@@ -10,7 +10,7 @@ type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
|
10
10
|
declare class CommerceLayerClient {
|
11
11
|
#private;
|
12
12
|
static get openApiSchemaVersion(): string;
|
13
|
-
readonly openApiSchemaVersion = "4.
|
13
|
+
readonly openApiSchemaVersion = "4.26.0";
|
14
14
|
addresses: api.Addresses;
|
15
15
|
adjustments: api.Adjustments;
|
16
16
|
adyen_gateways: api.AdyenGateways;
|
@@ -26,6 +26,7 @@ declare class CommerceLayerClient {
|
|
26
26
|
braintree_gateways: api.BraintreeGateways;
|
27
27
|
braintree_payments: api.BraintreePayments;
|
28
28
|
bundles: api.Bundles;
|
29
|
+
buy_x_pay_y_promotions: api.BuyXPayYPromotions;
|
29
30
|
captures: api.Captures;
|
30
31
|
carrier_accounts: api.CarrierAccounts;
|
31
32
|
checkout_com_gateways: api.CheckoutComGateways;
|
@@ -34,6 +35,7 @@ declare class CommerceLayerClient {
|
|
34
35
|
coupon_codes_promotion_rules: api.CouponCodesPromotionRules;
|
35
36
|
coupon_recipients: api.CouponRecipients;
|
36
37
|
coupons: api.Coupons;
|
38
|
+
custom_promotion_rules: api.CustomPromotionRules;
|
37
39
|
customer_addresses: api.CustomerAddresses;
|
38
40
|
customer_groups: api.CustomerGroups;
|
39
41
|
customer_password_resets: api.CustomerPasswordResets;
|
@@ -82,6 +84,7 @@ declare class CommerceLayerClient {
|
|
82
84
|
parcels: api.Parcels;
|
83
85
|
payment_gateways: api.PaymentGateways;
|
84
86
|
payment_methods: api.PaymentMethods;
|
87
|
+
payment_options: api.PaymentOptions;
|
85
88
|
paypal_gateways: api.PaypalGateways;
|
86
89
|
paypal_payments: api.PaypalPayments;
|
87
90
|
percentage_discount_promotions: api.PercentageDiscountPromotions;
|
@@ -94,6 +97,7 @@ declare class CommerceLayerClient {
|
|
94
97
|
promotions: api.Promotions;
|
95
98
|
recurring_order_copies: api.RecurringOrderCopies;
|
96
99
|
refunds: api.Refunds;
|
100
|
+
reserved_stocks: api.ReservedStocks;
|
97
101
|
return_line_items: api.ReturnLineItems;
|
98
102
|
returns: api.Returns;
|
99
103
|
satispay_gateways: api.SatispayGateways;
|
@@ -112,15 +116,18 @@ declare class CommerceLayerClient {
|
|
112
116
|
stock_items: api.StockItems;
|
113
117
|
stock_line_items: api.StockLineItems;
|
114
118
|
stock_locations: api.StockLocations;
|
119
|
+
stock_reservations: api.StockReservations;
|
115
120
|
stock_transfers: api.StockTransfers;
|
116
121
|
stripe_gateways: api.StripeGateways;
|
117
122
|
stripe_payments: api.StripePayments;
|
118
123
|
subscription_models: api.SubscriptionModels;
|
124
|
+
tags: api.Tags;
|
119
125
|
tax_calculators: api.TaxCalculators;
|
120
126
|
tax_categories: api.TaxCategories;
|
121
127
|
tax_rules: api.TaxRules;
|
122
128
|
taxjar_accounts: api.TaxjarAccounts;
|
123
129
|
transactions: api.Transactions;
|
130
|
+
versions: api.Versions;
|
124
131
|
voids: api.Voids;
|
125
132
|
webhooks: api.Webhooks;
|
126
133
|
wire_transfers: api.WireTransfers;
|
package/lib/esm/commercelayer.js
CHANGED
@@ -16,7 +16,7 @@ import ResourceAdapter from './resource';
|
|
16
16
|
import Debug from './debug';
|
17
17
|
const debug = Debug('commercelayer');
|
18
18
|
// Autogenerated schema version number, do not remove this line
|
19
|
-
const OPEN_API_SCHEMA_VERSION = '4.
|
19
|
+
const OPEN_API_SCHEMA_VERSION = '4.26.0';
|
20
20
|
export { OPEN_API_SCHEMA_VERSION };
|
21
21
|
class CommerceLayerClient {
|
22
22
|
static get openApiSchemaVersion() { return OPEN_API_SCHEMA_VERSION; }
|
@@ -45,6 +45,7 @@ class CommerceLayerClient {
|
|
45
45
|
this.braintree_gateways = new api.BraintreeGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
46
46
|
this.braintree_payments = new api.BraintreePayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
47
47
|
this.bundles = new api.Bundles(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
48
|
+
this.buy_x_pay_y_promotions = new api.BuyXPayYPromotions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
48
49
|
this.captures = new api.Captures(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
49
50
|
this.carrier_accounts = new api.CarrierAccounts(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
50
51
|
this.checkout_com_gateways = new api.CheckoutComGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
@@ -53,6 +54,7 @@ class CommerceLayerClient {
|
|
53
54
|
this.coupon_codes_promotion_rules = new api.CouponCodesPromotionRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
54
55
|
this.coupon_recipients = new api.CouponRecipients(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
55
56
|
this.coupons = new api.Coupons(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
57
|
+
this.custom_promotion_rules = new api.CustomPromotionRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
56
58
|
this.customer_addresses = new api.CustomerAddresses(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
57
59
|
this.customer_groups = new api.CustomerGroups(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
58
60
|
this.customer_password_resets = new api.CustomerPasswordResets(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
@@ -101,6 +103,7 @@ class CommerceLayerClient {
|
|
101
103
|
this.parcels = new api.Parcels(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
102
104
|
this.payment_gateways = new api.PaymentGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
103
105
|
this.payment_methods = new api.PaymentMethods(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
106
|
+
this.payment_options = new api.PaymentOptions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
104
107
|
this.paypal_gateways = new api.PaypalGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
105
108
|
this.paypal_payments = new api.PaypalPayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
106
109
|
this.percentage_discount_promotions = new api.PercentageDiscountPromotions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
@@ -113,6 +116,7 @@ class CommerceLayerClient {
|
|
113
116
|
this.promotions = new api.Promotions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
114
117
|
this.recurring_order_copies = new api.RecurringOrderCopies(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
115
118
|
this.refunds = new api.Refunds(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
119
|
+
this.reserved_stocks = new api.ReservedStocks(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
116
120
|
this.return_line_items = new api.ReturnLineItems(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
117
121
|
this.returns = new api.Returns(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
118
122
|
this.satispay_gateways = new api.SatispayGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
@@ -131,15 +135,18 @@ class CommerceLayerClient {
|
|
131
135
|
this.stock_items = new api.StockItems(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
132
136
|
this.stock_line_items = new api.StockLineItems(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
133
137
|
this.stock_locations = new api.StockLocations(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
138
|
+
this.stock_reservations = new api.StockReservations(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
134
139
|
this.stock_transfers = new api.StockTransfers(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
135
140
|
this.stripe_gateways = new api.StripeGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
136
141
|
this.stripe_payments = new api.StripePayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
137
142
|
this.subscription_models = new api.SubscriptionModels(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
143
|
+
this.tags = new api.Tags(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
138
144
|
this.tax_calculators = new api.TaxCalculators(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
139
145
|
this.tax_categories = new api.TaxCategories(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
140
146
|
this.tax_rules = new api.TaxRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
141
147
|
this.taxjar_accounts = new api.TaxjarAccounts(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
142
148
|
this.transactions = new api.Transactions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
149
|
+
this.versions = new api.Versions(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
143
150
|
this.voids = new api.Voids(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
144
151
|
this.webhooks = new api.Webhooks(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
145
152
|
this.wire_transfers = new api.WireTransfers(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|