@commercelayer/sdk 5.38.0 → 5.40.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.
Files changed (53) hide show
  1. package/lib/cjs/api.d.ts +1 -1
  2. package/lib/cjs/api.js +1 -1
  3. package/lib/cjs/commercelayer.d.ts +1 -1
  4. package/lib/cjs/commercelayer.js +1 -1
  5. package/lib/cjs/model.d.ts +1 -1
  6. package/lib/cjs/resources/buy_x_pay_y_promotions.d.ts +1 -1
  7. package/lib/cjs/resources/customer_groups.d.ts +1 -1
  8. package/lib/cjs/resources/external_promotions.d.ts +1 -1
  9. package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -1
  10. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -1
  11. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -1
  12. package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -1
  13. package/lib/cjs/resources/line_items.d.ts +1 -1
  14. package/lib/cjs/resources/markets.d.ts +1 -1
  15. package/lib/cjs/resources/markets.js +1 -1
  16. package/lib/cjs/resources/order_subscriptions.d.ts +1 -1
  17. package/lib/cjs/resources/order_subscriptions.js +1 -1
  18. package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -1
  19. package/lib/cjs/resources/price_list_schedulers.d.ts +1 -0
  20. package/lib/cjs/resources/price_list_schedulers.js +1 -0
  21. package/lib/cjs/resources/price_lists.d.ts +1 -1
  22. package/lib/cjs/resources/price_lists.js +1 -1
  23. package/lib/cjs/resources/promotions.d.ts +1 -1
  24. package/lib/cjs/resources/stock_transfers.d.ts +1 -1
  25. package/lib/cjs/resources/stripe_payments.d.ts +1 -1
  26. package/lib/esm/api.d.ts +1 -1
  27. package/lib/esm/api.js +1 -1
  28. package/lib/esm/commercelayer.d.ts +1 -1
  29. package/lib/esm/commercelayer.js +1 -1
  30. package/lib/esm/model.d.ts +1 -1
  31. package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +1 -1
  32. package/lib/esm/resources/customer_groups.d.ts +1 -1
  33. package/lib/esm/resources/external_promotions.d.ts +1 -1
  34. package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -1
  35. package/lib/esm/resources/fixed_price_promotions.d.ts +1 -1
  36. package/lib/esm/resources/free_gift_promotions.d.ts +1 -1
  37. package/lib/esm/resources/free_shipping_promotions.d.ts +1 -1
  38. package/lib/esm/resources/line_items.d.ts +1 -1
  39. package/lib/esm/resources/markets.d.ts +1 -1
  40. package/lib/esm/resources/markets.js +1 -1
  41. package/lib/esm/resources/order_subscriptions.d.ts +1 -1
  42. package/lib/esm/resources/order_subscriptions.js +1 -1
  43. package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -1
  44. package/lib/esm/resources/price_list_schedulers.d.ts +1 -0
  45. package/lib/esm/resources/price_list_schedulers.js +1 -0
  46. package/lib/esm/resources/price_lists.d.ts +1 -1
  47. package/lib/esm/resources/price_lists.js +1 -1
  48. package/lib/esm/resources/promotions.d.ts +1 -1
  49. package/lib/esm/resources/stock_transfers.d.ts +1 -1
  50. package/lib/esm/resources/stripe_payments.d.ts +1 -1
  51. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  52. package/lib/tsconfig.tsbuildinfo +1 -1
  53. package/package.json +5 -5
