@commercelayer/sdk 5.41.0 → 5.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/api.d.ts +1 -1
- package/lib/cjs/api.js +1 -1
- package/lib/cjs/commercelayer.d.ts +1 -1
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/model.d.ts +1 -1
- package/lib/cjs/resources/gift_cards.d.ts +1 -1
- package/lib/cjs/resources/links.d.ts +1 -0
- package/lib/cjs/resources/links.js +1 -0
- package/lib/cjs/resources/orders.d.ts +1 -1
- package/lib/cjs/resources/orders.js +1 -1
- package/lib/cjs/resources/shipments.d.ts +1 -1
- package/lib/cjs/resources/shipments.js +1 -1
- package/lib/cjs/resources/stock_transfers.d.ts +1 -1
- package/lib/cjs/resources/stock_transfers.js +1 -1
- package/lib/esm/api.d.ts +1 -1
- package/lib/esm/api.js +1 -1
- package/lib/esm/commercelayer.d.ts +1 -1
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/model.d.ts +1 -1
- package/lib/esm/resources/gift_cards.d.ts +1 -1
- package/lib/esm/resources/links.d.ts +1 -0
- package/lib/esm/resources/links.js +1 -0
- package/lib/esm/resources/orders.d.ts +1 -1
- package/lib/esm/resources/orders.js +1 -1
- package/lib/esm/resources/shipments.d.ts +1 -1
- package/lib/esm/resources/shipments.js +1 -1
- package/lib/esm/resources/stock_transfers.d.ts +1 -1
- package/lib/esm/resources/stock_transfers.js +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
package/lib/esm/model.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export type{Address,AddressCreate,AddressUpdate}from'./resources/addresses';export type{Adjustment,AdjustmentCreate,AdjustmentUpdate}from'./resources/adjustments';export type{AdyenGateway,AdyenGatewayCreate,AdyenGatewayUpdate}from'./resources/adyen_gateways';export type{AdyenPayment,AdyenPaymentCreate,AdyenPaymentUpdate}from'./resources/adyen_payments';export type{Application}from'./resources/application';export type{Attachment,AttachmentCreate,AttachmentUpdate}from'./resources/attachments';export type{Authorization,AuthorizationUpdate}from'./resources/authorizations';export type{AvalaraAccount,AvalaraAccountCreate,AvalaraAccountUpdate}from'./resources/avalara_accounts';export type{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
|
+
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{Link,LinkCreate,LinkUpdate}from'./resources/links';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{GiftCardRecipient,GiftCardRecipientType}from'./gift_card_recipients';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type GiftCardType='gift_cards';type GiftCardRel=ResourceRel&{type:GiftCardType;};type MarketRel=ResourceRel&{type:MarketType;};type GiftCardRecipientRel=ResourceRel&{type:GiftCardRecipientType;};type TagRel=ResourceRel&{type:TagType;};interface GiftCard extends Resource{readonly type:GiftCardType;status:'draft'|'inactive'|'active'|'redeemed';code?:string|null;currency_code?:string|null;initial_balance_cents:number;initial_balance_float:number;formatted_initial_balance:string;balance_cents:number;balance_float:number;formatted_balance:string;balance_max_cents?:string|null;balance_max_float?:number|null;formatted_balance_max?:string|null;balance_log:Array<Record<string,any>>;single_use?:boolean|null;rechargeable?:boolean|null;distribute_discount?:boolean|null;image_url?:string|null;expires_at?:string|null;recipient_email?:string|null;market?:Market|null;gift_card_recipient?:GiftCardRecipient|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;}interface GiftCardCreate extends ResourceCreate{code?:string|null;currency_code?:string|null;balance_cents:number;balance_max_cents?:string|null;single_use?:boolean|null;rechargeable?:boolean|null;distribute_discount?:boolean|null;image_url?:string|null;expires_at?:string|null;recipient_email?:string|null;market?:MarketRel|null;gift_card_recipient?:GiftCardRecipientRel|null;tags?:TagRel[]|null;}interface GiftCardUpdate extends ResourceUpdate{currency_code?:string|null;balance_cents?:number|null;balance_max_cents?:string|null;single_use?:boolean|null;rechargeable?:boolean|null;distribute_discount?:boolean|null;image_url?:string|null;expires_at?:string|null;recipient_email?:string|null;_purchase?:boolean|null;_activate?:boolean|null;_deactivate?:boolean|null;_balance_change_cents?:number|null;market?:MarketRel|null;gift_card_recipient?:GiftCardRecipientRel|null;tags?:TagRel[]|null;}declare class GiftCards extends ApiResource<GiftCard>{static readonly TYPE:GiftCardType;create(resource:GiftCardCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;update(resource:GiftCardUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;gift_card_recipient(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCardRecipient>;attachments(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_purchase(id:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;_activate(id:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;_deactivate(id:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;_balance_change_cents(id:string|GiftCard,triggerValue:number,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;isGiftCard(resource:any):resource is GiftCard;relationship(id:string|ResourceId|null):GiftCardRel;type():GiftCardType;}export default GiftCards;export type{GiftCard,GiftCardCreate,GiftCardUpdate,GiftCardType};
|
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{GiftCardRecipient,GiftCardRecipientType}from'./gift_card_recipients';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type GiftCardType='gift_cards';type GiftCardRel=ResourceRel&{type:GiftCardType;};type MarketRel=ResourceRel&{type:MarketType;};type GiftCardRecipientRel=ResourceRel&{type:GiftCardRecipientType;};type TagRel=ResourceRel&{type:TagType;};interface GiftCard extends Resource{readonly type:GiftCardType;status:'draft'|'inactive'|'active'|'redeemed';code?:string|null;currency_code?:string|null;initial_balance_cents:number;initial_balance_float:number;formatted_initial_balance:string;balance_cents:number;balance_float:number;formatted_balance:string;balance_max_cents?:string|null;balance_max_float?:number|null;formatted_balance_max?:string|null;balance_log:Array<Record<string,any>>;usage_log:Record<string,any>;single_use?:boolean|null;rechargeable?:boolean|null;distribute_discount?:boolean|null;image_url?:string|null;expires_at?:string|null;recipient_email?:string|null;market?:Market|null;gift_card_recipient?:GiftCardRecipient|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;}interface GiftCardCreate extends ResourceCreate{code?:string|null;currency_code?:string|null;balance_cents:number;balance_max_cents?:string|null;single_use?:boolean|null;rechargeable?:boolean|null;distribute_discount?:boolean|null;image_url?:string|null;expires_at?:string|null;recipient_email?:string|null;market?:MarketRel|null;gift_card_recipient?:GiftCardRecipientRel|null;tags?:TagRel[]|null;}interface GiftCardUpdate extends ResourceUpdate{currency_code?:string|null;balance_cents?:number|null;balance_max_cents?:string|null;single_use?:boolean|null;rechargeable?:boolean|null;distribute_discount?:boolean|null;image_url?:string|null;expires_at?:string|null;recipient_email?:string|null;_purchase?:boolean|null;_activate?:boolean|null;_deactivate?:boolean|null;_balance_change_cents?:number|null;market?:MarketRel|null;gift_card_recipient?:GiftCardRecipientRel|null;tags?:TagRel[]|null;}declare class GiftCards extends ApiResource<GiftCard>{static readonly TYPE:GiftCardType;create(resource:GiftCardCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;update(resource:GiftCardUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;gift_card_recipient(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCardRecipient>;attachments(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_purchase(id:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;_activate(id:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;_deactivate(id:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;_balance_change_cents(id:string|GiftCard,triggerValue:number,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;isGiftCard(resource:any):resource is GiftCard;relationship(id:string|ResourceId|null):GiftCardRel;type():GiftCardType;}export default GiftCards;export type{GiftCard,GiftCardCreate,GiftCardUpdate,GiftCardType};
|
@@ -0,0 +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{SkuList,SkuListType}from'./sku_lists';import type{Event}from'./events';type LinkType='links';type LinkRel=ResourceRel&{type:LinkType;};type OrderRel=ResourceRel&{type:OrderType;};type SkuListRel=ResourceRel&{type:SkuListType;};interface Link extends Resource{readonly type:LinkType;name:string;client_id:string;scope:string;starts_at:string;expires_at:string;active?:boolean|null;status?:'expired'|'pending'|'active'|'disabled'|null;domain?:string|null;url?:string|null;disabled_at?:string|null;item?:Order|SkuList|null;events?:Event[]|null;}interface LinkCreate extends ResourceCreate{name:string;client_id:string;scope:string;starts_at:string;expires_at:string;domain?:string|null;_disable?:boolean|null;_enable?:boolean|null;item:OrderRel|SkuListRel;}interface LinkUpdate extends ResourceUpdate{name?:string|null;client_id?:string|null;scope?:string|null;starts_at?:string|null;expires_at?:string|null;domain?:string|null;_disable?:boolean|null;_enable?:boolean|null;item?:OrderRel|SkuListRel|null;}declare class Links extends ApiResource<Link>{static readonly TYPE:LinkType;create(resource:LinkCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Link>;update(resource:LinkUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Link>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;events(linkId:string|Link,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;_disable(id:string|Link,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Link>;_enable(id:string|Link,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Link>;isLink(resource:any):resource is Link;relationship(id:string|ResourceId|null):LinkRel;type():LinkType;}export default Links;export type{Link,LinkCreate,LinkUpdate,LinkType};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{ApiResource as n}from"../resource";class t extends n{async create(e,r,s){return this.resources.create({...e,type:t.TYPE},r,s)}async update(e,r,s){return this.resources.update({...e,type:t.TYPE},r,s)}async delete(e,r){await this.resources.delete(typeof e=="string"?{id:e,type:t.TYPE}:e,r)}async events(e,r,s){const p=e.id||e;return this.resources.fetch({type:"events"},`links/${p}/events`,r,s)}async _disable(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:t.TYPE,_disable:!0},r,s)}async _enable(e,r,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:t.TYPE,_enable:!0},r,s)}isLink(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="links";export default t;
|
@@ -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{Customer,CustomerType}from'./customers';import type{Address,AddressType}from'./addresses';import type{PaymentMethod,PaymentMethodType}from'./payment_methods';import type{CustomerPaymentSource}from'./customer_payment_sources';import type{Sku}from'./skus';import type{Bundle}from'./bundles';import type{AdyenPayment,AdyenPaymentType}from'./adyen_payments';import type{AxervePayment,AxervePaymentType}from'./axerve_payments';import type{BraintreePayment,BraintreePaymentType}from'./braintree_payments';import type{CheckoutComPayment,CheckoutComPaymentType}from'./checkout_com_payments';import type{ExternalPayment,ExternalPaymentType}from'./external_payments';import type{KlarnaPayment,KlarnaPaymentType}from'./klarna_payments';import type{PaypalPayment,PaypalPaymentType}from'./paypal_payments';import type{SatispayPayment,SatispayPaymentType}from'./satispay_payments';import type{StripePayment,StripePaymentType}from'./stripe_payments';import type{WireTransfer,WireTransferType}from'./wire_transfers';import type{LineItem}from'./line_items';import type{LineItemOption}from'./line_item_options';import type{StockReservation}from'./stock_reservations';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{Shipment}from'./shipments';import type{PaymentOption}from'./payment_options';import type{Authorization}from'./authorizations';import type{Capture}from'./captures';import type{Void}from'./voids';import type{Refund}from'./refunds';import type{Return}from'./returns';import type{OrderSubscription}from'./order_subscriptions';import type{OrderFactory}from'./order_factories';import type{OrderCopy}from'./order_copies';import type{RecurringOrderCopy}from'./recurring_order_copies';import type{Attachment}from'./attachments';import type{ResourceError}from'./resource_errors';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type OrderType='orders';type OrderRel=ResourceRel&{type:OrderType;};type MarketRel=ResourceRel&{type:MarketType;};type CustomerRel=ResourceRel&{type:CustomerType;};type AddressRel=ResourceRel&{type:AddressType;};type PaymentMethodRel=ResourceRel&{type:PaymentMethodType;};type AdyenPaymentRel=ResourceRel&{type:AdyenPaymentType;};type AxervePaymentRel=ResourceRel&{type:AxervePaymentType;};type BraintreePaymentRel=ResourceRel&{type:BraintreePaymentType;};type CheckoutComPaymentRel=ResourceRel&{type:CheckoutComPaymentType;};type ExternalPaymentRel=ResourceRel&{type:ExternalPaymentType;};type KlarnaPaymentRel=ResourceRel&{type:KlarnaPaymentType;};type PaypalPaymentRel=ResourceRel&{type:PaypalPaymentType;};type SatispayPaymentRel=ResourceRel&{type:SatispayPaymentType;};type StripePaymentRel=ResourceRel&{type:StripePaymentType;};type WireTransferRel=ResourceRel&{type:WireTransferType;};type TagRel=ResourceRel&{type:TagType;};interface Order extends Resource{readonly type:OrderType;number?:string|null;autorefresh?:boolean|null;place_async?:boolean|null;status:'draft'|'pending'|'placing'|'placed'|'editing'|'approved'|'cancelled';payment_status:'unpaid'|'authorized'|'partially_authorized'|'paid'|'partially_paid'|'voided'|'partially_voided'|'refunded'|'partially_refunded'|'free';fulfillment_status:'unfulfilled'|'in_progress'|'fulfilled'|'not_required';guest?:boolean|null;editable?:boolean|null;customer_email?:string|null;language_code?:string|null;currency_code?:string|null;tax_included?:boolean|null;tax_rate?:number|null;freight_taxable?:boolean|null;payment_method_taxable?:boolean|null;adjustment_taxable?:boolean|null;gift_card_taxable?:boolean|null;requires_billing_info?:boolean|null;country_code?:string|null;shipping_country_code_lock?:string|null;coupon_code?:string|null;gift_card_code?:string|null;subtotal_amount_cents?:number|null;subtotal_amount_float?:number|null;formatted_subtotal_amount?:string|null;shipping_amount_cents?:number|null;shipping_amount_float?:number|null;formatted_shipping_amount?:string|null;payment_method_amount_cents?:number|null;payment_method_amount_float?:number|null;formatted_payment_method_amount?:string|null;discount_amount_cents?:number|null;discount_amount_float?:number|null;formatted_discount_amount?:string|null;adjustment_amount_cents?:number|null;adjustment_amount_float?:number|null;formatted_adjustment_amount?:string|null;gift_card_amount_cents?:number|null;gift_card_amount_float?:number|null;formatted_gift_card_amount?:string|null;total_tax_amount_cents?:number|null;total_tax_amount_float?:number|null;formatted_total_tax_amount?:string|null;subtotal_tax_amount_cents?:number|null;subtotal_tax_amount_float?:number|null;formatted_subtotal_tax_amount?:string|null;shipping_tax_amount_cents?:number|null;shipping_tax_amount_float?:number|null;formatted_shipping_tax_amount?:string|null;payment_method_tax_amount_cents?:number|null;payment_method_tax_amount_float?:number|null;formatted_payment_method_tax_amount?:string|null;adjustment_tax_amount_cents?:number|null;adjustment_tax_amount_float?:number|null;formatted_adjustment_tax_amount?:string|null;total_amount_cents?:number|null;total_amount_float?:number|null;formatted_total_amount?:string|null;total_taxable_amount_cents?:number|null;total_taxable_amount_float?:number|null;formatted_total_taxable_amount?:string|null;subtotal_taxable_amount_cents?:number|null;subtotal_taxable_amount_float?:number|null;formatted_subtotal_taxable_amount?:string|null;shipping_taxable_amount_cents?:number|null;shipping_taxable_amount_float?:number|null;formatted_shipping_taxable_amount?:string|null;payment_method_taxable_amount_cents?:number|null;payment_method_taxable_amount_float?:number|null;formatted_payment_method_taxable_amount?:string|null;adjustment_taxable_amount_cents?:number|null;adjustment_taxable_amount_float?:number|null;formatted_adjustment_taxable_amount?:string|null;total_amount_with_taxes_cents?:number|null;total_amount_with_taxes_float?:number|null;formatted_total_amount_with_taxes?:string|null;fees_amount_cents?:number|null;fees_amount_float?:number|null;formatted_fees_amount?:string|null;duty_amount_cents?:number|null;duty_amount_float?:number|null;formatted_duty_amount?:string|null;place_total_amount_cents?:number|null;place_total_amount_float?:number|null;formatted_place_total_amount?:string|null;skus_count?:number|null;line_item_options_count?:number|null;shipments_count?:number|null;tax_calculations_count?:number|null;validations_count?:number|null;errors_count?:number|null;payment_source_details?:Record<string,any>|null;token?:string|null;cart_url?:string|null;return_url?:string|null;terms_url?:string|null;privacy_url?:string|null;checkout_url?:string|null;placed_at?:string|null;approved_at?:string|null;cancelled_at?:string|null;payment_updated_at?:string|null;fulfillment_updated_at?:string|null;refreshed_at?:string|null;archived_at?:string|null;expires_at?:string|null;subscription_created_at?:string|null;circuit_state?:string|null;circuit_failure_count?:number|null;market?:Market|null;customer?:Customer|null;shipping_address?:Address|null;billing_address?:Address|null;available_payment_methods?:PaymentMethod[]|null;available_customer_payment_sources?:CustomerPaymentSource[]|null;available_free_skus?:Sku[]|null;available_free_bundles?:Bundle[]|null;payment_method?:PaymentMethod|null;payment_source?:AdyenPayment|AxervePayment|BraintreePayment|CheckoutComPayment|ExternalPayment|KlarnaPayment|PaypalPayment|SatispayPayment|StripePayment|WireTransfer|null;line_items?:LineItem[]|null;line_item_options?:LineItemOption[]|null;stock_reservations?:StockReservation[]|null;stock_line_items?:StockLineItem[]|null;stock_transfers?:StockTransfer[]|null;shipments?:Shipment[]|null;payment_options?:PaymentOption[]|null;transactions?:Array<Authorization|Capture|Void|Refund>|null;authorizations?:Authorization[]|null;captures?:Capture[]|null;voids?:Void[]|null;refunds?:Refund[]|null;returns?:Return[]|null;order_subscription?:OrderSubscription|null;order_subscriptions?:OrderSubscription[]|null;order_factories?:OrderFactory[]|null;order_copies?:OrderCopy[]|null;recurring_order_copies?:RecurringOrderCopy[]|null;attachments?:Attachment[]|null;resource_errors?:ResourceError[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;}interface OrderCreate extends ResourceCreate{number?:string|null;autorefresh?:boolean|null;place_async?:boolean|null;guest?:boolean|null;customer_email?:string|null;customer_password?:string|null;language_code?:string|null;freight_taxable?:boolean|null;payment_method_taxable?:boolean|null;adjustment_taxable?:boolean|null;gift_card_taxable?:boolean|null;shipping_country_code_lock?:string|null;coupon_code?:string|null;gift_card_code?:string|null;cart_url?:string|null;return_url?:string|null;terms_url?:string|null;privacy_url?:string|null;market?:MarketRel|null;customer?:CustomerRel|null;shipping_address?:AddressRel|null;billing_address?:AddressRel|null;payment_method?:PaymentMethodRel|null;payment_source?:AdyenPaymentRel|AxervePaymentRel|BraintreePaymentRel|CheckoutComPaymentRel|ExternalPaymentRel|KlarnaPaymentRel|PaypalPaymentRel|SatispayPaymentRel|StripePaymentRel|WireTransferRel|null;tags?:TagRel[]|null;}interface OrderUpdate extends ResourceUpdate{number?:string|null;autorefresh?:boolean|null;place_async?:boolean|null;guest?:boolean|null;customer_email?:string|null;customer_password?:string|null;language_code?:string|null;freight_taxable?:boolean|null;payment_method_taxable?:boolean|null;adjustment_taxable?:boolean|null;gift_card_taxable?:boolean|null;shipping_country_code_lock?:string|null;coupon_code?:string|null;gift_card_code?:string|null;cart_url?:string|null;return_url?:string|null;terms_url?:string|null;privacy_url?:string|null;_archive?:boolean|null;_unarchive?:boolean|null;_pending?:boolean|null;_place?:boolean|null;_cancel?:boolean|null;_approve?:boolean|null;_approve_and_capture?:boolean|null;_authorize?:boolean|null;_authorization_amount_cents?:number|null;_capture?:boolean|null;_refund?:boolean|null;_update_taxes?:boolean|null;_nullify_payment_source?:boolean|null;_billing_address_clone_id?:string|null;_shipping_address_clone_id?:string|null;_customer_payment_source_id?:string|null;_shipping_address_same_as_billing?:boolean|null;_billing_address_same_as_shipping?:boolean|null;_commit_invoice?:boolean|null;_refund_invoice?:boolean|null;_save_payment_source_to_customer_wallet?:boolean|null;_save_shipping_address_to_customer_address_book?:boolean|null;_save_billing_address_to_customer_address_book?:boolean|null;_refresh?:boolean|null;_validate?:boolean|null;_create_subscriptions?:boolean|null;_start_editing?:boolean|null;_stop_editing?:boolean|null;_reset_circuit?:boolean|null;market?:MarketRel|null;customer?:CustomerRel|null;shipping_address?:AddressRel|null;billing_address?:AddressRel|null;payment_method?:PaymentMethodRel|null;payment_source?:AdyenPaymentRel|AxervePaymentRel|BraintreePaymentRel|CheckoutComPaymentRel|ExternalPaymentRel|KlarnaPaymentRel|PaypalPaymentRel|SatispayPaymentRel|StripePaymentRel|WireTransferRel|null;tags?:TagRel[]|null;}declare class Orders extends ApiResource<Order>{static readonly TYPE:OrderType;create(resource:OrderCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;update(resource:OrderUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;customer(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;shipping_address(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;billing_address(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;available_payment_methods(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;available_customer_payment_sources(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerPaymentSource>>;available_free_skus(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;available_free_bundles(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Bundle>>;payment_method(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentMethod>;line_items(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItem>>;line_item_options(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItemOption>>;stock_reservations(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockReservation>>;stock_line_items(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;shipments(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Shipment>>;payment_options(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentOption>>;authorizations(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Authorization>>;captures(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Capture>>;voids(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Void>>;refunds(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Refund>>;returns(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Return>>;order_subscription(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;order_subscriptions(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderSubscription>>;order_factories(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderFactory>>;order_copies(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderCopy>>;recurring_order_copies(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<RecurringOrderCopy>>;attachments(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;resource_errors(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ResourceError>>;events(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_archive(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_unarchive(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_pending(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_place(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_cancel(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_approve(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_approve_and_capture(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_authorize(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_authorization_amount_cents(id:string|Order,triggerValue:number,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_capture(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_refund(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_update_taxes(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_nullify_payment_source(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_billing_address_clone_id(id:string|Order,triggerValue:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_shipping_address_clone_id(id:string|Order,triggerValue:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_customer_payment_source_id(id:string|Order,triggerValue:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_shipping_address_same_as_billing(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_billing_address_same_as_shipping(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_commit_invoice(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_refund_invoice(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_save_payment_source_to_customer_wallet(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_save_shipping_address_to_customer_address_book(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_save_billing_address_to_customer_address_book(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_refresh(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_validate(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_create_subscriptions(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_start_editing(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_stop_editing(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_reset_circuit(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;isOrder(resource:any):resource is Order;relationship(id:string|ResourceId|null):OrderRel;type():OrderType;}export default Orders;export type{Order,OrderCreate,OrderUpdate,OrderType};
|
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{Customer,CustomerType}from'./customers';import type{Address,AddressType}from'./addresses';import type{PaymentMethod,PaymentMethodType}from'./payment_methods';import type{CustomerPaymentSource}from'./customer_payment_sources';import type{Sku}from'./skus';import type{Bundle}from'./bundles';import type{AdyenPayment,AdyenPaymentType}from'./adyen_payments';import type{AxervePayment,AxervePaymentType}from'./axerve_payments';import type{BraintreePayment,BraintreePaymentType}from'./braintree_payments';import type{CheckoutComPayment,CheckoutComPaymentType}from'./checkout_com_payments';import type{ExternalPayment,ExternalPaymentType}from'./external_payments';import type{KlarnaPayment,KlarnaPaymentType}from'./klarna_payments';import type{PaypalPayment,PaypalPaymentType}from'./paypal_payments';import type{SatispayPayment,SatispayPaymentType}from'./satispay_payments';import type{StripePayment,StripePaymentType}from'./stripe_payments';import type{WireTransfer,WireTransferType}from'./wire_transfers';import type{LineItem}from'./line_items';import type{LineItemOption}from'./line_item_options';import type{StockReservation}from'./stock_reservations';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{Shipment}from'./shipments';import type{PaymentOption}from'./payment_options';import type{Authorization}from'./authorizations';import type{Capture}from'./captures';import type{Void}from'./voids';import type{Refund}from'./refunds';import type{Return}from'./returns';import type{OrderSubscription}from'./order_subscriptions';import type{OrderFactory}from'./order_factories';import type{OrderCopy}from'./order_copies';import type{RecurringOrderCopy}from'./recurring_order_copies';import type{Attachment}from'./attachments';import type{ResourceError}from'./resource_errors';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type OrderType='orders';type OrderRel=ResourceRel&{type:OrderType;};type MarketRel=ResourceRel&{type:MarketType;};type CustomerRel=ResourceRel&{type:CustomerType;};type AddressRel=ResourceRel&{type:AddressType;};type PaymentMethodRel=ResourceRel&{type:PaymentMethodType;};type AdyenPaymentRel=ResourceRel&{type:AdyenPaymentType;};type AxervePaymentRel=ResourceRel&{type:AxervePaymentType;};type BraintreePaymentRel=ResourceRel&{type:BraintreePaymentType;};type CheckoutComPaymentRel=ResourceRel&{type:CheckoutComPaymentType;};type ExternalPaymentRel=ResourceRel&{type:ExternalPaymentType;};type KlarnaPaymentRel=ResourceRel&{type:KlarnaPaymentType;};type PaypalPaymentRel=ResourceRel&{type:PaypalPaymentType;};type SatispayPaymentRel=ResourceRel&{type:SatispayPaymentType;};type StripePaymentRel=ResourceRel&{type:StripePaymentType;};type WireTransferRel=ResourceRel&{type:WireTransferType;};type TagRel=ResourceRel&{type:TagType;};interface Order extends Resource{readonly type:OrderType;number?:string|null;autorefresh?:boolean|null;place_async?:boolean|null;status:'draft'|'pending'|'placing'|'placed'|'editing'|'approved'|'cancelled';payment_status:'unpaid'|'authorized'|'partially_authorized'|'paid'|'partially_paid'|'voided'|'partially_voided'|'refunded'|'partially_refunded'|'free';fulfillment_status:'unfulfilled'|'in_progress'|'fulfilled'|'not_required';guest?:boolean|null;editable?:boolean|null;customer_email?:string|null;language_code?:string|null;currency_code?:string|null;tax_included?:boolean|null;tax_rate?:number|null;freight_taxable?:boolean|null;payment_method_taxable?:boolean|null;adjustment_taxable?:boolean|null;gift_card_taxable?:boolean|null;requires_billing_info?:boolean|null;country_code?:string|null;shipping_country_code_lock?:string|null;coupon_code?:string|null;gift_card_code?:string|null;subtotal_amount_cents?:number|null;subtotal_amount_float?:number|null;formatted_subtotal_amount?:string|null;shipping_amount_cents?:number|null;shipping_amount_float?:number|null;formatted_shipping_amount?:string|null;payment_method_amount_cents?:number|null;payment_method_amount_float?:number|null;formatted_payment_method_amount?:string|null;discount_amount_cents?:number|null;discount_amount_float?:number|null;formatted_discount_amount?:string|null;adjustment_amount_cents?:number|null;adjustment_amount_float?:number|null;formatted_adjustment_amount?:string|null;gift_card_amount_cents?:number|null;gift_card_amount_float?:number|null;formatted_gift_card_amount?:string|null;total_tax_amount_cents?:number|null;total_tax_amount_float?:number|null;formatted_total_tax_amount?:string|null;subtotal_tax_amount_cents?:number|null;subtotal_tax_amount_float?:number|null;formatted_subtotal_tax_amount?:string|null;shipping_tax_amount_cents?:number|null;shipping_tax_amount_float?:number|null;formatted_shipping_tax_amount?:string|null;payment_method_tax_amount_cents?:number|null;payment_method_tax_amount_float?:number|null;formatted_payment_method_tax_amount?:string|null;adjustment_tax_amount_cents?:number|null;adjustment_tax_amount_float?:number|null;formatted_adjustment_tax_amount?:string|null;total_amount_cents?:number|null;total_amount_float?:number|null;formatted_total_amount?:string|null;total_taxable_amount_cents?:number|null;total_taxable_amount_float?:number|null;formatted_total_taxable_amount?:string|null;subtotal_taxable_amount_cents?:number|null;subtotal_taxable_amount_float?:number|null;formatted_subtotal_taxable_amount?:string|null;shipping_taxable_amount_cents?:number|null;shipping_taxable_amount_float?:number|null;formatted_shipping_taxable_amount?:string|null;payment_method_taxable_amount_cents?:number|null;payment_method_taxable_amount_float?:number|null;formatted_payment_method_taxable_amount?:string|null;adjustment_taxable_amount_cents?:number|null;adjustment_taxable_amount_float?:number|null;formatted_adjustment_taxable_amount?:string|null;total_amount_with_taxes_cents?:number|null;total_amount_with_taxes_float?:number|null;formatted_total_amount_with_taxes?:string|null;fees_amount_cents?:number|null;fees_amount_float?:number|null;formatted_fees_amount?:string|null;duty_amount_cents?:number|null;duty_amount_float?:number|null;formatted_duty_amount?:string|null;place_total_amount_cents?:number|null;place_total_amount_float?:number|null;formatted_place_total_amount?:string|null;skus_count?:number|null;line_item_options_count?:number|null;shipments_count?:number|null;tax_calculations_count?:number|null;validations_count?:number|null;errors_count?:number|null;payment_source_details?:Record<string,any>|null;token?:string|null;cart_url?:string|null;return_url?:string|null;terms_url?:string|null;privacy_url?:string|null;checkout_url?:string|null;placed_at?:string|null;approved_at?:string|null;cancelled_at?:string|null;payment_updated_at?:string|null;fulfillment_updated_at?:string|null;refreshed_at?:string|null;archived_at?:string|null;subscription_created_at?:string|null;circuit_state?:string|null;circuit_failure_count?:number|null;market?:Market|null;customer?:Customer|null;shipping_address?:Address|null;billing_address?:Address|null;available_payment_methods?:PaymentMethod[]|null;available_customer_payment_sources?:CustomerPaymentSource[]|null;available_free_skus?:Sku[]|null;available_free_bundles?:Bundle[]|null;payment_method?:PaymentMethod|null;payment_source?:AdyenPayment|AxervePayment|BraintreePayment|CheckoutComPayment|ExternalPayment|KlarnaPayment|PaypalPayment|SatispayPayment|StripePayment|WireTransfer|null;line_items?:LineItem[]|null;line_item_options?:LineItemOption[]|null;stock_reservations?:StockReservation[]|null;stock_line_items?:StockLineItem[]|null;stock_transfers?:StockTransfer[]|null;shipments?:Shipment[]|null;payment_options?:PaymentOption[]|null;transactions?:Array<Authorization|Capture|Void|Refund>|null;authorizations?:Authorization[]|null;captures?:Capture[]|null;voids?:Void[]|null;refunds?:Refund[]|null;returns?:Return[]|null;order_subscription?:OrderSubscription|null;order_subscriptions?:OrderSubscription[]|null;order_factories?:OrderFactory[]|null;order_copies?:OrderCopy[]|null;recurring_order_copies?:RecurringOrderCopy[]|null;attachments?:Attachment[]|null;resource_errors?:ResourceError[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;}interface OrderCreate extends ResourceCreate{number?:string|null;autorefresh?:boolean|null;place_async?:boolean|null;guest?:boolean|null;customer_email?:string|null;customer_password?:string|null;language_code?:string|null;freight_taxable?:boolean|null;payment_method_taxable?:boolean|null;adjustment_taxable?:boolean|null;gift_card_taxable?:boolean|null;shipping_country_code_lock?:string|null;coupon_code?:string|null;gift_card_code?:string|null;cart_url?:string|null;return_url?:string|null;terms_url?:string|null;privacy_url?:string|null;market?:MarketRel|null;customer?:CustomerRel|null;shipping_address?:AddressRel|null;billing_address?:AddressRel|null;payment_method?:PaymentMethodRel|null;payment_source?:AdyenPaymentRel|AxervePaymentRel|BraintreePaymentRel|CheckoutComPaymentRel|ExternalPaymentRel|KlarnaPaymentRel|PaypalPaymentRel|SatispayPaymentRel|StripePaymentRel|WireTransferRel|null;tags?:TagRel[]|null;}interface OrderUpdate extends ResourceUpdate{number?:string|null;autorefresh?:boolean|null;place_async?:boolean|null;guest?:boolean|null;customer_email?:string|null;customer_password?:string|null;language_code?:string|null;freight_taxable?:boolean|null;payment_method_taxable?:boolean|null;adjustment_taxable?:boolean|null;gift_card_taxable?:boolean|null;shipping_country_code_lock?:string|null;coupon_code?:string|null;gift_card_code?:string|null;cart_url?:string|null;return_url?:string|null;terms_url?:string|null;privacy_url?:string|null;_archive?:boolean|null;_unarchive?:boolean|null;_pending?:boolean|null;_place?:boolean|null;_cancel?:boolean|null;_approve?:boolean|null;_approve_and_capture?:boolean|null;_authorize?:boolean|null;_authorization_amount_cents?:number|null;_capture?:boolean|null;_refund?:boolean|null;_fulfill?:boolean|null;_update_taxes?:boolean|null;_nullify_payment_source?:boolean|null;_billing_address_clone_id?:string|null;_shipping_address_clone_id?:string|null;_customer_payment_source_id?:string|null;_shipping_address_same_as_billing?:boolean|null;_billing_address_same_as_shipping?:boolean|null;_commit_invoice?:boolean|null;_refund_invoice?:boolean|null;_save_payment_source_to_customer_wallet?:boolean|null;_save_shipping_address_to_customer_address_book?:boolean|null;_save_billing_address_to_customer_address_book?:boolean|null;_refresh?:boolean|null;_validate?:boolean|null;_create_subscriptions?:boolean|null;_start_editing?:boolean|null;_stop_editing?:boolean|null;_reset_circuit?:boolean|null;market?:MarketRel|null;customer?:CustomerRel|null;shipping_address?:AddressRel|null;billing_address?:AddressRel|null;payment_method?:PaymentMethodRel|null;payment_source?:AdyenPaymentRel|AxervePaymentRel|BraintreePaymentRel|CheckoutComPaymentRel|ExternalPaymentRel|KlarnaPaymentRel|PaypalPaymentRel|SatispayPaymentRel|StripePaymentRel|WireTransferRel|null;tags?:TagRel[]|null;}declare class Orders extends ApiResource<Order>{static readonly TYPE:OrderType;create(resource:OrderCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;update(resource:OrderUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;market(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;customer(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;shipping_address(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;billing_address(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;available_payment_methods(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;available_customer_payment_sources(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerPaymentSource>>;available_free_skus(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;available_free_bundles(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Bundle>>;payment_method(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentMethod>;line_items(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItem>>;line_item_options(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItemOption>>;stock_reservations(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockReservation>>;stock_line_items(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;shipments(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Shipment>>;payment_options(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentOption>>;authorizations(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Authorization>>;captures(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Capture>>;voids(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Void>>;refunds(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Refund>>;returns(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Return>>;order_subscription(orderId:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderSubscription>;order_subscriptions(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderSubscription>>;order_factories(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderFactory>>;order_copies(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<OrderCopy>>;recurring_order_copies(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<RecurringOrderCopy>>;attachments(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;resource_errors(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ResourceError>>;events(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(orderId:string|Order,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_archive(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_unarchive(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_pending(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_place(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_cancel(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_approve(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_approve_and_capture(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_authorize(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_authorization_amount_cents(id:string|Order,triggerValue:number,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_capture(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_refund(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_fulfill(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_update_taxes(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_nullify_payment_source(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_billing_address_clone_id(id:string|Order,triggerValue:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_shipping_address_clone_id(id:string|Order,triggerValue:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_customer_payment_source_id(id:string|Order,triggerValue:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_shipping_address_same_as_billing(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_billing_address_same_as_shipping(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_commit_invoice(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_refund_invoice(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_save_payment_source_to_customer_wallet(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_save_shipping_address_to_customer_address_book(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_save_billing_address_to_customer_address_book(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_refresh(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_validate(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_create_subscriptions(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_start_editing(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_stop_editing(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;_reset_circuit(id:string|Order,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;isOrder(resource:any):resource is Order;relationship(id:string|ResourceId|null):OrderRel;type():OrderType;}export default Orders;export type{Order,OrderCreate,OrderUpdate,OrderType};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as o}from"../resource";class n extends o{async create(e,s
|
1
|
+
import{ApiResource as o}from"../resource";class n extends o{async create(e,t,s){return this.resources.create({...e,type:n.TYPE},t,s)}async update(e,t,s){return this.resources.update({...e,type:n.TYPE},t,s)}async delete(e,t){await this.resources.delete(typeof e=="string"?{id:e,type:n.TYPE}:e,t)}async market(e,t,s){const r=e.id||e;return this.resources.fetch({type:"markets"},`orders/${r}/market`,t,s)}async customer(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customers"},`orders/${r}/customer`,t,s)}async shipping_address(e,t,s){const r=e.id||e;return this.resources.fetch({type:"addresses"},`orders/${r}/shipping_address`,t,s)}async billing_address(e,t,s){const r=e.id||e;return this.resources.fetch({type:"addresses"},`orders/${r}/billing_address`,t,s)}async available_payment_methods(e,t,s){const r=e.id||e;return this.resources.fetch({type:"payment_methods"},`orders/${r}/available_payment_methods`,t,s)}async available_customer_payment_sources(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_payment_sources"},`orders/${r}/available_customer_payment_sources`,t,s)}async available_free_skus(e,t,s){const r=e.id||e;return this.resources.fetch({type:"skus"},`orders/${r}/available_free_skus`,t,s)}async available_free_bundles(e,t,s){const r=e.id||e;return this.resources.fetch({type:"bundles"},`orders/${r}/available_free_bundles`,t,s)}async payment_method(e,t,s){const r=e.id||e;return this.resources.fetch({type:"payment_methods"},`orders/${r}/payment_method`,t,s)}async line_items(e,t,s){const r=e.id||e;return this.resources.fetch({type:"line_items"},`orders/${r}/line_items`,t,s)}async line_item_options(e,t,s){const r=e.id||e;return this.resources.fetch({type:"line_item_options"},`orders/${r}/line_item_options`,t,s)}async stock_reservations(e,t,s){const r=e.id||e;return this.resources.fetch({type:"stock_reservations"},`orders/${r}/stock_reservations`,t,s)}async stock_line_items(e,t,s){const r=e.id||e;return this.resources.fetch({type:"stock_line_items"},`orders/${r}/stock_line_items`,t,s)}async stock_transfers(e,t,s){const r=e.id||e;return this.resources.fetch({type:"stock_transfers"},`orders/${r}/stock_transfers`,t,s)}async shipments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"shipments"},`orders/${r}/shipments`,t,s)}async payment_options(e,t,s){const r=e.id||e;return this.resources.fetch({type:"payment_options"},`orders/${r}/payment_options`,t,s)}async authorizations(e,t,s){const r=e.id||e;return this.resources.fetch({type:"authorizations"},`orders/${r}/authorizations`,t,s)}async captures(e,t,s){const r=e.id||e;return this.resources.fetch({type:"captures"},`orders/${r}/captures`,t,s)}async voids(e,t,s){const r=e.id||e;return this.resources.fetch({type:"voids"},`orders/${r}/voids`,t,s)}async refunds(e,t,s){const r=e.id||e;return this.resources.fetch({type:"refunds"},`orders/${r}/refunds`,t,s)}async returns(e,t,s){const r=e.id||e;return this.resources.fetch({type:"returns"},`orders/${r}/returns`,t,s)}async order_subscription(e,t,s){const r=e.id||e;return this.resources.fetch({type:"order_subscriptions"},`orders/${r}/order_subscription`,t,s)}async order_subscriptions(e,t,s){const r=e.id||e;return this.resources.fetch({type:"order_subscriptions"},`orders/${r}/order_subscriptions`,t,s)}async order_factories(e,t,s){const r=e.id||e;return this.resources.fetch({type:"order_factories"},`orders/${r}/order_factories`,t,s)}async order_copies(e,t,s){const r=e.id||e;return this.resources.fetch({type:"order_copies"},`orders/${r}/order_copies`,t,s)}async recurring_order_copies(e,t,s){const r=e.id||e;return this.resources.fetch({type:"recurring_order_copies"},`orders/${r}/recurring_order_copies`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`orders/${r}/attachments`,t,s)}async resource_errors(e,t,s){const r=e.id||e;return this.resources.fetch({type:"resource_errors"},`orders/${r}/resource_errors`,t,s)}async events(e,t,s){const r=e.id||e;return this.resources.fetch({type:"events"},`orders/${r}/events`,t,s)}async tags(e,t,s){const r=e.id||e;return this.resources.fetch({type:"tags"},`orders/${r}/tags`,t,s)}async versions(e,t,s){const r=e.id||e;return this.resources.fetch({type:"versions"},`orders/${r}/versions`,t,s)}async _archive(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_archive:!0},t,s)}async _unarchive(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_unarchive:!0},t,s)}async _pending(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_pending:!0},t,s)}async _place(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_place:!0},t,s)}async _cancel(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_cancel:!0},t,s)}async _approve(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_approve:!0},t,s)}async _approve_and_capture(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_approve_and_capture:!0},t,s)}async _authorize(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_authorize:!0},t,s)}async _authorization_amount_cents(e,t,s,r){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_authorization_amount_cents:t},s,r)}async _capture(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_capture:!0},t,s)}async _refund(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_refund:!0},t,s)}async _fulfill(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_fulfill:!0},t,s)}async _update_taxes(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_update_taxes:!0},t,s)}async _nullify_payment_source(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_nullify_payment_source:!0},t,s)}async _billing_address_clone_id(e,t,s,r){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_billing_address_clone_id:t},s,r)}async _shipping_address_clone_id(e,t,s,r){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_shipping_address_clone_id:t},s,r)}async _customer_payment_source_id(e,t,s,r){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_customer_payment_source_id:t},s,r)}async _shipping_address_same_as_billing(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_shipping_address_same_as_billing:!0},t,s)}async _billing_address_same_as_shipping(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_billing_address_same_as_shipping:!0},t,s)}async _commit_invoice(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_commit_invoice:!0},t,s)}async _refund_invoice(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_refund_invoice:!0},t,s)}async _save_payment_source_to_customer_wallet(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_save_payment_source_to_customer_wallet:!0},t,s)}async _save_shipping_address_to_customer_address_book(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_save_shipping_address_to_customer_address_book:!0},t,s)}async _save_billing_address_to_customer_address_book(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_save_billing_address_to_customer_address_book:!0},t,s)}async _refresh(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_refresh:!0},t,s)}async _validate(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_validate:!0},t,s)}async _create_subscriptions(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_create_subscriptions:!0},t,s)}async _start_editing(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_start_editing:!0},t,s)}async _stop_editing(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_stop_editing:!0},t,s)}async _reset_circuit(e,t,s){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_reset_circuit:!0},t,s)}isOrder(e){return e.type&&e.type===n.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:n.TYPE}:{id:e.id,type:n.TYPE}}type(){return n.TYPE}}n.TYPE="orders";export default n;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Order,OrderType}from'./orders';import type{ShippingCategory,ShippingCategoryType}from'./shipping_categories';import type{InventoryStockLocation,InventoryStockLocationType}from'./inventory_stock_locations';import type{StockLocation}from'./stock_locations';import type{Address,AddressType}from'./addresses';import type{ShippingMethod,ShippingMethodType}from'./shipping_methods';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{LineItem}from'./line_items';import type{CarrierAccount}from'./carrier_accounts';import type{Parcel}from'./parcels';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type ShipmentType='shipments';type ShipmentRel=ResourceRel&{type:ShipmentType;};type OrderRel=ResourceRel&{type:OrderType;};type ShippingCategoryRel=ResourceRel&{type:ShippingCategoryType;};type InventoryStockLocationRel=ResourceRel&{type:InventoryStockLocationType;};type AddressRel=ResourceRel&{type:AddressType;};type ShippingMethodRel=ResourceRel&{type:ShippingMethodType;};type TagRel=ResourceRel&{type:TagType;};interface Shipment extends Resource{readonly type:ShipmentType;number
|
1
|
+
import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Order,OrderType}from'./orders';import type{ShippingCategory,ShippingCategoryType}from'./shipping_categories';import type{InventoryStockLocation,InventoryStockLocationType}from'./inventory_stock_locations';import type{StockLocation}from'./stock_locations';import type{Address,AddressType}from'./addresses';import type{ShippingMethod,ShippingMethodType}from'./shipping_methods';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{LineItem}from'./line_items';import type{CarrierAccount}from'./carrier_accounts';import type{Parcel}from'./parcels';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag,TagType}from'./tags';import type{Version}from'./versions';type ShipmentType='shipments';type ShipmentRel=ResourceRel&{type:ShipmentType;};type OrderRel=ResourceRel&{type:OrderType;};type ShippingCategoryRel=ResourceRel&{type:ShippingCategoryType;};type InventoryStockLocationRel=ResourceRel&{type:InventoryStockLocationType;};type AddressRel=ResourceRel&{type:AddressType;};type ShippingMethodRel=ResourceRel&{type:ShippingMethodType;};type TagRel=ResourceRel&{type:TagType;};interface Shipment extends Resource{readonly type:ShipmentType;number:string;status:'draft'|'upcoming'|'cancelled'|'on_hold'|'picking'|'packing'|'ready_to_ship'|'shipped'|'delivered';currency_code?:string|null;cost_amount_cents?:number|null;cost_amount_float?:number|null;formatted_cost_amount?:string|null;skus_count?:number|null;selected_rate_id?:string|null;rates?:Array<Record<string,any>>|null;purchase_error_code?:string|null;purchase_error_message?:string|null;get_rates_errors?:Array<Record<string,any>>|null;get_rates_started_at?:string|null;get_rates_completed_at?:string|null;purchase_started_at?:string|null;purchase_completed_at?:string|null;purchase_failed_at?:string|null;on_hold_at?:string|null;picking_at?:string|null;packing_at?:string|null;ready_to_ship_at?:string|null;shipped_at?:string|null;order?:Order|null;shipping_category?:ShippingCategory|null;inventory_stock_location?:InventoryStockLocation|null;stock_location?:StockLocation|null;origin_address?:Address|null;shipping_address?:Address|null;shipping_method?:ShippingMethod|null;delivery_lead_time?:DeliveryLeadTime|null;stock_line_items?:StockLineItem[]|null;stock_transfers?:StockTransfer[]|null;line_items?:LineItem[]|null;available_shipping_methods?:ShippingMethod[]|null;carrier_accounts?:CarrierAccount[]|null;parcels?:Parcel[]|null;attachments?:Attachment[]|null;events?:Event[]|null;tags?:Tag[]|null;versions?:Version[]|null;}interface ShipmentCreate extends ResourceCreate{order:OrderRel;shipping_category?:ShippingCategoryRel|null;inventory_stock_location:InventoryStockLocationRel;shipping_address?:AddressRel|null;shipping_method?:ShippingMethodRel|null;tags?:TagRel[]|null;}interface ShipmentUpdate extends ResourceUpdate{number?:string|null;_upcoming?:boolean|null;_on_hold?:boolean|null;_picking?:boolean|null;_packing?:boolean|null;_ready_to_ship?:boolean|null;_ship?:boolean|null;_deliver?:boolean|null;_reserve_stock?:boolean|null;_release_stock?:boolean|null;_decrement_stock?:boolean|null;_get_rates?:boolean|null;selected_rate_id?:string|null;_purchase?:boolean|null;shipping_category?:ShippingCategoryRel|null;inventory_stock_location?:InventoryStockLocationRel|null;shipping_address?:AddressRel|null;shipping_method?:ShippingMethodRel|null;tags?:TagRel[]|null;}declare class Shipments extends ApiResource<Shipment>{static readonly TYPE:ShipmentType;create(resource:ShipmentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;update(resource:ShipmentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;order(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;shipping_category(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;inventory_stock_location(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryStockLocation>;stock_location(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;origin_address(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;shipping_address(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;shipping_method(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;delivery_lead_time(shipmentId:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;stock_line_items(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;line_items(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItem>>;available_shipping_methods(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingMethod>>;carrier_accounts(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CarrierAccount>>;parcels(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Parcel>>;attachments(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(shipmentId:string|Shipment,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_upcoming(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_on_hold(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_picking(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_packing(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_ready_to_ship(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_ship(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_deliver(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_reserve_stock(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_release_stock(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_decrement_stock(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_get_rates(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;_purchase(id:string|Shipment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;isShipment(resource:any):resource is Shipment;relationship(id:string|ResourceId|null):ShipmentRel;type():ShipmentType;}export default Shipments;export type{Shipment,ShipmentCreate,ShipmentUpdate,ShipmentType};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as c}from"../resource";class n extends c{async create(e,s,t){return this.resources.create({...e,type:n.TYPE},s,t)}async update(e,s,t){return this.resources.update({...e,type:n.TYPE},s,t)}async delete(e,s){await this.resources.delete(typeof e=="string"?{id:e,type:n.TYPE}:e,s)}async order(e,s,t){const r=e.id||e;return this.resources.fetch({type:"orders"},`shipments/${r}/order`,s,t)}async shipping_category(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_categories"},`shipments/${r}/shipping_category`,s,t)}async inventory_stock_location(e,s,t){const r=e.id||e;return this.resources.fetch({type:"inventory_stock_locations"},`shipments/${r}/inventory_stock_location`,s,t)}async stock_location(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_locations"},`shipments/${r}/stock_location`,s,t)}async origin_address(e,s,t){const r=e.id||e;return this.resources.fetch({type:"addresses"},`shipments/${r}/origin_address`,s,t)}async shipping_address(e,s,t){const r=e.id||e;return this.resources.fetch({type:"addresses"},`shipments/${r}/shipping_address`,s,t)}async shipping_method(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/shipping_method`,s,t)}async delivery_lead_time(e,s,t){const r=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`shipments/${r}/delivery_lead_time`,s,t)}async stock_line_items(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_line_items"},`shipments/${r}/stock_line_items`,s,t)}async stock_transfers(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_transfers"},`shipments/${r}/stock_transfers`,s,t)}async line_items(e,s,t){const r=e.id||e;return this.resources.fetch({type:"line_items"},`shipments/${r}/line_items`,s,t)}async available_shipping_methods(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/available_shipping_methods`,s,t)}async carrier_accounts(e,s,t){const r=e.id||e;return this.resources.fetch({type:"carrier_accounts"},`shipments/${r}/carrier_accounts`,s,t)}async parcels(e,s,t){const r=e.id||e;return this.resources.fetch({type:"parcels"},`shipments/${r}/parcels`,s,t)}async attachments(e,s,t){const r=e.id||e;return this.resources.fetch({type:"attachments"},`shipments/${r}/attachments`,s,t)}async events(e,s,t){const r=e.id||e;return this.resources.fetch({type:"events"},`shipments/${r}/events`,s,t)}async tags(e,s,t){const r=e.id||e;return this.resources.fetch({type:"tags"},`shipments/${r}/tags`,s,t)}async versions(e,s,t){const r=e.id||e;return this.resources.fetch({type:"versions"},`shipments/${r}/versions`,s,t)}async _upcoming(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_upcoming:!0},s,t)}async _on_hold(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_on_hold:!0},s,t)}async _picking(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_picking:!0},s,t)}async _packing(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_packing:!0},s,t)}async _ready_to_ship(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_ready_to_ship:!0},s,t)}async _ship(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_ship:!0},s,t)}async _reserve_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_reserve_stock:!0},s,t)}async _release_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_release_stock:!0},s,t)}async _decrement_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_decrement_stock:!0},s,t)}async _get_rates(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_get_rates:!0},s,t)}async _purchase(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_purchase:!0},s,t)}isShipment(e){return e.type&&e.type===n.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:n.TYPE}:{id:e.id,type:n.TYPE}}type(){return n.TYPE}}n.TYPE="shipments";export default n;
|
1
|
+
import{ApiResource as c}from"../resource";class n extends c{async create(e,s,t){return this.resources.create({...e,type:n.TYPE},s,t)}async update(e,s,t){return this.resources.update({...e,type:n.TYPE},s,t)}async delete(e,s){await this.resources.delete(typeof e=="string"?{id:e,type:n.TYPE}:e,s)}async order(e,s,t){const r=e.id||e;return this.resources.fetch({type:"orders"},`shipments/${r}/order`,s,t)}async shipping_category(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_categories"},`shipments/${r}/shipping_category`,s,t)}async inventory_stock_location(e,s,t){const r=e.id||e;return this.resources.fetch({type:"inventory_stock_locations"},`shipments/${r}/inventory_stock_location`,s,t)}async stock_location(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_locations"},`shipments/${r}/stock_location`,s,t)}async origin_address(e,s,t){const r=e.id||e;return this.resources.fetch({type:"addresses"},`shipments/${r}/origin_address`,s,t)}async shipping_address(e,s,t){const r=e.id||e;return this.resources.fetch({type:"addresses"},`shipments/${r}/shipping_address`,s,t)}async shipping_method(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/shipping_method`,s,t)}async delivery_lead_time(e,s,t){const r=e.id||e;return this.resources.fetch({type:"delivery_lead_times"},`shipments/${r}/delivery_lead_time`,s,t)}async stock_line_items(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_line_items"},`shipments/${r}/stock_line_items`,s,t)}async stock_transfers(e,s,t){const r=e.id||e;return this.resources.fetch({type:"stock_transfers"},`shipments/${r}/stock_transfers`,s,t)}async line_items(e,s,t){const r=e.id||e;return this.resources.fetch({type:"line_items"},`shipments/${r}/line_items`,s,t)}async available_shipping_methods(e,s,t){const r=e.id||e;return this.resources.fetch({type:"shipping_methods"},`shipments/${r}/available_shipping_methods`,s,t)}async carrier_accounts(e,s,t){const r=e.id||e;return this.resources.fetch({type:"carrier_accounts"},`shipments/${r}/carrier_accounts`,s,t)}async parcels(e,s,t){const r=e.id||e;return this.resources.fetch({type:"parcels"},`shipments/${r}/parcels`,s,t)}async attachments(e,s,t){const r=e.id||e;return this.resources.fetch({type:"attachments"},`shipments/${r}/attachments`,s,t)}async events(e,s,t){const r=e.id||e;return this.resources.fetch({type:"events"},`shipments/${r}/events`,s,t)}async tags(e,s,t){const r=e.id||e;return this.resources.fetch({type:"tags"},`shipments/${r}/tags`,s,t)}async versions(e,s,t){const r=e.id||e;return this.resources.fetch({type:"versions"},`shipments/${r}/versions`,s,t)}async _upcoming(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_upcoming:!0},s,t)}async _on_hold(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_on_hold:!0},s,t)}async _picking(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_picking:!0},s,t)}async _packing(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_packing:!0},s,t)}async _ready_to_ship(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_ready_to_ship:!0},s,t)}async _ship(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_ship:!0},s,t)}async _deliver(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_deliver:!0},s,t)}async _reserve_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_reserve_stock:!0},s,t)}async _release_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_release_stock:!0},s,t)}async _decrement_stock(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_decrement_stock:!0},s,t)}async _get_rates(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_get_rates:!0},s,t)}async _purchase(e,s,t){return this.resources.update({id:typeof e=="string"?e:e.id,type:n.TYPE,_purchase:!0},s,t)}isShipment(e){return e.type&&e.type===n.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:n.TYPE}:{id:e.id,type:n.TYPE}}type(){return n.TYPE}}n.TYPE="shipments";export default n;
|
@@ -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{Sku,SkuType}from'./skus';import type{StockLocation,StockLocationType}from'./stock_locations';import type{Shipment,ShipmentType}from'./shipments';import type{LineItem,LineItemType}from'./line_items';import type{Event}from'./events';import type{Version}from'./versions';type StockTransferType='stock_transfers';type StockTransferRel=ResourceRel&{type:StockTransferType;};type SkuRel=ResourceRel&{type:SkuType;};type StockLocationRel=ResourceRel&{type:StockLocationType;};type ShipmentRel=ResourceRel&{type:ShipmentType;};type LineItemRel=ResourceRel&{type:LineItemType;};interface StockTransfer extends Resource{readonly type:StockTransferType;number?:string|null;sku_code?:string|null;status:'draft'|'upcoming'|'on_hold'|'picking'|'in_transit'|'completed'|'cancelled';quantity:number;completed_at?:string|null;cancelled_at?:string|null;sku?:Sku|null;origin_stock_location?:StockLocation|null;destination_stock_location?:StockLocation|null;shipment?:Shipment|null;line_item?:LineItem|null;events?:Event[]|null;versions?:Version[]|null;}interface StockTransferCreate extends ResourceCreate{number?:string|null;sku_code?:string|null;quantity:number;sku:SkuRel;origin_stock_location:StockLocationRel;destination_stock_location:StockLocationRel;shipment?:ShipmentRel|null;line_item?:LineItemRel|null;}interface StockTransferUpdate extends ResourceUpdate{number?:string|null;sku_code?:string|null;_upcoming?:boolean|null;_on_hold?:boolean|null;_picking?:boolean|null;_in_transit?:boolean|null;_complete?:boolean|null;_cancel?:boolean|null;sku?:SkuRel|null;origin_stock_location?:StockLocationRel|null;destination_stock_location?:StockLocationRel|null;shipment?:ShipmentRel|null;line_item?:LineItemRel|null;}declare class StockTransfers extends ApiResource<StockTransfer>{static readonly TYPE:StockTransferType;create(resource:StockTransferCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;update(resource:StockTransferUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;sku(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;origin_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;destination_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;shipment(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;line_item(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;events(stockTransferId:string|StockTransfer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;versions(stockTransferId:string|StockTransfer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_upcoming(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;_on_hold(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;_picking(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;_in_transit(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;_complete(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;_cancel(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;isStockTransfer(resource:any):resource is StockTransfer;relationship(id:string|ResourceId|null):StockTransferRel;type():StockTransferType;}export default StockTransfers;export type{StockTransfer,StockTransferCreate,StockTransferUpdate,StockTransferType};
|
1
|
+
import{ApiResource}from'../resource';import type{Resource,ResourceCreate,ResourceUpdate,ResourceId,ResourcesConfig,ResourceRel,ListResponse}from'../resource';import type{QueryParamsRetrieve,QueryParamsList}from'../query';import type{Sku,SkuType}from'./skus';import type{StockLocation,StockLocationType}from'./stock_locations';import type{Shipment,ShipmentType}from'./shipments';import type{LineItem,LineItemType}from'./line_items';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Version}from'./versions';type StockTransferType='stock_transfers';type StockTransferRel=ResourceRel&{type:StockTransferType;};type SkuRel=ResourceRel&{type:SkuType;};type StockLocationRel=ResourceRel&{type:StockLocationType;};type ShipmentRel=ResourceRel&{type:ShipmentType;};type LineItemRel=ResourceRel&{type:LineItemType;};interface StockTransfer extends Resource{readonly type:StockTransferType;number?:string|null;sku_code?:string|null;status:'draft'|'upcoming'|'on_hold'|'picking'|'in_transit'|'completed'|'cancelled';quantity:number;completed_at?:string|null;cancelled_at?:string|null;sku?:Sku|null;origin_stock_location?:StockLocation|null;destination_stock_location?:StockLocation|null;shipment?:Shipment|null;line_item?:LineItem|null;attachments?:Attachment[]|null;events?:Event[]|null;versions?:Version[]|null;}interface StockTransferCreate extends ResourceCreate{number?:string|null;sku_code?:string|null;quantity:number;sku:SkuRel;origin_stock_location:StockLocationRel;destination_stock_location:StockLocationRel;shipment?:ShipmentRel|null;line_item?:LineItemRel|null;}interface StockTransferUpdate extends ResourceUpdate{number?:string|null;sku_code?:string|null;_upcoming?:boolean|null;_on_hold?:boolean|null;_picking?:boolean|null;_in_transit?:boolean|null;_complete?:boolean|null;_cancel?:boolean|null;sku?:SkuRel|null;origin_stock_location?:StockLocationRel|null;destination_stock_location?:StockLocationRel|null;shipment?:ShipmentRel|null;line_item?:LineItemRel|null;}declare class StockTransfers extends ApiResource<StockTransfer>{static readonly TYPE:StockTransferType;create(resource:StockTransferCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;update(resource:StockTransferUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;delete(id:string|ResourceId,options?:ResourcesConfig):Promise<void>;sku(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;origin_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;destination_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;shipment(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;line_item(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;attachments(stockTransferId:string|StockTransfer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(stockTransferId:string|StockTransfer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;versions(stockTransferId:string|StockTransfer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;_upcoming(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;_on_hold(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;_picking(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;_in_transit(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;_complete(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;_cancel(id:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;isStockTransfer(resource:any):resource is StockTransfer;relationship(id:string|ResourceId|null):StockTransferRel;type():StockTransferType;}export default StockTransfers;export type{StockTransfer,StockTransferCreate,StockTransferUpdate,StockTransferType};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as c}from"../resource";class r extends c{async create(t,e,s){return this.resources.create({...t,type:r.TYPE},e,s)}async update(t,e,s){return this.resources.update({...t,type:r.TYPE},e,s)}async delete(t,e){await this.resources.delete(typeof t=="string"?{id:t,type:r.TYPE}:t,e)}async sku(t,e,s){const n=t.id||t;return this.resources.fetch({type:"skus"},`stock_transfers/${n}/sku`,e,s)}async origin_stock_location(t,e,s){const n=t.id||t;return this.resources.fetch({type:"stock_locations"},`stock_transfers/${n}/origin_stock_location`,e,s)}async destination_stock_location(t,e,s){const n=t.id||t;return this.resources.fetch({type:"stock_locations"},`stock_transfers/${n}/destination_stock_location`,e,s)}async shipment(t,e,s){const n=t.id||t;return this.resources.fetch({type:"shipments"},`stock_transfers/${n}/shipment`,e,s)}async line_item(t,e,s){const n=t.id||t;return this.resources.fetch({type:"line_items"},`stock_transfers/${n}/line_item`,e,s)}async attachments(t,e,s){const n=t.id||t;return this.resources.fetch({type:"attachments"},`stock_transfers/${n}/attachments`,e,s)}async events(t,e,s){const n=t.id||t;return this.resources.fetch({type:"events"},`stock_transfers/${n}/events`,e,s)}async versions(t,e,s){const n=t.id||t;return this.resources.fetch({type:"versions"},`stock_transfers/${n}/versions`,e,s)}async _upcoming(t,e,s){return this.resources.update({id:typeof t=="string"?t:t.id,type:r.TYPE,_upcoming:!0},e,s)}async _on_hold(t,e,s){return this.resources.update({id:typeof t=="string"?t:t.id,type:r.TYPE,_on_hold:!0},e,s)}async _picking(t,e,s){return this.resources.update({id:typeof t=="string"?t:t.id,type:r.TYPE,_picking:!0},e,s)}async _in_transit(t,e,s){return this.resources.update({id:typeof t=="string"?t:t.id,type:r.TYPE,_in_transit:!0},e,s)}async _complete(t,e,s){return this.resources.update({id:typeof t=="string"?t:t.id,type:r.TYPE,_complete:!0},e,s)}async _cancel(t,e,s){return this.resources.update({id:typeof t=="string"?t:t.id,type:r.TYPE,_cancel:!0},e,s)}isStockTransfer(t){return t.type&&t.type===r.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="stock_transfers";export default r;
|