@commercelayer/sdk 5.44.0 → 5.46.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/cjs/api.d.ts CHANGED
@@ -1 +1 @@
1
- import type{Resource,ResourceRel}from'./resource';import type{TagType}from'./resources/tags';import type{VersionType}from'./resources/versions';export{default as Addresses}from'./resources/addresses';export{default as Adjustments}from'./resources/adjustments';export{default as AdyenGateways}from'./resources/adyen_gateways';export{default as AdyenPayments}from'./resources/adyen_payments';export{default as Applications}from'./resources/application';export{default as Attachments}from'./resources/attachments';export{default as Authorizations}from'./resources/authorizations';export{default as AvalaraAccounts}from'./resources/avalara_accounts';export{default as AxerveGateways}from'./resources/axerve_gateways';export{default as AxervePayments}from'./resources/axerve_payments';export{default as BillingInfoValidationRules}from'./resources/billing_info_validation_rules';export{default as BingGeocoders}from'./resources/bing_geocoders';export{default as BraintreeGateways}from'./resources/braintree_gateways';export{default as BraintreePayments}from'./resources/braintree_payments';export{default as Bundles}from'./resources/bundles';export{default as BuyXPayYPromotions}from'./resources/buy_x_pay_y_promotions';export{default as Captures}from'./resources/captures';export{default as CarrierAccounts}from'./resources/carrier_accounts';export{default as CheckoutComGateways}from'./resources/checkout_com_gateways';export{default as CheckoutComPayments}from'./resources/checkout_com_payments';export{default as Cleanups}from'./resources/cleanups';export{default as CouponCodesPromotionRules}from'./resources/coupon_codes_promotion_rules';export{default as CouponRecipients}from'./resources/coupon_recipients';export{default as Coupons}from'./resources/coupons';export{default as CustomPromotionRules}from'./resources/custom_promotion_rules';export{default as CustomerAddresses}from'./resources/customer_addresses';export{default as CustomerGroups}from'./resources/customer_groups';export{default as CustomerPasswordResets}from'./resources/customer_password_resets';export{default as CustomerPaymentSources}from'./resources/customer_payment_sources';export{default as CustomerSubscriptions}from'./resources/customer_subscriptions';export{default as Customers}from'./resources/customers';export{default as DeliveryLeadTimes}from'./resources/delivery_lead_times';export{default as EventCallbacks}from'./resources/event_callbacks';export{default as Events}from'./resources/events';export{default as Exports}from'./resources/exports';export{default as ExternalGateways}from'./resources/external_gateways';export{default as ExternalPayments}from'./resources/external_payments';export{default as ExternalPromotions}from'./resources/external_promotions';export{default as ExternalTaxCalculators}from'./resources/external_tax_calculators';export{default as FixedAmountPromotions}from'./resources/fixed_amount_promotions';export{default as FixedPricePromotions}from'./resources/fixed_price_promotions';export{default as FreeGiftPromotions}from'./resources/free_gift_promotions';export{default as FreeShippingPromotions}from'./resources/free_shipping_promotions';export{default as Geocoders}from'./resources/geocoders';export{default as GiftCardRecipients}from'./resources/gift_card_recipients';export{default as GiftCards}from'./resources/gift_cards';export{default as GoogleGeocoders}from'./resources/google_geocoders';export{default as Imports}from'./resources/imports';export{default as InStockSubscriptions}from'./resources/in_stock_subscriptions';export{default as InventoryModels}from'./resources/inventory_models';export{default as InventoryReturnLocations}from'./resources/inventory_return_locations';export{default as InventoryStockLocations}from'./resources/inventory_stock_locations';export{default as KlarnaGateways}from'./resources/klarna_gateways';export{default as KlarnaPayments}from'./resources/klarna_payments';export{default as LineItemOptions}from'./resources/line_item_options';export{default as LineItems}from'./resources/line_items';export{default as Links}from'./resources/links';export{default as ManualGateways}from'./resources/manual_gateways';export{default as ManualTaxCalculators}from'./resources/manual_tax_calculators';export{default as Markets}from'./resources/markets';export{default as Merchants}from'./resources/merchants';export{default as OrderAmountPromotionRules}from'./resources/order_amount_promotion_rules';export{default as OrderCopies}from'./resources/order_copies';export{default as OrderFactories}from'./resources/order_factories';export{default as OrderSubscriptionItems}from'./resources/order_subscription_items';export{default as OrderSubscriptions}from'./resources/order_subscriptions';export{default as Orders}from'./resources/orders';export{default as Organizations}from'./resources/organization';export{default as Packages}from'./resources/packages';export{default as ParcelLineItems}from'./resources/parcel_line_items';export{default as Parcels}from'./resources/parcels';export{default as PaymentGateways}from'./resources/payment_gateways';export{default as PaymentMethods}from'./resources/payment_methods';export{default as PaymentOptions}from'./resources/payment_options';export{default as PaypalGateways}from'./resources/paypal_gateways';export{default as PaypalPayments}from'./resources/paypal_payments';export{default as PercentageDiscountPromotions}from'./resources/percentage_discount_promotions';export{default as PriceFrequencyTiers}from'./resources/price_frequency_tiers';export{default as PriceListSchedulers}from'./resources/price_list_schedulers';export{default as PriceLists}from'./resources/price_lists';export{default as PriceTiers}from'./resources/price_tiers';export{default as PriceVolumeTiers}from'./resources/price_volume_tiers';export{default as Prices}from'./resources/prices';export{default as PromotionRules}from'./resources/promotion_rules';export{default as Promotions}from'./resources/promotions';export{default as RecurringOrderCopies}from'./resources/recurring_order_copies';export{default as Refunds}from'./resources/refunds';export{default as ReservedStocks}from'./resources/reserved_stocks';export{default as ResourceErrors}from'./resources/resource_errors';export{default as ReturnLineItems}from'./resources/return_line_items';export{default as Returns}from'./resources/returns';export{default as SatispayGateways}from'./resources/satispay_gateways';export{default as SatispayPayments}from'./resources/satispay_payments';export{default as Shipments}from'./resources/shipments';export{default as ShippingCategories}from'./resources/shipping_categories';export{default as ShippingMethodTiers}from'./resources/shipping_method_tiers';export{default as ShippingMethods}from'./resources/shipping_methods';export{default as ShippingWeightTiers}from'./resources/shipping_weight_tiers';export{default as ShippingZones}from'./resources/shipping_zones';export{default as SkuListItems}from'./resources/sku_list_items';export{default as SkuListPromotionRules}from'./resources/sku_list_promotion_rules';export{default as SkuLists}from'./resources/sku_lists';export{default as SkuOptions}from'./resources/sku_options';export{default as Skus}from'./resources/skus';export{default as StockItems}from'./resources/stock_items';export{default as StockLineItems}from'./resources/stock_line_items';export{default as StockLocations}from'./resources/stock_locations';export{default as StockReservations}from'./resources/stock_reservations';export{default as StockTransfers}from'./resources/stock_transfers';export{default as StripeGateways}from'./resources/stripe_gateways';export{default as StripePayments}from'./resources/stripe_payments';export{default as SubscriptionModels}from'./resources/subscription_models';export{default as Tags}from'./resources/tags';export{default as TaxCalculators}from'./resources/tax_calculators';export{default as TaxCategories}from'./resources/tax_categories';export{default as TaxRules}from'./resources/tax_rules';export{default as TaxjarAccounts}from'./resources/taxjar_accounts';export{default as Transactions}from'./resources/transactions';export{default as Versions}from'./resources/versions';export{default as Voids}from'./resources/voids';export{default as Webhooks}from'./resources/webhooks';export{default as WireTransfers}from'./resources/wire_transfers';export type ResourceTypeLock='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'application'|'attachments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'carrier_accounts'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'event_callbacks'|'events'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'geocoders'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_factories'|'order_subscription_items'|'order_subscriptions'|'orders'|'organization'|'packages'|'parcel_line_items'|'parcels'|'payment_gateways'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_tiers'|'price_volume_tiers'|'prices'|'promotion_rules'|'promotions'|'recurring_order_copies'|'refunds'|'reserved_stocks'|'resource_errors'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_method_tiers'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_calculators'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'transactions'|'versions'|'voids'|'webhooks'|'wire_transfers';export declare const resourceList:readonly["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","axerve_gateways","axerve_payments","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","buy_x_pay_y_promotions","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","cleanups","coupon_codes_promotion_rules","coupon_recipients","coupons","custom_promotion_rules","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","events","exports","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","links","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_factories","order_subscription_items","order_subscriptions","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","payment_options","paypal_gateways","paypal_payments","percentage_discount_promotions","price_frequency_tiers","price_list_schedulers","price_lists","price_tiers","price_volume_tiers","prices","promotion_rules","promotions","recurring_order_copies","refunds","reserved_stocks","resource_errors","return_line_items","returns","satispay_gateways","satispay_payments","shipments","shipping_categories","shipping_method_tiers","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_reservations","stock_transfers","stripe_gateways","stripe_payments","subscription_models","tags","tax_calculators","tax_categories","tax_rules","taxjar_accounts","transactions","versions","voids","webhooks","wire_transfers"];export declare const singletonList:readonly["application","organization"];export type RetrievableResourceType=ResourceTypeLock;export type RetrievableResource=Resource&{type:RetrievableResourceType;};export type ListableResourceType=Exclude<ResourceTypeLock,'application'|'organization'>;export type ListableResource=Resource&{type:ListableResourceType;};export type CreatableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type CreatableResource=Resource&{type:CreatableResourceType;};export type UpdatableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'checkout_com_gateways'|'checkout_com_payments'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type UpdatableResource=Resource&{type:UpdatableResourceType;};export type DeletableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type DeletableResource=Resource&{type:DeletableResourceType;};export type TaggableResourceType='addresses'|'bundles'|'buy_x_pay_y_promotions'|'coupons'|'customers'|'external_promotions'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_cards'|'line_item_options'|'line_items'|'orders'|'percentage_discount_promotions'|'promotions'|'returns'|'shipments'|'sku_options'|'skus';export type TaggableResource=Resource&{type:TaggableResourceType;tags?:Array<ResourceRel&{type:TagType;}>|null;};export type VersionableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'carrier_accounts'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_payment_sources'|'customer_subscriptions'|'delivery_lead_times'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_gateways'|'payment_methods'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_tiers'|'price_volume_tiers'|'prices'|'promotion_rules'|'promotions'|'refunds'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_method_tiers'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'tax_calculators'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'transactions'|'voids'|'webhooks'|'wire_transfers';export type VersionableResource=Resource&{type:VersionableResourceType;versions?:Array<ResourceRel&{type:VersionType;}>|null;};
1
+ import type{Resource,ResourceRel}from'./resource';import type{TagType}from'./resources/tags';import type{VersionType}from'./resources/versions';export{default as Addresses}from'./resources/addresses';export{default as Adjustments}from'./resources/adjustments';export{default as AdyenGateways}from'./resources/adyen_gateways';export{default as AdyenPayments}from'./resources/adyen_payments';export{default as Applications}from'./resources/application';export{default as Attachments}from'./resources/attachments';export{default as Authorizations}from'./resources/authorizations';export{default as AvalaraAccounts}from'./resources/avalara_accounts';export{default as AxerveGateways}from'./resources/axerve_gateways';export{default as AxervePayments}from'./resources/axerve_payments';export{default as BillingInfoValidationRules}from'./resources/billing_info_validation_rules';export{default as BingGeocoders}from'./resources/bing_geocoders';export{default as BraintreeGateways}from'./resources/braintree_gateways';export{default as BraintreePayments}from'./resources/braintree_payments';export{default as Bundles}from'./resources/bundles';export{default as BuyXPayYPromotions}from'./resources/buy_x_pay_y_promotions';export{default as Captures}from'./resources/captures';export{default as CarrierAccounts}from'./resources/carrier_accounts';export{default as CheckoutComGateways}from'./resources/checkout_com_gateways';export{default as CheckoutComPayments}from'./resources/checkout_com_payments';export{default as Cleanups}from'./resources/cleanups';export{default as CouponCodesPromotionRules}from'./resources/coupon_codes_promotion_rules';export{default as CouponRecipients}from'./resources/coupon_recipients';export{default as Coupons}from'./resources/coupons';export{default as CustomPromotionRules}from'./resources/custom_promotion_rules';export{default as CustomerAddresses}from'./resources/customer_addresses';export{default as CustomerGroups}from'./resources/customer_groups';export{default as CustomerPasswordResets}from'./resources/customer_password_resets';export{default as CustomerPaymentSources}from'./resources/customer_payment_sources';export{default as CustomerSubscriptions}from'./resources/customer_subscriptions';export{default as Customers}from'./resources/customers';export{default as DeliveryLeadTimes}from'./resources/delivery_lead_times';export{default as EventCallbacks}from'./resources/event_callbacks';export{default as Events}from'./resources/events';export{default as Exports}from'./resources/exports';export{default as ExternalGateways}from'./resources/external_gateways';export{default as ExternalPayments}from'./resources/external_payments';export{default as ExternalPromotions}from'./resources/external_promotions';export{default as ExternalTaxCalculators}from'./resources/external_tax_calculators';export{default as FixedAmountPromotions}from'./resources/fixed_amount_promotions';export{default as FixedPricePromotions}from'./resources/fixed_price_promotions';export{default as FreeGiftPromotions}from'./resources/free_gift_promotions';export{default as FreeShippingPromotions}from'./resources/free_shipping_promotions';export{default as Geocoders}from'./resources/geocoders';export{default as GiftCardRecipients}from'./resources/gift_card_recipients';export{default as GiftCards}from'./resources/gift_cards';export{default as GoogleGeocoders}from'./resources/google_geocoders';export{default as Imports}from'./resources/imports';export{default as InStockSubscriptions}from'./resources/in_stock_subscriptions';export{default as InventoryModels}from'./resources/inventory_models';export{default as InventoryReturnLocations}from'./resources/inventory_return_locations';export{default as InventoryStockLocations}from'./resources/inventory_stock_locations';export{default as KlarnaGateways}from'./resources/klarna_gateways';export{default as KlarnaPayments}from'./resources/klarna_payments';export{default as LineItemOptions}from'./resources/line_item_options';export{default as LineItems}from'./resources/line_items';export{default as Links}from'./resources/links';export{default as ManualGateways}from'./resources/manual_gateways';export{default as ManualTaxCalculators}from'./resources/manual_tax_calculators';export{default as Markets}from'./resources/markets';export{default as Merchants}from'./resources/merchants';export{default as OrderAmountPromotionRules}from'./resources/order_amount_promotion_rules';export{default as OrderCopies}from'./resources/order_copies';export{default as OrderFactories}from'./resources/order_factories';export{default as OrderSubscriptionItems}from'./resources/order_subscription_items';export{default as OrderSubscriptions}from'./resources/order_subscriptions';export{default as Orders}from'./resources/orders';export{default as Organizations}from'./resources/organization';export{default as Packages}from'./resources/packages';export{default as ParcelLineItems}from'./resources/parcel_line_items';export{default as Parcels}from'./resources/parcels';export{default as PaymentGateways}from'./resources/payment_gateways';export{default as PaymentMethods}from'./resources/payment_methods';export{default as PaymentOptions}from'./resources/payment_options';export{default as PaypalGateways}from'./resources/paypal_gateways';export{default as PaypalPayments}from'./resources/paypal_payments';export{default as PercentageDiscountPromotions}from'./resources/percentage_discount_promotions';export{default as PriceFrequencyTiers}from'./resources/price_frequency_tiers';export{default as PriceListSchedulers}from'./resources/price_list_schedulers';export{default as PriceLists}from'./resources/price_lists';export{default as PriceTiers}from'./resources/price_tiers';export{default as PriceVolumeTiers}from'./resources/price_volume_tiers';export{default as Prices}from'./resources/prices';export{default as PromotionRules}from'./resources/promotion_rules';export{default as Promotions}from'./resources/promotions';export{default as RecurringOrderCopies}from'./resources/recurring_order_copies';export{default as Refunds}from'./resources/refunds';export{default as ReservedStocks}from'./resources/reserved_stocks';export{default as ResourceErrors}from'./resources/resource_errors';export{default as ReturnLineItems}from'./resources/return_line_items';export{default as Returns}from'./resources/returns';export{default as SatispayGateways}from'./resources/satispay_gateways';export{default as SatispayPayments}from'./resources/satispay_payments';export{default as Shipments}from'./resources/shipments';export{default as ShippingCategories}from'./resources/shipping_categories';export{default as ShippingMethodTiers}from'./resources/shipping_method_tiers';export{default as ShippingMethods}from'./resources/shipping_methods';export{default as ShippingWeightTiers}from'./resources/shipping_weight_tiers';export{default as ShippingZones}from'./resources/shipping_zones';export{default as SkuListItems}from'./resources/sku_list_items';export{default as SkuListPromotionRules}from'./resources/sku_list_promotion_rules';export{default as SkuLists}from'./resources/sku_lists';export{default as SkuOptions}from'./resources/sku_options';export{default as Skus}from'./resources/skus';export{default as StockItems}from'./resources/stock_items';export{default as StockLineItems}from'./resources/stock_line_items';export{default as StockLocations}from'./resources/stock_locations';export{default as StockReservations}from'./resources/stock_reservations';export{default as StockTransfers}from'./resources/stock_transfers';export{default as StripeGateways}from'./resources/stripe_gateways';export{default as StripePayments}from'./resources/stripe_payments';export{default as SubscriptionModels}from'./resources/subscription_models';export{default as Tags}from'./resources/tags';export{default as TaxCalculators}from'./resources/tax_calculators';export{default as TaxCategories}from'./resources/tax_categories';export{default as TaxRules}from'./resources/tax_rules';export{default as TaxjarAccounts}from'./resources/taxjar_accounts';export{default as Transactions}from'./resources/transactions';export{default as Versions}from'./resources/versions';export{default as Voids}from'./resources/voids';export{default as Webhooks}from'./resources/webhooks';export{default as WireTransfers}from'./resources/wire_transfers';export type ResourceTypeLock='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'application'|'attachments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'carrier_accounts'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'event_callbacks'|'events'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'geocoders'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_factories'|'order_subscription_items'|'order_subscriptions'|'orders'|'organization'|'packages'|'parcel_line_items'|'parcels'|'payment_gateways'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_tiers'|'price_volume_tiers'|'prices'|'promotion_rules'|'promotions'|'recurring_order_copies'|'refunds'|'reserved_stocks'|'resource_errors'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_method_tiers'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_calculators'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'transactions'|'versions'|'voids'|'webhooks'|'wire_transfers';export declare const resourceList:readonly["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","axerve_gateways","axerve_payments","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","buy_x_pay_y_promotions","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","cleanups","coupon_codes_promotion_rules","coupon_recipients","coupons","custom_promotion_rules","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","events","exports","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","links","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_factories","order_subscription_items","order_subscriptions","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","payment_options","paypal_gateways","paypal_payments","percentage_discount_promotions","price_frequency_tiers","price_list_schedulers","price_lists","price_tiers","price_volume_tiers","prices","promotion_rules","promotions","recurring_order_copies","refunds","reserved_stocks","resource_errors","return_line_items","returns","satispay_gateways","satispay_payments","shipments","shipping_categories","shipping_method_tiers","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_reservations","stock_transfers","stripe_gateways","stripe_payments","subscription_models","tags","tax_calculators","tax_categories","tax_rules","taxjar_accounts","transactions","versions","voids","webhooks","wire_transfers"];export declare const singletonList:readonly["application","organization"];export type RetrievableResourceType=ResourceTypeLock;export type RetrievableResource=Resource&{type:RetrievableResourceType;};export type ListableResourceType=Exclude<ResourceTypeLock,'application'|'organization'>;export type ListableResource=Resource&{type:ListableResourceType;};export type CreatableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type CreatableResource=Resource&{type:CreatableResourceType;};export type UpdatableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'checkout_com_gateways'|'checkout_com_payments'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type UpdatableResource=Resource&{type:UpdatableResourceType;};export type DeletableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type DeletableResource=Resource&{type:DeletableResourceType;};export type TaggableResourceType='addresses'|'bundles'|'buy_x_pay_y_promotions'|'coupons'|'customers'|'external_promotions'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_cards'|'line_item_options'|'line_items'|'order_subscriptions'|'orders'|'percentage_discount_promotions'|'promotions'|'returns'|'shipments'|'sku_options'|'skus';export type TaggableResource=Resource&{type:TaggableResourceType;tags?:Array<ResourceRel&{type:TagType;}>|null;};export type VersionableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'carrier_accounts'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_payment_sources'|'customer_subscriptions'|'delivery_lead_times'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_gateways'|'payment_methods'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_tiers'|'price_volume_tiers'|'prices'|'promotion_rules'|'promotions'|'refunds'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_method_tiers'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'tax_calculators'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'transactions'|'voids'|'webhooks'|'wire_transfers';export type VersionableResource=Resource&{type:VersionableResourceType;versions?:Array<ResourceRel&{type:VersionType;}>|null;};
@@ -1 +1 @@
1
- import*as api from'./api';import type{ApiError}from'./error';import type{ErrorInterceptor,InterceptorType,RawResponseReader,RequestInterceptor,ResponseInterceptor}from'./interceptor';import{type ResourcesInitConfig}from'./resource';declare const OPEN_API_SCHEMA_VERSION="5.4.1";export{OPEN_API_SCHEMA_VERSION};type SdkConfig={};type CommerceLayerInitConfig=SdkConfig&ResourcesInitConfig;type CommerceLayerConfig=Partial<CommerceLayerInitConfig>;declare class CommerceLayerClient{#private;readonly openApiSchemaVersion="5.4.1";addresses:api.Addresses;adjustments:api.Adjustments;adyen_gateways:api.AdyenGateways;adyen_payments:api.AdyenPayments;application:api.Applications;attachments:api.Attachments;authorizations:api.Authorizations;avalara_accounts:api.AvalaraAccounts;axerve_gateways:api.AxerveGateways;axerve_payments:api.AxervePayments;billing_info_validation_rules:api.BillingInfoValidationRules;bing_geocoders:api.BingGeocoders;braintree_gateways:api.BraintreeGateways;braintree_payments:api.BraintreePayments;bundles:api.Bundles;buy_x_pay_y_promotions:api.BuyXPayYPromotions;captures:api.Captures;carrier_accounts:api.CarrierAccounts;checkout_com_gateways:api.CheckoutComGateways;checkout_com_payments:api.CheckoutComPayments;cleanups:api.Cleanups;coupon_codes_promotion_rules:api.CouponCodesPromotionRules;coupon_recipients:api.CouponRecipients;coupons:api.Coupons;custom_promotion_rules:api.CustomPromotionRules;customer_addresses:api.CustomerAddresses;customer_groups:api.CustomerGroups;customer_password_resets:api.CustomerPasswordResets;customer_payment_sources:api.CustomerPaymentSources;customer_subscriptions:api.CustomerSubscriptions;customers:api.Customers;delivery_lead_times:api.DeliveryLeadTimes;event_callbacks:api.EventCallbacks;events:api.Events;exports:api.Exports;external_gateways:api.ExternalGateways;external_payments:api.ExternalPayments;external_promotions:api.ExternalPromotions;external_tax_calculators:api.ExternalTaxCalculators;fixed_amount_promotions:api.FixedAmountPromotions;fixed_price_promotions:api.FixedPricePromotions;free_gift_promotions:api.FreeGiftPromotions;free_shipping_promotions:api.FreeShippingPromotions;geocoders:api.Geocoders;gift_card_recipients:api.GiftCardRecipients;gift_cards:api.GiftCards;google_geocoders:api.GoogleGeocoders;imports:api.Imports;in_stock_subscriptions:api.InStockSubscriptions;inventory_models:api.InventoryModels;inventory_return_locations:api.InventoryReturnLocations;inventory_stock_locations:api.InventoryStockLocations;klarna_gateways:api.KlarnaGateways;klarna_payments:api.KlarnaPayments;line_item_options:api.LineItemOptions;line_items:api.LineItems;links:api.Links;manual_gateways:api.ManualGateways;manual_tax_calculators:api.ManualTaxCalculators;markets:api.Markets;merchants:api.Merchants;order_amount_promotion_rules:api.OrderAmountPromotionRules;order_copies:api.OrderCopies;order_factories:api.OrderFactories;order_subscription_items:api.OrderSubscriptionItems;order_subscriptions:api.OrderSubscriptions;orders:api.Orders;organization:api.Organizations;packages:api.Packages;parcel_line_items:api.ParcelLineItems;parcels:api.Parcels;payment_gateways:api.PaymentGateways;payment_methods:api.PaymentMethods;payment_options:api.PaymentOptions;paypal_gateways:api.PaypalGateways;paypal_payments:api.PaypalPayments;percentage_discount_promotions:api.PercentageDiscountPromotions;price_frequency_tiers:api.PriceFrequencyTiers;price_list_schedulers:api.PriceListSchedulers;price_lists:api.PriceLists;price_tiers:api.PriceTiers;price_volume_tiers:api.PriceVolumeTiers;prices:api.Prices;promotion_rules:api.PromotionRules;promotions:api.Promotions;recurring_order_copies:api.RecurringOrderCopies;refunds:api.Refunds;reserved_stocks:api.ReservedStocks;resource_errors:api.ResourceErrors;return_line_items:api.ReturnLineItems;returns:api.Returns;satispay_gateways:api.SatispayGateways;satispay_payments:api.SatispayPayments;shipments:api.Shipments;shipping_categories:api.ShippingCategories;shipping_method_tiers:api.ShippingMethodTiers;shipping_methods:api.ShippingMethods;shipping_weight_tiers:api.ShippingWeightTiers;shipping_zones:api.ShippingZones;sku_list_items:api.SkuListItems;sku_list_promotion_rules:api.SkuListPromotionRules;sku_lists:api.SkuLists;sku_options:api.SkuOptions;skus:api.Skus;stock_items:api.StockItems;stock_line_items:api.StockLineItems;stock_locations:api.StockLocations;stock_reservations:api.StockReservations;stock_transfers:api.StockTransfers;stripe_gateways:api.StripeGateways;stripe_payments:api.StripePayments;subscription_models:api.SubscriptionModels;tags:api.Tags;tax_calculators:api.TaxCalculators;tax_categories:api.TaxCategories;tax_rules:api.TaxRules;taxjar_accounts:api.TaxjarAccounts;transactions:api.Transactions;versions:api.Versions;voids:api.Voids;webhooks:api.Webhooks;wire_transfers:api.WireTransfers;constructor(config:CommerceLayerInitConfig);get currentOrganization():string;private localConfig;config(config:CommerceLayerConfig):CommerceLayerClient;resources():readonly string[];singletons():readonly string[];isSingleton(resource:api.ResourceTypeLock):boolean;isApiError(error:any):error is ApiError;addRequestInterceptor(onFulfilled?:RequestInterceptor|null,onRejected?:ErrorInterceptor|null):number;addResponseInterceptor(onFulfilled?:ResponseInterceptor|null,onRejected?:ErrorInterceptor|null):number;removeInterceptor(type:InterceptorType,id:number):void;addRawResponseReader(options?:{headers:boolean;}):RawResponseReader;removeRawResponseReader(reader:number|RawResponseReader):void;}declare const CommerceLayer:(config:CommerceLayerInitConfig)=>CommerceLayerClient;export default CommerceLayer;export{CommerceLayer};export type{CommerceLayerClient,CommerceLayerConfig,CommerceLayerInitConfig};
1
+ import*as api from'./api';import type{ApiError}from'./error';import type{ErrorInterceptor,InterceptorType,RawResponseReader,RequestInterceptor,ResponseInterceptor}from'./interceptor';import{type ResourcesInitConfig}from'./resource';declare const OPEN_API_SCHEMA_VERSION="5.4.3";export{OPEN_API_SCHEMA_VERSION};type SdkConfig={};type CommerceLayerInitConfig=SdkConfig&ResourcesInitConfig;type CommerceLayerConfig=Partial<CommerceLayerInitConfig>;declare class CommerceLayerClient{#private;readonly openApiSchemaVersion="5.4.3";addresses:api.Addresses;adjustments:api.Adjustments;adyen_gateways:api.AdyenGateways;adyen_payments:api.AdyenPayments;application:api.Applications;attachments:api.Attachments;authorizations:api.Authorizations;avalara_accounts:api.AvalaraAccounts;axerve_gateways:api.AxerveGateways;axerve_payments:api.AxervePayments;billing_info_validation_rules:api.BillingInfoValidationRules;bing_geocoders:api.BingGeocoders;braintree_gateways:api.BraintreeGateways;braintree_payments:api.BraintreePayments;bundles:api.Bundles;buy_x_pay_y_promotions:api.BuyXPayYPromotions;captures:api.Captures;carrier_accounts:api.CarrierAccounts;checkout_com_gateways:api.CheckoutComGateways;checkout_com_payments:api.CheckoutComPayments;cleanups:api.Cleanups;coupon_codes_promotion_rules:api.CouponCodesPromotionRules;coupon_recipients:api.CouponRecipients;coupons:api.Coupons;custom_promotion_rules:api.CustomPromotionRules;customer_addresses:api.CustomerAddresses;customer_groups:api.CustomerGroups;customer_password_resets:api.CustomerPasswordResets;customer_payment_sources:api.CustomerPaymentSources;customer_subscriptions:api.CustomerSubscriptions;customers:api.Customers;delivery_lead_times:api.DeliveryLeadTimes;event_callbacks:api.EventCallbacks;events:api.Events;exports:api.Exports;external_gateways:api.ExternalGateways;external_payments:api.ExternalPayments;external_promotions:api.ExternalPromotions;external_tax_calculators:api.ExternalTaxCalculators;fixed_amount_promotions:api.FixedAmountPromotions;fixed_price_promotions:api.FixedPricePromotions;free_gift_promotions:api.FreeGiftPromotions;free_shipping_promotions:api.FreeShippingPromotions;geocoders:api.Geocoders;gift_card_recipients:api.GiftCardRecipients;gift_cards:api.GiftCards;google_geocoders:api.GoogleGeocoders;imports:api.Imports;in_stock_subscriptions:api.InStockSubscriptions;inventory_models:api.InventoryModels;inventory_return_locations:api.InventoryReturnLocations;inventory_stock_locations:api.InventoryStockLocations;klarna_gateways:api.KlarnaGateways;klarna_payments:api.KlarnaPayments;line_item_options:api.LineItemOptions;line_items:api.LineItems;links:api.Links;manual_gateways:api.ManualGateways;manual_tax_calculators:api.ManualTaxCalculators;markets:api.Markets;merchants:api.Merchants;order_amount_promotion_rules:api.OrderAmountPromotionRules;order_copies:api.OrderCopies;order_factories:api.OrderFactories;order_subscription_items:api.OrderSubscriptionItems;order_subscriptions:api.OrderSubscriptions;orders:api.Orders;organization:api.Organizations;packages:api.Packages;parcel_line_items:api.ParcelLineItems;parcels:api.Parcels;payment_gateways:api.PaymentGateways;payment_methods:api.PaymentMethods;payment_options:api.PaymentOptions;paypal_gateways:api.PaypalGateways;paypal_payments:api.PaypalPayments;percentage_discount_promotions:api.PercentageDiscountPromotions;price_frequency_tiers:api.PriceFrequencyTiers;price_list_schedulers:api.PriceListSchedulers;price_lists:api.PriceLists;price_tiers:api.PriceTiers;price_volume_tiers:api.PriceVolumeTiers;prices:api.Prices;promotion_rules:api.PromotionRules;promotions:api.Promotions;recurring_order_copies:api.RecurringOrderCopies;refunds:api.Refunds;reserved_stocks:api.ReservedStocks;resource_errors:api.ResourceErrors;return_line_items:api.ReturnLineItems;returns:api.Returns;satispay_gateways:api.SatispayGateways;satispay_payments:api.SatispayPayments;shipments:api.Shipments;shipping_categories:api.ShippingCategories;shipping_method_tiers:api.ShippingMethodTiers;shipping_methods:api.ShippingMethods;shipping_weight_tiers:api.ShippingWeightTiers;shipping_zones:api.ShippingZones;sku_list_items:api.SkuListItems;sku_list_promotion_rules:api.SkuListPromotionRules;sku_lists:api.SkuLists;sku_options:api.SkuOptions;skus:api.Skus;stock_items:api.StockItems;stock_line_items:api.StockLineItems;stock_locations:api.StockLocations;stock_reservations:api.StockReservations;stock_transfers:api.StockTransfers;stripe_gateways:api.StripeGateways;stripe_payments:api.StripePayments;subscription_models:api.SubscriptionModels;tags:api.Tags;tax_calculators:api.TaxCalculators;tax_categories:api.TaxCategories;tax_rules:api.TaxRules;taxjar_accounts:api.TaxjarAccounts;transactions:api.Transactions;versions:api.Versions;voids:api.Voids;webhooks:api.Webhooks;wire_transfers:api.WireTransfers;constructor(config:CommerceLayerInitConfig);get currentOrganization():string;private localConfig;config(config:CommerceLayerConfig):CommerceLayerClient;resources():readonly string[];singletons():readonly string[];isSingleton(resource:api.ResourceTypeLock):boolean;isApiError(error:any):error is ApiError;addRequestInterceptor(onFulfilled?:RequestInterceptor|null,onRejected?:ErrorInterceptor|null):number;addResponseInterceptor(onFulfilled?:ResponseInterceptor|null,onRejected?:ErrorInterceptor|null):number;removeInterceptor(type:InterceptorType,id:number):void;addRawResponseReader(options?:{headers:boolean;}):RawResponseReader;removeRawResponseReader(reader:number|RawResponseReader):void;}declare const CommerceLayer:(config:CommerceLayerInitConfig)=>CommerceLayerClient;export default CommerceLayer;export{CommerceLayer};export type{CommerceLayerClient,CommerceLayerConfig,CommerceLayerInitConfig};
@@ -1 +1 @@
1
- "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,s,i){i===void 0&&(i=s);var n=Object.getOwnPropertyDescriptor(t,s);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,i,n)}:function(e,t,s,i){i===void 0&&(i=s),e[i]=t[s]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)&&__createBinding(t,e,s);return __setModuleDefault(t,e),t},__classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,t,s,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,s):n?n.value=s:t.set(e,s),s},__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,t,s,i){if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?i:s==="a"?i.call(e):i?i.value:t.get(e)},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_CommerceLayerClient_adapter,_CommerceLayerClient_organization;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CommerceLayer=exports.OPEN_API_SCHEMA_VERSION=void 0;const api=__importStar(require("./api")),static_1=require("./static"),resource_1=__importDefault(require("./resource")),debug_1=__importDefault(require("./debug")),debug=(0,debug_1.default)("commercelayer"),OPEN_API_SCHEMA_VERSION="5.4.1";exports.OPEN_API_SCHEMA_VERSION=OPEN_API_SCHEMA_VERSION;class CommerceLayerClient{constructor(t){this.openApiSchemaVersion=OPEN_API_SCHEMA_VERSION,_CommerceLayerClient_adapter.set(this,void 0),_CommerceLayerClient_organization.set(this,void 0),debug("new commercelayer instance %O",t),__classPrivateFieldSet(this,_CommerceLayerClient_adapter,new resource_1.default(t),"f"),__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f"),this.addresses=new api.Addresses(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adjustments=new api.Adjustments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adyen_gateways=new api.AdyenGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adyen_payments=new api.AdyenPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.application=new api.Applications(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.attachments=new api.Attachments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.authorizations=new api.Authorizations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.avalara_accounts=new api.AvalaraAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.axerve_gateways=new api.AxerveGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.axerve_payments=new api.AxervePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.billing_info_validation_rules=new api.BillingInfoValidationRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.bing_geocoders=new api.BingGeocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.braintree_gateways=new api.BraintreeGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.braintree_payments=new api.BraintreePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.bundles=new api.Bundles(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.buy_x_pay_y_promotions=new api.BuyXPayYPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.captures=new api.Captures(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.carrier_accounts=new api.CarrierAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.checkout_com_gateways=new api.CheckoutComGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.checkout_com_payments=new api.CheckoutComPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.cleanups=new api.Cleanups(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupon_codes_promotion_rules=new api.CouponCodesPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupon_recipients=new api.CouponRecipients(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupons=new api.Coupons(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.custom_promotion_rules=new api.CustomPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_addresses=new api.CustomerAddresses(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_groups=new api.CustomerGroups(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_password_resets=new api.CustomerPasswordResets(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_payment_sources=new api.CustomerPaymentSources(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_subscriptions=new api.CustomerSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customers=new api.Customers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.delivery_lead_times=new api.DeliveryLeadTimes(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.event_callbacks=new api.EventCallbacks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.events=new api.Events(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.exports=new api.Exports(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_gateways=new api.ExternalGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_payments=new api.ExternalPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_promotions=new api.ExternalPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_tax_calculators=new api.ExternalTaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.fixed_amount_promotions=new api.FixedAmountPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.fixed_price_promotions=new api.FixedPricePromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.free_gift_promotions=new api.FreeGiftPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.free_shipping_promotions=new api.FreeShippingPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.geocoders=new api.Geocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.gift_card_recipients=new api.GiftCardRecipients(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.gift_cards=new api.GiftCards(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.google_geocoders=new api.GoogleGeocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.imports=new api.Imports(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.in_stock_subscriptions=new api.InStockSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_models=new api.InventoryModels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_return_locations=new api.InventoryReturnLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_stock_locations=new api.InventoryStockLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.klarna_gateways=new api.KlarnaGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.klarna_payments=new api.KlarnaPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.line_item_options=new api.LineItemOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.line_items=new api.LineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.links=new api.Links(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.manual_gateways=new api.ManualGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.manual_tax_calculators=new api.ManualTaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.markets=new api.Markets(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.merchants=new api.Merchants(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_amount_promotion_rules=new api.OrderAmountPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_copies=new api.OrderCopies(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_factories=new api.OrderFactories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_subscription_items=new api.OrderSubscriptionItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_subscriptions=new api.OrderSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.orders=new api.Orders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.organization=new api.Organizations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.packages=new api.Packages(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.parcel_line_items=new api.ParcelLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.parcels=new api.Parcels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_gateways=new api.PaymentGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_methods=new api.PaymentMethods(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_options=new api.PaymentOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.paypal_gateways=new api.PaypalGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.paypal_payments=new api.PaypalPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.percentage_discount_promotions=new api.PercentageDiscountPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_frequency_tiers=new api.PriceFrequencyTiers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_list_schedulers=new api.PriceListSchedulers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_lists=new api.PriceLists(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_tiers=new api.PriceTiers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_volume_tiers=new api.PriceVolumeTiers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.prices=new api.Prices(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.promotion_rules=new api.PromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.promotions=new api.Promotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.recurring_order_copies=new api.RecurringOrderCopies(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.refunds=new api.Refunds(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.reserved_stocks=new api.ReservedStocks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.resource_errors=new api.ResourceErrors(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.return_line_items=new api.ReturnLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.returns=new api.Returns(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.satispay_gateways=new api.SatispayGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.satispay_payments=new api.SatispayPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipments=new api.Shipments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_categories=new api.ShippingCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_method_tiers=new api.ShippingMethodTiers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_methods=new api.ShippingMethods(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_weight_tiers=new api.ShippingWeightTiers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_zones=new api.ShippingZones(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_list_items=new api.SkuListItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_list_promotion_rules=new api.SkuListPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_lists=new api.SkuLists(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_options=new api.SkuOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.skus=new api.Skus(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_items=new api.StockItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_line_items=new api.StockLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_locations=new api.StockLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_reservations=new api.StockReservations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_transfers=new api.StockTransfers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stripe_gateways=new api.StripeGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stripe_payments=new api.StripePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.subscription_models=new api.SubscriptionModels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tags=new api.Tags(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_calculators=new api.TaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_categories=new api.TaxCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_rules=new api.TaxRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.taxjar_accounts=new api.TaxjarAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.transactions=new api.Transactions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.versions=new api.Versions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.voids=new api.Voids(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.webhooks=new api.Webhooks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.wire_transfers=new api.WireTransfers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f"))}get currentOrganization(){return __classPrivateFieldGet(this,_CommerceLayerClient_organization,"f")}localConfig(t){t.organization&&__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f")}config(t){return debug("config %o",t),this.localConfig(t),t.organization||(t.organization=this.currentOrganization),__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").config(t),this}resources(){return static_1.CommerceLayerStatic.resources()}singletons(){return static_1.CommerceLayerStatic.singletons()}isSingleton(t){return static_1.CommerceLayerStatic.isSingleton(t)}isApiError(t){return static_1.CommerceLayerStatic.isApiError(t)}addRequestInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.request.use(t,s)}addResponseInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.response.use(t,s)}removeInterceptor(t,s){__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors[t].eject(s)}addRawResponseReader(t){const s={id:void 0,rawResponse:void 0,headers:void 0};function i(r){return s.rawResponse=r?.data,t?.headers&&(s.headers=r.headers),r}const n=this.addResponseInterceptor(i);return s.id=n,s}removeRawResponseReader(t){const s=typeof t=="number"?t:t?.id;s&&s>=0&&this.removeInterceptor("response",s)}}_CommerceLayerClient_adapter=new WeakMap,_CommerceLayerClient_organization=new WeakMap;const CommerceLayer=e=>new CommerceLayerClient(e);exports.CommerceLayer=CommerceLayer,exports.default=CommerceLayer;
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,s,i){i===void 0&&(i=s);var n=Object.getOwnPropertyDescriptor(t,s);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,i,n)}:function(e,t,s,i){i===void 0&&(i=s),e[i]=t[s]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)&&__createBinding(t,e,s);return __setModuleDefault(t,e),t},__classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,t,s,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,s):n?n.value=s:t.set(e,s),s},__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,t,s,i){if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?i:s==="a"?i.call(e):i?i.value:t.get(e)},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_CommerceLayerClient_adapter,_CommerceLayerClient_organization;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CommerceLayer=exports.OPEN_API_SCHEMA_VERSION=void 0;const api=__importStar(require("./api")),static_1=require("./static"),resource_1=__importDefault(require("./resource")),debug_1=__importDefault(require("./debug")),debug=(0,debug_1.default)("commercelayer"),OPEN_API_SCHEMA_VERSION="5.4.3";exports.OPEN_API_SCHEMA_VERSION=OPEN_API_SCHEMA_VERSION;class CommerceLayerClient{constructor(t){this.openApiSchemaVersion=OPEN_API_SCHEMA_VERSION,_CommerceLayerClient_adapter.set(this,void 0),_CommerceLayerClient_organization.set(this,void 0),debug("new commercelayer instance %O",t),__classPrivateFieldSet(this,_CommerceLayerClient_adapter,new resource_1.default(t),"f"),__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f"),this.addresses=new api.Addresses(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adjustments=new api.Adjustments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adyen_gateways=new api.AdyenGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adyen_payments=new api.AdyenPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.application=new api.Applications(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.attachments=new api.Attachments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.authorizations=new api.Authorizations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.avalara_accounts=new api.AvalaraAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.axerve_gateways=new api.AxerveGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.axerve_payments=new api.AxervePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.billing_info_validation_rules=new api.BillingInfoValidationRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.bing_geocoders=new api.BingGeocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.braintree_gateways=new api.BraintreeGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.braintree_payments=new api.BraintreePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.bundles=new api.Bundles(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.buy_x_pay_y_promotions=new api.BuyXPayYPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.captures=new api.Captures(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.carrier_accounts=new api.CarrierAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.checkout_com_gateways=new api.CheckoutComGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.checkout_com_payments=new api.CheckoutComPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.cleanups=new api.Cleanups(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupon_codes_promotion_rules=new api.CouponCodesPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupon_recipients=new api.CouponRecipients(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupons=new api.Coupons(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.custom_promotion_rules=new api.CustomPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_addresses=new api.CustomerAddresses(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_groups=new api.CustomerGroups(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_password_resets=new api.CustomerPasswordResets(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_payment_sources=new api.CustomerPaymentSources(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_subscriptions=new api.CustomerSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customers=new api.Customers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.delivery_lead_times=new api.DeliveryLeadTimes(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.event_callbacks=new api.EventCallbacks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.events=new api.Events(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.exports=new api.Exports(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_gateways=new api.ExternalGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_payments=new api.ExternalPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_promotions=new api.ExternalPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_tax_calculators=new api.ExternalTaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.fixed_amount_promotions=new api.FixedAmountPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.fixed_price_promotions=new api.FixedPricePromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.free_gift_promotions=new api.FreeGiftPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.free_shipping_promotions=new api.FreeShippingPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.geocoders=new api.Geocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.gift_card_recipients=new api.GiftCardRecipients(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.gift_cards=new api.GiftCards(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.google_geocoders=new api.GoogleGeocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.imports=new api.Imports(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.in_stock_subscriptions=new api.InStockSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_models=new api.InventoryModels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_return_locations=new api.InventoryReturnLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_stock_locations=new api.InventoryStockLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.klarna_gateways=new api.KlarnaGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.klarna_payments=new api.KlarnaPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.line_item_options=new api.LineItemOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.line_items=new api.LineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.links=new api.Links(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.manual_gateways=new api.ManualGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.manual_tax_calculators=new api.ManualTaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.markets=new api.Markets(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.merchants=new api.Merchants(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_amount_promotion_rules=new api.OrderAmountPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_copies=new api.OrderCopies(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_factories=new api.OrderFactories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_subscription_items=new api.OrderSubscriptionItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_subscriptions=new api.OrderSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.orders=new api.Orders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.organization=new api.Organizations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.packages=new api.Packages(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.parcel_line_items=new api.ParcelLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.parcels=new api.Parcels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_gateways=new api.PaymentGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_methods=new api.PaymentMethods(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_options=new api.PaymentOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.paypal_gateways=new api.PaypalGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.paypal_payments=new api.PaypalPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.percentage_discount_promotions=new api.PercentageDiscountPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_frequency_tiers=new api.PriceFrequencyTiers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_list_schedulers=new api.PriceListSchedulers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_lists=new api.PriceLists(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_tiers=new api.PriceTiers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_volume_tiers=new api.PriceVolumeTiers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.prices=new api.Prices(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.promotion_rules=new api.PromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.promotions=new api.Promotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.recurring_order_copies=new api.RecurringOrderCopies(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.refunds=new api.Refunds(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.reserved_stocks=new api.ReservedStocks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.resource_errors=new api.ResourceErrors(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.return_line_items=new api.ReturnLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.returns=new api.Returns(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.satispay_gateways=new api.SatispayGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.satispay_payments=new api.SatispayPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipments=new api.Shipments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_categories=new api.ShippingCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_method_tiers=new api.ShippingMethodTiers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_methods=new api.ShippingMethods(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_weight_tiers=new api.ShippingWeightTiers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_zones=new api.ShippingZones(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_list_items=new api.SkuListItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_list_promotion_rules=new api.SkuListPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_lists=new api.SkuLists(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_options=new api.SkuOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.skus=new api.Skus(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_items=new api.StockItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_line_items=new api.StockLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_locations=new api.StockLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_reservations=new api.StockReservations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_transfers=new api.StockTransfers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stripe_gateways=new api.StripeGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stripe_payments=new api.StripePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.subscription_models=new api.SubscriptionModels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tags=new api.Tags(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_calculators=new api.TaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_categories=new api.TaxCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_rules=new api.TaxRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.taxjar_accounts=new api.TaxjarAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.transactions=new api.Transactions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.versions=new api.Versions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.voids=new api.Voids(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.webhooks=new api.Webhooks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.wire_transfers=new api.WireTransfers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f"))}get currentOrganization(){return __classPrivateFieldGet(this,_CommerceLayerClient_organization,"f")}localConfig(t){t.organization&&__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f")}config(t){return debug("config %o",t),this.localConfig(t),t.organization||(t.organization=this.currentOrganization),__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").config(t),this}resources(){return static_1.CommerceLayerStatic.resources()}singletons(){return static_1.CommerceLayerStatic.singletons()}isSingleton(t){return static_1.CommerceLayerStatic.isSingleton(t)}isApiError(t){return static_1.CommerceLayerStatic.isApiError(t)}addRequestInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.request.use(t,s)}addResponseInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.response.use(t,s)}removeInterceptor(t,s){__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors[t].eject(s)}addRawResponseReader(t){const s={id:void 0,rawResponse:void 0,headers:void 0};function i(r){return s.rawResponse=r?.data,t?.headers&&(s.headers=r.headers),r}const n=this.addResponseInterceptor(i);return s.id=n,s}removeRawResponseReader(t){const s=typeof t=="number"?t:t?.id;s&&s>=0&&this.removeInterceptor("response",s)}}_CommerceLayerClient_adapter=new WeakMap,_CommerceLayerClient_organization=new WeakMap;const CommerceLayer=e=>new CommerceLayerClient(e);exports.CommerceLayer=CommerceLayer,exports.default=CommerceLayer;
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{SubscriptionModel}from'./subscription_models';import type{Order,OrderType}from'./orders';import type{Customer}from'./customers';import type{CustomerPaymentSource,CustomerPaymentSourceType}from'./customer_payment_sources';import type{OrderSubscriptionItem}from'./order_subscription_items';import type{OrderFactory}from'./order_factories';import type{RecurringOrderCopy}from'./recurring_order_copies';import type{Event}from'./events';import type{Version}from'./versions';type OrderSubscriptionType='order_subscriptions';type OrderSubscriptionRel=ResourceRel&{type:OrderSubscriptionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderRel=ResourceRel&{type:OrderType;};type CustomerPaymentSourceRel=ResourceRel&{type:CustomerPaymentSourceType;};interface OrderSubscription extends Resource{readonly type:OrderSubscriptionType;number?:string|null;status:'draft'|'inactive'|'active'|'cancelled';frequency:string;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;customer_email?:string|null;starts_at?:string|null;expires_at?:string|null;last_run_at?:string|null;next_run_at?:string|null;occurrencies?:number|null;errors_count?:number|null;succeeded_on_last_run?:boolean|null;market?:Market|null;subscription_model?:SubscriptionModel|null;source_order?:Order|null;customer?:Customer|null;customer_payment_source?:CustomerPaymentSource|null;order_subscription_items?:OrderSubscriptionItem[]|null;order_factories?:OrderFactory[]|null;recurring_order_copies?:RecurringOrderCopy[]|null;orders?:Order[]|null;events?:Event[]|null;versions?:Version[]|null;}interface OrderSubscriptionCreate extends ResourceCreate{frequency:string;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;starts_at?:string|null;expires_at?:string|null;market?:MarketRel|null;source_order:OrderRel;}interface OrderSubscriptionUpdate extends ResourceUpdate{frequency?:string|null;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;expires_at?:string|null;next_run_at?:string|null;_activate?:boolean|null;_deactivate?:boolean|null;_cancel?:boolean|null;_convert?:boolean|null;customer_payment_source?:CustomerPaymentSourceRel|null;}declare class OrderSubscriptions extends ApiResource<OrderSubscription>{static readonly TYPE:OrderSubscriptionType;create(resource:OrderSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;update(resource:OrderSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;subscription_model(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SubscriptionModel>;source_order(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;customer(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;customer_payment_source(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPaymentSource>;order_subscription_items(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderSubscriptionItem>>;order_factories(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderFactory>>;recurring_order_copies(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<RecurringOrderCopy>>;orders(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Order>>;events(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;versions(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_activate(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_deactivate(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_cancel(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_convert(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;isOrderSubscription(resource:any):resource is OrderSubscription;relationship(id:string|ResourceId|null):OrderSubscriptionRel;type():OrderSubscriptionType;}export default OrderSubscriptions;export type{OrderSubscription,OrderSubscriptionCreate,OrderSubscriptionUpdate,OrderSubscriptionType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{SubscriptionModel}from'./subscription_models';import type{Order,OrderType}from'./orders';import type{Customer}from'./customers';import type{CustomerPaymentSource,CustomerPaymentSourceType}from'./customer_payment_sources';import type{OrderSubscriptionItem}from'./order_subscription_items';import type{OrderFactory}from'./order_factories';import type{RecurringOrderCopy}from'./recurring_order_copies';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type OrderSubscriptionType='order_subscriptions';type OrderSubscriptionRel=ResourceRel&{type:OrderSubscriptionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderRel=ResourceRel&{type:OrderType;};type TagRel=ResourceRel&{type:TagType;};type CustomerPaymentSourceRel=ResourceRel&{type:CustomerPaymentSourceType;};interface OrderSubscription extends Resource{readonly type:OrderSubscriptionType;number?:string|null;status:'draft'|'inactive'|'active'|'cancelled';frequency:string;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;customer_email?:string|null;starts_at?:string|null;expires_at?:string|null;last_run_at?:string|null;next_run_at?:string|null;occurrencies?:number|null;errors_count?:number|null;succeeded_on_last_run?:boolean|null;market?:Market|null;subscription_model?:SubscriptionModel|null;source_order?:Order|null;customer?:Customer|null;customer_payment_source?:CustomerPaymentSource|null;order_subscription_items?:OrderSubscriptionItem[]|null;order_factories?:OrderFactory[]|null;recurring_order_copies?:RecurringOrderCopy[]|null;orders?:Order[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;}interface OrderSubscriptionCreate extends ResourceCreate{frequency:string;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;starts_at?:string|null;expires_at?:string|null;market?:MarketRel|null;source_order:OrderRel;tags?:TagRel[]|null;}interface OrderSubscriptionUpdate extends ResourceUpdate{frequency?:string|null;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;expires_at?:string|null;next_run_at?:string|null;_activate?:boolean|null;_deactivate?:boolean|null;_cancel?:boolean|null;_convert?:boolean|null;customer_payment_source?:CustomerPaymentSourceRel|null;tags?:TagRel[]|null;}declare class OrderSubscriptions extends ApiResource<OrderSubscription>{static readonly TYPE:OrderSubscriptionType;create(resource:OrderSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;update(resource:OrderSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;subscription_model(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SubscriptionModel>;source_order(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;customer(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;customer_payment_source(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPaymentSource>;order_subscription_items(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderSubscriptionItem>>;order_factories(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderFactory>>;recurring_order_copies(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<RecurringOrderCopy>>;orders(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Order>>;events(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_activate(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_deactivate(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_cancel(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_convert(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;isOrderSubscription(resource:any):resource is OrderSubscription;relationship(id:string|ResourceId|null):OrderSubscriptionRel;type():OrderSubscriptionType;}export default OrderSubscriptions;export type{OrderSubscription,OrderSubscriptionCreate,OrderSubscriptionUpdate,OrderSubscriptionType};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderSubscriptions extends resource_1.ApiResource{async create(e,r,s){return this.resources.create({...e,type:OrderSubscriptions.TYPE},r,s)}async update(e,r,s){return this.resources.update({...e,type:OrderSubscriptions.TYPE},r,s)}async delete(e,r){await this.resources.delete(typeof e=="string"?{id:e,type:OrderSubscriptions.TYPE}:e,r)}async market(e,r,s){const t=e.id||e;return this.resources.fetch({type:"markets"},`order_subscriptions/${t}/market`,r,s)}async subscription_model(e,r,s){const t=e.id||e;return this.resources.fetch({type:"subscription_models"},`order_subscriptions/${t}/subscription_model`,r,s)}async source_order(e,r,s){const t=e.id||e;return this.resources.fetch({type:"orders"},`order_subscriptions/${t}/source_order`,r,s)}async customer(e,r,s){const t=e.id||e;return this.resources.fetch({type:"customers"},`order_subscriptions/${t}/customer`,r,s)}async customer_payment_source(e,r,s){const t=e.id||e;return this.resources.fetch({type:"customer_payment_sources"},`order_subscriptions/${t}/customer_payment_source`,r,s)}async order_subscription_items(e,r,s){const t=e.id||e;return this.resources.fetch({type:"order_subscription_items"},`order_subscriptions/${t}/order_subscription_items`,r,s)}async order_factories(e,r,s){const t=e.id||e;return this.resources.fetch({type:"order_factories"},`order_subscriptions/${t}/order_factories`,r,s)}async recurring_order_copies(e,r,s){const t=e.id||e;return this.resources.fetch({type:"recurring_order_copies"},`order_subscriptions/${t}/recurring_order_copies`,r,s)}async orders(e,r,s){const t=e.id||e;return this.resources.fetch({type:"orders"},`order_subscriptions/${t}/orders`,r,s)}async events(e,r,s){const t=e.id||e;return this.resources.fetch({type:"events"},`order_subscriptions/${t}/events`,r,s)}async versions(e,r,s){const t=e.id||e;return this.resources.fetch({type:"versions"},`order_subscriptions/${t}/versions`,r,s)}async _activate(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:OrderSubscriptions.TYPE,_activate:!0},r,s)}async _deactivate(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:OrderSubscriptions.TYPE,_deactivate:!0},r,s)}async _cancel(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:OrderSubscriptions.TYPE,_cancel:!0},r,s)}async _convert(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:OrderSubscriptions.TYPE,_convert:!0},r,s)}isOrderSubscription(e){return e.type&&e.type===OrderSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderSubscriptions.TYPE}:{id:e.id,type:OrderSubscriptions.TYPE}}type(){return OrderSubscriptions.TYPE}}OrderSubscriptions.TYPE="order_subscriptions",exports.default=OrderSubscriptions;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderSubscriptions extends resource_1.ApiResource{async create(e,r,s){return this.resources.create({...e,type:OrderSubscriptions.TYPE},r,s)}async update(e,r,s){return this.resources.update({...e,type:OrderSubscriptions.TYPE},r,s)}async delete(e,r){await this.resources.delete(typeof e=="string"?{id:e,type:OrderSubscriptions.TYPE}:e,r)}async market(e,r,s){const t=e.id||e;return this.resources.fetch({type:"markets"},`order_subscriptions/${t}/market`,r,s)}async subscription_model(e,r,s){const t=e.id||e;return this.resources.fetch({type:"subscription_models"},`order_subscriptions/${t}/subscription_model`,r,s)}async source_order(e,r,s){const t=e.id||e;return this.resources.fetch({type:"orders"},`order_subscriptions/${t}/source_order`,r,s)}async customer(e,r,s){const t=e.id||e;return this.resources.fetch({type:"customers"},`order_subscriptions/${t}/customer`,r,s)}async customer_payment_source(e,r,s){const t=e.id||e;return this.resources.fetch({type:"customer_payment_sources"},`order_subscriptions/${t}/customer_payment_source`,r,s)}async order_subscription_items(e,r,s){const t=e.id||e;return this.resources.fetch({type:"order_subscription_items"},`order_subscriptions/${t}/order_subscription_items`,r,s)}async order_factories(e,r,s){const t=e.id||e;return this.resources.fetch({type:"order_factories"},`order_subscriptions/${t}/order_factories`,r,s)}async recurring_order_copies(e,r,s){const t=e.id||e;return this.resources.fetch({type:"recurring_order_copies"},`order_subscriptions/${t}/recurring_order_copies`,r,s)}async orders(e,r,s){const t=e.id||e;return this.resources.fetch({type:"orders"},`order_subscriptions/${t}/orders`,r,s)}async events(e,r,s){const t=e.id||e;return this.resources.fetch({type:"events"},`order_subscriptions/${t}/events`,r,s)}async tags(e,r,s){const t=e.id||e;return this.resources.fetch({type:"tags"},`order_subscriptions/${t}/tags`,r,s)}async versions(e,r,s){const t=e.id||e;return this.resources.fetch({type:"versions"},`order_subscriptions/${t}/versions`,r,s)}async _activate(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:OrderSubscriptions.TYPE,_activate:!0},r,s)}async _deactivate(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:OrderSubscriptions.TYPE,_deactivate:!0},r,s)}async _cancel(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:OrderSubscriptions.TYPE,_cancel:!0},r,s)}async _convert(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:OrderSubscriptions.TYPE,_convert:!0},r,s)}isOrderSubscription(e){return e.type&&e.type===OrderSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderSubscriptions.TYPE}:{id:e.id,type:OrderSubscriptions.TYPE}}type(){return OrderSubscriptions.TYPE}}OrderSubscriptions.TYPE="order_subscriptions",exports.default=OrderSubscriptions;
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Order,OrderType}from'./orders';import type{ShippingCategory,ShippingCategoryType}from'./shipping_categories';import type{InventoryStockLocation,InventoryStockLocationType}from'./inventory_stock_locations';import type{StockLocation}from'./stock_locations';import type{Address,AddressType}from'./addresses';import type{ShippingMethod,ShippingMethodType}from'./shipping_methods';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{LineItem}from'./line_items';import type{CarrierAccount}from'./carrier_accounts';import type{Parcel}from'./parcels';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type ShipmentType='shipments';type ShipmentRel=ResourceRel&{type:ShipmentType;};type OrderRel=ResourceRel&{type:OrderType;};type ShippingCategoryRel=ResourceRel&{type:ShippingCategoryType;};type InventoryStockLocationRel=ResourceRel&{type:InventoryStockLocationType;};type AddressRel=ResourceRel&{type:AddressType;};type ShippingMethodRel=ResourceRel&{type:ShippingMethodType;};type TagRel=ResourceRel&{type:TagType;};interface Shipment extends Resource{readonly type:ShipmentType;number:string;status:'draft'|'upcoming'|'cancelled'|'on_hold'|'picking'|'packing'|'ready_to_ship'|'shipped'|'delivered';currency_code?:string|null;cost_amount_cents?:number|null;cost_amount_float?:number|null;formatted_cost_amount?:string|null;skus_count?:number|null;selected_rate_id?:string|null;rates?:Array<Record<string,any>>|null;purchase_error_code?:string|null;purchase_error_message?:string|null;get_rates_errors?:Array<Record<string,any>>|null;get_rates_started_at?:string|null;get_rates_completed_at?:string|null;purchase_started_at?:string|null;purchase_completed_at?:string|null;purchase_failed_at?:string|null;on_hold_at?:string|null;picking_at?:string|null;packing_at?:string|null;ready_to_ship_at?:string|null;shipped_at?:string|null;order?:Order|null;shipping_category?:ShippingCategory|null;inventory_stock_location?:InventoryStockLocation|null;stock_location?:StockLocation|null;origin_address?:Address|null;shipping_address?:Address|null;shipping_method?:ShippingMethod|null;delivery_lead_time?:DeliveryLeadTime|null;stock_line_items?:StockLineItem[]|null;stock_transfers?:StockTransfer[]|null;line_items?:LineItem[]|null;available_shipping_methods?:ShippingMethod[]|null;carrier_accounts?:CarrierAccount[]|null;parcels?:Parcel[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;}interface ShipmentCreate extends ResourceCreate{order:OrderRel;shipping_category?:ShippingCategoryRel|null;inventory_stock_location:InventoryStockLocationRel;shipping_address?:AddressRel|null;shipping_method?:ShippingMethodRel|null;tags?:TagRel[]|null;}interface ShipmentUpdate extends ResourceUpdate{number?:string|null;_upcoming?:boolean|null;_on_hold?:boolean|null;_picking?:boolean|null;_packing?:boolean|null;_ready_to_ship?:boolean|null;_ship?:boolean|null;_deliver?:boolean|null;_reserve_stock?:boolean|null;_release_stock?:boolean|null;_decrement_stock?:boolean|null;_get_rates?:boolean|null;selected_rate_id?:string|null;_purchase?:boolean|null;shipping_category?:ShippingCategoryRel|null;inventory_stock_location?:InventoryStockLocationRel|null;shipping_address?:AddressRel|null;shipping_method?:ShippingMethodRel|null;tags?:TagRel[]|null;}declare class Shipments extends ApiResource<Shipment>{static readonly TYPE:ShipmentType;create(resource:ShipmentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;update(resource:ShipmentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;order(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;shipping_category(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;inventory_stock_location(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryStockLocation>;stock_location(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;origin_address(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;shipping_address(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;shipping_method(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;delivery_lead_time(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;stock_line_items(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;line_items(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItem>>;available_shipping_methods(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingMethod>>;carrier_accounts(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CarrierAccount>>;parcels(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Parcel>>;attachments(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_upcoming(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_on_hold(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_picking(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_packing(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_ready_to_ship(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_ship(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_deliver(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_reserve_stock(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_release_stock(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_decrement_stock(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_get_rates(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_purchase(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;isShipment(resource:any):resource is Shipment;relationship(id:string|ResourceId|null):ShipmentRel;type():ShipmentType;}export default Shipments;export type{Shipment,ShipmentCreate,ShipmentUpdate,ShipmentType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Order,OrderType}from'./orders';import type{ShippingCategory,ShippingCategoryType}from'./shipping_categories';import type{InventoryStockLocation,InventoryStockLocationType}from'./inventory_stock_locations';import type{StockLocation}from'./stock_locations';import type{Address,AddressType}from'./addresses';import type{ShippingMethod,ShippingMethodType}from'./shipping_methods';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{LineItem}from'./line_items';import type{CarrierAccount}from'./carrier_accounts';import type{Parcel}from'./parcels';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type ShipmentType='shipments';type ShipmentRel=ResourceRel&{type:ShipmentType;};type OrderRel=ResourceRel&{type:OrderType;};type ShippingCategoryRel=ResourceRel&{type:ShippingCategoryType;};type InventoryStockLocationRel=ResourceRel&{type:InventoryStockLocationType;};type AddressRel=ResourceRel&{type:AddressType;};type ShippingMethodRel=ResourceRel&{type:ShippingMethodType;};type TagRel=ResourceRel&{type:TagType;};interface Shipment extends Resource{readonly type:ShipmentType;number:string;status:'draft'|'upcoming'|'cancelled'|'on_hold'|'picking'|'packing'|'ready_to_ship'|'shipped'|'delivered';currency_code?:string|null;cost_amount_cents?:number|null;cost_amount_float?:number|null;formatted_cost_amount?:string|null;skus_count?:number|null;selected_rate_id?:string|null;rates?:Array<Record<string,any>>|null;purchase_error_code?:string|null;purchase_error_message?:string|null;get_rates_errors?:Array<Record<string,any>>|null;get_rates_started_at?:string|null;get_rates_completed_at?:string|null;purchase_started_at?:string|null;purchase_completed_at?:string|null;purchase_failed_at?:string|null;on_hold_at?:string|null;picking_at?:string|null;packing_at?:string|null;ready_to_ship_at?:string|null;shipped_at?:string|null;order?:Order|null;shipping_category?:ShippingCategory|null;inventory_stock_location?:InventoryStockLocation|null;stock_location?:StockLocation|null;origin_address?:Address|null;shipping_address?:Address|null;shipping_method?:ShippingMethod|null;delivery_lead_time?:DeliveryLeadTime|null;stock_line_items?:StockLineItem[]|null;stock_transfers?:StockTransfer[]|null;line_items?:LineItem[]|null;available_shipping_methods?:ShippingMethod[]|null;carrier_accounts?:CarrierAccount[]|null;parcels?:Parcel[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;}interface ShipmentCreate extends ResourceCreate{order:OrderRel;shipping_category?:ShippingCategoryRel|null;inventory_stock_location:InventoryStockLocationRel;shipping_address?:AddressRel|null;shipping_method?:ShippingMethodRel|null;tags?:TagRel[]|null;}interface ShipmentUpdate extends ResourceUpdate{number?:string|null;_upcoming?:boolean|null;_cancel?:boolean|null;_on_hold?:boolean|null;_picking?:boolean|null;_packing?:boolean|null;_ready_to_ship?:boolean|null;_ship?:boolean|null;_deliver?:boolean|null;_reserve_stock?:boolean|null;_release_stock?:boolean|null;_decrement_stock?:boolean|null;_get_rates?:boolean|null;selected_rate_id?:string|null;_purchase?:boolean|null;shipping_category?:ShippingCategoryRel|null;inventory_stock_location?:InventoryStockLocationRel|null;shipping_address?:AddressRel|null;shipping_method?:ShippingMethodRel|null;tags?:TagRel[]|null;}declare class Shipments extends ApiResource<Shipment>{static readonly TYPE:ShipmentType;create(resource:ShipmentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;update(resource:ShipmentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;order(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;shipping_category(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;inventory_stock_location(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryStockLocation>;stock_location(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;origin_address(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;shipping_address(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;shipping_method(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;delivery_lead_time(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;stock_line_items(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;line_items(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItem>>;available_shipping_methods(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingMethod>>;carrier_accounts(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CarrierAccount>>;parcels(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Parcel>>;attachments(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_upcoming(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_cancel(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_on_hold(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_picking(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_packing(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_ready_to_ship(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_ship(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_deliver(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_reserve_stock(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_release_stock(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_decrement_stock(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_get_rates(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_purchase(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;isShipment(resource:any):resource is Shipment;relationship(id:string|ResourceId|null):ShipmentRel;type():ShipmentType;}export default Shipments;export type{Shipment,ShipmentCreate,ShipmentUpdate,ShipmentType};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Shipments extends resource_1.ApiResource{async create(e,s,t){return this.resources.create({...e,type:Shipments.TYPE},s,t)}async update(e,s,t){return this.resources.update({...e,type:Shipments.TYPE},s,t)}async delete(e,s){await this.resources.delete(typeof e=="string"?{id:e,type:Shipments.TYPE}:e,s)}async order(e,s,t){const r=e.id||e;return this.resources.fetch({type:"orders"},`shipments/${r}/order`,s,t)}async shipping_category(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_categories"},`shipments/${r}/shipping_category`,s,t)}async inventory_stock_location(e,s,t){const r=e.id||e;return this.resources.fetch({type:"inventory_stock_locations"},`shipments/${r}/inventory_stock_location`,s,t)}async stock_location(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_locations"},`shipments/${r}/stock_location`,s,t)}async origin_address(e,s,t){const r=e.id||e;return this.resources.fetch({type:"addresses"},`shipments/${r}/origin_address`,s,t)}async shipping_address(e,s,t){const r=e.id||e;return this.resources.fetch({type:"addresses"},`shipments/${r}/shipping_address`,s,t)}async shipping_method(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/shipping_method`,s,t)}async delivery_lead_time(e,s,t){const r=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`shipments/${r}/delivery_lead_time`,s,t)}async stock_line_items(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_line_items"},`shipments/${r}/stock_line_items`,s,t)}async stock_transfers(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_transfers"},`shipments/${r}/stock_transfers`,s,t)}async line_items(e,s,t){const r=e.id||e;return this.resources.fetch({type:"line_items"},`shipments/${r}/line_items`,s,t)}async available_shipping_methods(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/available_shipping_methods`,s,t)}async carrier_accounts(e,s,t){const r=e.id||e;return this.resources.fetch({type:"carrier_accounts"},`shipments/${r}/carrier_accounts`,s,t)}async parcels(e,s,t){const r=e.id||e;return this.resources.fetch({type:"parcels"},`shipments/${r}/parcels`,s,t)}async attachments(e,s,t){const r=e.id||e;return this.resources.fetch({type:"attachments"},`shipments/${r}/attachments`,s,t)}async events(e,s,t){const r=e.id||e;return this.resources.fetch({type:"events"},`shipments/${r}/events`,s,t)}async tags(e,s,t){const r=e.id||e;return this.resources.fetch({type:"tags"},`shipments/${r}/tags`,s,t)}async versions(e,s,t){const r=e.id||e;return this.resources.fetch({type:"versions"},`shipments/${r}/versions`,s,t)}async _upcoming(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_upcoming:!0},s,t)}async _on_hold(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_on_hold:!0},s,t)}async _picking(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_picking:!0},s,t)}async _packing(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_packing:!0},s,t)}async _ready_to_ship(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_ready_to_ship:!0},s,t)}async _ship(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_ship:!0},s,t)}async _deliver(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_deliver:!0},s,t)}async _reserve_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_reserve_stock:!0},s,t)}async _release_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_release_stock:!0},s,t)}async _decrement_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_decrement_stock:!0},s,t)}async _get_rates(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_get_rates:!0},s,t)}async _purchase(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_purchase:!0},s,t)}isShipment(e){return e.type&&e.type===Shipments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Shipments.TYPE}:{id:e.id,type:Shipments.TYPE}}type(){return Shipments.TYPE}}Shipments.TYPE="shipments",exports.default=Shipments;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Shipments extends resource_1.ApiResource{async create(e,s,t){return this.resources.create({...e,type:Shipments.TYPE},s,t)}async update(e,s,t){return this.resources.update({...e,type:Shipments.TYPE},s,t)}async delete(e,s){await this.resources.delete(typeof e=="string"?{id:e,type:Shipments.TYPE}:e,s)}async order(e,s,t){const r=e.id||e;return this.resources.fetch({type:"orders"},`shipments/${r}/order`,s,t)}async shipping_category(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_categories"},`shipments/${r}/shipping_category`,s,t)}async inventory_stock_location(e,s,t){const r=e.id||e;return this.resources.fetch({type:"inventory_stock_locations"},`shipments/${r}/inventory_stock_location`,s,t)}async stock_location(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_locations"},`shipments/${r}/stock_location`,s,t)}async origin_address(e,s,t){const r=e.id||e;return this.resources.fetch({type:"addresses"},`shipments/${r}/origin_address`,s,t)}async shipping_address(e,s,t){const r=e.id||e;return this.resources.fetch({type:"addresses"},`shipments/${r}/shipping_address`,s,t)}async shipping_method(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/shipping_method`,s,t)}async delivery_lead_time(e,s,t){const r=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`shipments/${r}/delivery_lead_time`,s,t)}async stock_line_items(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_line_items"},`shipments/${r}/stock_line_items`,s,t)}async stock_transfers(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_transfers"},`shipments/${r}/stock_transfers`,s,t)}async line_items(e,s,t){const r=e.id||e;return this.resources.fetch({type:"line_items"},`shipments/${r}/line_items`,s,t)}async available_shipping_methods(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/available_shipping_methods`,s,t)}async carrier_accounts(e,s,t){const r=e.id||e;return this.resources.fetch({type:"carrier_accounts"},`shipments/${r}/carrier_accounts`,s,t)}async parcels(e,s,t){const r=e.id||e;return this.resources.fetch({type:"parcels"},`shipments/${r}/parcels`,s,t)}async attachments(e,s,t){const r=e.id||e;return this.resources.fetch({type:"attachments"},`shipments/${r}/attachments`,s,t)}async events(e,s,t){const r=e.id||e;return this.resources.fetch({type:"events"},`shipments/${r}/events`,s,t)}async tags(e,s,t){const r=e.id||e;return this.resources.fetch({type:"tags"},`shipments/${r}/tags`,s,t)}async versions(e,s,t){const r=e.id||e;return this.resources.fetch({type:"versions"},`shipments/${r}/versions`,s,t)}async _upcoming(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_upcoming:!0},s,t)}async _cancel(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_cancel:!0},s,t)}async _on_hold(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_on_hold:!0},s,t)}async _picking(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_picking:!0},s,t)}async _packing(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_packing:!0},s,t)}async _ready_to_ship(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_ready_to_ship:!0},s,t)}async _ship(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_ship:!0},s,t)}async _deliver(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_deliver:!0},s,t)}async _reserve_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_reserve_stock:!0},s,t)}async _release_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_release_stock:!0},s,t)}async _decrement_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_decrement_stock:!0},s,t)}async _get_rates(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_get_rates:!0},s,t)}async _purchase(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:Shipments.TYPE,_purchase:!0},s,t)}isShipment(e){return e.type&&e.type===Shipments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Shipments.TYPE}:{id:e.id,type:Shipments.TYPE}}type(){return Shipments.TYPE}}Shipments.TYPE="shipments",exports.default=Shipments;
package/lib/esm/api.d.ts CHANGED
@@ -1 +1 @@
1
- import type{Resource,ResourceRel}from'./resource';import type{TagType}from'./resources/tags';import type{VersionType}from'./resources/versions';export{default as Addresses}from'./resources/addresses';export{default as Adjustments}from'./resources/adjustments';export{default as AdyenGateways}from'./resources/adyen_gateways';export{default as AdyenPayments}from'./resources/adyen_payments';export{default as Applications}from'./resources/application';export{default as Attachments}from'./resources/attachments';export{default as Authorizations}from'./resources/authorizations';export{default as AvalaraAccounts}from'./resources/avalara_accounts';export{default as AxerveGateways}from'./resources/axerve_gateways';export{default as AxervePayments}from'./resources/axerve_payments';export{default as BillingInfoValidationRules}from'./resources/billing_info_validation_rules';export{default as BingGeocoders}from'./resources/bing_geocoders';export{default as BraintreeGateways}from'./resources/braintree_gateways';export{default as BraintreePayments}from'./resources/braintree_payments';export{default as Bundles}from'./resources/bundles';export{default as BuyXPayYPromotions}from'./resources/buy_x_pay_y_promotions';export{default as Captures}from'./resources/captures';export{default as CarrierAccounts}from'./resources/carrier_accounts';export{default as CheckoutComGateways}from'./resources/checkout_com_gateways';export{default as CheckoutComPayments}from'./resources/checkout_com_payments';export{default as Cleanups}from'./resources/cleanups';export{default as CouponCodesPromotionRules}from'./resources/coupon_codes_promotion_rules';export{default as CouponRecipients}from'./resources/coupon_recipients';export{default as Coupons}from'./resources/coupons';export{default as CustomPromotionRules}from'./resources/custom_promotion_rules';export{default as CustomerAddresses}from'./resources/customer_addresses';export{default as CustomerGroups}from'./resources/customer_groups';export{default as CustomerPasswordResets}from'./resources/customer_password_resets';export{default as CustomerPaymentSources}from'./resources/customer_payment_sources';export{default as CustomerSubscriptions}from'./resources/customer_subscriptions';export{default as Customers}from'./resources/customers';export{default as DeliveryLeadTimes}from'./resources/delivery_lead_times';export{default as EventCallbacks}from'./resources/event_callbacks';export{default as Events}from'./resources/events';export{default as Exports}from'./resources/exports';export{default as ExternalGateways}from'./resources/external_gateways';export{default as ExternalPayments}from'./resources/external_payments';export{default as ExternalPromotions}from'./resources/external_promotions';export{default as ExternalTaxCalculators}from'./resources/external_tax_calculators';export{default as FixedAmountPromotions}from'./resources/fixed_amount_promotions';export{default as FixedPricePromotions}from'./resources/fixed_price_promotions';export{default as FreeGiftPromotions}from'./resources/free_gift_promotions';export{default as FreeShippingPromotions}from'./resources/free_shipping_promotions';export{default as Geocoders}from'./resources/geocoders';export{default as GiftCardRecipients}from'./resources/gift_card_recipients';export{default as GiftCards}from'./resources/gift_cards';export{default as GoogleGeocoders}from'./resources/google_geocoders';export{default as Imports}from'./resources/imports';export{default as InStockSubscriptions}from'./resources/in_stock_subscriptions';export{default as InventoryModels}from'./resources/inventory_models';export{default as InventoryReturnLocations}from'./resources/inventory_return_locations';export{default as InventoryStockLocations}from'./resources/inventory_stock_locations';export{default as KlarnaGateways}from'./resources/klarna_gateways';export{default as KlarnaPayments}from'./resources/klarna_payments';export{default as LineItemOptions}from'./resources/line_item_options';export{default as LineItems}from'./resources/line_items';export{default as Links}from'./resources/links';export{default as ManualGateways}from'./resources/manual_gateways';export{default as ManualTaxCalculators}from'./resources/manual_tax_calculators';export{default as Markets}from'./resources/markets';export{default as Merchants}from'./resources/merchants';export{default as OrderAmountPromotionRules}from'./resources/order_amount_promotion_rules';export{default as OrderCopies}from'./resources/order_copies';export{default as OrderFactories}from'./resources/order_factories';export{default as OrderSubscriptionItems}from'./resources/order_subscription_items';export{default as OrderSubscriptions}from'./resources/order_subscriptions';export{default as Orders}from'./resources/orders';export{default as Organizations}from'./resources/organization';export{default as Packages}from'./resources/packages';export{default as ParcelLineItems}from'./resources/parcel_line_items';export{default as Parcels}from'./resources/parcels';export{default as PaymentGateways}from'./resources/payment_gateways';export{default as PaymentMethods}from'./resources/payment_methods';export{default as PaymentOptions}from'./resources/payment_options';export{default as PaypalGateways}from'./resources/paypal_gateways';export{default as PaypalPayments}from'./resources/paypal_payments';export{default as PercentageDiscountPromotions}from'./resources/percentage_discount_promotions';export{default as PriceFrequencyTiers}from'./resources/price_frequency_tiers';export{default as PriceListSchedulers}from'./resources/price_list_schedulers';export{default as PriceLists}from'./resources/price_lists';export{default as PriceTiers}from'./resources/price_tiers';export{default as PriceVolumeTiers}from'./resources/price_volume_tiers';export{default as Prices}from'./resources/prices';export{default as PromotionRules}from'./resources/promotion_rules';export{default as Promotions}from'./resources/promotions';export{default as RecurringOrderCopies}from'./resources/recurring_order_copies';export{default as Refunds}from'./resources/refunds';export{default as ReservedStocks}from'./resources/reserved_stocks';export{default as ResourceErrors}from'./resources/resource_errors';export{default as ReturnLineItems}from'./resources/return_line_items';export{default as Returns}from'./resources/returns';export{default as SatispayGateways}from'./resources/satispay_gateways';export{default as SatispayPayments}from'./resources/satispay_payments';export{default as Shipments}from'./resources/shipments';export{default as ShippingCategories}from'./resources/shipping_categories';export{default as ShippingMethodTiers}from'./resources/shipping_method_tiers';export{default as ShippingMethods}from'./resources/shipping_methods';export{default as ShippingWeightTiers}from'./resources/shipping_weight_tiers';export{default as ShippingZones}from'./resources/shipping_zones';export{default as SkuListItems}from'./resources/sku_list_items';export{default as SkuListPromotionRules}from'./resources/sku_list_promotion_rules';export{default as SkuLists}from'./resources/sku_lists';export{default as SkuOptions}from'./resources/sku_options';export{default as Skus}from'./resources/skus';export{default as StockItems}from'./resources/stock_items';export{default as StockLineItems}from'./resources/stock_line_items';export{default as StockLocations}from'./resources/stock_locations';export{default as StockReservations}from'./resources/stock_reservations';export{default as StockTransfers}from'./resources/stock_transfers';export{default as StripeGateways}from'./resources/stripe_gateways';export{default as StripePayments}from'./resources/stripe_payments';export{default as SubscriptionModels}from'./resources/subscription_models';export{default as Tags}from'./resources/tags';export{default as TaxCalculators}from'./resources/tax_calculators';export{default as TaxCategories}from'./resources/tax_categories';export{default as TaxRules}from'./resources/tax_rules';export{default as TaxjarAccounts}from'./resources/taxjar_accounts';export{default as Transactions}from'./resources/transactions';export{default as Versions}from'./resources/versions';export{default as Voids}from'./resources/voids';export{default as Webhooks}from'./resources/webhooks';export{default as WireTransfers}from'./resources/wire_transfers';export type ResourceTypeLock='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'application'|'attachments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'carrier_accounts'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'event_callbacks'|'events'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'geocoders'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_factories'|'order_subscription_items'|'order_subscriptions'|'orders'|'organization'|'packages'|'parcel_line_items'|'parcels'|'payment_gateways'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_tiers'|'price_volume_tiers'|'prices'|'promotion_rules'|'promotions'|'recurring_order_copies'|'refunds'|'reserved_stocks'|'resource_errors'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_method_tiers'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_calculators'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'transactions'|'versions'|'voids'|'webhooks'|'wire_transfers';export declare const resourceList:readonly["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","axerve_gateways","axerve_payments","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","buy_x_pay_y_promotions","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","cleanups","coupon_codes_promotion_rules","coupon_recipients","coupons","custom_promotion_rules","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","events","exports","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","links","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_factories","order_subscription_items","order_subscriptions","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","payment_options","paypal_gateways","paypal_payments","percentage_discount_promotions","price_frequency_tiers","price_list_schedulers","price_lists","price_tiers","price_volume_tiers","prices","promotion_rules","promotions","recurring_order_copies","refunds","reserved_stocks","resource_errors","return_line_items","returns","satispay_gateways","satispay_payments","shipments","shipping_categories","shipping_method_tiers","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_reservations","stock_transfers","stripe_gateways","stripe_payments","subscription_models","tags","tax_calculators","tax_categories","tax_rules","taxjar_accounts","transactions","versions","voids","webhooks","wire_transfers"];export declare const singletonList:readonly["application","organization"];export type RetrievableResourceType=ResourceTypeLock;export type RetrievableResource=Resource&{type:RetrievableResourceType;};export type ListableResourceType=Exclude<ResourceTypeLock,'application'|'organization'>;export type ListableResource=Resource&{type:ListableResourceType;};export type CreatableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type CreatableResource=Resource&{type:CreatableResourceType;};export type UpdatableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'checkout_com_gateways'|'checkout_com_payments'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type UpdatableResource=Resource&{type:UpdatableResourceType;};export type DeletableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type DeletableResource=Resource&{type:DeletableResourceType;};export type TaggableResourceType='addresses'|'bundles'|'buy_x_pay_y_promotions'|'coupons'|'customers'|'external_promotions'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_cards'|'line_item_options'|'line_items'|'orders'|'percentage_discount_promotions'|'promotions'|'returns'|'shipments'|'sku_options'|'skus';export type TaggableResource=Resource&{type:TaggableResourceType;tags?:Array<ResourceRel&{type:TagType;}>|null;};export type VersionableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'carrier_accounts'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_payment_sources'|'customer_subscriptions'|'delivery_lead_times'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_gateways'|'payment_methods'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_tiers'|'price_volume_tiers'|'prices'|'promotion_rules'|'promotions'|'refunds'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_method_tiers'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'tax_calculators'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'transactions'|'voids'|'webhooks'|'wire_transfers';export type VersionableResource=Resource&{type:VersionableResourceType;versions?:Array<ResourceRel&{type:VersionType;}>|null;};
1
+ import type{Resource,ResourceRel}from'./resource';import type{TagType}from'./resources/tags';import type{VersionType}from'./resources/versions';export{default as Addresses}from'./resources/addresses';export{default as Adjustments}from'./resources/adjustments';export{default as AdyenGateways}from'./resources/adyen_gateways';export{default as AdyenPayments}from'./resources/adyen_payments';export{default as Applications}from'./resources/application';export{default as Attachments}from'./resources/attachments';export{default as Authorizations}from'./resources/authorizations';export{default as AvalaraAccounts}from'./resources/avalara_accounts';export{default as AxerveGateways}from'./resources/axerve_gateways';export{default as AxervePayments}from'./resources/axerve_payments';export{default as BillingInfoValidationRules}from'./resources/billing_info_validation_rules';export{default as BingGeocoders}from'./resources/bing_geocoders';export{default as BraintreeGateways}from'./resources/braintree_gateways';export{default as BraintreePayments}from'./resources/braintree_payments';export{default as Bundles}from'./resources/bundles';export{default as BuyXPayYPromotions}from'./resources/buy_x_pay_y_promotions';export{default as Captures}from'./resources/captures';export{default as CarrierAccounts}from'./resources/carrier_accounts';export{default as CheckoutComGateways}from'./resources/checkout_com_gateways';export{default as CheckoutComPayments}from'./resources/checkout_com_payments';export{default as Cleanups}from'./resources/cleanups';export{default as CouponCodesPromotionRules}from'./resources/coupon_codes_promotion_rules';export{default as CouponRecipients}from'./resources/coupon_recipients';export{default as Coupons}from'./resources/coupons';export{default as CustomPromotionRules}from'./resources/custom_promotion_rules';export{default as CustomerAddresses}from'./resources/customer_addresses';export{default as CustomerGroups}from'./resources/customer_groups';export{default as CustomerPasswordResets}from'./resources/customer_password_resets';export{default as CustomerPaymentSources}from'./resources/customer_payment_sources';export{default as CustomerSubscriptions}from'./resources/customer_subscriptions';export{default as Customers}from'./resources/customers';export{default as DeliveryLeadTimes}from'./resources/delivery_lead_times';export{default as EventCallbacks}from'./resources/event_callbacks';export{default as Events}from'./resources/events';export{default as Exports}from'./resources/exports';export{default as ExternalGateways}from'./resources/external_gateways';export{default as ExternalPayments}from'./resources/external_payments';export{default as ExternalPromotions}from'./resources/external_promotions';export{default as ExternalTaxCalculators}from'./resources/external_tax_calculators';export{default as FixedAmountPromotions}from'./resources/fixed_amount_promotions';export{default as FixedPricePromotions}from'./resources/fixed_price_promotions';export{default as FreeGiftPromotions}from'./resources/free_gift_promotions';export{default as FreeShippingPromotions}from'./resources/free_shipping_promotions';export{default as Geocoders}from'./resources/geocoders';export{default as GiftCardRecipients}from'./resources/gift_card_recipients';export{default as GiftCards}from'./resources/gift_cards';export{default as GoogleGeocoders}from'./resources/google_geocoders';export{default as Imports}from'./resources/imports';export{default as InStockSubscriptions}from'./resources/in_stock_subscriptions';export{default as InventoryModels}from'./resources/inventory_models';export{default as InventoryReturnLocations}from'./resources/inventory_return_locations';export{default as InventoryStockLocations}from'./resources/inventory_stock_locations';export{default as KlarnaGateways}from'./resources/klarna_gateways';export{default as KlarnaPayments}from'./resources/klarna_payments';export{default as LineItemOptions}from'./resources/line_item_options';export{default as LineItems}from'./resources/line_items';export{default as Links}from'./resources/links';export{default as ManualGateways}from'./resources/manual_gateways';export{default as ManualTaxCalculators}from'./resources/manual_tax_calculators';export{default as Markets}from'./resources/markets';export{default as Merchants}from'./resources/merchants';export{default as OrderAmountPromotionRules}from'./resources/order_amount_promotion_rules';export{default as OrderCopies}from'./resources/order_copies';export{default as OrderFactories}from'./resources/order_factories';export{default as OrderSubscriptionItems}from'./resources/order_subscription_items';export{default as OrderSubscriptions}from'./resources/order_subscriptions';export{default as Orders}from'./resources/orders';export{default as Organizations}from'./resources/organization';export{default as Packages}from'./resources/packages';export{default as ParcelLineItems}from'./resources/parcel_line_items';export{default as Parcels}from'./resources/parcels';export{default as PaymentGateways}from'./resources/payment_gateways';export{default as PaymentMethods}from'./resources/payment_methods';export{default as PaymentOptions}from'./resources/payment_options';export{default as PaypalGateways}from'./resources/paypal_gateways';export{default as PaypalPayments}from'./resources/paypal_payments';export{default as PercentageDiscountPromotions}from'./resources/percentage_discount_promotions';export{default as PriceFrequencyTiers}from'./resources/price_frequency_tiers';export{default as PriceListSchedulers}from'./resources/price_list_schedulers';export{default as PriceLists}from'./resources/price_lists';export{default as PriceTiers}from'./resources/price_tiers';export{default as PriceVolumeTiers}from'./resources/price_volume_tiers';export{default as Prices}from'./resources/prices';export{default as PromotionRules}from'./resources/promotion_rules';export{default as Promotions}from'./resources/promotions';export{default as RecurringOrderCopies}from'./resources/recurring_order_copies';export{default as Refunds}from'./resources/refunds';export{default as ReservedStocks}from'./resources/reserved_stocks';export{default as ResourceErrors}from'./resources/resource_errors';export{default as ReturnLineItems}from'./resources/return_line_items';export{default as Returns}from'./resources/returns';export{default as SatispayGateways}from'./resources/satispay_gateways';export{default as SatispayPayments}from'./resources/satispay_payments';export{default as Shipments}from'./resources/shipments';export{default as ShippingCategories}from'./resources/shipping_categories';export{default as ShippingMethodTiers}from'./resources/shipping_method_tiers';export{default as ShippingMethods}from'./resources/shipping_methods';export{default as ShippingWeightTiers}from'./resources/shipping_weight_tiers';export{default as ShippingZones}from'./resources/shipping_zones';export{default as SkuListItems}from'./resources/sku_list_items';export{default as SkuListPromotionRules}from'./resources/sku_list_promotion_rules';export{default as SkuLists}from'./resources/sku_lists';export{default as SkuOptions}from'./resources/sku_options';export{default as Skus}from'./resources/skus';export{default as StockItems}from'./resources/stock_items';export{default as StockLineItems}from'./resources/stock_line_items';export{default as StockLocations}from'./resources/stock_locations';export{default as StockReservations}from'./resources/stock_reservations';export{default as StockTransfers}from'./resources/stock_transfers';export{default as StripeGateways}from'./resources/stripe_gateways';export{default as StripePayments}from'./resources/stripe_payments';export{default as SubscriptionModels}from'./resources/subscription_models';export{default as Tags}from'./resources/tags';export{default as TaxCalculators}from'./resources/tax_calculators';export{default as TaxCategories}from'./resources/tax_categories';export{default as TaxRules}from'./resources/tax_rules';export{default as TaxjarAccounts}from'./resources/taxjar_accounts';export{default as Transactions}from'./resources/transactions';export{default as Versions}from'./resources/versions';export{default as Voids}from'./resources/voids';export{default as Webhooks}from'./resources/webhooks';export{default as WireTransfers}from'./resources/wire_transfers';export type ResourceTypeLock='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'application'|'attachments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'carrier_accounts'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'event_callbacks'|'events'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'geocoders'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_factories'|'order_subscription_items'|'order_subscriptions'|'orders'|'organization'|'packages'|'parcel_line_items'|'parcels'|'payment_gateways'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_tiers'|'price_volume_tiers'|'prices'|'promotion_rules'|'promotions'|'recurring_order_copies'|'refunds'|'reserved_stocks'|'resource_errors'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_method_tiers'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_calculators'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'transactions'|'versions'|'voids'|'webhooks'|'wire_transfers';export declare const resourceList:readonly["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","axerve_gateways","axerve_payments","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","buy_x_pay_y_promotions","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","cleanups","coupon_codes_promotion_rules","coupon_recipients","coupons","custom_promotion_rules","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","events","exports","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","links","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_factories","order_subscription_items","order_subscriptions","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","payment_options","paypal_gateways","paypal_payments","percentage_discount_promotions","price_frequency_tiers","price_list_schedulers","price_lists","price_tiers","price_volume_tiers","prices","promotion_rules","promotions","recurring_order_copies","refunds","reserved_stocks","resource_errors","return_line_items","returns","satispay_gateways","satispay_payments","shipments","shipping_categories","shipping_method_tiers","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_reservations","stock_transfers","stripe_gateways","stripe_payments","subscription_models","tags","tax_calculators","tax_categories","tax_rules","taxjar_accounts","transactions","versions","voids","webhooks","wire_transfers"];export declare const singletonList:readonly["application","organization"];export type RetrievableResourceType=ResourceTypeLock;export type RetrievableResource=Resource&{type:RetrievableResourceType;};export type ListableResourceType=Exclude<ResourceTypeLock,'application'|'organization'>;export type ListableResource=Resource&{type:ListableResourceType;};export type CreatableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type CreatableResource=Resource&{type:CreatableResourceType;};export type UpdatableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'checkout_com_gateways'|'checkout_com_payments'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type UpdatableResource=Resource&{type:UpdatableResourceType;};export type DeletableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'attachments'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'exports'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'links'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscription_items'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_methods'|'payment_options'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_volume_tiers'|'prices'|'recurring_order_copies'|'return_line_items'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_reservations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'subscription_models'|'tags'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'webhooks'|'wire_transfers';export type DeletableResource=Resource&{type:DeletableResourceType;};export type TaggableResourceType='addresses'|'bundles'|'buy_x_pay_y_promotions'|'coupons'|'customers'|'external_promotions'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_cards'|'line_item_options'|'line_items'|'order_subscriptions'|'orders'|'percentage_discount_promotions'|'promotions'|'returns'|'shipments'|'sku_options'|'skus';export type TaggableResource=Resource&{type:TaggableResourceType;tags?:Array<ResourceRel&{type:TagType;}>|null;};export type VersionableResourceType='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'authorizations'|'avalara_accounts'|'axerve_gateways'|'axerve_payments'|'billing_info_validation_rules'|'braintree_gateways'|'braintree_payments'|'bundles'|'buy_x_pay_y_promotions'|'captures'|'carrier_accounts'|'checkout_com_gateways'|'checkout_com_payments'|'cleanups'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'custom_promotion_rules'|'customer_addresses'|'customer_groups'|'customer_payment_sources'|'customer_subscriptions'|'delivery_lead_times'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'gift_card_recipients'|'gift_cards'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_subscriptions'|'orders'|'packages'|'parcel_line_items'|'parcels'|'payment_gateways'|'payment_methods'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_frequency_tiers'|'price_list_schedulers'|'price_lists'|'price_tiers'|'price_volume_tiers'|'prices'|'promotion_rules'|'promotions'|'refunds'|'returns'|'satispay_gateways'|'satispay_payments'|'shipments'|'shipping_categories'|'shipping_method_tiers'|'shipping_methods'|'shipping_weight_tiers'|'shipping_zones'|'sku_list_items'|'sku_list_promotion_rules'|'sku_lists'|'sku_options'|'skus'|'stock_items'|'stock_line_items'|'stock_locations'|'stock_transfers'|'stripe_gateways'|'stripe_payments'|'tax_calculators'|'tax_categories'|'tax_rules'|'taxjar_accounts'|'transactions'|'voids'|'webhooks'|'wire_transfers';export type VersionableResource=Resource&{type:VersionableResourceType;versions?:Array<ResourceRel&{type:VersionType;}>|null;};
@@ -1 +1 @@
1
- import*as api from'./api';import type{ApiError}from'./error';import type{ErrorInterceptor,InterceptorType,RawResponseReader,RequestInterceptor,ResponseInterceptor}from'./interceptor';import{type ResourcesInitConfig}from'./resource';declare const OPEN_API_SCHEMA_VERSION="5.4.1";export{OPEN_API_SCHEMA_VERSION};type SdkConfig={};type CommerceLayerInitConfig=SdkConfig&ResourcesInitConfig;type CommerceLayerConfig=Partial<CommerceLayerInitConfig>;declare class CommerceLayerClient{#private;readonly openApiSchemaVersion="5.4.1";addresses:api.Addresses;adjustments:api.Adjustments;adyen_gateways:api.AdyenGateways;adyen_payments:api.AdyenPayments;application:api.Applications;attachments:api.Attachments;authorizations:api.Authorizations;avalara_accounts:api.AvalaraAccounts;axerve_gateways:api.AxerveGateways;axerve_payments:api.AxervePayments;billing_info_validation_rules:api.BillingInfoValidationRules;bing_geocoders:api.BingGeocoders;braintree_gateways:api.BraintreeGateways;braintree_payments:api.BraintreePayments;bundles:api.Bundles;buy_x_pay_y_promotions:api.BuyXPayYPromotions;captures:api.Captures;carrier_accounts:api.CarrierAccounts;checkout_com_gateways:api.CheckoutComGateways;checkout_com_payments:api.CheckoutComPayments;cleanups:api.Cleanups;coupon_codes_promotion_rules:api.CouponCodesPromotionRules;coupon_recipients:api.CouponRecipients;coupons:api.Coupons;custom_promotion_rules:api.CustomPromotionRules;customer_addresses:api.CustomerAddresses;customer_groups:api.CustomerGroups;customer_password_resets:api.CustomerPasswordResets;customer_payment_sources:api.CustomerPaymentSources;customer_subscriptions:api.CustomerSubscriptions;customers:api.Customers;delivery_lead_times:api.DeliveryLeadTimes;event_callbacks:api.EventCallbacks;events:api.Events;exports:api.Exports;external_gateways:api.ExternalGateways;external_payments:api.ExternalPayments;external_promotions:api.ExternalPromotions;external_tax_calculators:api.ExternalTaxCalculators;fixed_amount_promotions:api.FixedAmountPromotions;fixed_price_promotions:api.FixedPricePromotions;free_gift_promotions:api.FreeGiftPromotions;free_shipping_promotions:api.FreeShippingPromotions;geocoders:api.Geocoders;gift_card_recipients:api.GiftCardRecipients;gift_cards:api.GiftCards;google_geocoders:api.GoogleGeocoders;imports:api.Imports;in_stock_subscriptions:api.InStockSubscriptions;inventory_models:api.InventoryModels;inventory_return_locations:api.InventoryReturnLocations;inventory_stock_locations:api.InventoryStockLocations;klarna_gateways:api.KlarnaGateways;klarna_payments:api.KlarnaPayments;line_item_options:api.LineItemOptions;line_items:api.LineItems;links:api.Links;manual_gateways:api.ManualGateways;manual_tax_calculators:api.ManualTaxCalculators;markets:api.Markets;merchants:api.Merchants;order_amount_promotion_rules:api.OrderAmountPromotionRules;order_copies:api.OrderCopies;order_factories:api.OrderFactories;order_subscription_items:api.OrderSubscriptionItems;order_subscriptions:api.OrderSubscriptions;orders:api.Orders;organization:api.Organizations;packages:api.Packages;parcel_line_items:api.ParcelLineItems;parcels:api.Parcels;payment_gateways:api.PaymentGateways;payment_methods:api.PaymentMethods;payment_options:api.PaymentOptions;paypal_gateways:api.PaypalGateways;paypal_payments:api.PaypalPayments;percentage_discount_promotions:api.PercentageDiscountPromotions;price_frequency_tiers:api.PriceFrequencyTiers;price_list_schedulers:api.PriceListSchedulers;price_lists:api.PriceLists;price_tiers:api.PriceTiers;price_volume_tiers:api.PriceVolumeTiers;prices:api.Prices;promotion_rules:api.PromotionRules;promotions:api.Promotions;recurring_order_copies:api.RecurringOrderCopies;refunds:api.Refunds;reserved_stocks:api.ReservedStocks;resource_errors:api.ResourceErrors;return_line_items:api.ReturnLineItems;returns:api.Returns;satispay_gateways:api.SatispayGateways;satispay_payments:api.SatispayPayments;shipments:api.Shipments;shipping_categories:api.ShippingCategories;shipping_method_tiers:api.ShippingMethodTiers;shipping_methods:api.ShippingMethods;shipping_weight_tiers:api.ShippingWeightTiers;shipping_zones:api.ShippingZones;sku_list_items:api.SkuListItems;sku_list_promotion_rules:api.SkuListPromotionRules;sku_lists:api.SkuLists;sku_options:api.SkuOptions;skus:api.Skus;stock_items:api.StockItems;stock_line_items:api.StockLineItems;stock_locations:api.StockLocations;stock_reservations:api.StockReservations;stock_transfers:api.StockTransfers;stripe_gateways:api.StripeGateways;stripe_payments:api.StripePayments;subscription_models:api.SubscriptionModels;tags:api.Tags;tax_calculators:api.TaxCalculators;tax_categories:api.TaxCategories;tax_rules:api.TaxRules;taxjar_accounts:api.TaxjarAccounts;transactions:api.Transactions;versions:api.Versions;voids:api.Voids;webhooks:api.Webhooks;wire_transfers:api.WireTransfers;constructor(config:CommerceLayerInitConfig);get currentOrganization():string;private localConfig;config(config:CommerceLayerConfig):CommerceLayerClient;resources():readonly string[];singletons():readonly string[];isSingleton(resource:api.ResourceTypeLock):boolean;isApiError(error:any):error is ApiError;addRequestInterceptor(onFulfilled?:RequestInterceptor|null,onRejected?:ErrorInterceptor|null):number;addResponseInterceptor(onFulfilled?:ResponseInterceptor|null,onRejected?:ErrorInterceptor|null):number;removeInterceptor(type:InterceptorType,id:number):void;addRawResponseReader(options?:{headers:boolean;}):RawResponseReader;removeRawResponseReader(reader:number|RawResponseReader):void;}declare const CommerceLayer:(config:CommerceLayerInitConfig)=>CommerceLayerClient;export default CommerceLayer;export{CommerceLayer};export type{CommerceLayerClient,CommerceLayerConfig,CommerceLayerInitConfig};
1
+ import*as api from'./api';import type{ApiError}from'./error';import type{ErrorInterceptor,InterceptorType,RawResponseReader,RequestInterceptor,ResponseInterceptor}from'./interceptor';import{type ResourcesInitConfig}from'./resource';declare const OPEN_API_SCHEMA_VERSION="5.4.3";export{OPEN_API_SCHEMA_VERSION};type SdkConfig={};type CommerceLayerInitConfig=SdkConfig&ResourcesInitConfig;type CommerceLayerConfig=Partial<CommerceLayerInitConfig>;declare class CommerceLayerClient{#private;readonly openApiSchemaVersion="5.4.3";addresses:api.Addresses;adjustments:api.Adjustments;adyen_gateways:api.AdyenGateways;adyen_payments:api.AdyenPayments;application:api.Applications;attachments:api.Attachments;authorizations:api.Authorizations;avalara_accounts:api.AvalaraAccounts;axerve_gateways:api.AxerveGateways;axerve_payments:api.AxervePayments;billing_info_validation_rules:api.BillingInfoValidationRules;bing_geocoders:api.BingGeocoders;braintree_gateways:api.BraintreeGateways;braintree_payments:api.BraintreePayments;bundles:api.Bundles;buy_x_pay_y_promotions:api.BuyXPayYPromotions;captures:api.Captures;carrier_accounts:api.CarrierAccounts;checkout_com_gateways:api.CheckoutComGateways;checkout_com_payments:api.CheckoutComPayments;cleanups:api.Cleanups;coupon_codes_promotion_rules:api.CouponCodesPromotionRules;coupon_recipients:api.CouponRecipients;coupons:api.Coupons;custom_promotion_rules:api.CustomPromotionRules;customer_addresses:api.CustomerAddresses;customer_groups:api.CustomerGroups;customer_password_resets:api.CustomerPasswordResets;customer_payment_sources:api.CustomerPaymentSources;customer_subscriptions:api.CustomerSubscriptions;customers:api.Customers;delivery_lead_times:api.DeliveryLeadTimes;event_callbacks:api.EventCallbacks;events:api.Events;exports:api.Exports;external_gateways:api.ExternalGateways;external_payments:api.ExternalPayments;external_promotions:api.ExternalPromotions;external_tax_calculators:api.ExternalTaxCalculators;fixed_amount_promotions:api.FixedAmountPromotions;fixed_price_promotions:api.FixedPricePromotions;free_gift_promotions:api.FreeGiftPromotions;free_shipping_promotions:api.FreeShippingPromotions;geocoders:api.Geocoders;gift_card_recipients:api.GiftCardRecipients;gift_cards:api.GiftCards;google_geocoders:api.GoogleGeocoders;imports:api.Imports;in_stock_subscriptions:api.InStockSubscriptions;inventory_models:api.InventoryModels;inventory_return_locations:api.InventoryReturnLocations;inventory_stock_locations:api.InventoryStockLocations;klarna_gateways:api.KlarnaGateways;klarna_payments:api.KlarnaPayments;line_item_options:api.LineItemOptions;line_items:api.LineItems;links:api.Links;manual_gateways:api.ManualGateways;manual_tax_calculators:api.ManualTaxCalculators;markets:api.Markets;merchants:api.Merchants;order_amount_promotion_rules:api.OrderAmountPromotionRules;order_copies:api.OrderCopies;order_factories:api.OrderFactories;order_subscription_items:api.OrderSubscriptionItems;order_subscriptions:api.OrderSubscriptions;orders:api.Orders;organization:api.Organizations;packages:api.Packages;parcel_line_items:api.ParcelLineItems;parcels:api.Parcels;payment_gateways:api.PaymentGateways;payment_methods:api.PaymentMethods;payment_options:api.PaymentOptions;paypal_gateways:api.PaypalGateways;paypal_payments:api.PaypalPayments;percentage_discount_promotions:api.PercentageDiscountPromotions;price_frequency_tiers:api.PriceFrequencyTiers;price_list_schedulers:api.PriceListSchedulers;price_lists:api.PriceLists;price_tiers:api.PriceTiers;price_volume_tiers:api.PriceVolumeTiers;prices:api.Prices;promotion_rules:api.PromotionRules;promotions:api.Promotions;recurring_order_copies:api.RecurringOrderCopies;refunds:api.Refunds;reserved_stocks:api.ReservedStocks;resource_errors:api.ResourceErrors;return_line_items:api.ReturnLineItems;returns:api.Returns;satispay_gateways:api.SatispayGateways;satispay_payments:api.SatispayPayments;shipments:api.Shipments;shipping_categories:api.ShippingCategories;shipping_method_tiers:api.ShippingMethodTiers;shipping_methods:api.ShippingMethods;shipping_weight_tiers:api.ShippingWeightTiers;shipping_zones:api.ShippingZones;sku_list_items:api.SkuListItems;sku_list_promotion_rules:api.SkuListPromotionRules;sku_lists:api.SkuLists;sku_options:api.SkuOptions;skus:api.Skus;stock_items:api.StockItems;stock_line_items:api.StockLineItems;stock_locations:api.StockLocations;stock_reservations:api.StockReservations;stock_transfers:api.StockTransfers;stripe_gateways:api.StripeGateways;stripe_payments:api.StripePayments;subscription_models:api.SubscriptionModels;tags:api.Tags;tax_calculators:api.TaxCalculators;tax_categories:api.TaxCategories;tax_rules:api.TaxRules;taxjar_accounts:api.TaxjarAccounts;transactions:api.Transactions;versions:api.Versions;voids:api.Voids;webhooks:api.Webhooks;wire_transfers:api.WireTransfers;constructor(config:CommerceLayerInitConfig);get currentOrganization():string;private localConfig;config(config:CommerceLayerConfig):CommerceLayerClient;resources():readonly string[];singletons():readonly string[];isSingleton(resource:api.ResourceTypeLock):boolean;isApiError(error:any):error is ApiError;addRequestInterceptor(onFulfilled?:RequestInterceptor|null,onRejected?:ErrorInterceptor|null):number;addResponseInterceptor(onFulfilled?:ResponseInterceptor|null,onRejected?:ErrorInterceptor|null):number;removeInterceptor(type:InterceptorType,id:number):void;addRawResponseReader(options?:{headers:boolean;}):RawResponseReader;removeRawResponseReader(reader:number|RawResponseReader):void;}declare const CommerceLayer:(config:CommerceLayerInitConfig)=>CommerceLayerClient;export default CommerceLayer;export{CommerceLayer};export type{CommerceLayerClient,CommerceLayerConfig,CommerceLayerInitConfig};