package/lib/esm/api.js 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 AxerveGateways}from"./resources/axerve_gateways";export{default as AxervePayments}from"./resources/axerve_payments";export{default as BillingInfoValidationRules}from"./resources/billing_info_validation_rules";export{default as BingGeocoders}from"./resources/bing_geocoders";export{default as BraintreeGateways}from"./resources/braintree_gateways";export{default as BraintreePayments}from"./resources/braintree_payments";export{default as Bundles}from"./resources/bundles";export{default as BuyXPayYPromotions}from"./resources/buy_x_pay_y_promotions";export{default as Captures}from"./resources/captures";export{default as CarrierAccounts}from"./resources/carrier_accounts";export{default as CheckoutComGateways}from"./resources/checkout_com_gateways";export{default as CheckoutComPayments}from"./resources/checkout_com_payments";export{default as Cleanups}from"./resources/cleanups";export{default as CouponCodesPromotionRules}from"./resources/coupon_codes_promotion_rules";export{default as CouponRecipients}from"./resources/coupon_recipients";export{default as Coupons}from"./resources/coupons";export{default as CustomPromotionRules}from"./resources/custom_promotion_rules";export{default as CustomerAddresses}from"./resources/customer_addresses";export{default as CustomerGroups}from"./resources/customer_groups";export{default as CustomerPasswordResets}from"./resources/customer_password_resets";export{default as CustomerPaymentSources}from"./resources/customer_payment_sources";export{default as CustomerSubscriptions}from"./resources/customer_subscriptions";export{default as Customers}from"./resources/customers";export{default as DeliveryLeadTimes}from"./resources/delivery_lead_times";export{default as EventCallbacks}from"./resources/event_callbacks";export{default as Events}from"./resources/events";export{default as Exports}from"./resources/exports";export{default as ExternalGateways}from"./resources/external_gateways";export{default as ExternalPayments}from"./resources/external_payments";export{default as ExternalPromotions}from"./resources/external_promotions";export{default as ExternalTaxCalculators}from"./resources/external_tax_calculators";export{default as FixedAmountPromotions}from"./resources/fixed_amount_promotions";export{default as FixedPricePromotions}from"./resources/fixed_price_promotions";export{default as FreeGiftPromotions}from"./resources/free_gift_promotions";export{default as FreeShippingPromotions}from"./resources/free_shipping_promotions";export{default as Geocoders}from"./resources/geocoders";export{default as GiftCardRecipients}from"./resources/gift_card_recipients";export{default as GiftCards}from"./resources/gift_cards";export{default as GoogleGeocoders}from"./resources/google_geocoders";export{default as Imports}from"./resources/imports";export{default as InStockSubscriptions}from"./resources/in_stock_subscriptions";export{default as InventoryModels}from"./resources/inventory_models";export{default as InventoryReturnLocations}from"./resources/inventory_return_locations";export{default as InventoryStockLocations}from"./resources/inventory_stock_locations";export{default as KlarnaGateways}from"./resources/klarna_gateways";export{default as KlarnaPayments}from"./resources/klarna_payments";export{default as LineItemOptions}from"./resources/line_item_options";export{default as LineItems}from"./resources/line_items";export{default as ManualGateways}from"./resources/manual_gateways";export{default as ManualTaxCalculators}from"./resources/manual_tax_calculators";export{default as Markets}from"./resources/markets";export{default as Merchants}from"./resources/merchants";export{default as OrderAmountPromotionRules}from"./resources/order_amount_promotion_rules";export{default as OrderCopies}from"./resources/order_copies";export{default as OrderFactories}from"./resources/order_factories";export{default as OrderSubscriptionItems}from"./resources/order_subscription_items";export{default as OrderSubscriptions}from"./resources/order_subscriptions";export{default as 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 PaymentOptions}from"./resources/payment_options";export{default as PaypalGateways}from"./resources/paypal_gateways";export{default as PaypalPayments}from"./resources/paypal_payments";export{default as PercentageDiscountPromotions}from"./resources/percentage_discount_promotions";export{default as PriceFrequencyTiers}from"./resources/price_frequency_tiers";export{default as PriceLists}from"./resources/price_lists";export{default as PriceTiers}from"./resources/price_tiers";export{default as PriceVolumeTiers}from"./resources/price_volume_tiers";export{default as Prices}from"./resources/prices";export{default as PromotionRules}from"./resources/promotion_rules";export{default as Promotions}from"./resources/promotions";export{default as RecurringOrderCopies}from"./resources/recurring_order_copies";export{default as Refunds}from"./resources/refunds";export{default as ReservedStocks}from"./resources/reserved_stocks";export{default as ResourceErrors}from"./resources/resource_errors";export{default as ReturnLineItems}from"./resources/return_line_items";export{default as Returns}from"./resources/returns";export{default as SatispayGateways}from"./resources/satispay_gateways";export{default as SatispayPayments}from"./resources/satispay_payments";export{default as Shipments}from"./resources/shipments";export{default as ShippingCategories}from"./resources/shipping_categories";export{default as ShippingMethodTiers}from"./resources/shipping_method_tiers";export{default as ShippingMethods}from"./resources/shipping_methods";export{default as ShippingWeightTiers}from"./resources/shipping_weight_tiers";export{default as ShippingZones}from"./resources/shipping_zones";export{default as SkuListItems}from"./resources/sku_list_items";export{default as SkuListPromotionRules}from"./resources/sku_list_promotion_rules";export{default as SkuLists}from"./resources/sku_lists";export{default as SkuOptions}from"./resources/sku_options";export{default as Skus}from"./resources/skus";export{default as StockItems}from"./resources/stock_items";export{default as StockLineItems}from"./resources/stock_line_items";export{default as StockLocations}from"./resources/stock_locations";export{default as StockReservations}from"./resources/stock_reservations";export{default as StockTransfers}from"./resources/stock_transfers";export{default as StripeGateways}from"./resources/stripe_gateways";export{default as StripePayments}from"./resources/stripe_payments";export{default as SubscriptionModels}from"./resources/subscription_models";export{default as Tags}from"./resources/tags";export{default as TaxCalculators}from"./resources/tax_calculators";export{default as TaxCategories}from"./resources/tax_categories";export{default as TaxRules}from"./resources/tax_rules";export{default as TaxjarAccounts}from"./resources/taxjar_accounts";export{default as Transactions}from"./resources/transactions";export{default as Versions}from"./resources/versions";export{default as Voids}from"./resources/voids";export{default as Webhooks}from"./resources/webhooks";export{default as WireTransfers}from"./resources/wire_transfers";export const resourceList=["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","axerve_gateways","axerve_payments","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","buy_x_pay_y_promotions","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","cleanups","coupon_codes_promotion_rules","coupon_recipients","coupons","custom_promotion_rules","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","events","exports","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_factories","order_subscription_items","order_subscriptions","order_validation_rules","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","payment_options","paypal_gateways","paypal_payments","percentage_discount_promotions","price_frequency_tiers","price_lists","price_tiers","price_volume_tiers","prices","promotion_rules","promotions","recurring_order_copies","refunds","reserved_stocks","resource_errors","return_line_items","returns","satispay_gateways","satispay_payments","shipments","shipping_categories","shipping_method_tiers","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_reservations","stock_transfers","stripe_gateways","stripe_payments","subscription_models","tags","tax_calculators","tax_categories","tax_rules","taxjar_accounts","transactions","versions","voids","webhooks","wire_transfers"],singletonList=["application","organization"];
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 AxerveGateways}from"./resources/axerve_gateways";export{default as AxervePayments}from"./resources/axerve_payments";export{default as BillingInfoValidationRules}from"./resources/billing_info_validation_rules";export{default as BingGeocoders}from"./resources/bing_geocoders";export{default as BraintreeGateways}from"./resources/braintree_gateways";export{default as BraintreePayments}from"./resources/braintree_payments";export{default as Bundles}from"./resources/bundles";export{default as BuyXPayYPromotions}from"./resources/buy_x_pay_y_promotions";export{default as Captures}from"./resources/captures";export{default as CarrierAccounts}from"./resources/carrier_accounts";export{default as CheckoutComGateways}from"./resources/checkout_com_gateways";export{default as CheckoutComPayments}from"./resources/checkout_com_payments";export{default as Cleanups}from"./resources/cleanups";export{default as CouponCodesPromotionRules}from"./resources/coupon_codes_promotion_rules";export{default as CouponRecipients}from"./resources/coupon_recipients";export{default as Coupons}from"./resources/coupons";export{default as CustomPromotionRules}from"./resources/custom_promotion_rules";export{default as CustomerAddresses}from"./resources/customer_addresses";export{default as CustomerGroups}from"./resources/customer_groups";export{default as CustomerPasswordResets}from"./resources/customer_password_resets";export{default as CustomerPaymentSources}from"./resources/customer_payment_sources";export{default as CustomerSubscriptions}from"./resources/customer_subscriptions";export{default as Customers}from"./resources/customers";export{default as DeliveryLeadTimes}from"./resources/delivery_lead_times";export{default as EventCallbacks}from"./resources/event_callbacks";export{default as Events}from"./resources/events";export{default as Exports}from"./resources/exports";export{default as ExternalGateways}from"./resources/external_gateways";export{default as ExternalPayments}from"./resources/external_payments";export{default as ExternalPromotions}from"./resources/external_promotions";export{default as ExternalTaxCalculators}from"./resources/external_tax_calculators";export{default as FixedAmountPromotions}from"./resources/fixed_amount_promotions";export{default as FixedPricePromotions}from"./resources/fixed_price_promotions";export{default as FreeGiftPromotions}from"./resources/free_gift_promotions";export{default as FreeShippingPromotions}from"./resources/free_shipping_promotions";export{default as Geocoders}from"./resources/geocoders";export{default as GiftCardRecipients}from"./resources/gift_card_recipients";export{default as GiftCards}from"./resources/gift_cards";export{default as GoogleGeocoders}from"./resources/google_geocoders";export{default as Imports}from"./resources/imports";export{default as InStockSubscriptions}from"./resources/in_stock_subscriptions";export{default as InventoryModels}from"./resources/inventory_models";export{default as InventoryReturnLocations}from"./resources/inventory_return_locations";export{default as InventoryStockLocations}from"./resources/inventory_stock_locations";export{default as KlarnaGateways}from"./resources/klarna_gateways";export{default as KlarnaPayments}from"./resources/klarna_payments";export{default as LineItemOptions}from"./resources/line_item_options";export{default as LineItems}from"./resources/line_items";export{default as ManualGateways}from"./resources/manual_gateways";export{default as ManualTaxCalculators}from"./resources/manual_tax_calculators";export{default as Markets}from"./resources/markets";export{default as Merchants}from"./resources/merchants";export{default as OrderAmountPromotionRules}from"./resources/order_amount_promotion_rules";export{default as OrderCopies}from"./resources/order_copies";export{default as OrderFactories}from"./resources/order_factories";export{default as OrderSubscriptionItems}from"./resources/order_subscription_items";export{default as OrderSubscriptions}from"./resources/order_subscriptions";export{default as 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 PaymentOptions}from"./resources/payment_options";export{default as PaypalGateways}from"./resources/paypal_gateways";export{default as PaypalPayments}from"./resources/paypal_payments";export{default as PercentageDiscountPromotions}from"./resources/percentage_discount_promotions";export{default as PriceFrequencyTiers}from"./resources/price_frequency_tiers";export{default as PriceListSchedulers}from"./resources/price_list_schedulers";export{default as PriceLists}from"./resources/price_lists";export{default as PriceTiers}from"./resources/price_tiers";export{default as PriceVolumeTiers}from"./resources/price_volume_tiers";export{default as Prices}from"./resources/prices";export{default as PromotionRules}from"./resources/promotion_rules";export{default as Promotions}from"./resources/promotions";export{default as RecurringOrderCopies}from"./resources/recurring_order_copies";export{default as Refunds}from"./resources/refunds";export{default as ReservedStocks}from"./resources/reserved_stocks";export{default as ResourceErrors}from"./resources/resource_errors";export{default as ReturnLineItems}from"./resources/return_line_items";export{default as Returns}from"./resources/returns";export{default as SatispayGateways}from"./resources/satispay_gateways";export{default as SatispayPayments}from"./resources/satispay_payments";export{default as Shipments}from"./resources/shipments";export{default as ShippingCategories}from"./resources/shipping_categories";export{default as ShippingMethodTiers}from"./resources/shipping_method_tiers";export{default as ShippingMethods}from"./resources/shipping_methods";export{default as ShippingWeightTiers}from"./resources/shipping_weight_tiers";export{default as ShippingZones}from"./resources/shipping_zones";export{default as SkuListItems}from"./resources/sku_list_items";export{default as SkuListPromotionRules}from"./resources/sku_list_promotion_rules";export{default as SkuLists}from"./resources/sku_lists";export{default as SkuOptions}from"./resources/sku_options";export{default as Skus}from"./resources/skus";export{default as StockItems}from"./resources/stock_items";export{default as StockLineItems}from"./resources/stock_line_items";export{default as StockLocations}from"./resources/stock_locations";export{default as StockReservations}from"./resources/stock_reservations";export{default as StockTransfers}from"./resources/stock_transfers";export{default as StripeGateways}from"./resources/stripe_gateways";export{default as StripePayments}from"./resources/stripe_payments";export{default as SubscriptionModels}from"./resources/subscription_models";export{default as Tags}from"./resources/tags";export{default as TaxCalculators}from"./resources/tax_calculators";export{default as TaxCategories}from"./resources/tax_categories";export{default as TaxRules}from"./resources/tax_rules";export{default as TaxjarAccounts}from"./resources/taxjar_accounts";export{default as Transactions}from"./resources/transactions";export{default as Versions}from"./resources/versions";export{default as Voids}from"./resources/voids";export{default as Webhooks}from"./resources/webhooks";export{default as WireTransfers}from"./resources/wire_transfers";export const resourceList=["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","axerve_gateways","axerve_payments","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","buy_x_pay_y_promotions","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","cleanups","coupon_codes_promotion_rules","coupon_recipients","coupons","custom_promotion_rules","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","events","exports","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_factories","order_subscription_items","order_subscriptions","order_validation_rules","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","payment_options","paypal_gateways","paypal_payments","percentage_discount_promotions","price_frequency_tiers","price_list_schedulers","price_lists","price_tiers","price_volume_tiers","prices","promotion_rules","promotions","recurring_order_copies","refunds","reserved_stocks","resource_errors","return_line_items","returns","satispay_gateways","satispay_payments","shipments","shipping_categories","shipping_method_tiers","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_reservations","stock_transfers","stripe_gateways","stripe_payments","subscription_models","tags","tax_calculators","tax_categories","tax_rules","taxjar_accounts","transactions","versions","voids","webhooks","wire_transfers"],singletonList=["application","organization"];
@@ -1 +1 @@
1
- import*as api from'./api';import type{ApiError}from'./error';import type{ErrorInterceptor,InterceptorType,RawResponseReader,RequestInterceptor,ResponseInterceptor}from'./interceptor';import{type ResourcesInitConfig}from'./resource';declare const OPEN_API_SCHEMA_VERSION="5.2.2";export{OPEN_API_SCHEMA_VERSION};type SdkConfig={};type CommerceLayerInitConfig=SdkConfig&ResourcesInitConfig;type CommerceLayerConfig=Partial<CommerceLayerInitConfig>;declare class CommerceLayerClient{#private;readonly openApiSchemaVersion="5.2.2";addresses:api.Addresses;adjustments:api.Adjustments;adyen_gateways:api.AdyenGateways;adyen_payments:api.AdyenPayments;application:api.Applications;attachments:api.Attachments;authorizations:api.Authorizations;avalara_accounts:api.AvalaraAccounts;axerve_gateways:api.AxerveGateways;axerve_payments:api.AxervePayments;billing_info_validation_rules:api.BillingInfoValidationRules;bing_geocoders:api.BingGeocoders;braintree_gateways:api.BraintreeGateways;braintree_payments:api.BraintreePayments;bundles:api.Bundles;buy_x_pay_y_promotions:api.BuyXPayYPromotions;captures:api.Captures;carrier_accounts:api.CarrierAccounts;checkout_com_gateways:api.CheckoutComGateways;checkout_com_payments:api.CheckoutComPayments;cleanups:api.Cleanups;coupon_codes_promotion_rules:api.CouponCodesPromotionRules;coupon_recipients:api.CouponRecipients;coupons:api.Coupons;custom_promotion_rules:api.CustomPromotionRules;customer_addresses:api.CustomerAddresses;customer_groups:api.CustomerGroups;customer_password_resets:api.CustomerPasswordResets;customer_payment_sources:api.CustomerPaymentSources;customer_subscriptions:api.CustomerSubscriptions;customers:api.Customers;delivery_lead_times:api.DeliveryLeadTimes;event_callbacks:api.EventCallbacks;events:api.Events;exports:api.Exports;external_gateways:api.ExternalGateways;external_payments:api.ExternalPayments;external_promotions:api.ExternalPromotions;external_tax_calculators:api.ExternalTaxCalculators;fixed_amount_promotions:api.FixedAmountPromotions;fixed_price_promotions:api.FixedPricePromotions;free_gift_promotions:api.FreeGiftPromotions;free_shipping_promotions:api.FreeShippingPromotions;geocoders:api.Geocoders;gift_card_recipients:api.GiftCardRecipients;gift_cards:api.GiftCards;google_geocoders:api.GoogleGeocoders;imports:api.Imports;in_stock_subscriptions:api.InStockSubscriptions;inventory_models:api.InventoryModels;inventory_return_locations:api.InventoryReturnLocations;inventory_stock_locations:api.InventoryStockLocations;klarna_gateways:api.KlarnaGateways;klarna_payments:api.KlarnaPayments;line_item_options:api.LineItemOptions;line_items:api.LineItems;manual_gateways:api.ManualGateways;manual_tax_calculators:api.ManualTaxCalculators;markets:api.Markets;merchants:api.Merchants;order_amount_promotion_rules:api.OrderAmountPromotionRules;order_copies:api.OrderCopies;order_factories:api.OrderFactories;order_subscription_items:api.OrderSubscriptionItems;order_subscriptions:api.OrderSubscriptions;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;payment_options:api.PaymentOptions;paypal_gateways:api.PaypalGateways;paypal_payments:api.PaypalPayments;percentage_discount_promotions:api.PercentageDiscountPromotions;price_frequency_tiers:api.PriceFrequencyTiers;price_lists:api.PriceLists;price_tiers:api.PriceTiers;price_volume_tiers:api.PriceVolumeTiers;prices:api.Prices;promotion_rules:api.PromotionRules;promotions:api.Promotions;recurring_order_copies:api.RecurringOrderCopies;refunds:api.Refunds;reserved_stocks:api.ReservedStocks;resource_errors:api.ResourceErrors;return_line_items:api.ReturnLineItems;returns:api.Returns;satispay_gateways:api.SatispayGateways;satispay_payments:api.SatispayPayments;shipments:api.Shipments;shipping_categories:api.ShippingCategories;shipping_method_tiers:api.ShippingMethodTiers;shipping_methods:api.ShippingMethods;shipping_weight_tiers:api.ShippingWeightTiers;shipping_zones:api.ShippingZones;sku_list_items:api.SkuListItems;sku_list_promotion_rules:api.SkuListPromotionRules;sku_lists:api.SkuLists;sku_options:api.SkuOptions;skus:api.Skus;stock_items:api.StockItems;stock_line_items:api.StockLineItems;stock_locations:api.StockLocations;stock_reservations:api.StockReservations;stock_transfers:api.StockTransfers;stripe_gateways:api.StripeGateways;stripe_payments:api.StripePayments;subscription_models:api.SubscriptionModels;tags:api.Tags;tax_calculators:api.TaxCalculators;tax_categories:api.TaxCategories;tax_rules:api.TaxRules;taxjar_accounts:api.TaxjarAccounts;transactions:api.Transactions;versions:api.Versions;voids:api.Voids;webhooks:api.Webhooks;wire_transfers:api.WireTransfers;constructor(config:CommerceLayerInitConfig);get currentOrganization():string;private localConfig;config(config:CommerceLayerConfig):CommerceLayerClient;resources():readonly string[];singletons():readonly string[];isSingleton(resource:api.ResourceTypeLock):boolean;isApiError(error:any):error is ApiError;addRequestInterceptor(onFulfilled?:RequestInterceptor|null,onRejected?:ErrorInterceptor|null):number;addResponseInterceptor(onFulfilled?:ResponseInterceptor|null,onRejected?:ErrorInterceptor|null):number;removeInterceptor(type:InterceptorType,id:number):void;addRawResponseReader(options?:{headers:boolean;}):RawResponseReader;removeRawResponseReader(reader:number|RawResponseReader):void;}declare const CommerceLayer:(config:CommerceLayerInitConfig)=>CommerceLayerClient;export default CommerceLayer;export{CommerceLayer};export type{CommerceLayerClient,CommerceLayerConfig,CommerceLayerInitConfig};
1
+ import*as api from'./api';import type{ApiError}from'./error';import type{ErrorInterceptor,InterceptorType,RawResponseReader,RequestInterceptor,ResponseInterceptor}from'./interceptor';import{type ResourcesInitConfig}from'./resource';declare const OPEN_API_SCHEMA_VERSION="5.3.1";export{OPEN_API_SCHEMA_VERSION};type SdkConfig={};type CommerceLayerInitConfig=SdkConfig&ResourcesInitConfig;type CommerceLayerConfig=Partial<CommerceLayerInitConfig>;declare class CommerceLayerClient{#private;readonly openApiSchemaVersion="5.3.1";addresses:api.Addresses;adjustments:api.Adjustments;adyen_gateways:api.AdyenGateways;adyen_payments:api.AdyenPayments;application:api.Applications;attachments:api.Attachments;authorizations:api.Authorizations;avalara_accounts:api.AvalaraAccounts;axerve_gateways:api.AxerveGateways;axerve_payments:api.AxervePayments;billing_info_validation_rules:api.BillingInfoValidationRules;bing_geocoders:api.BingGeocoders;braintree_gateways:api.BraintreeGateways;braintree_payments:api.BraintreePayments;bundles:api.Bundles;buy_x_pay_y_promotions:api.BuyXPayYPromotions;captures:api.Captures;carrier_accounts:api.CarrierAccounts;checkout_com_gateways:api.CheckoutComGateways;checkout_com_payments:api.CheckoutComPayments;cleanups:api.Cleanups;coupon_codes_promotion_rules:api.CouponCodesPromotionRules;coupon_recipients:api.CouponRecipients;coupons:api.Coupons;custom_promotion_rules:api.CustomPromotionRules;customer_addresses:api.CustomerAddresses;customer_groups:api.CustomerGroups;customer_password_resets:api.CustomerPasswordResets;customer_payment_sources:api.CustomerPaymentSources;customer_subscriptions:api.CustomerSubscriptions;customers:api.Customers;delivery_lead_times:api.DeliveryLeadTimes;event_callbacks:api.EventCallbacks;events:api.Events;exports:api.Exports;external_gateways:api.ExternalGateways;external_payments:api.ExternalPayments;external_promotions:api.ExternalPromotions;external_tax_calculators:api.ExternalTaxCalculators;fixed_amount_promotions:api.FixedAmountPromotions;fixed_price_promotions:api.FixedPricePromotions;free_gift_promotions:api.FreeGiftPromotions;free_shipping_promotions:api.FreeShippingPromotions;geocoders:api.Geocoders;gift_card_recipients:api.GiftCardRecipients;gift_cards:api.GiftCards;google_geocoders:api.GoogleGeocoders;imports:api.Imports;in_stock_subscriptions:api.InStockSubscriptions;inventory_models:api.InventoryModels;inventory_return_locations:api.InventoryReturnLocations;inventory_stock_locations:api.InventoryStockLocations;klarna_gateways:api.KlarnaGateways;klarna_payments:api.KlarnaPayments;line_item_options:api.LineItemOptions;line_items:api.LineItems;manual_gateways:api.ManualGateways;manual_tax_calculators:api.ManualTaxCalculators;markets:api.Markets;merchants:api.Merchants;order_amount_promotion_rules:api.OrderAmountPromotionRules;order_copies:api.OrderCopies;order_factories:api.OrderFactories;order_subscription_items:api.OrderSubscriptionItems;order_subscriptions:api.OrderSubscriptions;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;payment_options:api.PaymentOptions;paypal_gateways:api.PaypalGateways;paypal_payments:api.PaypalPayments;percentage_discount_promotions:api.PercentageDiscountPromotions;price_frequency_tiers:api.PriceFrequencyTiers;price_list_schedulers:api.PriceListSchedulers;price_lists:api.PriceLists;price_tiers:api.PriceTiers;price_volume_tiers:api.PriceVolumeTiers;prices:api.Prices;promotion_rules:api.PromotionRules;promotions:api.Promotions;recurring_order_copies:api.RecurringOrderCopies;refunds:api.Refunds;reserved_stocks:api.ReservedStocks;resource_errors:api.ResourceErrors;return_line_items:api.ReturnLineItems;returns:api.Returns;satispay_gateways:api.SatispayGateways;satispay_payments:api.SatispayPayments;shipments:api.Shipments;shipping_categories:api.ShippingCategories;shipping_method_tiers:api.ShippingMethodTiers;shipping_methods:api.ShippingMethods;shipping_weight_tiers:api.ShippingWeightTiers;shipping_zones:api.ShippingZones;sku_list_items:api.SkuListItems;sku_list_promotion_rules:api.SkuListPromotionRules;sku_lists:api.SkuLists;sku_options:api.SkuOptions;skus:api.Skus;stock_items:api.StockItems;stock_line_items:api.StockLineItems;stock_locations:api.StockLocations;stock_reservations:api.StockReservations;stock_transfers:api.StockTransfers;stripe_gateways:api.StripeGateways;stripe_payments:api.StripePayments;subscription_models:api.SubscriptionModels;tags:api.Tags;tax_calculators:api.TaxCalculators;tax_categories:api.TaxCategories;tax_rules:api.TaxRules;taxjar_accounts:api.TaxjarAccounts;transactions:api.Transactions;versions:api.Versions;voids:api.Voids;webhooks:api.Webhooks;wire_transfers:api.WireTransfers;constructor(config:CommerceLayerInitConfig);get currentOrganization():string;private localConfig;config(config:CommerceLayerConfig):CommerceLayerClient;resources():readonly string[];singletons():readonly string[];isSingleton(resource:api.ResourceTypeLock):boolean;isApiError(error:any):error is ApiError;addRequestInterceptor(onFulfilled?:RequestInterceptor|null,onRejected?:ErrorInterceptor|null):number;addResponseInterceptor(onFulfilled?:ResponseInterceptor|null,onRejected?:ErrorInterceptor|null):number;removeInterceptor(type:InterceptorType,id:number):void;addRawResponseReader(options?:{headers:boolean;}):RawResponseReader;removeRawResponseReader(reader:number|RawResponseReader):void;}declare const CommerceLayer:(config:CommerceLayerInitConfig)=>CommerceLayerClient;export default CommerceLayer;export{CommerceLayer};export type{CommerceLayerClient,CommerceLayerConfig,CommerceLayerInitConfig};
@@ -1 +1 @@
1
- var f=function(r,i,n,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?r!==i||!a:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(r,n):a?a.value=n:i.set(r,n),n},t=function(r,i,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!o:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(r):o?o.value:i.get(r)},s,c;import*as e from"./api";import{CommerceLayerStatic as w}from"./static";import _ from"./resource";import l from"./debug";const p=l("commercelayer"),u="5.2.2";export{u as OPEN_API_SCHEMA_VERSION};class d{constructor(i){this.openApiSchemaVersion=u,s.set(this,void 0),c.set(this,void 0),p("new commercelayer instance %O",i),f(this,s,new _(i),"f"),f(this,c,i.organization,"f"),this.addresses=new e.Addresses(t(this,s,"f")),this.adjustments=new e.Adjustments(t(this,s,"f")),this.adyen_gateways=new e.AdyenGateways(t(this,s,"f")),this.adyen_payments=new e.AdyenPayments(t(this,s,"f")),this.application=new e.Applications(t(this,s,"f")),this.attachments=new e.Attachments(t(this,s,"f")),this.authorizations=new e.Authorizations(t(this,s,"f")),this.avalara_accounts=new e.AvalaraAccounts(t(this,s,"f")),this.axerve_gateways=new e.AxerveGateways(t(this,s,"f")),this.axerve_payments=new e.AxervePayments(t(this,s,"f")),this.billing_info_validation_rules=new e.BillingInfoValidationRules(t(this,s,"f")),this.bing_geocoders=new e.BingGeocoders(t(this,s,"f")),this.braintree_gateways=new e.BraintreeGateways(t(this,s,"f")),this.braintree_payments=new e.BraintreePayments(t(this,s,"f")),this.bundles=new e.Bundles(t(this,s,"f")),this.buy_x_pay_y_promotions=new e.BuyXPayYPromotions(t(this,s,"f")),this.captures=new e.Captures(t(this,s,"f")),this.carrier_accounts=new e.CarrierAccounts(t(this,s,"f")),this.checkout_com_gateways=new e.CheckoutComGateways(t(this,s,"f")),this.checkout_com_payments=new e.CheckoutComPayments(t(this,s,"f")),this.cleanups=new e.Cleanups(t(this,s,"f")),this.coupon_codes_promotion_rules=new e.CouponCodesPromotionRules(t(this,s,"f")),this.coupon_recipients=new e.CouponRecipients(t(this,s,"f")),this.coupons=new e.Coupons(t(this,s,"f")),this.custom_promotion_rules=new e.CustomPromotionRules(t(this,s,"f")),this.customer_addresses=new e.CustomerAddresses(t(this,s,"f")),this.customer_groups=new e.CustomerGroups(t(this,s,"f")),this.customer_password_resets=new e.CustomerPasswordResets(t(this,s,"f")),this.customer_payment_sources=new e.CustomerPaymentSources(t(this,s,"f")),this.customer_subscriptions=new e.CustomerSubscriptions(t(this,s,"f")),this.customers=new e.Customers(t(this,s,"f")),this.delivery_lead_times=new e.DeliveryLeadTimes(t(this,s,"f")),this.event_callbacks=new e.EventCallbacks(t(this,s,"f")),this.events=new e.Events(t(this,s,"f")),this.exports=new e.Exports(t(this,s,"f")),this.external_gateways=new e.ExternalGateways(t(this,s,"f")),this.external_payments=new e.ExternalPayments(t(this,s,"f")),this.external_promotions=new e.ExternalPromotions(t(this,s,"f")),this.external_tax_calculators=new e.ExternalTaxCalculators(t(this,s,"f")),this.fixed_amount_promotions=new e.FixedAmountPromotions(t(this,s,"f")),this.fixed_price_promotions=new e.FixedPricePromotions(t(this,s,"f")),this.free_gift_promotions=new e.FreeGiftPromotions(t(this,s,"f")),this.free_shipping_promotions=new e.FreeShippingPromotions(t(this,s,"f")),this.geocoders=new e.Geocoders(t(this,s,"f")),this.gift_card_recipients=new e.GiftCardRecipients(t(this,s,"f")),this.gift_cards=new e.GiftCards(t(this,s,"f")),this.google_geocoders=new e.GoogleGeocoders(t(this,s,"f")),this.imports=new e.Imports(t(this,s,"f")),this.in_stock_subscriptions=new e.InStockSubscriptions(t(this,s,"f")),this.inventory_models=new e.InventoryModels(t(this,s,"f")),this.inventory_return_locations=new e.InventoryReturnLocations(t(this,s,"f")),this.inventory_stock_locations=new e.InventoryStockLocations(t(this,s,"f")),this.klarna_gateways=new e.KlarnaGateways(t(this,s,"f")),this.klarna_payments=new e.KlarnaPayments(t(this,s,"f")),this.line_item_options=new e.LineItemOptions(t(this,s,"f")),this.line_items=new e.LineItems(t(this,s,"f")),this.manual_gateways=new e.ManualGateways(t(this,s,"f")),this.manual_tax_calculators=new e.ManualTaxCalculators(t(this,s,"f")),this.markets=new e.Markets(t(this,s,"f")),this.merchants=new e.Merchants(t(this,s,"f")),this.order_amount_promotion_rules=new e.OrderAmountPromotionRules(t(this,s,"f")),this.order_copies=new e.OrderCopies(t(this,s,"f")),this.order_factories=new e.OrderFactories(t(this,s,"f")),this.order_subscription_items=new e.OrderSubscriptionItems(t(this,s,"f")),this.order_subscriptions=new e.OrderSubscriptions(t(this,s,"f")),this.order_validation_rules=new e.OrderValidationRules(t(this,s,"f")),this.orders=new e.Orders(t(this,s,"f")),this.organization=new e.Organizations(t(this,s,"f")),this.packages=new e.Packages(t(this,s,"f")),this.parcel_line_items=new e.ParcelLineItems(t(this,s,"f")),this.parcels=new e.Parcels(t(this,s,"f")),this.payment_gateways=new e.PaymentGateways(t(this,s,"f")),this.payment_methods=new e.PaymentMethods(t(this,s,"f")),this.payment_options=new e.PaymentOptions(t(this,s,"f")),this.paypal_gateways=new e.PaypalGateways(t(this,s,"f")),this.paypal_payments=new e.PaypalPayments(t(this,s,"f")),this.percentage_discount_promotions=new e.PercentageDiscountPromotions(t(this,s,"f")),this.price_frequency_tiers=new e.PriceFrequencyTiers(t(this,s,"f")),this.price_lists=new e.PriceLists(t(this,s,"f")),this.price_tiers=new e.PriceTiers(t(this,s,"f")),this.price_volume_tiers=new e.PriceVolumeTiers(t(this,s,"f")),this.prices=new e.Prices(t(this,s,"f")),this.promotion_rules=new e.PromotionRules(t(this,s,"f")),this.promotions=new e.Promotions(t(this,s,"f")),this.recurring_order_copies=new e.RecurringOrderCopies(t(this,s,"f")),this.refunds=new e.Refunds(t(this,s,"f")),this.reserved_stocks=new e.ReservedStocks(t(this,s,"f")),this.resource_errors=new e.ResourceErrors(t(this,s,"f")),this.return_line_items=new e.ReturnLineItems(t(this,s,"f")),this.returns=new e.Returns(t(this,s,"f")),this.satispay_gateways=new e.SatispayGateways(t(this,s,"f")),this.satispay_payments=new e.SatispayPayments(t(this,s,"f")),this.shipments=new e.Shipments(t(this,s,"f")),this.shipping_categories=new e.ShippingCategories(t(this,s,"f")),this.shipping_method_tiers=new e.ShippingMethodTiers(t(this,s,"f")),this.shipping_methods=new e.ShippingMethods(t(this,s,"f")),this.shipping_weight_tiers=new e.ShippingWeightTiers(t(this,s,"f")),this.shipping_zones=new e.ShippingZones(t(this,s,"f")),this.sku_list_items=new e.SkuListItems(t(this,s,"f")),this.sku_list_promotion_rules=new e.SkuListPromotionRules(t(this,s,"f")),this.sku_lists=new e.SkuLists(t(this,s,"f")),this.sku_options=new e.SkuOptions(t(this,s,"f")),this.skus=new e.Skus(t(this,s,"f")),this.stock_items=new e.StockItems(t(this,s,"f")),this.stock_line_items=new e.StockLineItems(t(this,s,"f")),this.stock_locations=new e.StockLocations(t(this,s,"f")),this.stock_reservations=new e.StockReservations(t(this,s,"f")),this.stock_transfers=new e.StockTransfers(t(this,s,"f")),this.stripe_gateways=new e.StripeGateways(t(this,s,"f")),this.stripe_payments=new e.StripePayments(t(this,s,"f")),this.subscription_models=new e.SubscriptionModels(t(this,s,"f")),this.tags=new e.Tags(t(this,s,"f")),this.tax_calculators=new e.TaxCalculators(t(this,s,"f")),this.tax_categories=new e.TaxCategories(t(this,s,"f")),this.tax_rules=new e.TaxRules(t(this,s,"f")),this.taxjar_accounts=new e.TaxjarAccounts(t(this,s,"f")),this.transactions=new e.Transactions(t(this,s,"f")),this.versions=new e.Versions(t(this,s,"f")),this.voids=new e.Voids(t(this,s,"f")),this.webhooks=new e.Webhooks(t(this,s,"f")),this.wire_transfers=new e.WireTransfers(t(this,s,"f"))}get currentOrganization(){return t(this,c,"f")}localConfig(i){i.organization&&f(this,c,i.organization,"f")}config(i){return p("config %o",i),this.localConfig(i),i.organization||(i.organization=this.currentOrganization),t(this,s,"f").config(i),this}resources(){return w.resources()}singletons(){return w.singletons()}isSingleton(i){return w.isSingleton(i)}isApiError(i){return w.isApiError(i)}addRequestInterceptor(i,n){return t(this,s,"f").interceptors.request.use(i,n)}addResponseInterceptor(i,n){return t(this,s,"f").interceptors.response.use(i,n)}removeInterceptor(i,n){t(this,s,"f").interceptors[i].eject(n)}addRawResponseReader(i){const n={id:void 0,rawResponse:void 0,headers:void 0};function o(h){return n.rawResponse=h?.data,i?.headers&&(n.headers=h.headers),h}const a=this.addResponseInterceptor(o);return n.id=a,n}removeRawResponseReader(i){const n=typeof i=="number"?i:i?.id;n&&n>=0&&this.removeInterceptor("response",n)}}s=new WeakMap,c=new WeakMap;const m=r=>new d(r);export default m;export{m as CommerceLayer};
1
+ var f=function(r,i,n,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?r!==i||!a:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(r,n):a?a.value=n:i.set(r,n),n},t=function(r,i,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!o:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(r):o?o.value:i.get(r)},s,c;import*as e from"./api";import{CommerceLayerStatic as w}from"./static";import m from"./resource";import l from"./debug";const p=l("commercelayer"),u="5.3.1";export{u as OPEN_API_SCHEMA_VERSION};class d{constructor(i){this.openApiSchemaVersion=u,s.set(this,void 0),c.set(this,void 0),p("new commercelayer instance %O",i),f(this,s,new m(i),"f"),f(this,c,i.organization,"f"),this.addresses=new e.Addresses(t(this,s,"f")),this.adjustments=new e.Adjustments(t(this,s,"f")),this.adyen_gateways=new e.AdyenGateways(t(this,s,"f")),this.adyen_payments=new e.AdyenPayments(t(this,s,"f")),this.application=new e.Applications(t(this,s,"f")),this.attachments=new e.Attachments(t(this,s,"f")),this.authorizations=new e.Authorizations(t(this,s,"f")),this.avalara_accounts=new e.AvalaraAccounts(t(this,s,"f")),this.axerve_gateways=new e.AxerveGateways(t(this,s,"f")),this.axerve_payments=new e.AxervePayments(t(this,s,"f")),this.billing_info_validation_rules=new e.BillingInfoValidationRules(t(this,s,"f")),this.bing_geocoders=new e.BingGeocoders(t(this,s,"f")),this.braintree_gateways=new e.BraintreeGateways(t(this,s,"f")),this.braintree_payments=new e.BraintreePayments(t(this,s,"f")),this.bundles=new e.Bundles(t(this,s,"f")),this.buy_x_pay_y_promotions=new e.BuyXPayYPromotions(t(this,s,"f")),this.captures=new e.Captures(t(this,s,"f")),this.carrier_accounts=new e.CarrierAccounts(t(this,s,"f")),this.checkout_com_gateways=new e.CheckoutComGateways(t(this,s,"f")),this.checkout_com_payments=new e.CheckoutComPayments(t(this,s,"f")),this.cleanups=new e.Cleanups(t(this,s,"f")),this.coupon_codes_promotion_rules=new e.CouponCodesPromotionRules(t(this,s,"f")),this.coupon_recipients=new e.CouponRecipients(t(this,s,"f")),this.coupons=new e.Coupons(t(this,s,"f")),this.custom_promotion_rules=new e.CustomPromotionRules(t(this,s,"f")),this.customer_addresses=new e.CustomerAddresses(t(this,s,"f")),this.customer_groups=new e.CustomerGroups(t(this,s,"f")),this.customer_password_resets=new e.CustomerPasswordResets(t(this,s,"f")),this.customer_payment_sources=new e.CustomerPaymentSources(t(this,s,"f")),this.customer_subscriptions=new e.CustomerSubscriptions(t(this,s,"f")),this.customers=new e.Customers(t(this,s,"f")),this.delivery_lead_times=new e.DeliveryLeadTimes(t(this,s,"f")),this.event_callbacks=new e.EventCallbacks(t(this,s,"f")),this.events=new e.Events(t(this,s,"f")),this.exports=new e.Exports(t(this,s,"f")),this.external_gateways=new e.ExternalGateways(t(this,s,"f")),this.external_payments=new e.ExternalPayments(t(this,s,"f")),this.external_promotions=new e.ExternalPromotions(t(this,s,"f")),this.external_tax_calculators=new e.ExternalTaxCalculators(t(this,s,"f")),this.fixed_amount_promotions=new e.FixedAmountPromotions(t(this,s,"f")),this.fixed_price_promotions=new e.FixedPricePromotions(t(this,s,"f")),this.free_gift_promotions=new e.FreeGiftPromotions(t(this,s,"f")),this.free_shipping_promotions=new e.FreeShippingPromotions(t(this,s,"f")),this.geocoders=new e.Geocoders(t(this,s,"f")),this.gift_card_recipients=new e.GiftCardRecipients(t(this,s,"f")),this.gift_cards=new e.GiftCards(t(this,s,"f")),this.google_geocoders=new e.GoogleGeocoders(t(this,s,"f")),this.imports=new e.Imports(t(this,s,"f")),this.in_stock_subscriptions=new e.InStockSubscriptions(t(this,s,"f")),this.inventory_models=new e.InventoryModels(t(this,s,"f")),this.inventory_return_locations=new e.InventoryReturnLocations(t(this,s,"f")),this.inventory_stock_locations=new e.InventoryStockLocations(t(this,s,"f")),this.klarna_gateways=new e.KlarnaGateways(t(this,s,"f")),this.klarna_payments=new e.KlarnaPayments(t(this,s,"f")),this.line_item_options=new e.LineItemOptions(t(this,s,"f")),this.line_items=new e.LineItems(t(this,s,"f")),this.manual_gateways=new e.ManualGateways(t(this,s,"f")),this.manual_tax_calculators=new e.ManualTaxCalculators(t(this,s,"f")),this.markets=new e.Markets(t(this,s,"f")),this.merchants=new e.Merchants(t(this,s,"f")),this.order_amount_promotion_rules=new e.OrderAmountPromotionRules(t(this,s,"f")),this.order_copies=new e.OrderCopies(t(this,s,"f")),this.order_factories=new e.OrderFactories(t(this,s,"f")),this.order_subscription_items=new e.OrderSubscriptionItems(t(this,s,"f")),this.order_subscriptions=new e.OrderSubscriptions(t(this,s,"f")),this.order_validation_rules=new e.OrderValidationRules(t(this,s,"f")),this.orders=new e.Orders(t(this,s,"f")),this.organization=new e.Organizations(t(this,s,"f")),this.packages=new e.Packages(t(this,s,"f")),this.parcel_line_items=new e.ParcelLineItems(t(this,s,"f")),this.parcels=new e.Parcels(t(this,s,"f")),this.payment_gateways=new e.PaymentGateways(t(this,s,"f")),this.payment_methods=new e.PaymentMethods(t(this,s,"f")),this.payment_options=new e.PaymentOptions(t(this,s,"f")),this.paypal_gateways=new e.PaypalGateways(t(this,s,"f")),this.paypal_payments=new e.PaypalPayments(t(this,s,"f")),this.percentage_discount_promotions=new e.PercentageDiscountPromotions(t(this,s,"f")),this.price_frequency_tiers=new e.PriceFrequencyTiers(t(this,s,"f")),this.price_list_schedulers=new e.PriceListSchedulers(t(this,s,"f")),this.price_lists=new e.PriceLists(t(this,s,"f")),this.price_tiers=new e.PriceTiers(t(this,s,"f")),this.price_volume_tiers=new e.PriceVolumeTiers(t(this,s,"f")),this.prices=new e.Prices(t(this,s,"f")),this.promotion_rules=new e.PromotionRules(t(this,s,"f")),this.promotions=new e.Promotions(t(this,s,"f")),this.recurring_order_copies=new e.RecurringOrderCopies(t(this,s,"f")),this.refunds=new e.Refunds(t(this,s,"f")),this.reserved_stocks=new e.ReservedStocks(t(this,s,"f")),this.resource_errors=new e.ResourceErrors(t(this,s,"f")),this.return_line_items=new e.ReturnLineItems(t(this,s,"f")),this.returns=new e.Returns(t(this,s,"f")),this.satispay_gateways=new e.SatispayGateways(t(this,s,"f")),this.satispay_payments=new e.SatispayPayments(t(this,s,"f")),this.shipments=new e.Shipments(t(this,s,"f")),this.shipping_categories=new e.ShippingCategories(t(this,s,"f")),this.shipping_method_tiers=new e.ShippingMethodTiers(t(this,s,"f")),this.shipping_methods=new e.ShippingMethods(t(this,s,"f")),this.shipping_weight_tiers=new e.ShippingWeightTiers(t(this,s,"f")),this.shipping_zones=new e.ShippingZones(t(this,s,"f")),this.sku_list_items=new e.SkuListItems(t(this,s,"f")),this.sku_list_promotion_rules=new e.SkuListPromotionRules(t(this,s,"f")),this.sku_lists=new e.SkuLists(t(this,s,"f")),this.sku_options=new e.SkuOptions(t(this,s,"f")),this.skus=new e.Skus(t(this,s,"f")),this.stock_items=new e.StockItems(t(this,s,"f")),this.stock_line_items=new e.StockLineItems(t(this,s,"f")),this.stock_locations=new e.StockLocations(t(this,s,"f")),this.stock_reservations=new e.StockReservations(t(this,s,"f")),this.stock_transfers=new e.StockTransfers(t(this,s,"f")),this.stripe_gateways=new e.StripeGateways(t(this,s,"f")),this.stripe_payments=new e.StripePayments(t(this,s,"f")),this.subscription_models=new e.SubscriptionModels(t(this,s,"f")),this.tags=new e.Tags(t(this,s,"f")),this.tax_calculators=new e.TaxCalculators(t(this,s,"f")),this.tax_categories=new e.TaxCategories(t(this,s,"f")),this.tax_rules=new e.TaxRules(t(this,s,"f")),this.taxjar_accounts=new e.TaxjarAccounts(t(this,s,"f")),this.transactions=new e.Transactions(t(this,s,"f")),this.versions=new e.Versions(t(this,s,"f")),this.voids=new e.Voids(t(this,s,"f")),this.webhooks=new e.Webhooks(t(this,s,"f")),this.wire_transfers=new e.WireTransfers(t(this,s,"f"))}get currentOrganization(){return t(this,c,"f")}localConfig(i){i.organization&&f(this,c,i.organization,"f")}config(i){return p("config %o",i),this.localConfig(i),i.organization||(i.organization=this.currentOrganization),t(this,s,"f").config(i),this}resources(){return w.resources()}singletons(){return w.singletons()}isSingleton(i){return w.isSingleton(i)}isApiError(i){return w.isApiError(i)}addRequestInterceptor(i,n){return t(this,s,"f").interceptors.request.use(i,n)}addResponseInterceptor(i,n){return t(this,s,"f").interceptors.response.use(i,n)}removeInterceptor(i,n){t(this,s,"f").interceptors[i].eject(n)}addRawResponseReader(i){const n={id:void 0,rawResponse:void 0,headers:void 0};function o(h){return n.rawResponse=h?.data,i?.headers&&(n.headers=h.headers),h}const a=this.addResponseInterceptor(o);return n.id=a,n}removeRawResponseReader(i){const n=typeof i=="number"?i:i?.id;n&&n>=0&&this.removeInterceptor("response",n)}}s=new WeakMap,c=new WeakMap;const _=r=>new d(r);export default _;export{_ as CommerceLayer};
@@ -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{AxerveGateway,AxerveGatewayCreate,AxerveGatewayUpdate}from'./resources/axerve_gateways';export type{AxervePayment,AxervePaymentCreate,AxervePaymentUpdate}from'./resources/axerve_payments';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{BuyXPayYPromotion,BuyXPayYPromotionCreate,BuyXPayYPromotionUpdate}from'./resources/buy_x_pay_y_promotions';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{Cleanup,CleanupCreate}from'./resources/cleanups';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{CustomPromotionRule,CustomPromotionRuleCreate,CustomPromotionRuleUpdate}from'./resources/custom_promotion_rules';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{Export,ExportCreate}from'./resources/exports';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,OrderCopyUpdate}from'./resources/order_copies';export type{OrderFactory}from'./resources/order_factories';export type{OrderSubscriptionItem,OrderSubscriptionItemCreate,OrderSubscriptionItemUpdate}from'./resources/order_subscription_items';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{PaymentOption,PaymentOptionCreate,PaymentOptionUpdate}from'./resources/payment_options';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{PriceFrequencyTier,PriceFrequencyTierCreate,PriceFrequencyTierUpdate}from'./resources/price_frequency_tiers';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{RecurringOrderCopy,RecurringOrderCopyCreate,RecurringOrderCopyUpdate}from'./resources/recurring_order_copies';export type{Refund}from'./resources/refunds';export type{ReservedStock}from'./resources/reserved_stocks';export type{ResourceError}from'./resources/resource_errors';export type{ReturnLineItem,ReturnLineItemCreate,ReturnLineItemUpdate}from'./resources/return_line_items';export type{Return,ReturnCreate,ReturnUpdate}from'./resources/returns';export type{SatispayGateway,SatispayGatewayCreate,SatispayGatewayUpdate}from'./resources/satispay_gateways';export type{SatispayPayment,SatispayPaymentCreate,SatispayPaymentUpdate}from'./resources/satispay_payments';export type{Shipment,ShipmentCreate,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,StockLineItemCreate,StockLineItemUpdate}from'./resources/stock_line_items';export type{StockLocation,StockLocationCreate,StockLocationUpdate}from'./resources/stock_locations';export type{StockReservation,StockReservationCreate,StockReservationUpdate}from'./resources/stock_reservations';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{SubscriptionModel,SubscriptionModelCreate,SubscriptionModelUpdate}from'./resources/subscription_models';export type{Tag,TagCreate,TagUpdate}from'./resources/tags';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{Version}from'./resources/versions';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{AxerveGateway,AxerveGatewayCreate,AxerveGatewayUpdate}from'./resources/axerve_gateways';export type{AxervePayment,AxervePaymentCreate,AxervePaymentUpdate}from'./resources/axerve_payments';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{BuyXPayYPromotion,BuyXPayYPromotionCreate,BuyXPayYPromotionUpdate}from'./resources/buy_x_pay_y_promotions';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{Cleanup,CleanupCreate}from'./resources/cleanups';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{CustomPromotionRule,CustomPromotionRuleCreate,CustomPromotionRuleUpdate}from'./resources/custom_promotion_rules';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{Export,ExportCreate}from'./resources/exports';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,OrderCopyUpdate}from'./resources/order_copies';export type{OrderFactory}from'./resources/order_factories';export type{OrderSubscriptionItem,OrderSubscriptionItemCreate,OrderSubscriptionItemUpdate}from'./resources/order_subscription_items';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{PaymentOption,PaymentOptionCreate,PaymentOptionUpdate}from'./resources/payment_options';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{PriceFrequencyTier,PriceFrequencyTierCreate,PriceFrequencyTierUpdate}from'./resources/price_frequency_tiers';export type{PriceListScheduler,PriceListSchedulerCreate,PriceListSchedulerUpdate}from'./resources/price_list_schedulers';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{RecurringOrderCopy,RecurringOrderCopyCreate,RecurringOrderCopyUpdate}from'./resources/recurring_order_copies';export type{Refund}from'./resources/refunds';export type{ReservedStock}from'./resources/reserved_stocks';export type{ResourceError}from'./resources/resource_errors';export type{ReturnLineItem,ReturnLineItemCreate,ReturnLineItemUpdate}from'./resources/return_line_items';export type{Return,ReturnCreate,ReturnUpdate}from'./resources/returns';export type{SatispayGateway,SatispayGatewayCreate,SatispayGatewayUpdate}from'./resources/satispay_gateways';export type{SatispayPayment,SatispayPaymentCreate,SatispayPaymentUpdate}from'./resources/satispay_payments';export type{Shipment,ShipmentCreate,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,StockLineItemCreate,StockLineItemUpdate}from'./resources/stock_line_items';export type{StockLocation,StockLocationCreate,StockLocationUpdate}from'./resources/stock_locations';export type{StockReservation,StockReservationCreate,StockReservationUpdate}from'./resources/stock_reservations';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{SubscriptionModel,SubscriptionModelCreate,SubscriptionModelUpdate}from'./resources/subscription_models';export type{Tag,TagCreate,TagUpdate}from'./resources/tags';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{Version}from'./resources/versions';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}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type BuyXPayYPromotionType='buy_x_pay_y_promotions';type BuyXPayYPromotionRel=ResourceRel&{type:BuyXPayYPromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface BuyXPayYPromotion extends Resource{readonly type:BuyXPayYPromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;disabled_at?:string|null;x:number;y:number;cheapest_free?:boolean|null;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;skus?:Sku[]|null;}interface BuyXPayYPromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;x:number;y:number;cheapest_free?:boolean|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list:SkuListRel;tags?:TagRel[]|null;}interface BuyXPayYPromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;x?:number|null;y?:number|null;cheapest_free?:boolean|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class BuyXPayYPromotions extends ApiResource<BuyXPayYPromotion>{static readonly TYPE:BuyXPayYPromotionType;create(resource:BuyXPayYPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;update(resource:BuyXPayYPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;_disable(id:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;_enable(id:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;isBuyXPayYPromotion(resource:any):resource is BuyXPayYPromotion;relationship(id:string|ResourceId|null):BuyXPayYPromotionRel;type():BuyXPayYPromotionType;}export default BuyXPayYPromotions;export type{BuyXPayYPromotion,BuyXPayYPromotionCreate,BuyXPayYPromotionUpdate,BuyXPayYPromotionType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type BuyXPayYPromotionType='buy_x_pay_y_promotions';type BuyXPayYPromotionRel=ResourceRel&{type:BuyXPayYPromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface BuyXPayYPromotion extends Resource{readonly type:BuyXPayYPromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;status?:'expired'|'pending'|'active'|'inactive'|'disabled'|null;disabled_at?:string|null;x:number;y:number;cheapest_free?:boolean|null;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;skus?:Sku[]|null;}interface BuyXPayYPromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;x:number;y:number;cheapest_free?:boolean|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list:SkuListRel;tags?:TagRel[]|null;}interface BuyXPayYPromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;x?:number|null;y?:number|null;cheapest_free?:boolean|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class BuyXPayYPromotions extends ApiResource<BuyXPayYPromotion>{static readonly TYPE:BuyXPayYPromotionType;create(resource:BuyXPayYPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;update(resource:BuyXPayYPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;_disable(id:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;_enable(id:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;isBuyXPayYPromotion(resource:any):resource is BuyXPayYPromotion;relationship(id:string|ResourceId|null):BuyXPayYPromotionRel;type():BuyXPayYPromotionType;}export default BuyXPayYPromotions;export type{BuyXPayYPromotion,BuyXPayYPromotionCreate,BuyXPayYPromotionUpdate,BuyXPayYPromotionType};
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Customer}from'./customers';import type{Market}from'./markets';import type{Attachment}from'./attachments';import type{Version}from'./versions';type CustomerGroupType='customer_groups';type CustomerGroupRel=ResourceRel&{type:CustomerGroupType;};interface CustomerGroup extends Resource{readonly type:CustomerGroupType;name:string;customers?:Customer[]|null;markets?:Market[]|null;attachments?:Attachment[]|null;versions?:Version[]|null;}interface CustomerGroupCreate extends ResourceCreate{name:string;}interface CustomerGroupUpdate extends ResourceUpdate{name?:string|null;}declare class CustomerGroups extends ApiResource<CustomerGroup>{static readonly TYPE:CustomerGroupType;create(resource:CustomerGroupCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;update(resource:CustomerGroupUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;customers(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Customer>>;markets(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;versions(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isCustomerGroup(resource:any):resource is CustomerGroup;relationship(id:string|ResourceId|null):CustomerGroupRel;type():CustomerGroupType;}export default CustomerGroups;export type{CustomerGroup,CustomerGroupCreate,CustomerGroupUpdate,CustomerGroupType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Customer}from'./customers';import type{Market}from'./markets';import type{Attachment}from'./attachments';import type{Version}from'./versions';type CustomerGroupType='customer_groups';type CustomerGroupRel=ResourceRel&{type:CustomerGroupType;};interface CustomerGroup extends Resource{readonly type:CustomerGroupType;name:string;code?:string|null;customers?:Customer[]|null;markets?:Market[]|null;attachments?:Attachment[]|null;versions?:Version[]|null;}interface CustomerGroupCreate extends ResourceCreate{name:string;code?:string|null;}interface CustomerGroupUpdate extends ResourceUpdate{name?:string|null;code?:string|null;}declare class CustomerGroups extends ApiResource<CustomerGroup>{static readonly TYPE:CustomerGroupType;create(resource:CustomerGroupCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;update(resource:CustomerGroupUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;customers(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Customer>>;markets(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;versions(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isCustomerGroup(resource:any):resource is CustomerGroup;relationship(id:string|ResourceId|null):CustomerGroupRel;type():CustomerGroupType;}export default CustomerGroups;export type{CustomerGroup,CustomerGroupCreate,CustomerGroupUpdate,CustomerGroupType};
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type ExternalPromotionType='external_promotions';type ExternalPromotionRel=ResourceRel&{type:ExternalPromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface ExternalPromotion extends Resource{readonly type:ExternalPromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;disabled_at?:string|null;promotion_url:string;circuit_state?:string|null;circuit_failure_count?:number|null;shared_secret:string;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;skus?:Sku[]|null;}interface ExternalPromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;promotion_url:string;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}interface ExternalPromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;promotion_url?:string|null;_reset_circuit?:boolean|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class ExternalPromotions extends ApiResource<ExternalPromotion>{static readonly TYPE:ExternalPromotionType;create(resource:ExternalPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;update(resource:ExternalPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;_disable(id:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;_enable(id:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;_reset_circuit(id:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;isExternalPromotion(resource:any):resource is ExternalPromotion;relationship(id:string|ResourceId|null):ExternalPromotionRel;type():ExternalPromotionType;}export default ExternalPromotions;export type{ExternalPromotion,ExternalPromotionCreate,ExternalPromotionUpdate,ExternalPromotionType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type ExternalPromotionType='external_promotions';type ExternalPromotionRel=ResourceRel&{type:ExternalPromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface ExternalPromotion extends Resource{readonly type:ExternalPromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;status?:'expired'|'pending'|'active'|'inactive'|'disabled'|null;disabled_at?:string|null;promotion_url:string;circuit_state?:string|null;circuit_failure_count?:number|null;shared_secret:string;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;skus?:Sku[]|null;}interface ExternalPromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;promotion_url:string;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}interface ExternalPromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;promotion_url?:string|null;_reset_circuit?:boolean|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class ExternalPromotions extends ApiResource<ExternalPromotion>{static readonly TYPE:ExternalPromotionType;create(resource:ExternalPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;update(resource:ExternalPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;_disable(id:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;_enable(id:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;_reset_circuit(id:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;isExternalPromotion(resource:any):resource is ExternalPromotion;relationship(id:string|ResourceId|null):ExternalPromotionRel;type():ExternalPromotionType;}export default ExternalPromotions;export type{ExternalPromotion,ExternalPromotionCreate,ExternalPromotionUpdate,ExternalPromotionType};
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FixedAmountPromotionType='fixed_amount_promotions';type FixedAmountPromotionRel=ResourceRel&{type:FixedAmountPromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface FixedAmountPromotion extends Resource{readonly type:FixedAmountPromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;disabled_at?:string|null;fixed_amount_cents:number;fixed_amount_float?:number|null;formatted_fixed_amount?:string|null;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;skus?:Sku[]|null;}interface FixedAmountPromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;fixed_amount_cents:number;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}interface FixedAmountPromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;fixed_amount_cents?:number|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion>{static readonly TYPE:FixedAmountPromotionType;create(resource:FixedAmountPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;update(resource:FixedAmountPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;_disable(id:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;_enable(id:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;isFixedAmountPromotion(resource:any):resource is FixedAmountPromotion;relationship(id:string|ResourceId|null):FixedAmountPromotionRel;type():FixedAmountPromotionType;}export default FixedAmountPromotions;export type{FixedAmountPromotion,FixedAmountPromotionCreate,FixedAmountPromotionUpdate,FixedAmountPromotionType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FixedAmountPromotionType='fixed_amount_promotions';type FixedAmountPromotionRel=ResourceRel&{type:FixedAmountPromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface FixedAmountPromotion extends Resource{readonly type:FixedAmountPromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;status?:'expired'|'pending'|'active'|'inactive'|'disabled'|null;disabled_at?:string|null;fixed_amount_cents:number;fixed_amount_float?:number|null;formatted_fixed_amount?:string|null;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;skus?:Sku[]|null;}interface FixedAmountPromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;fixed_amount_cents:number;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}interface FixedAmountPromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;fixed_amount_cents?:number|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion>{static readonly TYPE:FixedAmountPromotionType;create(resource:FixedAmountPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;update(resource:FixedAmountPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;_disable(id:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;_enable(id:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;isFixedAmountPromotion(resource:any):resource is FixedAmountPromotion;relationship(id:string|ResourceId|null):FixedAmountPromotionRel;type():FixedAmountPromotionType;}export default FixedAmountPromotions;export type{FixedAmountPromotion,FixedAmountPromotionCreate,FixedAmountPromotionUpdate,FixedAmountPromotionType};
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FixedPricePromotionType='fixed_price_promotions';type FixedPricePromotionRel=ResourceRel&{type:FixedPricePromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface FixedPricePromotion extends Resource{readonly type:FixedPricePromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;disabled_at?:string|null;fixed_amount_cents:number;fixed_amount_float?:number|null;formatted_fixed_amount?:string|null;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;skus?:Sku[]|null;}interface FixedPricePromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;fixed_amount_cents:number;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list:SkuListRel;tags?:TagRel[]|null;}interface FixedPricePromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;fixed_amount_cents?:number|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class FixedPricePromotions extends ApiResource<FixedPricePromotion>{static readonly TYPE:FixedPricePromotionType;create(resource:FixedPricePromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;update(resource:FixedPricePromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;_disable(id:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;_enable(id:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;isFixedPricePromotion(resource:any):resource is FixedPricePromotion;relationship(id:string|ResourceId|null):FixedPricePromotionRel;type():FixedPricePromotionType;}export default FixedPricePromotions;export type{FixedPricePromotion,FixedPricePromotionCreate,FixedPricePromotionUpdate,FixedPricePromotionType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FixedPricePromotionType='fixed_price_promotions';type FixedPricePromotionRel=ResourceRel&{type:FixedPricePromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface FixedPricePromotion extends Resource{readonly type:FixedPricePromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;status?:'expired'|'pending'|'active'|'inactive'|'disabled'|null;disabled_at?:string|null;fixed_amount_cents:number;fixed_amount_float?:number|null;formatted_fixed_amount?:string|null;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;skus?:Sku[]|null;}interface FixedPricePromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;fixed_amount_cents:number;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list:SkuListRel;tags?:TagRel[]|null;}interface FixedPricePromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;fixed_amount_cents?:number|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class FixedPricePromotions extends ApiResource<FixedPricePromotion>{static readonly TYPE:FixedPricePromotionType;create(resource:FixedPricePromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;update(resource:FixedPricePromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;_disable(id:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;_enable(id:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;isFixedPricePromotion(resource:any):resource is FixedPricePromotion;relationship(id:string|ResourceId|null):FixedPricePromotionRel;type():FixedPricePromotionType;}export default FixedPricePromotions;export type{FixedPricePromotion,FixedPricePromotionCreate,FixedPricePromotionUpdate,FixedPricePromotionType};
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FreeGiftPromotionType='free_gift_promotions';type FreeGiftPromotionRel=ResourceRel&{type:FreeGiftPromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface FreeGiftPromotion extends Resource{readonly type:FreeGiftPromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;disabled_at?:string|null;max_quantity?:number|null;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;skus?:Sku[]|null;}interface FreeGiftPromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;max_quantity?:number|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list:SkuListRel;tags?:TagRel[]|null;}interface FreeGiftPromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;max_quantity?:number|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class FreeGiftPromotions extends ApiResource<FreeGiftPromotion>{static readonly TYPE:FreeGiftPromotionType;create(resource:FreeGiftPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;update(resource:FreeGiftPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;_disable(id:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;_enable(id:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;isFreeGiftPromotion(resource:any):resource is FreeGiftPromotion;relationship(id:string|ResourceId|null):FreeGiftPromotionRel;type():FreeGiftPromotionType;}export default FreeGiftPromotions;export type{FreeGiftPromotion,FreeGiftPromotionCreate,FreeGiftPromotionUpdate,FreeGiftPromotionType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FreeGiftPromotionType='free_gift_promotions';type FreeGiftPromotionRel=ResourceRel&{type:FreeGiftPromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface FreeGiftPromotion extends Resource{readonly type:FreeGiftPromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;status?:'expired'|'pending'|'active'|'inactive'|'disabled'|null;disabled_at?:string|null;max_quantity?:number|null;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;skus?:Sku[]|null;}interface FreeGiftPromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;max_quantity?:number|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list:SkuListRel;tags?:TagRel[]|null;}interface FreeGiftPromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;max_quantity?:number|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class FreeGiftPromotions extends ApiResource<FreeGiftPromotion>{static readonly TYPE:FreeGiftPromotionType;create(resource:FreeGiftPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;update(resource:FreeGiftPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;_disable(id:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;_enable(id:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;isFreeGiftPromotion(resource:any):resource is FreeGiftPromotion;relationship(id:string|ResourceId|null):FreeGiftPromotionRel;type():FreeGiftPromotionType;}export default FreeGiftPromotions;export type{FreeGiftPromotion,FreeGiftPromotionCreate,FreeGiftPromotionUpdate,FreeGiftPromotionType};
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type FreeShippingPromotionType='free_shipping_promotions';type FreeShippingPromotionRel=ResourceRel&{type:FreeShippingPromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface FreeShippingPromotion extends Resource{readonly type:FreeShippingPromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;disabled_at?:string|null;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;}interface FreeShippingPromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}interface FreeShippingPromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class FreeShippingPromotions extends ApiResource<FreeShippingPromotion>{static readonly TYPE:FreeShippingPromotionType;create(resource:FreeShippingPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;update(resource:FreeShippingPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_disable(id:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;_enable(id:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;isFreeShippingPromotion(resource:any):resource is FreeShippingPromotion;relationship(id:string|ResourceId|null):FreeShippingPromotionRel;type():FreeShippingPromotionType;}export default FreeShippingPromotions;export type{FreeShippingPromotion,FreeShippingPromotionCreate,FreeShippingPromotionUpdate,FreeShippingPromotionType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule,OrderAmountPromotionRuleType}from'./order_amount_promotion_rules';import type{SkuListPromotionRule,SkuListPromotionRuleType}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule,CouponCodesPromotionRuleType}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule,CustomPromotionRuleType}from'./custom_promotion_rules';import type{SkuList,SkuListType}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type FreeShippingPromotionType='free_shipping_promotions';type FreeShippingPromotionRel=ResourceRel&{type:FreeShippingPromotionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderAmountPromotionRuleRel=ResourceRel&{type:OrderAmountPromotionRuleType;};type SkuListPromotionRuleRel=ResourceRel&{type:SkuListPromotionRuleType;};type CouponCodesPromotionRuleRel=ResourceRel&{type:CouponCodesPromotionRuleType;};type CustomPromotionRuleRel=ResourceRel&{type:CustomPromotionRuleType;};type SkuListRel=ResourceRel&{type:SkuListType;};type TagRel=ResourceRel&{type:TagType;};interface FreeShippingPromotion extends Resource{readonly type:FreeShippingPromotionType;name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;total_usage_count?:number|null;active?:boolean|null;status?:'expired'|'pending'|'active'|'inactive'|'disabled'|null;disabled_at?:string|null;market?:Market|null;promotion_rules?:PromotionRule[]|null;order_amount_promotion_rule?:OrderAmountPromotionRule|null;sku_list_promotion_rule?:SkuListPromotionRule|null;coupon_codes_promotion_rule?:CouponCodesPromotionRule|null;custom_promotion_rule?:CustomPromotionRule|null;sku_list?:SkuList|null;coupons?:Coupon[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;}interface FreeShippingPromotionCreate extends ResourceCreate{name:string;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at:string;expires_at:string;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}interface FreeShippingPromotionUpdate extends ResourceUpdate{name?:string|null;currency_code?:string|null;exclusive?:boolean|null;priority?:number|null;starts_at?:string|null;expires_at?:string|null;total_usage_limit?:number|null;_disable?:boolean|null;_enable?:boolean|null;market?:MarketRel|null;order_amount_promotion_rule?:OrderAmountPromotionRuleRel|null;sku_list_promotion_rule?:SkuListPromotionRuleRel|null;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel|null;custom_promotion_rule?:CustomPromotionRuleRel|null;sku_list?:SkuListRel|null;tags?:TagRel[]|null;}declare class FreeShippingPromotions extends ApiResource<FreeShippingPromotion>{static readonly TYPE:FreeShippingPromotionType;create(resource:FreeShippingPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;update(resource:FreeShippingPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;custom_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomPromotionRule>;sku_list(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;coupons(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;attachments(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_disable(id:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;_enable(id:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;isFreeShippingPromotion(resource:any):resource is FreeShippingPromotion;relationship(id:string|ResourceId|null):FreeShippingPromotionRel;type():FreeShippingPromotionType;}export default FreeShippingPromotions;export type{FreeShippingPromotion,FreeShippingPromotionCreate,FreeShippingPromotionUpdate,FreeShippingPromotionType};
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Order,OrderType}from'./orders';import type{Adjustment,AdjustmentType}from'./adjustments';import type{Bundle,BundleType}from'./bundles';import type{ExternalPromotion,ExternalPromotionType}from'./external_promotions';import type{FixedAmountPromotion,FixedAmountPromotionType}from'./fixed_amount_promotions';import type{FreeShippingPromotion,FreeShippingPromotionType}from'./free_shipping_promotions';import type{GiftCard,GiftCardType}from'./gift_cards';import type{PaymentMethod,PaymentMethodType}from'./payment_methods';import type{PercentageDiscountPromotion,PercentageDiscountPromotionType}from'./percentage_discount_promotions';import type{Shipment,ShipmentType}from'./shipments';import type{Sku,SkuType}from'./skus';import type{LineItemOption}from'./line_item_options';import type{ReturnLineItem}from'./return_line_items';import type{StockReservation}from'./stock_reservations';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{Event}from'./events';import type{Tag,TagType}from'./tags';type LineItemType='line_items';type LineItemRel=ResourceRel&{type:LineItemType;};type OrderRel=ResourceRel&{type:OrderType;};type AdjustmentRel=ResourceRel&{type:AdjustmentType;};type BundleRel=ResourceRel&{type:BundleType;};type ExternalPromotionRel=ResourceRel&{type:ExternalPromotionType;};type FixedAmountPromotionRel=ResourceRel&{type:FixedAmountPromotionType;};type FreeShippingPromotionRel=ResourceRel&{type:FreeShippingPromotionType;};type GiftCardRel=ResourceRel&{type:GiftCardType;};type PaymentMethodRel=ResourceRel&{type:PaymentMethodType;};type PercentageDiscountPromotionRel=ResourceRel&{type:PercentageDiscountPromotionType;};type ShipmentRel=ResourceRel&{type:ShipmentType;};type SkuRel=ResourceRel&{type:SkuType;};type TagRel=ResourceRel&{type:TagType;};interface LineItem extends Resource{readonly type:LineItemType;sku_code?:string|null;bundle_code?:string|null;quantity:number;_external_price?:boolean|null;currency_code?:string|null;unit_amount_cents?:number|null;unit_amount_float?:number|null;formatted_unit_amount?:string|null;compare_at_amount_cents?:number|null;compare_at_amount_float?:number|null;formatted_compare_at_amount?:string|null;options_amount_cents?:number|null;options_amount_float?:number|null;formatted_options_amount?:string|null;discount_cents?:number|null;discount_float?:number|null;formatted_discount?:string|null;total_amount_cents?:number|null;total_amount_float:number;formatted_total_amount?:string|null;tax_amount_cents?:number|null;tax_amount_float:number;formatted_tax_amount?:string|null;name?:string|null;image_url?:string|null;discount_breakdown?:Record<string,any>|null;tax_rate?:number|null;tax_breakdown?:Record<string,any>|null;item_type?:'skus'|'bundles'|'shipments'|'payment_methods'|'adjustments'|'gift_cards'|'percentage_discount_promotions'|'free_shipping_promotions'|'free_gift_promotions'|'fixed_price_promotions'|'external_promotions'|'fixed_amount_promotions'|null;frequency?:string|null;coupon_code?:string|null;circuit_state?:string|null;circuit_failure_count?:number|null;order?:Order|null;item?:Adjustment|Bundle|ExternalPromotion|FixedAmountPromotion|FreeShippingPromotion|GiftCard|PaymentMethod|PercentageDiscountPromotion|Shipment|Sku|null;sku?:Sku|null;bundle?:Bundle|null;adjustment?:Adjustment|null;gift_card?:GiftCard|null;shipment?:Shipment|null;payment_method?:PaymentMethod|null;line_item_options?:LineItemOption[]|null;return_line_items?:ReturnLineItem[]|null;stock_reservations?:StockReservation[]|null;stock_line_items?:StockLineItem[]|null;stock_transfers?:StockTransfer[]|null;events?:Event[]|null;tags?:Tag[]|null;}interface LineItemCreate extends ResourceCreate{sku_code?:string|null;bundle_code?:string|null;quantity:number;_external_price?:boolean|null;_update_quantity?:boolean|null;_reserve_stock?:boolean|null;unit_amount_cents?:number|null;compare_at_amount_cents?:number|null;name?:string|null;image_url?:string|null;item_type?:'skus'|'bundles'|'shipments'|'payment_methods'|'adjustments'|'gift_cards'|'percentage_discount_promotions'|'free_shipping_promotions'|'free_gift_promotions'|'fixed_price_promotions'|'external_promotions'|'fixed_amount_promotions'|null;frequency?:string|null;order:OrderRel;item?:AdjustmentRel|BundleRel|ExternalPromotionRel|FixedAmountPromotionRel|FreeShippingPromotionRel|GiftCardRel|PaymentMethodRel|PercentageDiscountPromotionRel|ShipmentRel|SkuRel|null;sku?:SkuRel|null;bundle?:BundleRel|null;adjustment?:AdjustmentRel|null;gift_card?:GiftCardRel|null;shipment?:ShipmentRel|null;payment_method?:PaymentMethodRel|null;tags?:TagRel[]|null;}interface LineItemUpdate extends ResourceUpdate{sku_code?:string|null;bundle_code?:string|null;quantity?:number|null;_external_price?:boolean|null;_reserve_stock?:boolean|null;compare_at_amount_cents?:number|null;name?:string|null;image_url?:string|null;frequency?:string|null;_reset_circuit?:boolean|null;tags?:TagRel[]|null;}declare class LineItems extends ApiResource<LineItem>{static readonly TYPE:LineItemType;create(resource:LineItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;update(resource:LineItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;order(lineItemId:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;line_item_options(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItemOption>>;return_line_items(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ReturnLineItem>>;stock_reservations(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockReservation>>;stock_line_items(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;events(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;_external_price(id:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;_reserve_stock(id:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;_reset_circuit(id:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;isLineItem(resource:any):resource is LineItem;relationship(id:string|ResourceId|null):LineItemRel;type():LineItemType;}export default LineItems;export type{LineItem,LineItemCreate,LineItemUpdate,LineItemType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Order,OrderType}from'./orders';import type{Adjustment,AdjustmentType}from'./adjustments';import type{Bundle,BundleType}from'./bundles';import type{ExternalPromotion,ExternalPromotionType}from'./external_promotions';import type{FixedAmountPromotion,FixedAmountPromotionType}from'./fixed_amount_promotions';import type{FreeShippingPromotion,FreeShippingPromotionType}from'./free_shipping_promotions';import type{GiftCard,GiftCardType}from'./gift_cards';import type{PaymentMethod,PaymentMethodType}from'./payment_methods';import type{PercentageDiscountPromotion,PercentageDiscountPromotionType}from'./percentage_discount_promotions';import type{Shipment,ShipmentType}from'./shipments';import type{Sku,SkuType}from'./skus';import type{LineItemOption}from'./line_item_options';import type{ReturnLineItem}from'./return_line_items';import type{StockReservation}from'./stock_reservations';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{Event}from'./events';import type{Tag,TagType}from'./tags';type LineItemType='line_items';type LineItemRel=ResourceRel&{type:LineItemType;};type OrderRel=ResourceRel&{type:OrderType;};type AdjustmentRel=ResourceRel&{type:AdjustmentType;};type BundleRel=ResourceRel&{type:BundleType;};type ExternalPromotionRel=ResourceRel&{type:ExternalPromotionType;};type FixedAmountPromotionRel=ResourceRel&{type:FixedAmountPromotionType;};type FreeShippingPromotionRel=ResourceRel&{type:FreeShippingPromotionType;};type GiftCardRel=ResourceRel&{type:GiftCardType;};type PaymentMethodRel=ResourceRel&{type:PaymentMethodType;};type PercentageDiscountPromotionRel=ResourceRel&{type:PercentageDiscountPromotionType;};type ShipmentRel=ResourceRel&{type:ShipmentType;};type SkuRel=ResourceRel&{type:SkuType;};type TagRel=ResourceRel&{type:TagType;};interface LineItem extends Resource{readonly type:LineItemType;sku_code?:string|null;bundle_code?:string|null;quantity:number;_external_price?:boolean|null;currency_code?:string|null;unit_amount_cents?:number|null;unit_amount_float?:number|null;formatted_unit_amount?:string|null;compare_at_amount_cents?:number|null;compare_at_amount_float?:number|null;formatted_compare_at_amount?:string|null;options_amount_cents?:number|null;options_amount_float?:number|null;formatted_options_amount?:string|null;discount_cents?:number|null;discount_float?:number|null;formatted_discount?:string|null;total_amount_cents?:number|null;total_amount_float:number;formatted_total_amount?:string|null;tax_amount_cents?:number|null;tax_amount_float:number;formatted_tax_amount?:string|null;name?:string|null;image_url?:string|null;discount_breakdown?:Record<string,any>|null;tax_rate?:number|null;tax_breakdown?:Record<string,any>|null;item_type?:'skus'|'bundles'|'shipments'|'payment_methods'|'adjustments'|'gift_cards'|'percentage_discount_promotions'|'free_shipping_promotions'|'free_gift_promotions'|'fixed_price_promotions'|'external_promotions'|'fixed_amount_promotions'|null;frequency?:string|null;coupon_code?:string|null;circuit_state?:string|null;circuit_failure_count?:number|null;order?:Order|null;item?:Adjustment|Bundle|ExternalPromotion|FixedAmountPromotion|FreeShippingPromotion|GiftCard|PaymentMethod|PercentageDiscountPromotion|Shipment|Sku|null;sku?:Sku|null;bundle?:Bundle|null;adjustment?:Adjustment|null;gift_card?:GiftCard|null;shipment?:Shipment|null;payment_method?:PaymentMethod|null;line_item_options?:LineItemOption[]|null;return_line_items?:ReturnLineItem[]|null;stock_reservations?:StockReservation[]|null;stock_line_items?:StockLineItem[]|null;stock_transfers?:StockTransfer[]|null;events?:Event[]|null;tags?:Tag[]|null;}interface LineItemCreate extends ResourceCreate{sku_code?:string|null;bundle_code?:string|null;quantity:number;_external_price?:boolean|null;_update_quantity?:boolean|null;_reserve_stock?:boolean|null;unit_amount_cents?:number|null;compare_at_amount_cents?:number|null;name?:string|null;image_url?:string|null;item_type?:'skus'|'bundles'|'shipments'|'payment_methods'|'adjustments'|'gift_cards'|'percentage_discount_promotions'|'free_shipping_promotions'|'free_gift_promotions'|'fixed_price_promotions'|'external_promotions'|'fixed_amount_promotions'|null;frequency?:string|null;order:OrderRel;item?:AdjustmentRel|BundleRel|ExternalPromotionRel|FixedAmountPromotionRel|FreeShippingPromotionRel|GiftCardRel|PaymentMethodRel|PercentageDiscountPromotionRel|ShipmentRel|SkuRel|null;tags?:TagRel[]|null;}interface LineItemUpdate extends ResourceUpdate{sku_code?:string|null;bundle_code?:string|null;quantity?:number|null;_external_price?:boolean|null;_reserve_stock?:boolean|null;unit_amount_cents?:number|null;compare_at_amount_cents?:number|null;name?:string|null;image_url?:string|null;frequency?:string|null;_reset_circuit?:boolean|null;tags?:TagRel[]|null;}declare class LineItems extends ApiResource<LineItem>{static readonly TYPE:LineItemType;create(resource:LineItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;update(resource:LineItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;order(lineItemId:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;line_item_options(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItemOption>>;return_line_items(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ReturnLineItem>>;stock_reservations(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockReservation>>;stock_line_items(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;events(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;_external_price(id:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;_reserve_stock(id:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;_reset_circuit(id:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;isLineItem(resource:any):resource is LineItem;relationship(id:string|ResourceId|null):LineItemRel;type():LineItemType;}export default LineItems;export type{LineItem,LineItemCreate,LineItemUpdate,LineItemType};
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Merchant,MerchantType}from'./merchants';import type{PriceList,PriceListType}from'./price_lists';import type{InventoryModel,InventoryModelType}from'./inventory_models';import type{SubscriptionModel,SubscriptionModelType}from'./subscription_models';import type{TaxCalculator,TaxCalculatorType}from'./tax_calculators';import type{CustomerGroup,CustomerGroupType}from'./customer_groups';import type{Attachment}from'./attachments';import type{Version}from'./versions';type MarketType='markets';type MarketRel=ResourceRel&{type:MarketType;};type MerchantRel=ResourceRel&{type:MerchantType;};type PriceListRel=ResourceRel&{type:PriceListType;};type InventoryModelRel=ResourceRel&{type:InventoryModelType;};type SubscriptionModelRel=ResourceRel&{type:SubscriptionModelType;};type TaxCalculatorRel=ResourceRel&{type:TaxCalculatorType;};type CustomerGroupRel=ResourceRel&{type:CustomerGroupType;};interface Market extends Resource{readonly type:MarketType;number?:number|null;name:string;code?:string|null;facebook_pixel_id?:string|null;checkout_url?:string|null;external_prices_url?:string|null;external_order_validation_url?:string|null;private?:boolean|null;disabled_at?:string|null;shared_secret:string;merchant?:Merchant|null;price_list?:PriceList|null;inventory_model?:InventoryModel|null;subscription_model?:SubscriptionModel|null;tax_calculator?:TaxCalculator|null;customer_group?:CustomerGroup|null;attachments?:Attachment[]|null;versions?:Version[]|null;}interface MarketCreate extends ResourceCreate{name:string;code?:string|null;facebook_pixel_id?:string|null;checkout_url?:string|null;external_prices_url?:string|null;external_order_validation_url?:string|null;_disable?:boolean|null;_enable?:boolean|null;merchant:MerchantRel;price_list:PriceListRel;inventory_model:InventoryModelRel;subscription_model?:SubscriptionModelRel|null;tax_calculator?:TaxCalculatorRel|null;customer_group?:CustomerGroupRel|null;}interface MarketUpdate extends ResourceUpdate{name?:string|null;code?:string|null;facebook_pixel_id?:string|null;checkout_url?:string|null;external_prices_url?:string|null;external_order_validation_url?:string|null;_disable?:boolean|null;_enable?:boolean|null;merchant?:MerchantRel|null;price_list?:PriceListRel|null;inventory_model?:InventoryModelRel|null;subscription_model?:SubscriptionModelRel|null;tax_calculator?:TaxCalculatorRel|null;customer_group?:CustomerGroupRel|null;}declare class Markets extends ApiResource<Market>{static readonly TYPE:MarketType;create(resource:MarketCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;update(resource:MarketUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;merchant(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Merchant>;price_list(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;inventory_model(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;subscription_model(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SubscriptionModel>;tax_calculator(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCalculator>;customer_group(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;attachments(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;versions(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_disable(id:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;_enable(id:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;isMarket(resource:any):resource is Market;relationship(id:string|ResourceId|null):MarketRel;type():MarketType;}export default Markets;export type{Market,MarketCreate,MarketUpdate,MarketType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Merchant,MerchantType}from'./merchants';import type{PriceList,PriceListType}from'./price_lists';import type{InventoryModel,InventoryModelType}from'./inventory_models';import type{SubscriptionModel,SubscriptionModelType}from'./subscription_models';import type{TaxCalculator,TaxCalculatorType}from'./tax_calculators';import type{CustomerGroup,CustomerGroupType}from'./customer_groups';import type{PriceListScheduler}from'./price_list_schedulers';import type{Attachment}from'./attachments';import type{Version}from'./versions';type MarketType='markets';type MarketRel=ResourceRel&{type:MarketType;};type MerchantRel=ResourceRel&{type:MerchantType;};type PriceListRel=ResourceRel&{type:PriceListType;};type InventoryModelRel=ResourceRel&{type:InventoryModelType;};type SubscriptionModelRel=ResourceRel&{type:SubscriptionModelType;};type TaxCalculatorRel=ResourceRel&{type:TaxCalculatorType;};type CustomerGroupRel=ResourceRel&{type:CustomerGroupType;};interface Market extends Resource{readonly type:MarketType;number?:number|null;name:string;code?:string|null;facebook_pixel_id?:string|null;checkout_url?:string|null;external_prices_url?:string|null;external_order_validation_url?:string|null;private?:boolean|null;disabled_at?:string|null;shared_secret:string;merchant?:Merchant|null;price_list?:PriceList|null;inventory_model?:InventoryModel|null;subscription_model?:SubscriptionModel|null;tax_calculator?:TaxCalculator|null;customer_group?:CustomerGroup|null;price_list_schedulers?:PriceListScheduler[]|null;attachments?:Attachment[]|null;versions?:Version[]|null;}interface MarketCreate extends ResourceCreate{name:string;code?:string|null;facebook_pixel_id?:string|null;checkout_url?:string|null;external_prices_url?:string|null;external_order_validation_url?:string|null;_disable?:boolean|null;_enable?:boolean|null;merchant:MerchantRel;price_list:PriceListRel;inventory_model:InventoryModelRel;subscription_model?:SubscriptionModelRel|null;tax_calculator?:TaxCalculatorRel|null;customer_group?:CustomerGroupRel|null;}interface MarketUpdate extends ResourceUpdate{name?:string|null;code?:string|null;facebook_pixel_id?:string|null;checkout_url?:string|null;external_prices_url?:string|null;external_order_validation_url?:string|null;_disable?:boolean|null;_enable?:boolean|null;merchant?:MerchantRel|null;price_list?:PriceListRel|null;inventory_model?:InventoryModelRel|null;subscription_model?:SubscriptionModelRel|null;tax_calculator?:TaxCalculatorRel|null;customer_group?:CustomerGroupRel|null;}declare class Markets extends ApiResource<Market>{static readonly TYPE:MarketType;create(resource:MarketCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;update(resource:MarketUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;merchant(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Merchant>;price_list(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;inventory_model(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;subscription_model(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SubscriptionModel>;tax_calculator(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCalculator>;customer_group(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;price_list_schedulers(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PriceListScheduler>>;attachments(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;versions(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_disable(id:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;_enable(id:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;isMarket(resource:any):resource is Market;relationship(id:string|ResourceId|null):MarketRel;type():MarketType;}export default Markets;export type{Market,MarketCreate,MarketUpdate,MarketType};
@@ -1 +1 @@
1
- import{ApiResource as n}from"../resource";class c extends n{async create(e,t,s){return this.resources.create({...e,type:c.TYPE},t,s)}async update(e,t,s){return this.resources.update({...e,type:c.TYPE},t,s)}async delete(e,t){await this.resources.delete(typeof e=="string"?{id:e,type:c.TYPE}:e,t)}async merchant(e,t,s){const r=e.id||e;return this.resources.fetch({type:"merchants"},`markets/${r}/merchant`,t,s)}async price_list(e,t,s){const r=e.id||e;return this.resources.fetch({type:"price_lists"},`markets/${r}/price_list`,t,s)}async inventory_model(e,t,s){const r=e.id||e;return this.resources.fetch({type:"inventory_models"},`markets/${r}/inventory_model`,t,s)}async subscription_model(e,t,s){const r=e.id||e;return this.resources.fetch({type:"subscription_models"},`markets/${r}/subscription_model`,t,s)}async tax_calculator(e,t,s){const r=e.id||e;return this.resources.fetch({type:"tax_calculators"},`markets/${r}/tax_calculator`,t,s)}async customer_group(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_groups"},`markets/${r}/customer_group`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`markets/${r}/attachments`,t,s)}async versions(e,t,s){const r=e.id||e;return this.resources.fetch({type:"versions"},`markets/${r}/versions`,t,s)}async _disable(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_disable:!0},t,s)}async _enable(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_enable:!0},t,s)}isMarket(e){return e.type&&e.type===c.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:c.TYPE}:{id:e.id,type:c.TYPE}}type(){return c.TYPE}}c.TYPE="markets";export default c;
1
+ import{ApiResource as n}from"../resource";class c extends n{async create(e,t,s){return this.resources.create({...e,type:c.TYPE},t,s)}async update(e,t,s){return this.resources.update({...e,type:c.TYPE},t,s)}async delete(e,t){await this.resources.delete(typeof e=="string"?{id:e,type:c.TYPE}:e,t)}async merchant(e,t,s){const r=e.id||e;return this.resources.fetch({type:"merchants"},`markets/${r}/merchant`,t,s)}async price_list(e,t,s){const r=e.id||e;return this.resources.fetch({type:"price_lists"},`markets/${r}/price_list`,t,s)}async inventory_model(e,t,s){const r=e.id||e;return this.resources.fetch({type:"inventory_models"},`markets/${r}/inventory_model`,t,s)}async subscription_model(e,t,s){const r=e.id||e;return this.resources.fetch({type:"subscription_models"},`markets/${r}/subscription_model`,t,s)}async tax_calculator(e,t,s){const r=e.id||e;return this.resources.fetch({type:"tax_calculators"},`markets/${r}/tax_calculator`,t,s)}async customer_group(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_groups"},`markets/${r}/customer_group`,t,s)}async price_list_schedulers(e,t,s){const r=e.id||e;return this.resources.fetch({type:"price_list_schedulers"},`markets/${r}/price_list_schedulers`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`markets/${r}/attachments`,t,s)}async versions(e,t,s){const r=e.id||e;return this.resources.fetch({type:"versions"},`markets/${r}/versions`,t,s)}async _disable(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_disable:!0},t,s)}async _enable(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_enable:!0},t,s)}isMarket(e){return e.type&&e.type===c.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:c.TYPE}:{id:e.id,type:c.TYPE}}type(){return c.TYPE}}c.TYPE="markets";export default c;
@@ -1 +1 @@
1
- import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{SubscriptionModel}from'./subscription_models';import type{Order,OrderType}from'./orders';import type{Customer}from'./customers';import type{CustomerPaymentSource,CustomerPaymentSourceType}from'./customer_payment_sources';import type{OrderSubscriptionItem}from'./order_subscription_items';import type{OrderFactory}from'./order_factories';import type{RecurringOrderCopy}from'./recurring_order_copies';import type{Event}from'./events';import type{Version}from'./versions';type OrderSubscriptionType='order_subscriptions';type OrderSubscriptionRel=ResourceRel&{type:OrderSubscriptionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderRel=ResourceRel&{type:OrderType;};type CustomerPaymentSourceRel=ResourceRel&{type:CustomerPaymentSourceType;};interface OrderSubscription extends Resource{readonly type:OrderSubscriptionType;number?:string|null;status:'draft'|'inactive'|'active'|'cancelled';frequency:string;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;customer_email?:string|null;starts_at?:string|null;expires_at?:string|null;last_run_at?:string|null;next_run_at?:string|null;occurrencies?:number|null;errors_count?:number|null;succeeded_on_last_run?:boolean|null;market?:Market|null;subscription_model?:SubscriptionModel|null;source_order?:Order|null;customer?:Customer|null;customer_payment_source?:CustomerPaymentSource|null;order_subscription_items?:OrderSubscriptionItem[]|null;order_factories?:OrderFactory[]|null;recurring_order_copies?:RecurringOrderCopy[]|null;orders?:Order[]|null;events?:Event[]|null;versions?:Version[]|null;}interface OrderSubscriptionCreate extends ResourceCreate{frequency:string;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;starts_at?:string|null;expires_at?:string|null;market?:MarketRel|null;source_order:OrderRel;}interface OrderSubscriptionUpdate extends ResourceUpdate{frequency?:string|null;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;expires_at?:string|null;next_run_at?:string|null;_activate?:boolean|null;_deactivate?:boolean|null;_cancel?:boolean|null;customer_payment_source?:CustomerPaymentSourceRel|null;}declare class OrderSubscriptions extends ApiResource<OrderSubscription>{static readonly TYPE:OrderSubscriptionType;create(resource:OrderSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;update(resource:OrderSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;subscription_model(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SubscriptionModel>;source_order(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;customer(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;customer_payment_source(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPaymentSource>;order_subscription_items(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderSubscriptionItem>>;order_factories(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderFactory>>;recurring_order_copies(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<RecurringOrderCopy>>;orders(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Order>>;events(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;versions(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_activate(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_deactivate(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_cancel(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;isOrderSubscription(resource:any):resource is OrderSubscription;relationship(id:string|ResourceId|null):OrderSubscriptionRel;type():OrderSubscriptionType;}export default OrderSubscriptions;export type{OrderSubscription,OrderSubscriptionCreate,OrderSubscriptionUpdate,OrderSubscriptionType};
1
+ import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Market,MarketType}from'./markets';import type{SubscriptionModel}from'./subscription_models';import type{Order,OrderType}from'./orders';import type{Customer}from'./customers';import type{CustomerPaymentSource,CustomerPaymentSourceType}from'./customer_payment_sources';import type{OrderSubscriptionItem}from'./order_subscription_items';import type{OrderFactory}from'./order_factories';import type{RecurringOrderCopy}from'./recurring_order_copies';import type{Event}from'./events';import type{Version}from'./versions';type OrderSubscriptionType='order_subscriptions';type OrderSubscriptionRel=ResourceRel&{type:OrderSubscriptionType;};type MarketRel=ResourceRel&{type:MarketType;};type OrderRel=ResourceRel&{type:OrderType;};type CustomerPaymentSourceRel=ResourceRel&{type:CustomerPaymentSourceType;};interface OrderSubscription extends Resource{readonly type:OrderSubscriptionType;number?:string|null;status:'draft'|'inactive'|'active'|'cancelled';frequency:string;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;customer_email?:string|null;starts_at?:string|null;expires_at?:string|null;last_run_at?:string|null;next_run_at?:string|null;occurrencies?:number|null;errors_count?:number|null;succeeded_on_last_run?:boolean|null;market?:Market|null;subscription_model?:SubscriptionModel|null;source_order?:Order|null;customer?:Customer|null;customer_payment_source?:CustomerPaymentSource|null;order_subscription_items?:OrderSubscriptionItem[]|null;order_factories?:OrderFactory[]|null;recurring_order_copies?:RecurringOrderCopy[]|null;orders?:Order[]|null;events?:Event[]|null;versions?:Version[]|null;}interface OrderSubscriptionCreate extends ResourceCreate{frequency:string;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;starts_at?:string|null;expires_at?:string|null;market?:MarketRel|null;source_order:OrderRel;}interface OrderSubscriptionUpdate extends ResourceUpdate{frequency?:string|null;activate_by_source_order?:boolean|null;place_target_order?:boolean|null;renewal_alert_period?:number|null;expires_at?:string|null;next_run_at?:string|null;_activate?:boolean|null;_deactivate?:boolean|null;_cancel?:boolean|null;_convert?:boolean|null;customer_payment_source?:CustomerPaymentSourceRel|null;}declare class OrderSubscriptions extends ApiResource<OrderSubscription>{static readonly TYPE:OrderSubscriptionType;create(resource:OrderSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;update(resource:OrderSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;subscription_model(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SubscriptionModel>;source_order(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;customer(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;customer_payment_source(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPaymentSource>;order_subscription_items(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderSubscriptionItem>>;order_factories(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderFactory>>;recurring_order_copies(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<RecurringOrderCopy>>;orders(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Order>>;events(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;versions(orderSubscriptionId:string|OrderSubscription,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_activate(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_deactivate(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_cancel(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;_convert(id:string|OrderSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;isOrderSubscription(resource:any):resource is OrderSubscription;relationship(id:string|ResourceId|null):OrderSubscriptionRel;type():OrderSubscriptionType;}export default OrderSubscriptions;export type{OrderSubscription,OrderSubscriptionCreate,OrderSubscriptionUpdate,OrderSubscriptionType};
@@ -1 +1 @@
1
- import{ApiResource as o}from"../resource";class c extends o{async create(e,r,s){return this.resources.create({...e,type:c.TYPE},r,s)}async update(e,r,s){return this.resources.update({...e,type:c.TYPE},r,s)}async delete(e,r){await this.resources.delete(typeof e=="string"?{id:e,type:c.TYPE}:e,r)}async market(e,r,s){const t=e.id||e;return this.resources.fetch({type:"markets"},`order_subscriptions/${t}/market`,r,s)}async subscription_model(e,r,s){const t=e.id||e;return this.resources.fetch({type:"subscription_models"},`order_subscriptions/${t}/subscription_model`,r,s)}async source_order(e,r,s){const t=e.id||e;return this.resources.fetch({type:"orders"},`order_subscriptions/${t}/source_order`,r,s)}async customer(e,r,s){const t=e.id||e;return this.resources.fetch({type:"customers"},`order_subscriptions/${t}/customer`,r,s)}async customer_payment_source(e,r,s){const t=e.id||e;return this.resources.fetch({type:"customer_payment_sources"},`order_subscriptions/${t}/customer_payment_source`,r,s)}async order_subscription_items(e,r,s){const t=e.id||e;return this.resources.fetch({type:"order_subscription_items"},`order_subscriptions/${t}/order_subscription_items`,r,s)}async order_factories(e,r,s){const t=e.id||e;return this.resources.fetch({type:"order_factories"},`order_subscriptions/${t}/order_factories`,r,s)}async recurring_order_copies(e,r,s){const t=e.id||e;return this.resources.fetch({type:"recurring_order_copies"},`order_subscriptions/${t}/recurring_order_copies`,r,s)}async orders(e,r,s){const t=e.id||e;return this.resources.fetch({type:"orders"},`order_subscriptions/${t}/orders`,r,s)}async events(e,r,s){const t=e.id||e;return this.resources.fetch({type:"events"},`order_subscriptions/${t}/events`,r,s)}async versions(e,r,s){const t=e.id||e;return this.resources.fetch({type:"versions"},`order_subscriptions/${t}/versions`,r,s)}async _activate(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_activate:!0},r,s)}async _deactivate(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_deactivate:!0},r,s)}async _cancel(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_cancel:!0},r,s)}isOrderSubscription(e){return e.type&&e.type===c.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:c.TYPE}:{id:e.id,type:c.TYPE}}type(){return c.TYPE}}c.TYPE="order_subscriptions";export default c;
1
+ import{ApiResource as o}from"../resource";class c extends o{async create(e,r,s){return this.resources.create({...e,type:c.TYPE},r,s)}async update(e,r,s){return this.resources.update({...e,type:c.TYPE},r,s)}async delete(e,r){await this.resources.delete(typeof e=="string"?{id:e,type:c.TYPE}:e,r)}async market(e,r,s){const t=e.id||e;return this.resources.fetch({type:"markets"},`order_subscriptions/${t}/market`,r,s)}async subscription_model(e,r,s){const t=e.id||e;return this.resources.fetch({type:"subscription_models"},`order_subscriptions/${t}/subscription_model`,r,s)}async source_order(e,r,s){const t=e.id||e;return this.resources.fetch({type:"orders"},`order_subscriptions/${t}/source_order`,r,s)}async customer(e,r,s){const t=e.id||e;return this.resources.fetch({type:"customers"},`order_subscriptions/${t}/customer`,r,s)}async customer_payment_source(e,r,s){const t=e.id||e;return this.resources.fetch({type:"customer_payment_sources"},`order_subscriptions/${t}/customer_payment_source`,r,s)}async order_subscription_items(e,r,s){const t=e.id||e;return this.resources.fetch({type:"order_subscription_items"},`order_subscriptions/${t}/order_subscription_items`,r,s)}async order_factories(e,r,s){const t=e.id||e;return this.resources.fetch({type:"order_factories"},`order_subscriptions/${t}/order_factories`,r,s)}async recurring_order_copies(e,r,s){const t=e.id||e;return this.resources.fetch({type:"recurring_order_copies"},`order_subscriptions/${t}/recurring_order_copies`,r,s)}async orders(e,r,s){const t=e.id||e;return this.resources.fetch({type:"orders"},`order_subscriptions/${t}/orders`,r,s)}async events(e,r,s){const t=e.id||e;return this.resources.fetch({type:"events"},`order_subscriptions/${t}/events`,r,s)}async versions(e,r,s){const t=e.id||e;return this.resources.fetch({type:"versions"},`order_subscriptions/${t}/versions`,r,s)}async _activate(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_activate:!0},r,s)}async _deactivate(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_deactivate:!0},r,s)}async _cancel(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_cancel:!0},r,s)}async _convert(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:c.TYPE,_convert:!0},r,s)}isOrderSubscription(e){return e.type&&e.type===c.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:c.TYPE}:{id:e.id,type:c.TYPE}}type(){return c.TYPE}}c.TYPE="order_subscriptions";export default c;