@commercelayer/sdk 4.18.0 → 4.20.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/client.d.ts +1 -1
- package/lib/cjs/client.js +1 -1
- package/lib/cjs/commercelayer.d.ts +1 -1
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/common.js +1 -1
- package/lib/cjs/debug.d.ts +1 -1
- package/lib/cjs/error.js +1 -1
- package/lib/cjs/index.d.ts +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/interceptor.d.ts +1 -1
- package/lib/cjs/query.d.ts +1 -1
- package/lib/cjs/resource.d.ts +1 -1
- package/lib/cjs/resources/addresses.d.ts +1 -1
- package/lib/cjs/resources/adjustments.d.ts +1 -1
- package/lib/cjs/resources/adyen_gateways.d.ts +1 -1
- package/lib/cjs/resources/adyen_payments.d.ts +1 -1
- package/lib/cjs/resources/application.d.ts +1 -1
- package/lib/cjs/resources/attachments.d.ts +1 -1
- package/lib/cjs/resources/authorizations.d.ts +1 -1
- package/lib/cjs/resources/avalara_accounts.d.ts +1 -1
- package/lib/cjs/resources/avalara_accounts.js +1 -1
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -1
- package/lib/cjs/resources/bing_geocoders.d.ts +1 -1
- package/lib/cjs/resources/braintree_gateways.d.ts +1 -1
- package/lib/cjs/resources/braintree_payments.d.ts +1 -1
- package/lib/cjs/resources/bundles.d.ts +1 -1
- package/lib/cjs/resources/captures.d.ts +1 -1
- package/lib/cjs/resources/carrier_accounts.d.ts +1 -1
- package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +1 -1
- package/lib/cjs/resources/cleanups.d.ts +1 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/cjs/resources/coupon_recipients.d.ts +1 -1
- package/lib/cjs/resources/coupons.d.ts +1 -1
- package/lib/cjs/resources/customer_addresses.d.ts +1 -1
- package/lib/cjs/resources/customer_groups.d.ts +1 -1
- package/lib/cjs/resources/customer_password_resets.d.ts +1 -1
- package/lib/cjs/resources/customer_payment_sources.d.ts +1 -1
- package/lib/cjs/resources/customer_subscriptions.d.ts +1 -1
- package/lib/cjs/resources/customers.d.ts +1 -1
- package/lib/cjs/resources/delivery_lead_times.d.ts +1 -1
- package/lib/cjs/resources/event_callbacks.d.ts +1 -1
- package/lib/cjs/resources/events.d.ts +1 -1
- package/lib/cjs/resources/exports.d.ts +1 -1
- package/lib/cjs/resources/external_gateways.d.ts +1 -1
- package/lib/cjs/resources/external_payments.d.ts +1 -1
- package/lib/cjs/resources/external_promotions.d.ts +1 -1
- package/lib/cjs/resources/external_tax_calculators.d.ts +1 -1
- package/lib/cjs/resources/external_tax_calculators.js +1 -1
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/cjs/resources/free_gift_promotions.d.ts +1 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/cjs/resources/geocoders.d.ts +1 -1
- package/lib/cjs/resources/gift_card_recipients.d.ts +1 -1
- package/lib/cjs/resources/gift_cards.d.ts +1 -1
- package/lib/cjs/resources/google_geocoders.d.ts +1 -1
- package/lib/cjs/resources/imports.d.ts +1 -1
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/cjs/resources/inventory_models.d.ts +1 -1
- package/lib/cjs/resources/inventory_return_locations.d.ts +1 -1
- package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/cjs/resources/klarna_gateways.d.ts +1 -1
- package/lib/cjs/resources/klarna_payments.d.ts +1 -1
- package/lib/cjs/resources/line_item_options.d.ts +1 -1
- package/lib/cjs/resources/line_items.d.ts +1 -1
- package/lib/cjs/resources/manual_gateways.d.ts +1 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/cjs/resources/manual_tax_calculators.js +1 -1
- package/lib/cjs/resources/markets.d.ts +1 -1
- package/lib/cjs/resources/merchants.d.ts +1 -1
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/cjs/resources/order_copies.d.ts +1 -1
- package/lib/cjs/resources/order_subscriptions.d.ts +1 -1
- package/lib/cjs/resources/order_validation_rules.d.ts +1 -1
- package/lib/cjs/resources/orders.d.ts +1 -1
- package/lib/cjs/resources/organization.d.ts +1 -1
- package/lib/cjs/resources/packages.d.ts +1 -1
- package/lib/cjs/resources/parcel_line_items.d.ts +1 -1
- package/lib/cjs/resources/parcels.d.ts +1 -1
- package/lib/cjs/resources/payment_gateways.d.ts +1 -1
- package/lib/cjs/resources/payment_methods.d.ts +1 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +1 -1
- package/lib/cjs/resources/paypal_payments.d.ts +1 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/cjs/resources/price_lists.d.ts +1 -1
- package/lib/cjs/resources/price_tiers.d.ts +1 -1
- package/lib/cjs/resources/price_volume_tiers.d.ts +1 -1
- package/lib/cjs/resources/prices.d.ts +1 -1
- package/lib/cjs/resources/promotion_rules.d.ts +1 -1
- package/lib/cjs/resources/promotions.d.ts +1 -1
- package/lib/cjs/resources/refunds.d.ts +1 -1
- package/lib/cjs/resources/return_line_items.d.ts +1 -1
- package/lib/cjs/resources/returns.d.ts +1 -1
- package/lib/cjs/resources/shipments.d.ts +1 -1
- package/lib/cjs/resources/shipping_categories.d.ts +1 -1
- package/lib/cjs/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/cjs/resources/shipping_methods.d.ts +1 -1
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/cjs/resources/shipping_zones.d.ts +1 -1
- package/lib/cjs/resources/sku_list_items.d.ts +1 -1
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/cjs/resources/sku_lists.d.ts +1 -1
- package/lib/cjs/resources/sku_lists.js +1 -1
- package/lib/cjs/resources/sku_options.d.ts +1 -1
- package/lib/cjs/resources/skus.d.ts +1 -1
- package/lib/cjs/resources/stock_items.d.ts +1 -1
- package/lib/cjs/resources/stock_line_items.d.ts +1 -1
- package/lib/cjs/resources/stock_locations.d.ts +1 -1
- package/lib/cjs/resources/stock_transfers.d.ts +1 -1
- package/lib/cjs/resources/stripe_gateways.d.ts +1 -1
- package/lib/cjs/resources/stripe_payments.d.ts +1 -1
- package/lib/cjs/resources/tax_calculators.d.ts +1 -1
- package/lib/cjs/resources/tax_calculators.js +1 -1
- package/lib/cjs/resources/tax_categories.d.ts +1 -1
- package/lib/cjs/resources/tax_rules.d.ts +1 -1
- package/lib/cjs/resources/taxjar_accounts.d.ts +1 -1
- package/lib/cjs/resources/taxjar_accounts.js +1 -1
- package/lib/cjs/resources/transactions.d.ts +1 -1
- package/lib/cjs/resources/voids.d.ts +1 -1
- package/lib/cjs/resources/webhooks.d.ts +1 -1
- package/lib/cjs/resources/wire_transfers.d.ts +1 -1
- package/lib/cjs/util.d.ts +1 -1
- package/lib/esm/api.d.ts +1 -1
- package/lib/esm/client.d.ts +1 -1
- package/lib/esm/client.js +1 -1
- package/lib/esm/commercelayer.d.ts +1 -1
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/common.js +1 -1
- package/lib/esm/debug.d.ts +1 -1
- package/lib/esm/error.js +1 -1
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/interceptor.d.ts +1 -1
- package/lib/esm/query.d.ts +1 -1
- package/lib/esm/resource.d.ts +1 -1
- package/lib/esm/resource.js +1 -1
- package/lib/esm/resources/addresses.d.ts +1 -1
- package/lib/esm/resources/adjustments.d.ts +1 -1
- package/lib/esm/resources/adyen_gateways.d.ts +1 -1
- package/lib/esm/resources/adyen_payments.d.ts +1 -1
- package/lib/esm/resources/application.d.ts +1 -1
- package/lib/esm/resources/attachments.d.ts +1 -1
- package/lib/esm/resources/authorizations.d.ts +1 -1
- package/lib/esm/resources/avalara_accounts.d.ts +1 -1
- package/lib/esm/resources/avalara_accounts.js +1 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -1
- package/lib/esm/resources/bing_geocoders.d.ts +1 -1
- package/lib/esm/resources/braintree_gateways.d.ts +1 -1
- package/lib/esm/resources/braintree_payments.d.ts +1 -1
- package/lib/esm/resources/bundles.d.ts +1 -1
- package/lib/esm/resources/captures.d.ts +1 -1
- package/lib/esm/resources/carrier_accounts.d.ts +1 -1
- package/lib/esm/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +1 -1
- package/lib/esm/resources/cleanups.d.ts +1 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/esm/resources/coupon_recipients.d.ts +1 -1
- package/lib/esm/resources/coupons.d.ts +1 -1
- package/lib/esm/resources/customer_addresses.d.ts +1 -1
- package/lib/esm/resources/customer_groups.d.ts +1 -1
- package/lib/esm/resources/customer_password_resets.d.ts +1 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +1 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +1 -1
- package/lib/esm/resources/customers.d.ts +1 -1
- package/lib/esm/resources/delivery_lead_times.d.ts +1 -1
- package/lib/esm/resources/event_callbacks.d.ts +1 -1
- package/lib/esm/resources/events.d.ts +1 -1
- package/lib/esm/resources/exports.d.ts +1 -1
- package/lib/esm/resources/external_gateways.d.ts +1 -1
- package/lib/esm/resources/external_payments.d.ts +1 -1
- package/lib/esm/resources/external_promotions.d.ts +1 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +1 -1
- package/lib/esm/resources/external_tax_calculators.js +1 -1
- package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +1 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/esm/resources/geocoders.d.ts +1 -1
- package/lib/esm/resources/gift_card_recipients.d.ts +1 -1
- package/lib/esm/resources/gift_cards.d.ts +1 -1
- package/lib/esm/resources/google_geocoders.d.ts +1 -1
- package/lib/esm/resources/imports.d.ts +1 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/esm/resources/inventory_models.d.ts +1 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +1 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/esm/resources/klarna_gateways.d.ts +1 -1
- package/lib/esm/resources/klarna_payments.d.ts +1 -1
- package/lib/esm/resources/line_item_options.d.ts +1 -1
- package/lib/esm/resources/line_items.d.ts +1 -1
- package/lib/esm/resources/manual_gateways.d.ts +1 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/esm/resources/manual_tax_calculators.js +1 -1
- package/lib/esm/resources/markets.d.ts +1 -1
- package/lib/esm/resources/merchants.d.ts +1 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/esm/resources/order_copies.d.ts +1 -1
- package/lib/esm/resources/order_subscriptions.d.ts +1 -1
- package/lib/esm/resources/order_validation_rules.d.ts +1 -1
- package/lib/esm/resources/orders.d.ts +1 -1
- package/lib/esm/resources/organization.d.ts +1 -1
- package/lib/esm/resources/packages.d.ts +1 -1
- package/lib/esm/resources/parcel_line_items.d.ts +1 -1
- package/lib/esm/resources/parcels.d.ts +1 -1
- package/lib/esm/resources/payment_gateways.d.ts +1 -1
- package/lib/esm/resources/payment_methods.d.ts +1 -1
- package/lib/esm/resources/paypal_gateways.d.ts +1 -1
- package/lib/esm/resources/paypal_payments.d.ts +1 -1
- package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/esm/resources/price_lists.d.ts +1 -1
- package/lib/esm/resources/price_tiers.d.ts +1 -1
- package/lib/esm/resources/price_volume_tiers.d.ts +1 -1
- package/lib/esm/resources/prices.d.ts +1 -1
- package/lib/esm/resources/promotion_rules.d.ts +1 -1
- package/lib/esm/resources/promotions.d.ts +1 -1
- package/lib/esm/resources/refunds.d.ts +1 -1
- package/lib/esm/resources/return_line_items.d.ts +1 -1
- package/lib/esm/resources/returns.d.ts +1 -1
- package/lib/esm/resources/shipments.d.ts +1 -1
- package/lib/esm/resources/shipping_categories.d.ts +1 -1
- package/lib/esm/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/esm/resources/shipping_methods.d.ts +1 -1
- package/lib/esm/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/esm/resources/shipping_zones.d.ts +1 -1
- package/lib/esm/resources/sku_list_items.d.ts +1 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/esm/resources/sku_lists.d.ts +1 -1
- package/lib/esm/resources/sku_lists.js +1 -1
- package/lib/esm/resources/sku_options.d.ts +1 -1
- package/lib/esm/resources/skus.d.ts +1 -1
- package/lib/esm/resources/stock_items.d.ts +1 -1
- package/lib/esm/resources/stock_line_items.d.ts +1 -1
- package/lib/esm/resources/stock_locations.d.ts +1 -1
- package/lib/esm/resources/stock_transfers.d.ts +1 -1
- package/lib/esm/resources/stripe_gateways.d.ts +1 -1
- package/lib/esm/resources/stripe_payments.d.ts +1 -1
- package/lib/esm/resources/tax_calculators.d.ts +1 -1
- package/lib/esm/resources/tax_calculators.js +1 -1
- package/lib/esm/resources/tax_categories.d.ts +1 -1
- package/lib/esm/resources/tax_rules.d.ts +1 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +1 -1
- package/lib/esm/resources/taxjar_accounts.js +1 -1
- package/lib/esm/resources/transactions.d.ts +1 -1
- package/lib/esm/resources/voids.d.ts +1 -1
- package/lib/esm/resources/webhooks.d.ts +1 -1
- package/lib/esm/resources/wire_transfers.d.ts +1 -1
- package/lib/esm/util.d.ts +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{Attachment}from'./attachments';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{Attachment}from'./attachments';type ShippingCategoryRel=ResourceRel&{type:typeof ShippingCategories.TYPE;};interface ShippingCategory extends Resource{name?:string;skus?:Sku[];attachments?:Attachment[];}interface ShippingCategoryCreate extends ResourceCreate{name:string;}interface ShippingCategoryUpdate extends ResourceUpdate{name?:string;}declare class ShippingCategories extends ApiResource{static readonly TYPE:'shipping_categories';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingCategory>>;create(resource:ShippingCategoryCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;update(resource:ShippingCategoryUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;delete(id:string,options?:ResourcesConfig):Promise<void>;skus(shippingCategoryId:string|ShippingCategory,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;attachments(shippingCategoryId:string|ShippingCategory,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isShippingCategory(resource:any):resource is ShippingCategory;relationship(id:string|ResourceId|null):ShippingCategoryRel;type():string;}export default ShippingCategories;export{ShippingCategory,ShippingCategoryCreate,ShippingCategoryUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ShippingMethod}from'./shipping_methods';import type{Attachment}from'./attachments';
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ShippingMethod}from'./shipping_methods';import type{Attachment}from'./attachments';type ShippingMethodTierRel=ResourceRel&{type:typeof ShippingMethodTiers.TYPE;};interface ShippingMethodTier extends Resource{name?:string;up_to?:number;price_amount_cents?:number;price_amount_float?:number;formatted_price_amount?:string;shipping_method?:ShippingMethod;attachments?:Attachment[];}declare class ShippingMethodTiers extends ApiResource{static readonly TYPE:'shipping_method_tiers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingMethodTier>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethodTier>;shipping_method(shippingMethodTierId:string|ShippingMethodTier,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;attachments(shippingMethodTierId:string|ShippingMethodTier,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isShippingMethodTier(resource:any):resource is ShippingMethodTier;relationship(id:string|ResourceId|null):ShippingMethodTierRel;type():string;}export default ShippingMethodTiers;export{ShippingMethodTier};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{ShippingZone}from'./shipping_zones';import type{ShippingCategory}from'./shipping_categories';import type{StockLocation}from'./stock_locations';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{ShippingMethodTier}from'./shipping_method_tiers';import type{ShippingWeightTier}from'./shipping_weight_tiers';import type{Attachment}from'./attachments';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{ShippingZone}from'./shipping_zones';import type{ShippingCategory}from'./shipping_categories';import type{StockLocation}from'./stock_locations';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{ShippingMethodTier}from'./shipping_method_tiers';import type{ShippingWeightTier}from'./shipping_weight_tiers';import type{Attachment}from'./attachments';type ShippingMethodRel=ResourceRel&{type:typeof ShippingMethods.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type ShippingZoneRel=ResourceRel&{type:'shipping_zones';};type ShippingCategoryRel=ResourceRel&{type:'shipping_categories';};type StockLocationRel=ResourceRel&{type:'stock_locations';};type ShippingMethodTierRel=ResourceRel&{type:'shipping_method_tiers';};interface ShippingMethod extends Resource{name?:string;scheme?:string;currency_code?:string;disabled_at?:string;price_amount_cents?:number;price_amount_float?:number;formatted_price_amount?:string;free_over_amount_cents?:number;free_over_amount_float?:number;formatted_free_over_amount?:string;price_amount_for_shipment_cents?:number;price_amount_for_shipment_float?:number;formatted_price_amount_for_shipment?:string;min_weight?:number;max_weight?:number;unit_of_weight?:string;market?:Market;shipping_zone?:ShippingZone;shipping_category?:ShippingCategory;stock_location?:StockLocation;delivery_lead_time_for_shipment?:DeliveryLeadTime;shipping_method_tiers?:ShippingMethodTier[];shipping_weight_tiers?:ShippingWeightTier[];attachments?:Attachment[];}interface ShippingMethodCreate extends ResourceCreate{name:string;scheme?:string;currency_code?:string;price_amount_cents:number;free_over_amount_cents?:number;min_weight?:number;max_weight?:number;unit_of_weight?:string;market?:MarketRel;shipping_zone?:ShippingZoneRel;shipping_category?:ShippingCategoryRel;stock_location?:StockLocationRel;shipping_method_tiers?:ShippingMethodTierRel[];}interface ShippingMethodUpdate extends ResourceUpdate{name?:string;scheme?:string;currency_code?:string;_disable?:boolean;_enable?:boolean;price_amount_cents?:number;free_over_amount_cents?:number;min_weight?:number;max_weight?:number;unit_of_weight?:string;market?:MarketRel;shipping_zone?:ShippingZoneRel;shipping_category?:ShippingCategoryRel;stock_location?:StockLocationRel;shipping_method_tiers?:ShippingMethodTierRel[];}declare class ShippingMethods extends ApiResource{static readonly TYPE:'shipping_methods';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingMethod>>;create(resource:ShippingMethodCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;update(resource:ShippingMethodUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(shippingMethodId:string|ShippingMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;shipping_zone(shippingMethodId:string|ShippingMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingZone>;shipping_category(shippingMethodId:string|ShippingMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;stock_location(shippingMethodId:string|ShippingMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;delivery_lead_time_for_shipment(shippingMethodId:string|ShippingMethod,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;shipping_method_tiers(shippingMethodId:string|ShippingMethod,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingMethodTier>>;shipping_weight_tiers(shippingMethodId:string|ShippingMethod,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingWeightTier>>;attachments(shippingMethodId:string|ShippingMethod,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isShippingMethod(resource:any):resource is ShippingMethod;relationship(id:string|ResourceId|null):ShippingMethodRel;type():string;}export default ShippingMethods;export{ShippingMethod,ShippingMethodCreate,ShippingMethodUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ShippingMethod}from'./shipping_methods';import type{Attachment}from'./attachments';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ShippingMethod}from'./shipping_methods';import type{Attachment}from'./attachments';type ShippingWeightTierRel=ResourceRel&{type:typeof ShippingWeightTiers.TYPE;};type ShippingMethodRel=ResourceRel&{type:'shipping_methods';};interface ShippingWeightTier extends Resource{name?:string;up_to?:number;price_amount_cents?:number;price_amount_float?:number;formatted_price_amount?:string;shipping_method?:ShippingMethod;attachments?:Attachment[];}interface ShippingWeightTierCreate extends ResourceCreate{name:string;up_to?:number;price_amount_cents:number;shipping_method:ShippingMethodRel;}interface ShippingWeightTierUpdate extends ResourceUpdate{name?:string;up_to?:number;price_amount_cents?:number;shipping_method?:ShippingMethodRel;}declare class ShippingWeightTiers extends ApiResource{static readonly TYPE:'shipping_weight_tiers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingWeightTier>>;create(resource:ShippingWeightTierCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingWeightTier>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingWeightTier>;update(resource:ShippingWeightTierUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingWeightTier>;delete(id:string,options?:ResourcesConfig):Promise<void>;shipping_method(shippingWeightTierId:string|ShippingWeightTier,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;attachments(shippingWeightTierId:string|ShippingWeightTier,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isShippingWeightTier(resource:any):resource is ShippingWeightTier;relationship(id:string|ResourceId|null):ShippingWeightTierRel;type():string;}export default ShippingWeightTiers;export{ShippingWeightTier,ShippingWeightTierCreate,ShippingWeightTierUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Attachment}from'./attachments';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Attachment}from'./attachments';type ShippingZoneRel=ResourceRel&{type:typeof ShippingZones.TYPE;};interface ShippingZone extends Resource{name?:string;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;attachments?:Attachment[];}interface ShippingZoneCreate extends ResourceCreate{name:string;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;}interface ShippingZoneUpdate extends ResourceUpdate{name?:string;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;}declare class ShippingZones extends ApiResource{static readonly TYPE:'shipping_zones';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ShippingZone>>;create(resource:ShippingZoneCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingZone>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingZone>;update(resource:ShippingZoneUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingZone>;delete(id:string,options?:ResourcesConfig):Promise<void>;attachments(shippingZoneId:string|ShippingZone,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isShippingZone(resource:any):resource is ShippingZone;relationship(id:string|ResourceId|null):ShippingZoneRel;type():string;}export default ShippingZones;export{ShippingZone,ShippingZoneCreate,ShippingZoneUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{SkuList}from'./sku_lists';import type{Sku}from'./skus';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{SkuList}from'./sku_lists';import type{Sku}from'./skus';type SkuListItemRel=ResourceRel&{type:typeof SkuListItems.TYPE;};type SkuListRel=ResourceRel&{type:'sku_lists';};type SkuRel=ResourceRel&{type:'skus';};interface SkuListItem extends Resource{position?:number;sku_code?:string;quantity?:number;sku_list?:SkuList;sku?:Sku;}interface SkuListItemCreate extends ResourceCreate{position?:number;sku_code?:string;quantity?:number;sku_list:SkuListRel;sku:SkuRel;}interface SkuListItemUpdate extends ResourceUpdate{position?:number;sku_code?:string;quantity?:number;}declare class SkuListItems extends ApiResource{static readonly TYPE:'sku_list_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuListItem>>;create(resource:SkuListItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListItem>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListItem>;update(resource:SkuListItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListItem>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku_list(skuListItemId:string|SkuListItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;sku(skuListItemId:string|SkuListItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;isSkuListItem(resource:any):resource is SkuListItem;relationship(id:string|ResourceId|null):SkuListItemRel;type():string;}export default SkuListItems;export{SkuListItem,SkuListItemCreate,SkuListItemUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeGiftPromotion}from'./free_gift_promotions';import type{FixedPricePromotion}from'./fixed_price_promotions';import type{ExternalPromotion}from'./external_promotions';import type{SkuList}from'./sku_lists';import type{Sku}from'./skus';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeGiftPromotion}from'./free_gift_promotions';import type{FixedPricePromotion}from'./fixed_price_promotions';import type{ExternalPromotion}from'./external_promotions';import type{SkuList}from'./sku_lists';import type{Sku}from'./skus';type SkuListPromotionRuleRel=ResourceRel&{type:typeof SkuListPromotionRules.TYPE;};type PercentageDiscountPromotionRel=ResourceRel&{type:'percentage_discount_promotions';};type FreeShippingPromotionRel=ResourceRel&{type:'free_shipping_promotions';};type FixedAmountPromotionRel=ResourceRel&{type:'fixed_amount_promotions';};type FreeGiftPromotionRel=ResourceRel&{type:'free_gift_promotions';};type FixedPricePromotionRel=ResourceRel&{type:'fixed_price_promotions';};type ExternalPromotionRel=ResourceRel&{type:'external_promotions';};type SkuListRel=ResourceRel&{type:'sku_lists';};interface SkuListPromotionRule extends Resource{all_skus?:boolean;min_quantity?:number;promotion?:PercentageDiscountPromotion|FreeShippingPromotion|FixedAmountPromotion|FreeGiftPromotion|FixedPricePromotion|ExternalPromotion;sku_list?:SkuList;skus?:Sku[];}interface SkuListPromotionRuleCreate extends ResourceCreate{all_skus?:boolean;min_quantity?:number;promotion:PercentageDiscountPromotionRel|FreeShippingPromotionRel|FixedAmountPromotionRel|FreeGiftPromotionRel|FixedPricePromotionRel|ExternalPromotionRel;sku_list?:SkuListRel;}interface SkuListPromotionRuleUpdate extends ResourceUpdate{all_skus?:boolean;min_quantity?:number;promotion?:PercentageDiscountPromotionRel|FreeShippingPromotionRel|FixedAmountPromotionRel|FreeGiftPromotionRel|FixedPricePromotionRel|ExternalPromotionRel;sku_list?:SkuListRel;}declare class SkuListPromotionRules extends ApiResource{static readonly TYPE:'sku_list_promotion_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuListPromotionRule>>;create(resource:SkuListPromotionRuleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;update(resource:SkuListPromotionRuleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku_list(skuListPromotionRuleId:string|SkuListPromotionRule,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;skus(skuListPromotionRuleId:string|SkuListPromotionRule,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isSkuListPromotionRule(resource:any):resource is SkuListPromotionRule;relationship(id:string|ResourceId|null):SkuListPromotionRuleRel;type():string;}export default SkuListPromotionRules;export{SkuListPromotionRule,SkuListPromotionRuleCreate,SkuListPromotionRuleUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{Sku}from'./skus';import type{SkuListItem}from'./sku_list_items';import type{Bundle}from'./bundles';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{Sku}from'./skus';import type{SkuListItem}from'./sku_list_items';import type{Bundle}from'./bundles';import type{Attachment}from'./attachments';type SkuListRel=ResourceRel&{type:typeof SkuLists.TYPE;};type CustomerRel=ResourceRel&{type:'customers';};interface SkuList extends Resource{name?:string;slug?:string;description?:string;image_url?:string;manual?:boolean;sku_code_regex?:string;customer?:Customer;skus?:Sku[];sku_list_items?:SkuListItem[];bundles?:Bundle[];attachments?:Attachment[];}interface SkuListCreate extends ResourceCreate{name:string;description?:string;image_url?:string;manual?:boolean;sku_code_regex?:string;customer?:CustomerRel;}interface SkuListUpdate extends ResourceUpdate{name?:string;description?:string;image_url?:string;manual?:boolean;sku_code_regex?:string;customer?:CustomerRel;}declare class SkuLists extends ApiResource{static readonly TYPE:'sku_lists';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuList>>;create(resource:SkuListCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;update(resource:SkuListUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;delete(id:string,options?:ResourcesConfig):Promise<void>;customer(skuListId:string|SkuList,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;skus(skuListId:string|SkuList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;sku_list_items(skuListId:string|SkuList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuListItem>>;bundles(skuListId:string|SkuList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Bundle>>;attachments(skuListId:string|SkuList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isSkuList(resource:any):resource is SkuList;relationship(id:string|ResourceId|null):SkuListRel;type():string;}export default SkuLists;export{SkuList,SkuListCreate,SkuListUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(s,e){return this.resources.list({type:r.TYPE},s,e)}async create(s,e,t){return this.resources.create(Object.assign(Object.assign({},s),{type:r.TYPE}),e,t)}async retrieve(s,e,t){return this.resources.retrieve({type:r.TYPE,id:s},e,t)}async update(s,e,t){return this.resources.update(Object.assign(Object.assign({},s),{type:r.TYPE}),e,t)}async delete(s,e){await this.resources.delete({type:r.TYPE,id:s},e)}async customer(s,e,t){const c=s.id||s;return this.resources.fetch({type:"customers"},`sku_lists/${c}/customer`,e,t)}async skus(s,e,t){const c=s.id||s;return this.resources.fetch({type:"skus"},`sku_lists/${c}/skus`,e,t)}async sku_list_items(s,e,t){const c=s.id||s;return this.resources.fetch({type:"sku_list_items"},`sku_lists/${c}/sku_list_items`,e,t)}async bundles(s,e,t){const c=s.id||s;return this.resources.fetch({type:"bundles"},`sku_lists/${c}/bundles`,e,t)}async attachments(s,e,t){const c=s.id||s;return this.resources.fetch({type:"attachments"},`sku_lists/${c}/attachments`,e,t)}isSkuList(s){return s.type&&s.type===r.TYPE}relationship(s){return s===null||typeof s=="string"?{id:s,type:r.TYPE}:{id:s.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="sku_lists";export default r;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{Attachment}from'./attachments';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{Attachment}from'./attachments';type SkuOptionRel=ResourceRel&{type:typeof SkuOptions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};interface SkuOption extends Resource{name?:string;currency_code?:string;description?:string;price_amount_cents?:number;price_amount_float?:number;formatted_price_amount?:string;delay_hours?:number;delay_days?:number;sku_code_regex?:string;market?:Market;attachments?:Attachment[];}interface SkuOptionCreate extends ResourceCreate{name:string;currency_code?:string;description?:string;price_amount_cents?:number;delay_hours?:number;sku_code_regex?:string;market?:MarketRel;}interface SkuOptionUpdate extends ResourceUpdate{name?:string;currency_code?:string;description?:string;price_amount_cents?:number;delay_hours?:number;sku_code_regex?:string;market?:MarketRel;}declare class SkuOptions extends ApiResource{static readonly TYPE:'sku_options';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuOption>>;create(resource:SkuOptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;update(resource:SkuOptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(skuOptionId:string|SkuOption,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;attachments(skuOptionId:string|SkuOption,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isSkuOption(resource:any):resource is SkuOption;relationship(id:string|ResourceId|null):SkuOptionRel;type():string;}export default SkuOptions;export{SkuOption,SkuOptionCreate,SkuOptionUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ShippingCategory}from'./shipping_categories';import type{Price}from'./prices';import type{StockItem}from'./stock_items';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{SkuOption}from'./sku_options';import type{Attachment}from'./attachments';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ShippingCategory}from'./shipping_categories';import type{Price}from'./prices';import type{StockItem}from'./stock_items';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{SkuOption}from'./sku_options';import type{Attachment}from'./attachments';type SkuRel=ResourceRel&{type:typeof Skus.TYPE;};type ShippingCategoryRel=ResourceRel&{type:'shipping_categories';};interface Sku extends Resource{code?:string;name?:string;description?:string;image_url?:string;pieces_per_pack?:number;weight?:number;unit_of_weight?:string;hs_tariff_number?:string;do_not_ship?:boolean;do_not_track?:boolean;inventory?:object;shipping_category?:ShippingCategory;prices?:Price[];stock_items?:StockItem[];delivery_lead_times?:DeliveryLeadTime[];sku_options?:SkuOption[];attachments?:Attachment[];}interface SkuCreate extends ResourceCreate{code:string;name:string;description?:string;image_url?:string;pieces_per_pack?:number;weight?:number;unit_of_weight?:string;hs_tariff_number?:string;do_not_ship?:boolean;do_not_track?:boolean;shipping_category:ShippingCategoryRel;}interface SkuUpdate extends ResourceUpdate{code?:string;name?:string;description?:string;image_url?:string;pieces_per_pack?:number;weight?:number;unit_of_weight?:string;hs_tariff_number?:string;do_not_ship?:boolean;do_not_track?:boolean;shipping_category?:ShippingCategoryRel;}declare class Skus extends ApiResource{static readonly TYPE:'skus';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;create(resource:SkuCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;update(resource:SkuUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;delete(id:string,options?:ResourcesConfig):Promise<void>;shipping_category(skuId:string|Sku,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;prices(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Price>>;stock_items(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockItem>>;delivery_lead_times(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<DeliveryLeadTime>>;sku_options(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuOption>>;attachments(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isSku(resource:any):resource is Sku;relationship(id:string|ResourceId|null):SkuRel;type():string;}export default Skus;export{Sku,SkuCreate,SkuUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{StockLocation}from'./stock_locations';import type{Sku}from'./skus';import type{Attachment}from'./attachments';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{StockLocation}from'./stock_locations';import type{Sku}from'./skus';import type{Attachment}from'./attachments';type StockItemRel=ResourceRel&{type:typeof StockItems.TYPE;};type StockLocationRel=ResourceRel&{type:'stock_locations';};type SkuRel=ResourceRel&{type:'skus';};interface StockItem extends Resource{sku_code?:string;quantity?:number;stock_location?:StockLocation;sku?:Sku;attachments?:Attachment[];}interface StockItemCreate extends ResourceCreate{sku_code?:string;quantity:number;stock_location:StockLocationRel;sku?:SkuRel;}interface StockItemUpdate extends ResourceUpdate{sku_code?:string;quantity?:number;stock_location?:StockLocationRel;sku?:SkuRel;}declare class StockItems extends ApiResource{static readonly TYPE:'stock_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockItem>>;create(resource:StockItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;update(resource:StockItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;delete(id:string,options?:ResourcesConfig):Promise<void>;stock_location(stockItemId:string|StockItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;sku(stockItemId:string|StockItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;attachments(stockItemId:string|StockItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isStockItem(resource:any):resource is StockItem;relationship(id:string|ResourceId|null):StockItemRel;type():string;}export default StockItems;export{StockItem,StockItemCreate,StockItemUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Shipment}from'./shipments';import type{LineItem}from'./line_items';import type{StockItem}from'./stock_items';
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Shipment}from'./shipments';import type{LineItem}from'./line_items';import type{StockItem}from'./stock_items';type StockLineItemRel=ResourceRel&{type:typeof StockLineItems.TYPE;};interface StockLineItem extends Resource{sku_code?:string;bundle_code?:string;quantity?:number;shipment?:Shipment;line_item?:LineItem;stock_item?:StockItem;}declare class StockLineItems extends ApiResource{static readonly TYPE:'stock_line_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLineItem>;shipment(stockLineItemId:string|StockLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;line_item(stockLineItemId:string|StockLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;stock_item(stockLineItemId:string|StockLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;isStockLineItem(resource:any):resource is StockLineItem;relationship(id:string|ResourceId|null):StockLineItemRel;type():string;}export default StockLineItems;export{StockLineItem};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Address}from'./addresses';import type{InventoryStockLocation}from'./inventory_stock_locations';import type{InventoryReturnLocation}from'./inventory_return_locations';import type{StockItem}from'./stock_items';import type{StockTransfer}from'./stock_transfers';import type{Attachment}from'./attachments';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Address}from'./addresses';import type{InventoryStockLocation}from'./inventory_stock_locations';import type{InventoryReturnLocation}from'./inventory_return_locations';import type{StockItem}from'./stock_items';import type{StockTransfer}from'./stock_transfers';import type{Attachment}from'./attachments';type StockLocationRel=ResourceRel&{type:typeof StockLocations.TYPE;};type AddressRel=ResourceRel&{type:'addresses';};interface StockLocation extends Resource{number?:number;name?:string;label_format?:string;suppress_etd?:boolean;address?:Address;inventory_stock_locations?:InventoryStockLocation[];inventory_return_locations?:InventoryReturnLocation[];stock_items?:StockItem[];stock_transfers?:StockTransfer[];attachments?:Attachment[];}interface StockLocationCreate extends ResourceCreate{name:string;label_format?:string;suppress_etd?:boolean;address:AddressRel;}interface StockLocationUpdate extends ResourceUpdate{name?:string;label_format?:string;suppress_etd?:boolean;address?:AddressRel;}declare class StockLocations extends ApiResource{static readonly TYPE:'stock_locations';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLocation>>;create(resource:StockLocationCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;update(resource:StockLocationUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;delete(id:string,options?:ResourcesConfig):Promise<void>;address(stockLocationId:string|StockLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;inventory_stock_locations(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryStockLocation>>;inventory_return_locations(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryReturnLocation>>;stock_items(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockItem>>;stock_transfers(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;attachments(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isStockLocation(resource:any):resource is StockLocation;relationship(id:string|ResourceId|null):StockLocationRel;type():string;}export default StockLocations;export{StockLocation,StockLocationCreate,StockLocationUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{StockLocation}from'./stock_locations';import type{Shipment}from'./shipments';import type{LineItem}from'./line_items';import type{Event}from'./events';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{StockLocation}from'./stock_locations';import type{Shipment}from'./shipments';import type{LineItem}from'./line_items';import type{Event}from'./events';type StockTransferRel=ResourceRel&{type:typeof StockTransfers.TYPE;};type SkuRel=ResourceRel&{type:'skus';};type StockLocationRel=ResourceRel&{type:'stock_locations';};type ShipmentRel=ResourceRel&{type:'shipments';};type LineItemRel=ResourceRel&{type:'line_items';};interface StockTransfer extends Resource{sku_code?:string;status?:string;quantity?:number;completed_at?:string;cancelled_at?:string;sku?:Sku;origin_stock_location?:StockLocation;destination_stock_location?:StockLocation;shipment?:Shipment;line_item?:LineItem;events?:Event[];}interface StockTransferCreate extends ResourceCreate{sku_code?:string;quantity:number;sku:SkuRel;origin_stock_location:StockLocationRel;destination_stock_location:StockLocationRel;shipment?:ShipmentRel;line_item?:LineItemRel;}interface StockTransferUpdate extends ResourceUpdate{sku_code?:string;_upcoming?:boolean;_picking?:boolean;_in_transit?:boolean;_complete?:boolean;_cancel?:boolean;sku?:SkuRel;origin_stock_location?:StockLocationRel;destination_stock_location?:StockLocationRel;}declare class StockTransfers extends ApiResource{static readonly TYPE:'stock_transfers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;create(resource:StockTransferCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;update(resource:StockTransferUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;delete(id:string,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>>;isStockTransfer(resource:any):resource is StockTransfer;relationship(id:string|ResourceId|null):StockTransferRel;type():string;}export default StockTransfers;export{StockTransfer,StockTransferCreate,StockTransferUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PaymentMethod}from'./payment_methods';import type{StripePayment}from'./stripe_payments';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PaymentMethod}from'./payment_methods';import type{StripePayment}from'./stripe_payments';type StripeGatewayRel=ResourceRel&{type:typeof StripeGateways.TYPE;};interface StripeGateway extends Resource{name?:string;webhook_endpoint_id?:string;webhook_endpoint_secret?:string;webhook_endpoint_url?:string;payment_methods?:PaymentMethod[];stripe_payments?:StripePayment[];}interface StripeGatewayCreate extends ResourceCreate{name:string;login:string;publishable_key?:string;}interface StripeGatewayUpdate extends ResourceUpdate{name?:string;}declare class StripeGateways extends ApiResource{static readonly TYPE:'stripe_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StripeGateway>>;create(resource:StripeGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripeGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripeGateway>;update(resource:StripeGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripeGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(stripeGatewayId:string|StripeGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;stripe_payments(stripeGatewayId:string|StripeGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StripePayment>>;isStripeGateway(resource:any):resource is StripeGateway;relationship(id:string|ResourceId|null):StripeGatewayRel;type():string;}export default StripeGateways;export{StripeGateway,StripeGatewayCreate,StripeGatewayUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{PaymentGateway}from'./payment_gateways';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{PaymentGateway}from'./payment_gateways';type StripePaymentRel=ResourceRel&{type:typeof StripePayments.TYPE;};type OrderRel=ResourceRel&{type:'orders';};interface StripePayment extends Resource{client_secret?:string;publishable_key?:string;options?:object;payment_method?:object;mismatched_amounts?:boolean;intent_amount_cents?:number;intent_amount_float?:number;formatted_intent_amount?:string;order?:Order;payment_gateway?:PaymentGateway;}interface StripePaymentCreate extends ResourceCreate{options?:object;order:OrderRel;}interface StripePaymentUpdate extends ResourceUpdate{options?:object;_refresh?:boolean;order?:OrderRel;}declare class StripePayments extends ApiResource{static readonly TYPE:'stripe_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StripePayment>>;create(resource:StripePaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripePayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripePayment>;update(resource:StripePaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripePayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(stripePaymentId:string|StripePayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(stripePaymentId:string|StripePayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isStripePayment(resource:any):resource is StripePayment;relationship(id:string|ResourceId|null):StripePaymentRel;type():string;}export default StripePayments;export{StripePayment,StripePaymentCreate,StripePaymentUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{Attachment}from'./attachments';type TaxCalculatorRel=ResourceRel&{type:typeof TaxCalculators.TYPE;};interface TaxCalculator extends Resource{name?:string;markets?:Market[];attachments?:Attachment[];}declare class TaxCalculators extends ApiResource{static readonly TYPE:'tax_calculators';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCalculator>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCalculator>;markets(taxCalculatorId:string|TaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(taxCalculatorId:string|TaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isTaxCalculator(resource:any):resource is TaxCalculator;relationship(id:string|ResourceId|null):TaxCalculatorRel;type():string;}export default TaxCalculators;export{TaxCalculator};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as c}from"../resource";class
|
1
|
+
import{ApiResource as c}from"../resource";class e extends c{async list(t,r){return this.resources.list({type:e.TYPE},t,r)}async retrieve(t,r,s){return this.resources.retrieve({type:e.TYPE,id:t},r,s)}async markets(t,r,s){const a=t.id||t;return this.resources.fetch({type:"markets"},`tax_calculators/${a}/markets`,r,s)}async attachments(t,r,s){const a=t.id||t;return this.resources.fetch({type:"attachments"},`tax_calculators/${a}/attachments`,r,s)}isTaxCalculator(t){return t.type&&t.type===e.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:e.TYPE}:{id:t.id,type:e.TYPE}}type(){return e.TYPE}}e.TYPE="tax_calculators";export default e;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{AvalaraAccount}from'./avalara_accounts';import type{TaxjarAccount}from'./taxjar_accounts';import type{ManualTaxCalculator}from'./manual_tax_calculators';import type{ExternalTaxCalculator}from'./external_tax_calculators';import type{Attachment}from'./attachments';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{AvalaraAccount}from'./avalara_accounts';import type{TaxjarAccount}from'./taxjar_accounts';import type{ManualTaxCalculator}from'./manual_tax_calculators';import type{ExternalTaxCalculator}from'./external_tax_calculators';import type{Attachment}from'./attachments';type TaxCategoryRel=ResourceRel&{type:typeof TaxCategories.TYPE;};type SkuRel=ResourceRel&{type:'skus';};type AvalaraAccountRel=ResourceRel&{type:'avalara_accounts';};type TaxjarAccountRel=ResourceRel&{type:'taxjar_accounts';};type ManualTaxCalculatorRel=ResourceRel&{type:'manual_tax_calculators';};type ExternalTaxCalculatorRel=ResourceRel&{type:'external_tax_calculators';};interface TaxCategory extends Resource{code?:string;sku_code?:string;sku?:Sku;tax_calculator?:AvalaraAccount|TaxjarAccount|ManualTaxCalculator|ExternalTaxCalculator;attachments?:Attachment[];}interface TaxCategoryCreate extends ResourceCreate{code:string;sku_code?:string;sku:SkuRel;tax_calculator:AvalaraAccountRel|TaxjarAccountRel|ManualTaxCalculatorRel|ExternalTaxCalculatorRel;}interface TaxCategoryUpdate extends ResourceUpdate{code?:string;sku_code?:string;sku?:SkuRel;}declare class TaxCategories extends ApiResource{static readonly TYPE:'tax_categories';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;create(resource:TaxCategoryCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCategory>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCategory>;update(resource:TaxCategoryUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCategory>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku(taxCategoryId:string|TaxCategory,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;attachments(taxCategoryId:string|TaxCategory,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isTaxCategory(resource:any):resource is TaxCategory;relationship(id:string|ResourceId|null):TaxCategoryRel;type():string;}export default TaxCategories;export{TaxCategory,TaxCategoryCreate,TaxCategoryUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ManualTaxCalculator}from'./manual_tax_calculators';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ManualTaxCalculator}from'./manual_tax_calculators';type TaxRuleRel=ResourceRel&{type:typeof TaxRules.TYPE;};type ManualTaxCalculatorRel=ResourceRel&{type:'manual_tax_calculators';};interface TaxRule extends Resource{name?:string;tax_rate?:number;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;freight_taxable?:boolean;payment_method_taxable?:boolean;gift_card_taxable?:boolean;adjustment_taxable?:boolean;breakdown?:object;manual_tax_calculator?:ManualTaxCalculator;}interface TaxRuleCreate extends ResourceCreate{name:string;tax_rate?:number;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;freight_taxable?:boolean;payment_method_taxable?:boolean;gift_card_taxable?:boolean;adjustment_taxable?:boolean;manual_tax_calculator:ManualTaxCalculatorRel;}interface TaxRuleUpdate extends ResourceUpdate{name?:string;tax_rate?:number;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;freight_taxable?:boolean;payment_method_taxable?:boolean;gift_card_taxable?:boolean;adjustment_taxable?:boolean;manual_tax_calculator?:ManualTaxCalculatorRel;}declare class TaxRules extends ApiResource{static readonly TYPE:'tax_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxRule>>;create(resource:TaxRuleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxRule>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxRule>;update(resource:TaxRuleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxRule>;delete(id:string,options?:ResourcesConfig):Promise<void>;manual_tax_calculator(taxRuleId:string|TaxRule,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualTaxCalculator>;isTaxRule(resource:any):resource is TaxRule;relationship(id:string|ResourceId|null):TaxRuleRel;type():string;}export default TaxRules;export{TaxRule,TaxRuleCreate,TaxRuleUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{Attachment}from'./attachments';import type{TaxCategory}from'./tax_categories';type TaxjarAccountRel=ResourceRel&{type:typeof TaxjarAccounts.TYPE;};type TaxCategoryRel=ResourceRel&{type:'tax_categories';};interface TaxjarAccount extends Resource{name?:string;markets?:Market[];attachments?:Attachment[];tax_categories?:TaxCategory[];}interface TaxjarAccountCreate extends ResourceCreate{name:string;api_key:string;tax_categories?:TaxCategoryRel[];}interface TaxjarAccountUpdate extends ResourceUpdate{name?:string;api_key?:string;tax_categories?:TaxCategoryRel[];}declare class TaxjarAccounts extends ApiResource{static readonly TYPE:'taxjar_accounts';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxjarAccount>>;create(resource:TaxjarAccountCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxjarAccount>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxjarAccount>;update(resource:TaxjarAccountUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxjarAccount>;delete(id:string,options?:ResourcesConfig):Promise<void>;markets(taxjarAccountId:string|TaxjarAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(taxjarAccountId:string|TaxjarAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;tax_categories(taxjarAccountId:string|TaxjarAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;isTaxjarAccount(resource:any):resource is TaxjarAccount;relationship(id:string|ResourceId|null):TaxjarAccountRel;type():string;}export default TaxjarAccounts;export{TaxjarAccount,TaxjarAccountCreate,TaxjarAccountUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as c}from"../resource";class s extends c{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,a){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,a)}async retrieve(e,t,a){return this.resources.retrieve({type:s.TYPE,id:e},t,a)}async update(e,t,a){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,a)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async
|
1
|
+
import{ApiResource as c}from"../resource";class s extends c{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,a){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,a)}async retrieve(e,t,a){return this.resources.retrieve({type:s.TYPE,id:e},t,a)}async update(e,t,a){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,a)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async markets(e,t,a){const r=e.id||e;return this.resources.fetch({type:"markets"},`taxjar_accounts/${r}/markets`,t,a)}async attachments(e,t,a){const r=e.id||e;return this.resources.fetch({type:"attachments"},`taxjar_accounts/${r}/attachments`,t,a)}async tax_categories(e,t,a){const r=e.id||e;return this.resources.fetch({type:"tax_categories"},`taxjar_accounts/${r}/tax_categories`,t,a)}isTaxjarAccount(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="taxjar_accounts";export default s;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';type TransactionRel=ResourceRel&{type:typeof Transactions.TYPE;};interface Transaction extends Resource{number?:string;currency_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;succeeded?:boolean;message?:string;error_code?:string;error_detail?:string;token?:string;gateway_transaction_id?:string;order?:Order;}declare class Transactions extends ApiResource{static readonly TYPE:'transactions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Transaction>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Transaction>;order(transactionId:string|Transaction,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;isTransaction(resource:any):resource is Transaction;relationship(id:string|ResourceId|null):TransactionRel;type():string;}export default Transactions;export{Transaction};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Authorization}from'./authorizations';
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Authorization}from'./authorizations';type VoidRel=ResourceRel&{type:typeof Voids.TYPE;};interface Void extends Resource{number?:string;currency_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;succeeded?:boolean;message?:string;error_code?:string;error_detail?:string;token?:string;gateway_transaction_id?:string;order?:Order;reference_authorization?:Authorization;}declare class Voids extends ApiResource{static readonly TYPE:'voids';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Void>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Void>;order(voidId:string|Void,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;reference_authorization(voidId:string|Void,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Authorization>;isVoid(resource:any):resource is Void;relationship(id:string|ResourceId|null):VoidRel;type():string;}export default Voids;export{Void};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{EventCallback}from'./event_callbacks';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{EventCallback}from'./event_callbacks';type WebhookRel=ResourceRel&{type:typeof Webhooks.TYPE;};interface Webhook extends Resource{name?:string;topic?:string;callback_url?:string;include_resources?:string[];circuit_state?:string;circuit_failure_count?:number;shared_secret?:string;last_event_callbacks?:EventCallback[];}interface WebhookCreate extends ResourceCreate{name?:string;topic:string;callback_url:string;include_resources?:string[];}interface WebhookUpdate extends ResourceUpdate{name?:string;topic?:string;callback_url?:string;include_resources?:string[];_reset_circuit?:boolean;}declare class Webhooks extends ApiResource{static readonly TYPE:'webhooks';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Webhook>>;create(resource:WebhookCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Webhook>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Webhook>;update(resource:WebhookUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Webhook>;delete(id:string,options?:ResourcesConfig):Promise<void>;last_event_callbacks(webhookId:string|Webhook,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<EventCallback>>;isWebhook(resource:any):resource is Webhook;relationship(id:string|ResourceId|null):WebhookRel;type():string;}export default Webhooks;export{Webhook,WebhookCreate,WebhookUpdate};
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';type WireTransferRel=ResourceRel&{type:typeof WireTransfers.TYPE;};type OrderRel=ResourceRel&{type:'orders';};interface WireTransfer extends Resource{order?:Order;}interface WireTransferCreate extends ResourceCreate{order:OrderRel;}interface WireTransferUpdate extends ResourceUpdate{order?:OrderRel;}declare class WireTransfers extends ApiResource{static readonly TYPE:'wire_transfers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<WireTransfer>>;create(resource:WireTransferCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<WireTransfer>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<WireTransfer>;update(resource:WireTransferUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<WireTransfer>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(wireTransferId:string|WireTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;isWireTransfer(resource:any):resource is WireTransfer;relationship(id:string|ResourceId|null):WireTransferRel;type():string;}export default WireTransfers;export{WireTransfer,WireTransferCreate,WireTransferUpdate};
|
package/lib/esm/util.d.ts
CHANGED
@@ -2,4 +2,4 @@
|
|
2
2
|
/// <reference types="node" />
|
3
3
|
/// <reference types="node" />
|
4
4
|
/// <reference types="node" />
|
5
|
-
|
5
|
+
type ObjectType={[key:string]:any;};declare const sleep:(ms:number)=>Promise<NodeJS.Timeout>;declare const sortObjectFields:(obj:ObjectType)=>ObjectType;export{sleep,sortObjectFields};
|