@commercelayer/sdk 4.13.1 → 4.15.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 +1 -1
- package/lib/cjs/api.js +1 -1
- package/lib/cjs/client.d.ts +1 -0
- package/lib/cjs/commercelayer.d.ts +1 -1
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/model.d.ts +1 -1
- package/lib/cjs/resources/application.d.ts +1 -1
- package/lib/cjs/resources/customer_addresses.d.ts +1 -1
- package/lib/cjs/resources/customer_addresses.js +1 -1
- package/lib/cjs/resources/customer_password_resets.d.ts +1 -1
- package/lib/cjs/resources/customer_password_resets.js +1 -1
- package/lib/cjs/resources/customer_subscriptions.d.ts +1 -1
- package/lib/cjs/resources/customer_subscriptions.js +1 -1
- package/lib/cjs/resources/customers.d.ts +1 -1
- package/lib/cjs/resources/customers.js +1 -1
- package/lib/cjs/resources/events.d.ts +1 -0
- package/lib/cjs/resources/events.js +1 -0
- package/lib/cjs/resources/gift_cards.d.ts +1 -1
- package/lib/cjs/resources/gift_cards.js +1 -1
- package/lib/cjs/resources/imports.d.ts +1 -1
- package/lib/cjs/resources/imports.js +1 -1
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
- package/lib/cjs/resources/order_copies.d.ts +1 -1
- package/lib/cjs/resources/order_copies.js +1 -1
- package/lib/cjs/resources/order_subscriptions.d.ts +1 -1
- package/lib/cjs/resources/order_subscriptions.js +1 -1
- package/lib/cjs/resources/orders.d.ts +1 -1
- package/lib/cjs/resources/orders.js +1 -1
- package/lib/cjs/resources/parcels.d.ts +1 -1
- package/lib/cjs/resources/parcels.js +1 -1
- package/lib/cjs/resources/price_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_tiers.js +1 -0
- package/lib/cjs/resources/price_volume_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_volume_tiers.js +1 -0
- package/lib/cjs/resources/prices.d.ts +1 -1
- package/lib/cjs/resources/prices.js +1 -1
- package/lib/cjs/resources/refunds.d.ts +1 -1
- package/lib/cjs/resources/refunds.js +1 -1
- package/lib/cjs/resources/returns.d.ts +1 -1
- package/lib/cjs/resources/returns.js +1 -1
- package/lib/cjs/resources/shipments.d.ts +1 -1
- package/lib/cjs/resources/shipments.js +1 -1
- package/lib/cjs/resources/shipping_method_tiers.d.ts +1 -0
- package/lib/cjs/resources/shipping_method_tiers.js +1 -0
- package/lib/cjs/resources/shipping_methods.d.ts +1 -1
- package/lib/cjs/resources/shipping_methods.js +1 -1
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +1 -0
- package/lib/cjs/resources/shipping_weight_tiers.js +1 -0
- package/lib/cjs/resources/stock_transfers.d.ts +1 -1
- package/lib/cjs/resources/stock_transfers.js +1 -1
- package/lib/cjs/util.d.ts +3 -0
- package/lib/esm/api.d.ts +1 -1
- package/lib/esm/api.js +1 -1
- package/lib/esm/client.d.ts +1 -0
- package/lib/esm/commercelayer.d.ts +1 -1
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/model.d.ts +1 -1
- package/lib/esm/resources/application.d.ts +1 -1
- package/lib/esm/resources/customer_addresses.d.ts +1 -1
- package/lib/esm/resources/customer_addresses.js +1 -1
- package/lib/esm/resources/customer_password_resets.d.ts +1 -1
- package/lib/esm/resources/customer_password_resets.js +1 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +1 -1
- package/lib/esm/resources/customer_subscriptions.js +1 -1
- package/lib/esm/resources/customers.d.ts +1 -1
- package/lib/esm/resources/customers.js +1 -1
- package/lib/esm/resources/events.d.ts +1 -0
- package/lib/esm/resources/events.js +1 -0
- package/lib/esm/resources/gift_cards.d.ts +1 -1
- package/lib/esm/resources/gift_cards.js +1 -1
- package/lib/esm/resources/imports.d.ts +1 -1
- package/lib/esm/resources/imports.js +1 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/esm/resources/in_stock_subscriptions.js +1 -1
- package/lib/esm/resources/order_copies.d.ts +1 -1
- package/lib/esm/resources/order_copies.js +1 -1
- package/lib/esm/resources/order_subscriptions.d.ts +1 -1
- package/lib/esm/resources/order_subscriptions.js +1 -1
- package/lib/esm/resources/orders.d.ts +1 -1
- package/lib/esm/resources/orders.js +1 -1
- package/lib/esm/resources/parcels.d.ts +1 -1
- package/lib/esm/resources/parcels.js +1 -1
- package/lib/esm/resources/price_tiers.d.ts +1 -0
- package/lib/esm/resources/price_tiers.js +1 -0
- package/lib/esm/resources/price_volume_tiers.d.ts +1 -0
- package/lib/esm/resources/price_volume_tiers.js +1 -0
- package/lib/esm/resources/prices.d.ts +1 -1
- package/lib/esm/resources/prices.js +1 -1
- package/lib/esm/resources/refunds.d.ts +1 -1
- package/lib/esm/resources/refunds.js +1 -1
- package/lib/esm/resources/returns.d.ts +1 -1
- package/lib/esm/resources/returns.js +1 -1
- package/lib/esm/resources/shipments.d.ts +1 -1
- package/lib/esm/resources/shipments.js +1 -1
- package/lib/esm/resources/shipping_method_tiers.d.ts +1 -0
- package/lib/esm/resources/shipping_method_tiers.js +1 -0
- package/lib/esm/resources/shipping_methods.d.ts +1 -1
- package/lib/esm/resources/shipping_methods.js +1 -1
- package/lib/esm/resources/shipping_weight_tiers.d.ts +1 -0
- package/lib/esm/resources/shipping_weight_tiers.js +1 -0
- package/lib/esm/resources/stock_transfers.d.ts +1 -1
- package/lib/esm/resources/stock_transfers.js +1 -1
- package/lib/esm/util.d.ts +3 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
package/lib/cjs/api.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
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 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 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 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 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 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 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 OrderSubscriptions}from'./resources/order_subscriptions';export{default as OrderValidationRules}from'./resources/order_validation_rules';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 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 PriceLists}from'./resources/price_lists';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 Refunds}from'./resources/refunds';export{default as ReturnLineItems}from'./resources/return_line_items';export{default as Returns}from'./resources/returns';export{default as Shipments}from'./resources/shipments';export{default as ShippingCategories}from'./resources/shipping_categories';export{default as ShippingMethods}from'./resources/shipping_methods';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 StockTransfers}from'./resources/stock_transfers';export{default as StripeGateways}from'./resources/stripe_gateways';export{default as StripePayments}from'./resources/stripe_payments';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 Voids}from'./resources/voids';export{default as Webhooks}from'./resources/webhooks';export{default as WireTransfers}from'./resources/wire_transfers';export declare type ResourceTypeLock='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'application'|'attachments'|'authorizations'|'avalara_accounts'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'captures'|'carrier_accounts'|'checkout_com_gateways'|'checkout_com_payments'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'event_callbacks'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'geocoders'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscriptions'|'order_validation_rules'|'orders'|'organization'|'packages'|'parcel_line_items'|'parcels'|'payment_gateways'|'payment_methods'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_lists'|'prices'|'promotion_rules'|'promotions'|'refunds'|'return_line_items'|'returns'|'shipments'|'shipping_categories'|'shipping_methods'|'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 declare const resourceList:readonly["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","coupon_codes_promotion_rules","coupon_recipients","coupons","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_subscriptions","order_validation_rules","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","paypal_gateways","paypal_payments","percentage_discount_promotions","price_lists","prices","promotion_rules","promotions","refunds","return_line_items","returns","shipments","shipping_categories","shipping_methods","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"];
|
1
|
+
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 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 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 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 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 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 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 OrderSubscriptions}from'./resources/order_subscriptions';export{default as OrderValidationRules}from'./resources/order_validation_rules';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 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 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 Refunds}from'./resources/refunds';export{default as ReturnLineItems}from'./resources/return_line_items';export{default as Returns}from'./resources/returns';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 StockTransfers}from'./resources/stock_transfers';export{default as StripeGateways}from'./resources/stripe_gateways';export{default as StripePayments}from'./resources/stripe_payments';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 Voids}from'./resources/voids';export{default as Webhooks}from'./resources/webhooks';export{default as WireTransfers}from'./resources/wire_transfers';export declare type ResourceTypeLock='addresses'|'adjustments'|'adyen_gateways'|'adyen_payments'|'application'|'attachments'|'authorizations'|'avalara_accounts'|'billing_info_validation_rules'|'bing_geocoders'|'braintree_gateways'|'braintree_payments'|'bundles'|'captures'|'carrier_accounts'|'checkout_com_gateways'|'checkout_com_payments'|'coupon_codes_promotion_rules'|'coupon_recipients'|'coupons'|'customer_addresses'|'customer_groups'|'customer_password_resets'|'customer_payment_sources'|'customer_subscriptions'|'customers'|'delivery_lead_times'|'event_callbacks'|'events'|'external_gateways'|'external_payments'|'external_promotions'|'external_tax_calculators'|'fixed_amount_promotions'|'fixed_price_promotions'|'free_gift_promotions'|'free_shipping_promotions'|'geocoders'|'gift_card_recipients'|'gift_cards'|'google_geocoders'|'imports'|'in_stock_subscriptions'|'inventory_models'|'inventory_return_locations'|'inventory_stock_locations'|'klarna_gateways'|'klarna_payments'|'line_item_options'|'line_items'|'manual_gateways'|'manual_tax_calculators'|'markets'|'merchants'|'order_amount_promotion_rules'|'order_copies'|'order_subscriptions'|'order_validation_rules'|'orders'|'organization'|'packages'|'parcel_line_items'|'parcels'|'payment_gateways'|'payment_methods'|'paypal_gateways'|'paypal_payments'|'percentage_discount_promotions'|'price_lists'|'price_tiers'|'price_volume_tiers'|'prices'|'promotion_rules'|'promotions'|'refunds'|'return_line_items'|'returns'|'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 declare const resourceList:readonly["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","coupon_codes_promotion_rules","coupon_recipients","coupons","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","events","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_subscriptions","order_validation_rules","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","paypal_gateways","paypal_payments","percentage_discount_promotions","price_lists","price_tiers","price_volume_tiers","prices","promotion_rules","promotions","refunds","return_line_items","returns","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"];
|
package/lib/cjs/api.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ManualGateways=exports.LineItems=exports.LineItemOptions=exports.KlarnaPayments=exports.KlarnaGateways=exports.InventoryStockLocations=exports.InventoryReturnLocations=exports.InventoryModels=exports.InStockSubscriptions=exports.Imports=exports.GoogleGeocoders=exports.GiftCards=exports.GiftCardRecipients=exports.Geocoders=exports.FreeShippingPromotions=exports.FreeGiftPromotions=exports.FixedPricePromotions=exports.FixedAmountPromotions=exports.ExternalTaxCalculators=exports.ExternalPromotions=exports.ExternalPayments=exports.ExternalGateways=exports.EventCallbacks=exports.DeliveryLeadTimes=exports.Customers=exports.CustomerSubscriptions=exports.CustomerPaymentSources=exports.CustomerPasswordResets=exports.CustomerGroups=exports.CustomerAddresses=exports.Coupons=exports.CouponRecipients=exports.CouponCodesPromotionRules=exports.CheckoutComPayments=exports.CheckoutComGateways=exports.CarrierAccounts=exports.Captures=exports.Bundles=exports.BraintreePayments=exports.BraintreeGateways=exports.BingGeocoders=exports.BillingInfoValidationRules=exports.AvalaraAccounts=exports.Authorizations=exports.Attachments=exports.Applications=exports.AdyenPayments=exports.AdyenGateways=exports.Adjustments=exports.Addresses=void 0,exports.resourceList=exports.WireTransfers=exports.Webhooks=exports.Voids=exports.Transactions=exports.TaxjarAccounts=exports.TaxRules=exports.TaxCategories=exports.TaxCalculators=exports.StripePayments=exports.StripeGateways=exports.StockTransfers=exports.StockLocations=exports.StockLineItems=exports.StockItems=exports.Skus=exports.SkuOptions=exports.SkuLists=exports.SkuListPromotionRules=exports.SkuListItems=exports.ShippingZones=exports.ShippingMethods=exports.ShippingCategories=exports.Shipments=exports.Returns=exports.ReturnLineItems=exports.Refunds=exports.Promotions=exports.PromotionRules=exports.Prices=exports.PriceLists=exports.PercentageDiscountPromotions=exports.PaypalPayments=exports.PaypalGateways=exports.PaymentMethods=exports.PaymentGateways=exports.Parcels=exports.ParcelLineItems=exports.Packages=exports.Organizations=exports.Orders=exports.OrderValidationRules=exports.OrderSubscriptions=exports.OrderCopies=exports.OrderAmountPromotionRules=exports.Merchants=exports.Markets=exports.ManualTaxCalculators=void 0;var addresses_1=require("./resources/addresses");Object.defineProperty(exports,"Addresses",{enumerable:!0,get:function(){return __importDefault(addresses_1).default}});var adjustments_1=require("./resources/adjustments");Object.defineProperty(exports,"Adjustments",{enumerable:!0,get:function(){return __importDefault(adjustments_1).default}});var adyen_gateways_1=require("./resources/adyen_gateways");Object.defineProperty(exports,"AdyenGateways",{enumerable:!0,get:function(){return __importDefault(adyen_gateways_1).default}});var adyen_payments_1=require("./resources/adyen_payments");Object.defineProperty(exports,"AdyenPayments",{enumerable:!0,get:function(){return __importDefault(adyen_payments_1).default}});var application_1=require("./resources/application");Object.defineProperty(exports,"Applications",{enumerable:!0,get:function(){return __importDefault(application_1).default}});var attachments_1=require("./resources/attachments");Object.defineProperty(exports,"Attachments",{enumerable:!0,get:function(){return __importDefault(attachments_1).default}});var authorizations_1=require("./resources/authorizations");Object.defineProperty(exports,"Authorizations",{enumerable:!0,get:function(){return __importDefault(authorizations_1).default}});var avalara_accounts_1=require("./resources/avalara_accounts");Object.defineProperty(exports,"AvalaraAccounts",{enumerable:!0,get:function(){return __importDefault(avalara_accounts_1).default}});var billing_info_validation_rules_1=require("./resources/billing_info_validation_rules");Object.defineProperty(exports,"BillingInfoValidationRules",{enumerable:!0,get:function(){return __importDefault(billing_info_validation_rules_1).default}});var bing_geocoders_1=require("./resources/bing_geocoders");Object.defineProperty(exports,"BingGeocoders",{enumerable:!0,get:function(){return __importDefault(bing_geocoders_1).default}});var braintree_gateways_1=require("./resources/braintree_gateways");Object.defineProperty(exports,"BraintreeGateways",{enumerable:!0,get:function(){return __importDefault(braintree_gateways_1).default}});var braintree_payments_1=require("./resources/braintree_payments");Object.defineProperty(exports,"BraintreePayments",{enumerable:!0,get:function(){return __importDefault(braintree_payments_1).default}});var bundles_1=require("./resources/bundles");Object.defineProperty(exports,"Bundles",{enumerable:!0,get:function(){return __importDefault(bundles_1).default}});var captures_1=require("./resources/captures");Object.defineProperty(exports,"Captures",{enumerable:!0,get:function(){return __importDefault(captures_1).default}});var carrier_accounts_1=require("./resources/carrier_accounts");Object.defineProperty(exports,"CarrierAccounts",{enumerable:!0,get:function(){return __importDefault(carrier_accounts_1).default}});var checkout_com_gateways_1=require("./resources/checkout_com_gateways");Object.defineProperty(exports,"CheckoutComGateways",{enumerable:!0,get:function(){return __importDefault(checkout_com_gateways_1).default}});var checkout_com_payments_1=require("./resources/checkout_com_payments");Object.defineProperty(exports,"CheckoutComPayments",{enumerable:!0,get:function(){return __importDefault(checkout_com_payments_1).default}});var coupon_codes_promotion_rules_1=require("./resources/coupon_codes_promotion_rules");Object.defineProperty(exports,"CouponCodesPromotionRules",{enumerable:!0,get:function(){return __importDefault(coupon_codes_promotion_rules_1).default}});var coupon_recipients_1=require("./resources/coupon_recipients");Object.defineProperty(exports,"CouponRecipients",{enumerable:!0,get:function(){return __importDefault(coupon_recipients_1).default}});var coupons_1=require("./resources/coupons");Object.defineProperty(exports,"Coupons",{enumerable:!0,get:function(){return __importDefault(coupons_1).default}});var customer_addresses_1=require("./resources/customer_addresses");Object.defineProperty(exports,"CustomerAddresses",{enumerable:!0,get:function(){return __importDefault(customer_addresses_1).default}});var customer_groups_1=require("./resources/customer_groups");Object.defineProperty(exports,"CustomerGroups",{enumerable:!0,get:function(){return __importDefault(customer_groups_1).default}});var customer_password_resets_1=require("./resources/customer_password_resets");Object.defineProperty(exports,"CustomerPasswordResets",{enumerable:!0,get:function(){return __importDefault(customer_password_resets_1).default}});var customer_payment_sources_1=require("./resources/customer_payment_sources");Object.defineProperty(exports,"CustomerPaymentSources",{enumerable:!0,get:function(){return __importDefault(customer_payment_sources_1).default}});var customer_subscriptions_1=require("./resources/customer_subscriptions");Object.defineProperty(exports,"CustomerSubscriptions",{enumerable:!0,get:function(){return __importDefault(customer_subscriptions_1).default}});var customers_1=require("./resources/customers");Object.defineProperty(exports,"Customers",{enumerable:!0,get:function(){return __importDefault(customers_1).default}});var delivery_lead_times_1=require("./resources/delivery_lead_times");Object.defineProperty(exports,"DeliveryLeadTimes",{enumerable:!0,get:function(){return __importDefault(delivery_lead_times_1).default}});var event_callbacks_1=require("./resources/event_callbacks");Object.defineProperty(exports,"EventCallbacks",{enumerable:!0,get:function(){return __importDefault(event_callbacks_1).default}});var external_gateways_1=require("./resources/external_gateways");Object.defineProperty(exports,"ExternalGateways",{enumerable:!0,get:function(){return __importDefault(external_gateways_1).default}});var external_payments_1=require("./resources/external_payments");Object.defineProperty(exports,"ExternalPayments",{enumerable:!0,get:function(){return __importDefault(external_payments_1).default}});var external_promotions_1=require("./resources/external_promotions");Object.defineProperty(exports,"ExternalPromotions",{enumerable:!0,get:function(){return __importDefault(external_promotions_1).default}});var external_tax_calculators_1=require("./resources/external_tax_calculators");Object.defineProperty(exports,"ExternalTaxCalculators",{enumerable:!0,get:function(){return __importDefault(external_tax_calculators_1).default}});var fixed_amount_promotions_1=require("./resources/fixed_amount_promotions");Object.defineProperty(exports,"FixedAmountPromotions",{enumerable:!0,get:function(){return __importDefault(fixed_amount_promotions_1).default}});var fixed_price_promotions_1=require("./resources/fixed_price_promotions");Object.defineProperty(exports,"FixedPricePromotions",{enumerable:!0,get:function(){return __importDefault(fixed_price_promotions_1).default}});var free_gift_promotions_1=require("./resources/free_gift_promotions");Object.defineProperty(exports,"FreeGiftPromotions",{enumerable:!0,get:function(){return __importDefault(free_gift_promotions_1).default}});var free_shipping_promotions_1=require("./resources/free_shipping_promotions");Object.defineProperty(exports,"FreeShippingPromotions",{enumerable:!0,get:function(){return __importDefault(free_shipping_promotions_1).default}});var geocoders_1=require("./resources/geocoders");Object.defineProperty(exports,"Geocoders",{enumerable:!0,get:function(){return __importDefault(geocoders_1).default}});var gift_card_recipients_1=require("./resources/gift_card_recipients");Object.defineProperty(exports,"GiftCardRecipients",{enumerable:!0,get:function(){return __importDefault(gift_card_recipients_1).default}});var gift_cards_1=require("./resources/gift_cards");Object.defineProperty(exports,"GiftCards",{enumerable:!0,get:function(){return __importDefault(gift_cards_1).default}});var google_geocoders_1=require("./resources/google_geocoders");Object.defineProperty(exports,"GoogleGeocoders",{enumerable:!0,get:function(){return __importDefault(google_geocoders_1).default}});var imports_1=require("./resources/imports");Object.defineProperty(exports,"Imports",{enumerable:!0,get:function(){return __importDefault(imports_1).default}});var in_stock_subscriptions_1=require("./resources/in_stock_subscriptions");Object.defineProperty(exports,"InStockSubscriptions",{enumerable:!0,get:function(){return __importDefault(in_stock_subscriptions_1).default}});var inventory_models_1=require("./resources/inventory_models");Object.defineProperty(exports,"InventoryModels",{enumerable:!0,get:function(){return __importDefault(inventory_models_1).default}});var inventory_return_locations_1=require("./resources/inventory_return_locations");Object.defineProperty(exports,"InventoryReturnLocations",{enumerable:!0,get:function(){return __importDefault(inventory_return_locations_1).default}});var inventory_stock_locations_1=require("./resources/inventory_stock_locations");Object.defineProperty(exports,"InventoryStockLocations",{enumerable:!0,get:function(){return __importDefault(inventory_stock_locations_1).default}});var klarna_gateways_1=require("./resources/klarna_gateways");Object.defineProperty(exports,"KlarnaGateways",{enumerable:!0,get:function(){return __importDefault(klarna_gateways_1).default}});var klarna_payments_1=require("./resources/klarna_payments");Object.defineProperty(exports,"KlarnaPayments",{enumerable:!0,get:function(){return __importDefault(klarna_payments_1).default}});var line_item_options_1=require("./resources/line_item_options");Object.defineProperty(exports,"LineItemOptions",{enumerable:!0,get:function(){return __importDefault(line_item_options_1).default}});var line_items_1=require("./resources/line_items");Object.defineProperty(exports,"LineItems",{enumerable:!0,get:function(){return __importDefault(line_items_1).default}});var manual_gateways_1=require("./resources/manual_gateways");Object.defineProperty(exports,"ManualGateways",{enumerable:!0,get:function(){return __importDefault(manual_gateways_1).default}});var manual_tax_calculators_1=require("./resources/manual_tax_calculators");Object.defineProperty(exports,"ManualTaxCalculators",{enumerable:!0,get:function(){return __importDefault(manual_tax_calculators_1).default}});var markets_1=require("./resources/markets");Object.defineProperty(exports,"Markets",{enumerable:!0,get:function(){return __importDefault(markets_1).default}});var merchants_1=require("./resources/merchants");Object.defineProperty(exports,"Merchants",{enumerable:!0,get:function(){return __importDefault(merchants_1).default}});var order_amount_promotion_rules_1=require("./resources/order_amount_promotion_rules");Object.defineProperty(exports,"OrderAmountPromotionRules",{enumerable:!0,get:function(){return __importDefault(order_amount_promotion_rules_1).default}});var order_copies_1=require("./resources/order_copies");Object.defineProperty(exports,"OrderCopies",{enumerable:!0,get:function(){return __importDefault(order_copies_1).default}});var order_subscriptions_1=require("./resources/order_subscriptions");Object.defineProperty(exports,"OrderSubscriptions",{enumerable:!0,get:function(){return __importDefault(order_subscriptions_1).default}});var order_validation_rules_1=require("./resources/order_validation_rules");Object.defineProperty(exports,"OrderValidationRules",{enumerable:!0,get:function(){return __importDefault(order_validation_rules_1).default}});var orders_1=require("./resources/orders");Object.defineProperty(exports,"Orders",{enumerable:!0,get:function(){return __importDefault(orders_1).default}});var organization_1=require("./resources/organization");Object.defineProperty(exports,"Organizations",{enumerable:!0,get:function(){return __importDefault(organization_1).default}});var packages_1=require("./resources/packages");Object.defineProperty(exports,"Packages",{enumerable:!0,get:function(){return __importDefault(packages_1).default}});var parcel_line_items_1=require("./resources/parcel_line_items");Object.defineProperty(exports,"ParcelLineItems",{enumerable:!0,get:function(){return __importDefault(parcel_line_items_1).default}});var parcels_1=require("./resources/parcels");Object.defineProperty(exports,"Parcels",{enumerable:!0,get:function(){return __importDefault(parcels_1).default}});var payment_gateways_1=require("./resources/payment_gateways");Object.defineProperty(exports,"PaymentGateways",{enumerable:!0,get:function(){return __importDefault(payment_gateways_1).default}});var payment_methods_1=require("./resources/payment_methods");Object.defineProperty(exports,"PaymentMethods",{enumerable:!0,get:function(){return __importDefault(payment_methods_1).default}});var paypal_gateways_1=require("./resources/paypal_gateways");Object.defineProperty(exports,"PaypalGateways",{enumerable:!0,get:function(){return __importDefault(paypal_gateways_1).default}});var paypal_payments_1=require("./resources/paypal_payments");Object.defineProperty(exports,"PaypalPayments",{enumerable:!0,get:function(){return __importDefault(paypal_payments_1).default}});var percentage_discount_promotions_1=require("./resources/percentage_discount_promotions");Object.defineProperty(exports,"PercentageDiscountPromotions",{enumerable:!0,get:function(){return __importDefault(percentage_discount_promotions_1).default}});var price_lists_1=require("./resources/price_lists");Object.defineProperty(exports,"PriceLists",{enumerable:!0,get:function(){return __importDefault(price_lists_1).default}});var prices_1=require("./resources/prices");Object.defineProperty(exports,"Prices",{enumerable:!0,get:function(){return __importDefault(prices_1).default}});var promotion_rules_1=require("./resources/promotion_rules");Object.defineProperty(exports,"PromotionRules",{enumerable:!0,get:function(){return __importDefault(promotion_rules_1).default}});var promotions_1=require("./resources/promotions");Object.defineProperty(exports,"Promotions",{enumerable:!0,get:function(){return __importDefault(promotions_1).default}});var refunds_1=require("./resources/refunds");Object.defineProperty(exports,"Refunds",{enumerable:!0,get:function(){return __importDefault(refunds_1).default}});var return_line_items_1=require("./resources/return_line_items");Object.defineProperty(exports,"ReturnLineItems",{enumerable:!0,get:function(){return __importDefault(return_line_items_1).default}});var returns_1=require("./resources/returns");Object.defineProperty(exports,"Returns",{enumerable:!0,get:function(){return __importDefault(returns_1).default}});var shipments_1=require("./resources/shipments");Object.defineProperty(exports,"Shipments",{enumerable:!0,get:function(){return __importDefault(shipments_1).default}});var shipping_categories_1=require("./resources/shipping_categories");Object.defineProperty(exports,"ShippingCategories",{enumerable:!0,get:function(){return __importDefault(shipping_categories_1).default}});var shipping_methods_1=require("./resources/shipping_methods");Object.defineProperty(exports,"ShippingMethods",{enumerable:!0,get:function(){return __importDefault(shipping_methods_1).default}});var shipping_zones_1=require("./resources/shipping_zones");Object.defineProperty(exports,"ShippingZones",{enumerable:!0,get:function(){return __importDefault(shipping_zones_1).default}});var sku_list_items_1=require("./resources/sku_list_items");Object.defineProperty(exports,"SkuListItems",{enumerable:!0,get:function(){return __importDefault(sku_list_items_1).default}});var sku_list_promotion_rules_1=require("./resources/sku_list_promotion_rules");Object.defineProperty(exports,"SkuListPromotionRules",{enumerable:!0,get:function(){return __importDefault(sku_list_promotion_rules_1).default}});var sku_lists_1=require("./resources/sku_lists");Object.defineProperty(exports,"SkuLists",{enumerable:!0,get:function(){return __importDefault(sku_lists_1).default}});var sku_options_1=require("./resources/sku_options");Object.defineProperty(exports,"SkuOptions",{enumerable:!0,get:function(){return __importDefault(sku_options_1).default}});var skus_1=require("./resources/skus");Object.defineProperty(exports,"Skus",{enumerable:!0,get:function(){return __importDefault(skus_1).default}});var stock_items_1=require("./resources/stock_items");Object.defineProperty(exports,"StockItems",{enumerable:!0,get:function(){return __importDefault(stock_items_1).default}});var stock_line_items_1=require("./resources/stock_line_items");Object.defineProperty(exports,"StockLineItems",{enumerable:!0,get:function(){return __importDefault(stock_line_items_1).default}});var stock_locations_1=require("./resources/stock_locations");Object.defineProperty(exports,"StockLocations",{enumerable:!0,get:function(){return __importDefault(stock_locations_1).default}});var stock_transfers_1=require("./resources/stock_transfers");Object.defineProperty(exports,"StockTransfers",{enumerable:!0,get:function(){return __importDefault(stock_transfers_1).default}});var stripe_gateways_1=require("./resources/stripe_gateways");Object.defineProperty(exports,"StripeGateways",{enumerable:!0,get:function(){return __importDefault(stripe_gateways_1).default}});var stripe_payments_1=require("./resources/stripe_payments");Object.defineProperty(exports,"StripePayments",{enumerable:!0,get:function(){return __importDefault(stripe_payments_1).default}});var tax_calculators_1=require("./resources/tax_calculators");Object.defineProperty(exports,"TaxCalculators",{enumerable:!0,get:function(){return __importDefault(tax_calculators_1).default}});var tax_categories_1=require("./resources/tax_categories");Object.defineProperty(exports,"TaxCategories",{enumerable:!0,get:function(){return __importDefault(tax_categories_1).default}});var tax_rules_1=require("./resources/tax_rules");Object.defineProperty(exports,"TaxRules",{enumerable:!0,get:function(){return __importDefault(tax_rules_1).default}});var taxjar_accounts_1=require("./resources/taxjar_accounts");Object.defineProperty(exports,"TaxjarAccounts",{enumerable:!0,get:function(){return __importDefault(taxjar_accounts_1).default}});var transactions_1=require("./resources/transactions");Object.defineProperty(exports,"Transactions",{enumerable:!0,get:function(){return __importDefault(transactions_1).default}});var voids_1=require("./resources/voids");Object.defineProperty(exports,"Voids",{enumerable:!0,get:function(){return __importDefault(voids_1).default}});var webhooks_1=require("./resources/webhooks");Object.defineProperty(exports,"Webhooks",{enumerable:!0,get:function(){return __importDefault(webhooks_1).default}});var wire_transfers_1=require("./resources/wire_transfers");Object.defineProperty(exports,"WireTransfers",{enumerable:!0,get:function(){return __importDefault(wire_transfers_1).default}}),exports.resourceList=["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","coupon_codes_promotion_rules","coupon_recipients","coupons","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_subscriptions","order_validation_rules","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","paypal_gateways","paypal_payments","percentage_discount_promotions","price_lists","prices","promotion_rules","promotions","refunds","return_line_items","returns","shipments","shipping_categories","shipping_methods","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"];
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LineItems=exports.LineItemOptions=exports.KlarnaPayments=exports.KlarnaGateways=exports.InventoryStockLocations=exports.InventoryReturnLocations=exports.InventoryModels=exports.InStockSubscriptions=exports.Imports=exports.GoogleGeocoders=exports.GiftCards=exports.GiftCardRecipients=exports.Geocoders=exports.FreeShippingPromotions=exports.FreeGiftPromotions=exports.FixedPricePromotions=exports.FixedAmountPromotions=exports.ExternalTaxCalculators=exports.ExternalPromotions=exports.ExternalPayments=exports.ExternalGateways=exports.Events=exports.EventCallbacks=exports.DeliveryLeadTimes=exports.Customers=exports.CustomerSubscriptions=exports.CustomerPaymentSources=exports.CustomerPasswordResets=exports.CustomerGroups=exports.CustomerAddresses=exports.Coupons=exports.CouponRecipients=exports.CouponCodesPromotionRules=exports.CheckoutComPayments=exports.CheckoutComGateways=exports.CarrierAccounts=exports.Captures=exports.Bundles=exports.BraintreePayments=exports.BraintreeGateways=exports.BingGeocoders=exports.BillingInfoValidationRules=exports.AvalaraAccounts=exports.Authorizations=exports.Attachments=exports.Applications=exports.AdyenPayments=exports.AdyenGateways=exports.Adjustments=exports.Addresses=void 0,exports.Voids=exports.Transactions=exports.TaxjarAccounts=exports.TaxRules=exports.TaxCategories=exports.TaxCalculators=exports.StripePayments=exports.StripeGateways=exports.StockTransfers=exports.StockLocations=exports.StockLineItems=exports.StockItems=exports.Skus=exports.SkuOptions=exports.SkuLists=exports.SkuListPromotionRules=exports.SkuListItems=exports.ShippingZones=exports.ShippingWeightTiers=exports.ShippingMethods=exports.ShippingMethodTiers=exports.ShippingCategories=exports.Shipments=exports.Returns=exports.ReturnLineItems=exports.Refunds=exports.Promotions=exports.PromotionRules=exports.Prices=exports.PriceVolumeTiers=exports.PriceTiers=exports.PriceLists=exports.PercentageDiscountPromotions=exports.PaypalPayments=exports.PaypalGateways=exports.PaymentMethods=exports.PaymentGateways=exports.Parcels=exports.ParcelLineItems=exports.Packages=exports.Organizations=exports.Orders=exports.OrderValidationRules=exports.OrderSubscriptions=exports.OrderCopies=exports.OrderAmountPromotionRules=exports.Merchants=exports.Markets=exports.ManualTaxCalculators=exports.ManualGateways=void 0,exports.resourceList=exports.WireTransfers=exports.Webhooks=void 0;var addresses_1=require("./resources/addresses");Object.defineProperty(exports,"Addresses",{enumerable:!0,get:function(){return __importDefault(addresses_1).default}});var adjustments_1=require("./resources/adjustments");Object.defineProperty(exports,"Adjustments",{enumerable:!0,get:function(){return __importDefault(adjustments_1).default}});var adyen_gateways_1=require("./resources/adyen_gateways");Object.defineProperty(exports,"AdyenGateways",{enumerable:!0,get:function(){return __importDefault(adyen_gateways_1).default}});var adyen_payments_1=require("./resources/adyen_payments");Object.defineProperty(exports,"AdyenPayments",{enumerable:!0,get:function(){return __importDefault(adyen_payments_1).default}});var application_1=require("./resources/application");Object.defineProperty(exports,"Applications",{enumerable:!0,get:function(){return __importDefault(application_1).default}});var attachments_1=require("./resources/attachments");Object.defineProperty(exports,"Attachments",{enumerable:!0,get:function(){return __importDefault(attachments_1).default}});var authorizations_1=require("./resources/authorizations");Object.defineProperty(exports,"Authorizations",{enumerable:!0,get:function(){return __importDefault(authorizations_1).default}});var avalara_accounts_1=require("./resources/avalara_accounts");Object.defineProperty(exports,"AvalaraAccounts",{enumerable:!0,get:function(){return __importDefault(avalara_accounts_1).default}});var billing_info_validation_rules_1=require("./resources/billing_info_validation_rules");Object.defineProperty(exports,"BillingInfoValidationRules",{enumerable:!0,get:function(){return __importDefault(billing_info_validation_rules_1).default}});var bing_geocoders_1=require("./resources/bing_geocoders");Object.defineProperty(exports,"BingGeocoders",{enumerable:!0,get:function(){return __importDefault(bing_geocoders_1).default}});var braintree_gateways_1=require("./resources/braintree_gateways");Object.defineProperty(exports,"BraintreeGateways",{enumerable:!0,get:function(){return __importDefault(braintree_gateways_1).default}});var braintree_payments_1=require("./resources/braintree_payments");Object.defineProperty(exports,"BraintreePayments",{enumerable:!0,get:function(){return __importDefault(braintree_payments_1).default}});var bundles_1=require("./resources/bundles");Object.defineProperty(exports,"Bundles",{enumerable:!0,get:function(){return __importDefault(bundles_1).default}});var captures_1=require("./resources/captures");Object.defineProperty(exports,"Captures",{enumerable:!0,get:function(){return __importDefault(captures_1).default}});var carrier_accounts_1=require("./resources/carrier_accounts");Object.defineProperty(exports,"CarrierAccounts",{enumerable:!0,get:function(){return __importDefault(carrier_accounts_1).default}});var checkout_com_gateways_1=require("./resources/checkout_com_gateways");Object.defineProperty(exports,"CheckoutComGateways",{enumerable:!0,get:function(){return __importDefault(checkout_com_gateways_1).default}});var checkout_com_payments_1=require("./resources/checkout_com_payments");Object.defineProperty(exports,"CheckoutComPayments",{enumerable:!0,get:function(){return __importDefault(checkout_com_payments_1).default}});var coupon_codes_promotion_rules_1=require("./resources/coupon_codes_promotion_rules");Object.defineProperty(exports,"CouponCodesPromotionRules",{enumerable:!0,get:function(){return __importDefault(coupon_codes_promotion_rules_1).default}});var coupon_recipients_1=require("./resources/coupon_recipients");Object.defineProperty(exports,"CouponRecipients",{enumerable:!0,get:function(){return __importDefault(coupon_recipients_1).default}});var coupons_1=require("./resources/coupons");Object.defineProperty(exports,"Coupons",{enumerable:!0,get:function(){return __importDefault(coupons_1).default}});var customer_addresses_1=require("./resources/customer_addresses");Object.defineProperty(exports,"CustomerAddresses",{enumerable:!0,get:function(){return __importDefault(customer_addresses_1).default}});var customer_groups_1=require("./resources/customer_groups");Object.defineProperty(exports,"CustomerGroups",{enumerable:!0,get:function(){return __importDefault(customer_groups_1).default}});var customer_password_resets_1=require("./resources/customer_password_resets");Object.defineProperty(exports,"CustomerPasswordResets",{enumerable:!0,get:function(){return __importDefault(customer_password_resets_1).default}});var customer_payment_sources_1=require("./resources/customer_payment_sources");Object.defineProperty(exports,"CustomerPaymentSources",{enumerable:!0,get:function(){return __importDefault(customer_payment_sources_1).default}});var customer_subscriptions_1=require("./resources/customer_subscriptions");Object.defineProperty(exports,"CustomerSubscriptions",{enumerable:!0,get:function(){return __importDefault(customer_subscriptions_1).default}});var customers_1=require("./resources/customers");Object.defineProperty(exports,"Customers",{enumerable:!0,get:function(){return __importDefault(customers_1).default}});var delivery_lead_times_1=require("./resources/delivery_lead_times");Object.defineProperty(exports,"DeliveryLeadTimes",{enumerable:!0,get:function(){return __importDefault(delivery_lead_times_1).default}});var event_callbacks_1=require("./resources/event_callbacks");Object.defineProperty(exports,"EventCallbacks",{enumerable:!0,get:function(){return __importDefault(event_callbacks_1).default}});var events_1=require("./resources/events");Object.defineProperty(exports,"Events",{enumerable:!0,get:function(){return __importDefault(events_1).default}});var external_gateways_1=require("./resources/external_gateways");Object.defineProperty(exports,"ExternalGateways",{enumerable:!0,get:function(){return __importDefault(external_gateways_1).default}});var external_payments_1=require("./resources/external_payments");Object.defineProperty(exports,"ExternalPayments",{enumerable:!0,get:function(){return __importDefault(external_payments_1).default}});var external_promotions_1=require("./resources/external_promotions");Object.defineProperty(exports,"ExternalPromotions",{enumerable:!0,get:function(){return __importDefault(external_promotions_1).default}});var external_tax_calculators_1=require("./resources/external_tax_calculators");Object.defineProperty(exports,"ExternalTaxCalculators",{enumerable:!0,get:function(){return __importDefault(external_tax_calculators_1).default}});var fixed_amount_promotions_1=require("./resources/fixed_amount_promotions");Object.defineProperty(exports,"FixedAmountPromotions",{enumerable:!0,get:function(){return __importDefault(fixed_amount_promotions_1).default}});var fixed_price_promotions_1=require("./resources/fixed_price_promotions");Object.defineProperty(exports,"FixedPricePromotions",{enumerable:!0,get:function(){return __importDefault(fixed_price_promotions_1).default}});var free_gift_promotions_1=require("./resources/free_gift_promotions");Object.defineProperty(exports,"FreeGiftPromotions",{enumerable:!0,get:function(){return __importDefault(free_gift_promotions_1).default}});var free_shipping_promotions_1=require("./resources/free_shipping_promotions");Object.defineProperty(exports,"FreeShippingPromotions",{enumerable:!0,get:function(){return __importDefault(free_shipping_promotions_1).default}});var geocoders_1=require("./resources/geocoders");Object.defineProperty(exports,"Geocoders",{enumerable:!0,get:function(){return __importDefault(geocoders_1).default}});var gift_card_recipients_1=require("./resources/gift_card_recipients");Object.defineProperty(exports,"GiftCardRecipients",{enumerable:!0,get:function(){return __importDefault(gift_card_recipients_1).default}});var gift_cards_1=require("./resources/gift_cards");Object.defineProperty(exports,"GiftCards",{enumerable:!0,get:function(){return __importDefault(gift_cards_1).default}});var google_geocoders_1=require("./resources/google_geocoders");Object.defineProperty(exports,"GoogleGeocoders",{enumerable:!0,get:function(){return __importDefault(google_geocoders_1).default}});var imports_1=require("./resources/imports");Object.defineProperty(exports,"Imports",{enumerable:!0,get:function(){return __importDefault(imports_1).default}});var in_stock_subscriptions_1=require("./resources/in_stock_subscriptions");Object.defineProperty(exports,"InStockSubscriptions",{enumerable:!0,get:function(){return __importDefault(in_stock_subscriptions_1).default}});var inventory_models_1=require("./resources/inventory_models");Object.defineProperty(exports,"InventoryModels",{enumerable:!0,get:function(){return __importDefault(inventory_models_1).default}});var inventory_return_locations_1=require("./resources/inventory_return_locations");Object.defineProperty(exports,"InventoryReturnLocations",{enumerable:!0,get:function(){return __importDefault(inventory_return_locations_1).default}});var inventory_stock_locations_1=require("./resources/inventory_stock_locations");Object.defineProperty(exports,"InventoryStockLocations",{enumerable:!0,get:function(){return __importDefault(inventory_stock_locations_1).default}});var klarna_gateways_1=require("./resources/klarna_gateways");Object.defineProperty(exports,"KlarnaGateways",{enumerable:!0,get:function(){return __importDefault(klarna_gateways_1).default}});var klarna_payments_1=require("./resources/klarna_payments");Object.defineProperty(exports,"KlarnaPayments",{enumerable:!0,get:function(){return __importDefault(klarna_payments_1).default}});var line_item_options_1=require("./resources/line_item_options");Object.defineProperty(exports,"LineItemOptions",{enumerable:!0,get:function(){return __importDefault(line_item_options_1).default}});var line_items_1=require("./resources/line_items");Object.defineProperty(exports,"LineItems",{enumerable:!0,get:function(){return __importDefault(line_items_1).default}});var manual_gateways_1=require("./resources/manual_gateways");Object.defineProperty(exports,"ManualGateways",{enumerable:!0,get:function(){return __importDefault(manual_gateways_1).default}});var manual_tax_calculators_1=require("./resources/manual_tax_calculators");Object.defineProperty(exports,"ManualTaxCalculators",{enumerable:!0,get:function(){return __importDefault(manual_tax_calculators_1).default}});var markets_1=require("./resources/markets");Object.defineProperty(exports,"Markets",{enumerable:!0,get:function(){return __importDefault(markets_1).default}});var merchants_1=require("./resources/merchants");Object.defineProperty(exports,"Merchants",{enumerable:!0,get:function(){return __importDefault(merchants_1).default}});var order_amount_promotion_rules_1=require("./resources/order_amount_promotion_rules");Object.defineProperty(exports,"OrderAmountPromotionRules",{enumerable:!0,get:function(){return __importDefault(order_amount_promotion_rules_1).default}});var order_copies_1=require("./resources/order_copies");Object.defineProperty(exports,"OrderCopies",{enumerable:!0,get:function(){return __importDefault(order_copies_1).default}});var order_subscriptions_1=require("./resources/order_subscriptions");Object.defineProperty(exports,"OrderSubscriptions",{enumerable:!0,get:function(){return __importDefault(order_subscriptions_1).default}});var order_validation_rules_1=require("./resources/order_validation_rules");Object.defineProperty(exports,"OrderValidationRules",{enumerable:!0,get:function(){return __importDefault(order_validation_rules_1).default}});var orders_1=require("./resources/orders");Object.defineProperty(exports,"Orders",{enumerable:!0,get:function(){return __importDefault(orders_1).default}});var organization_1=require("./resources/organization");Object.defineProperty(exports,"Organizations",{enumerable:!0,get:function(){return __importDefault(organization_1).default}});var packages_1=require("./resources/packages");Object.defineProperty(exports,"Packages",{enumerable:!0,get:function(){return __importDefault(packages_1).default}});var parcel_line_items_1=require("./resources/parcel_line_items");Object.defineProperty(exports,"ParcelLineItems",{enumerable:!0,get:function(){return __importDefault(parcel_line_items_1).default}});var parcels_1=require("./resources/parcels");Object.defineProperty(exports,"Parcels",{enumerable:!0,get:function(){return __importDefault(parcels_1).default}});var payment_gateways_1=require("./resources/payment_gateways");Object.defineProperty(exports,"PaymentGateways",{enumerable:!0,get:function(){return __importDefault(payment_gateways_1).default}});var payment_methods_1=require("./resources/payment_methods");Object.defineProperty(exports,"PaymentMethods",{enumerable:!0,get:function(){return __importDefault(payment_methods_1).default}});var paypal_gateways_1=require("./resources/paypal_gateways");Object.defineProperty(exports,"PaypalGateways",{enumerable:!0,get:function(){return __importDefault(paypal_gateways_1).default}});var paypal_payments_1=require("./resources/paypal_payments");Object.defineProperty(exports,"PaypalPayments",{enumerable:!0,get:function(){return __importDefault(paypal_payments_1).default}});var percentage_discount_promotions_1=require("./resources/percentage_discount_promotions");Object.defineProperty(exports,"PercentageDiscountPromotions",{enumerable:!0,get:function(){return __importDefault(percentage_discount_promotions_1).default}});var price_lists_1=require("./resources/price_lists");Object.defineProperty(exports,"PriceLists",{enumerable:!0,get:function(){return __importDefault(price_lists_1).default}});var price_tiers_1=require("./resources/price_tiers");Object.defineProperty(exports,"PriceTiers",{enumerable:!0,get:function(){return __importDefault(price_tiers_1).default}});var price_volume_tiers_1=require("./resources/price_volume_tiers");Object.defineProperty(exports,"PriceVolumeTiers",{enumerable:!0,get:function(){return __importDefault(price_volume_tiers_1).default}});var prices_1=require("./resources/prices");Object.defineProperty(exports,"Prices",{enumerable:!0,get:function(){return __importDefault(prices_1).default}});var promotion_rules_1=require("./resources/promotion_rules");Object.defineProperty(exports,"PromotionRules",{enumerable:!0,get:function(){return __importDefault(promotion_rules_1).default}});var promotions_1=require("./resources/promotions");Object.defineProperty(exports,"Promotions",{enumerable:!0,get:function(){return __importDefault(promotions_1).default}});var refunds_1=require("./resources/refunds");Object.defineProperty(exports,"Refunds",{enumerable:!0,get:function(){return __importDefault(refunds_1).default}});var return_line_items_1=require("./resources/return_line_items");Object.defineProperty(exports,"ReturnLineItems",{enumerable:!0,get:function(){return __importDefault(return_line_items_1).default}});var returns_1=require("./resources/returns");Object.defineProperty(exports,"Returns",{enumerable:!0,get:function(){return __importDefault(returns_1).default}});var shipments_1=require("./resources/shipments");Object.defineProperty(exports,"Shipments",{enumerable:!0,get:function(){return __importDefault(shipments_1).default}});var shipping_categories_1=require("./resources/shipping_categories");Object.defineProperty(exports,"ShippingCategories",{enumerable:!0,get:function(){return __importDefault(shipping_categories_1).default}});var shipping_method_tiers_1=require("./resources/shipping_method_tiers");Object.defineProperty(exports,"ShippingMethodTiers",{enumerable:!0,get:function(){return __importDefault(shipping_method_tiers_1).default}});var shipping_methods_1=require("./resources/shipping_methods");Object.defineProperty(exports,"ShippingMethods",{enumerable:!0,get:function(){return __importDefault(shipping_methods_1).default}});var shipping_weight_tiers_1=require("./resources/shipping_weight_tiers");Object.defineProperty(exports,"ShippingWeightTiers",{enumerable:!0,get:function(){return __importDefault(shipping_weight_tiers_1).default}});var shipping_zones_1=require("./resources/shipping_zones");Object.defineProperty(exports,"ShippingZones",{enumerable:!0,get:function(){return __importDefault(shipping_zones_1).default}});var sku_list_items_1=require("./resources/sku_list_items");Object.defineProperty(exports,"SkuListItems",{enumerable:!0,get:function(){return __importDefault(sku_list_items_1).default}});var sku_list_promotion_rules_1=require("./resources/sku_list_promotion_rules");Object.defineProperty(exports,"SkuListPromotionRules",{enumerable:!0,get:function(){return __importDefault(sku_list_promotion_rules_1).default}});var sku_lists_1=require("./resources/sku_lists");Object.defineProperty(exports,"SkuLists",{enumerable:!0,get:function(){return __importDefault(sku_lists_1).default}});var sku_options_1=require("./resources/sku_options");Object.defineProperty(exports,"SkuOptions",{enumerable:!0,get:function(){return __importDefault(sku_options_1).default}});var skus_1=require("./resources/skus");Object.defineProperty(exports,"Skus",{enumerable:!0,get:function(){return __importDefault(skus_1).default}});var stock_items_1=require("./resources/stock_items");Object.defineProperty(exports,"StockItems",{enumerable:!0,get:function(){return __importDefault(stock_items_1).default}});var stock_line_items_1=require("./resources/stock_line_items");Object.defineProperty(exports,"StockLineItems",{enumerable:!0,get:function(){return __importDefault(stock_line_items_1).default}});var stock_locations_1=require("./resources/stock_locations");Object.defineProperty(exports,"StockLocations",{enumerable:!0,get:function(){return __importDefault(stock_locations_1).default}});var stock_transfers_1=require("./resources/stock_transfers");Object.defineProperty(exports,"StockTransfers",{enumerable:!0,get:function(){return __importDefault(stock_transfers_1).default}});var stripe_gateways_1=require("./resources/stripe_gateways");Object.defineProperty(exports,"StripeGateways",{enumerable:!0,get:function(){return __importDefault(stripe_gateways_1).default}});var stripe_payments_1=require("./resources/stripe_payments");Object.defineProperty(exports,"StripePayments",{enumerable:!0,get:function(){return __importDefault(stripe_payments_1).default}});var tax_calculators_1=require("./resources/tax_calculators");Object.defineProperty(exports,"TaxCalculators",{enumerable:!0,get:function(){return __importDefault(tax_calculators_1).default}});var tax_categories_1=require("./resources/tax_categories");Object.defineProperty(exports,"TaxCategories",{enumerable:!0,get:function(){return __importDefault(tax_categories_1).default}});var tax_rules_1=require("./resources/tax_rules");Object.defineProperty(exports,"TaxRules",{enumerable:!0,get:function(){return __importDefault(tax_rules_1).default}});var taxjar_accounts_1=require("./resources/taxjar_accounts");Object.defineProperty(exports,"TaxjarAccounts",{enumerable:!0,get:function(){return __importDefault(taxjar_accounts_1).default}});var transactions_1=require("./resources/transactions");Object.defineProperty(exports,"Transactions",{enumerable:!0,get:function(){return __importDefault(transactions_1).default}});var voids_1=require("./resources/voids");Object.defineProperty(exports,"Voids",{enumerable:!0,get:function(){return __importDefault(voids_1).default}});var webhooks_1=require("./resources/webhooks");Object.defineProperty(exports,"Webhooks",{enumerable:!0,get:function(){return __importDefault(webhooks_1).default}});var wire_transfers_1=require("./resources/wire_transfers");Object.defineProperty(exports,"WireTransfers",{enumerable:!0,get:function(){return __importDefault(wire_transfers_1).default}}),exports.resourceList=["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","coupon_codes_promotion_rules","coupon_recipients","coupons","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","events","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_subscriptions","order_validation_rules","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","paypal_gateways","paypal_payments","percentage_discount_promotions","price_lists","price_tiers","price_volume_tiers","prices","promotion_rules","promotions","refunds","return_line_items","returns","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"];
|
package/lib/cjs/client.d.ts
CHANGED
@@ -1,2 +1,3 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
+
/// <reference types="node" />
|
2
3
|
import{AxiosProxyConfig,Method}from'axios';import type{InterceptorManager}from'./interceptor';import type{Agent as HttpAgent}from'http';import type{Agent as HttpsAgent}from'https';declare type ProxyConfig=AxiosProxyConfig|false;declare type RequestConfig={timeout?:number;params?:{[key:string]:string|number|boolean;};httpAgent?:HttpAgent;httpsAgent?:HttpsAgent;proxy?:ProxyConfig;};declare type ApiClientInitConfig={organization:string;domain?:string;accessToken:string;}&RequestConfig;declare type ApiClientConfig=Partial<ApiClientInitConfig>;declare class ApiClient{#private;static create(options:ApiClientInitConfig):ApiClient;baseUrl:string;interceptors:InterceptorManager;private constructor();config(config:ApiClientConfig):void;request(method:Method,path:string,body?:any,options?:ApiClientConfig):Promise<any>;}export default ApiClient;export{ApiClientInitConfig,ApiClientConfig,RequestConfig};
|
@@ -1 +1 @@
|
|
1
|
-
import*as api from'./api';import{ApiError}from'./error';import type{ErrorInterceptor,InterceptorType,RawResponseReader,RequestInterceptor,ResponseInterceptor}from'./interceptor';import{ResourcesInitConfig}from'./resource';declare type SdkConfig={};declare type CommerceLayerInitConfig=SdkConfig&ResourcesInitConfig;declare type CommerceLayerConfig=Partial<CommerceLayerInitConfig>;declare class CommerceLayerClient{#private;static get openApiSchemaVersion():string;readonly openApiSchemaVersion="2.9.
|
1
|
+
import*as api from'./api';import{ApiError}from'./error';import type{ErrorInterceptor,InterceptorType,RawResponseReader,RequestInterceptor,ResponseInterceptor}from'./interceptor';import{ResourcesInitConfig}from'./resource';declare type SdkConfig={};declare type CommerceLayerInitConfig=SdkConfig&ResourcesInitConfig;declare type CommerceLayerConfig=Partial<CommerceLayerInitConfig>;declare class CommerceLayerClient{#private;static get openApiSchemaVersion():string;readonly openApiSchemaVersion="2.9.5";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;billing_info_validation_rules:api.BillingInfoValidationRules;bing_geocoders:api.BingGeocoders;braintree_gateways:api.BraintreeGateways;braintree_payments:api.BraintreePayments;bundles:api.Bundles;captures:api.Captures;carrier_accounts:api.CarrierAccounts;checkout_com_gateways:api.CheckoutComGateways;checkout_com_payments:api.CheckoutComPayments;coupon_codes_promotion_rules:api.CouponCodesPromotionRules;coupon_recipients:api.CouponRecipients;coupons:api.Coupons;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;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;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_subscriptions:api.OrderSubscriptions;order_validation_rules:api.OrderValidationRules;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;paypal_gateways:api.PaypalGateways;paypal_payments:api.PaypalPayments;percentage_discount_promotions:api.PercentageDiscountPromotions;price_lists:api.PriceLists;price_tiers:api.PriceTiers;price_volume_tiers:api.PriceVolumeTiers;prices:api.Prices;promotion_rules:api.PromotionRules;promotions:api.Promotions;refunds:api.Refunds;return_line_items:api.ReturnLineItems;returns:api.Returns;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_transfers:api.StockTransfers;stripe_gateways:api.StripeGateways;stripe_payments:api.StripePayments;tax_calculators:api.TaxCalculators;tax_categories:api.TaxCategories;tax_rules:api.TaxRules;taxjar_accounts:api.TaxjarAccounts;transactions:api.Transactions;voids:api.Voids;webhooks:api.Webhooks;wire_transfers:api.WireTransfers;constructor(config:CommerceLayerInitConfig);get currentOrganization():string;private localConfig;config(config:CommerceLayerConfig):void;resources():readonly string[];isApiError(error:any):error is ApiError;addRequestInterceptor(onFulfilled?:RequestInterceptor,onRejected?:ErrorInterceptor):number;addResponseInterceptor(onFulfilled?:ResponseInterceptor,onRejected?:ErrorInterceptor):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 type{CommerceLayerClient,CommerceLayerConfig,CommerceLayerInitConfig};
|
package/lib/cjs/commercelayer.js
CHANGED
@@ -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});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="2.9.3";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.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.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.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.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.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.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_subscriptions=new api.OrderSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_validation_rules=new api.OrderValidationRules(__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.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_lists=new api.PriceLists(__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.refunds=new api.Refunds(__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.shipments=new api.Shipments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_categories=new api.ShippingCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_methods=new api.ShippingMethods(__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_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.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.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"))}static get openApiSchemaVersion(){return OPEN_API_SCHEMA_VERSION}get currentOrganization(){return __classPrivateFieldGet(this,_CommerceLayerClient_organization,"f")}localConfig(t){t.organization&&__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f")}config(t){debug("config %o",t),this.localConfig(t),t.organization||(t.organization=this.currentOrganization),__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").config(t)}resources(){return static_1.CommerceLayerStatic.resources()}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){return __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;if(s&&s>=0)return this.removeInterceptor("response",s)}}_CommerceLayerClient_adapter=new WeakMap,_CommerceLayerClient_organization=new WeakMap;const CommerceLayer=e=>new CommerceLayerClient(e);exports.default=CommerceLayer;
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(t,e,s,i){i===void 0&&(i=s);var n=Object.getOwnPropertyDescriptor(e,s);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[s]}}),Object.defineProperty(t,i,n)}:function(t,e,s,i){i===void 0&&(i=s),t[i]=e[s]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),__importStar=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var s in t)s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)&&__createBinding(e,t,s);return __setModuleDefault(e,t),e},__classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(t,e,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 e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(t,s):n?n.value=s:e.set(t,s),s},__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(t,e,s,i){if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?i:s==="a"?i.call(t):i?i.value:e.get(t)},__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},_CommerceLayerClient_adapter,_CommerceLayerClient_organization;Object.defineProperty(exports,"__esModule",{value:!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="2.9.5";class CommerceLayerClient{constructor(e){this.openApiSchemaVersion=OPEN_API_SCHEMA_VERSION,_CommerceLayerClient_adapter.set(this,void 0),_CommerceLayerClient_organization.set(this,void 0),debug("new commercelayer instance %O",e),__classPrivateFieldSet(this,_CommerceLayerClient_adapter,new resource_1.default(e),"f"),__classPrivateFieldSet(this,_CommerceLayerClient_organization,e.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.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.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.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.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.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.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_subscriptions=new api.OrderSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_validation_rules=new api.OrderValidationRules(__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.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_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.refunds=new api.Refunds(__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.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_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.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.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"))}static get openApiSchemaVersion(){return OPEN_API_SCHEMA_VERSION}get currentOrganization(){return __classPrivateFieldGet(this,_CommerceLayerClient_organization,"f")}localConfig(e){e.organization&&__classPrivateFieldSet(this,_CommerceLayerClient_organization,e.organization,"f")}config(e){debug("config %o",e),this.localConfig(e),e.organization||(e.organization=this.currentOrganization),__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").config(e)}resources(){return static_1.CommerceLayerStatic.resources()}isApiError(e){return static_1.CommerceLayerStatic.isApiError(e)}addRequestInterceptor(e,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.request.use(e,s)}addResponseInterceptor(e,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.response.use(e,s)}removeInterceptor(e,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors[e].eject(s)}addRawResponseReader(e){const s={id:void 0,rawResponse:void 0,headers:void 0};function i(r){return s.rawResponse=r?.data,e?.headers&&(s.headers=r.headers),r}const n=this.addResponseInterceptor(i);return s.id=n,s}removeRawResponseReader(e){const s=typeof e=="number"?e:e?.id;if(s&&s>=0)return this.removeInterceptor("response",s)}}_CommerceLayerClient_adapter=new WeakMap,_CommerceLayerClient_organization=new WeakMap;const CommerceLayer=t=>new CommerceLayerClient(t);exports.default=CommerceLayer;
|
package/lib/cjs/model.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export type{Address,AddressCreate,AddressUpdate}from'./resources/addresses';export type{Adjustment,AdjustmentCreate,AdjustmentUpdate}from'./resources/adjustments';export type{AdyenGateway,AdyenGatewayCreate,AdyenGatewayUpdate}from'./resources/adyen_gateways';export type{AdyenPayment,AdyenPaymentCreate,AdyenPaymentUpdate}from'./resources/adyen_payments';export type{Application}from'./resources/application';export type{Attachment,AttachmentCreate,AttachmentUpdate}from'./resources/attachments';export type{Authorization,AuthorizationUpdate}from'./resources/authorizations';export type{AvalaraAccount,AvalaraAccountCreate,AvalaraAccountUpdate}from'./resources/avalara_accounts';export type{BillingInfoValidationRule,BillingInfoValidationRuleCreate,BillingInfoValidationRuleUpdate}from'./resources/billing_info_validation_rules';export type{BingGeocoder,BingGeocoderCreate,BingGeocoderUpdate}from'./resources/bing_geocoders';export type{BraintreeGateway,BraintreeGatewayCreate,BraintreeGatewayUpdate}from'./resources/braintree_gateways';export type{BraintreePayment,BraintreePaymentCreate,BraintreePaymentUpdate}from'./resources/braintree_payments';export type{Bundle,BundleCreate,BundleUpdate}from'./resources/bundles';export type{Capture,CaptureUpdate}from'./resources/captures';export type{CarrierAccount}from'./resources/carrier_accounts';export type{CheckoutComGateway,CheckoutComGatewayCreate,CheckoutComGatewayUpdate}from'./resources/checkout_com_gateways';export type{CheckoutComPayment,CheckoutComPaymentCreate,CheckoutComPaymentUpdate}from'./resources/checkout_com_payments';export type{CouponCodesPromotionRule,CouponCodesPromotionRuleCreate,CouponCodesPromotionRuleUpdate}from'./resources/coupon_codes_promotion_rules';export type{CouponRecipient,CouponRecipientCreate,CouponRecipientUpdate}from'./resources/coupon_recipients';export type{Coupon,CouponCreate,CouponUpdate}from'./resources/coupons';export type{CustomerAddress,CustomerAddressCreate,CustomerAddressUpdate}from'./resources/customer_addresses';export type{CustomerGroup,CustomerGroupCreate,CustomerGroupUpdate}from'./resources/customer_groups';export type{CustomerPasswordReset,CustomerPasswordResetCreate,CustomerPasswordResetUpdate}from'./resources/customer_password_resets';export type{CustomerPaymentSource,CustomerPaymentSourceCreate,CustomerPaymentSourceUpdate}from'./resources/customer_payment_sources';export type{CustomerSubscription,CustomerSubscriptionCreate,CustomerSubscriptionUpdate}from'./resources/customer_subscriptions';export type{Customer,CustomerCreate,CustomerUpdate}from'./resources/customers';export type{DeliveryLeadTime,DeliveryLeadTimeCreate,DeliveryLeadTimeUpdate}from'./resources/delivery_lead_times';export type{EventCallback}from'./resources/event_callbacks';export type{ExternalGateway,ExternalGatewayCreate,ExternalGatewayUpdate}from'./resources/external_gateways';export type{ExternalPayment,ExternalPaymentCreate,ExternalPaymentUpdate}from'./resources/external_payments';export type{ExternalPromotion,ExternalPromotionCreate,ExternalPromotionUpdate}from'./resources/external_promotions';export type{ExternalTaxCalculator,ExternalTaxCalculatorCreate,ExternalTaxCalculatorUpdate}from'./resources/external_tax_calculators';export type{FixedAmountPromotion,FixedAmountPromotionCreate,FixedAmountPromotionUpdate}from'./resources/fixed_amount_promotions';export type{FixedPricePromotion,FixedPricePromotionCreate,FixedPricePromotionUpdate}from'./resources/fixed_price_promotions';export type{FreeGiftPromotion,FreeGiftPromotionCreate,FreeGiftPromotionUpdate}from'./resources/free_gift_promotions';export type{FreeShippingPromotion,FreeShippingPromotionCreate,FreeShippingPromotionUpdate}from'./resources/free_shipping_promotions';export type{Geocoder}from'./resources/geocoders';export type{GiftCardRecipient,GiftCardRecipientCreate,GiftCardRecipientUpdate}from'./resources/gift_card_recipients';export type{GiftCard,GiftCardCreate,GiftCardUpdate}from'./resources/gift_cards';export type{GoogleGeocoder,GoogleGeocoderCreate,GoogleGeocoderUpdate}from'./resources/google_geocoders';export type{Import,ImportCreate}from'./resources/imports';export type{InStockSubscription,InStockSubscriptionCreate,InStockSubscriptionUpdate}from'./resources/in_stock_subscriptions';export type{InventoryModel,InventoryModelCreate,InventoryModelUpdate}from'./resources/inventory_models';export type{InventoryReturnLocation,InventoryReturnLocationCreate,InventoryReturnLocationUpdate}from'./resources/inventory_return_locations';export type{InventoryStockLocation,InventoryStockLocationCreate,InventoryStockLocationUpdate}from'./resources/inventory_stock_locations';export type{KlarnaGateway,KlarnaGatewayCreate,KlarnaGatewayUpdate}from'./resources/klarna_gateways';export type{KlarnaPayment,KlarnaPaymentCreate,KlarnaPaymentUpdate}from'./resources/klarna_payments';export type{LineItemOption,LineItemOptionCreate,LineItemOptionUpdate}from'./resources/line_item_options';export type{LineItem,LineItemCreate,LineItemUpdate}from'./resources/line_items';export type{ManualGateway,ManualGatewayCreate,ManualGatewayUpdate}from'./resources/manual_gateways';export type{ManualTaxCalculator,ManualTaxCalculatorCreate,ManualTaxCalculatorUpdate}from'./resources/manual_tax_calculators';export type{Market,MarketCreate,MarketUpdate}from'./resources/markets';export type{Merchant,MerchantCreate,MerchantUpdate}from'./resources/merchants';export type{OrderAmountPromotionRule,OrderAmountPromotionRuleCreate,OrderAmountPromotionRuleUpdate}from'./resources/order_amount_promotion_rules';export type{OrderCopy,OrderCopyCreate}from'./resources/order_copies';export type{OrderSubscription,OrderSubscriptionCreate,OrderSubscriptionUpdate}from'./resources/order_subscriptions';export type{OrderValidationRule}from'./resources/order_validation_rules';export type{Order,OrderCreate,OrderUpdate}from'./resources/orders';export type{Organization}from'./resources/organization';export type{Package,PackageCreate,PackageUpdate}from'./resources/packages';export type{ParcelLineItem,ParcelLineItemCreate,ParcelLineItemUpdate}from'./resources/parcel_line_items';export type{Parcel,ParcelCreate,ParcelUpdate}from'./resources/parcels';export type{PaymentGateway}from'./resources/payment_gateways';export type{PaymentMethod,PaymentMethodCreate,PaymentMethodUpdate}from'./resources/payment_methods';export type{PaypalGateway,PaypalGatewayCreate,PaypalGatewayUpdate}from'./resources/paypal_gateways';export type{PaypalPayment,PaypalPaymentCreate,PaypalPaymentUpdate}from'./resources/paypal_payments';export type{PercentageDiscountPromotion,PercentageDiscountPromotionCreate,PercentageDiscountPromotionUpdate}from'./resources/percentage_discount_promotions';export type{PriceList,PriceListCreate,PriceListUpdate}from'./resources/price_lists';export type{Price,PriceCreate,PriceUpdate}from'./resources/prices';export type{PromotionRule}from'./resources/promotion_rules';export type{Promotion}from'./resources/promotions';export type{Refund}from'./resources/refunds';export type{ReturnLineItem,ReturnLineItemCreate,ReturnLineItemUpdate}from'./resources/return_line_items';export type{Return,ReturnCreate,ReturnUpdate}from'./resources/returns';export type{Shipment,ShipmentUpdate}from'./resources/shipments';export type{ShippingCategory,ShippingCategoryCreate,ShippingCategoryUpdate}from'./resources/shipping_categories';export type{ShippingMethod,ShippingMethodCreate,ShippingMethodUpdate}from'./resources/shipping_methods';export type{ShippingZone,ShippingZoneCreate,ShippingZoneUpdate}from'./resources/shipping_zones';export type{SkuListItem,SkuListItemCreate,SkuListItemUpdate}from'./resources/sku_list_items';export type{SkuListPromotionRule,SkuListPromotionRuleCreate,SkuListPromotionRuleUpdate}from'./resources/sku_list_promotion_rules';export type{SkuList,SkuListCreate,SkuListUpdate}from'./resources/sku_lists';export type{SkuOption,SkuOptionCreate,SkuOptionUpdate}from'./resources/sku_options';export type{Sku,SkuCreate,SkuUpdate}from'./resources/skus';export type{StockItem,StockItemCreate,StockItemUpdate}from'./resources/stock_items';export type{StockLineItem}from'./resources/stock_line_items';export type{StockLocation,StockLocationCreate,StockLocationUpdate}from'./resources/stock_locations';export type{StockTransfer,StockTransferCreate,StockTransferUpdate}from'./resources/stock_transfers';export type{StripeGateway,StripeGatewayCreate,StripeGatewayUpdate}from'./resources/stripe_gateways';export type{StripePayment,StripePaymentCreate,StripePaymentUpdate}from'./resources/stripe_payments';export type{TaxCalculator}from'./resources/tax_calculators';export type{TaxCategory,TaxCategoryCreate,TaxCategoryUpdate}from'./resources/tax_categories';export type{TaxRule,TaxRuleCreate,TaxRuleUpdate}from'./resources/tax_rules';export type{TaxjarAccount,TaxjarAccountCreate,TaxjarAccountUpdate}from'./resources/taxjar_accounts';export type{Transaction}from'./resources/transactions';export type{Void}from'./resources/voids';export type{Webhook,WebhookCreate,WebhookUpdate}from'./resources/webhooks';export type{WireTransfer,WireTransferCreate,WireTransferUpdate}from'./resources/wire_transfers';
|
1
|
+
export type{Address,AddressCreate,AddressUpdate}from'./resources/addresses';export type{Adjustment,AdjustmentCreate,AdjustmentUpdate}from'./resources/adjustments';export type{AdyenGateway,AdyenGatewayCreate,AdyenGatewayUpdate}from'./resources/adyen_gateways';export type{AdyenPayment,AdyenPaymentCreate,AdyenPaymentUpdate}from'./resources/adyen_payments';export type{Application}from'./resources/application';export type{Attachment,AttachmentCreate,AttachmentUpdate}from'./resources/attachments';export type{Authorization,AuthorizationUpdate}from'./resources/authorizations';export type{AvalaraAccount,AvalaraAccountCreate,AvalaraAccountUpdate}from'./resources/avalara_accounts';export type{BillingInfoValidationRule,BillingInfoValidationRuleCreate,BillingInfoValidationRuleUpdate}from'./resources/billing_info_validation_rules';export type{BingGeocoder,BingGeocoderCreate,BingGeocoderUpdate}from'./resources/bing_geocoders';export type{BraintreeGateway,BraintreeGatewayCreate,BraintreeGatewayUpdate}from'./resources/braintree_gateways';export type{BraintreePayment,BraintreePaymentCreate,BraintreePaymentUpdate}from'./resources/braintree_payments';export type{Bundle,BundleCreate,BundleUpdate}from'./resources/bundles';export type{Capture,CaptureUpdate}from'./resources/captures';export type{CarrierAccount}from'./resources/carrier_accounts';export type{CheckoutComGateway,CheckoutComGatewayCreate,CheckoutComGatewayUpdate}from'./resources/checkout_com_gateways';export type{CheckoutComPayment,CheckoutComPaymentCreate,CheckoutComPaymentUpdate}from'./resources/checkout_com_payments';export type{CouponCodesPromotionRule,CouponCodesPromotionRuleCreate,CouponCodesPromotionRuleUpdate}from'./resources/coupon_codes_promotion_rules';export type{CouponRecipient,CouponRecipientCreate,CouponRecipientUpdate}from'./resources/coupon_recipients';export type{Coupon,CouponCreate,CouponUpdate}from'./resources/coupons';export type{CustomerAddress,CustomerAddressCreate,CustomerAddressUpdate}from'./resources/customer_addresses';export type{CustomerGroup,CustomerGroupCreate,CustomerGroupUpdate}from'./resources/customer_groups';export type{CustomerPasswordReset,CustomerPasswordResetCreate,CustomerPasswordResetUpdate}from'./resources/customer_password_resets';export type{CustomerPaymentSource,CustomerPaymentSourceCreate,CustomerPaymentSourceUpdate}from'./resources/customer_payment_sources';export type{CustomerSubscription,CustomerSubscriptionCreate,CustomerSubscriptionUpdate}from'./resources/customer_subscriptions';export type{Customer,CustomerCreate,CustomerUpdate}from'./resources/customers';export type{DeliveryLeadTime,DeliveryLeadTimeCreate,DeliveryLeadTimeUpdate}from'./resources/delivery_lead_times';export type{EventCallback}from'./resources/event_callbacks';export type{Event}from'./resources/events';export type{ExternalGateway,ExternalGatewayCreate,ExternalGatewayUpdate}from'./resources/external_gateways';export type{ExternalPayment,ExternalPaymentCreate,ExternalPaymentUpdate}from'./resources/external_payments';export type{ExternalPromotion,ExternalPromotionCreate,ExternalPromotionUpdate}from'./resources/external_promotions';export type{ExternalTaxCalculator,ExternalTaxCalculatorCreate,ExternalTaxCalculatorUpdate}from'./resources/external_tax_calculators';export type{FixedAmountPromotion,FixedAmountPromotionCreate,FixedAmountPromotionUpdate}from'./resources/fixed_amount_promotions';export type{FixedPricePromotion,FixedPricePromotionCreate,FixedPricePromotionUpdate}from'./resources/fixed_price_promotions';export type{FreeGiftPromotion,FreeGiftPromotionCreate,FreeGiftPromotionUpdate}from'./resources/free_gift_promotions';export type{FreeShippingPromotion,FreeShippingPromotionCreate,FreeShippingPromotionUpdate}from'./resources/free_shipping_promotions';export type{Geocoder}from'./resources/geocoders';export type{GiftCardRecipient,GiftCardRecipientCreate,GiftCardRecipientUpdate}from'./resources/gift_card_recipients';export type{GiftCard,GiftCardCreate,GiftCardUpdate}from'./resources/gift_cards';export type{GoogleGeocoder,GoogleGeocoderCreate,GoogleGeocoderUpdate}from'./resources/google_geocoders';export type{Import,ImportCreate}from'./resources/imports';export type{InStockSubscription,InStockSubscriptionCreate,InStockSubscriptionUpdate}from'./resources/in_stock_subscriptions';export type{InventoryModel,InventoryModelCreate,InventoryModelUpdate}from'./resources/inventory_models';export type{InventoryReturnLocation,InventoryReturnLocationCreate,InventoryReturnLocationUpdate}from'./resources/inventory_return_locations';export type{InventoryStockLocation,InventoryStockLocationCreate,InventoryStockLocationUpdate}from'./resources/inventory_stock_locations';export type{KlarnaGateway,KlarnaGatewayCreate,KlarnaGatewayUpdate}from'./resources/klarna_gateways';export type{KlarnaPayment,KlarnaPaymentCreate,KlarnaPaymentUpdate}from'./resources/klarna_payments';export type{LineItemOption,LineItemOptionCreate,LineItemOptionUpdate}from'./resources/line_item_options';export type{LineItem,LineItemCreate,LineItemUpdate}from'./resources/line_items';export type{ManualGateway,ManualGatewayCreate,ManualGatewayUpdate}from'./resources/manual_gateways';export type{ManualTaxCalculator,ManualTaxCalculatorCreate,ManualTaxCalculatorUpdate}from'./resources/manual_tax_calculators';export type{Market,MarketCreate,MarketUpdate}from'./resources/markets';export type{Merchant,MerchantCreate,MerchantUpdate}from'./resources/merchants';export type{OrderAmountPromotionRule,OrderAmountPromotionRuleCreate,OrderAmountPromotionRuleUpdate}from'./resources/order_amount_promotion_rules';export type{OrderCopy,OrderCopyCreate}from'./resources/order_copies';export type{OrderSubscription,OrderSubscriptionCreate,OrderSubscriptionUpdate}from'./resources/order_subscriptions';export type{OrderValidationRule}from'./resources/order_validation_rules';export type{Order,OrderCreate,OrderUpdate}from'./resources/orders';export type{Organization}from'./resources/organization';export type{Package,PackageCreate,PackageUpdate}from'./resources/packages';export type{ParcelLineItem,ParcelLineItemCreate,ParcelLineItemUpdate}from'./resources/parcel_line_items';export type{Parcel,ParcelCreate,ParcelUpdate}from'./resources/parcels';export type{PaymentGateway}from'./resources/payment_gateways';export type{PaymentMethod,PaymentMethodCreate,PaymentMethodUpdate}from'./resources/payment_methods';export type{PaypalGateway,PaypalGatewayCreate,PaypalGatewayUpdate}from'./resources/paypal_gateways';export type{PaypalPayment,PaypalPaymentCreate,PaypalPaymentUpdate}from'./resources/paypal_payments';export type{PercentageDiscountPromotion,PercentageDiscountPromotionCreate,PercentageDiscountPromotionUpdate}from'./resources/percentage_discount_promotions';export type{PriceList,PriceListCreate,PriceListUpdate}from'./resources/price_lists';export type{PriceTier}from'./resources/price_tiers';export type{PriceVolumeTier,PriceVolumeTierCreate,PriceVolumeTierUpdate}from'./resources/price_volume_tiers';export type{Price,PriceCreate,PriceUpdate}from'./resources/prices';export type{PromotionRule}from'./resources/promotion_rules';export type{Promotion}from'./resources/promotions';export type{Refund}from'./resources/refunds';export type{ReturnLineItem,ReturnLineItemCreate,ReturnLineItemUpdate}from'./resources/return_line_items';export type{Return,ReturnCreate,ReturnUpdate}from'./resources/returns';export type{Shipment,ShipmentUpdate}from'./resources/shipments';export type{ShippingCategory,ShippingCategoryCreate,ShippingCategoryUpdate}from'./resources/shipping_categories';export type{ShippingMethodTier}from'./resources/shipping_method_tiers';export type{ShippingMethod,ShippingMethodCreate,ShippingMethodUpdate}from'./resources/shipping_methods';export type{ShippingWeightTier,ShippingWeightTierCreate,ShippingWeightTierUpdate}from'./resources/shipping_weight_tiers';export type{ShippingZone,ShippingZoneCreate,ShippingZoneUpdate}from'./resources/shipping_zones';export type{SkuListItem,SkuListItemCreate,SkuListItemUpdate}from'./resources/sku_list_items';export type{SkuListPromotionRule,SkuListPromotionRuleCreate,SkuListPromotionRuleUpdate}from'./resources/sku_list_promotion_rules';export type{SkuList,SkuListCreate,SkuListUpdate}from'./resources/sku_lists';export type{SkuOption,SkuOptionCreate,SkuOptionUpdate}from'./resources/sku_options';export type{Sku,SkuCreate,SkuUpdate}from'./resources/skus';export type{StockItem,StockItemCreate,StockItemUpdate}from'./resources/stock_items';export type{StockLineItem}from'./resources/stock_line_items';export type{StockLocation,StockLocationCreate,StockLocationUpdate}from'./resources/stock_locations';export type{StockTransfer,StockTransferCreate,StockTransferUpdate}from'./resources/stock_transfers';export type{StripeGateway,StripeGatewayCreate,StripeGatewayUpdate}from'./resources/stripe_gateways';export type{StripePayment,StripePaymentCreate,StripePaymentUpdate}from'./resources/stripe_payments';export type{TaxCalculator}from'./resources/tax_calculators';export type{TaxCategory,TaxCategoryCreate,TaxCategoryUpdate}from'./resources/tax_categories';export type{TaxRule,TaxRuleCreate,TaxRuleUpdate}from'./resources/tax_rules';export type{TaxjarAccount,TaxjarAccountCreate,TaxjarAccountUpdate}from'./resources/taxjar_accounts';export type{Transaction}from'./resources/transactions';export type{Void}from'./resources/voids';export type{Webhook,WebhookCreate,WebhookUpdate}from'./resources/webhooks';export type{WireTransfer,WireTransferCreate,WireTransferUpdate}from'./resources/wire_transfers';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel}from'../resource';import type{QueryParamsRetrieve}from'../query';declare type ApplicationRel=ResourceRel&{type:typeof Applications.TYPE;};interface Application extends Resource{name?:string;kind?:string;public_access?:
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel}from'../resource';import type{QueryParamsRetrieve}from'../query';declare type ApplicationRel=ResourceRel&{type:typeof Applications.TYPE;};interface Application extends Resource{name?:string;kind?:string;public_access?:boolean;redirect_uri?:string;scopes?:string;}declare class Applications extends ApiResource{static readonly TYPE:'application';retrieve(params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Application>;isApplication(resource:any):resource is Application;relationship(id:string|ResourceId|null):ApplicationRel;type():string;}export default Applications;export{Application};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{Address}from'./addresses';declare type CustomerAddressRel=ResourceRel&{type:typeof CustomerAddresses.TYPE;};declare type CustomerRel=ResourceRel&{type:'customers';};declare type AddressRel=ResourceRel&{type:'addresses';};interface CustomerAddress extends Resource{name?:string;customer?:Customer;address?:Address;}interface CustomerAddressCreate extends ResourceCreate{customer:CustomerRel;address:AddressRel;}interface CustomerAddressUpdate extends ResourceUpdate{customer?:CustomerRel;address?:AddressRel;}declare class CustomerAddresses extends ApiResource{static readonly TYPE:'customer_addresses';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerAddress>>;create(resource:CustomerAddressCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerAddress>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerAddress>;update(resource:CustomerAddressUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerAddress>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(customerAddressId:string|CustomerAddress,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;address(customerAddressId:string|CustomerAddress,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;isCustomerAddress(resource:any):resource is CustomerAddress;relationship(id:string|ResourceId|null):CustomerAddressRel;type():string;}export default CustomerAddresses;export{CustomerAddress,CustomerAddressCreate,CustomerAddressUpdate};
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{Address}from'./addresses';import type{Event}from'./events';declare type CustomerAddressRel=ResourceRel&{type:typeof CustomerAddresses.TYPE;};declare type CustomerRel=ResourceRel&{type:'customers';};declare type AddressRel=ResourceRel&{type:'addresses';};interface CustomerAddress extends Resource{name?:string;customer?:Customer;address?:Address;events?:Event[];}interface CustomerAddressCreate extends ResourceCreate{customer:CustomerRel;address:AddressRel;}interface CustomerAddressUpdate extends ResourceUpdate{customer?:CustomerRel;address?:AddressRel;}declare class CustomerAddresses extends ApiResource{static readonly TYPE:'customer_addresses';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerAddress>>;create(resource:CustomerAddressCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerAddress>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerAddress>;update(resource:CustomerAddressUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerAddress>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(customerAddressId:string|CustomerAddress,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;address(customerAddressId:string|CustomerAddress,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;events(customerAddressId:string|CustomerAddress,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;isCustomerAddress(resource:any):resource is CustomerAddress;relationship(id:string|ResourceId|null):CustomerAddressRel;type():string;}export default CustomerAddresses;export{CustomerAddress,CustomerAddressCreate,CustomerAddressUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerAddresses extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerAddresses.TYPE},e,t)}async create(e,t,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerAddresses extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerAddresses.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerAddresses.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:CustomerAddresses.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerAddresses.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:CustomerAddresses.TYPE,id:e},t)}async customer(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customers"},`customer_addresses/${r}/customer`,t,s)}async address(e,t,s){const r=e.id||e;return this.resources.fetch({type:"addresses"},`customer_addresses/${r}/address`,t,s)}async events(e,t,s){const r=e.id||e;return this.resources.fetch({type:"events"},`customer_addresses/${r}/events`,t,s)}isCustomerAddress(e){return e.type&&e.type===CustomerAddresses.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerAddresses.TYPE}:{id:e.id,type:CustomerAddresses.TYPE}}type(){return CustomerAddresses.TYPE}}CustomerAddresses.TYPE="customer_addresses",exports.default=CustomerAddresses;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';declare type CustomerPasswordResetRel=ResourceRel&{type:typeof CustomerPasswordResets.TYPE;};interface CustomerPasswordReset extends Resource{customer_email?:string;reset_password_token?:string;reset_password_at?:string;customer?:Customer;}interface CustomerPasswordResetCreate extends ResourceCreate{customer_email:string;}interface CustomerPasswordResetUpdate extends ResourceUpdate{customer_password?:string;_reset_password_token?:string;}declare class CustomerPasswordResets extends ApiResource{static readonly TYPE:'customer_password_resets';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerPasswordReset>>;create(resource:CustomerPasswordResetCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPasswordReset>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPasswordReset>;update(resource:CustomerPasswordResetUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPasswordReset>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(customerPasswordResetId:string|CustomerPasswordReset,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;isCustomerPasswordReset(resource:any):resource is CustomerPasswordReset;relationship(id:string|ResourceId|null):CustomerPasswordResetRel;type():string;}export default CustomerPasswordResets;export{CustomerPasswordReset,CustomerPasswordResetCreate,CustomerPasswordResetUpdate};
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{Event}from'./events';declare type CustomerPasswordResetRel=ResourceRel&{type:typeof CustomerPasswordResets.TYPE;};interface CustomerPasswordReset extends Resource{customer_email?:string;reset_password_token?:string;reset_password_at?:string;customer?:Customer;events?:Event[];}interface CustomerPasswordResetCreate extends ResourceCreate{customer_email:string;}interface CustomerPasswordResetUpdate extends ResourceUpdate{customer_password?:string;_reset_password_token?:string;}declare class CustomerPasswordResets extends ApiResource{static readonly TYPE:'customer_password_resets';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerPasswordReset>>;create(resource:CustomerPasswordResetCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPasswordReset>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPasswordReset>;update(resource:CustomerPasswordResetUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPasswordReset>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(customerPasswordResetId:string|CustomerPasswordReset,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;events(customerPasswordResetId:string|CustomerPasswordReset,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;isCustomerPasswordReset(resource:any):resource is CustomerPasswordReset;relationship(id:string|ResourceId|null):CustomerPasswordResetRel;type():string;}export default CustomerPasswordResets;export{CustomerPasswordReset,CustomerPasswordResetCreate,CustomerPasswordResetUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerPasswordResets extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerPasswordResets.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerPasswordResets.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CustomerPasswordResets.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerPasswordResets.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CustomerPasswordResets.TYPE,id:e},t)}async customer(e,t,r){const
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerPasswordResets extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerPasswordResets.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerPasswordResets.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CustomerPasswordResets.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerPasswordResets.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CustomerPasswordResets.TYPE,id:e},t)}async customer(e,t,r){const s=e.id||e;return this.resources.fetch({type:"customers"},`customer_password_resets/${s}/customer`,t,r)}async events(e,t,r){const s=e.id||e;return this.resources.fetch({type:"events"},`customer_password_resets/${s}/events`,t,r)}isCustomerPasswordReset(e){return e.type&&e.type===CustomerPasswordResets.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerPasswordResets.TYPE}:{id:e.id,type:CustomerPasswordResets.TYPE}}type(){return CustomerPasswordResets.TYPE}}CustomerPasswordResets.TYPE="customer_password_resets",exports.default=CustomerPasswordResets;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';declare type CustomerSubscriptionRel=ResourceRel&{type:typeof CustomerSubscriptions.TYPE;};interface CustomerSubscription extends Resource{customer_email?:string;customer?:Customer;}interface CustomerSubscriptionCreate extends ResourceCreate{customer_email:string;}declare type CustomerSubscriptionUpdate=ResourceUpdate;declare class CustomerSubscriptions extends ApiResource{static readonly TYPE:'customer_subscriptions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerSubscription>>;create(resource:CustomerSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerSubscription>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerSubscription>;update(resource:CustomerSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerSubscription>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(customerSubscriptionId:string|CustomerSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;isCustomerSubscription(resource:any):resource is CustomerSubscription;relationship(id:string|ResourceId|null):CustomerSubscriptionRel;type():string;}export default CustomerSubscriptions;export{CustomerSubscription,CustomerSubscriptionCreate,CustomerSubscriptionUpdate};
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{Event}from'./events';declare type CustomerSubscriptionRel=ResourceRel&{type:typeof CustomerSubscriptions.TYPE;};interface CustomerSubscription extends Resource{customer_email?:string;customer?:Customer;events?:Event[];}interface CustomerSubscriptionCreate extends ResourceCreate{customer_email:string;}declare type CustomerSubscriptionUpdate=ResourceUpdate;declare class CustomerSubscriptions extends ApiResource{static readonly TYPE:'customer_subscriptions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerSubscription>>;create(resource:CustomerSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerSubscription>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerSubscription>;update(resource:CustomerSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerSubscription>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(customerSubscriptionId:string|CustomerSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;events(customerSubscriptionId:string|CustomerSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;isCustomerSubscription(resource:any):resource is CustomerSubscription;relationship(id:string|ResourceId|null):CustomerSubscriptionRel;type():string;}export default CustomerSubscriptions;export{CustomerSubscription,CustomerSubscriptionCreate,CustomerSubscriptionUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerSubscriptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerSubscriptions.TYPE},e,t)}async create(e,t,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerSubscriptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerSubscriptions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerSubscriptions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:CustomerSubscriptions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerSubscriptions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:CustomerSubscriptions.TYPE,id:e},t)}async customer(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customers"},`customer_subscriptions/${r}/customer`,t,s)}async events(e,t,s){const r=e.id||e;return this.resources.fetch({type:"events"},`customer_subscriptions/${r}/events`,t,s)}isCustomerSubscription(e){return e.type&&e.type===CustomerSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerSubscriptions.TYPE}:{id:e.id,type:CustomerSubscriptions.TYPE}}type(){return CustomerSubscriptions.TYPE}}CustomerSubscriptions.TYPE="customer_subscriptions",exports.default=CustomerSubscriptions;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{CustomerGroup}from'./customer_groups';import type{CustomerAddress}from'./customer_addresses';import type{CustomerPaymentSource}from'./customer_payment_sources';import type{CustomerSubscription}from'./customer_subscriptions';import type{Order}from'./orders';import type{OrderSubscription}from'./order_subscriptions';import type{Return}from'./returns';import type{Attachment}from'./attachments';declare type CustomerRel=ResourceRel&{type:typeof Customers.TYPE;};declare type CustomerGroupRel=ResourceRel&{type:'customer_groups';};interface Customer extends Resource{email?:string;status?:string;has_password?:boolean;customer_group?:CustomerGroup;customer_addresses?:CustomerAddress[];customer_payment_sources?:CustomerPaymentSource[];customer_subscriptions?:CustomerSubscription[];orders?:Order[];order_subscriptions?:OrderSubscription[];returns?:Return[];attachments?:Attachment[];}interface CustomerCreate extends ResourceCreate{email:string;password?:string;customer_group?:CustomerGroupRel;}interface CustomerUpdate extends ResourceUpdate{email?:string;password?:string;customer_group?:CustomerGroupRel;}declare class Customers extends ApiResource{static readonly TYPE:'customers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Customer>>;create(resource:CustomerCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;update(resource:CustomerUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer_group(customerId:string|Customer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;customer_addresses(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerAddress>>;customer_payment_sources(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerPaymentSource>>;customer_subscriptions(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerSubscription>>;orders(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Order>>;order_subscriptions(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderSubscription>>;returns(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Return>>;attachments(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isCustomer(resource:any):resource is Customer;relationship(id:string|ResourceId|null):CustomerRel;type():string;}export default Customers;export{Customer,CustomerCreate,CustomerUpdate};
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{CustomerGroup}from'./customer_groups';import type{CustomerAddress}from'./customer_addresses';import type{CustomerPaymentSource}from'./customer_payment_sources';import type{CustomerSubscription}from'./customer_subscriptions';import type{Order}from'./orders';import type{OrderSubscription}from'./order_subscriptions';import type{Return}from'./returns';import type{Attachment}from'./attachments';import type{Event}from'./events';declare type CustomerRel=ResourceRel&{type:typeof Customers.TYPE;};declare type CustomerGroupRel=ResourceRel&{type:'customer_groups';};interface Customer extends Resource{email?:string;status?:string;has_password?:boolean;customer_group?:CustomerGroup;customer_addresses?:CustomerAddress[];customer_payment_sources?:CustomerPaymentSource[];customer_subscriptions?:CustomerSubscription[];orders?:Order[];order_subscriptions?:OrderSubscription[];returns?:Return[];attachments?:Attachment[];events?:Event[];}interface CustomerCreate extends ResourceCreate{email:string;password?:string;customer_group?:CustomerGroupRel;}interface CustomerUpdate extends ResourceUpdate{email?:string;password?:string;customer_group?:CustomerGroupRel;}declare class Customers extends ApiResource{static readonly TYPE:'customers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Customer>>;create(resource:CustomerCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;update(resource:CustomerUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer_group(customerId:string|Customer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;customer_addresses(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerAddress>>;customer_payment_sources(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerPaymentSource>>;customer_subscriptions(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerSubscription>>;orders(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Order>>;order_subscriptions(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderSubscription>>;returns(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Return>>;attachments(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(customerId:string|Customer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;isCustomer(resource:any):resource is Customer;relationship(id:string|ResourceId|null):CustomerRel;type():string;}export default Customers;export{Customer,CustomerCreate,CustomerUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Customers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Customers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Customers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Customers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Customers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Customers.TYPE,id:e},t)}async customer_group(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_groups"},`customers/${r}/customer_group`,t,s)}async customer_addresses(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_addresses"},`customers/${r}/customer_addresses`,t,s)}async customer_payment_sources(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_payment_sources"},`customers/${r}/customer_payment_sources`,t,s)}async customer_subscriptions(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_subscriptions"},`customers/${r}/customer_subscriptions`,t,s)}async orders(e,t,s){const r=e.id||e;return this.resources.fetch({type:"orders"},`customers/${r}/orders`,t,s)}async order_subscriptions(e,t,s){const r=e.id||e;return this.resources.fetch({type:"order_subscriptions"},`customers/${r}/order_subscriptions`,t,s)}async returns(e,t,s){const r=e.id||e;return this.resources.fetch({type:"returns"},`customers/${r}/returns`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`customers/${r}/attachments`,t,s)}isCustomer(e){return e.type&&e.type===Customers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Customers.TYPE}:{id:e.id,type:Customers.TYPE}}type(){return Customers.TYPE}}Customers.TYPE="customers",exports.default=Customers;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Customers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Customers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Customers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Customers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Customers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Customers.TYPE,id:e},t)}async customer_group(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_groups"},`customers/${r}/customer_group`,t,s)}async customer_addresses(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_addresses"},`customers/${r}/customer_addresses`,t,s)}async customer_payment_sources(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_payment_sources"},`customers/${r}/customer_payment_sources`,t,s)}async customer_subscriptions(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_subscriptions"},`customers/${r}/customer_subscriptions`,t,s)}async orders(e,t,s){const r=e.id||e;return this.resources.fetch({type:"orders"},`customers/${r}/orders`,t,s)}async order_subscriptions(e,t,s){const r=e.id||e;return this.resources.fetch({type:"order_subscriptions"},`customers/${r}/order_subscriptions`,t,s)}async returns(e,t,s){const r=e.id||e;return this.resources.fetch({type:"returns"},`customers/${r}/returns`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`customers/${r}/attachments`,t,s)}async events(e,t,s){const r=e.id||e;return this.resources.fetch({type:"events"},`customers/${r}/events`,t,s)}isCustomer(e){return e.type&&e.type===Customers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Customers.TYPE}:{id:e.id,type:Customers.TYPE}}type(){return Customers.TYPE}}Customers.TYPE="customers",exports.default=Customers;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{EventCallback}from'./event_callbacks';import type{Webhook}from'./webhooks';declare type EventRel=ResourceRel&{type:typeof Events.TYPE;};interface Event extends Resource{name?:string;last_event_callbacks?:EventCallback[];webhooks?:Webhook[];}declare class Events extends ApiResource{static readonly TYPE:'events';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Event>;last_event_callbacks(eventId:string|Event,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<EventCallback>>;webhooks(eventId:string|Event,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Webhook>>;isEvent(resource:any):resource is Event;relationship(id:string|ResourceId|null):EventRel;type():string;}export default Events;export{Event};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Events extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Events.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:Events.TYPE,id:e},t,s)}async last_event_callbacks(e,t,s){const r=e.id||e;return this.resources.fetch({type:"event_callbacks"},`events/${r}/last_event_callbacks`,t,s)}async webhooks(e,t,s){const r=e.id||e;return this.resources.fetch({type:"webhooks"},`events/${r}/webhooks`,t,s)}isEvent(e){return e.type&&e.type===Events.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Events.TYPE}:{id:e.id,type:Events.TYPE}}type(){return Events.TYPE}}Events.TYPE="events",exports.default=Events;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{GiftCardRecipient}from'./gift_card_recipients';import type{Attachment}from'./attachments';declare type GiftCardRel=ResourceRel&{type:typeof GiftCards.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type GiftCardRecipientRel=ResourceRel&{type:'gift_card_recipients';};interface GiftCard extends Resource{status?:string;code?:string;currency_code?:string;initial_balance_cents?:number;initial_balance_float?:number;formatted_initial_balance?:string;balance_cents?:number;balance_float?:number;formatted_balance?:string;balance_max_cents?:string;balance_max_float?:number;formatted_balance_max?:string;balance_log?:object[];single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;market?:Market;gift_card_recipient?:GiftCardRecipient;attachments?:Attachment[];}interface GiftCardCreate extends ResourceCreate{code?:string;currency_code?:string;balance_cents:number;balance_max_cents?:string;single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;market?:MarketRel;gift_card_recipient?:GiftCardRecipientRel;}interface GiftCardUpdate extends ResourceUpdate{currency_code?:string;balance_cents?:number;balance_max_cents?:string;single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;_purchase?:boolean;_activate?:boolean;_deactivate?:boolean;_balance_change_cents?:number;market?:MarketRel;gift_card_recipient?:GiftCardRecipientRel;}declare class GiftCards extends ApiResource{static readonly TYPE:'gift_cards';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<GiftCard>>;create(resource:GiftCardCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;update(resource:GiftCardUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;gift_card_recipient(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCardRecipient>;attachments(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isGiftCard(resource:any):resource is GiftCard;relationship(id:string|ResourceId|null):GiftCardRel;type():string;}export default GiftCards;export{GiftCard,GiftCardCreate,GiftCardUpdate};
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{GiftCardRecipient}from'./gift_card_recipients';import type{Attachment}from'./attachments';import type{Event}from'./events';declare type GiftCardRel=ResourceRel&{type:typeof GiftCards.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type GiftCardRecipientRel=ResourceRel&{type:'gift_card_recipients';};interface GiftCard extends Resource{status?:string;code?:string;currency_code?:string;initial_balance_cents?:number;initial_balance_float?:number;formatted_initial_balance?:string;balance_cents?:number;balance_float?:number;formatted_balance?:string;balance_max_cents?:string;balance_max_float?:number;formatted_balance_max?:string;balance_log?:object[];single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;market?:Market;gift_card_recipient?:GiftCardRecipient;attachments?:Attachment[];events?:Event[];}interface GiftCardCreate extends ResourceCreate{code?:string;currency_code?:string;balance_cents:number;balance_max_cents?:string;single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;market?:MarketRel;gift_card_recipient?:GiftCardRecipientRel;}interface GiftCardUpdate extends ResourceUpdate{currency_code?:string;balance_cents?:number;balance_max_cents?:string;single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;_purchase?:boolean;_activate?:boolean;_deactivate?:boolean;_balance_change_cents?:number;market?:MarketRel;gift_card_recipient?:GiftCardRecipientRel;}declare class GiftCards extends ApiResource{static readonly TYPE:'gift_cards';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<GiftCard>>;create(resource:GiftCardCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;update(resource:GiftCardUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;gift_card_recipient(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCardRecipient>;attachments(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;isGiftCard(resource:any):resource is GiftCard;relationship(id:string|ResourceId|null):GiftCardRel;type():string;}export default GiftCards;export{GiftCard,GiftCardCreate,GiftCardUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class GiftCards extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:GiftCards.TYPE},e,t)}async create(e,t,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class GiftCards extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:GiftCards.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:GiftCards.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:GiftCards.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:GiftCards.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:GiftCards.TYPE,id:e},t)}async market(e,t,s){const r=e.id||e;return this.resources.fetch({type:"markets"},`gift_cards/${r}/market`,t,s)}async gift_card_recipient(e,t,s){const r=e.id||e;return this.resources.fetch({type:"gift_card_recipients"},`gift_cards/${r}/gift_card_recipient`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`gift_cards/${r}/attachments`,t,s)}async events(e,t,s){const r=e.id||e;return this.resources.fetch({type:"events"},`gift_cards/${r}/events`,t,s)}isGiftCard(e){return e.type&&e.type===GiftCards.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:GiftCards.TYPE}:{id:e.id,type:GiftCards.TYPE}}type(){return GiftCards.TYPE}}GiftCards.TYPE="gift_cards",exports.default=GiftCards;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';declare type ImportRel=ResourceRel&{type:typeof Imports.TYPE;};interface Import extends Resource{resource_type?:string;parent_resource_id?:string;status?:string;started_at?:string;completed_at?:string;interrupted_at?:string;inputs?:object[];inputs_size?:number;errors_count?:number;warnings_count?:number;destroyed_count?:number;processed_count?:number;errors_log?:object;warnings_log?:object;cleanup_records?:boolean;}interface ImportCreate extends ResourceCreate{resource_type:string;parent_resource_id?:string;inputs:object[];cleanup_records?:boolean;}declare class Imports extends ApiResource{static readonly TYPE:'imports';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Import>>;create(resource:ImportCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Import>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Import>;delete(id:string,options?:ResourcesConfig):Promise<void>;isImport(resource:any):resource is Import;relationship(id:string|ResourceId|null):ImportRel;type():string;}export default Imports;export{Import,ImportCreate};
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Event}from'./events';declare type ImportRel=ResourceRel&{type:typeof Imports.TYPE;};interface Import extends Resource{resource_type?:string;parent_resource_id?:string;status?:string;started_at?:string;completed_at?:string;interrupted_at?:string;inputs?:object[];inputs_size?:number;errors_count?:number;warnings_count?:number;destroyed_count?:number;processed_count?:number;errors_log?:object;warnings_log?:object;cleanup_records?:boolean;events?:Event[];}interface ImportCreate extends ResourceCreate{resource_type:string;parent_resource_id?:string;inputs:object[];cleanup_records?:boolean;}declare class Imports extends ApiResource{static readonly TYPE:'imports';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Import>>;create(resource:ImportCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Import>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Import>;delete(id:string,options?:ResourcesConfig):Promise<void>;events(importId:string|Import,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;isImport(resource:any):resource is Import;relationship(id:string|ResourceId|null):ImportRel;type():string;}export default Imports;export{Import,ImportCreate};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Imports extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Imports.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Imports.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Imports.TYPE,id:e},t,r)}async delete(e,t){await this.resources.delete({type:Imports.TYPE,id:e},t)}isImport(e){return e.type&&e.type===Imports.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Imports.TYPE}:{id:e.id,type:Imports.TYPE}}type(){return Imports.TYPE}}Imports.TYPE="imports",exports.default=Imports;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Imports extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Imports.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Imports.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Imports.TYPE,id:e},t,r)}async delete(e,t){await this.resources.delete({type:Imports.TYPE,id:e},t)}async events(e,t,r){const s=e.id||e;return this.resources.fetch({type:"events"},`imports/${s}/events`,t,r)}isImport(e){return e.type&&e.type===Imports.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Imports.TYPE}:{id:e.id,type:Imports.TYPE}}type(){return Imports.TYPE}}Imports.TYPE="imports",exports.default=Imports;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{Customer}from'./customers';import type{Sku}from'./skus';declare type InStockSubscriptionRel=ResourceRel&{type:typeof InStockSubscriptions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type CustomerRel=ResourceRel&{type:'customers';};declare type SkuRel=ResourceRel&{type:'skus';};interface InStockSubscription extends Resource{status?:string;customer_email?:string;sku_code?:string;stock_threshold?:number;market?:Market;customer?:Customer;sku?:Sku;}interface InStockSubscriptionCreate extends ResourceCreate{customer_email?:string;sku_code?:string;stock_threshold?:number;market:MarketRel;customer:CustomerRel;sku:SkuRel;}interface InStockSubscriptionUpdate extends ResourceUpdate{sku_code?:string;stock_threshold?:number;_activate?:boolean;_deactivate?:boolean;market?:MarketRel;customer?:CustomerRel;sku?:SkuRel;}declare class InStockSubscriptions extends ApiResource{static readonly TYPE:'in_stock_subscriptions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InStockSubscription>>;create(resource:InStockSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;update(resource:InStockSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;customer(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;sku(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;isInStockSubscription(resource:any):resource is InStockSubscription;relationship(id:string|ResourceId|null):InStockSubscriptionRel;type():string;}export default InStockSubscriptions;export{InStockSubscription,InStockSubscriptionCreate,InStockSubscriptionUpdate};
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{Customer}from'./customers';import type{Sku}from'./skus';import type{Event}from'./events';declare type InStockSubscriptionRel=ResourceRel&{type:typeof InStockSubscriptions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type CustomerRel=ResourceRel&{type:'customers';};declare type SkuRel=ResourceRel&{type:'skus';};interface InStockSubscription extends Resource{status?:string;customer_email?:string;sku_code?:string;stock_threshold?:number;market?:Market;customer?:Customer;sku?:Sku;events?:Event[];}interface InStockSubscriptionCreate extends ResourceCreate{customer_email?:string;sku_code?:string;stock_threshold?:number;market:MarketRel;customer:CustomerRel;sku:SkuRel;}interface InStockSubscriptionUpdate extends ResourceUpdate{sku_code?:string;stock_threshold?:number;_activate?:boolean;_deactivate?:boolean;market?:MarketRel;customer?:CustomerRel;sku?:SkuRel;}declare class InStockSubscriptions extends ApiResource{static readonly TYPE:'in_stock_subscriptions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InStockSubscription>>;create(resource:InStockSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;update(resource:InStockSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;customer(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;sku(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;events(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;isInStockSubscription(resource:any):resource is InStockSubscription;relationship(id:string|ResourceId|null):InStockSubscriptionRel;type():string;}export default InStockSubscriptions;export{InStockSubscription,InStockSubscriptionCreate,InStockSubscriptionUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class InStockSubscriptions extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:InStockSubscriptions.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:InStockSubscriptions.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:InStockSubscriptions.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:InStockSubscriptions.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:InStockSubscriptions.TYPE,id:e},s)}async market(e,s,t){const r=e.id||e;return this.resources.fetch({type:"markets"},`in_stock_subscriptions/${r}/market`,s,t)}async customer(e,s,t){const r=e.id||e;return this.resources.fetch({type:"customers"},`in_stock_subscriptions/${r}/customer`,s,t)}async sku(e,s,t){const r=e.id||e;return this.resources.fetch({type:"skus"},`in_stock_subscriptions/${r}/sku`,s,t)}isInStockSubscription(e){return e.type&&e.type===InStockSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:InStockSubscriptions.TYPE}:{id:e.id,type:InStockSubscriptions.TYPE}}type(){return InStockSubscriptions.TYPE}}InStockSubscriptions.TYPE="in_stock_subscriptions",exports.default=InStockSubscriptions;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class InStockSubscriptions extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:InStockSubscriptions.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:InStockSubscriptions.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:InStockSubscriptions.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:InStockSubscriptions.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:InStockSubscriptions.TYPE,id:e},s)}async market(e,s,t){const r=e.id||e;return this.resources.fetch({type:"markets"},`in_stock_subscriptions/${r}/market`,s,t)}async customer(e,s,t){const r=e.id||e;return this.resources.fetch({type:"customers"},`in_stock_subscriptions/${r}/customer`,s,t)}async sku(e,s,t){const r=e.id||e;return this.resources.fetch({type:"skus"},`in_stock_subscriptions/${r}/sku`,s,t)}async events(e,s,t){const r=e.id||e;return this.resources.fetch({type:"events"},`in_stock_subscriptions/${r}/events`,s,t)}isInStockSubscription(e){return e.type&&e.type===InStockSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:InStockSubscriptions.TYPE}:{id:e.id,type:InStockSubscriptions.TYPE}}type(){return InStockSubscriptions.TYPE}}InStockSubscriptions.TYPE="in_stock_subscriptions",exports.default=InStockSubscriptions;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{OrderSubscription}from'./order_subscriptions';declare type OrderCopyRel=ResourceRel&{type:typeof OrderCopies.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface OrderCopy extends Resource{status?:string;started_at?:string;completed_at?:string;failed_at?:string;place_target_order?:boolean;cancel_source_order?:boolean;reuse_wallet?:boolean;errors_log?:object;errors_count?:number;source_order?:Order;target_order?:Order;order_subscription?:OrderSubscription;}interface OrderCopyCreate extends ResourceCreate{place_target_order?:boolean;cancel_source_order?:boolean;reuse_wallet?:boolean;source_order:OrderRel;}declare class OrderCopies extends ApiResource{static readonly TYPE:'order_copies';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderCopy>>;create(resource:OrderCopyCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderCopy>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderCopy>;delete(id:string,options?:ResourcesConfig):Promise<void>;source_order(orderCopyId:string|OrderCopy,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;target_order(orderCopyId:string|OrderCopy,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;order_subscription(orderCopyId:string|OrderCopy,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;isOrderCopy(resource:any):resource is OrderCopy;relationship(id:string|ResourceId|null):OrderCopyRel;type():string;}export default OrderCopies;export{OrderCopy,OrderCopyCreate};
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{OrderSubscription}from'./order_subscriptions';import type{Event}from'./events';declare type OrderCopyRel=ResourceRel&{type:typeof OrderCopies.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface OrderCopy extends Resource{status?:string;started_at?:string;completed_at?:string;failed_at?:string;place_target_order?:boolean;cancel_source_order?:boolean;reuse_wallet?:boolean;errors_log?:object;errors_count?:number;source_order?:Order;target_order?:Order;order_subscription?:OrderSubscription;events?:Event[];}interface OrderCopyCreate extends ResourceCreate{place_target_order?:boolean;cancel_source_order?:boolean;reuse_wallet?:boolean;source_order:OrderRel;}declare class OrderCopies extends ApiResource{static readonly TYPE:'order_copies';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderCopy>>;create(resource:OrderCopyCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderCopy>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderCopy>;delete(id:string,options?:ResourcesConfig):Promise<void>;source_order(orderCopyId:string|OrderCopy,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;target_order(orderCopyId:string|OrderCopy,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;order_subscription(orderCopyId:string|OrderCopy,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;events(orderCopyId:string|OrderCopy,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;isOrderCopy(resource:any):resource is OrderCopy;relationship(id:string|ResourceId|null):OrderCopyRel;type():string;}export default OrderCopies;export{OrderCopy,OrderCopyCreate};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderCopies extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderCopies.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderCopies.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderCopies.TYPE,id:e},r,t)}async delete(e,r){await this.resources.delete({type:OrderCopies.TYPE,id:e},r)}async source_order(e,r,t){const s=e.id||e;return this.resources.fetch({type:"orders"},`order_copies/${s}/source_order`,r,t)}async target_order(e,r,t){const s=e.id||e;return this.resources.fetch({type:"orders"},`order_copies/${s}/target_order`,r,t)}async order_subscription(e,r,t){const s=e.id||e;return this.resources.fetch({type:"order_subscriptions"},`order_copies/${s}/order_subscription`,r,t)}isOrderCopy(e){return e.type&&e.type===OrderCopies.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderCopies.TYPE}:{id:e.id,type:OrderCopies.TYPE}}type(){return OrderCopies.TYPE}}OrderCopies.TYPE="order_copies",exports.default=OrderCopies;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderCopies extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderCopies.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderCopies.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderCopies.TYPE,id:e},r,t)}async delete(e,r){await this.resources.delete({type:OrderCopies.TYPE,id:e},r)}async source_order(e,r,t){const s=e.id||e;return this.resources.fetch({type:"orders"},`order_copies/${s}/source_order`,r,t)}async target_order(e,r,t){const s=e.id||e;return this.resources.fetch({type:"orders"},`order_copies/${s}/target_order`,r,t)}async order_subscription(e,r,t){const s=e.id||e;return this.resources.fetch({type:"order_subscriptions"},`order_copies/${s}/order_subscription`,r,t)}async events(e,r,t){const s=e.id||e;return this.resources.fetch({type:"events"},`order_copies/${s}/events`,r,t)}isOrderCopy(e){return e.type&&e.type===OrderCopies.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderCopies.TYPE}:{id:e.id,type:OrderCopies.TYPE}}type(){return OrderCopies.TYPE}}OrderCopies.TYPE="order_copies",exports.default=OrderCopies;
|