@commercelayer/sdk 4.3.0-alpha.1 → 4.3.0-beta.12
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/README.md +5 -0
- package/lib/{api.d.ts → cjs/api.d.ts} +0 -0
- package/lib/cjs/api.js +1 -0
- package/lib/{client.d.ts → cjs/client.d.ts} +0 -0
- package/lib/cjs/client.js +1 -0
- package/lib/{commercelayer.d.ts → cjs/commercelayer.d.ts} +0 -0
- package/lib/cjs/commercelayer.js +1 -0
- package/lib/{common.d.ts → cjs/common.d.ts} +0 -0
- package/lib/cjs/common.js +1 -0
- package/lib/{config.d.ts → cjs/config.d.ts} +0 -0
- package/lib/cjs/config.js +1 -0
- package/lib/{debug.d.ts → cjs/debug.d.ts} +0 -0
- package/lib/cjs/debug.js +1 -0
- package/lib/{error.d.ts → cjs/error.d.ts} +0 -0
- package/lib/cjs/error.js +1 -0
- package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
- package/lib/cjs/index.js +1 -0
- package/lib/{interceptor.d.ts → cjs/interceptor.d.ts} +0 -0
- package/lib/cjs/interceptor.js +1 -0
- package/lib/{jsonapi.d.ts → cjs/jsonapi.d.ts} +0 -0
- package/lib/cjs/jsonapi.js +1 -0
- package/lib/{model.d.ts → cjs/model.d.ts} +0 -0
- package/lib/cjs/model.js +1 -0
- package/lib/{query.d.ts → cjs/query.d.ts} +0 -0
- package/lib/cjs/query.js +1 -0
- package/lib/{resource.d.ts → cjs/resource.d.ts} +0 -0
- package/lib/cjs/resource.js +1 -0
- package/lib/{resources → cjs/resources}/addresses.d.ts +0 -0
- package/lib/cjs/resources/addresses.js +1 -0
- package/lib/{resources → cjs/resources}/adjustments.d.ts +0 -0
- package/lib/cjs/resources/adjustments.js +1 -0
- package/lib/{resources → cjs/resources}/adyen_gateways.d.ts +0 -0
- package/lib/cjs/resources/adyen_gateways.js +1 -0
- package/lib/{resources → cjs/resources}/adyen_payments.d.ts +0 -0
- package/lib/cjs/resources/adyen_payments.js +1 -0
- package/lib/{resources → cjs/resources}/application.d.ts +0 -0
- package/lib/cjs/resources/application.js +1 -0
- package/lib/{resources → cjs/resources}/attachments.d.ts +0 -0
- package/lib/cjs/resources/attachments.js +1 -0
- package/lib/{resources → cjs/resources}/authorizations.d.ts +0 -0
- package/lib/cjs/resources/authorizations.js +1 -0
- package/lib/{resources → cjs/resources}/avalara_accounts.d.ts +0 -0
- package/lib/cjs/resources/avalara_accounts.js +1 -0
- package/lib/{resources → cjs/resources}/billing_info_validation_rules.d.ts +0 -0
- package/lib/cjs/resources/billing_info_validation_rules.js +1 -0
- package/lib/{resources → cjs/resources}/bing_geocoders.d.ts +0 -0
- package/lib/cjs/resources/bing_geocoders.js +1 -0
- package/lib/{resources → cjs/resources}/braintree_gateways.d.ts +0 -0
- package/lib/cjs/resources/braintree_gateways.js +1 -0
- package/lib/{resources → cjs/resources}/braintree_payments.d.ts +0 -0
- package/lib/cjs/resources/braintree_payments.js +1 -0
- package/lib/{resources → cjs/resources}/bundles.d.ts +0 -0
- package/lib/cjs/resources/bundles.js +1 -0
- package/lib/{resources → cjs/resources}/captures.d.ts +0 -0
- package/lib/cjs/resources/captures.js +1 -0
- package/lib/{resources → cjs/resources}/carrier_accounts.d.ts +0 -0
- package/lib/cjs/resources/carrier_accounts.js +1 -0
- package/lib/{resources → cjs/resources}/checkout_com_gateways.d.ts +0 -0
- package/lib/cjs/resources/checkout_com_gateways.js +1 -0
- package/lib/{resources → cjs/resources}/checkout_com_payments.d.ts +0 -0
- package/lib/cjs/resources/checkout_com_payments.js +1 -0
- package/lib/{resources → cjs/resources}/coupon_codes_promotion_rules.d.ts +0 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +1 -0
- package/lib/{resources → cjs/resources}/coupon_recipients.d.ts +0 -0
- package/lib/cjs/resources/coupon_recipients.js +1 -0
- package/lib/{resources → cjs/resources}/coupons.d.ts +0 -0
- package/lib/cjs/resources/coupons.js +1 -0
- package/lib/{resources → cjs/resources}/customer_addresses.d.ts +0 -0
- package/lib/cjs/resources/customer_addresses.js +1 -0
- package/lib/{resources → cjs/resources}/customer_groups.d.ts +0 -0
- package/lib/cjs/resources/customer_groups.js +1 -0
- package/lib/{resources → cjs/resources}/customer_password_resets.d.ts +0 -0
- package/lib/cjs/resources/customer_password_resets.js +1 -0
- package/lib/{resources → cjs/resources}/customer_payment_sources.d.ts +0 -0
- package/lib/cjs/resources/customer_payment_sources.js +1 -0
- package/lib/{resources → cjs/resources}/customer_subscriptions.d.ts +0 -0
- package/lib/cjs/resources/customer_subscriptions.js +1 -0
- package/lib/{resources → cjs/resources}/customers.d.ts +0 -0
- package/lib/cjs/resources/customers.js +1 -0
- package/lib/{resources → cjs/resources}/delivery_lead_times.d.ts +0 -0
- package/lib/cjs/resources/delivery_lead_times.js +1 -0
- package/lib/{resources → cjs/resources}/event_callbacks.d.ts +0 -0
- package/lib/cjs/resources/event_callbacks.js +1 -0
- package/lib/{resources → cjs/resources}/external_gateways.d.ts +0 -0
- package/lib/cjs/resources/external_gateways.js +1 -0
- package/lib/{resources → cjs/resources}/external_payments.d.ts +0 -0
- package/lib/cjs/resources/external_payments.js +1 -0
- package/lib/{resources → cjs/resources}/external_promotions.d.ts +0 -0
- package/lib/cjs/resources/external_promotions.js +1 -0
- package/lib/{resources → cjs/resources}/external_tax_calculators.d.ts +0 -0
- package/lib/cjs/resources/external_tax_calculators.js +1 -0
- package/lib/{resources → cjs/resources}/fixed_amount_promotions.d.ts +0 -0
- package/lib/cjs/resources/fixed_amount_promotions.js +1 -0
- package/lib/{resources → cjs/resources}/fixed_price_promotions.d.ts +0 -0
- package/lib/cjs/resources/fixed_price_promotions.js +1 -0
- package/lib/{resources → cjs/resources}/free_gift_promotions.d.ts +0 -0
- package/lib/cjs/resources/free_gift_promotions.js +1 -0
- package/lib/{resources → cjs/resources}/free_shipping_promotions.d.ts +0 -0
- package/lib/cjs/resources/free_shipping_promotions.js +1 -0
- package/lib/{resources → cjs/resources}/geocoders.d.ts +0 -0
- package/lib/cjs/resources/geocoders.js +1 -0
- package/lib/{resources → cjs/resources}/gift_card_recipients.d.ts +0 -0
- package/lib/cjs/resources/gift_card_recipients.js +1 -0
- package/lib/{resources → cjs/resources}/gift_cards.d.ts +0 -0
- package/lib/cjs/resources/gift_cards.js +1 -0
- package/lib/{resources → cjs/resources}/google_geocoders.d.ts +0 -0
- package/lib/cjs/resources/google_geocoders.js +1 -0
- package/lib/{resources → cjs/resources}/imports.d.ts +0 -0
- package/lib/cjs/resources/imports.js +1 -0
- package/lib/{resources → cjs/resources}/in_stock_subscriptions.d.ts +0 -0
- package/lib/cjs/resources/in_stock_subscriptions.js +1 -0
- package/lib/{resources → cjs/resources}/inventory_models.d.ts +0 -0
- package/lib/cjs/resources/inventory_models.js +1 -0
- package/lib/{resources → cjs/resources}/inventory_return_locations.d.ts +0 -0
- package/lib/cjs/resources/inventory_return_locations.js +1 -0
- package/lib/{resources → cjs/resources}/inventory_stock_locations.d.ts +0 -0
- package/lib/cjs/resources/inventory_stock_locations.js +1 -0
- package/lib/{resources → cjs/resources}/klarna_gateways.d.ts +0 -0
- package/lib/cjs/resources/klarna_gateways.js +1 -0
- package/lib/{resources → cjs/resources}/klarna_payments.d.ts +0 -0
- package/lib/cjs/resources/klarna_payments.js +1 -0
- package/lib/{resources → cjs/resources}/line_item_options.d.ts +0 -0
- package/lib/cjs/resources/line_item_options.js +1 -0
- package/lib/{resources → cjs/resources}/line_items.d.ts +0 -0
- package/lib/cjs/resources/line_items.js +1 -0
- package/lib/{resources → cjs/resources}/manual_gateways.d.ts +0 -0
- package/lib/cjs/resources/manual_gateways.js +1 -0
- package/lib/{resources → cjs/resources}/manual_tax_calculators.d.ts +0 -0
- package/lib/cjs/resources/manual_tax_calculators.js +1 -0
- package/lib/{resources → cjs/resources}/markets.d.ts +0 -0
- package/lib/cjs/resources/markets.js +1 -0
- package/lib/{resources → cjs/resources}/merchants.d.ts +0 -0
- package/lib/cjs/resources/merchants.js +1 -0
- package/lib/{resources → cjs/resources}/order_amount_promotion_rules.d.ts +0 -0
- package/lib/cjs/resources/order_amount_promotion_rules.js +1 -0
- package/lib/{resources → cjs/resources}/order_copies.d.ts +0 -0
- package/lib/cjs/resources/order_copies.js +1 -0
- package/lib/{resources → cjs/resources}/order_subscriptions.d.ts +0 -0
- package/lib/cjs/resources/order_subscriptions.js +1 -0
- package/lib/{resources → cjs/resources}/order_validation_rules.d.ts +0 -0
- package/lib/cjs/resources/order_validation_rules.js +1 -0
- package/lib/{resources → cjs/resources}/orders.d.ts +0 -0
- package/lib/cjs/resources/orders.js +1 -0
- package/lib/{resources → cjs/resources}/organization.d.ts +0 -0
- package/lib/cjs/resources/organization.js +1 -0
- package/lib/{resources → cjs/resources}/packages.d.ts +0 -0
- package/lib/cjs/resources/packages.js +1 -0
- package/lib/{resources → cjs/resources}/parcel_line_items.d.ts +0 -0
- package/lib/cjs/resources/parcel_line_items.js +1 -0
- package/lib/{resources → cjs/resources}/parcels.d.ts +0 -0
- package/lib/cjs/resources/parcels.js +1 -0
- package/lib/{resources → cjs/resources}/payment_gateways.d.ts +0 -0
- package/lib/cjs/resources/payment_gateways.js +1 -0
- package/lib/{resources → cjs/resources}/payment_methods.d.ts +0 -0
- package/lib/cjs/resources/payment_methods.js +1 -0
- package/lib/{resources → cjs/resources}/paypal_gateways.d.ts +0 -0
- package/lib/cjs/resources/paypal_gateways.js +1 -0
- package/lib/{resources → cjs/resources}/paypal_payments.d.ts +0 -0
- package/lib/cjs/resources/paypal_payments.js +1 -0
- package/lib/{resources → cjs/resources}/percentage_discount_promotions.d.ts +0 -0
- package/lib/cjs/resources/percentage_discount_promotions.js +1 -0
- package/lib/{resources → cjs/resources}/price_lists.d.ts +0 -0
- package/lib/cjs/resources/price_lists.js +1 -0
- package/lib/{resources → cjs/resources}/prices.d.ts +0 -0
- package/lib/cjs/resources/prices.js +1 -0
- package/lib/{resources → cjs/resources}/promotion_rules.d.ts +0 -0
- package/lib/cjs/resources/promotion_rules.js +1 -0
- package/lib/{resources → cjs/resources}/promotions.d.ts +0 -0
- package/lib/cjs/resources/promotions.js +1 -0
- package/lib/{resources → cjs/resources}/refunds.d.ts +0 -0
- package/lib/cjs/resources/refunds.js +1 -0
- package/lib/{resources → cjs/resources}/return_line_items.d.ts +0 -0
- package/lib/cjs/resources/return_line_items.js +1 -0
- package/lib/{resources → cjs/resources}/returns.d.ts +0 -0
- package/lib/cjs/resources/returns.js +1 -0
- package/lib/{resources → cjs/resources}/shipments.d.ts +0 -0
- package/lib/cjs/resources/shipments.js +1 -0
- package/lib/{resources → cjs/resources}/shipping_categories.d.ts +0 -0
- package/lib/cjs/resources/shipping_categories.js +1 -0
- package/lib/{resources → cjs/resources}/shipping_methods.d.ts +0 -0
- package/lib/cjs/resources/shipping_methods.js +1 -0
- package/lib/{resources → cjs/resources}/shipping_zones.d.ts +0 -0
- package/lib/cjs/resources/shipping_zones.js +1 -0
- package/lib/{resources → cjs/resources}/sku_list_items.d.ts +0 -0
- package/lib/cjs/resources/sku_list_items.js +1 -0
- package/lib/{resources → cjs/resources}/sku_list_promotion_rules.d.ts +0 -0
- package/lib/cjs/resources/sku_list_promotion_rules.js +1 -0
- package/lib/{resources → cjs/resources}/sku_lists.d.ts +0 -0
- package/lib/cjs/resources/sku_lists.js +1 -0
- package/lib/{resources → cjs/resources}/sku_options.d.ts +0 -0
- package/lib/cjs/resources/sku_options.js +1 -0
- package/lib/{resources → cjs/resources}/skus.d.ts +0 -0
- package/lib/cjs/resources/skus.js +1 -0
- package/lib/{resources → cjs/resources}/stock_items.d.ts +0 -0
- package/lib/cjs/resources/stock_items.js +1 -0
- package/lib/{resources → cjs/resources}/stock_line_items.d.ts +0 -0
- package/lib/cjs/resources/stock_line_items.js +1 -0
- package/lib/{resources → cjs/resources}/stock_locations.d.ts +0 -0
- package/lib/cjs/resources/stock_locations.js +1 -0
- package/lib/{resources → cjs/resources}/stock_transfers.d.ts +0 -0
- package/lib/cjs/resources/stock_transfers.js +1 -0
- package/lib/{resources → cjs/resources}/stripe_gateways.d.ts +0 -0
- package/lib/cjs/resources/stripe_gateways.js +1 -0
- package/lib/{resources → cjs/resources}/stripe_payments.d.ts +0 -0
- package/lib/cjs/resources/stripe_payments.js +1 -0
- package/lib/{resources → cjs/resources}/tax_calculators.d.ts +0 -0
- package/lib/cjs/resources/tax_calculators.js +1 -0
- package/lib/{resources → cjs/resources}/tax_categories.d.ts +0 -0
- package/lib/cjs/resources/tax_categories.js +1 -0
- package/lib/{resources → cjs/resources}/tax_rules.d.ts +0 -0
- package/lib/cjs/resources/tax_rules.js +1 -0
- package/lib/{resources → cjs/resources}/taxjar_accounts.d.ts +0 -0
- package/lib/cjs/resources/taxjar_accounts.js +1 -0
- package/lib/{resources → cjs/resources}/transactions.d.ts +0 -0
- package/lib/cjs/resources/transactions.js +1 -0
- package/lib/{resources → cjs/resources}/voids.d.ts +0 -0
- package/lib/cjs/resources/voids.js +1 -0
- package/lib/{resources → cjs/resources}/webhooks.d.ts +0 -0
- package/lib/cjs/resources/webhooks.js +1 -0
- package/lib/{resources → cjs/resources}/wire_transfers.d.ts +0 -0
- package/lib/cjs/resources/wire_transfers.js +1 -0
- package/lib/{static.d.ts → cjs/static.d.ts} +0 -0
- package/lib/cjs/static.js +1 -0
- package/lib/{util.d.ts → cjs/util.d.ts} +0 -0
- package/lib/cjs/util.js +1 -0
- package/lib/esm/api.d.ts +103 -0
- package/lib/{api.js → esm/api.js} +0 -0
- package/lib/esm/client.d.ts +32 -0
- package/lib/esm/client.js +1 -0
- package/lib/esm/commercelayer.d.ts +122 -0
- package/lib/{commercelayer.js → esm/commercelayer.js} +1 -1
- package/lib/esm/common.d.ts +4 -0
- package/lib/{common.js → esm/common.js} +0 -0
- package/lib/esm/config.d.ts +11 -0
- package/lib/{config.js → esm/config.js} +0 -0
- package/lib/esm/debug.d.ts +3 -0
- package/lib/{debug.js → esm/debug.js} +0 -0
- package/lib/esm/error.d.ts +26 -0
- package/lib/esm/error.js +1 -0
- package/lib/esm/index.d.ts +7 -0
- package/lib/{index.js → esm/index.js} +0 -0
- package/lib/esm/interceptor.d.ts +19 -0
- package/lib/{interceptor.js → esm/interceptor.js} +0 -0
- package/lib/esm/jsonapi.d.ts +5 -0
- package/lib/esm/jsonapi.js +1 -0
- package/lib/esm/model.d.ts +101 -0
- package/lib/{model.js → esm/model.js} +0 -0
- package/lib/esm/query.d.ts +23 -0
- package/lib/{query.js → esm/query.js} +0 -0
- package/lib/esm/resource.d.ts +76 -0
- package/lib/esm/resource.js +1 -0
- package/lib/esm/resources/addresses.d.ts +88 -0
- package/lib/esm/resources/addresses.js +1 -0
- package/lib/esm/resources/adjustments.d.ts +35 -0
- package/lib/esm/resources/adjustments.js +1 -0
- package/lib/esm/resources/adyen_gateways.d.ts +47 -0
- package/lib/esm/resources/adyen_gateways.js +1 -0
- package/lib/esm/resources/adyen_payments.d.ts +44 -0
- package/lib/esm/resources/adyen_payments.js +1 -0
- package/lib/esm/resources/application.d.ts +21 -0
- package/lib/{resources → esm/resources}/application.js +0 -0
- package/lib/esm/resources/attachments.d.ts +156 -0
- package/lib/esm/resources/attachments.js +1 -0
- package/lib/esm/resources/authorizations.d.ts +57 -0
- package/lib/esm/resources/authorizations.js +1 -0
- package/lib/esm/resources/avalara_accounts.d.ts +52 -0
- package/lib/esm/resources/avalara_accounts.js +1 -0
- package/lib/esm/resources/billing_info_validation_rules.d.ts +32 -0
- package/lib/esm/resources/billing_info_validation_rules.js +1 -0
- package/lib/esm/resources/bing_geocoders.d.ts +35 -0
- package/lib/esm/resources/bing_geocoders.js +1 -0
- package/lib/esm/resources/braintree_gateways.d.ts +56 -0
- package/lib/esm/resources/braintree_gateways.js +1 -0
- package/lib/esm/resources/braintree_payments.d.ts +47 -0
- package/lib/esm/resources/braintree_payments.js +1 -0
- package/lib/esm/resources/bundles.d.ts +74 -0
- package/lib/esm/resources/bundles.js +1 -0
- package/lib/esm/resources/captures.d.ts +48 -0
- package/lib/esm/resources/captures.js +1 -0
- package/lib/esm/resources/carrier_accounts.d.ts +26 -0
- package/lib/{resources → esm/resources}/carrier_accounts.js +0 -0
- package/lib/esm/resources/checkout_com_gateways.d.ts +45 -0
- package/lib/esm/resources/checkout_com_gateways.js +1 -0
- package/lib/esm/resources/checkout_com_payments.d.ts +50 -0
- package/lib/esm/resources/checkout_com_payments.js +1 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +59 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -0
- package/lib/esm/resources/coupon_recipients.d.ts +44 -0
- package/lib/esm/resources/coupon_recipients.js +1 -0
- package/lib/esm/resources/coupons.d.ts +45 -0
- package/lib/esm/resources/coupons.js +1 -0
- package/lib/esm/resources/customer_addresses.d.ts +41 -0
- package/lib/esm/resources/customer_addresses.js +1 -0
- package/lib/esm/resources/customer_groups.d.ts +36 -0
- package/lib/esm/resources/customer_groups.js +1 -0
- package/lib/esm/resources/customer_password_resets.d.ts +33 -0
- package/lib/esm/resources/customer_password_resets.js +1 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +70 -0
- package/lib/esm/resources/customer_payment_sources.js +1 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +28 -0
- package/lib/esm/resources/customer_subscriptions.js +1 -0
- package/lib/esm/resources/customers.d.ts +60 -0
- package/lib/esm/resources/customers.js +1 -0
- package/lib/esm/resources/delivery_lead_times.d.ts +51 -0
- package/lib/esm/resources/delivery_lead_times.js +1 -0
- package/lib/esm/resources/event_callbacks.d.ts +24 -0
- package/lib/{resources → esm/resources}/event_callbacks.js +0 -0
- package/lib/esm/resources/external_gateways.d.ts +49 -0
- package/lib/esm/resources/external_gateways.js +1 -0
- package/lib/esm/resources/external_payments.d.ts +43 -0
- package/lib/esm/resources/external_payments.js +1 -0
- package/lib/esm/resources/external_promotions.d.ts +86 -0
- package/lib/esm/resources/external_promotions.js +1 -0
- package/lib/esm/resources/external_tax_calculators.d.ts +44 -0
- package/lib/esm/resources/external_tax_calculators.js +1 -0
- package/lib/esm/resources/fixed_amount_promotions.d.ts +88 -0
- package/lib/esm/resources/fixed_amount_promotions.js +1 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +99 -0
- package/lib/esm/resources/fixed_price_promotions.js +1 -0
- package/lib/esm/resources/free_gift_promotions.d.ts +97 -0
- package/lib/esm/resources/free_gift_promotions.js +1 -0
- package/lib/esm/resources/free_shipping_promotions.d.ts +83 -0
- package/lib/esm/resources/free_shipping_promotions.js +1 -0
- package/lib/esm/resources/geocoders.d.ts +24 -0
- package/lib/{resources → esm/resources}/geocoders.js +0 -0
- package/lib/esm/resources/gift_card_recipients.d.ts +44 -0
- package/lib/esm/resources/gift_card_recipients.js +1 -0
- package/lib/esm/resources/gift_cards.d.ts +82 -0
- package/lib/esm/resources/gift_cards.js +1 -0
- package/lib/esm/resources/google_geocoders.d.ts +35 -0
- package/lib/esm/resources/google_geocoders.js +1 -0
- package/lib/esm/resources/imports.d.ts +40 -0
- package/lib/esm/resources/imports.js +1 -0
- package/lib/esm/resources/in_stock_subscriptions.d.ts +59 -0
- package/lib/esm/resources/in_stock_subscriptions.js +1 -0
- package/lib/esm/resources/inventory_models.d.ts +42 -0
- package/lib/esm/resources/inventory_models.js +1 -0
- package/lib/esm/resources/inventory_return_locations.d.ts +43 -0
- package/lib/esm/resources/inventory_return_locations.js +1 -0
- package/lib/esm/resources/inventory_stock_locations.d.ts +46 -0
- package/lib/esm/resources/inventory_stock_locations.js +1 -0
- package/lib/esm/resources/klarna_gateways.d.ts +44 -0
- package/lib/esm/resources/klarna_gateways.js +1 -0
- package/lib/esm/resources/klarna_payments.d.ts +41 -0
- package/lib/esm/resources/klarna_payments.js +1 -0
- package/lib/esm/resources/line_item_options.d.ts +57 -0
- package/lib/esm/resources/line_item_options.js +1 -0
- package/lib/esm/resources/line_items.d.ts +125 -0
- package/lib/esm/resources/line_items.js +1 -0
- package/lib/esm/resources/manual_gateways.d.ts +33 -0
- package/lib/esm/resources/manual_gateways.js +1 -0
- package/lib/esm/resources/manual_tax_calculators.d.ts +49 -0
- package/lib/esm/resources/manual_tax_calculators.js +1 -0
- package/lib/esm/resources/markets.d.ts +81 -0
- package/lib/esm/resources/markets.js +1 -0
- package/lib/esm/resources/merchants.d.ts +38 -0
- package/lib/esm/resources/merchants.js +1 -0
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +56 -0
- package/lib/esm/resources/order_amount_promotion_rules.js +1 -0
- package/lib/esm/resources/order_copies.d.ts +45 -0
- package/lib/esm/resources/order_copies.js +1 -0
- package/lib/esm/resources/order_subscriptions.d.ts +67 -0
- package/lib/esm/resources/order_subscriptions.js +1 -0
- package/lib/esm/resources/order_validation_rules.d.ts +20 -0
- package/lib/{resources → esm/resources}/order_validation_rules.js +0 -0
- package/lib/esm/resources/orders.d.ts +271 -0
- package/lib/esm/resources/orders.js +1 -0
- package/lib/esm/resources/organization.d.ts +32 -0
- package/lib/{resources → esm/resources}/organization.js +0 -0
- package/lib/esm/resources/packages.d.ts +56 -0
- package/lib/esm/resources/packages.js +1 -0
- package/lib/esm/resources/parcel_line_items.d.ts +49 -0
- package/lib/esm/resources/parcel_line_items.js +1 -0
- package/lib/esm/resources/parcels.d.ts +108 -0
- package/lib/esm/resources/parcels.js +1 -0
- package/lib/esm/resources/payment_gateways.d.ts +21 -0
- package/lib/{resources → esm/resources}/payment_gateways.js +0 -0
- package/lib/esm/resources/payment_methods.d.ts +59 -0
- package/lib/esm/resources/payment_methods.js +1 -0
- package/lib/esm/resources/paypal_gateways.d.ts +39 -0
- package/lib/esm/resources/paypal_gateways.js +1 -0
- package/lib/esm/resources/paypal_payments.d.ts +47 -0
- package/lib/esm/resources/paypal_payments.js +1 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +97 -0
- package/lib/esm/resources/percentage_discount_promotions.js +1 -0
- package/lib/esm/resources/price_lists.d.ts +39 -0
- package/lib/esm/resources/price_lists.js +1 -0
- package/lib/esm/resources/prices.d.ts +57 -0
- package/lib/esm/resources/prices.js +1 -0
- package/lib/esm/resources/promotion_rules.d.ts +24 -0
- package/lib/{resources → esm/resources}/promotion_rules.js +0 -0
- package/lib/esm/resources/promotions.d.ts +41 -0
- package/lib/{resources → esm/resources}/promotions.js +0 -0
- package/lib/esm/resources/refunds.d.ts +34 -0
- package/lib/{resources → esm/resources}/refunds.js +0 -0
- package/lib/esm/resources/return_line_items.d.ts +49 -0
- package/lib/esm/resources/return_line_items.js +1 -0
- package/lib/esm/resources/returns.d.ts +72 -0
- package/lib/esm/resources/returns.js +1 -0
- package/lib/esm/resources/shipments.d.ts +89 -0
- package/lib/esm/resources/shipments.js +1 -0
- package/lib/esm/resources/shipping_categories.d.ts +33 -0
- package/lib/esm/resources/shipping_categories.js +1 -0
- package/lib/esm/resources/shipping_methods.d.ts +74 -0
- package/lib/esm/resources/shipping_methods.js +1 -0
- package/lib/esm/resources/shipping_zones.d.ts +48 -0
- package/lib/esm/resources/shipping_zones.js +1 -0
- package/lib/esm/resources/sku_list_items.d.ts +47 -0
- package/lib/esm/resources/sku_list_items.js +1 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +68 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +1 -0
- package/lib/esm/resources/sku_lists.d.ts +49 -0
- package/lib/esm/resources/sku_lists.js +1 -0
- package/lib/esm/resources/sku_options.d.ts +56 -0
- package/lib/esm/resources/sku_options.js +1 -0
- package/lib/esm/resources/skus.d.ts +78 -0
- package/lib/esm/resources/skus.js +1 -0
- package/lib/esm/resources/stock_items.d.ts +49 -0
- package/lib/esm/resources/stock_items.js +1 -0
- package/lib/esm/resources/stock_line_items.d.ts +29 -0
- package/lib/{resources → esm/resources}/stock_line_items.js +0 -0
- package/lib/esm/resources/stock_locations.d.ts +57 -0
- package/lib/esm/resources/stock_locations.js +1 -0
- package/lib/esm/resources/stock_transfers.d.ts +71 -0
- package/lib/esm/resources/stock_transfers.js +1 -0
- package/lib/esm/resources/stripe_gateways.d.ts +38 -0
- package/lib/esm/resources/stripe_gateways.js +1 -0
- package/lib/esm/resources/stripe_payments.d.ts +42 -0
- package/lib/esm/resources/stripe_payments.js +1 -0
- package/lib/esm/resources/tax_calculators.d.ts +27 -0
- package/lib/{resources → esm/resources}/tax_calculators.js +0 -0
- package/lib/esm/resources/tax_categories.d.ts +59 -0
- package/lib/esm/resources/tax_categories.js +1 -0
- package/lib/esm/resources/tax_rules.d.ts +69 -0
- package/lib/esm/resources/tax_rules.js +1 -0
- package/lib/esm/resources/taxjar_accounts.d.ts +43 -0
- package/lib/esm/resources/taxjar_accounts.js +1 -0
- package/lib/esm/resources/transactions.d.ts +31 -0
- package/lib/{resources → esm/resources}/transactions.js +0 -0
- package/lib/esm/resources/voids.d.ts +34 -0
- package/lib/{resources → esm/resources}/voids.js +0 -0
- package/lib/esm/resources/webhooks.d.ts +42 -0
- package/lib/esm/resources/webhooks.js +1 -0
- package/lib/esm/resources/wire_transfers.d.ts +32 -0
- package/lib/esm/resources/wire_transfers.js +1 -0
- package/lib/esm/static.d.ts +6 -0
- package/lib/{static.js → esm/static.js} +0 -0
- package/lib/esm/util.d.ts +3 -0
- package/lib/{util.js → esm/util.js} +0 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +5 -4
- package/lib/client.js +0 -1
- package/lib/error.js +0 -1
- package/lib/jsonapi.js +0 -1
- package/lib/resource.js +0 -1
- package/lib/resources/addresses.js +0 -1
- package/lib/resources/adjustments.js +0 -1
- package/lib/resources/adyen_gateways.js +0 -1
- package/lib/resources/adyen_payments.js +0 -1
- package/lib/resources/attachments.js +0 -1
- package/lib/resources/authorizations.js +0 -1
- package/lib/resources/avalara_accounts.js +0 -1
- package/lib/resources/billing_info_validation_rules.js +0 -1
- package/lib/resources/bing_geocoders.js +0 -1
- package/lib/resources/braintree_gateways.js +0 -1
- package/lib/resources/braintree_payments.js +0 -1
- package/lib/resources/bundles.js +0 -1
- package/lib/resources/captures.js +0 -1
- package/lib/resources/checkout_com_gateways.js +0 -1
- package/lib/resources/checkout_com_payments.js +0 -1
- package/lib/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/resources/coupon_recipients.js +0 -1
- package/lib/resources/coupons.js +0 -1
- package/lib/resources/customer_addresses.js +0 -1
- package/lib/resources/customer_groups.js +0 -1
- package/lib/resources/customer_password_resets.js +0 -1
- package/lib/resources/customer_payment_sources.js +0 -1
- package/lib/resources/customer_subscriptions.js +0 -1
- package/lib/resources/customers.js +0 -1
- package/lib/resources/delivery_lead_times.js +0 -1
- package/lib/resources/external_gateways.js +0 -1
- package/lib/resources/external_payments.js +0 -1
- package/lib/resources/external_promotions.js +0 -1
- package/lib/resources/external_tax_calculators.js +0 -1
- package/lib/resources/fixed_amount_promotions.js +0 -1
- package/lib/resources/fixed_price_promotions.js +0 -1
- package/lib/resources/free_gift_promotions.js +0 -1
- package/lib/resources/free_shipping_promotions.js +0 -1
- package/lib/resources/gift_card_recipients.js +0 -1
- package/lib/resources/gift_cards.js +0 -1
- package/lib/resources/google_geocoders.js +0 -1
- package/lib/resources/imports.js +0 -1
- package/lib/resources/in_stock_subscriptions.js +0 -1
- package/lib/resources/inventory_models.js +0 -1
- package/lib/resources/inventory_return_locations.js +0 -1
- package/lib/resources/inventory_stock_locations.js +0 -1
- package/lib/resources/klarna_gateways.js +0 -1
- package/lib/resources/klarna_payments.js +0 -1
- package/lib/resources/line_item_options.js +0 -1
- package/lib/resources/line_items.js +0 -1
- package/lib/resources/manual_gateways.js +0 -1
- package/lib/resources/manual_tax_calculators.js +0 -1
- package/lib/resources/markets.js +0 -1
- package/lib/resources/merchants.js +0 -1
- package/lib/resources/order_amount_promotion_rules.js +0 -1
- package/lib/resources/order_copies.js +0 -1
- package/lib/resources/order_subscriptions.js +0 -1
- package/lib/resources/orders.js +0 -1
- package/lib/resources/packages.js +0 -1
- package/lib/resources/parcel_line_items.js +0 -1
- package/lib/resources/parcels.js +0 -1
- package/lib/resources/payment_methods.js +0 -1
- package/lib/resources/paypal_gateways.js +0 -1
- package/lib/resources/paypal_payments.js +0 -1
- package/lib/resources/percentage_discount_promotions.js +0 -1
- package/lib/resources/price_lists.js +0 -1
- package/lib/resources/prices.js +0 -1
- package/lib/resources/return_line_items.js +0 -1
- package/lib/resources/returns.js +0 -1
- package/lib/resources/shipments.js +0 -1
- package/lib/resources/shipping_categories.js +0 -1
- package/lib/resources/shipping_methods.js +0 -1
- package/lib/resources/shipping_zones.js +0 -1
- package/lib/resources/sku_list_items.js +0 -1
- package/lib/resources/sku_list_promotion_rules.js +0 -1
- package/lib/resources/sku_lists.js +0 -1
- package/lib/resources/sku_options.js +0 -1
- package/lib/resources/skus.js +0 -1
- package/lib/resources/stock_items.js +0 -1
- package/lib/resources/stock_locations.js +0 -1
- package/lib/resources/stock_transfers.js +0 -1
- package/lib/resources/stripe_gateways.js +0 -1
- package/lib/resources/stripe_payments.js +0 -1
- package/lib/resources/tax_categories.js +0 -1
- package/lib/resources/tax_rules.js +0 -1
- package/lib/resources/taxjar_accounts.js +0 -1
- package/lib/resources/webhooks.js +0 -1
- package/lib/resources/wire_transfers.js +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class InStockSubscriptions extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:InStockSubscriptions.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:InStockSubscriptions.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:InStockSubscriptions.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:InStockSubscriptions.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:InStockSubscriptions.TYPE,id:e},s)}async market(e,s,t){return this.resources.fetch({type:"markets"},`in_stock_subscriptions/${e}/market`,s,t)}async customer(e,s,t){return this.resources.fetch({type:"customers"},`in_stock_subscriptions/${e}/customer`,s,t)}async sku(e,s,t){return this.resources.fetch({type:"skus"},`in_stock_subscriptions/${e}/sku`,s,t)}isInStockSubscription(e){return e.type&&e.type===InStockSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:InStockSubscriptions.TYPE}:{id:e.id,type:InStockSubscriptions.TYPE}}type(){return InStockSubscriptions.TYPE}}InStockSubscriptions.TYPE="in_stock_subscriptions",exports.default=InStockSubscriptions;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class InventoryModels extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:InventoryModels.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:InventoryModels.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:InventoryModels.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:InventoryModels.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:InventoryModels.TYPE,id:e},t)}async inventory_stock_locations(e,t,r){return this.resources.fetch({type:"inventory_stock_locations"},`inventory_models/${e}/inventory_stock_locations`,t,r)}async inventory_return_locations(e,t,r){return this.resources.fetch({type:"inventory_return_locations"},`inventory_models/${e}/inventory_return_locations`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`inventory_models/${e}/attachments`,t,r)}isInventoryModel(e){return e.type&&e.type===InventoryModels.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:InventoryModels.TYPE}:{id:e.id,type:InventoryModels.TYPE}}type(){return InventoryModels.TYPE}}InventoryModels.TYPE="inventory_models",exports.default=InventoryModels;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class InventoryReturnLocations extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:InventoryReturnLocations.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:InventoryReturnLocations.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:InventoryReturnLocations.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:InventoryReturnLocations.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:InventoryReturnLocations.TYPE,id:e},t)}async stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`inventory_return_locations/${e}/stock_location`,t,s)}async inventory_model(e,t,s){return this.resources.fetch({type:"inventory_models"},`inventory_return_locations/${e}/inventory_model`,t,s)}isInventoryReturnLocation(e){return e.type&&e.type===InventoryReturnLocations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:InventoryReturnLocations.TYPE}:{id:e.id,type:InventoryReturnLocations.TYPE}}type(){return InventoryReturnLocations.TYPE}}InventoryReturnLocations.TYPE="inventory_return_locations",exports.default=InventoryReturnLocations;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class InventoryStockLocations extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:InventoryStockLocations.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:InventoryStockLocations.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:InventoryStockLocations.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:InventoryStockLocations.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:InventoryStockLocations.TYPE,id:e},s)}async stock_location(e,s,t){return this.resources.fetch({type:"stock_locations"},`inventory_stock_locations/${e}/stock_location`,s,t)}async inventory_model(e,s,t){return this.resources.fetch({type:"inventory_models"},`inventory_stock_locations/${e}/inventory_model`,s,t)}isInventoryStockLocation(e){return e.type&&e.type===InventoryStockLocations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:InventoryStockLocations.TYPE}:{id:e.id,type:InventoryStockLocations.TYPE}}type(){return InventoryStockLocations.TYPE}}InventoryStockLocations.TYPE="inventory_stock_locations",exports.default=InventoryStockLocations;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class KlarnaGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:KlarnaGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:KlarnaGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:KlarnaGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:KlarnaGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:KlarnaGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`klarna_gateways/${e}/payment_methods`,t,s)}async klarna_payments(e,t,s){return this.resources.fetch({type:"klarna_payments"},`klarna_gateways/${e}/klarna_payments`,t,s)}isKlarnaGateway(e){return e.type&&e.type===KlarnaGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:KlarnaGateways.TYPE}:{id:e.id,type:KlarnaGateways.TYPE}}type(){return KlarnaGateways.TYPE}}KlarnaGateways.TYPE="klarna_gateways",exports.default=KlarnaGateways;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class KlarnaPayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:KlarnaPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:KlarnaPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:KlarnaPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:KlarnaPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:KlarnaPayments.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`klarna_payments/${e}/order`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`klarna_payments/${e}/payment_gateway`,t,r)}isKlarnaPayment(e){return e.type&&e.type===KlarnaPayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:KlarnaPayments.TYPE}:{id:e.id,type:KlarnaPayments.TYPE}}type(){return KlarnaPayments.TYPE}}KlarnaPayments.TYPE="klarna_payments",exports.default=KlarnaPayments;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class LineItemOptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:LineItemOptions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:LineItemOptions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:LineItemOptions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:LineItemOptions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:LineItemOptions.TYPE,id:e},t)}async line_item(e,t,s){return this.resources.fetch({type:"line_items"},`line_item_options/${e}/line_item`,t,s)}async sku_option(e,t,s){return this.resources.fetch({type:"sku_options"},`line_item_options/${e}/sku_option`,t,s)}isLineItemOption(e){return e.type&&e.type===LineItemOptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:LineItemOptions.TYPE}:{id:e.id,type:LineItemOptions.TYPE}}type(){return LineItemOptions.TYPE}}LineItemOptions.TYPE="line_item_options",exports.default=LineItemOptions;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class LineItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:LineItems.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:LineItems.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:LineItems.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:LineItems.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:LineItems.TYPE,id:e},t)}async order(e,t,s){return this.resources.fetch({type:"orders"},`line_items/${e}/order`,t,s)}async line_item_options(e,t,s){return this.resources.fetch({type:"line_item_options"},`line_items/${e}/line_item_options`,t,s)}async stock_line_items(e,t,s){return this.resources.fetch({type:"stock_line_items"},`line_items/${e}/stock_line_items`,t,s)}async stock_transfers(e,t,s){return this.resources.fetch({type:"stock_transfers"},`line_items/${e}/stock_transfers`,t,s)}isLineItem(e){return e.type&&e.type===LineItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:LineItems.TYPE}:{id:e.id,type:LineItems.TYPE}}type(){return LineItems.TYPE}}LineItems.TYPE="line_items",exports.default=LineItems;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ManualGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ManualGateways.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ManualGateways.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ManualGateways.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ManualGateways.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ManualGateways.TYPE,id:e},t)}async payment_methods(e,t,r){return this.resources.fetch({type:"payment_methods"},`manual_gateways/${e}/payment_methods`,t,r)}isManualGateway(e){return e.type&&e.type===ManualGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ManualGateways.TYPE}:{id:e.id,type:ManualGateways.TYPE}}type(){return ManualGateways.TYPE}}ManualGateways.TYPE="manual_gateways",exports.default=ManualGateways;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ManualTaxCalculators extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ManualTaxCalculators.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ManualTaxCalculators.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ManualTaxCalculators.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ManualTaxCalculators.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ManualTaxCalculators.TYPE,id:e},t)}async tax_categories(e,t,s){return this.resources.fetch({type:"tax_categories"},`manual_tax_calculators/${e}/tax_categories`,t,s)}async markets(e,t,s){return this.resources.fetch({type:"markets"},`manual_tax_calculators/${e}/markets`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`manual_tax_calculators/${e}/attachments`,t,s)}async tax_rules(e,t,s){return this.resources.fetch({type:"tax_rules"},`manual_tax_calculators/${e}/tax_rules`,t,s)}isManualTaxCalculator(e){return e.type&&e.type===ManualTaxCalculators.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ManualTaxCalculators.TYPE}:{id:e.id,type:ManualTaxCalculators.TYPE}}type(){return ManualTaxCalculators.TYPE}}ManualTaxCalculators.TYPE="manual_tax_calculators",exports.default=ManualTaxCalculators;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Markets extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Markets.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Markets.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Markets.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Markets.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Markets.TYPE,id:e},t)}async merchant(e,t,r){return this.resources.fetch({type:"merchants"},`markets/${e}/merchant`,t,r)}async price_list(e,t,r){return this.resources.fetch({type:"price_lists"},`markets/${e}/price_list`,t,r)}async inventory_model(e,t,r){return this.resources.fetch({type:"inventory_models"},`markets/${e}/inventory_model`,t,r)}async tax_calculator(e,t,r){return this.resources.fetch({type:"tax_calculators"},`markets/${e}/tax_calculator`,t,r)}async customer_group(e,t,r){return this.resources.fetch({type:"customer_groups"},`markets/${e}/customer_group`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`markets/${e}/attachments`,t,r)}isMarket(e){return e.type&&e.type===Markets.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Markets.TYPE}:{id:e.id,type:Markets.TYPE}}type(){return Markets.TYPE}}Markets.TYPE="markets",exports.default=Markets;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Merchants extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Merchants.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Merchants.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Merchants.TYPE,id:e},t)}async address(e,t,s){return this.resources.fetch({type:"addresses"},`merchants/${e}/address`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`merchants/${e}/attachments`,t,s)}isMerchant(e){return e.type&&e.type===Merchants.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Merchants.TYPE}:{id:e.id,type:Merchants.TYPE}}type(){return Merchants.TYPE}}Merchants.TYPE="merchants",exports.default=Merchants;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderAmountPromotionRules extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:OrderAmountPromotionRules.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:OrderAmountPromotionRules.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:OrderAmountPromotionRules.TYPE,id:e},s)}isOrderAmountPromotionRule(e){return e.type&&e.type===OrderAmountPromotionRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderAmountPromotionRules.TYPE}:{id:e.id,type:OrderAmountPromotionRules.TYPE}}type(){return OrderAmountPromotionRules.TYPE}}OrderAmountPromotionRules.TYPE="order_amount_promotion_rules",exports.default=OrderAmountPromotionRules;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderCopies extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderCopies.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderCopies.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderCopies.TYPE,id:e},r,t)}async delete(e,r){await this.resources.delete({type:OrderCopies.TYPE,id:e},r)}async source_order(e,r,t){return this.resources.fetch({type:"orders"},`order_copies/${e}/source_order`,r,t)}async target_order(e,r,t){return this.resources.fetch({type:"orders"},`order_copies/${e}/target_order`,r,t)}async order_subscription(e,r,t){return this.resources.fetch({type:"order_subscriptions"},`order_copies/${e}/order_subscription`,r,t)}isOrderCopy(e){return e.type&&e.type===OrderCopies.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderCopies.TYPE}:{id:e.id,type:OrderCopies.TYPE}}type(){return OrderCopies.TYPE}}OrderCopies.TYPE="order_copies",exports.default=OrderCopies;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderSubscriptions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderSubscriptions.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderSubscriptions.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:OrderSubscriptions.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderSubscriptions.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:OrderSubscriptions.TYPE,id:e},r)}async market(e,r,s){return this.resources.fetch({type:"markets"},`order_subscriptions/${e}/market`,r,s)}async source_order(e,r,s){return this.resources.fetch({type:"orders"},`order_subscriptions/${e}/source_order`,r,s)}async customer(e,r,s){return this.resources.fetch({type:"customers"},`order_subscriptions/${e}/customer`,r,s)}async order_copies(e,r,s){return this.resources.fetch({type:"order_copies"},`order_subscriptions/${e}/order_copies`,r,s)}async orders(e,r,s){return this.resources.fetch({type:"orders"},`order_subscriptions/${e}/orders`,r,s)}isOrderSubscription(e){return e.type&&e.type===OrderSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderSubscriptions.TYPE}:{id:e.id,type:OrderSubscriptions.TYPE}}type(){return OrderSubscriptions.TYPE}}OrderSubscriptions.TYPE="order_subscriptions",exports.default=OrderSubscriptions;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderValidationRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderValidationRules.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderValidationRules.TYPE,id:e},r,t)}async market(e,r,t){return this.resources.fetch({type:"markets"},`order_validation_rules/${e}/market`,r,t)}isOrderValidationRule(e){return e.type&&e.type===OrderValidationRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:OrderValidationRules.TYPE}:{id:e.id,type:OrderValidationRules.TYPE}}type(){return OrderValidationRules.TYPE}}OrderValidationRules.TYPE="order_validation_rules",exports.default=OrderValidationRules;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Orders extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:Orders.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Orders.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:Orders.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Orders.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:Orders.TYPE,id:e},s)}async market(e,s,r){return this.resources.fetch({type:"markets"},`orders/${e}/market`,s,r)}async customer(e,s,r){return this.resources.fetch({type:"customers"},`orders/${e}/customer`,s,r)}async shipping_address(e,s,r){return this.resources.fetch({type:"addresses"},`orders/${e}/shipping_address`,s,r)}async billing_address(e,s,r){return this.resources.fetch({type:"addresses"},`orders/${e}/billing_address`,s,r)}async available_payment_methods(e,s,r){return this.resources.fetch({type:"payment_methods"},`orders/${e}/available_payment_methods`,s,r)}async available_customer_payment_sources(e,s,r){return this.resources.fetch({type:"customer_payment_sources"},`orders/${e}/available_customer_payment_sources`,s,r)}async payment_method(e,s,r){return this.resources.fetch({type:"payment_methods"},`orders/${e}/payment_method`,s,r)}async line_items(e,s,r){return this.resources.fetch({type:"line_items"},`orders/${e}/line_items`,s,r)}async shipments(e,s,r){return this.resources.fetch({type:"shipments"},`orders/${e}/shipments`,s,r)}async authorizations(e,s,r){return this.resources.fetch({type:"authorizations"},`orders/${e}/authorizations`,s,r)}async captures(e,s,r){return this.resources.fetch({type:"captures"},`orders/${e}/captures`,s,r)}async voids(e,s,r){return this.resources.fetch({type:"voids"},`orders/${e}/voids`,s,r)}async refunds(e,s,r){return this.resources.fetch({type:"refunds"},`orders/${e}/refunds`,s,r)}async order_subscriptions(e,s,r){return this.resources.fetch({type:"order_subscriptions"},`orders/${e}/order_subscriptions`,s,r)}async order_copies(e,s,r){return this.resources.fetch({type:"order_copies"},`orders/${e}/order_copies`,s,r)}async attachments(e,s,r){return this.resources.fetch({type:"attachments"},`orders/${e}/attachments`,s,r)}isOrder(e){return e.type&&e.type===Orders.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Orders.TYPE}:{id:e.id,type:Orders.TYPE}}type(){return Orders.TYPE}}Orders.TYPE="orders",exports.default=Orders;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Organizations extends resource_1.ApiResource{async retrieve(e,r){return this.resources.singleton({type:Organizations.TYPE},e,r)}isOrganization(e){return e.type&&e.type===Organizations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Organizations.TYPE}:{id:e.id,type:Organizations.TYPE}}type(){return Organizations.TYPE}}Organizations.TYPE="organization",exports.default=Organizations;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Packages extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Packages.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Packages.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Packages.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Packages.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Packages.TYPE,id:e},t)}async stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`packages/${e}/stock_location`,t,s)}async parcels(e,t,s){return this.resources.fetch({type:"parcels"},`packages/${e}/parcels`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`packages/${e}/attachments`,t,s)}isPackage(e){return e.type&&e.type===Packages.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Packages.TYPE}:{id:e.id,type:Packages.TYPE}}type(){return Packages.TYPE}}Packages.TYPE="packages",exports.default=Packages;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ParcelLineItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ParcelLineItems.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ParcelLineItems.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ParcelLineItems.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ParcelLineItems.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ParcelLineItems.TYPE,id:e},t)}async parcel(e,t,s){return this.resources.fetch({type:"parcels"},`parcel_line_items/${e}/parcel`,t,s)}async stock_line_item(e,t,s){return this.resources.fetch({type:"stock_line_items"},`parcel_line_items/${e}/stock_line_item`,t,s)}isParcelLineItem(e){return e.type&&e.type===ParcelLineItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ParcelLineItems.TYPE}:{id:e.id,type:ParcelLineItems.TYPE}}type(){return ParcelLineItems.TYPE}}ParcelLineItems.TYPE="parcel_line_items",exports.default=ParcelLineItems;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Parcels extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Parcels.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Parcels.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Parcels.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Parcels.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Parcels.TYPE,id:e},t)}async shipment(e,t,s){return this.resources.fetch({type:"shipments"},`parcels/${e}/shipment`,t,s)}async package(e,t,s){return this.resources.fetch({type:"packages"},`parcels/${e}/package`,t,s)}async parcel_line_items(e,t,s){return this.resources.fetch({type:"parcel_line_items"},`parcels/${e}/parcel_line_items`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`parcels/${e}/attachments`,t,s)}isParcel(e){return e.type&&e.type===Parcels.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Parcels.TYPE}:{id:e.id,type:Parcels.TYPE}}type(){return Parcels.TYPE}}Parcels.TYPE="parcels",exports.default=Parcels;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentGateways.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PaymentGateways.TYPE,id:e},r,t)}async payment_methods(e,r,t){return this.resources.fetch({type:"payment_methods"},`payment_gateways/${e}/payment_methods`,r,t)}isPaymentGateway(e){return e.type&&e.type===PaymentGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaymentGateways.TYPE}:{id:e.id,type:PaymentGateways.TYPE}}type(){return PaymentGateways.TYPE}}PaymentGateways.TYPE="payment_gateways",exports.default=PaymentGateways;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentMethods extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PaymentMethods.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PaymentMethods.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PaymentMethods.TYPE,id:e},t)}async market(e,t,r){return this.resources.fetch({type:"markets"},`payment_methods/${e}/market`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`payment_methods/${e}/payment_gateway`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`payment_methods/${e}/attachments`,t,r)}isPaymentMethod(e){return e.type&&e.type===PaymentMethods.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaymentMethods.TYPE}:{id:e.id,type:PaymentMethods.TYPE}}type(){return PaymentMethods.TYPE}}PaymentMethods.TYPE="payment_methods",exports.default=PaymentMethods;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PaypalGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:PaypalGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:PaypalGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`paypal_gateways/${e}/payment_methods`,t,s)}async paypal_payments(e,t,s){return this.resources.fetch({type:"paypal_payments"},`paypal_gateways/${e}/paypal_payments`,t,s)}isPaypalGateway(e){return e.type&&e.type===PaypalGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaypalGateways.TYPE}:{id:e.id,type:PaypalGateways.TYPE}}type(){return PaypalGateways.TYPE}}PaypalGateways.TYPE="paypal_gateways",exports.default=PaypalGateways;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalPayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PaypalPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PaypalPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PaypalPayments.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`paypal_payments/${e}/order`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`paypal_payments/${e}/payment_gateway`,t,r)}isPaypalPayment(e){return e.type&&e.type===PaypalPayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PaypalPayments.TYPE}:{id:e.id,type:PaypalPayments.TYPE}}type(){return PaypalPayments.TYPE}}PaypalPayments.TYPE="paypal_payments",exports.default=PaypalPayments;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PercentageDiscountPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PercentageDiscountPromotions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:PercentageDiscountPromotions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:PercentageDiscountPromotions.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`percentage_discount_promotions/${e}/market`,t,s)}async order_amount_promotion_rule(e,t,s){return this.resources.fetch({type:"order_amount_promotion_rules"},`percentage_discount_promotions/${e}/order_amount_promotion_rule`,t,s)}async sku_list_promotion_rule(e,t,s){return this.resources.fetch({type:"sku_list_promotion_rules"},`percentage_discount_promotions/${e}/sku_list_promotion_rule`,t,s)}async coupon_codes_promotion_rule(e,t,s){return this.resources.fetch({type:"coupon_codes_promotion_rules"},`percentage_discount_promotions/${e}/coupon_codes_promotion_rule`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`percentage_discount_promotions/${e}/attachments`,t,s)}async sku_list(e,t,s){return this.resources.fetch({type:"sku_lists"},`percentage_discount_promotions/${e}/sku_list`,t,s)}async skus(e,t,s){return this.resources.fetch({type:"skus"},`percentage_discount_promotions/${e}/skus`,t,s)}isPercentageDiscountPromotion(e){return e.type&&e.type===PercentageDiscountPromotions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PercentageDiscountPromotions.TYPE}:{id:e.id,type:PercentageDiscountPromotions.TYPE}}type(){return PercentageDiscountPromotions.TYPE}}PercentageDiscountPromotions.TYPE="percentage_discount_promotions",exports.default=PercentageDiscountPromotions;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PriceLists extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PriceLists.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PriceLists.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PriceLists.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PriceLists.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PriceLists.TYPE,id:e},t)}async prices(e,t,r){return this.resources.fetch({type:"prices"},`price_lists/${e}/prices`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`price_lists/${e}/attachments`,t,r)}isPriceList(e){return e.type&&e.type===PriceLists.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PriceLists.TYPE}:{id:e.id,type:PriceLists.TYPE}}type(){return PriceLists.TYPE}}PriceLists.TYPE="price_lists",exports.default=PriceLists;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Prices extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Prices.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Prices.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Prices.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Prices.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Prices.TYPE,id:e},t)}async price_list(e,t,s){return this.resources.fetch({type:"price_lists"},`prices/${e}/price_list`,t,s)}async sku(e,t,s){return this.resources.fetch({type:"skus"},`prices/${e}/sku`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`prices/${e}/attachments`,t,s)}isPrice(e){return e.type&&e.type===Prices.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Prices.TYPE}:{id:e.id,type:Prices.TYPE}}type(){return Prices.TYPE}}Prices.TYPE="prices",exports.default=Prices;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PromotionRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PromotionRules.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PromotionRules.TYPE,id:e},r,t)}isPromotionRule(e){return e.type&&e.type===PromotionRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PromotionRules.TYPE}:{id:e.id,type:PromotionRules.TYPE}}type(){return PromotionRules.TYPE}}PromotionRules.TYPE="promotion_rules",exports.default=PromotionRules;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Promotions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Promotions.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Promotions.TYPE,id:e},r,t)}async market(e,r,t){return this.resources.fetch({type:"markets"},`promotions/${e}/market`,r,t)}async order_amount_promotion_rule(e,r,t){return this.resources.fetch({type:"order_amount_promotion_rules"},`promotions/${e}/order_amount_promotion_rule`,r,t)}async sku_list_promotion_rule(e,r,t){return this.resources.fetch({type:"sku_list_promotion_rules"},`promotions/${e}/sku_list_promotion_rule`,r,t)}async coupon_codes_promotion_rule(e,r,t){return this.resources.fetch({type:"coupon_codes_promotion_rules"},`promotions/${e}/coupon_codes_promotion_rule`,r,t)}async attachments(e,r,t){return this.resources.fetch({type:"attachments"},`promotions/${e}/attachments`,r,t)}isPromotion(e){return e.type&&e.type===Promotions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Promotions.TYPE}:{id:e.id,type:Promotions.TYPE}}type(){return Promotions.TYPE}}Promotions.TYPE="promotions",exports.default=Promotions;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Refunds extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Refunds.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Refunds.TYPE,id:e},r,t)}async order(e,r,t){return this.resources.fetch({type:"orders"},`refunds/${e}/order`,r,t)}async reference_capture(e,r,t){return this.resources.fetch({type:"captures"},`refunds/${e}/reference_capture`,r,t)}isRefund(e){return e.type&&e.type===Refunds.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Refunds.TYPE}:{id:e.id,type:Refunds.TYPE}}type(){return Refunds.TYPE}}Refunds.TYPE="refunds",exports.default=Refunds;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ReturnLineItems extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:ReturnLineItems.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:ReturnLineItems.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:ReturnLineItems.TYPE,id:e},r)}async return(e,r,t){return this.resources.fetch({type:"returns"},`return_line_items/${e}/return`,r,t)}async line_item(e,r,t){return this.resources.fetch({type:"line_items"},`return_line_items/${e}/line_item`,r,t)}isReturnLineItem(e){return e.type&&e.type===ReturnLineItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ReturnLineItems.TYPE}:{id:e.id,type:ReturnLineItems.TYPE}}type(){return ReturnLineItems.TYPE}}ReturnLineItems.TYPE="return_line_items",exports.default=ReturnLineItems;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Returns extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Returns.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Returns.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Returns.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Returns.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Returns.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`returns/${e}/order`,t,r)}async customer(e,t,r){return this.resources.fetch({type:"customers"},`returns/${e}/customer`,t,r)}async stock_location(e,t,r){return this.resources.fetch({type:"stock_locations"},`returns/${e}/stock_location`,t,r)}async origin_address(e,t,r){return this.resources.fetch({type:"addresses"},`returns/${e}/origin_address`,t,r)}async destination_address(e,t,r){return this.resources.fetch({type:"addresses"},`returns/${e}/destination_address`,t,r)}async return_line_items(e,t,r){return this.resources.fetch({type:"return_line_items"},`returns/${e}/return_line_items`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`returns/${e}/attachments`,t,r)}isReturn(e){return e.type&&e.type===Returns.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Returns.TYPE}:{id:e.id,type:Returns.TYPE}}type(){return Returns.TYPE}}Returns.TYPE="returns",exports.default=Returns;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Shipments extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:Shipments.TYPE},e,s)}async retrieve(e,s,t){return this.resources.retrieve({type:Shipments.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:Shipments.TYPE}),s,t)}async order(e,s,t){return this.resources.fetch({type:"orders"},`shipments/${e}/order`,s,t)}async shipping_category(e,s,t){return this.resources.fetch({type:"shipping_categories"},`shipments/${e}/shipping_category`,s,t)}async stock_location(e,s,t){return this.resources.fetch({type:"stock_locations"},`shipments/${e}/stock_location`,s,t)}async origin_address(e,s,t){return this.resources.fetch({type:"addresses"},`shipments/${e}/origin_address`,s,t)}async shipping_address(e,s,t){return this.resources.fetch({type:"addresses"},`shipments/${e}/shipping_address`,s,t)}async shipping_method(e,s,t){return this.resources.fetch({type:"shipping_methods"},`shipments/${e}/shipping_method`,s,t)}async delivery_lead_time(e,s,t){return this.resources.fetch({type:"delivery_lead_times"},`shipments/${e}/delivery_lead_time`,s,t)}async stock_line_items(e,s,t){return this.resources.fetch({type:"stock_line_items"},`shipments/${e}/stock_line_items`,s,t)}async stock_transfers(e,s,t){return this.resources.fetch({type:"stock_transfers"},`shipments/${e}/stock_transfers`,s,t)}async available_shipping_methods(e,s,t){return this.resources.fetch({type:"shipping_methods"},`shipments/${e}/available_shipping_methods`,s,t)}async carrier_accounts(e,s,t){return this.resources.fetch({type:"carrier_accounts"},`shipments/${e}/carrier_accounts`,s,t)}async parcels(e,s,t){return this.resources.fetch({type:"parcels"},`shipments/${e}/parcels`,s,t)}async attachments(e,s,t){return this.resources.fetch({type:"attachments"},`shipments/${e}/attachments`,s,t)}isShipment(e){return e.type&&e.type===Shipments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Shipments.TYPE}:{id:e.id,type:Shipments.TYPE}}type(){return Shipments.TYPE}}Shipments.TYPE="shipments",exports.default=Shipments;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ShippingCategories extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ShippingCategories.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingCategories.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ShippingCategories.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingCategories.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ShippingCategories.TYPE,id:e},t)}async skus(e,t,s){return this.resources.fetch({type:"skus"},`shipping_categories/${e}/skus`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`shipping_categories/${e}/attachments`,t,s)}isShippingCategory(e){return e.type&&e.type===ShippingCategories.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ShippingCategories.TYPE}:{id:e.id,type:ShippingCategories.TYPE}}type(){return ShippingCategories.TYPE}}ShippingCategories.TYPE="shipping_categories",exports.default=ShippingCategories;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ShippingMethods extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ShippingMethods.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingMethods.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ShippingMethods.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingMethods.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ShippingMethods.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`shipping_methods/${e}/market`,t,s)}async shipping_zone(e,t,s){return this.resources.fetch({type:"shipping_zones"},`shipping_methods/${e}/shipping_zone`,t,s)}async shipping_category(e,t,s){return this.resources.fetch({type:"shipping_categories"},`shipping_methods/${e}/shipping_category`,t,s)}async delivery_lead_time_for_shipment(e,t,s){return this.resources.fetch({type:"delivery_lead_times"},`shipping_methods/${e}/delivery_lead_time_for_shipment`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`shipping_methods/${e}/attachments`,t,s)}isShippingMethod(e){return e.type&&e.type===ShippingMethods.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ShippingMethods.TYPE}:{id:e.id,type:ShippingMethods.TYPE}}type(){return ShippingMethods.TYPE}}ShippingMethods.TYPE="shipping_methods",exports.default=ShippingMethods;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ShippingZones extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ShippingZones.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingZones.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ShippingZones.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingZones.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ShippingZones.TYPE,id:e},t)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`shipping_zones/${e}/attachments`,t,r)}isShippingZone(e){return e.type&&e.type===ShippingZones.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ShippingZones.TYPE}:{id:e.id,type:ShippingZones.TYPE}}type(){return ShippingZones.TYPE}}ShippingZones.TYPE="shipping_zones",exports.default=ShippingZones;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuListItems extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:SkuListItems.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuListItems.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:SkuListItems.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuListItems.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:SkuListItems.TYPE,id:e},s)}async sku_list(e,s,r){return this.resources.fetch({type:"sku_lists"},`sku_list_items/${e}/sku_list`,s,r)}async sku(e,s,r){return this.resources.fetch({type:"skus"},`sku_list_items/${e}/sku`,s,r)}isSkuListItem(e){return e.type&&e.type===SkuListItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:SkuListItems.TYPE}:{id:e.id,type:SkuListItems.TYPE}}type(){return SkuListItems.TYPE}}SkuListItems.TYPE="sku_list_items",exports.default=SkuListItems;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuListPromotionRules extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:SkuListPromotionRules.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuListPromotionRules.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:SkuListPromotionRules.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuListPromotionRules.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:SkuListPromotionRules.TYPE,id:e},s)}async sku_list(e,s,t){return this.resources.fetch({type:"sku_lists"},`sku_list_promotion_rules/${e}/sku_list`,s,t)}async skus(e,s,t){return this.resources.fetch({type:"skus"},`sku_list_promotion_rules/${e}/skus`,s,t)}isSkuListPromotionRule(e){return e.type&&e.type===SkuListPromotionRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:SkuListPromotionRules.TYPE}:{id:e.id,type:SkuListPromotionRules.TYPE}}type(){return SkuListPromotionRules.TYPE}}SkuListPromotionRules.TYPE="sku_list_promotion_rules",exports.default=SkuListPromotionRules;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuLists extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:SkuLists.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuLists.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:SkuLists.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuLists.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:SkuLists.TYPE,id:e},s)}async skus(e,s,t){return this.resources.fetch({type:"skus"},`sku_lists/${e}/skus`,s,t)}async sku_list_items(e,s,t){return this.resources.fetch({type:"sku_list_items"},`sku_lists/${e}/sku_list_items`,s,t)}async bundles(e,s,t){return this.resources.fetch({type:"bundles"},`sku_lists/${e}/bundles`,s,t)}isSkuList(e){return e.type&&e.type===SkuLists.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:SkuLists.TYPE}:{id:e.id,type:SkuLists.TYPE}}type(){return SkuLists.TYPE}}SkuLists.TYPE="sku_lists",exports.default=SkuLists;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class SkuOptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:SkuOptions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:SkuOptions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:SkuOptions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:SkuOptions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:SkuOptions.TYPE,id:e},t)}async market(e,t,r){return this.resources.fetch({type:"markets"},`sku_options/${e}/market`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`sku_options/${e}/attachments`,t,r)}isSkuOption(e){return e.type&&e.type===SkuOptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:SkuOptions.TYPE}:{id:e.id,type:SkuOptions.TYPE}}type(){return SkuOptions.TYPE}}SkuOptions.TYPE="sku_options",exports.default=SkuOptions;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Skus extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:Skus.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:Skus.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:Skus.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:Skus.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:Skus.TYPE,id:e},s)}async shipping_category(e,s,t){return this.resources.fetch({type:"shipping_categories"},`skus/${e}/shipping_category`,s,t)}async prices(e,s,t){return this.resources.fetch({type:"prices"},`skus/${e}/prices`,s,t)}async stock_items(e,s,t){return this.resources.fetch({type:"stock_items"},`skus/${e}/stock_items`,s,t)}async delivery_lead_times(e,s,t){return this.resources.fetch({type:"delivery_lead_times"},`skus/${e}/delivery_lead_times`,s,t)}async sku_options(e,s,t){return this.resources.fetch({type:"sku_options"},`skus/${e}/sku_options`,s,t)}async attachments(e,s,t){return this.resources.fetch({type:"attachments"},`skus/${e}/attachments`,s,t)}isSku(e){return e.type&&e.type===Skus.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Skus.TYPE}:{id:e.id,type:Skus.TYPE}}type(){return Skus.TYPE}}Skus.TYPE="skus",exports.default=Skus;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockItems.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockItems.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StockItems.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockItems.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StockItems.TYPE,id:e},t)}async stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`stock_items/${e}/stock_location`,t,s)}async sku(e,t,s){return this.resources.fetch({type:"skus"},`stock_items/${e}/sku`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`stock_items/${e}/attachments`,t,s)}isStockItem(e){return e.type&&e.type===StockItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockItems.TYPE}:{id:e.id,type:StockItems.TYPE}}type(){return StockItems.TYPE}}StockItems.TYPE="stock_items",exports.default=StockItems;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockLineItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockLineItems.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:StockLineItems.TYPE,id:e},t,s)}async shipment(e,t,s){return this.resources.fetch({type:"shipments"},`stock_line_items/${e}/shipment`,t,s)}async line_item(e,t,s){return this.resources.fetch({type:"line_items"},`stock_line_items/${e}/line_item`,t,s)}async stock_item(e,t,s){return this.resources.fetch({type:"stock_items"},`stock_line_items/${e}/stock_item`,t,s)}isStockLineItem(e){return e.type&&e.type===StockLineItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockLineItems.TYPE}:{id:e.id,type:StockLineItems.TYPE}}type(){return StockLineItems.TYPE}}StockLineItems.TYPE="stock_line_items",exports.default=StockLineItems;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockLocations extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockLocations.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockLocations.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StockLocations.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockLocations.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StockLocations.TYPE,id:e},t)}async address(e,t,s){return this.resources.fetch({type:"addresses"},`stock_locations/${e}/address`,t,s)}async inventory_stock_locations(e,t,s){return this.resources.fetch({type:"inventory_stock_locations"},`stock_locations/${e}/inventory_stock_locations`,t,s)}async inventory_return_locations(e,t,s){return this.resources.fetch({type:"inventory_return_locations"},`stock_locations/${e}/inventory_return_locations`,t,s)}async stock_items(e,t,s){return this.resources.fetch({type:"stock_items"},`stock_locations/${e}/stock_items`,t,s)}async stock_transfers(e,t,s){return this.resources.fetch({type:"stock_transfers"},`stock_locations/${e}/stock_transfers`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`stock_locations/${e}/attachments`,t,s)}isStockLocation(e){return e.type&&e.type===StockLocations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockLocations.TYPE}:{id:e.id,type:StockLocations.TYPE}}type(){return StockLocations.TYPE}}StockLocations.TYPE="stock_locations",exports.default=StockLocations;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockTransfers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockTransfers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockTransfers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StockTransfers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockTransfers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StockTransfers.TYPE,id:e},t)}async sku(e,t,s){return this.resources.fetch({type:"skus"},`stock_transfers/${e}/sku`,t,s)}async origin_stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`stock_transfers/${e}/origin_stock_location`,t,s)}async destination_stock_location(e,t,s){return this.resources.fetch({type:"stock_locations"},`stock_transfers/${e}/destination_stock_location`,t,s)}async shipment(e,t,s){return this.resources.fetch({type:"shipments"},`stock_transfers/${e}/shipment`,t,s)}async line_item(e,t,s){return this.resources.fetch({type:"line_items"},`stock_transfers/${e}/line_item`,t,s)}isStockTransfer(e){return e.type&&e.type===StockTransfers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockTransfers.TYPE}:{id:e.id,type:StockTransfers.TYPE}}type(){return StockTransfers.TYPE}}StockTransfers.TYPE="stock_transfers",exports.default=StockTransfers;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripeGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StripeGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StripeGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StripeGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`stripe_gateways/${e}/payment_methods`,t,s)}async stripe_payments(e,t,s){return this.resources.fetch({type:"stripe_payments"},`stripe_gateways/${e}/stripe_payments`,t,s)}isStripeGateway(e){return e.type&&e.type===StripeGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StripeGateways.TYPE}:{id:e.id,type:StripeGateways.TYPE}}type(){return StripeGateways.TYPE}}StripeGateways.TYPE="stripe_gateways",exports.default=StripeGateways;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripePayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StripePayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:StripePayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:StripePayments.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`stripe_payments/${e}/order`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`stripe_payments/${e}/payment_gateway`,t,r)}isStripePayment(e){return e.type&&e.type===StripePayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StripePayments.TYPE}:{id:e.id,type:StripePayments.TYPE}}type(){return StripePayments.TYPE}}StripePayments.TYPE="stripe_payments",exports.default=StripePayments;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCalculators extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCalculators.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxCalculators.TYPE,id:e},t,r)}async tax_categories(e,t,r){return this.resources.fetch({type:"tax_categories"},`tax_calculators/${e}/tax_categories`,t,r)}async markets(e,t,r){return this.resources.fetch({type:"markets"},`tax_calculators/${e}/markets`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`tax_calculators/${e}/attachments`,t,r)}isTaxCalculator(e){return e.type&&e.type===TaxCalculators.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxCalculators.TYPE}:{id:e.id,type:TaxCalculators.TYPE}}type(){return TaxCalculators.TYPE}}TaxCalculators.TYPE="tax_calculators",exports.default=TaxCalculators;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCategories extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCategories.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxCategories.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:TaxCategories.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxCategories.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:TaxCategories.TYPE,id:e},t)}async sku(e,t,s){return this.resources.fetch({type:"skus"},`tax_categories/${e}/sku`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`tax_categories/${e}/attachments`,t,s)}isTaxCategory(e){return e.type&&e.type===TaxCategories.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxCategories.TYPE}:{id:e.id,type:TaxCategories.TYPE}}type(){return TaxCategories.TYPE}}TaxCategories.TYPE="tax_categories",exports.default=TaxCategories;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxRules.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxRules.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxRules.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxRules.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:TaxRules.TYPE,id:e},t)}async manual_tax_calculator(e,t,r){return this.resources.fetch({type:"manual_tax_calculators"},`tax_rules/${e}/manual_tax_calculator`,t,r)}isTaxRule(e){return e.type&&e.type===TaxRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxRules.TYPE}:{id:e.id,type:TaxRules.TYPE}}type(){return TaxRules.TYPE}}TaxRules.TYPE="tax_rules",exports.default=TaxRules;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxjarAccounts extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxjarAccounts.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxjarAccounts.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:TaxjarAccounts.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxjarAccounts.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:TaxjarAccounts.TYPE,id:e},t)}async tax_categories(e,t,s){return this.resources.fetch({type:"tax_categories"},`taxjar_accounts/${e}/tax_categories`,t,s)}async markets(e,t,s){return this.resources.fetch({type:"markets"},`taxjar_accounts/${e}/markets`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`taxjar_accounts/${e}/attachments`,t,s)}isTaxjarAccount(e){return e.type&&e.type===TaxjarAccounts.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxjarAccounts.TYPE}:{id:e.id,type:TaxjarAccounts.TYPE}}type(){return TaxjarAccounts.TYPE}}TaxjarAccounts.TYPE="taxjar_accounts",exports.default=TaxjarAccounts;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Transactions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Transactions.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Transactions.TYPE,id:e},r,t)}async order(e,r,t){return this.resources.fetch({type:"orders"},`transactions/${e}/order`,r,t)}isTransaction(e){return e.type&&e.type===Transactions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Transactions.TYPE}:{id:e.id,type:Transactions.TYPE}}type(){return Transactions.TYPE}}Transactions.TYPE="transactions",exports.default=Transactions;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Voids extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Voids.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Voids.TYPE,id:e},r,t)}async order(e,r,t){return this.resources.fetch({type:"orders"},`voids/${e}/order`,r,t)}async reference_authorization(e,r,t){return this.resources.fetch({type:"authorizations"},`voids/${e}/reference_authorization`,r,t)}isVoid(e){return e.type&&e.type===Voids.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Voids.TYPE}:{id:e.id,type:Voids.TYPE}}type(){return Voids.TYPE}}Voids.TYPE="voids",exports.default=Voids;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Webhooks extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Webhooks.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Webhooks.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Webhooks.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Webhooks.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Webhooks.TYPE,id:e},t)}async last_event_callbacks(e,t,r){return this.resources.fetch({type:"event_callbacks"},`webhooks/${e}/last_event_callbacks`,t,r)}isWebhook(e){return e.type&&e.type===Webhooks.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Webhooks.TYPE}:{id:e.id,type:Webhooks.TYPE}}type(){return Webhooks.TYPE}}Webhooks.TYPE="webhooks",exports.default=Webhooks;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class WireTransfers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:WireTransfers.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:WireTransfers.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:WireTransfers.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:WireTransfers.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:WireTransfers.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`wire_transfers/${e}/order`,t,r)}isWireTransfer(e){return e.type&&e.type===WireTransfers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:WireTransfers.TYPE}:{id:e.id,type:WireTransfers.TYPE}}type(){return WireTransfers.TYPE}}WireTransfers.TYPE="wire_transfers",exports.default=WireTransfers;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,t,i){i===void 0&&(i=t),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,i){i===void 0&&(i=t),e[i]=r[t]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&__createBinding(r,e,t);return __setModuleDefault(r,e),r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CommerceLayerStatic=void 0;const api=__importStar(require("./api")),error_1=require("./error");exports.CommerceLayerStatic={resources:()=>api.resourceList,isSdkError:e=>error_1.SdkError.isSdkError(e),isApiError:e=>error_1.ApiError.isApiError(e)};
|
File without changes
|
package/lib/cjs/util.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.sleep=void 0;const sleep=async e=>new Promise(s=>setTimeout(s,e));exports.sleep=sleep;
|