@commercelayer/sdk 4.4.0 → 5.0.0-alpha.1
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 +10 -10
- package/lib/{cjs/api.d.ts → api.d.ts} +0 -0
- package/lib/{esm/api.js → api.js} +0 -0
- package/lib/{cjs/client.d.ts → client.d.ts} +0 -0
- package/lib/client.js +1 -0
- package/lib/{cjs/commercelayer.d.ts → commercelayer.d.ts} +0 -0
- package/lib/{esm/commercelayer.js → commercelayer.js} +1 -1
- package/lib/{cjs/common.d.ts → common.d.ts} +0 -0
- package/lib/common.js +1 -0
- package/lib/{cjs/config.d.ts → config.d.ts} +0 -0
- package/lib/{esm/config.js → config.js} +0 -0
- package/lib/{cjs/debug.d.ts → debug.d.ts} +0 -0
- package/lib/{esm/debug.js → debug.js} +0 -0
- package/lib/{cjs/error.d.ts → error.d.ts} +0 -0
- package/lib/error.js +1 -0
- package/lib/{cjs/index.d.ts → index.d.ts} +0 -0
- package/lib/{esm/index.js → index.js} +0 -0
- package/lib/{cjs/interceptor.d.ts → interceptor.d.ts} +0 -0
- package/lib/{esm/interceptor.js → interceptor.js} +0 -0
- package/lib/{cjs/jsonapi.d.ts → jsonapi.d.ts} +0 -0
- package/lib/jsonapi.js +1 -0
- package/lib/{cjs/model.d.ts → model.d.ts} +0 -0
- package/lib/{esm/model.js → model.js} +0 -0
- package/lib/{cjs/query.d.ts → query.d.ts} +0 -0
- package/lib/{esm/query.js → query.js} +0 -0
- package/lib/{cjs/resource.d.ts → resource.d.ts} +0 -0
- package/lib/resource.js +1 -0
- package/lib/{cjs/resources → resources}/addresses.d.ts +0 -0
- package/lib/resources/addresses.js +1 -0
- package/lib/{cjs/resources → resources}/adjustments.d.ts +0 -0
- package/lib/resources/adjustments.js +1 -0
- package/lib/{cjs/resources → resources}/adyen_gateways.d.ts +0 -0
- package/lib/resources/adyen_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/adyen_payments.d.ts +0 -0
- package/lib/resources/adyen_payments.js +1 -0
- package/lib/{cjs/resources → resources}/application.d.ts +0 -0
- package/lib/{esm/resources → resources}/application.js +0 -0
- package/lib/{cjs/resources → resources}/attachments.d.ts +0 -0
- package/lib/resources/attachments.js +1 -0
- package/lib/{cjs/resources → resources}/authorizations.d.ts +0 -0
- package/lib/resources/authorizations.js +1 -0
- package/lib/{cjs/resources → resources}/avalara_accounts.d.ts +0 -0
- package/lib/resources/avalara_accounts.js +1 -0
- package/lib/{cjs/resources → resources}/billing_info_validation_rules.d.ts +0 -0
- package/lib/resources/billing_info_validation_rules.js +1 -0
- package/lib/{cjs/resources → resources}/bing_geocoders.d.ts +0 -0
- package/lib/resources/bing_geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/braintree_gateways.d.ts +0 -0
- package/lib/resources/braintree_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/braintree_payments.d.ts +0 -0
- package/lib/resources/braintree_payments.js +1 -0
- package/lib/{cjs/resources → resources}/bundles.d.ts +0 -0
- package/lib/resources/bundles.js +1 -0
- package/lib/{cjs/resources → resources}/captures.d.ts +0 -0
- package/lib/resources/captures.js +1 -0
- package/lib/{cjs/resources → resources}/carrier_accounts.d.ts +0 -0
- package/lib/{esm/resources → resources}/carrier_accounts.js +0 -0
- package/lib/{cjs/resources → resources}/checkout_com_gateways.d.ts +0 -0
- package/lib/resources/checkout_com_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/checkout_com_payments.d.ts +0 -0
- package/lib/resources/checkout_com_payments.js +1 -0
- package/lib/{cjs/resources → resources}/coupon_codes_promotion_rules.d.ts +0 -0
- package/lib/resources/coupon_codes_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/coupon_recipients.d.ts +0 -0
- package/lib/resources/coupon_recipients.js +1 -0
- package/lib/{cjs/resources → resources}/coupons.d.ts +0 -0
- package/lib/resources/coupons.js +1 -0
- package/lib/{cjs/resources → resources}/customer_addresses.d.ts +0 -0
- package/lib/resources/customer_addresses.js +1 -0
- package/lib/{cjs/resources → resources}/customer_groups.d.ts +0 -0
- package/lib/resources/customer_groups.js +1 -0
- package/lib/{cjs/resources → resources}/customer_password_resets.d.ts +0 -0
- package/lib/resources/customer_password_resets.js +1 -0
- package/lib/{cjs/resources → resources}/customer_payment_sources.d.ts +0 -0
- package/lib/resources/customer_payment_sources.js +1 -0
- package/lib/{cjs/resources → resources}/customer_subscriptions.d.ts +0 -0
- package/lib/resources/customer_subscriptions.js +1 -0
- package/lib/{cjs/resources → resources}/customers.d.ts +0 -0
- package/lib/resources/customers.js +1 -0
- package/lib/{cjs/resources → resources}/delivery_lead_times.d.ts +0 -0
- package/lib/resources/delivery_lead_times.js +1 -0
- package/lib/{cjs/resources → resources}/event_callbacks.d.ts +0 -0
- package/lib/{esm/resources → resources}/event_callbacks.js +0 -0
- package/lib/{cjs/resources → resources}/external_gateways.d.ts +0 -0
- package/lib/resources/external_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/external_payments.d.ts +0 -0
- package/lib/resources/external_payments.js +1 -0
- package/lib/{cjs/resources → resources}/external_promotions.d.ts +0 -0
- package/lib/resources/external_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/external_tax_calculators.d.ts +0 -0
- package/lib/resources/external_tax_calculators.js +1 -0
- package/lib/{cjs/resources → resources}/fixed_amount_promotions.d.ts +0 -0
- package/lib/resources/fixed_amount_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/fixed_price_promotions.d.ts +0 -0
- package/lib/resources/fixed_price_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/free_gift_promotions.d.ts +0 -0
- package/lib/resources/free_gift_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/free_shipping_promotions.d.ts +0 -0
- package/lib/resources/free_shipping_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/geocoders.d.ts +0 -0
- package/lib/{esm/resources → resources}/geocoders.js +0 -0
- package/lib/{cjs/resources → resources}/gift_card_recipients.d.ts +0 -0
- package/lib/resources/gift_card_recipients.js +1 -0
- package/lib/{cjs/resources → resources}/gift_cards.d.ts +0 -0
- package/lib/resources/gift_cards.js +1 -0
- package/lib/{cjs/resources → resources}/google_geocoders.d.ts +0 -0
- package/lib/resources/google_geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/imports.d.ts +0 -0
- package/lib/resources/imports.js +1 -0
- package/lib/{cjs/resources → resources}/in_stock_subscriptions.d.ts +0 -0
- package/lib/resources/in_stock_subscriptions.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_models.d.ts +0 -0
- package/lib/resources/inventory_models.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_return_locations.d.ts +0 -0
- package/lib/resources/inventory_return_locations.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_stock_locations.d.ts +0 -0
- package/lib/resources/inventory_stock_locations.js +1 -0
- package/lib/{cjs/resources → resources}/klarna_gateways.d.ts +0 -0
- package/lib/resources/klarna_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/klarna_payments.d.ts +0 -0
- package/lib/resources/klarna_payments.js +1 -0
- package/lib/{cjs/resources → resources}/line_item_options.d.ts +0 -0
- package/lib/resources/line_item_options.js +1 -0
- package/lib/{cjs/resources → resources}/line_items.d.ts +0 -0
- package/lib/resources/line_items.js +1 -0
- package/lib/{cjs/resources → resources}/manual_gateways.d.ts +0 -0
- package/lib/resources/manual_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/manual_tax_calculators.d.ts +0 -0
- package/lib/resources/manual_tax_calculators.js +1 -0
- package/lib/{cjs/resources → resources}/markets.d.ts +0 -0
- package/lib/resources/markets.js +1 -0
- package/lib/{cjs/resources → resources}/merchants.d.ts +0 -0
- package/lib/resources/merchants.js +1 -0
- package/lib/{cjs/resources → resources}/order_amount_promotion_rules.d.ts +0 -0
- package/lib/resources/order_amount_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/order_copies.d.ts +0 -0
- package/lib/resources/order_copies.js +1 -0
- package/lib/{cjs/resources → resources}/order_subscriptions.d.ts +0 -0
- package/lib/resources/order_subscriptions.js +1 -0
- package/lib/{cjs/resources → resources}/order_validation_rules.d.ts +0 -0
- package/lib/{esm/resources → resources}/order_validation_rules.js +0 -0
- package/lib/{cjs/resources → resources}/orders.d.ts +0 -0
- package/lib/resources/orders.js +1 -0
- package/lib/{cjs/resources → resources}/organization.d.ts +0 -0
- package/lib/{esm/resources → resources}/organization.js +0 -0
- package/lib/{cjs/resources → resources}/packages.d.ts +0 -0
- package/lib/resources/packages.js +1 -0
- package/lib/{cjs/resources → resources}/parcel_line_items.d.ts +0 -0
- package/lib/resources/parcel_line_items.js +1 -0
- package/lib/{cjs/resources → resources}/parcels.d.ts +0 -0
- package/lib/resources/parcels.js +1 -0
- package/lib/{cjs/resources → resources}/payment_gateways.d.ts +0 -0
- package/lib/{esm/resources → resources}/payment_gateways.js +0 -0
- package/lib/{cjs/resources → resources}/payment_methods.d.ts +0 -0
- package/lib/resources/payment_methods.js +1 -0
- package/lib/{cjs/resources → resources}/paypal_gateways.d.ts +0 -0
- package/lib/resources/paypal_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/paypal_payments.d.ts +0 -0
- package/lib/resources/paypal_payments.js +1 -0
- package/lib/{cjs/resources → resources}/percentage_discount_promotions.d.ts +0 -0
- package/lib/resources/percentage_discount_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/price_lists.d.ts +0 -0
- package/lib/resources/price_lists.js +1 -0
- package/lib/{cjs/resources → resources}/prices.d.ts +0 -0
- package/lib/resources/prices.js +1 -0
- package/lib/{cjs/resources → resources}/promotion_rules.d.ts +0 -0
- package/lib/{esm/resources → resources}/promotion_rules.js +0 -0
- package/lib/{cjs/resources → resources}/promotions.d.ts +0 -0
- package/lib/{esm/resources → resources}/promotions.js +0 -0
- package/lib/{cjs/resources → resources}/refunds.d.ts +0 -0
- package/lib/{esm/resources → resources}/refunds.js +0 -0
- package/lib/{cjs/resources → resources}/return_line_items.d.ts +0 -0
- package/lib/resources/return_line_items.js +1 -0
- package/lib/{cjs/resources → resources}/returns.d.ts +0 -0
- package/lib/resources/returns.js +1 -0
- package/lib/{cjs/resources → resources}/shipments.d.ts +0 -0
- package/lib/resources/shipments.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_categories.d.ts +0 -0
- package/lib/resources/shipping_categories.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_methods.d.ts +0 -0
- package/lib/resources/shipping_methods.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_zones.d.ts +0 -0
- package/lib/resources/shipping_zones.js +1 -0
- package/lib/{cjs/resources → resources}/sku_list_items.d.ts +0 -0
- package/lib/resources/sku_list_items.js +1 -0
- package/lib/{cjs/resources → resources}/sku_list_promotion_rules.d.ts +0 -0
- package/lib/resources/sku_list_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/sku_lists.d.ts +0 -0
- package/lib/resources/sku_lists.js +1 -0
- package/lib/{cjs/resources → resources}/sku_options.d.ts +0 -0
- package/lib/resources/sku_options.js +1 -0
- package/lib/{cjs/resources → resources}/skus.d.ts +0 -0
- package/lib/resources/skus.js +1 -0
- package/lib/{cjs/resources → resources}/stock_items.d.ts +0 -0
- package/lib/resources/stock_items.js +1 -0
- package/lib/{cjs/resources → resources}/stock_line_items.d.ts +0 -0
- package/lib/{esm/resources → resources}/stock_line_items.js +0 -0
- package/lib/{cjs/resources → resources}/stock_locations.d.ts +0 -0
- package/lib/resources/stock_locations.js +1 -0
- package/lib/{cjs/resources → resources}/stock_transfers.d.ts +0 -0
- package/lib/resources/stock_transfers.js +1 -0
- package/lib/{cjs/resources → resources}/stripe_gateways.d.ts +0 -0
- package/lib/resources/stripe_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/stripe_payments.d.ts +0 -0
- package/lib/resources/stripe_payments.js +1 -0
- package/lib/{cjs/resources → resources}/tax_calculators.d.ts +0 -0
- package/lib/{esm/resources → resources}/tax_calculators.js +0 -0
- package/lib/{cjs/resources → resources}/tax_categories.d.ts +0 -0
- package/lib/resources/tax_categories.js +1 -0
- package/lib/{cjs/resources → resources}/tax_rules.d.ts +0 -0
- package/lib/resources/tax_rules.js +1 -0
- package/lib/{cjs/resources → resources}/taxjar_accounts.d.ts +0 -0
- package/lib/resources/taxjar_accounts.js +1 -0
- package/lib/{cjs/resources → resources}/transactions.d.ts +0 -0
- package/lib/{esm/resources → resources}/transactions.js +0 -0
- package/lib/{cjs/resources → resources}/voids.d.ts +0 -0
- package/lib/{esm/resources → resources}/voids.js +0 -0
- package/lib/{cjs/resources → resources}/webhooks.d.ts +0 -0
- package/lib/resources/webhooks.js +1 -0
- package/lib/{cjs/resources → resources}/wire_transfers.d.ts +0 -0
- package/lib/resources/wire_transfers.js +1 -0
- package/lib/{cjs/static.d.ts → static.d.ts} +0 -0
- package/lib/{esm/static.js → static.js} +0 -0
- package/lib/{cjs/util.d.ts → util.d.ts} +0 -0
- package/lib/{esm/util.js → util.js} +0 -0
- package/package.json +12 -13
- package/lib/cjs/api.js +0 -1
- package/lib/cjs/client.js +0 -1
- package/lib/cjs/commercelayer.js +0 -1
- package/lib/cjs/common.js +0 -1
- package/lib/cjs/config.js +0 -1
- package/lib/cjs/debug.js +0 -1
- package/lib/cjs/error.js +0 -1
- package/lib/cjs/index.js +0 -1
- package/lib/cjs/interceptor.js +0 -1
- package/lib/cjs/jsonapi.js +0 -1
- package/lib/cjs/model.js +0 -1
- package/lib/cjs/query.js +0 -1
- package/lib/cjs/resource.js +0 -1
- package/lib/cjs/resources/addresses.js +0 -1
- package/lib/cjs/resources/adjustments.js +0 -1
- package/lib/cjs/resources/adyen_gateways.js +0 -1
- package/lib/cjs/resources/adyen_payments.js +0 -1
- package/lib/cjs/resources/application.js +0 -1
- package/lib/cjs/resources/attachments.js +0 -1
- package/lib/cjs/resources/authorizations.js +0 -1
- package/lib/cjs/resources/avalara_accounts.js +0 -1
- package/lib/cjs/resources/billing_info_validation_rules.js +0 -1
- package/lib/cjs/resources/bing_geocoders.js +0 -1
- package/lib/cjs/resources/braintree_gateways.js +0 -1
- package/lib/cjs/resources/braintree_payments.js +0 -1
- package/lib/cjs/resources/bundles.js +0 -1
- package/lib/cjs/resources/captures.js +0 -1
- package/lib/cjs/resources/carrier_accounts.js +0 -1
- package/lib/cjs/resources/checkout_com_gateways.js +0 -1
- package/lib/cjs/resources/checkout_com_payments.js +0 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/cjs/resources/coupon_recipients.js +0 -1
- package/lib/cjs/resources/coupons.js +0 -1
- package/lib/cjs/resources/customer_addresses.js +0 -1
- package/lib/cjs/resources/customer_groups.js +0 -1
- package/lib/cjs/resources/customer_password_resets.js +0 -1
- package/lib/cjs/resources/customer_payment_sources.js +0 -1
- package/lib/cjs/resources/customer_subscriptions.js +0 -1
- package/lib/cjs/resources/customers.js +0 -1
- package/lib/cjs/resources/delivery_lead_times.js +0 -1
- package/lib/cjs/resources/event_callbacks.js +0 -1
- package/lib/cjs/resources/external_gateways.js +0 -1
- package/lib/cjs/resources/external_payments.js +0 -1
- package/lib/cjs/resources/external_promotions.js +0 -1
- package/lib/cjs/resources/external_tax_calculators.js +0 -1
- package/lib/cjs/resources/fixed_amount_promotions.js +0 -1
- package/lib/cjs/resources/fixed_price_promotions.js +0 -1
- package/lib/cjs/resources/free_gift_promotions.js +0 -1
- package/lib/cjs/resources/free_shipping_promotions.js +0 -1
- package/lib/cjs/resources/geocoders.js +0 -1
- package/lib/cjs/resources/gift_card_recipients.js +0 -1
- package/lib/cjs/resources/gift_cards.js +0 -1
- package/lib/cjs/resources/google_geocoders.js +0 -1
- package/lib/cjs/resources/imports.js +0 -1
- package/lib/cjs/resources/in_stock_subscriptions.js +0 -1
- package/lib/cjs/resources/inventory_models.js +0 -1
- package/lib/cjs/resources/inventory_return_locations.js +0 -1
- package/lib/cjs/resources/inventory_stock_locations.js +0 -1
- package/lib/cjs/resources/klarna_gateways.js +0 -1
- package/lib/cjs/resources/klarna_payments.js +0 -1
- package/lib/cjs/resources/line_item_options.js +0 -1
- package/lib/cjs/resources/line_items.js +0 -1
- package/lib/cjs/resources/manual_gateways.js +0 -1
- package/lib/cjs/resources/manual_tax_calculators.js +0 -1
- package/lib/cjs/resources/markets.js +0 -1
- package/lib/cjs/resources/merchants.js +0 -1
- package/lib/cjs/resources/order_amount_promotion_rules.js +0 -1
- package/lib/cjs/resources/order_copies.js +0 -1
- package/lib/cjs/resources/order_subscriptions.js +0 -1
- package/lib/cjs/resources/order_validation_rules.js +0 -1
- package/lib/cjs/resources/orders.js +0 -1
- package/lib/cjs/resources/organization.js +0 -1
- package/lib/cjs/resources/packages.js +0 -1
- package/lib/cjs/resources/parcel_line_items.js +0 -1
- package/lib/cjs/resources/parcels.js +0 -1
- package/lib/cjs/resources/payment_gateways.js +0 -1
- package/lib/cjs/resources/payment_methods.js +0 -1
- package/lib/cjs/resources/paypal_gateways.js +0 -1
- package/lib/cjs/resources/paypal_payments.js +0 -1
- package/lib/cjs/resources/percentage_discount_promotions.js +0 -1
- package/lib/cjs/resources/price_lists.js +0 -1
- package/lib/cjs/resources/prices.js +0 -1
- package/lib/cjs/resources/promotion_rules.js +0 -1
- package/lib/cjs/resources/promotions.js +0 -1
- package/lib/cjs/resources/refunds.js +0 -1
- package/lib/cjs/resources/return_line_items.js +0 -1
- package/lib/cjs/resources/returns.js +0 -1
- package/lib/cjs/resources/shipments.js +0 -1
- package/lib/cjs/resources/shipping_categories.js +0 -1
- package/lib/cjs/resources/shipping_methods.js +0 -1
- package/lib/cjs/resources/shipping_zones.js +0 -1
- package/lib/cjs/resources/sku_list_items.js +0 -1
- package/lib/cjs/resources/sku_list_promotion_rules.js +0 -1
- package/lib/cjs/resources/sku_lists.js +0 -1
- package/lib/cjs/resources/sku_options.js +0 -1
- package/lib/cjs/resources/skus.js +0 -1
- package/lib/cjs/resources/stock_items.js +0 -1
- package/lib/cjs/resources/stock_line_items.js +0 -1
- package/lib/cjs/resources/stock_locations.js +0 -1
- package/lib/cjs/resources/stock_transfers.js +0 -1
- package/lib/cjs/resources/stripe_gateways.js +0 -1
- package/lib/cjs/resources/stripe_payments.js +0 -1
- package/lib/cjs/resources/tax_calculators.js +0 -1
- package/lib/cjs/resources/tax_categories.js +0 -1
- package/lib/cjs/resources/tax_rules.js +0 -1
- package/lib/cjs/resources/taxjar_accounts.js +0 -1
- package/lib/cjs/resources/transactions.js +0 -1
- package/lib/cjs/resources/voids.js +0 -1
- package/lib/cjs/resources/webhooks.js +0 -1
- package/lib/cjs/resources/wire_transfers.js +0 -1
- package/lib/cjs/static.js +0 -1
- package/lib/cjs/util.js +0 -1
- package/lib/esm/api.d.ts +0 -103
- package/lib/esm/client.d.ts +0 -32
- package/lib/esm/client.js +0 -1
- package/lib/esm/commercelayer.d.ts +0 -122
- package/lib/esm/common.d.ts +0 -4
- package/lib/esm/common.js +0 -1
- package/lib/esm/config.d.ts +0 -11
- package/lib/esm/debug.d.ts +0 -3
- package/lib/esm/error.d.ts +0 -26
- package/lib/esm/error.js +0 -1
- package/lib/esm/index.d.ts +0 -7
- package/lib/esm/interceptor.d.ts +0 -19
- package/lib/esm/jsonapi.d.ts +0 -5
- package/lib/esm/jsonapi.js +0 -1
- package/lib/esm/model.d.ts +0 -101
- package/lib/esm/query.d.ts +0 -23
- package/lib/esm/resource.d.ts +0 -76
- package/lib/esm/resource.js +0 -1
- package/lib/esm/resources/addresses.d.ts +0 -88
- package/lib/esm/resources/addresses.js +0 -1
- package/lib/esm/resources/adjustments.d.ts +0 -35
- package/lib/esm/resources/adjustments.js +0 -1
- package/lib/esm/resources/adyen_gateways.d.ts +0 -47
- package/lib/esm/resources/adyen_gateways.js +0 -1
- package/lib/esm/resources/adyen_payments.d.ts +0 -44
- package/lib/esm/resources/adyen_payments.js +0 -1
- package/lib/esm/resources/application.d.ts +0 -21
- package/lib/esm/resources/attachments.d.ts +0 -156
- package/lib/esm/resources/attachments.js +0 -1
- package/lib/esm/resources/authorizations.d.ts +0 -57
- package/lib/esm/resources/authorizations.js +0 -1
- package/lib/esm/resources/avalara_accounts.d.ts +0 -52
- package/lib/esm/resources/avalara_accounts.js +0 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +0 -32
- package/lib/esm/resources/billing_info_validation_rules.js +0 -1
- package/lib/esm/resources/bing_geocoders.d.ts +0 -35
- package/lib/esm/resources/bing_geocoders.js +0 -1
- package/lib/esm/resources/braintree_gateways.d.ts +0 -56
- package/lib/esm/resources/braintree_gateways.js +0 -1
- package/lib/esm/resources/braintree_payments.d.ts +0 -47
- package/lib/esm/resources/braintree_payments.js +0 -1
- package/lib/esm/resources/bundles.d.ts +0 -74
- package/lib/esm/resources/bundles.js +0 -1
- package/lib/esm/resources/captures.d.ts +0 -48
- package/lib/esm/resources/captures.js +0 -1
- package/lib/esm/resources/carrier_accounts.d.ts +0 -26
- package/lib/esm/resources/checkout_com_gateways.d.ts +0 -45
- package/lib/esm/resources/checkout_com_gateways.js +0 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +0 -50
- package/lib/esm/resources/checkout_com_payments.js +0 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +0 -59
- package/lib/esm/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/esm/resources/coupon_recipients.d.ts +0 -44
- package/lib/esm/resources/coupon_recipients.js +0 -1
- package/lib/esm/resources/coupons.d.ts +0 -45
- package/lib/esm/resources/coupons.js +0 -1
- package/lib/esm/resources/customer_addresses.d.ts +0 -41
- package/lib/esm/resources/customer_addresses.js +0 -1
- package/lib/esm/resources/customer_groups.d.ts +0 -36
- package/lib/esm/resources/customer_groups.js +0 -1
- package/lib/esm/resources/customer_password_resets.d.ts +0 -33
- package/lib/esm/resources/customer_password_resets.js +0 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +0 -70
- package/lib/esm/resources/customer_payment_sources.js +0 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +0 -28
- package/lib/esm/resources/customer_subscriptions.js +0 -1
- package/lib/esm/resources/customers.d.ts +0 -60
- package/lib/esm/resources/customers.js +0 -1
- package/lib/esm/resources/delivery_lead_times.d.ts +0 -51
- package/lib/esm/resources/delivery_lead_times.js +0 -1
- package/lib/esm/resources/event_callbacks.d.ts +0 -24
- package/lib/esm/resources/external_gateways.d.ts +0 -49
- package/lib/esm/resources/external_gateways.js +0 -1
- package/lib/esm/resources/external_payments.d.ts +0 -43
- package/lib/esm/resources/external_payments.js +0 -1
- package/lib/esm/resources/external_promotions.d.ts +0 -86
- package/lib/esm/resources/external_promotions.js +0 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +0 -44
- package/lib/esm/resources/external_tax_calculators.js +0 -1
- package/lib/esm/resources/fixed_amount_promotions.d.ts +0 -88
- package/lib/esm/resources/fixed_amount_promotions.js +0 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +0 -99
- package/lib/esm/resources/fixed_price_promotions.js +0 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +0 -97
- package/lib/esm/resources/free_gift_promotions.js +0 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +0 -83
- package/lib/esm/resources/free_shipping_promotions.js +0 -1
- package/lib/esm/resources/geocoders.d.ts +0 -24
- package/lib/esm/resources/gift_card_recipients.d.ts +0 -44
- package/lib/esm/resources/gift_card_recipients.js +0 -1
- package/lib/esm/resources/gift_cards.d.ts +0 -82
- package/lib/esm/resources/gift_cards.js +0 -1
- package/lib/esm/resources/google_geocoders.d.ts +0 -35
- package/lib/esm/resources/google_geocoders.js +0 -1
- package/lib/esm/resources/imports.d.ts +0 -40
- package/lib/esm/resources/imports.js +0 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +0 -59
- package/lib/esm/resources/in_stock_subscriptions.js +0 -1
- package/lib/esm/resources/inventory_models.d.ts +0 -42
- package/lib/esm/resources/inventory_models.js +0 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +0 -43
- package/lib/esm/resources/inventory_return_locations.js +0 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +0 -46
- package/lib/esm/resources/inventory_stock_locations.js +0 -1
- package/lib/esm/resources/klarna_gateways.d.ts +0 -44
- package/lib/esm/resources/klarna_gateways.js +0 -1
- package/lib/esm/resources/klarna_payments.d.ts +0 -41
- package/lib/esm/resources/klarna_payments.js +0 -1
- package/lib/esm/resources/line_item_options.d.ts +0 -57
- package/lib/esm/resources/line_item_options.js +0 -1
- package/lib/esm/resources/line_items.d.ts +0 -125
- package/lib/esm/resources/line_items.js +0 -1
- package/lib/esm/resources/manual_gateways.d.ts +0 -33
- package/lib/esm/resources/manual_gateways.js +0 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +0 -49
- package/lib/esm/resources/manual_tax_calculators.js +0 -1
- package/lib/esm/resources/markets.d.ts +0 -81
- package/lib/esm/resources/markets.js +0 -1
- package/lib/esm/resources/merchants.d.ts +0 -38
- package/lib/esm/resources/merchants.js +0 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +0 -56
- package/lib/esm/resources/order_amount_promotion_rules.js +0 -1
- package/lib/esm/resources/order_copies.d.ts +0 -45
- package/lib/esm/resources/order_copies.js +0 -1
- package/lib/esm/resources/order_subscriptions.d.ts +0 -67
- package/lib/esm/resources/order_subscriptions.js +0 -1
- package/lib/esm/resources/order_validation_rules.d.ts +0 -20
- package/lib/esm/resources/orders.d.ts +0 -271
- package/lib/esm/resources/orders.js +0 -1
- package/lib/esm/resources/organization.d.ts +0 -32
- package/lib/esm/resources/packages.d.ts +0 -56
- package/lib/esm/resources/packages.js +0 -1
- package/lib/esm/resources/parcel_line_items.d.ts +0 -49
- package/lib/esm/resources/parcel_line_items.js +0 -1
- package/lib/esm/resources/parcels.d.ts +0 -108
- package/lib/esm/resources/parcels.js +0 -1
- package/lib/esm/resources/payment_gateways.d.ts +0 -21
- package/lib/esm/resources/payment_methods.d.ts +0 -59
- package/lib/esm/resources/payment_methods.js +0 -1
- package/lib/esm/resources/paypal_gateways.d.ts +0 -39
- package/lib/esm/resources/paypal_gateways.js +0 -1
- package/lib/esm/resources/paypal_payments.d.ts +0 -47
- package/lib/esm/resources/paypal_payments.js +0 -1
- package/lib/esm/resources/percentage_discount_promotions.d.ts +0 -97
- package/lib/esm/resources/percentage_discount_promotions.js +0 -1
- package/lib/esm/resources/price_lists.d.ts +0 -39
- package/lib/esm/resources/price_lists.js +0 -1
- package/lib/esm/resources/prices.d.ts +0 -57
- package/lib/esm/resources/prices.js +0 -1
- package/lib/esm/resources/promotion_rules.d.ts +0 -24
- package/lib/esm/resources/promotions.d.ts +0 -41
- package/lib/esm/resources/refunds.d.ts +0 -34
- package/lib/esm/resources/return_line_items.d.ts +0 -49
- package/lib/esm/resources/return_line_items.js +0 -1
- package/lib/esm/resources/returns.d.ts +0 -72
- package/lib/esm/resources/returns.js +0 -1
- package/lib/esm/resources/shipments.d.ts +0 -89
- package/lib/esm/resources/shipments.js +0 -1
- package/lib/esm/resources/shipping_categories.d.ts +0 -33
- package/lib/esm/resources/shipping_categories.js +0 -1
- package/lib/esm/resources/shipping_methods.d.ts +0 -74
- package/lib/esm/resources/shipping_methods.js +0 -1
- package/lib/esm/resources/shipping_zones.d.ts +0 -48
- package/lib/esm/resources/shipping_zones.js +0 -1
- package/lib/esm/resources/sku_list_items.d.ts +0 -47
- package/lib/esm/resources/sku_list_items.js +0 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +0 -68
- package/lib/esm/resources/sku_list_promotion_rules.js +0 -1
- package/lib/esm/resources/sku_lists.d.ts +0 -49
- package/lib/esm/resources/sku_lists.js +0 -1
- package/lib/esm/resources/sku_options.d.ts +0 -56
- package/lib/esm/resources/sku_options.js +0 -1
- package/lib/esm/resources/skus.d.ts +0 -78
- package/lib/esm/resources/skus.js +0 -1
- package/lib/esm/resources/stock_items.d.ts +0 -49
- package/lib/esm/resources/stock_items.js +0 -1
- package/lib/esm/resources/stock_line_items.d.ts +0 -29
- package/lib/esm/resources/stock_locations.d.ts +0 -57
- package/lib/esm/resources/stock_locations.js +0 -1
- package/lib/esm/resources/stock_transfers.d.ts +0 -71
- package/lib/esm/resources/stock_transfers.js +0 -1
- package/lib/esm/resources/stripe_gateways.d.ts +0 -38
- package/lib/esm/resources/stripe_gateways.js +0 -1
- package/lib/esm/resources/stripe_payments.d.ts +0 -42
- package/lib/esm/resources/stripe_payments.js +0 -1
- package/lib/esm/resources/tax_calculators.d.ts +0 -27
- package/lib/esm/resources/tax_categories.d.ts +0 -59
- package/lib/esm/resources/tax_categories.js +0 -1
- package/lib/esm/resources/tax_rules.d.ts +0 -69
- package/lib/esm/resources/tax_rules.js +0 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +0 -43
- package/lib/esm/resources/taxjar_accounts.js +0 -1
- package/lib/esm/resources/transactions.d.ts +0 -31
- package/lib/esm/resources/voids.d.ts +0 -34
- package/lib/esm/resources/webhooks.d.ts +0 -42
- package/lib/esm/resources/webhooks.js +0 -1
- package/lib/esm/resources/wire_transfers.d.ts +0 -32
- package/lib/esm/resources/wire_transfers.js +0 -1
- package/lib/esm/static.d.ts +0 -6
- package/lib/esm/util.d.ts +0 -3
- package/lib/tsconfig.esm.tsbuildinfo +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
package/lib/cjs/interceptor.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
package/lib/cjs/jsonapi.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.normalize=exports.denormalize=void 0;const common_1=require("./common"),debug_1=__importDefault(require("./debug")),debug=(0,debug_1.default)(),denormalize=e=>{let t;e.links&&delete e.links;const r=e.data,s=e.included;return Array.isArray(r)?t=r.map(i=>denormalizeResource(i,s)):t=denormalizeResource(r,s),t};exports.denormalize=denormalize;const findIncluded=(e,t=[])=>t.find(r=>e.id===r.id&&e.type===r.type)||e,denormalizeResource=(e,t)=>{debug("denormalize resource: %O, %o",e,t||{});const r=Object.assign({id:e.id,type:e.type},e.attributes);return e.relationships&&Object.keys(e.relationships).forEach(s=>{const i=e.relationships[s].data;i?Array.isArray(i)?r[s]=i.map(o=>denormalizeResource(findIncluded(o,t),t)):r[s]=denormalizeResource(findIncluded(i,t),t):i===null&&(r[s]=null)}),debug("denormalized resource: %O",r),r},normalize=e=>{debug("normalize resource: %O",e);const t={},r={};for(const i in e){if(["type","id"].includes(i))continue;const o=e[i];o&&(0,common_1.isResourceType)(o)&&o.id===null?r[i]={data:null}:o&&((0,common_1.isResourceId)(o)||Array.isArray(o)&&(0,common_1.isResourceId)(o[0]))?r[i]={data:o}:t[i]=o}const s={type:e.type,attributes:t,relationships:r};return(0,common_1.isResourceId)(e)&&(s.id=e.id),debug("normalized resource: %O",s),s};exports.normalize=normalize;
|
package/lib/cjs/model.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
package/lib/cjs/query.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.generateQueryStringParams=void 0;const debug_1=__importDefault(require("./debug")),debug=(0,debug_1.default)(),isParamsList=e=>e.filters||e.pageNumber||e.pageSize||e.sort,generateQueryStringParams=(e,r)=>{debug("generate query string params: %O, %O",e,r);const t={};return e&&(e.include&&(t.include=e.include.join(",")),e.fields&&(Array.isArray(e.fields)&&(e.fields={[r.type]:e.fields}),Object.entries(e.fields).forEach(([i,s])=>{t[`fields[${i}]`]=s.join(",")})),isParamsList(e)&&(e.sort&&(Array.isArray(e.sort)?t.sort=e.sort.join(","):t.sort=Object.entries(e.sort).map(([i,s])=>`${s==="desc"?"-":""}${i}`).join(",")),e.pageNumber&&(t["page[number]"]=String(e.pageNumber)),e.pageSize&&(t["page[size]"]=String(e.pageSize)),e.filters&&Object.entries(e.filters).forEach(([i,s])=>{t[`filter[q][${i}]`]=String(s)})),debug("query string params: %O",t)),t};exports.generateQueryStringParams=generateQueryStringParams;
|
package/lib/cjs/resource.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";var __classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(i,e,r,t,a){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?i!==e||!a:!e.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(i,r):a?a.value=r:e.set(i,r),r},__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(i,e,r,t){if(r==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?i!==e||!t:!e.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?t:r==="a"?t.call(i):t?t.value:e.get(i)},__importDefault=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},_ResourceAdapter_client,_ResourceAdapter_config;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApiResource=void 0;const client_1=__importDefault(require("./client")),jsonapi_1=require("./jsonapi"),query_1=require("./query"),config_1=__importDefault(require("./config")),debug_1=__importDefault(require("./debug")),debug=(0,debug_1.default)();class ListResponse extends Array{constructor(e,r){super(...r||[]);this.meta=e}first(){return this.length?this[0]:void 0}last(){return this.length?this[this.length-1]:void 0}get(e){return this.length&&e>=0?this[e]:void 0}}class ResourceAdapter{constructor(e){_ResourceAdapter_client.set(this,void 0),_ResourceAdapter_config.set(this,{}),__classPrivateFieldSet(this,_ResourceAdapter_client,client_1.default.create(e),"f"),this.localConfig(e)}get interceptors(){return __classPrivateFieldGet(this,_ResourceAdapter_client,"f").interceptors}localConfig(e){}config(e){debug("config %o",e),this.localConfig(e),__classPrivateFieldGet(this,_ResourceAdapter_client,"f").config(e)}async singleton(e,r,t){debug("singleton: %o, %O, %O",e,r||{},t||{});const a=(0,query_1.generateQueryStringParams)(r,e);(t==null?void 0:t.params)&&Object.assign(a,t==null?void 0:t.params);const s=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("get",`${e.type}`,void 0,Object.assign(Object.assign({},t),{params:a}));return(0,jsonapi_1.denormalize)(s)}async retrieve(e,r,t){debug("retrieve: %o, %O, %O",e,r||{},t||{});const a=(0,query_1.generateQueryStringParams)(r,e);(t==null?void 0:t.params)&&Object.assign(a,t==null?void 0:t.params);const s=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("get",`${e.type}/${e.id}`,void 0,Object.assign(Object.assign({},t),{params:a}));return(0,jsonapi_1.denormalize)(s)}async list(e,r,t){var a,s;debug("list: %o, %O, %O",e,r||{},t||{});const n=(0,query_1.generateQueryStringParams)(r,e);(t==null?void 0:t.params)&&Object.assign(n,t==null?void 0:t.params);const o=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("get",`${e.type}`,void 0,Object.assign(Object.assign({},t),{params:n})),u=(0,jsonapi_1.denormalize)(o),c={pageCount:Number((a=o.meta)===null||a===void 0?void 0:a.page_count),recordCount:Number((s=o.meta)===null||s===void 0?void 0:s.record_count),currentPage:(r==null?void 0:r.pageNumber)||config_1.default.default.pageNumber,recordsPerPage:(r==null?void 0:r.pageSize)||config_1.default.default.pageSize};return new ListResponse(c,u)}async create(e,r,t){debug("create: %o, %O, %O",e,r||{},t||{});const a=(0,query_1.generateQueryStringParams)(r,e);(t==null?void 0:t.params)&&Object.assign(a,t==null?void 0:t.params);const s=(0,jsonapi_1.normalize)(e),n=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("post",e.type,s,Object.assign(Object.assign({},t),{params:a}));return(0,jsonapi_1.denormalize)(n)}async update(e,r,t){debug("update: %o, %O, %O",e,r||{},t||{});const a=(0,query_1.generateQueryStringParams)(r,e);(t==null?void 0:t.params)&&Object.assign(a,t==null?void 0:t.params);const s=(0,jsonapi_1.normalize)(e),n=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("patch",`${e.type}/${e.id}`,s,Object.assign(Object.assign({},t),{params:a}));return(0,jsonapi_1.denormalize)(n)}async delete(e,r){debug("delete: %o, %O",e,r||{}),await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("delete",`${e.type}/${e.id}`,void 0,r)}async fetch(e,r,t,a){var s,n;debug("fetch: %o, %O, %O",r,t||{},a||{});const o=(0,query_1.generateQueryStringParams)(t,e);(a==null?void 0:a.params)&&Object.assign(o,a==null?void 0:a.params);const u=await __classPrivateFieldGet(this,_ResourceAdapter_client,"f").request("get",r,void 0,Object.assign(Object.assign({},a),{params:o})),c=(0,jsonapi_1.denormalize)(u);if(Array.isArray(c)){const l=t,d={pageCount:Number((s=u.meta)===null||s===void 0?void 0:s.page_count),recordCount:Number((n=u.meta)===null||n===void 0?void 0:n.record_count),currentPage:(l==null?void 0:l.pageNumber)||config_1.default.default.pageNumber,recordsPerPage:(l==null?void 0:l.pageSize)||config_1.default.default.pageSize};return new ListResponse(d,c)}else return c}}_ResourceAdapter_client=new WeakMap,_ResourceAdapter_config=new WeakMap;class ApiResource{constructor(e){debug("new resource instance: %s",this.type()),this.resources=e}}exports.ApiResource=ApiResource,exports.default=ResourceAdapter;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Addresses extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Addresses.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Addresses.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Addresses.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Addresses.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Addresses.TYPE,id:e},t)}async geocoder(e,t,r){return this.resources.fetch({type:"geocoders"},`addresses/${e}/geocoder`,t,r)}isAddress(e){return e.type&&e.type===Addresses.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Addresses.TYPE}:{id:e.id,type:Addresses.TYPE}}type(){return Addresses.TYPE}}Addresses.TYPE="addresses",exports.default=Addresses;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Adjustments extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Adjustments.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:Adjustments.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:Adjustments.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:Adjustments.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:Adjustments.TYPE,id:e},r)}isAdjustment(e){return e.type&&e.type===Adjustments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Adjustments.TYPE}:{id:e.id,type:Adjustments.TYPE}}type(){return Adjustments.TYPE}}Adjustments.TYPE="adjustments",exports.default=Adjustments;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class AdyenGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:AdyenGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:AdyenGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:AdyenGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:AdyenGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:AdyenGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`adyen_gateways/${e}/payment_methods`,t,s)}async adyen_payments(e,t,s){return this.resources.fetch({type:"adyen_payments"},`adyen_gateways/${e}/adyen_payments`,t,s)}isAdyenGateway(e){return e.type&&e.type===AdyenGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:AdyenGateways.TYPE}:{id:e.id,type:AdyenGateways.TYPE}}type(){return AdyenGateways.TYPE}}AdyenGateways.TYPE="adyen_gateways",exports.default=AdyenGateways;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class AdyenPayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:AdyenPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:AdyenPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:AdyenPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:AdyenPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:AdyenPayments.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`adyen_payments/${e}/order`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`adyen_payments/${e}/payment_gateway`,t,r)}isAdyenPayment(e){return e.type&&e.type===AdyenPayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:AdyenPayments.TYPE}:{id:e.id,type:AdyenPayments.TYPE}}type(){return AdyenPayments.TYPE}}AdyenPayments.TYPE="adyen_payments",exports.default=AdyenPayments;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Applications extends resource_1.ApiResource{async retrieve(e,r){return this.resources.singleton({type:Applications.TYPE},e,r)}isApplication(e){return e.type&&e.type===Applications.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Applications.TYPE}:{id:e.id,type:Applications.TYPE}}type(){return Applications.TYPE}}Applications.TYPE="application",exports.default=Applications;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Attachments extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Attachments.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Attachments.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:Attachments.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Attachments.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:Attachments.TYPE,id:e},r)}isAttachment(e){return e.type&&e.type===Attachments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Attachments.TYPE}:{id:e.id,type:Attachments.TYPE}}type(){return Attachments.TYPE}}Attachments.TYPE="attachments",exports.default=Attachments;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Authorizations extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Authorizations.TYPE},e,r)}async retrieve(e,r,s){return this.resources.retrieve({type:Authorizations.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Authorizations.TYPE}),r,s)}async order(e,r,s){return this.resources.fetch({type:"orders"},`authorizations/${e}/order`,r,s)}async captures(e,r,s){return this.resources.fetch({type:"captures"},`authorizations/${e}/captures`,r,s)}async voids(e,r,s){return this.resources.fetch({type:"voids"},`authorizations/${e}/voids`,r,s)}isAuthorization(e){return e.type&&e.type===Authorizations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Authorizations.TYPE}:{id:e.id,type:Authorizations.TYPE}}type(){return Authorizations.TYPE}}Authorizations.TYPE="authorizations",exports.default=Authorizations;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class AvalaraAccounts extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:AvalaraAccounts.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:AvalaraAccounts.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:AvalaraAccounts.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:AvalaraAccounts.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:AvalaraAccounts.TYPE,id:e},t)}async tax_categories(e,t,s){return this.resources.fetch({type:"tax_categories"},`avalara_accounts/${e}/tax_categories`,t,s)}async markets(e,t,s){return this.resources.fetch({type:"markets"},`avalara_accounts/${e}/markets`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`avalara_accounts/${e}/attachments`,t,s)}isAvalaraAccount(e){return e.type&&e.type===AvalaraAccounts.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:AvalaraAccounts.TYPE}:{id:e.id,type:AvalaraAccounts.TYPE}}type(){return AvalaraAccounts.TYPE}}AvalaraAccounts.TYPE="avalara_accounts",exports.default=AvalaraAccounts;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class BillingInfoValidationRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:BillingInfoValidationRules.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:BillingInfoValidationRules.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:BillingInfoValidationRules.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:BillingInfoValidationRules.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:BillingInfoValidationRules.TYPE,id:e},r)}async market(e,r,t){return this.resources.fetch({type:"markets"},`billing_info_validation_rules/${e}/market`,r,t)}isBillingInfoValidationRule(e){return e.type&&e.type===BillingInfoValidationRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:BillingInfoValidationRules.TYPE}:{id:e.id,type:BillingInfoValidationRules.TYPE}}type(){return BillingInfoValidationRules.TYPE}}BillingInfoValidationRules.TYPE="billing_info_validation_rules",exports.default=BillingInfoValidationRules;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class BingGeocoders extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:BingGeocoders.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:BingGeocoders.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:BingGeocoders.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:BingGeocoders.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:BingGeocoders.TYPE,id:e},t)}async addresses(e,t,s){return this.resources.fetch({type:"addresses"},`bing_geocoders/${e}/addresses`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`bing_geocoders/${e}/attachments`,t,s)}isBingGeocoder(e){return e.type&&e.type===BingGeocoders.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:BingGeocoders.TYPE}:{id:e.id,type:BingGeocoders.TYPE}}type(){return BingGeocoders.TYPE}}BingGeocoders.TYPE="bing_geocoders",exports.default=BingGeocoders;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class BraintreeGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:BraintreeGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:BraintreeGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:BraintreeGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:BraintreeGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:BraintreeGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`braintree_gateways/${e}/payment_methods`,t,s)}async braintree_payments(e,t,s){return this.resources.fetch({type:"braintree_payments"},`braintree_gateways/${e}/braintree_payments`,t,s)}isBraintreeGateway(e){return e.type&&e.type===BraintreeGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:BraintreeGateways.TYPE}:{id:e.id,type:BraintreeGateways.TYPE}}type(){return BraintreeGateways.TYPE}}BraintreeGateways.TYPE="braintree_gateways",exports.default=BraintreeGateways;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class BraintreePayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:BraintreePayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:BraintreePayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:BraintreePayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:BraintreePayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:BraintreePayments.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`braintree_payments/${e}/order`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`braintree_payments/${e}/payment_gateway`,t,r)}isBraintreePayment(e){return e.type&&e.type===BraintreePayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:BraintreePayments.TYPE}:{id:e.id,type:BraintreePayments.TYPE}}type(){return BraintreePayments.TYPE}}BraintreePayments.TYPE="braintree_payments",exports.default=BraintreePayments;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Bundles extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Bundles.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Bundles.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:Bundles.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Bundles.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:Bundles.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`bundles/${e}/market`,t,s)}async sku_list(e,t,s){return this.resources.fetch({type:"sku_lists"},`bundles/${e}/sku_list`,t,s)}async skus(e,t,s){return this.resources.fetch({type:"skus"},`bundles/${e}/skus`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`bundles/${e}/attachments`,t,s)}isBundle(e){return e.type&&e.type===Bundles.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Bundles.TYPE}:{id:e.id,type:Bundles.TYPE}}type(){return Bundles.TYPE}}Bundles.TYPE="bundles",exports.default=Bundles;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Captures extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Captures.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Captures.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:Captures.TYPE}),r,t)}async order(e,r,t){return this.resources.fetch({type:"orders"},`captures/${e}/order`,r,t)}async reference_authorization(e,r,t){return this.resources.fetch({type:"authorizations"},`captures/${e}/reference_authorization`,r,t)}async refunds(e,r,t){return this.resources.fetch({type:"refunds"},`captures/${e}/refunds`,r,t)}isCapture(e){return e.type&&e.type===Captures.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Captures.TYPE}:{id:e.id,type:Captures.TYPE}}type(){return Captures.TYPE}}Captures.TYPE="captures",exports.default=Captures;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CarrierAccounts extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CarrierAccounts.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:CarrierAccounts.TYPE,id:e},t,r)}async market(e,t,r){return this.resources.fetch({type:"markets"},`carrier_accounts/${e}/market`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`carrier_accounts/${e}/attachments`,t,r)}isCarrierAccount(e){return e.type&&e.type===CarrierAccounts.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CarrierAccounts.TYPE}:{id:e.id,type:CarrierAccounts.TYPE}}type(){return CarrierAccounts.TYPE}}CarrierAccounts.TYPE="carrier_accounts",exports.default=CarrierAccounts;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CheckoutComGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CheckoutComGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CheckoutComGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:CheckoutComGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CheckoutComGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:CheckoutComGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`checkout_com_gateways/${e}/payment_methods`,t,s)}async checkout_com_payments(e,t,s){return this.resources.fetch({type:"checkout_com_payments"},`checkout_com_gateways/${e}/checkout_com_payments`,t,s)}isCheckoutComGateway(e){return e.type&&e.type===CheckoutComGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CheckoutComGateways.TYPE}:{id:e.id,type:CheckoutComGateways.TYPE}}type(){return CheckoutComGateways.TYPE}}CheckoutComGateways.TYPE="checkout_com_gateways",exports.default=CheckoutComGateways;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CheckoutComPayments extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:CheckoutComPayments.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:CheckoutComPayments.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:CheckoutComPayments.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:CheckoutComPayments.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:CheckoutComPayments.TYPE,id:e},r)}async order(e,r,t){return this.resources.fetch({type:"orders"},`checkout_com_payments/${e}/order`,r,t)}async payment_gateway(e,r,t){return this.resources.fetch({type:"payment_gateways"},`checkout_com_payments/${e}/payment_gateway`,r,t)}isCheckoutComPayment(e){return e.type&&e.type===CheckoutComPayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CheckoutComPayments.TYPE}:{id:e.id,type:CheckoutComPayments.TYPE}}type(){return CheckoutComPayments.TYPE}}CheckoutComPayments.TYPE="checkout_com_payments",exports.default=CheckoutComPayments;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CouponCodesPromotionRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CouponCodesPromotionRules.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CouponCodesPromotionRules.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CouponCodesPromotionRules.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CouponCodesPromotionRules.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CouponCodesPromotionRules.TYPE,id:e},t)}async coupons(e,t,r){return this.resources.fetch({type:"coupons"},`coupon_codes_promotion_rules/${e}/coupons`,t,r)}isCouponCodesPromotionRule(e){return e.type&&e.type===CouponCodesPromotionRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CouponCodesPromotionRules.TYPE}:{id:e.id,type:CouponCodesPromotionRules.TYPE}}type(){return CouponCodesPromotionRules.TYPE}}CouponCodesPromotionRules.TYPE="coupon_codes_promotion_rules",exports.default=CouponCodesPromotionRules;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CouponRecipients extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CouponRecipients.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CouponRecipients.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CouponRecipients.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CouponRecipients.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CouponRecipients.TYPE,id:e},t)}async customer(e,t,r){return this.resources.fetch({type:"customers"},`coupon_recipients/${e}/customer`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`coupon_recipients/${e}/attachments`,t,r)}isCouponRecipient(e){return e.type&&e.type===CouponRecipients.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CouponRecipients.TYPE}:{id:e.id,type:CouponRecipients.TYPE}}type(){return CouponRecipients.TYPE}}CouponRecipients.TYPE="coupon_recipients",exports.default=CouponRecipients;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Coupons extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Coupons.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Coupons.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Coupons.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Coupons.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Coupons.TYPE,id:e},t)}async promotion_rule(e,t,r){return this.resources.fetch({type:"coupon_codes_promotion_rules"},`coupons/${e}/promotion_rule`,t,r)}isCoupon(e){return e.type&&e.type===Coupons.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Coupons.TYPE}:{id:e.id,type:Coupons.TYPE}}type(){return Coupons.TYPE}}Coupons.TYPE="coupons",exports.default=Coupons;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerAddresses extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerAddresses.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerAddresses.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CustomerAddresses.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerAddresses.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CustomerAddresses.TYPE,id:e},t)}async customer(e,t,r){return this.resources.fetch({type:"customers"},`customer_addresses/${e}/customer`,t,r)}async address(e,t,r){return this.resources.fetch({type:"addresses"},`customer_addresses/${e}/address`,t,r)}isCustomerAddress(e){return e.type&&e.type===CustomerAddresses.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerAddresses.TYPE}:{id:e.id,type:CustomerAddresses.TYPE}}type(){return CustomerAddresses.TYPE}}CustomerAddresses.TYPE="customer_addresses",exports.default=CustomerAddresses;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerGroups extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerGroups.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerGroups.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:CustomerGroups.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerGroups.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:CustomerGroups.TYPE,id:e},t)}async customers(e,t,s){return this.resources.fetch({type:"customers"},`customer_groups/${e}/customers`,t,s)}async markets(e,t,s){return this.resources.fetch({type:"markets"},`customer_groups/${e}/markets`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`customer_groups/${e}/attachments`,t,s)}isCustomerGroup(e){return e.type&&e.type===CustomerGroups.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerGroups.TYPE}:{id:e.id,type:CustomerGroups.TYPE}}type(){return CustomerGroups.TYPE}}CustomerGroups.TYPE="customer_groups",exports.default=CustomerGroups;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerPasswordResets extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerPasswordResets.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerPasswordResets.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CustomerPasswordResets.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerPasswordResets.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CustomerPasswordResets.TYPE,id:e},t)}async customer(e,t,r){return this.resources.fetch({type:"customers"},`customer_password_resets/${e}/customer`,t,r)}isCustomerPasswordReset(e){return e.type&&e.type===CustomerPasswordResets.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerPasswordResets.TYPE}:{id:e.id,type:CustomerPasswordResets.TYPE}}type(){return CustomerPasswordResets.TYPE}}CustomerPasswordResets.TYPE="customer_password_resets",exports.default=CustomerPasswordResets;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerPaymentSources extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerPaymentSources.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerPaymentSources.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:CustomerPaymentSources.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerPaymentSources.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:CustomerPaymentSources.TYPE,id:e},t)}async customer(e,t,s){return this.resources.fetch({type:"customers"},`customer_payment_sources/${e}/customer`,t,s)}isCustomerPaymentSource(e){return e.type&&e.type===CustomerPaymentSources.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerPaymentSources.TYPE}:{id:e.id,type:CustomerPaymentSources.TYPE}}type(){return CustomerPaymentSources.TYPE}}CustomerPaymentSources.TYPE="customer_payment_sources",exports.default=CustomerPaymentSources;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerSubscriptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerSubscriptions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerSubscriptions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CustomerSubscriptions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerSubscriptions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CustomerSubscriptions.TYPE,id:e},t)}async customer(e,t,r){return this.resources.fetch({type:"customers"},`customer_subscriptions/${e}/customer`,t,r)}isCustomerSubscription(e){return e.type&&e.type===CustomerSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerSubscriptions.TYPE}:{id:e.id,type:CustomerSubscriptions.TYPE}}type(){return CustomerSubscriptions.TYPE}}CustomerSubscriptions.TYPE="customer_subscriptions",exports.default=CustomerSubscriptions;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Customers extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:Customers.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Customers.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:Customers.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Customers.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:Customers.TYPE,id:e},s)}async customer_group(e,s,r){return this.resources.fetch({type:"customer_groups"},`customers/${e}/customer_group`,s,r)}async customer_addresses(e,s,r){return this.resources.fetch({type:"customer_addresses"},`customers/${e}/customer_addresses`,s,r)}async customer_payment_sources(e,s,r){return this.resources.fetch({type:"customer_payment_sources"},`customers/${e}/customer_payment_sources`,s,r)}async customer_subscriptions(e,s,r){return this.resources.fetch({type:"customer_subscriptions"},`customers/${e}/customer_subscriptions`,s,r)}async orders(e,s,r){return this.resources.fetch({type:"orders"},`customers/${e}/orders`,s,r)}async order_subscriptions(e,s,r){return this.resources.fetch({type:"order_subscriptions"},`customers/${e}/order_subscriptions`,s,r)}async returns(e,s,r){return this.resources.fetch({type:"returns"},`customers/${e}/returns`,s,r)}async attachments(e,s,r){return this.resources.fetch({type:"attachments"},`customers/${e}/attachments`,s,r)}isCustomer(e){return e.type&&e.type===Customers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Customers.TYPE}:{id:e.id,type:Customers.TYPE}}type(){return Customers.TYPE}}Customers.TYPE="customers",exports.default=Customers;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class DeliveryLeadTimes extends resource_1.ApiResource{async list(t,e){return this.resources.list({type:DeliveryLeadTimes.TYPE},t,e)}async create(t,e,s){return this.resources.create(Object.assign(Object.assign({},t),{type:DeliveryLeadTimes.TYPE}),e,s)}async retrieve(t,e,s){return this.resources.retrieve({type:DeliveryLeadTimes.TYPE,id:t},e,s)}async update(t,e,s){return this.resources.update(Object.assign(Object.assign({},t),{type:DeliveryLeadTimes.TYPE}),e,s)}async delete(t,e){await this.resources.delete({type:DeliveryLeadTimes.TYPE,id:t},e)}async stock_location(t,e,s){return this.resources.fetch({type:"stock_locations"},`delivery_lead_times/${t}/stock_location`,e,s)}async shipping_method(t,e,s){return this.resources.fetch({type:"shipping_methods"},`delivery_lead_times/${t}/shipping_method`,e,s)}async attachments(t,e,s){return this.resources.fetch({type:"attachments"},`delivery_lead_times/${t}/attachments`,e,s)}isDeliveryLeadTime(t){return t.type&&t.type===DeliveryLeadTimes.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:DeliveryLeadTimes.TYPE}:{id:t.id,type:DeliveryLeadTimes.TYPE}}type(){return DeliveryLeadTimes.TYPE}}DeliveryLeadTimes.TYPE="delivery_lead_times",exports.default=DeliveryLeadTimes;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class EventCallbacks extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:EventCallbacks.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:EventCallbacks.TYPE,id:e},r,t)}async webhook(e,r,t){return this.resources.fetch({type:"webhooks"},`event_callbacks/${e}/webhook`,r,t)}isEventCallback(e){return e.type&&e.type===EventCallbacks.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:EventCallbacks.TYPE}:{id:e.id,type:EventCallbacks.TYPE}}type(){return EventCallbacks.TYPE}}EventCallbacks.TYPE="event_callbacks",exports.default=EventCallbacks;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ExternalGateways.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalGateways.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ExternalGateways.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalGateways.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ExternalGateways.TYPE,id:e},t)}async payment_methods(e,t,s){return this.resources.fetch({type:"payment_methods"},`external_gateways/${e}/payment_methods`,t,s)}async external_payments(e,t,s){return this.resources.fetch({type:"external_payments"},`external_gateways/${e}/external_payments`,t,s)}isExternalGateway(e){return e.type&&e.type===ExternalGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ExternalGateways.TYPE}:{id:e.id,type:ExternalGateways.TYPE}}type(){return ExternalGateways.TYPE}}ExternalGateways.TYPE="external_gateways",exports.default=ExternalGateways;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalPayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ExternalPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ExternalPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ExternalPayments.TYPE,id:e},t)}async order(e,t,r){return this.resources.fetch({type:"orders"},`external_payments/${e}/order`,t,r)}async payment_gateway(e,t,r){return this.resources.fetch({type:"payment_gateways"},`external_payments/${e}/payment_gateway`,t,r)}async wallet(e,t,r){return this.resources.fetch({type:"customer_payment_sources"},`external_payments/${e}/wallet`,t,r)}isExternalPayment(e){return e.type&&e.type===ExternalPayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ExternalPayments.TYPE}:{id:e.id,type:ExternalPayments.TYPE}}type(){return ExternalPayments.TYPE}}ExternalPayments.TYPE="external_payments",exports.default=ExternalPayments;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ExternalPromotions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalPromotions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ExternalPromotions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalPromotions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ExternalPromotions.TYPE,id:e},t)}async market(e,t,r){return this.resources.fetch({type:"markets"},`external_promotions/${e}/market`,t,r)}async order_amount_promotion_rule(e,t,r){return this.resources.fetch({type:"order_amount_promotion_rules"},`external_promotions/${e}/order_amount_promotion_rule`,t,r)}async sku_list_promotion_rule(e,t,r){return this.resources.fetch({type:"sku_list_promotion_rules"},`external_promotions/${e}/sku_list_promotion_rule`,t,r)}async coupon_codes_promotion_rule(e,t,r){return this.resources.fetch({type:"coupon_codes_promotion_rules"},`external_promotions/${e}/coupon_codes_promotion_rule`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`external_promotions/${e}/attachments`,t,r)}isExternalPromotion(e){return e.type&&e.type===ExternalPromotions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ExternalPromotions.TYPE}:{id:e.id,type:ExternalPromotions.TYPE}}type(){return ExternalPromotions.TYPE}}ExternalPromotions.TYPE="external_promotions",exports.default=ExternalPromotions;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalTaxCalculators extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ExternalTaxCalculators.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalTaxCalculators.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ExternalTaxCalculators.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalTaxCalculators.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ExternalTaxCalculators.TYPE,id:e},t)}async tax_categories(e,t,s){return this.resources.fetch({type:"tax_categories"},`external_tax_calculators/${e}/tax_categories`,t,s)}async markets(e,t,s){return this.resources.fetch({type:"markets"},`external_tax_calculators/${e}/markets`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`external_tax_calculators/${e}/attachments`,t,s)}isExternalTaxCalculator(e){return e.type&&e.type===ExternalTaxCalculators.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ExternalTaxCalculators.TYPE}:{id:e.id,type:ExternalTaxCalculators.TYPE}}type(){return ExternalTaxCalculators.TYPE}}ExternalTaxCalculators.TYPE="external_tax_calculators",exports.default=ExternalTaxCalculators;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class FixedAmountPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:FixedAmountPromotions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:FixedAmountPromotions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:FixedAmountPromotions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:FixedAmountPromotions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:FixedAmountPromotions.TYPE,id:e},t)}async market(e,t,r){return this.resources.fetch({type:"markets"},`fixed_amount_promotions/${e}/market`,t,r)}async order_amount_promotion_rule(e,t,r){return this.resources.fetch({type:"order_amount_promotion_rules"},`fixed_amount_promotions/${e}/order_amount_promotion_rule`,t,r)}async sku_list_promotion_rule(e,t,r){return this.resources.fetch({type:"sku_list_promotion_rules"},`fixed_amount_promotions/${e}/sku_list_promotion_rule`,t,r)}async coupon_codes_promotion_rule(e,t,r){return this.resources.fetch({type:"coupon_codes_promotion_rules"},`fixed_amount_promotions/${e}/coupon_codes_promotion_rule`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`fixed_amount_promotions/${e}/attachments`,t,r)}isFixedAmountPromotion(e){return e.type&&e.type===FixedAmountPromotions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:FixedAmountPromotions.TYPE}:{id:e.id,type:FixedAmountPromotions.TYPE}}type(){return FixedAmountPromotions.TYPE}}FixedAmountPromotions.TYPE="fixed_amount_promotions",exports.default=FixedAmountPromotions;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class FixedPricePromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:FixedPricePromotions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:FixedPricePromotions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:FixedPricePromotions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:FixedPricePromotions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:FixedPricePromotions.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`fixed_price_promotions/${e}/market`,t,s)}async order_amount_promotion_rule(e,t,s){return this.resources.fetch({type:"order_amount_promotion_rules"},`fixed_price_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"},`fixed_price_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"},`fixed_price_promotions/${e}/coupon_codes_promotion_rule`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`fixed_price_promotions/${e}/attachments`,t,s)}async sku_list(e,t,s){return this.resources.fetch({type:"sku_lists"},`fixed_price_promotions/${e}/sku_list`,t,s)}async skus(e,t,s){return this.resources.fetch({type:"skus"},`fixed_price_promotions/${e}/skus`,t,s)}isFixedPricePromotion(e){return e.type&&e.type===FixedPricePromotions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:FixedPricePromotions.TYPE}:{id:e.id,type:FixedPricePromotions.TYPE}}type(){return FixedPricePromotions.TYPE}}FixedPricePromotions.TYPE="fixed_price_promotions",exports.default=FixedPricePromotions;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class FreeGiftPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:FreeGiftPromotions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:FreeGiftPromotions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:FreeGiftPromotions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:FreeGiftPromotions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:FreeGiftPromotions.TYPE,id:e},t)}async market(e,t,s){return this.resources.fetch({type:"markets"},`free_gift_promotions/${e}/market`,t,s)}async order_amount_promotion_rule(e,t,s){return this.resources.fetch({type:"order_amount_promotion_rules"},`free_gift_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"},`free_gift_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"},`free_gift_promotions/${e}/coupon_codes_promotion_rule`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`free_gift_promotions/${e}/attachments`,t,s)}async sku_list(e,t,s){return this.resources.fetch({type:"sku_lists"},`free_gift_promotions/${e}/sku_list`,t,s)}async skus(e,t,s){return this.resources.fetch({type:"skus"},`free_gift_promotions/${e}/skus`,t,s)}isFreeGiftPromotion(e){return e.type&&e.type===FreeGiftPromotions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:FreeGiftPromotions.TYPE}:{id:e.id,type:FreeGiftPromotions.TYPE}}type(){return FreeGiftPromotions.TYPE}}FreeGiftPromotions.TYPE="free_gift_promotions",exports.default=FreeGiftPromotions;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class FreeShippingPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:FreeShippingPromotions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:FreeShippingPromotions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:FreeShippingPromotions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:FreeShippingPromotions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:FreeShippingPromotions.TYPE,id:e},t)}async market(e,t,r){return this.resources.fetch({type:"markets"},`free_shipping_promotions/${e}/market`,t,r)}async order_amount_promotion_rule(e,t,r){return this.resources.fetch({type:"order_amount_promotion_rules"},`free_shipping_promotions/${e}/order_amount_promotion_rule`,t,r)}async sku_list_promotion_rule(e,t,r){return this.resources.fetch({type:"sku_list_promotion_rules"},`free_shipping_promotions/${e}/sku_list_promotion_rule`,t,r)}async coupon_codes_promotion_rule(e,t,r){return this.resources.fetch({type:"coupon_codes_promotion_rules"},`free_shipping_promotions/${e}/coupon_codes_promotion_rule`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`free_shipping_promotions/${e}/attachments`,t,r)}isFreeShippingPromotion(e){return e.type&&e.type===FreeShippingPromotions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:FreeShippingPromotions.TYPE}:{id:e.id,type:FreeShippingPromotions.TYPE}}type(){return FreeShippingPromotions.TYPE}}FreeShippingPromotions.TYPE="free_shipping_promotions",exports.default=FreeShippingPromotions;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Geocoders extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Geocoders.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:Geocoders.TYPE,id:e},t,s)}async addresses(e,t,s){return this.resources.fetch({type:"addresses"},`geocoders/${e}/addresses`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`geocoders/${e}/attachments`,t,s)}isGeocoder(e){return e.type&&e.type===Geocoders.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Geocoders.TYPE}:{id:e.id,type:Geocoders.TYPE}}type(){return Geocoders.TYPE}}Geocoders.TYPE="geocoders",exports.default=Geocoders;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class GiftCardRecipients extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:GiftCardRecipients.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:GiftCardRecipients.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:GiftCardRecipients.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:GiftCardRecipients.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:GiftCardRecipients.TYPE,id:e},t)}async customer(e,t,s){return this.resources.fetch({type:"customers"},`gift_card_recipients/${e}/customer`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`gift_card_recipients/${e}/attachments`,t,s)}isGiftCardRecipient(e){return e.type&&e.type===GiftCardRecipients.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:GiftCardRecipients.TYPE}:{id:e.id,type:GiftCardRecipients.TYPE}}type(){return GiftCardRecipients.TYPE}}GiftCardRecipients.TYPE="gift_card_recipients",exports.default=GiftCardRecipients;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class GiftCards extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:GiftCards.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:GiftCards.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:GiftCards.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:GiftCards.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:GiftCards.TYPE,id:e},t)}async market(e,t,r){return this.resources.fetch({type:"markets"},`gift_cards/${e}/market`,t,r)}async gift_card_recipient(e,t,r){return this.resources.fetch({type:"gift_card_recipients"},`gift_cards/${e}/gift_card_recipient`,t,r)}async attachments(e,t,r){return this.resources.fetch({type:"attachments"},`gift_cards/${e}/attachments`,t,r)}isGiftCard(e){return e.type&&e.type===GiftCards.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:GiftCards.TYPE}:{id:e.id,type:GiftCards.TYPE}}type(){return GiftCards.TYPE}}GiftCards.TYPE="gift_cards",exports.default=GiftCards;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class GoogleGeocoders extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:GoogleGeocoders.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:GoogleGeocoders.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:GoogleGeocoders.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:GoogleGeocoders.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:GoogleGeocoders.TYPE,id:e},t)}async addresses(e,t,s){return this.resources.fetch({type:"addresses"},`google_geocoders/${e}/addresses`,t,s)}async attachments(e,t,s){return this.resources.fetch({type:"attachments"},`google_geocoders/${e}/attachments`,t,s)}isGoogleGeocoder(e){return e.type&&e.type===GoogleGeocoders.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:GoogleGeocoders.TYPE}:{id:e.id,type:GoogleGeocoders.TYPE}}type(){return GoogleGeocoders.TYPE}}GoogleGeocoders.TYPE="google_geocoders",exports.default=GoogleGeocoders;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Imports extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Imports.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Imports.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Imports.TYPE,id:e},t,r)}async delete(e,t){await this.resources.delete({type:Imports.TYPE,id:e},t)}isImport(e){return e.type&&e.type===Imports.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Imports.TYPE}:{id:e.id,type:Imports.TYPE}}type(){return Imports.TYPE}}Imports.TYPE="imports",exports.default=Imports;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|
@@ -1 +0,0 @@
|
|
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;
|