@commercelayer/sdk 7.0.0-beta.11 → 7.0.0-beta.13
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/README.md +48 -35
- package/lib/{api-BYcswOJ0.d.cts → api-Bq9emZm-.d.cts} +553 -43
- package/lib/{api-Cknm0QL_.d.ts → api-C5qyxFpD.d.ts} +553 -43
- package/lib/api.cjs +134 -132
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +134 -132
- package/lib/chunk-AQ5VUG5P.js +12 -0
- package/lib/chunk-JE77HYXB.cjs +17 -0
- package/lib/client.cjs +36 -39
- package/lib/client.d.cts +1 -1
- package/lib/client.d.ts +1 -1
- package/lib/client.js +7 -10
- package/lib/commercelayer.cjs +30 -705
- package/lib/commercelayer.d.cts +9 -137
- package/lib/commercelayer.d.ts +9 -137
- package/lib/commercelayer.js +29 -684
- package/lib/common.cjs +1 -0
- package/lib/common.d.cts +2 -2
- package/lib/common.d.ts +2 -2
- package/lib/common.js +1 -0
- package/lib/config.cjs +2 -0
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/config.js +2 -0
- package/lib/debug.cjs +2 -0
- package/lib/debug.js +2 -0
- package/lib/error.cjs +9 -12
- package/lib/error.js +1 -4
- package/lib/fetch.cjs +14 -23
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/fetch.js +1 -10
- package/lib/index.cjs +4 -3
- package/lib/index.d.cts +2 -3
- package/lib/index.d.ts +2 -3
- package/lib/index.js +2 -1
- package/lib/{interceptor-5MISI1yn.d.cts → interceptor-D65i25Y7.d.cts} +1 -1
- package/lib/{interceptor-5MISI1yn.d.ts → interceptor-D65i25Y7.d.ts} +1 -1
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.cjs +1 -0
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/jsonapi.js +1 -0
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.cjs +1 -0
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/query.js +1 -0
- package/lib/resource.cjs +25 -34
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +10 -19
- package/lib/resources/addresses.cjs +10 -5
- package/lib/resources/addresses.d.cts +2 -2
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/addresses.js +9 -4
- package/lib/resources/adjustments.cjs +4 -5
- package/lib/resources/adjustments.d.cts +2 -2
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adjustments.js +3 -4
- package/lib/resources/adyen_gateways.cjs +4 -5
- package/lib/resources/adyen_gateways.d.cts +2 -2
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_gateways.js +3 -4
- package/lib/resources/adyen_payments.cjs +4 -5
- package/lib/resources/adyen_payments.d.cts +2 -2
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/adyen_payments.js +3 -4
- package/lib/resources/applications.cjs +4 -5
- package/lib/resources/applications.d.cts +2 -2
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/applications.js +3 -4
- package/lib/resources/attachments.cjs +4 -5
- package/lib/resources/attachments.d.cts +2 -2
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/attachments.js +3 -4
- package/lib/resources/authorizations.cjs +4 -5
- package/lib/resources/authorizations.d.cts +2 -2
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/authorizations.js +3 -4
- package/lib/resources/avalara_accounts.cjs +4 -5
- package/lib/resources/avalara_accounts.d.cts +2 -2
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/avalara_accounts.js +3 -4
- package/lib/resources/axerve_gateways.cjs +4 -5
- package/lib/resources/axerve_gateways.d.cts +2 -2
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_gateways.js +3 -4
- package/lib/resources/axerve_payments.cjs +4 -5
- package/lib/resources/axerve_payments.d.cts +2 -2
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/axerve_payments.js +3 -4
- package/lib/resources/bing_geocoders.cjs +4 -5
- package/lib/resources/bing_geocoders.d.cts +2 -2
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/bing_geocoders.js +3 -4
- package/lib/resources/braintree_gateways.cjs +4 -5
- package/lib/resources/braintree_gateways.d.cts +2 -2
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_gateways.js +3 -4
- package/lib/resources/braintree_payments.cjs +4 -5
- package/lib/resources/braintree_payments.d.cts +2 -2
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/braintree_payments.js +3 -4
- package/lib/resources/bundles.cjs +10 -5
- package/lib/resources/bundles.d.cts +2 -2
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/bundles.js +9 -4
- package/lib/resources/buy_x_pay_y_promotions.cjs +10 -5
- package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.js +9 -4
- package/lib/resources/captures.cjs +4 -5
- package/lib/resources/captures.d.cts +2 -2
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/captures.js +3 -4
- package/lib/resources/carrier_accounts.cjs +4 -5
- package/lib/resources/carrier_accounts.d.cts +2 -2
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/carrier_accounts.js +3 -4
- package/lib/resources/checkout_com_gateways.cjs +4 -5
- package/lib/resources/checkout_com_gateways.d.cts +2 -2
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.js +3 -4
- package/lib/resources/checkout_com_payments.cjs +4 -5
- package/lib/resources/checkout_com_payments.d.cts +2 -2
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/checkout_com_payments.js +3 -4
- package/lib/resources/cleanups.cjs +4 -5
- package/lib/resources/cleanups.d.cts +2 -2
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/cleanups.js +3 -4
- package/lib/resources/coupon_codes_promotion_rules.cjs +4 -5
- package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.js +3 -4
- package/lib/resources/coupon_recipients.cjs +4 -5
- package/lib/resources/coupon_recipients.d.cts +2 -2
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupon_recipients.js +3 -4
- package/lib/resources/coupons.cjs +10 -5
- package/lib/resources/coupons.d.cts +2 -2
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/coupons.js +9 -4
- package/lib/resources/custom_promotion_rules.cjs +4 -5
- package/lib/resources/custom_promotion_rules.d.cts +2 -2
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.js +3 -4
- package/lib/resources/customer_addresses.cjs +4 -5
- package/lib/resources/customer_addresses.d.cts +2 -2
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_addresses.js +3 -4
- package/lib/resources/customer_groups.cjs +4 -5
- package/lib/resources/customer_groups.d.cts +2 -2
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_groups.js +3 -4
- package/lib/resources/customer_password_resets.cjs +4 -5
- package/lib/resources/customer_password_resets.d.cts +2 -2
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_password_resets.js +3 -4
- package/lib/resources/customer_payment_sources.cjs +4 -5
- package/lib/resources/customer_payment_sources.d.cts +2 -2
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_payment_sources.js +3 -4
- package/lib/resources/customer_subscriptions.cjs +4 -5
- package/lib/resources/customer_subscriptions.d.cts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customer_subscriptions.js +3 -4
- package/lib/resources/customers.cjs +10 -5
- package/lib/resources/customers.d.cts +2 -2
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/customers.js +9 -4
- package/lib/resources/delivery_lead_times.cjs +4 -5
- package/lib/resources/delivery_lead_times.d.cts +2 -2
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/delivery_lead_times.js +3 -4
- package/lib/resources/discount_engine_items.cjs +4 -5
- package/lib/resources/discount_engine_items.d.cts +2 -2
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engine_items.js +3 -4
- package/lib/resources/discount_engines.cjs +4 -5
- package/lib/resources/discount_engines.d.cts +2 -2
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/discount_engines.js +3 -4
- package/lib/resources/easypost_pickups.cjs +4 -5
- package/lib/resources/easypost_pickups.d.cts +2 -2
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/easypost_pickups.js +3 -4
- package/lib/resources/event_callbacks.cjs +4 -5
- package/lib/resources/event_callbacks.d.cts +2 -2
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/event_callbacks.js +3 -4
- package/lib/resources/events.cjs +4 -5
- package/lib/resources/events.d.cts +2 -2
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/events.js +3 -4
- package/lib/resources/exports.cjs +4 -5
- package/lib/resources/exports.d.cts +2 -2
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/exports.js +3 -4
- package/lib/resources/external_gateways.cjs +4 -5
- package/lib/resources/external_gateways.d.cts +2 -2
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_gateways.js +3 -4
- package/lib/resources/external_payments.cjs +4 -5
- package/lib/resources/external_payments.d.cts +2 -2
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_payments.js +3 -4
- package/lib/resources/external_promotions.cjs +10 -5
- package/lib/resources/external_promotions.d.cts +2 -2
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_promotions.js +9 -4
- package/lib/resources/external_tax_calculators.cjs +4 -5
- package/lib/resources/external_tax_calculators.d.cts +2 -2
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/external_tax_calculators.js +3 -4
- package/lib/resources/fixed_amount_promotions.cjs +10 -5
- package/lib/resources/fixed_amount_promotions.d.cts +2 -2
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.js +9 -4
- package/lib/resources/fixed_price_promotions.cjs +10 -5
- package/lib/resources/fixed_price_promotions.d.cts +2 -2
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.js +9 -4
- package/lib/resources/flex_promotions.cjs +10 -5
- package/lib/resources/flex_promotions.d.cts +2 -2
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.js +9 -4
- package/lib/resources/free_gift_promotions.cjs +10 -5
- package/lib/resources/free_gift_promotions.d.cts +2 -2
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.js +9 -4
- package/lib/resources/free_shipping_promotions.cjs +10 -5
- package/lib/resources/free_shipping_promotions.d.cts +2 -2
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.js +9 -4
- package/lib/resources/geocoders.cjs +4 -5
- package/lib/resources/geocoders.d.cts +2 -2
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/geocoders.js +3 -4
- package/lib/resources/gift_card_recipients.cjs +4 -5
- package/lib/resources/gift_card_recipients.d.cts +2 -2
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_card_recipients.js +3 -4
- package/lib/resources/gift_cards.cjs +10 -5
- package/lib/resources/gift_cards.d.cts +2 -2
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/gift_cards.js +9 -4
- package/lib/resources/google_geocoders.cjs +4 -5
- package/lib/resources/google_geocoders.d.cts +2 -2
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/google_geocoders.js +3 -4
- package/lib/resources/imports.cjs +4 -5
- package/lib/resources/imports.d.cts +2 -2
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/imports.js +3 -4
- package/lib/resources/in_stock_subscriptions.cjs +4 -5
- package/lib/resources/in_stock_subscriptions.d.cts +2 -2
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.js +3 -4
- package/lib/resources/inventory_models.cjs +4 -5
- package/lib/resources/inventory_models.d.cts +2 -2
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_models.js +3 -4
- package/lib/resources/inventory_return_locations.cjs +4 -5
- package/lib/resources/inventory_return_locations.d.cts +2 -2
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_return_locations.js +3 -4
- package/lib/resources/inventory_stock_locations.cjs +4 -5
- package/lib/resources/inventory_stock_locations.d.cts +2 -2
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.js +3 -4
- package/lib/resources/klarna_gateways.cjs +4 -5
- package/lib/resources/klarna_gateways.d.cts +2 -2
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_gateways.js +3 -4
- package/lib/resources/klarna_payments.cjs +4 -5
- package/lib/resources/klarna_payments.d.cts +2 -2
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/klarna_payments.js +3 -4
- package/lib/resources/line_item_options.cjs +10 -5
- package/lib/resources/line_item_options.d.cts +2 -2
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_item_options.js +9 -4
- package/lib/resources/line_items.cjs +10 -5
- package/lib/resources/line_items.d.cts +2 -2
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/line_items.js +9 -4
- package/lib/resources/links.cjs +4 -5
- package/lib/resources/links.d.cts +2 -2
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/links.js +3 -4
- package/lib/resources/manual_gateways.cjs +4 -5
- package/lib/resources/manual_gateways.d.cts +2 -2
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_gateways.js +3 -4
- package/lib/resources/manual_tax_calculators.cjs +4 -5
- package/lib/resources/manual_tax_calculators.d.cts +2 -2
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.js +3 -4
- package/lib/resources/markets.cjs +12 -5
- package/lib/resources/markets.d.cts +2 -2
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/markets.js +11 -4
- package/lib/resources/merchants.cjs +4 -5
- package/lib/resources/merchants.d.cts +2 -2
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/merchants.js +3 -4
- package/lib/resources/notifications.cjs +4 -5
- package/lib/resources/notifications.d.cts +2 -2
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/notifications.js +3 -4
- package/lib/resources/order_amount_promotion_rules.cjs +4 -5
- package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.js +3 -4
- package/lib/resources/order_copies.cjs +4 -5
- package/lib/resources/order_copies.d.cts +2 -2
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_copies.js +3 -4
- package/lib/resources/order_factories.cjs +4 -5
- package/lib/resources/order_factories.d.cts +2 -2
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_factories.js +3 -4
- package/lib/resources/order_subscription_items.cjs +4 -5
- package/lib/resources/order_subscription_items.d.cts +2 -2
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscription_items.js +3 -4
- package/lib/resources/order_subscriptions.cjs +10 -5
- package/lib/resources/order_subscriptions.d.cts +2 -2
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/order_subscriptions.js +9 -4
- package/lib/resources/orders.cjs +18 -5
- package/lib/resources/orders.d.cts +2 -2
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/orders.js +17 -4
- package/lib/resources/organizations.cjs +4 -5
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/organizations.js +3 -4
- package/lib/resources/packages.cjs +4 -5
- package/lib/resources/packages.d.cts +2 -2
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/packages.js +3 -4
- package/lib/resources/parcel_line_items.cjs +4 -5
- package/lib/resources/parcel_line_items.d.cts +2 -2
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcel_line_items.js +3 -4
- package/lib/resources/parcels.cjs +4 -5
- package/lib/resources/parcels.d.cts +2 -2
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/parcels.js +3 -4
- package/lib/resources/payment_gateways.cjs +4 -5
- package/lib/resources/payment_gateways.d.cts +2 -2
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_gateways.js +3 -4
- package/lib/resources/payment_methods.cjs +4 -5
- package/lib/resources/payment_methods.d.cts +2 -2
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_methods.js +3 -4
- package/lib/resources/payment_options.cjs +4 -5
- package/lib/resources/payment_options.d.cts +2 -2
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/payment_options.js +3 -4
- package/lib/resources/paypal_gateways.cjs +4 -5
- package/lib/resources/paypal_gateways.d.cts +2 -2
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_gateways.js +3 -4
- package/lib/resources/paypal_payments.cjs +4 -5
- package/lib/resources/paypal_payments.d.cts +2 -2
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/paypal_payments.js +3 -4
- package/lib/resources/percentage_discount_promotions.cjs +10 -5
- package/lib/resources/percentage_discount_promotions.d.cts +2 -2
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.js +9 -4
- package/lib/resources/pickups.cjs +4 -5
- package/lib/resources/pickups.d.cts +2 -2
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/pickups.js +3 -4
- package/lib/resources/price_frequency_tiers.cjs +4 -5
- package/lib/resources/price_frequency_tiers.d.cts +2 -2
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.js +3 -4
- package/lib/resources/price_list_schedulers.cjs +4 -5
- package/lib/resources/price_list_schedulers.d.cts +2 -2
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.js +3 -4
- package/lib/resources/price_lists.cjs +4 -5
- package/lib/resources/price_lists.d.cts +2 -2
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_lists.js +3 -4
- package/lib/resources/price_tiers.cjs +4 -5
- package/lib/resources/price_tiers.d.cts +2 -2
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_tiers.js +3 -4
- package/lib/resources/price_volume_tiers.cjs +4 -5
- package/lib/resources/price_volume_tiers.d.cts +2 -2
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.js +3 -4
- package/lib/resources/prices.cjs +4 -5
- package/lib/resources/prices.d.cts +2 -2
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/prices.js +3 -4
- package/lib/resources/promotion_rules.cjs +4 -5
- package/lib/resources/promotion_rules.d.cts +2 -2
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotion_rules.js +3 -4
- package/lib/resources/promotions.cjs +4 -5
- package/lib/resources/promotions.d.cts +2 -2
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/promotions.js +3 -4
- package/lib/resources/recurring_order_copies.cjs +4 -5
- package/lib/resources/recurring_order_copies.d.cts +2 -2
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/recurring_order_copies.js +3 -4
- package/lib/resources/refunds.cjs +4 -5
- package/lib/resources/refunds.d.cts +2 -2
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/refunds.js +3 -4
- package/lib/resources/reserved_stocks.cjs +4 -5
- package/lib/resources/reserved_stocks.d.cts +2 -2
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/reserved_stocks.js +3 -4
- package/lib/resources/resource_errors.cjs +4 -5
- package/lib/resources/resource_errors.d.cts +2 -2
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/resource_errors.js +3 -4
- package/lib/resources/return_line_items.cjs +4 -5
- package/lib/resources/return_line_items.d.cts +2 -2
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/return_line_items.js +3 -4
- package/lib/resources/returns.cjs +10 -5
- package/lib/resources/returns.d.cts +2 -2
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/returns.js +9 -4
- package/lib/resources/satispay_gateways.cjs +4 -5
- package/lib/resources/satispay_gateways.d.cts +2 -2
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_gateways.js +3 -4
- package/lib/resources/satispay_payments.cjs +4 -5
- package/lib/resources/satispay_payments.d.cts +2 -2
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/satispay_payments.js +3 -4
- package/lib/resources/shipments.cjs +10 -5
- package/lib/resources/shipments.d.cts +2 -2
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipments.js +9 -4
- package/lib/resources/shipping_categories.cjs +4 -5
- package/lib/resources/shipping_categories.d.cts +2 -2
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_categories.js +3 -4
- package/lib/resources/shipping_method_tiers.cjs +4 -5
- package/lib/resources/shipping_method_tiers.d.cts +2 -2
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.js +3 -4
- package/lib/resources/shipping_methods.cjs +4 -5
- package/lib/resources/shipping_methods.d.cts +2 -2
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_methods.js +3 -4
- package/lib/resources/shipping_weight_tiers.cjs +4 -5
- package/lib/resources/shipping_weight_tiers.d.cts +2 -2
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.js +3 -4
- package/lib/resources/shipping_zones.cjs +4 -5
- package/lib/resources/shipping_zones.d.cts +2 -2
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/shipping_zones.js +3 -4
- package/lib/resources/sku_list_items.cjs +4 -5
- package/lib/resources/sku_list_items.d.cts +2 -2
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_items.js +3 -4
- package/lib/resources/sku_list_promotion_rules.cjs +4 -5
- package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.js +3 -4
- package/lib/resources/sku_lists.cjs +4 -5
- package/lib/resources/sku_lists.d.cts +2 -2
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_lists.js +3 -4
- package/lib/resources/sku_options.cjs +10 -5
- package/lib/resources/sku_options.d.cts +2 -2
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/sku_options.js +9 -4
- package/lib/resources/skus.cjs +10 -5
- package/lib/resources/skus.d.cts +2 -2
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/skus.js +9 -4
- package/lib/resources/stock_items.cjs +4 -5
- package/lib/resources/stock_items.d.cts +2 -2
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_items.js +3 -4
- package/lib/resources/stock_line_items.cjs +4 -5
- package/lib/resources/stock_line_items.d.cts +2 -2
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_line_items.js +3 -4
- package/lib/resources/stock_locations.cjs +4 -5
- package/lib/resources/stock_locations.d.cts +2 -2
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_locations.js +3 -4
- package/lib/resources/stock_reservations.cjs +4 -5
- package/lib/resources/stock_reservations.d.cts +2 -2
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_reservations.js +3 -4
- package/lib/resources/stock_transfers.cjs +4 -5
- package/lib/resources/stock_transfers.d.cts +2 -2
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stock_transfers.js +3 -4
- package/lib/resources/stores.cjs +4 -5
- package/lib/resources/stores.d.cts +2 -2
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stores.js +3 -4
- package/lib/resources/stripe_gateways.cjs +4 -5
- package/lib/resources/stripe_gateways.d.cts +2 -2
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_gateways.js +3 -4
- package/lib/resources/stripe_payments.cjs +4 -5
- package/lib/resources/stripe_payments.d.cts +2 -2
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_payments.js +3 -4
- package/lib/resources/stripe_tax_accounts.cjs +4 -5
- package/lib/resources/stripe_tax_accounts.d.cts +2 -2
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.js +3 -4
- package/lib/resources/subscription_models.cjs +4 -5
- package/lib/resources/subscription_models.d.cts +2 -2
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/subscription_models.js +3 -4
- package/lib/resources/tags.cjs +4 -5
- package/lib/resources/tags.d.cts +2 -2
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/tags.js +3 -4
- package/lib/resources/talon_one_accounts.cjs +4 -5
- package/lib/resources/talon_one_accounts.d.cts +2 -2
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/talon_one_accounts.js +3 -4
- package/lib/resources/tax_calculators.cjs +4 -5
- package/lib/resources/tax_calculators.d.cts +2 -2
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_calculators.js +3 -4
- package/lib/resources/tax_categories.cjs +4 -5
- package/lib/resources/tax_categories.d.cts +2 -2
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_categories.js +3 -4
- package/lib/resources/tax_rules.cjs +4 -5
- package/lib/resources/tax_rules.d.cts +2 -2
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/tax_rules.js +3 -4
- package/lib/resources/taxjar_accounts.cjs +4 -5
- package/lib/resources/taxjar_accounts.d.cts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/taxjar_accounts.js +3 -4
- package/lib/resources/transactions.cjs +4 -5
- package/lib/resources/transactions.d.cts +2 -2
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/transactions.js +3 -4
- package/lib/resources/versions.cjs +4 -5
- package/lib/resources/versions.d.cts +2 -2
- package/lib/resources/versions.d.ts +2 -2
- package/lib/resources/versions.js +3 -4
- package/lib/resources/vertex_accounts.cjs +4 -5
- package/lib/resources/vertex_accounts.d.cts +2 -2
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/vertex_accounts.js +3 -4
- package/lib/resources/voids.cjs +4 -5
- package/lib/resources/voids.d.cts +2 -2
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/voids.js +3 -4
- package/lib/resources/webhooks.cjs +4 -5
- package/lib/resources/webhooks.d.cts +2 -2
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/webhooks.js +3 -4
- package/lib/resources/wire_transfers.cjs +4 -5
- package/lib/resources/wire_transfers.d.cts +2 -2
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/resources/wire_transfers.js +3 -4
- package/lib/static.cjs +1 -0
- package/lib/static.d.cts +3 -3
- package/lib/static.d.ts +3 -3
- package/lib/static.js +1 -0
- package/lib/util.cjs +2 -0
- package/lib/util.js +2 -0
- package/package.json +7 -7
- package/lib/instance.cjs +0 -272
- package/lib/instance.d.cts +0 -141
- package/lib/instance.d.ts +0 -141
- package/lib/instance.js +0 -139
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _PriceVolumeTiers = class _PriceVolumeTiers extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _PriceVolumeTiers.TYPE }, params, options);
|
@@ -44,9 +42,10 @@ const _PriceVolumeTiers = class _PriceVolumeTiers extends resource.ApiResource {
|
|
44
42
|
return _PriceVolumeTiers.TYPE;
|
45
43
|
}
|
46
44
|
};
|
47
|
-
__publicField(_PriceVolumeTiers, "TYPE", "price_volume_tiers");
|
45
|
+
chunkJE77HYXB_cjs.__publicField(_PriceVolumeTiers, "TYPE", "price_volume_tiers");
|
48
46
|
let PriceVolumeTiers = _PriceVolumeTiers;
|
49
|
-
|
47
|
+
const instance = new PriceVolumeTiers();
|
48
|
+
var price_volume_tiers_default = instance;
|
50
49
|
|
51
50
|
module.exports = price_volume_tiers_default;
|
52
51
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { h3 as PriceVolumeTier, h4 as PriceVolumeTierCreate, h6 as PriceVolumeTierSort, l0 as PriceVolumeTierType, h5 as PriceVolumeTierUpdate, aV as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { h3 as PriceVolumeTier, h4 as PriceVolumeTierCreate, h6 as PriceVolumeTierSort, l0 as PriceVolumeTierType, h5 as PriceVolumeTierUpdate, aV as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _PriceVolumeTiers = class _PriceVolumeTiers extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _PriceVolumeTiers.TYPE }, params, options);
|
@@ -44,6 +42,7 @@ const _PriceVolumeTiers = class _PriceVolumeTiers extends ApiResource {
|
|
44
42
|
};
|
45
43
|
__publicField(_PriceVolumeTiers, "TYPE", "price_volume_tiers");
|
46
44
|
let PriceVolumeTiers = _PriceVolumeTiers;
|
47
|
-
|
45
|
+
const instance = new PriceVolumeTiers();
|
46
|
+
var price_volume_tiers_default = instance;
|
48
47
|
|
49
48
|
export { price_volume_tiers_default as default };
|
package/lib/resources/prices.cjs
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _Prices = class _Prices extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _Prices.TYPE }, params, options);
|
@@ -68,9 +66,10 @@ const _Prices = class _Prices extends resource.ApiResource {
|
|
68
66
|
return _Prices.TYPE;
|
69
67
|
}
|
70
68
|
};
|
71
|
-
__publicField(_Prices, "TYPE", "prices");
|
69
|
+
chunkJE77HYXB_cjs.__publicField(_Prices, "TYPE", "prices");
|
72
70
|
let Prices = _Prices;
|
73
|
-
|
71
|
+
const instance = new Prices();
|
72
|
+
var prices_default = instance;
|
74
73
|
|
75
74
|
module.exports = prices_default;
|
76
75
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { h7 as Price, h8 as PriceCreate, ha as PriceSort, l2 as PriceType, h9 as PriceUpdate, aW as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { h7 as Price, h8 as PriceCreate, ha as PriceSort, l2 as PriceType, h9 as PriceUpdate, aW as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
package/lib/resources/prices.js
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _Prices = class _Prices extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _Prices.TYPE }, params, options);
|
@@ -68,6 +66,7 @@ const _Prices = class _Prices extends ApiResource {
|
|
68
66
|
};
|
69
67
|
__publicField(_Prices, "TYPE", "prices");
|
70
68
|
let Prices = _Prices;
|
71
|
-
|
69
|
+
const instance = new Prices();
|
70
|
+
var prices_default = instance;
|
72
71
|
|
73
72
|
export { prices_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _PromotionRules = class _PromotionRules extends resource.ApiResource {
|
9
7
|
async versions(promotionRuleId, params, options) {
|
10
8
|
const _promotionRuleId = promotionRuleId.id || promotionRuleId;
|
@@ -23,9 +21,10 @@ const _PromotionRules = class _PromotionRules extends resource.ApiResource {
|
|
23
21
|
return _PromotionRules.TYPE;
|
24
22
|
}
|
25
23
|
};
|
26
|
-
__publicField(_PromotionRules, "TYPE", "promotion_rules");
|
24
|
+
chunkJE77HYXB_cjs.__publicField(_PromotionRules, "TYPE", "promotion_rules");
|
27
25
|
let PromotionRules = _PromotionRules;
|
28
|
-
|
26
|
+
const instance = new PromotionRules();
|
27
|
+
var promotion_rules_default = instance;
|
29
28
|
|
30
29
|
module.exports = promotion_rules_default;
|
31
30
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hb as PromotionRule, hc as PromotionRuleSort, ky as PromotionRuleType, aX as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hb as PromotionRule, hc as PromotionRuleSort, ky as PromotionRuleType, aX as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _PromotionRules = class _PromotionRules extends ApiResource {
|
7
5
|
async versions(promotionRuleId, params, options) {
|
8
6
|
const _promotionRuleId = promotionRuleId.id || promotionRuleId;
|
@@ -23,6 +21,7 @@ const _PromotionRules = class _PromotionRules extends ApiResource {
|
|
23
21
|
};
|
24
22
|
__publicField(_PromotionRules, "TYPE", "promotion_rules");
|
25
23
|
let PromotionRules = _PromotionRules;
|
26
|
-
|
24
|
+
const instance = new PromotionRules();
|
25
|
+
var promotion_rules_default = instance;
|
27
26
|
|
28
27
|
export { promotion_rules_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _Promotions = class _Promotions extends resource.ApiResource {
|
9
7
|
async market(promotionId, params, options) {
|
10
8
|
const _promotionId = promotionId.id || promotionId;
|
@@ -63,9 +61,10 @@ const _Promotions = class _Promotions extends resource.ApiResource {
|
|
63
61
|
return _Promotions.TYPE;
|
64
62
|
}
|
65
63
|
};
|
66
|
-
__publicField(_Promotions, "TYPE", "promotions");
|
64
|
+
chunkJE77HYXB_cjs.__publicField(_Promotions, "TYPE", "promotions");
|
67
65
|
let Promotions = _Promotions;
|
68
|
-
|
66
|
+
const instance = new Promotions();
|
67
|
+
var promotions_default = instance;
|
69
68
|
|
70
69
|
module.exports = promotions_default;
|
71
70
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hd as Promotion, he as PromotionSort, l6 as PromotionType, aY as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hd as Promotion, he as PromotionSort, l6 as PromotionType, aY as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _Promotions = class _Promotions extends ApiResource {
|
7
5
|
async market(promotionId, params, options) {
|
8
6
|
const _promotionId = promotionId.id || promotionId;
|
@@ -63,6 +61,7 @@ const _Promotions = class _Promotions extends ApiResource {
|
|
63
61
|
};
|
64
62
|
__publicField(_Promotions, "TYPE", "promotions");
|
65
63
|
let Promotions = _Promotions;
|
66
|
-
|
64
|
+
const instance = new Promotions();
|
65
|
+
var promotions_default = instance;
|
67
66
|
|
68
67
|
export { promotions_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _RecurringOrderCopies = class _RecurringOrderCopies extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _RecurringOrderCopies.TYPE }, params, options);
|
@@ -44,9 +42,10 @@ const _RecurringOrderCopies = class _RecurringOrderCopies extends resource.ApiRe
|
|
44
42
|
return _RecurringOrderCopies.TYPE;
|
45
43
|
}
|
46
44
|
};
|
47
|
-
__publicField(_RecurringOrderCopies, "TYPE", "recurring_order_copies");
|
45
|
+
chunkJE77HYXB_cjs.__publicField(_RecurringOrderCopies, "TYPE", "recurring_order_copies");
|
48
46
|
let RecurringOrderCopies = _RecurringOrderCopies;
|
49
|
-
|
47
|
+
const instance = new RecurringOrderCopies();
|
48
|
+
var recurring_order_copies_default = instance;
|
50
49
|
|
51
50
|
module.exports = recurring_order_copies_default;
|
52
51
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hf as RecurringOrderCopy, hg as RecurringOrderCopyCreate, hi as RecurringOrderCopySort, kL as RecurringOrderCopyType, hh as RecurringOrderCopyUpdate, aZ as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hf as RecurringOrderCopy, hg as RecurringOrderCopyCreate, hi as RecurringOrderCopySort, kL as RecurringOrderCopyType, hh as RecurringOrderCopyUpdate, aZ as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _RecurringOrderCopies = class _RecurringOrderCopies extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _RecurringOrderCopies.TYPE }, params, options);
|
@@ -44,6 +42,7 @@ const _RecurringOrderCopies = class _RecurringOrderCopies extends ApiResource {
|
|
44
42
|
};
|
45
43
|
__publicField(_RecurringOrderCopies, "TYPE", "recurring_order_copies");
|
46
44
|
let RecurringOrderCopies = _RecurringOrderCopies;
|
47
|
-
|
45
|
+
const instance = new RecurringOrderCopies();
|
46
|
+
var recurring_order_copies_default = instance;
|
48
47
|
|
49
48
|
export { recurring_order_copies_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _Refunds = class _Refunds extends resource.ApiResource {
|
9
7
|
async update(resource, params, options) {
|
10
8
|
return this.resources.update({ ...resource, type: _Refunds.TYPE }, params, options);
|
@@ -49,9 +47,10 @@ const _Refunds = class _Refunds extends resource.ApiResource {
|
|
49
47
|
return _Refunds.TYPE;
|
50
48
|
}
|
51
49
|
};
|
52
|
-
__publicField(_Refunds, "TYPE", "refunds");
|
50
|
+
chunkJE77HYXB_cjs.__publicField(_Refunds, "TYPE", "refunds");
|
53
51
|
let Refunds = _Refunds;
|
54
|
-
|
52
|
+
const instance = new Refunds();
|
53
|
+
var refunds_default = instance;
|
55
54
|
|
56
55
|
module.exports = refunds_default;
|
57
56
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hj as Refund, hl as RefundSort, k6 as RefundType, hk as RefundUpdate, a_ as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hj as Refund, hl as RefundSort, k6 as RefundType, hk as RefundUpdate, a_ as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
package/lib/resources/refunds.js
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _Refunds = class _Refunds extends ApiResource {
|
7
5
|
async update(resource, params, options) {
|
8
6
|
return this.resources.update({ ...resource, type: _Refunds.TYPE }, params, options);
|
@@ -49,6 +47,7 @@ const _Refunds = class _Refunds extends ApiResource {
|
|
49
47
|
};
|
50
48
|
__publicField(_Refunds, "TYPE", "refunds");
|
51
49
|
let Refunds = _Refunds;
|
52
|
-
|
50
|
+
const instance = new Refunds();
|
51
|
+
var refunds_default = instance;
|
53
52
|
|
54
53
|
export { refunds_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _ReservedStocks = class _ReservedStocks extends resource.ApiResource {
|
9
7
|
async stock_item(reservedStockId, params, options) {
|
10
8
|
const _reservedStockId = reservedStockId.id || reservedStockId;
|
@@ -35,9 +33,10 @@ const _ReservedStocks = class _ReservedStocks extends resource.ApiResource {
|
|
35
33
|
return _ReservedStocks.TYPE;
|
36
34
|
}
|
37
35
|
};
|
38
|
-
__publicField(_ReservedStocks, "TYPE", "reserved_stocks");
|
36
|
+
chunkJE77HYXB_cjs.__publicField(_ReservedStocks, "TYPE", "reserved_stocks");
|
39
37
|
let ReservedStocks = _ReservedStocks;
|
40
|
-
|
38
|
+
const instance = new ReservedStocks();
|
39
|
+
var reserved_stocks_default = instance;
|
41
40
|
|
42
41
|
module.exports = reserved_stocks_default;
|
43
42
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hm as ReservedStock, hn as ReservedStockSort, kc as ReservedStockType, a$ as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hm as ReservedStock, hn as ReservedStockSort, kc as ReservedStockType, a$ as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _ReservedStocks = class _ReservedStocks extends ApiResource {
|
7
5
|
async stock_item(reservedStockId, params, options) {
|
8
6
|
const _reservedStockId = reservedStockId.id || reservedStockId;
|
@@ -35,6 +33,7 @@ const _ReservedStocks = class _ReservedStocks extends ApiResource {
|
|
35
33
|
};
|
36
34
|
__publicField(_ReservedStocks, "TYPE", "reserved_stocks");
|
37
35
|
let ReservedStocks = _ReservedStocks;
|
38
|
-
|
36
|
+
const instance = new ReservedStocks();
|
37
|
+
var reserved_stocks_default = instance;
|
39
38
|
|
40
39
|
export { reserved_stocks_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _ResourceErrors = class _ResourceErrors extends resource.ApiResource {
|
9
7
|
isResourceError(resource) {
|
10
8
|
return resource.type && resource.type === _ResourceErrors.TYPE;
|
@@ -19,9 +17,10 @@ const _ResourceErrors = class _ResourceErrors extends resource.ApiResource {
|
|
19
17
|
return _ResourceErrors.TYPE;
|
20
18
|
}
|
21
19
|
};
|
22
|
-
__publicField(_ResourceErrors, "TYPE", "resource_errors");
|
20
|
+
chunkJE77HYXB_cjs.__publicField(_ResourceErrors, "TYPE", "resource_errors");
|
23
21
|
let ResourceErrors = _ResourceErrors;
|
24
|
-
|
22
|
+
const instance = new ResourceErrors();
|
23
|
+
var resource_errors_default = instance;
|
25
24
|
|
26
25
|
module.exports = resource_errors_default;
|
27
26
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { ho as ResourceError, hp as ResourceErrorSort, k8 as ResourceErrorType, b0 as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { ho as ResourceError, hp as ResourceErrorSort, k8 as ResourceErrorType, b0 as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _ResourceErrors = class _ResourceErrors extends ApiResource {
|
7
5
|
isResourceError(resource) {
|
8
6
|
return resource.type && resource.type === _ResourceErrors.TYPE;
|
@@ -19,6 +17,7 @@ const _ResourceErrors = class _ResourceErrors extends ApiResource {
|
|
19
17
|
};
|
20
18
|
__publicField(_ResourceErrors, "TYPE", "resource_errors");
|
21
19
|
let ResourceErrors = _ResourceErrors;
|
22
|
-
|
20
|
+
const instance = new ResourceErrors();
|
21
|
+
var resource_errors_default = instance;
|
23
22
|
|
24
23
|
export { resource_errors_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _ReturnLineItems = class _ReturnLineItems extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _ReturnLineItems.TYPE }, params, options);
|
@@ -39,9 +37,10 @@ const _ReturnLineItems = class _ReturnLineItems extends resource.ApiResource {
|
|
39
37
|
return _ReturnLineItems.TYPE;
|
40
38
|
}
|
41
39
|
};
|
42
|
-
__publicField(_ReturnLineItems, "TYPE", "return_line_items");
|
40
|
+
chunkJE77HYXB_cjs.__publicField(_ReturnLineItems, "TYPE", "return_line_items");
|
43
41
|
let ReturnLineItems = _ReturnLineItems;
|
44
|
-
|
42
|
+
const instance = new ReturnLineItems();
|
43
|
+
var return_line_items_default = instance;
|
45
44
|
|
46
45
|
module.exports = return_line_items_default;
|
47
46
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hq as ReturnLineItem, hr as ReturnLineItemCreate, ht as ReturnLineItemSort, ka as ReturnLineItemType, hs as ReturnLineItemUpdate, b1 as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hq as ReturnLineItem, hr as ReturnLineItemCreate, ht as ReturnLineItemSort, ka as ReturnLineItemType, hs as ReturnLineItemUpdate, b1 as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|
@@ -1,8 +1,6 @@
|
|
1
|
+
import { __publicField } from '../chunk-AQ5VUG5P.js';
|
1
2
|
import { ApiResource } from '../resource';
|
2
3
|
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
6
4
|
const _ReturnLineItems = class _ReturnLineItems extends ApiResource {
|
7
5
|
async create(resource, params, options) {
|
8
6
|
return this.resources.create({ ...resource, type: _ReturnLineItems.TYPE }, params, options);
|
@@ -39,6 +37,7 @@ const _ReturnLineItems = class _ReturnLineItems extends ApiResource {
|
|
39
37
|
};
|
40
38
|
__publicField(_ReturnLineItems, "TYPE", "return_line_items");
|
41
39
|
let ReturnLineItems = _ReturnLineItems;
|
42
|
-
|
40
|
+
const instance = new ReturnLineItems();
|
41
|
+
var return_line_items_default = instance;
|
43
42
|
|
44
43
|
export { return_line_items_default as default };
|
@@ -1,10 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
+
var chunkJE77HYXB_cjs = require('../chunk-JE77HYXB.cjs');
|
3
4
|
var resource = require('../resource');
|
4
5
|
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
8
6
|
const _Returns = class _Returns extends resource.ApiResource {
|
9
7
|
async create(resource, params, options) {
|
10
8
|
return this.resources.create({ ...resource, type: _Returns.TYPE }, params, options);
|
@@ -100,6 +98,12 @@ const _Returns = class _Returns extends resource.ApiResource {
|
|
100
98
|
async _refund_amount_cents(id, triggerValue, params, options) {
|
101
99
|
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Returns.TYPE, _refund_amount_cents: triggerValue }, params, options);
|
102
100
|
}
|
101
|
+
async _add_tags(id, triggerValue, params, options) {
|
102
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Returns.TYPE, _add_tags: triggerValue }, params, options);
|
103
|
+
}
|
104
|
+
async _remove_tags(id, triggerValue, params, options) {
|
105
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Returns.TYPE, _remove_tags: triggerValue }, params, options);
|
106
|
+
}
|
103
107
|
isReturn(resource) {
|
104
108
|
return resource.type && resource.type === _Returns.TYPE;
|
105
109
|
}
|
@@ -113,9 +117,10 @@ const _Returns = class _Returns extends resource.ApiResource {
|
|
113
117
|
return _Returns.TYPE;
|
114
118
|
}
|
115
119
|
};
|
116
|
-
__publicField(_Returns, "TYPE", "returns");
|
120
|
+
chunkJE77HYXB_cjs.__publicField(_Returns, "TYPE", "returns");
|
117
121
|
let Returns = _Returns;
|
118
|
-
|
122
|
+
const instance = new Returns();
|
123
|
+
var returns_default = instance;
|
119
124
|
|
120
125
|
module.exports = returns_default;
|
121
126
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hu as Return, hv as ReturnCreate, hx as ReturnSort, k9 as ReturnType, hw as ReturnUpdate, b2 as default } from '../api-Bq9emZm-.cjs';
|
2
2
|
import '../client.cjs';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.cjs';
|
4
4
|
import '../types.cjs';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { hu as Return, hv as ReturnCreate, hx as ReturnSort, k9 as ReturnType, hw as ReturnUpdate, b2 as default } from '../api-C5qyxFpD.js';
|
2
2
|
import '../client.js';
|
3
|
-
import '../interceptor-
|
3
|
+
import '../interceptor-D65i25Y7.js';
|
4
4
|
import '../types.js';
|