@commercelayer/sdk 7.5.0 → 7.6.0
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/{api-CMxJYHwj.d.ts → api-DrryxHto.d.ts} +430 -27
- package/lib/{api-XshEzS_t.d.cts → api-Hc0WV-9j.d.cts} +430 -27
- package/lib/api.cjs +22 -22
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +11 -11
- package/lib/bundle.cjs +24 -24
- package/lib/bundle.d.cts +2 -2
- package/lib/bundle.d.ts +2 -2
- package/lib/bundle.js +12 -12
- package/lib/{chunk-FCGKL7AI.cjs → chunk-2C3Z5JNK.cjs} +8 -2
- package/lib/chunk-2C3Z5JNK.cjs.map +1 -0
- package/lib/{chunk-YPRABQMP.js → chunk-3KNN5WPE.js} +8 -2
- package/lib/chunk-3KNN5WPE.js.map +1 -0
- package/lib/{chunk-6QOS6B5F.cjs → chunk-3X6OVCVT.cjs} +8 -2
- package/lib/chunk-3X6OVCVT.cjs.map +1 -0
- package/lib/{chunk-KDQRA5YH.js → chunk-67LLQOPH.js} +8 -2
- package/lib/chunk-67LLQOPH.js.map +1 -0
- package/lib/{chunk-73VR2FML.cjs → chunk-6DRGTFBA.cjs} +8 -2
- package/lib/chunk-6DRGTFBA.cjs.map +1 -0
- package/lib/{chunk-7AHYBTEX.js → chunk-A3VWVK2F.js} +2 -2
- package/lib/chunk-A3VWVK2F.js.map +1 -0
- package/lib/{chunk-TWQ4THAG.js → chunk-A5KAGODH.js} +8 -2
- package/lib/chunk-A5KAGODH.js.map +1 -0
- package/lib/{chunk-OS5DXUBX.js → chunk-BGH55KTL.js} +8 -2
- package/lib/chunk-BGH55KTL.js.map +1 -0
- package/lib/{chunk-FXR7URWO.js → chunk-BPUZXZM4.js} +3 -3
- package/lib/{chunk-FXR7URWO.js.map → chunk-BPUZXZM4.js.map} +1 -1
- package/lib/{chunk-W3TAU6GU.cjs → chunk-EJNNEY2F.cjs} +8 -2
- package/lib/chunk-EJNNEY2F.cjs.map +1 -0
- package/lib/{chunk-HH3NIT7B.js → chunk-FFX5MED5.js} +8 -2
- package/lib/chunk-FFX5MED5.js.map +1 -0
- package/lib/{chunk-MCWZ3Z3F.cjs → chunk-H7JSRNFC.cjs} +4 -4
- package/lib/{chunk-MCWZ3Z3F.cjs.map → chunk-H7JSRNFC.cjs.map} +1 -1
- package/lib/{chunk-YFRXWHOB.js → chunk-HBVSEXIQ.js} +8 -2
- package/lib/chunk-HBVSEXIQ.js.map +1 -0
- package/lib/{chunk-PIYKFPYB.js → chunk-IR2JJDF5.js} +8 -2
- package/lib/chunk-IR2JJDF5.js.map +1 -0
- package/lib/{chunk-3SD7QN5M.js → chunk-JD3MI7AO.js} +8 -2
- package/lib/chunk-JD3MI7AO.js.map +1 -0
- package/lib/{chunk-RDTIBHZO.cjs → chunk-JLLZQ7JR.cjs} +8 -2
- package/lib/chunk-JLLZQ7JR.cjs.map +1 -0
- package/lib/{chunk-DPIHG4FX.cjs → chunk-LKBPLGXI.cjs} +8 -2
- package/lib/chunk-LKBPLGXI.cjs.map +1 -0
- package/lib/{chunk-V7377LPP.js → chunk-MBWTMQHA.js} +3 -3
- package/lib/{chunk-V7377LPP.js.map → chunk-MBWTMQHA.js.map} +1 -1
- package/lib/{chunk-AYM2RMFY.cjs → chunk-NHDSPKJY.cjs} +3 -3
- package/lib/{chunk-AYM2RMFY.cjs.map → chunk-NHDSPKJY.cjs.map} +1 -1
- package/lib/{chunk-6ZUGJHNV.cjs → chunk-O66EZDG2.cjs} +8 -2
- package/lib/chunk-O66EZDG2.cjs.map +1 -0
- package/lib/{chunk-A76SFMAB.cjs → chunk-PXSMF4QS.cjs} +8 -2
- package/lib/chunk-PXSMF4QS.cjs.map +1 -0
- package/lib/{chunk-4ATZM33H.js → chunk-SFFSVEXJ.js} +8 -2
- package/lib/chunk-SFFSVEXJ.js.map +1 -0
- package/lib/{chunk-DEYOBMM5.js → chunk-VZGJGOH3.js} +8 -2
- package/lib/chunk-VZGJGOH3.js.map +1 -0
- package/lib/{chunk-WVCUPAHM.cjs → chunk-WLTZ66G4.cjs} +2 -2
- package/lib/chunk-WLTZ66G4.cjs.map +1 -0
- package/lib/{chunk-YZ4JURI3.cjs → chunk-YDMB4XPA.cjs} +8 -2
- package/lib/chunk-YDMB4XPA.cjs.map +1 -0
- package/lib/{chunk-II544XO5.cjs → chunk-ZSWW2XGD.cjs} +8 -2
- package/lib/chunk-ZSWW2XGD.cjs.map +1 -0
- package/lib/client.d.cts +1 -1
- package/lib/client.d.ts +1 -1
- package/lib/commercelayer.cjs +5 -5
- package/lib/commercelayer.d.cts +4 -4
- package/lib/commercelayer.d.ts +4 -4
- package/lib/commercelayer.js +1 -1
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/enum.d.cts +2 -2
- package/lib/enum.d.ts +2 -2
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/index.cjs +27 -27
- package/lib/index.d.cts +3 -3
- package/lib/index.d.ts +3 -3
- package/lib/index.js +13 -13
- package/lib/{interceptor-k15jXzf0.d.cts → interceptor-ETmS7Tab.d.cts} +1 -1
- package/lib/{interceptor-k15jXzf0.d.ts → interceptor-ETmS7Tab.d.ts} +1 -1
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resources/addresses.d.cts +3 -3
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/adjustments.d.cts +3 -3
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adyen_gateways.cjs +2 -2
- package/lib/resources/adyen_gateways.d.cts +3 -3
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_gateways.js +1 -1
- package/lib/resources/adyen_payments.d.cts +3 -3
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/applications.d.cts +3 -3
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/attachments.d.cts +3 -3
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/authorizations.d.cts +3 -3
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/avalara_accounts.d.cts +3 -3
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/axerve_gateways.cjs +2 -2
- package/lib/resources/axerve_gateways.d.cts +3 -3
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_gateways.js +1 -1
- package/lib/resources/axerve_payments.d.cts +3 -3
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/bing_geocoders.d.cts +3 -3
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/braintree_gateways.cjs +2 -2
- package/lib/resources/braintree_gateways.d.cts +3 -3
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_gateways.js +1 -1
- package/lib/resources/braintree_payments.d.cts +3 -3
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/bundles.d.cts +3 -3
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
- package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
- package/lib/resources/captures.d.cts +3 -3
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/carrier_accounts.d.cts +3 -3
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.cjs +2 -2
- package/lib/resources/checkout_com_gateways.d.cts +3 -3
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.js +1 -1
- package/lib/resources/checkout_com_payments.d.cts +3 -3
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/cleanups.d.cts +3 -3
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_recipients.d.cts +3 -3
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupons.d.cts +3 -3
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.d.cts +3 -3
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/customer_addresses.d.cts +3 -3
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_groups.d.cts +3 -3
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_password_resets.d.cts +3 -3
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_payment_sources.d.cts +3 -3
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_subscriptions.d.cts +3 -3
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customers.d.cts +3 -3
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/delivery_lead_times.d.cts +3 -3
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/discount_engine_items.d.cts +3 -3
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engines.d.cts +3 -3
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/easypost_pickups.d.cts +3 -3
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/event_callbacks.d.cts +3 -3
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/event_stores.d.cts +3 -3
- package/lib/resources/event_stores.d.ts +2 -2
- package/lib/resources/events.d.cts +3 -3
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/exports.d.cts +3 -3
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/external_gateways.cjs +2 -2
- package/lib/resources/external_gateways.d.cts +3 -3
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_gateways.js +1 -1
- package/lib/resources/external_payments.d.cts +3 -3
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_promotions.d.cts +3 -3
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_tax_calculators.d.cts +3 -3
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.d.cts +3 -3
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.d.cts +3 -3
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.d.cts +3 -3
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.d.cts +3 -3
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.d.cts +3 -3
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/geocoders.d.cts +3 -3
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/gift_card_recipients.d.cts +3 -3
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_cards.d.cts +3 -3
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/google_geocoders.d.cts +3 -3
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/imports.d.cts +3 -3
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.d.cts +3 -3
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/inventory_models.d.cts +3 -3
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_return_locations.d.cts +3 -3
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.d.cts +3 -3
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/klarna_gateways.cjs +2 -2
- package/lib/resources/klarna_gateways.d.cts +3 -3
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_gateways.js +1 -1
- package/lib/resources/klarna_payments.d.cts +3 -3
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/line_item_options.d.cts +3 -3
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_items.d.cts +3 -3
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/links.d.cts +3 -3
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/manual_gateways.cjs +2 -2
- package/lib/resources/manual_gateways.d.cts +3 -3
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_gateways.js +1 -1
- package/lib/resources/manual_tax_calculators.d.cts +3 -3
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/markets.d.cts +3 -3
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/merchants.d.cts +3 -3
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/notifications.d.cts +3 -3
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_copies.d.cts +3 -3
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_factories.d.cts +3 -3
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_subscription_items.d.cts +3 -3
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscriptions.d.cts +3 -3
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/orders.d.cts +3 -3
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/organizations.d.cts +3 -3
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/packages.d.cts +3 -3
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/parcel_line_items.d.cts +3 -3
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcels.d.cts +3 -3
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/payment_gateways.cjs +2 -2
- package/lib/resources/payment_gateways.d.cts +3 -3
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_gateways.js +1 -1
- package/lib/resources/payment_methods.d.cts +3 -3
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_options.d.cts +3 -3
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/paypal_gateways.cjs +2 -2
- package/lib/resources/paypal_gateways.d.cts +3 -3
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_gateways.js +1 -1
- package/lib/resources/paypal_payments.d.cts +3 -3
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.d.cts +3 -3
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/pickups.d.cts +3 -3
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.d.cts +3 -3
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.d.cts +3 -3
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_lists.d.cts +3 -3
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_tiers.d.cts +3 -3
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.d.cts +3 -3
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/prices.d.cts +3 -3
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/promotion_rules.d.cts +3 -3
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotions.d.cts +3 -3
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/recurring_order_copies.d.cts +3 -3
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/refunds.d.cts +3 -3
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/reserved_stocks.d.cts +3 -3
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/resource_errors.d.cts +3 -3
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/return_line_items.d.cts +3 -3
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/returns.d.cts +3 -3
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/satispay_gateways.cjs +2 -2
- package/lib/resources/satispay_gateways.d.cts +3 -3
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_gateways.js +1 -1
- package/lib/resources/satispay_payments.d.cts +3 -3
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/shipments.d.cts +3 -3
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipping_categories.d.cts +3 -3
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.d.cts +3 -3
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_methods.d.cts +3 -3
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.d.cts +3 -3
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_zones.d.cts +3 -3
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/sku_list_items.d.cts +3 -3
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_lists.d.cts +3 -3
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_options.d.cts +3 -3
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/skus.d.cts +3 -3
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/stock_items.d.cts +3 -3
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_line_items.d.cts +3 -3
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_locations.d.cts +3 -3
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_reservations.d.cts +3 -3
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_transfers.d.cts +3 -3
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stores.d.cts +3 -3
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stripe_gateways.cjs +2 -2
- package/lib/resources/stripe_gateways.d.cts +3 -3
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_gateways.js +1 -1
- package/lib/resources/stripe_payments.d.cts +3 -3
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.d.cts +3 -3
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/subscription_models.d.cts +3 -3
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/tags.d.cts +3 -3
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/talon_one_accounts.d.cts +3 -3
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/tax_calculators.d.cts +3 -3
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_categories.d.cts +3 -3
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_rules.d.cts +3 -3
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/taxjar_accounts.d.cts +3 -3
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/transactions.d.cts +3 -3
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/versions.d.cts +3 -3
- package/lib/resources/versions.d.ts +2 -2
- package/lib/resources/vertex_accounts.d.cts +3 -3
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/voids.d.cts +3 -3
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/webhooks.d.cts +3 -3
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/wire_transfers.d.cts +3 -3
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/static.cjs +3 -3
- package/lib/static.d.cts +2 -2
- package/lib/static.d.ts +2 -2
- package/lib/static.js +2 -2
- package/package.json +1 -1
- package/lib/chunk-3SD7QN5M.js.map +0 -1
- package/lib/chunk-4ATZM33H.js.map +0 -1
- package/lib/chunk-6QOS6B5F.cjs.map +0 -1
- package/lib/chunk-6ZUGJHNV.cjs.map +0 -1
- package/lib/chunk-73VR2FML.cjs.map +0 -1
- package/lib/chunk-7AHYBTEX.js.map +0 -1
- package/lib/chunk-A76SFMAB.cjs.map +0 -1
- package/lib/chunk-DEYOBMM5.js.map +0 -1
- package/lib/chunk-DPIHG4FX.cjs.map +0 -1
- package/lib/chunk-FCGKL7AI.cjs.map +0 -1
- package/lib/chunk-HH3NIT7B.js.map +0 -1
- package/lib/chunk-II544XO5.cjs.map +0 -1
- package/lib/chunk-KDQRA5YH.js.map +0 -1
- package/lib/chunk-OS5DXUBX.js.map +0 -1
- package/lib/chunk-PIYKFPYB.js.map +0 -1
- package/lib/chunk-RDTIBHZO.cjs.map +0 -1
- package/lib/chunk-TWQ4THAG.js.map +0 -1
- package/lib/chunk-W3TAU6GU.cjs.map +0 -1
- package/lib/chunk-WVCUPAHM.cjs.map +0 -1
- package/lib/chunk-YFRXWHOB.js.map +0 -1
- package/lib/chunk-YPRABQMP.js.map +0 -1
- package/lib/chunk-YZ4JURI3.cjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/axerve_gateways.ts"],"names":[],"mappings":";;;AAqIA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAA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AC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-SFFSVEXJ.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { AxervePayment, AxervePaymentType } from './axerve_payments'\n\n\ntype AxerveGatewayType = 'axerve_gateways'\ntype AxerveGatewayRel = ResourceRel & { type: AxerveGatewayType }\ntype AxervePaymentRel = ResourceRel & { type: AxervePaymentType }\n\n\nexport type AxerveGatewaySort = Pick<AxerveGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type AxerveGatewayFilter = Pick<AxerveGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface AxerveGateway extends Resource {\n\t\n\treadonly type: AxerveGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The merchant login code.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tlogin: string\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/axerve_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\taxerve_payments?: AxervePayment[] | null\n\n}\n\n\ninterface AxerveGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The merchant login code.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tlogin: string\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key: string\n\n\taxerve_payments?: AxervePaymentRel[] | null\n\n}\n\n\ninterface AxerveGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The merchant login code.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tlogin?: string | null\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key?: string | null\n\n\taxerve_payments?: AxervePaymentRel[] | null\n\n}\n\n\nclass AxerveGateways extends ApiResource<AxerveGateway> {\n\n\tstatic readonly TYPE: AxerveGatewayType = 'axerve_gateways' as const\n\n\tasync create(resource: AxerveGatewayCreate, params?: QueryParamsRetrieve<AxerveGateway>, options?: ResourcesConfig): Promise<AxerveGateway> {\n\t\treturn this.resources.create<AxerveGatewayCreate, AxerveGateway>({ ...resource, type: AxerveGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AxerveGatewayUpdate, params?: QueryParamsRetrieve<AxerveGateway>, options?: ResourcesConfig): Promise<AxerveGateway> {\n\t\treturn this.resources.update<AxerveGatewayUpdate, AxerveGateway>({ ...resource, type: AxerveGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: AxerveGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _axerveGatewayId = (axerveGatewayId as AxerveGateway).id || axerveGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `axerve_gateways/${_axerveGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _axerveGatewayId = (axerveGatewayId as AxerveGateway).id || axerveGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `axerve_gateways/${_axerveGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _axerveGatewayId = (axerveGatewayId as AxerveGateway).id || axerveGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `axerve_gateways/${_axerveGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync axerve_payments(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList<AxervePayment>, options?: ResourcesConfig): Promise<ListResponse<AxervePayment>> {\n\t\tconst _axerveGatewayId = (axerveGatewayId as AxerveGateway).id || axerveGatewayId as string\n\t\treturn this.resources.fetch<AxervePayment>({ type: 'axerve_payments' }, `axerve_gateways/${_axerveGatewayId}/axerve_payments`, params, options) as unknown as ListResponse<AxervePayment>\n\t}\n\n\tasync _disable(id: string | AxerveGateway, params?: QueryParamsRetrieve<AxerveGateway>, options?: ResourcesConfig): Promise<AxerveGateway> {\n\t\treturn this.resources.update<AxerveGatewayUpdate, AxerveGateway>({ id: (typeof id === 'string')? id: id.id, type: AxerveGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | AxerveGateway, params?: QueryParamsRetrieve<AxerveGateway>, options?: ResourcesConfig): Promise<AxerveGateway> {\n\t\treturn this.resources.update<AxerveGatewayUpdate, AxerveGateway>({ id: (typeof id === 'string')? id: id.id, type: AxerveGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisAxerveGateway(resource: any): resource is AxerveGateway {\n\t\treturn resource.type && (resource.type === AxerveGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AxerveGatewayRel {\n\t\treturn super.relationshipOneToOne<AxerveGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AxerveGatewayRel[] {\n\t\treturn super.relationshipOneToMany<AxerveGatewayRel>(...ids)\n\t}\n\n\n\ttype(): AxerveGatewayType {\n\t\treturn AxerveGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new AxerveGateways()\nexport default instance\n\nexport type { AxerveGateways, AxerveGateway, AxerveGatewayCreate, AxerveGatewayUpdate, AxerveGatewayType }\n"]}
|
|
@@ -28,6 +28,12 @@ var KlarnaGateways = class _KlarnaGateways extends ApiResource {
|
|
|
28
28
|
const _klarnaGatewayId = klarnaGatewayId.id || klarnaGatewayId;
|
|
29
29
|
return this.resources.fetch({ type: "klarna_payments" }, `klarna_gateways/${_klarnaGatewayId}/klarna_payments`, params, options);
|
|
30
30
|
}
|
|
31
|
+
async _disable(id, params, options) {
|
|
32
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _KlarnaGateways.TYPE, _disable: true }, params, options);
|
|
33
|
+
}
|
|
34
|
+
async _enable(id, params, options) {
|
|
35
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _KlarnaGateways.TYPE, _enable: true }, params, options);
|
|
36
|
+
}
|
|
31
37
|
isKlarnaGateway(resource) {
|
|
32
38
|
return resource.type && resource.type === _KlarnaGateways.TYPE;
|
|
33
39
|
}
|
|
@@ -45,5 +51,5 @@ var instance = new KlarnaGateways();
|
|
|
45
51
|
var klarna_gateways_default = instance;
|
|
46
52
|
|
|
47
53
|
export { klarna_gateways_default };
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
54
|
+
//# sourceMappingURL=chunk-VZGJGOH3.js.map
|
|
55
|
+
//# sourceMappingURL=chunk-VZGJGOH3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/klarna_gateways.ts"],"names":[],"mappings":";;;AAqIA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAA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AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-VZGJGOH3.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { KlarnaPayment, KlarnaPaymentType } from './klarna_payments'\n\n\ntype KlarnaGatewayType = 'klarna_gateways'\ntype KlarnaGatewayRel = ResourceRel & { type: KlarnaGatewayType }\ntype KlarnaPaymentRel = ResourceRel & { type: KlarnaPaymentType }\n\n\nexport type KlarnaGatewaySort = Pick<KlarnaGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type KlarnaGatewayFilter = Pick<KlarnaGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface KlarnaGateway extends Resource {\n\t\n\treadonly type: KlarnaGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\tklarna_payments?: KlarnaPayment[] | null\n\n}\n\n\ninterface KlarnaGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The gateway country code one of EU, US, or OC.\n\t * @example ```\"EU\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key: string\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_secret: string\n\n\tklarna_payments?: KlarnaPaymentRel[] | null\n\n}\n\n\ninterface KlarnaGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The gateway country code one of EU, US, or OC.\n\t * @example ```\"EU\"```\n\t */\n\tcountry_code?: string | null\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key?: string | null\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_secret?: string | null\n\n\tklarna_payments?: KlarnaPaymentRel[] | null\n\n}\n\n\nclass KlarnaGateways extends ApiResource<KlarnaGateway> {\n\n\tstatic readonly TYPE: KlarnaGatewayType = 'klarna_gateways' as const\n\n\tasync create(resource: KlarnaGatewayCreate, params?: QueryParamsRetrieve<KlarnaGateway>, options?: ResourcesConfig): Promise<KlarnaGateway> {\n\t\treturn this.resources.create<KlarnaGatewayCreate, KlarnaGateway>({ ...resource, type: KlarnaGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: KlarnaGatewayUpdate, params?: QueryParamsRetrieve<KlarnaGateway>, options?: ResourcesConfig): Promise<KlarnaGateway> {\n\t\treturn this.resources.update<KlarnaGatewayUpdate, KlarnaGateway>({ ...resource, type: KlarnaGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: KlarnaGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _klarnaGatewayId = (klarnaGatewayId as KlarnaGateway).id || klarnaGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `klarna_gateways/${_klarnaGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _klarnaGatewayId = (klarnaGatewayId as KlarnaGateway).id || klarnaGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `klarna_gateways/${_klarnaGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _klarnaGatewayId = (klarnaGatewayId as KlarnaGateway).id || klarnaGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `klarna_gateways/${_klarnaGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync klarna_payments(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<KlarnaPayment>, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>> {\n\t\tconst _klarnaGatewayId = (klarnaGatewayId as KlarnaGateway).id || klarnaGatewayId as string\n\t\treturn this.resources.fetch<KlarnaPayment>({ type: 'klarna_payments' }, `klarna_gateways/${_klarnaGatewayId}/klarna_payments`, params, options) as unknown as ListResponse<KlarnaPayment>\n\t}\n\n\tasync _disable(id: string | KlarnaGateway, params?: QueryParamsRetrieve<KlarnaGateway>, options?: ResourcesConfig): Promise<KlarnaGateway> {\n\t\treturn this.resources.update<KlarnaGatewayUpdate, KlarnaGateway>({ id: (typeof id === 'string')? id: id.id, type: KlarnaGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | KlarnaGateway, params?: QueryParamsRetrieve<KlarnaGateway>, options?: ResourcesConfig): Promise<KlarnaGateway> {\n\t\treturn this.resources.update<KlarnaGatewayUpdate, KlarnaGateway>({ id: (typeof id === 'string')? id: id.id, type: KlarnaGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisKlarnaGateway(resource: any): resource is KlarnaGateway {\n\t\treturn resource.type && (resource.type === KlarnaGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): KlarnaGatewayRel {\n\t\treturn super.relationshipOneToOne<KlarnaGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): KlarnaGatewayRel[] {\n\t\treturn super.relationshipOneToMany<KlarnaGatewayRel>(...ids)\n\t}\n\n\n\ttype(): KlarnaGatewayType {\n\t\treturn KlarnaGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new KlarnaGateways()\nexport default instance\n\nexport type { KlarnaGateways, KlarnaGateway, KlarnaGatewayCreate, KlarnaGatewayUpdate, KlarnaGatewayType }\n"]}
|
|
@@ -34,5 +34,5 @@ var instance = new PaymentGateways();
|
|
|
34
34
|
var payment_gateways_default = instance;
|
|
35
35
|
|
|
36
36
|
exports.payment_gateways_default = payment_gateways_default;
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-WLTZ66G4.cjs.map
|
|
38
|
+
//# sourceMappingURL=chunk-WLTZ66G4.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/payment_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AA4CA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwBA,6BAAA,CAA4B;AAAA,EAEzD,OAAgB,IAAA,GAA2B,kBAAA;AAAA,EAE3C,MAAM,eAAA,CAAgB,gBAAA,EAA2C,MAAA,EAAyC,OAAA,EAAiE;AAC1K,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAqB,EAAE,IAAA,EAAM,iBAAA,EAAkB,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,gBAAA,CAAA,EAAoB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACjJ;AAAA,EAEA,MAAM,QAAA,CAAS,gBAAA,EAA2C,MAAA,EAAmC,OAAA,EAA2D;AACvJ,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,SAAA,CAAA,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,YAAA,CAAa,gBAAA,EAA2C,MAAA,EAAsC,OAAA,EAA8D;AACjK,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxI;AAAA,EAGA,iBAAiB,QAAA,EAA2C;AAC3D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,gBAAA,CAAgB,IAAA;AAAA,EAC5D;AAAA,EAGA,aAAa,EAAA,EAAmD;AAC/D,IAAA,OAAO,KAAA,CAAM,qBAAwC,EAAE,CAAA;AAAA,EACxD;AAAA,EAEA,sBAAsB,GAAA,EAAoC;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAyC,GAAG,GAAG,CAAA;AAAA,EAC7D;AAAA,EAGA,IAAA,GAA2B;AAC1B,IAAA,OAAO,gBAAA,CAAgB,IAAA;AAAA,EACxB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,eAAA,EAAgB;AACrC,IAAO,wBAAA,GAAQ","file":"chunk-WLTZ66G4.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype PaymentGatewayType = 'payment_gateways'\ntype PaymentGatewayRel = ResourceRel & { type: PaymentGatewayType }\n\n\nexport type PaymentGatewaySort = Pick<PaymentGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type PaymentGatewayFilter = Pick<PaymentGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface PaymentGateway extends Resource {\n\t\n\treadonly type: PaymentGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass PaymentGateways extends ApiResource<PaymentGateway> {\n\n\tstatic readonly TYPE: PaymentGatewayType = 'payment_gateways' as const\n\n\tasync payment_methods(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `payment_gateways/${_paymentGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `payment_gateways/${_paymentGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `payment_gateways/${_paymentGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisPaymentGateway(resource: any): resource is PaymentGateway {\n\t\treturn resource.type && (resource.type === PaymentGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaymentGatewayRel {\n\t\treturn super.relationshipOneToOne<PaymentGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaymentGatewayRel[] {\n\t\treturn super.relationshipOneToMany<PaymentGatewayRel>(...ids)\n\t}\n\n\n\ttype(): PaymentGatewayType {\n\t\treturn PaymentGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new PaymentGateways()\nexport default instance\n\nexport type { PaymentGateways, PaymentGateway, PaymentGatewayType }\n"]}
|
|
@@ -30,6 +30,12 @@ var PaypalGateways = class _PaypalGateways extends chunkU22VLCMN_cjs.ApiResource
|
|
|
30
30
|
const _paypalGatewayId = paypalGatewayId.id || paypalGatewayId;
|
|
31
31
|
return this.resources.fetch({ type: "paypal_payments" }, `paypal_gateways/${_paypalGatewayId}/paypal_payments`, params, options);
|
|
32
32
|
}
|
|
33
|
+
async _disable(id, params, options) {
|
|
34
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PaypalGateways.TYPE, _disable: true }, params, options);
|
|
35
|
+
}
|
|
36
|
+
async _enable(id, params, options) {
|
|
37
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PaypalGateways.TYPE, _enable: true }, params, options);
|
|
38
|
+
}
|
|
33
39
|
isPaypalGateway(resource) {
|
|
34
40
|
return resource.type && resource.type === _PaypalGateways.TYPE;
|
|
35
41
|
}
|
|
@@ -47,5 +53,5 @@ var instance = new PaypalGateways();
|
|
|
47
53
|
var paypal_gateways_default = instance;
|
|
48
54
|
|
|
49
55
|
exports.paypal_gateways_default = paypal_gateways_default;
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-YDMB4XPA.cjs.map
|
|
57
|
+
//# sourceMappingUR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AAA,EAEA,MAAM,OAAA,CAAQ,EAAA,EAA4B,MAAA,EAA6C,OAAA,EAAmD;AACzI,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,eAAA,CAAe,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACxK;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-YDMB4XPA.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { PaypalPayment } from './paypal_payments'\n\n\ntype PaypalGatewayType = 'paypal_gateways'\ntype PaypalGatewayRel = ResourceRel & { type: PaypalGatewayType }\n\n\nexport type PaypalGatewaySort = Pick<PaypalGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type PaypalGatewayFilter = Pick<PaypalGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface PaypalGateway extends Resource {\n\t\n\treadonly type: PaypalGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\tpaypal_payments?: PaypalPayment[] | null\n\n}\n\n\ninterface PaypalGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The gateway client ID.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_id: string\n\t/** \n\t * The gateway client secret.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_secret: string\n\t\n}\n\n\ninterface PaypalGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The gateway client ID.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_id?: string | null\n\t/** \n\t * The gateway client secret.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_secret?: string | null\n\t\n}\n\n\nclass PaypalGateways extends ApiResource<PaypalGateway> {\n\n\tstatic readonly TYPE: PaypalGatewayType = 'paypal_gateways' as const\n\n\tasync create(resource: PaypalGatewayCreate, params?: QueryParamsRetrieve<PaypalGateway>, options?: ResourcesConfig): Promise<PaypalGateway> {\n\t\treturn this.resources.create<PaypalGatewayCreate, PaypalGateway>({ ...resource, type: PaypalGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PaypalGatewayUpdate, params?: QueryParamsRetrieve<PaypalGateway>, options?: ResourcesConfig): Promise<PaypalGateway> {\n\t\treturn this.resources.update<PaypalGatewayUpdate, PaypalGateway>({ ...resource, type: PaypalGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: PaypalGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || paypalGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `paypal_gateways/${_paypalGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || paypalGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `paypal_gateways/${_paypalGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || paypalGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `paypal_gateways/${_paypalGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync paypal_payments(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<PaypalPayment>, options?: ResourcesConfig): Promise<ListResponse<PaypalPayment>> {\n\t\tconst _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || paypalGatewayId as string\n\t\treturn this.resources.fetch<PaypalPayment>({ type: 'paypal_payments' }, `paypal_gateways/${_paypalGatewayId}/paypal_payments`, params, options) as unknown as ListResponse<PaypalPayment>\n\t}\n\n\tasync _disable(id: string | PaypalGateway, params?: QueryParamsRetrieve<PaypalGateway>, options?: ResourcesConfig): Promise<PaypalGateway> {\n\t\treturn this.resources.update<PaypalGatewayUpdate, PaypalGateway>({ id: (typeof id === 'string')? id: id.id, type: PaypalGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | PaypalGateway, params?: QueryParamsRetrieve<PaypalGateway>, options?: ResourcesConfig): Promise<PaypalGateway> {\n\t\treturn this.resources.update<PaypalGatewayUpdate, PaypalGateway>({ id: (typeof id === 'string')? id: id.id, type: PaypalGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisPaypalGateway(resource: any): resource is PaypalGateway {\n\t\treturn resource.type && (resource.type === PaypalGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaypalGatewayRel {\n\t\treturn super.relationshipOneToOne<PaypalGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaypalGatewayRel[] {\n\t\treturn super.relationshipOneToMany<PaypalGatewayRel>(...ids)\n\t}\n\n\n\ttype(): PaypalGatewayType {\n\t\treturn PaypalGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new PaypalGateways()\nexport default instance\n\nexport type { PaypalGateways, PaypalGateway, PaypalGatewayCreate, PaypalGatewayUpdate, PaypalGatewayType }\n"]}
|
|
@@ -30,6 +30,12 @@ var CheckoutComGateways = class _CheckoutComGateways extends chunkU22VLCMN_cjs.A
|
|
|
30
30
|
const _checkoutComGatewayId = checkoutComGatewayId.id || checkoutComGatewayId;
|
|
31
31
|
return this.resources.fetch({ type: "checkout_com_payments" }, `checkout_com_gateways/${_checkoutComGatewayId}/checkout_com_payments`, params, options);
|
|
32
32
|
}
|
|
33
|
+
async _disable(id, params, options) {
|
|
34
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _CheckoutComGateways.TYPE, _disable: true }, params, options);
|
|
35
|
+
}
|
|
36
|
+
async _enable(id, params, options) {
|
|
37
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _CheckoutComGateways.TYPE, _enable: true }, params, options);
|
|
38
|
+
}
|
|
33
39
|
isCheckoutComGateway(resource) {
|
|
34
40
|
return resource.type && resource.type === _CheckoutComGateways.TYPE;
|
|
35
41
|
}
|
|
@@ -47,5 +53,5 @@ var instance = new CheckoutComGateways();
|
|
|
47
53
|
var checkout_com_gateways_default = instance;
|
|
48
54
|
|
|
49
55
|
exports.checkout_com_gateways_default = checkout_com_gateways_default;
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-ZSWW2XGD.cjs.map
|
|
57
|
+
//# sourceMappingURL=chunk-ZSWW2XGD.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/checkout_com_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AA0IA,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4BA,6BAAA,CAAgC;AAAA,EAEjE,OAAgB,IAAA,GAA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,EAAI,MAAM,oBAAA,CAAoB,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACvL;AAAA,EAGA,qBAAqB,QAAA,EAA+C;AACnE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,oBAAA,CAAoB,IAAA;AAAA,EAChE;AAAA,EAGA,aAAa,EAAA,EAAuD;AACnE,IAAA,OAAO,KAAA,CAAM,qBAA4C,EAAE,CAAA;AAAA,EAC5D;AAAA,EAEA,sBAAsB,GAAA,EAAwC;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA6C,GAAG,GAAG,CAAA;AAAA,EACjE;AAAA,EAGA,IAAA,GAA+B;AAC9B,IAAA,OAAO,oBAAA,CAAoB,IAAA;AAAA,EAC5B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,mBAAA,EAAoB;AACzC,IAAO,6BAAA,GAAQ","file":"chunk-ZSWW2XGD.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { CheckoutComPayment, CheckoutComPaymentType } from './checkout_com_payments'\n\n\ntype CheckoutComGatewayType = 'checkout_com_gateways'\ntype CheckoutComGatewayRel = ResourceRel & { type: CheckoutComGatewayType }\ntype CheckoutComPaymentRel = ResourceRel & { type: CheckoutComPaymentType }\n\n\nexport type CheckoutComGatewaySort = Pick<CheckoutComGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type CheckoutComGatewayFilter = Pick<CheckoutComGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface CheckoutComGateway extends Resource {\n\t\n\treadonly type: CheckoutComGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The gateway webhook endpoint ID, generated automatically.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_id?: string | null\n\t/** \n\t * The gateway webhook endpoint secret, generated automatically.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/checkout_com_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\tcheckout_com_payments?: CheckoutComPayment[] | null\n\n}\n\n\ninterface CheckoutComGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The gateway secret key.\n\t * @example ```\"sk_test_xxxx-yyyy-zzzz\"```\n\t */\n\tsecret_key: string\n\t/** \n\t * The gateway public key.\n\t * @example ```\"pk_test_xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key: string\n\n\tcheckout_com_payments?: CheckoutComPaymentRel[] | null\n\n}\n\n\ninterface CheckoutComGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The gateway secret key.\n\t * @example ```\"sk_test_xxxx-yyyy-zzzz\"```\n\t */\n\tsecret_key?: string | null\n\t/** \n\t * The gateway public key.\n\t * @example ```\"pk_test_xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\n\tcheckout_com_payments?: CheckoutComPaymentRel[] | null\n\n}\n\n\nclass CheckoutComGateways extends ApiResource<CheckoutComGateway> {\n\n\tstatic readonly TYPE: CheckoutComGatewayType = 'checkout_com_gateways' as const\n\n\tasync create(resource: CheckoutComGatewayCreate, params?: QueryParamsRetrieve<CheckoutComGateway>, options?: ResourcesConfig): Promise<CheckoutComGateway> {\n\t\treturn this.resources.create<CheckoutComGatewayCreate, CheckoutComGateway>({ ...resource, type: CheckoutComGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CheckoutComGatewayUpdate, params?: QueryParamsRetrieve<CheckoutComGateway>, options?: ResourcesConfig): Promise<CheckoutComGateway> {\n\t\treturn this.resources.update<CheckoutComGatewayUpdate, CheckoutComGateway>({ ...resource, type: CheckoutComGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: CheckoutComGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _checkoutComGatewayId = (checkoutComGatewayId as CheckoutComGateway).id || checkoutComGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `checkout_com_gateways/${_checkoutComGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _checkoutComGatewayId = (checkoutComGatewayId as CheckoutComGateway).id || checkoutComGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `checkout_com_gateways/${_checkoutComGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _checkoutComGatewayId = (checkoutComGatewayId as CheckoutComGateway).id || checkoutComGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `checkout_com_gateways/${_checkoutComGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync checkout_com_payments(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList<CheckoutComPayment>, options?: ResourcesConfig): Promise<ListResponse<CheckoutComPayment>> {\n\t\tconst _checkoutComGatewayId = (checkoutComGatewayId as CheckoutComGateway).id || checkoutComGatewayId as string\n\t\treturn this.resources.fetch<CheckoutComPayment>({ type: 'checkout_com_payments' }, `checkout_com_gateways/${_checkoutComGatewayId}/checkout_com_payments`, params, options) as unknown as ListResponse<CheckoutComPayment>\n\t}\n\n\tasync _disable(id: string | CheckoutComGateway, params?: QueryParamsRetrieve<CheckoutComGateway>, options?: ResourcesConfig): Promise<CheckoutComGateway> {\n\t\treturn this.resources.update<CheckoutComGatewayUpdate, CheckoutComGateway>({ id: (typeof id === 'string')? id: id.id, type: CheckoutComGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | CheckoutComGateway, params?: QueryParamsRetrieve<CheckoutComGateway>, options?: ResourcesConfig): Promise<CheckoutComGateway> {\n\t\treturn this.resources.update<CheckoutComGatewayUpdate, CheckoutComGateway>({ id: (typeof id === 'string')? id: id.id, type: CheckoutComGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisCheckoutComGateway(resource: any): resource is CheckoutComGateway {\n\t\treturn resource.type && (resource.type === CheckoutComGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CheckoutComGatewayRel {\n\t\treturn super.relationshipOneToOne<CheckoutComGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CheckoutComGatewayRel[] {\n\t\treturn super.relationshipOneToMany<CheckoutComGatewayRel>(...ids)\n\t}\n\n\n\ttype(): CheckoutComGatewayType {\n\t\treturn CheckoutComGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new CheckoutComGateways()\nexport default instance\n\nexport type { CheckoutComGateways, CheckoutComGateway, CheckoutComGatewayCreate, CheckoutComGatewayUpdate, CheckoutComGatewayType }\n"]}
|
package/lib/client.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Fetch, f as InterceptorManager, g as FetchResponse } from './interceptor-
|
|
1
|
+
import { F as Fetch, f as InterceptorManager, g as FetchResponse } from './interceptor-ETmS7Tab.cjs';
|
|
2
2
|
|
|
3
3
|
type RequestParams = Record<string, string | number | boolean>;
|
|
4
4
|
type RequestHeaders = Record<string, string>;
|
package/lib/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Fetch, f as InterceptorManager, g as FetchResponse } from './interceptor-
|
|
1
|
+
import { F as Fetch, f as InterceptorManager, g as FetchResponse } from './interceptor-ETmS7Tab.js';
|
|
2
2
|
|
|
3
3
|
type RequestParams = Record<string, string | number | boolean>;
|
|
4
4
|
type RequestHeaders = Record<string, string>;
|
package/lib/commercelayer.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkNHDSPKJY_cjs = require('./chunk-NHDSPKJY.cjs');
|
|
6
6
|
require('./chunk-U22VLCMN.cjs');
|
|
7
7
|
require('./chunk-YY5ENJSH.cjs');
|
|
8
8
|
require('./chunk-ZWVME7CU.cjs');
|
|
@@ -17,19 +17,19 @@ require('./chunk-JEQ2X3Z6.cjs');
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "CommerceLayer", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkNHDSPKJY_cjs.CommerceLayer; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "CommerceLayerClient", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkNHDSPKJY_cjs.CommerceLayerClient; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "OPEN_API_SCHEMA_VERSION", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkNHDSPKJY_cjs.OPEN_API_SCHEMA_VERSION; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "default", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkNHDSPKJY_cjs.commercelayer_default; }
|
|
33
33
|
});
|
|
34
34
|
//# sourceMappingURL=commercelayer.cjs.map
|
|
35
35
|
//# sourceMappingURL=commercelayer.cjs.map
|
package/lib/commercelayer.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ApiError } from './error.cjs';
|
|
2
|
-
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-
|
|
3
|
-
import {
|
|
2
|
+
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-ETmS7Tab.cjs';
|
|
3
|
+
import { gy as ResourcesInitConfig } from './api-Hc0WV-9j.cjs';
|
|
4
4
|
import './client.cjs';
|
|
5
5
|
import './types.cjs';
|
|
6
6
|
|
|
7
|
-
declare const OPEN_API_SCHEMA_VERSION = "7.9.
|
|
7
|
+
declare const OPEN_API_SCHEMA_VERSION = "7.9.11";
|
|
8
8
|
type SdkConfig = {};
|
|
9
9
|
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
10
10
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
|
11
11
|
declare class CommerceLayerClient {
|
|
12
|
-
readonly openApiSchemaVersion = "7.9.
|
|
12
|
+
readonly openApiSchemaVersion = "7.9.11";
|
|
13
13
|
protected static cl: CommerceLayerClient;
|
|
14
14
|
static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
|
|
15
15
|
protected constructor(config: CommerceLayerInitConfig);
|
package/lib/commercelayer.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ApiError } from './error.js';
|
|
2
|
-
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-
|
|
3
|
-
import {
|
|
2
|
+
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './interceptor-ETmS7Tab.js';
|
|
3
|
+
import { gy as ResourcesInitConfig } from './api-DrryxHto.js';
|
|
4
4
|
import './client.js';
|
|
5
5
|
import './types.js';
|
|
6
6
|
|
|
7
|
-
declare const OPEN_API_SCHEMA_VERSION = "7.9.
|
|
7
|
+
declare const OPEN_API_SCHEMA_VERSION = "7.9.11";
|
|
8
8
|
type SdkConfig = {};
|
|
9
9
|
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
10
10
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
|
11
11
|
declare class CommerceLayerClient {
|
|
12
|
-
readonly openApiSchemaVersion = "7.9.
|
|
12
|
+
readonly openApiSchemaVersion = "7.9.11";
|
|
13
13
|
protected static cl: CommerceLayerClient;
|
|
14
14
|
static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
|
|
15
15
|
protected constructor(config: CommerceLayerInitConfig);
|
package/lib/commercelayer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CommerceLayer, CommerceLayerClient, OPEN_API_SCHEMA_VERSION, commercelayer_default as default } from './chunk-
|
|
1
|
+
export { CommerceLayer, CommerceLayerClient, OPEN_API_SCHEMA_VERSION, commercelayer_default as default } from './chunk-MBWTMQHA.js';
|
|
2
2
|
import './chunk-XKERR6OR.js';
|
|
3
3
|
import './chunk-CHYP5F26.js';
|
|
4
4
|
import './chunk-UUY77JM3.js';
|
package/lib/config.d.cts
CHANGED
package/lib/config.d.ts
CHANGED
package/lib/enum.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aX as CreatableResource, aY as CreatableResourceType, bw as DeletableResource, bx as DeletableResourceType, dR as ListableResource, dS as ListableResourceType, nA as ResourceFields, nB as ResourceSortFields, gv as ResourceTypeLock, gz as RetrievableResource, gA as RetrievableResourceType, iC as TaggableResource, iD as TaggableResourceType, j3 as UpdatableResource, j4 as UpdatableResourceType, j7 as VersionableResource, j8 as VersionableResourceType, nC as creatableResources, nD as deletableResources, nE as getResources, nF as getSingletons, nG as isCreatable, nH as isDeletable, nI as isSingleton, nJ as isTaggable, nK as isUpdatable, nL as isVersionable, nM as resourceList, nN as singletonList, nO as taggableResources, nP as updatableResources, nQ as versionableResources } from './api-Hc0WV-9j.cjs';
|
|
2
2
|
import './client.cjs';
|
|
3
|
-
import './interceptor-
|
|
3
|
+
import './interceptor-ETmS7Tab.cjs';
|
|
4
4
|
import './types.cjs';
|
package/lib/enum.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aX as CreatableResource, aY as CreatableResourceType, bw as DeletableResource, bx as DeletableResourceType, dR as ListableResource, dS as ListableResourceType, nA as ResourceFields, nB as ResourceSortFields, gv as ResourceTypeLock, gz as RetrievableResource, gA as RetrievableResourceType, iC as TaggableResource, iD as TaggableResourceType, j3 as UpdatableResource, j4 as UpdatableResourceType, j7 as VersionableResource, j8 as VersionableResourceType, nC as creatableResources, nD as deletableResources, nE as getResources, nF as getSingletons, nG as isCreatable, nH as isDeletable, nI as isSingleton, nJ as isTaggable, nK as isUpdatable, nL as isVersionable, nM as resourceList, nN as singletonList, nO as taggableResources, nP as updatableResources, nQ as versionableResources } from './api-DrryxHto.js';
|
|
2
2
|
import './client.js';
|
|
3
|
-
import './interceptor-
|
|
3
|
+
import './interceptor-ETmS7Tab.js';
|
|
4
4
|
import './types.js';
|
package/lib/fetch.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { F as Fetch,
|
|
1
|
+
export { F as Fetch, h as FetchClientOptions, i as FetchError, j as FetchRequestOptions, g as FetchResponse, k as fetchURL } from './interceptor-ETmS7Tab.cjs';
|
package/lib/fetch.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { F as Fetch,
|
|
1
|
+
export { F as Fetch, h as FetchClientOptions, i as FetchError, j as FetchRequestOptions, g as FetchResponse, k as fetchURL } from './interceptor-ETmS7Tab.js';
|
package/lib/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkH7JSRNFC_cjs = require('./chunk-H7JSRNFC.cjs');
|
|
6
6
|
require('./chunk-SRYEFARJ.cjs');
|
|
7
7
|
var chunkWEWTTMPS_cjs = require('./chunk-WEWTTMPS.cjs');
|
|
8
8
|
var chunkXYBXDS3Z_cjs = require('./chunk-XYBXDS3Z.cjs');
|
|
@@ -24,7 +24,7 @@ var chunkI5VOVSS7_cjs = require('./chunk-I5VOVSS7.cjs');
|
|
|
24
24
|
var chunkKM27D322_cjs = require('./chunk-KM27D322.cjs');
|
|
25
25
|
var chunkGJOZR5TC_cjs = require('./chunk-GJOZR5TC.cjs');
|
|
26
26
|
var chunkHUDH634O_cjs = require('./chunk-HUDH634O.cjs');
|
|
27
|
-
var
|
|
27
|
+
var chunk6DRGTFBA_cjs = require('./chunk-6DRGTFBA.cjs');
|
|
28
28
|
var chunkJ32Z2XNX_cjs = require('./chunk-J32Z2XNX.cjs');
|
|
29
29
|
var chunkALCZSKPR_cjs = require('./chunk-ALCZSKPR.cjs');
|
|
30
30
|
var chunk2M54XID3_cjs = require('./chunk-2M54XID3.cjs');
|
|
@@ -37,7 +37,7 @@ var chunkF46RW7IU_cjs = require('./chunk-F46RW7IU.cjs');
|
|
|
37
37
|
var chunkKDDMRBB6_cjs = require('./chunk-KDDMRBB6.cjs');
|
|
38
38
|
var chunkA2SZPZSG_cjs = require('./chunk-A2SZPZSG.cjs');
|
|
39
39
|
var chunkBHXCVURA_cjs = require('./chunk-BHXCVURA.cjs');
|
|
40
|
-
var
|
|
40
|
+
var chunk3X6OVCVT_cjs = require('./chunk-3X6OVCVT.cjs');
|
|
41
41
|
var chunk7SJAVPZH_cjs = require('./chunk-7SJAVPZH.cjs');
|
|
42
42
|
var chunk2H2ODZUY_cjs = require('./chunk-2H2ODZUY.cjs');
|
|
43
43
|
var chunkU7OGOZ5B_cjs = require('./chunk-U7OGOZ5B.cjs');
|
|
@@ -51,7 +51,7 @@ var chunk7P3ZTIQX_cjs = require('./chunk-7P3ZTIQX.cjs');
|
|
|
51
51
|
var chunkIALPF4NG_cjs = require('./chunk-IALPF4NG.cjs');
|
|
52
52
|
var chunkTIINXXHU_cjs = require('./chunk-TIINXXHU.cjs');
|
|
53
53
|
var chunkEVVUYC7T_cjs = require('./chunk-EVVUYC7T.cjs');
|
|
54
|
-
var
|
|
54
|
+
var chunkYDMB4XPA_cjs = require('./chunk-YDMB4XPA.cjs');
|
|
55
55
|
var chunkPBIARBZH_cjs = require('./chunk-PBIARBZH.cjs');
|
|
56
56
|
var chunkMQSCYGID_cjs = require('./chunk-MQSCYGID.cjs');
|
|
57
57
|
var chunkU4ELOYK7_cjs = require('./chunk-U4ELOYK7.cjs');
|
|
@@ -64,7 +64,7 @@ var chunkYPGYBULL_cjs = require('./chunk-YPGYBULL.cjs');
|
|
|
64
64
|
var chunkO3NWYOPV_cjs = require('./chunk-O3NWYOPV.cjs');
|
|
65
65
|
var chunkFMGDNZQ6_cjs = require('./chunk-FMGDNZQ6.cjs');
|
|
66
66
|
var chunk6STKOQR7_cjs = require('./chunk-6STKOQR7.cjs');
|
|
67
|
-
var
|
|
67
|
+
var chunkWLTZ66G4_cjs = require('./chunk-WLTZ66G4.cjs');
|
|
68
68
|
var chunkH7EX22DB_cjs = require('./chunk-H7EX22DB.cjs');
|
|
69
69
|
var chunkKWOKL6HK_cjs = require('./chunk-KWOKL6HK.cjs');
|
|
70
70
|
var chunkMBROL4C2_cjs = require('./chunk-MBROL4C2.cjs');
|
|
@@ -76,12 +76,12 @@ var chunkG7MROYQP_cjs = require('./chunk-G7MROYQP.cjs');
|
|
|
76
76
|
var chunkD7VHCT5M_cjs = require('./chunk-D7VHCT5M.cjs');
|
|
77
77
|
var chunkRAF3LK5T_cjs = require('./chunk-RAF3LK5T.cjs');
|
|
78
78
|
var chunkQYVJGMYT_cjs = require('./chunk-QYVJGMYT.cjs');
|
|
79
|
-
var
|
|
79
|
+
var chunkPXSMF4QS_cjs = require('./chunk-PXSMF4QS.cjs');
|
|
80
80
|
var chunkJYSIXEKG_cjs = require('./chunk-JYSIXEKG.cjs');
|
|
81
81
|
var chunkTZAGUXNS_cjs = require('./chunk-TZAGUXNS.cjs');
|
|
82
82
|
var chunk4IOIA2JQ_cjs = require('./chunk-4IOIA2JQ.cjs');
|
|
83
83
|
var chunkT5AO4445_cjs = require('./chunk-T5AO4445.cjs');
|
|
84
|
-
var
|
|
84
|
+
var chunkO66EZDG2_cjs = require('./chunk-O66EZDG2.cjs');
|
|
85
85
|
var chunkIVW25AWZ_cjs = require('./chunk-IVW25AWZ.cjs');
|
|
86
86
|
var chunkOEUSTDGS_cjs = require('./chunk-OEUSTDGS.cjs');
|
|
87
87
|
var chunk2CPNHJAZ_cjs = require('./chunk-2CPNHJAZ.cjs');
|
|
@@ -90,7 +90,7 @@ var chunkI64U2VMD_cjs = require('./chunk-I64U2VMD.cjs');
|
|
|
90
90
|
var chunkNVNPOVIQ_cjs = require('./chunk-NVNPOVIQ.cjs');
|
|
91
91
|
var chunkIXOAGKRD_cjs = require('./chunk-IXOAGKRD.cjs');
|
|
92
92
|
var chunkXOVAUMDC_cjs = require('./chunk-XOVAUMDC.cjs');
|
|
93
|
-
var
|
|
93
|
+
var chunkEJNNEY2F_cjs = require('./chunk-EJNNEY2F.cjs');
|
|
94
94
|
var chunkNWKIFDQH_cjs = require('./chunk-NWKIFDQH.cjs');
|
|
95
95
|
var chunkLTVCCLTK_cjs = require('./chunk-LTVCCLTK.cjs');
|
|
96
96
|
var chunkJWB5Y2WT_cjs = require('./chunk-JWB5Y2WT.cjs');
|
|
@@ -117,26 +117,26 @@ var chunkJCOJGOXF_cjs = require('./chunk-JCOJGOXF.cjs');
|
|
|
117
117
|
var chunkUYRFDFCS_cjs = require('./chunk-UYRFDFCS.cjs');
|
|
118
118
|
var chunkKNXPWX4D_cjs = require('./chunk-KNXPWX4D.cjs');
|
|
119
119
|
var chunkTFJYQUEH_cjs = require('./chunk-TFJYQUEH.cjs');
|
|
120
|
-
var
|
|
120
|
+
var chunkZSWW2XGD_cjs = require('./chunk-ZSWW2XGD.cjs');
|
|
121
121
|
var chunkQ3ULISRX_cjs = require('./chunk-Q3ULISRX.cjs');
|
|
122
122
|
var chunkUEQ3CRVM_cjs = require('./chunk-UEQ3CRVM.cjs');
|
|
123
123
|
var chunkZZOSKORP_cjs = require('./chunk-ZZOSKORP.cjs');
|
|
124
124
|
var chunkOV4JT553_cjs = require('./chunk-OV4JT553.cjs');
|
|
125
125
|
var chunkZ3FUZ3YM_cjs = require('./chunk-Z3FUZ3YM.cjs');
|
|
126
126
|
var chunkOA4DVMEQ_cjs = require('./chunk-OA4DVMEQ.cjs');
|
|
127
|
-
var
|
|
127
|
+
var chunkLKBPLGXI_cjs = require('./chunk-LKBPLGXI.cjs');
|
|
128
128
|
var chunkP2OLPCWV_cjs = require('./chunk-P2OLPCWV.cjs');
|
|
129
129
|
var chunk3YINNWNG_cjs = require('./chunk-3YINNWNG.cjs');
|
|
130
|
-
var
|
|
130
|
+
var chunkJLLZQ7JR_cjs = require('./chunk-JLLZQ7JR.cjs');
|
|
131
131
|
var chunkBGHPRKU4_cjs = require('./chunk-BGHPRKU4.cjs');
|
|
132
132
|
var chunkEPDTA5Z3_cjs = require('./chunk-EPDTA5Z3.cjs');
|
|
133
133
|
var chunk7YWXHAMP_cjs = require('./chunk-7YWXHAMP.cjs');
|
|
134
134
|
var chunkKGZ3FTYR_cjs = require('./chunk-KGZ3FTYR.cjs');
|
|
135
|
-
var
|
|
135
|
+
var chunk2C3Z5JNK_cjs = require('./chunk-2C3Z5JNK.cjs');
|
|
136
136
|
var chunkFNTJOIQB_cjs = require('./chunk-FNTJOIQB.cjs');
|
|
137
137
|
var chunkD7SALAS2_cjs = require('./chunk-D7SALAS2.cjs');
|
|
138
138
|
var chunk2ZVHALAO_cjs = require('./chunk-2ZVHALAO.cjs');
|
|
139
|
-
var
|
|
139
|
+
var chunkNHDSPKJY_cjs = require('./chunk-NHDSPKJY.cjs');
|
|
140
140
|
require('./chunk-U22VLCMN.cjs');
|
|
141
141
|
require('./chunk-YY5ENJSH.cjs');
|
|
142
142
|
require('./chunk-ZWVME7CU.cjs');
|
|
@@ -151,7 +151,7 @@ require('./chunk-JEQ2X3Z6.cjs');
|
|
|
151
151
|
|
|
152
152
|
Object.defineProperty(exports, "CommerceLayerStatic", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkH7JSRNFC_cjs.CommerceLayerStatic; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "transactions", {
|
|
157
157
|
enumerable: true,
|
|
@@ -235,7 +235,7 @@ Object.defineProperty(exports, "stores", {
|
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "stripe_gateways", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunk6DRGTFBA_cjs.stripe_gateways_default; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "stripe_payments", {
|
|
241
241
|
enumerable: true,
|
|
@@ -287,7 +287,7 @@ Object.defineProperty(exports, "returns", {
|
|
|
287
287
|
});
|
|
288
288
|
Object.defineProperty(exports, "satispay_gateways", {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunk3X6OVCVT_cjs.satispay_gateways_default; }
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "satispay_payments", {
|
|
293
293
|
enumerable: true,
|
|
@@ -343,7 +343,7 @@ Object.defineProperty(exports, "payment_options", {
|
|
|
343
343
|
});
|
|
344
344
|
Object.defineProperty(exports, "paypal_gateways", {
|
|
345
345
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkYDMB4XPA_cjs.paypal_gateways_default; }
|
|
347
347
|
});
|
|
348
348
|
Object.defineProperty(exports, "paypal_payments", {
|
|
349
349
|
enumerable: true,
|
|
@@ -395,7 +395,7 @@ Object.defineProperty(exports, "parcels", {
|
|
|
395
395
|
});
|
|
396
396
|
Object.defineProperty(exports, "payment_gateways", {
|
|
397
397
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkWLTZ66G4_cjs.payment_gateways_default; }
|
|
399
399
|
});
|
|
400
400
|
Object.defineProperty(exports, "payment_methods", {
|
|
401
401
|
enumerable: true,
|
|
@@ -443,7 +443,7 @@ Object.defineProperty(exports, "inventory_stock_locations", {
|
|
|
443
443
|
});
|
|
444
444
|
Object.defineProperty(exports, "klarna_gateways", {
|
|
445
445
|
enumerable: true,
|
|
446
|
-
get: function () { return
|
|
446
|
+
get: function () { return chunkPXSMF4QS_cjs.klarna_gateways_default; }
|
|
447
447
|
});
|
|
448
448
|
Object.defineProperty(exports, "klarna_payments", {
|
|
449
449
|
enumerable: true,
|
|
@@ -463,7 +463,7 @@ Object.defineProperty(exports, "links", {
|
|
|
463
463
|
});
|
|
464
464
|
Object.defineProperty(exports, "manual_gateways", {
|
|
465
465
|
enumerable: true,
|
|
466
|
-
get: function () { return
|
|
466
|
+
get: function () { return chunkO66EZDG2_cjs.manual_gateways_default; }
|
|
467
467
|
});
|
|
468
468
|
Object.defineProperty(exports, "free_shipping_promotions", {
|
|
469
469
|
enumerable: true,
|
|
@@ -499,7 +499,7 @@ Object.defineProperty(exports, "inventory_models", {
|
|
|
499
499
|
});
|
|
500
500
|
Object.defineProperty(exports, "external_gateways", {
|
|
501
501
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
502
|
+
get: function () { return chunkEJNNEY2F_cjs.external_gateways_default; }
|
|
503
503
|
});
|
|
504
504
|
Object.defineProperty(exports, "external_payments", {
|
|
505
505
|
enumerable: true,
|
|
@@ -607,7 +607,7 @@ Object.defineProperty(exports, "carrier_accounts", {
|
|
|
607
607
|
});
|
|
608
608
|
Object.defineProperty(exports, "checkout_com_gateways", {
|
|
609
609
|
enumerable: true,
|
|
610
|
-
get: function () { return
|
|
610
|
+
get: function () { return chunkZSWW2XGD_cjs.checkout_com_gateways_default; }
|
|
611
611
|
});
|
|
612
612
|
Object.defineProperty(exports, "checkout_com_payments", {
|
|
613
613
|
enumerable: true,
|
|
@@ -635,7 +635,7 @@ Object.defineProperty(exports, "avalara_accounts", {
|
|
|
635
635
|
});
|
|
636
636
|
Object.defineProperty(exports, "axerve_gateways", {
|
|
637
637
|
enumerable: true,
|
|
638
|
-
get: function () { return
|
|
638
|
+
get: function () { return chunkLKBPLGXI_cjs.axerve_gateways_default; }
|
|
639
639
|
});
|
|
640
640
|
Object.defineProperty(exports, "axerve_payments", {
|
|
641
641
|
enumerable: true,
|
|
@@ -647,7 +647,7 @@ Object.defineProperty(exports, "bing_geocoders", {
|
|
|
647
647
|
});
|
|
648
648
|
Object.defineProperty(exports, "braintree_gateways", {
|
|
649
649
|
enumerable: true,
|
|
650
|
-
get: function () { return
|
|
650
|
+
get: function () { return chunkJLLZQ7JR_cjs.braintree_gateways_default; }
|
|
651
651
|
});
|
|
652
652
|
Object.defineProperty(exports, "braintree_payments", {
|
|
653
653
|
enumerable: true,
|
|
@@ -667,7 +667,7 @@ Object.defineProperty(exports, "adjustments", {
|
|
|
667
667
|
});
|
|
668
668
|
Object.defineProperty(exports, "adyen_gateways", {
|
|
669
669
|
enumerable: true,
|
|
670
|
-
get: function () { return
|
|
670
|
+
get: function () { return chunk2C3Z5JNK_cjs.adyen_gateways_default; }
|
|
671
671
|
});
|
|
672
672
|
Object.defineProperty(exports, "adyen_payments", {
|
|
673
673
|
enumerable: true,
|
|
@@ -683,11 +683,11 @@ Object.defineProperty(exports, "attachments", {
|
|
|
683
683
|
});
|
|
684
684
|
Object.defineProperty(exports, "CommerceLayer", {
|
|
685
685
|
enumerable: true,
|
|
686
|
-
get: function () { return
|
|
686
|
+
get: function () { return chunkNHDSPKJY_cjs.CommerceLayer; }
|
|
687
687
|
});
|
|
688
688
|
Object.defineProperty(exports, "default", {
|
|
689
689
|
enumerable: true,
|
|
690
|
-
get: function () { return
|
|
690
|
+
get: function () { return chunkNHDSPKJY_cjs.commercelayer_default; }
|
|
691
691
|
});
|
|
692
692
|
//# sourceMappingURL=index.cjs.map
|
|
693
693
|
//# sourceMappingURL=index.cjs.map
|