@commercelayer/sdk 4.2.0 → 4.3.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/LICENSE +1 -1
- package/lib/{cjs/api.d.ts → api.d.ts} +1 -1
- package/lib/{esm/api.js → api.js} +0 -0
- package/lib/{esm/client.d.ts → client.d.ts} +3 -3
- package/lib/client.js +1 -0
- package/lib/{cjs/commercelayer.d.ts → commercelayer.d.ts} +2 -2
- 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} +2 -2
- package/lib/jsonapi.js +1 -0
- package/lib/{esm/model.d.ts → model.d.ts} +1 -1
- 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/{esm/resource.d.ts → resource.d.ts} +9 -4
- package/lib/resource.js +1 -0
- package/lib/{esm/resources → resources}/addresses.d.ts +6 -5
- package/lib/resources/addresses.js +1 -0
- package/lib/{cjs/resources → resources}/adjustments.d.ts +4 -4
- package/lib/resources/adjustments.js +1 -0
- package/lib/{esm/resources → resources}/adyen_gateways.d.ts +7 -5
- package/lib/resources/adyen_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/adyen_payments.d.ts +7 -5
- package/lib/resources/adyen_payments.js +1 -0
- package/lib/{cjs/resources → resources}/application.d.ts +4 -4
- package/lib/{esm/resources → resources}/application.js +1 -1
- package/lib/{esm/resources → resources}/attachments.d.ts +34 -34
- package/lib/resources/attachments.js +1 -0
- package/lib/{esm/resources → resources}/authorizations.d.ts +7 -4
- package/lib/resources/authorizations.js +1 -0
- package/lib/{cjs/resources → resources}/avalara_accounts.d.ts +8 -5
- package/lib/resources/avalara_accounts.js +1 -0
- package/lib/{cjs/resources → resources}/billing_info_validation_rules.d.ts +6 -5
- package/lib/resources/billing_info_validation_rules.js +1 -0
- package/lib/{esm/resources → resources}/bing_geocoders.d.ts +6 -4
- package/lib/resources/bing_geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/braintree_gateways.d.ts +7 -5
- package/lib/resources/braintree_gateways.js +1 -0
- package/lib/{esm/resources → resources}/braintree_payments.d.ts +7 -5
- package/lib/resources/braintree_payments.js +1 -0
- package/lib/{esm/resources → resources}/bundles.d.ts +15 -6
- package/lib/resources/bundles.js +1 -0
- package/lib/{esm/resources → resources}/captures.d.ts +7 -4
- package/lib/resources/captures.js +1 -0
- package/lib/{esm/resources → resources}/carrier_accounts.d.ts +6 -4
- package/lib/resources/carrier_accounts.js +1 -0
- package/lib/{cjs/resources → resources}/checkout_com_gateways.d.ts +7 -5
- package/lib/resources/checkout_com_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/checkout_com_payments.d.ts +7 -5
- package/lib/resources/checkout_com_payments.js +1 -0
- package/lib/{cjs/resources → resources}/coupon_codes_promotion_rules.d.ts +12 -11
- package/lib/resources/coupon_codes_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/coupon_recipients.d.ts +7 -5
- package/lib/resources/coupon_recipients.js +1 -0
- package/lib/{cjs/resources → resources}/coupons.d.ts +6 -5
- package/lib/resources/coupons.js +1 -0
- package/lib/{esm/resources → resources}/customer_addresses.d.ts +8 -6
- package/lib/resources/customer_addresses.js +1 -0
- package/lib/{esm/resources → resources}/customer_groups.d.ts +7 -4
- package/lib/resources/customer_groups.js +1 -0
- package/lib/{esm/resources → resources}/customer_password_resets.d.ts +5 -4
- package/lib/resources/customer_password_resets.js +1 -0
- package/lib/{cjs/resources → resources}/customer_payment_sources.d.ts +14 -13
- package/lib/resources/customer_payment_sources.js +1 -0
- package/lib/{cjs/resources → resources}/customer_subscriptions.d.ts +5 -4
- package/lib/resources/customer_subscriptions.js +1 -0
- package/lib/{cjs/resources → resources}/customers.d.ts +13 -5
- package/lib/resources/customers.js +1 -0
- package/lib/{esm/resources → resources}/delivery_lead_times.d.ts +9 -6
- package/lib/resources/delivery_lead_times.js +1 -0
- package/lib/{esm/resources → resources}/event_callbacks.d.ts +5 -4
- package/lib/resources/event_callbacks.js +1 -0
- package/lib/{cjs/resources → resources}/external_gateways.d.ts +6 -4
- package/lib/resources/external_gateways.js +1 -0
- package/lib/{esm/resources → resources}/external_payments.d.ts +8 -5
- package/lib/resources/external_payments.js +1 -0
- package/lib/{esm/resources → resources}/external_promotions.d.ts +17 -9
- package/lib/resources/external_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/external_tax_calculators.d.ts +8 -5
- package/lib/resources/external_tax_calculators.js +1 -0
- package/lib/{esm/resources → resources}/fixed_amount_promotions.d.ts +17 -9
- package/lib/resources/fixed_amount_promotions.js +1 -0
- package/lib/{esm/resources → resources}/fixed_price_promotions.d.ts +20 -10
- package/lib/resources/fixed_price_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/free_gift_promotions.d.ts +20 -10
- package/lib/resources/free_gift_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/free_shipping_promotions.d.ts +17 -9
- package/lib/resources/free_shipping_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/geocoders.d.ts +6 -4
- package/lib/resources/geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/gift_card_recipients.d.ts +7 -5
- package/lib/resources/gift_card_recipients.js +1 -0
- package/lib/{cjs/resources → resources}/gift_cards.d.ts +10 -7
- package/lib/resources/gift_cards.js +1 -0
- package/lib/{esm/resources → resources}/google_geocoders.d.ts +6 -4
- package/lib/resources/google_geocoders.js +1 -0
- package/lib/{esm/resources → resources}/imports.d.ts +4 -4
- package/lib/resources/imports.js +1 -0
- package/lib/{esm/resources → resources}/in_stock_subscriptions.d.ts +10 -7
- package/lib/resources/in_stock_subscriptions.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_models.d.ts +7 -4
- package/lib/resources/inventory_models.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_return_locations.d.ts +8 -6
- package/lib/resources/inventory_return_locations.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_stock_locations.d.ts +8 -6
- package/lib/resources/inventory_stock_locations.js +1 -0
- package/lib/{esm/resources → resources}/klarna_gateways.d.ts +7 -5
- package/lib/resources/klarna_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/klarna_payments.d.ts +7 -5
- package/lib/resources/klarna_payments.js +1 -0
- package/lib/{cjs/resources → resources}/line_item_options.d.ts +8 -6
- package/lib/resources/line_item_options.js +1 -0
- package/lib/{esm/resources → resources}/line_items.d.ts +19 -15
- package/lib/resources/line_items.js +1 -0
- package/lib/{esm/resources → resources}/manual_gateways.d.ts +5 -4
- package/lib/resources/manual_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/manual_tax_calculators.d.ts +10 -6
- package/lib/resources/manual_tax_calculators.js +1 -0
- package/lib/{esm/resources → resources}/markets.d.ts +15 -9
- package/lib/resources/markets.js +1 -0
- package/lib/{cjs/resources → resources}/merchants.d.ts +7 -5
- package/lib/resources/merchants.js +1 -0
- package/lib/{cjs/resources → resources}/order_amount_promotion_rules.d.ts +10 -10
- package/lib/resources/order_amount_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/order_copies.d.ts +8 -5
- package/lib/resources/order_copies.js +1 -0
- package/lib/{cjs/resources → resources}/order_subscriptions.d.ts +11 -6
- package/lib/resources/order_subscriptions.js +1 -0
- package/lib/{cjs/resources → resources}/order_validation_rules.d.ts +5 -4
- package/lib/resources/order_validation_rules.js +1 -0
- package/lib/{esm/resources → resources}/orders.d.ts +32 -16
- package/lib/resources/orders.js +1 -0
- package/lib/{esm/resources → resources}/organization.d.ts +4 -4
- package/lib/{esm/resources → resources}/organization.js +1 -1
- package/lib/{esm/resources → resources}/packages.d.ts +8 -5
- package/lib/resources/packages.js +1 -0
- package/lib/{cjs/resources → resources}/parcel_line_items.d.ts +8 -6
- package/lib/resources/parcel_line_items.js +1 -0
- package/lib/{esm/resources → resources}/parcels.d.ts +10 -6
- package/lib/resources/parcels.js +1 -0
- package/lib/{cjs/resources → resources}/payment_gateways.d.ts +5 -4
- package/lib/resources/payment_gateways.js +1 -0
- package/lib/{esm/resources → resources}/payment_methods.d.ts +13 -7
- package/lib/resources/payment_methods.js +1 -0
- package/lib/{cjs/resources → resources}/paypal_gateways.d.ts +6 -4
- package/lib/resources/paypal_gateways.js +1 -0
- package/lib/{esm/resources → resources}/paypal_payments.d.ts +7 -5
- package/lib/resources/paypal_payments.js +1 -0
- package/lib/{esm/resources → resources}/percentage_discount_promotions.d.ts +20 -10
- package/lib/resources/percentage_discount_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/price_lists.d.ts +6 -4
- package/lib/resources/price_lists.js +1 -0
- package/lib/{cjs/resources → resources}/prices.d.ts +9 -6
- package/lib/resources/prices.js +1 -0
- package/lib/{esm/resources → resources}/promotion_rules.d.ts +4 -4
- package/lib/{esm/resources → resources}/promotion_rules.js +1 -1
- package/lib/{esm/resources → resources}/promotions.d.ts +10 -4
- package/lib/resources/promotions.js +1 -0
- package/lib/{cjs/resources → resources}/refunds.d.ts +6 -4
- package/lib/resources/refunds.js +1 -0
- package/lib/{cjs/resources → resources}/return_line_items.d.ts +8 -6
- package/lib/resources/return_line_items.js +1 -0
- package/lib/{esm/resources → resources}/returns.d.ts +13 -6
- package/lib/resources/returns.js +1 -0
- package/lib/{cjs/resources → resources}/shipments.d.ts +18 -5
- package/lib/resources/shipments.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_categories.d.ts +6 -4
- package/lib/resources/shipping_categories.js +1 -0
- package/lib/{esm/resources → resources}/shipping_methods.d.ts +16 -9
- package/lib/resources/shipping_methods.js +1 -0
- package/lib/{esm/resources → resources}/shipping_zones.d.ts +5 -4
- package/lib/resources/shipping_zones.js +1 -0
- package/lib/{cjs/resources → resources}/sku_list_items.d.ts +8 -6
- package/lib/resources/sku_list_items.js +1 -0
- package/lib/{cjs/resources → resources}/sku_list_promotion_rules.d.ts +13 -11
- package/lib/resources/sku_list_promotion_rules.js +1 -0
- package/lib/{esm/resources → resources}/sku_lists.d.ts +7 -4
- package/lib/resources/sku_lists.js +1 -0
- package/lib/{cjs/resources → resources}/sku_options.d.ts +10 -5
- package/lib/resources/sku_options.js +1 -0
- package/lib/{cjs/resources → resources}/skus.d.ts +11 -5
- package/lib/resources/skus.js +1 -0
- package/lib/{esm/resources → resources}/stock_items.d.ts +9 -6
- package/lib/resources/stock_items.js +1 -0
- package/lib/{esm/resources → resources}/stock_line_items.d.ts +7 -4
- package/lib/resources/stock_line_items.js +1 -0
- package/lib/{esm/resources → resources}/stock_locations.d.ts +11 -5
- package/lib/resources/stock_locations.js +1 -0
- package/lib/{cjs/resources → resources}/stock_transfers.d.ts +13 -8
- package/lib/resources/stock_transfers.js +1 -0
- package/lib/{cjs/resources → resources}/stripe_gateways.d.ts +6 -4
- package/lib/resources/stripe_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/stripe_payments.d.ts +7 -5
- package/lib/resources/stripe_payments.js +1 -0
- package/lib/{esm/resources → resources}/tax_calculators.d.ts +7 -4
- package/lib/resources/tax_calculators.js +1 -0
- package/lib/{esm/resources → resources}/tax_categories.d.ts +11 -9
- package/lib/resources/tax_categories.js +1 -0
- package/lib/{cjs/resources → resources}/tax_rules.d.ts +6 -5
- package/lib/resources/tax_rules.js +1 -0
- package/lib/{cjs/resources → resources}/taxjar_accounts.d.ts +8 -5
- package/lib/resources/taxjar_accounts.js +1 -0
- package/lib/{esm/resources → resources}/transactions.d.ts +5 -4
- package/lib/resources/transactions.js +1 -0
- package/lib/{esm/resources → resources}/voids.d.ts +6 -4
- package/lib/resources/voids.js +1 -0
- package/lib/{cjs/resources → resources}/webhooks.d.ts +5 -4
- package/lib/resources/webhooks.js +1 -0
- package/lib/{cjs/resources → resources}/wire_transfers.d.ts +6 -5
- 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 +16 -17
- package/lib/cjs/api.js +0 -1
- package/lib/cjs/client.d.ts +0 -32
- 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.d.ts +0 -101
- package/lib/cjs/model.js +0 -1
- package/lib/cjs/query.js +0 -1
- package/lib/cjs/resource.d.ts +0 -71
- package/lib/cjs/resource.js +0 -1
- package/lib/cjs/resources/addresses.d.ts +0 -87
- package/lib/cjs/resources/addresses.js +0 -1
- package/lib/cjs/resources/adjustments.js +0 -1
- package/lib/cjs/resources/adyen_gateways.d.ts +0 -45
- 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.d.ts +0 -156
- package/lib/cjs/resources/attachments.js +0 -1
- package/lib/cjs/resources/authorizations.d.ts +0 -54
- 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.d.ts +0 -33
- package/lib/cjs/resources/bing_geocoders.js +0 -1
- package/lib/cjs/resources/braintree_gateways.js +0 -1
- package/lib/cjs/resources/braintree_payments.d.ts +0 -45
- package/lib/cjs/resources/braintree_payments.js +0 -1
- package/lib/cjs/resources/bundles.d.ts +0 -65
- package/lib/cjs/resources/bundles.js +0 -1
- package/lib/cjs/resources/captures.d.ts +0 -45
- package/lib/cjs/resources/captures.js +0 -1
- package/lib/cjs/resources/carrier_accounts.d.ts +0 -24
- 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.d.ts +0 -39
- package/lib/cjs/resources/customer_addresses.js +0 -1
- package/lib/cjs/resources/customer_groups.d.ts +0 -33
- package/lib/cjs/resources/customer_groups.js +0 -1
- package/lib/cjs/resources/customer_password_resets.d.ts +0 -32
- 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.d.ts +0 -48
- package/lib/cjs/resources/delivery_lead_times.js +0 -1
- package/lib/cjs/resources/event_callbacks.d.ts +0 -23
- package/lib/cjs/resources/event_callbacks.js +0 -1
- package/lib/cjs/resources/external_gateways.js +0 -1
- package/lib/cjs/resources/external_payments.d.ts +0 -40
- package/lib/cjs/resources/external_payments.js +0 -1
- package/lib/cjs/resources/external_promotions.d.ts +0 -78
- 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.d.ts +0 -80
- package/lib/cjs/resources/fixed_amount_promotions.js +0 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +0 -89
- 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.d.ts +0 -33
- package/lib/cjs/resources/google_geocoders.js +0 -1
- package/lib/cjs/resources/imports.d.ts +0 -40
- package/lib/cjs/resources/imports.js +0 -1
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +0 -56
- 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.d.ts +0 -42
- 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.d.ts +0 -121
- package/lib/cjs/resources/line_items.js +0 -1
- package/lib/cjs/resources/manual_gateways.d.ts +0 -32
- package/lib/cjs/resources/manual_gateways.js +0 -1
- package/lib/cjs/resources/manual_tax_calculators.js +0 -1
- package/lib/cjs/resources/markets.d.ts +0 -75
- 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.d.ts +0 -255
- package/lib/cjs/resources/orders.js +0 -1
- package/lib/cjs/resources/organization.d.ts +0 -32
- package/lib/cjs/resources/organization.js +0 -1
- package/lib/cjs/resources/packages.d.ts +0 -53
- package/lib/cjs/resources/packages.js +0 -1
- package/lib/cjs/resources/parcel_line_items.js +0 -1
- package/lib/cjs/resources/parcels.d.ts +0 -104
- package/lib/cjs/resources/parcels.js +0 -1
- package/lib/cjs/resources/payment_gateways.js +0 -1
- package/lib/cjs/resources/payment_methods.d.ts +0 -53
- package/lib/cjs/resources/payment_methods.js +0 -1
- package/lib/cjs/resources/paypal_gateways.js +0 -1
- package/lib/cjs/resources/paypal_payments.d.ts +0 -45
- package/lib/cjs/resources/paypal_payments.js +0 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +0 -87
- 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.d.ts +0 -24
- package/lib/cjs/resources/promotion_rules.js +0 -1
- package/lib/cjs/resources/promotions.d.ts +0 -35
- 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.d.ts +0 -65
- 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.d.ts +0 -67
- package/lib/cjs/resources/shipping_methods.js +0 -1
- package/lib/cjs/resources/shipping_zones.d.ts +0 -47
- 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.d.ts +0 -46
- 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.d.ts +0 -46
- package/lib/cjs/resources/stock_items.js +0 -1
- package/lib/cjs/resources/stock_line_items.d.ts +0 -26
- package/lib/cjs/resources/stock_line_items.js +0 -1
- package/lib/cjs/resources/stock_locations.d.ts +0 -51
- 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.d.ts +0 -24
- package/lib/cjs/resources/tax_calculators.js +0 -1
- package/lib/cjs/resources/tax_categories.d.ts +0 -57
- 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.d.ts +0 -30
- package/lib/cjs/resources/transactions.js +0 -1
- package/lib/cjs/resources/voids.d.ts +0 -32
- 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.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/query.d.ts +0 -23
- package/lib/esm/resource.js +0 -1
- 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.js +0 -1
- package/lib/esm/resources/adyen_payments.d.ts +0 -42
- package/lib/esm/resources/adyen_payments.js +0 -1
- package/lib/esm/resources/application.d.ts +0 -21
- package/lib/esm/resources/attachments.js +0 -1
- package/lib/esm/resources/authorizations.js +0 -1
- package/lib/esm/resources/avalara_accounts.d.ts +0 -49
- package/lib/esm/resources/avalara_accounts.js +0 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +0 -31
- package/lib/esm/resources/billing_info_validation_rules.js +0 -1
- package/lib/esm/resources/bing_geocoders.js +0 -1
- package/lib/esm/resources/braintree_gateways.d.ts +0 -54
- package/lib/esm/resources/braintree_gateways.js +0 -1
- package/lib/esm/resources/braintree_payments.js +0 -1
- package/lib/esm/resources/bundles.js +0 -1
- package/lib/esm/resources/captures.js +0 -1
- package/lib/esm/resources/carrier_accounts.js +0 -1
- package/lib/esm/resources/checkout_com_gateways.d.ts +0 -43
- package/lib/esm/resources/checkout_com_gateways.js +0 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +0 -48
- package/lib/esm/resources/checkout_com_payments.js +0 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +0 -58
- package/lib/esm/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/esm/resources/coupon_recipients.d.ts +0 -42
- package/lib/esm/resources/coupon_recipients.js +0 -1
- package/lib/esm/resources/coupons.d.ts +0 -44
- package/lib/esm/resources/coupons.js +0 -1
- package/lib/esm/resources/customer_addresses.js +0 -1
- package/lib/esm/resources/customer_groups.js +0 -1
- package/lib/esm/resources/customer_password_resets.js +0 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +0 -69
- package/lib/esm/resources/customer_payment_sources.js +0 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +0 -27
- package/lib/esm/resources/customer_subscriptions.js +0 -1
- package/lib/esm/resources/customers.d.ts +0 -52
- package/lib/esm/resources/customers.js +0 -1
- package/lib/esm/resources/delivery_lead_times.js +0 -1
- package/lib/esm/resources/event_callbacks.js +0 -1
- package/lib/esm/resources/external_gateways.d.ts +0 -47
- package/lib/esm/resources/external_gateways.js +0 -1
- package/lib/esm/resources/external_payments.js +0 -1
- package/lib/esm/resources/external_promotions.js +0 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +0 -41
- package/lib/esm/resources/external_tax_calculators.js +0 -1
- package/lib/esm/resources/fixed_amount_promotions.js +0 -1
- package/lib/esm/resources/fixed_price_promotions.js +0 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +0 -87
- package/lib/esm/resources/free_gift_promotions.js +0 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +0 -75
- package/lib/esm/resources/free_shipping_promotions.js +0 -1
- package/lib/esm/resources/geocoders.d.ts +0 -22
- package/lib/esm/resources/geocoders.js +0 -1
- package/lib/esm/resources/gift_card_recipients.d.ts +0 -42
- package/lib/esm/resources/gift_card_recipients.js +0 -1
- package/lib/esm/resources/gift_cards.d.ts +0 -79
- package/lib/esm/resources/gift_cards.js +0 -1
- package/lib/esm/resources/google_geocoders.js +0 -1
- package/lib/esm/resources/imports.js +0 -1
- package/lib/esm/resources/in_stock_subscriptions.js +0 -1
- package/lib/esm/resources/inventory_models.d.ts +0 -39
- package/lib/esm/resources/inventory_models.js +0 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +0 -41
- package/lib/esm/resources/inventory_return_locations.js +0 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +0 -44
- package/lib/esm/resources/inventory_stock_locations.js +0 -1
- package/lib/esm/resources/klarna_gateways.js +0 -1
- package/lib/esm/resources/klarna_payments.d.ts +0 -39
- package/lib/esm/resources/klarna_payments.js +0 -1
- package/lib/esm/resources/line_item_options.d.ts +0 -55
- package/lib/esm/resources/line_item_options.js +0 -1
- package/lib/esm/resources/line_items.js +0 -1
- package/lib/esm/resources/manual_gateways.js +0 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +0 -45
- package/lib/esm/resources/manual_tax_calculators.js +0 -1
- package/lib/esm/resources/markets.js +0 -1
- package/lib/esm/resources/merchants.d.ts +0 -36
- 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 -42
- package/lib/esm/resources/order_copies.js +0 -1
- package/lib/esm/resources/order_subscriptions.d.ts +0 -62
- package/lib/esm/resources/order_subscriptions.js +0 -1
- package/lib/esm/resources/order_validation_rules.d.ts +0 -19
- package/lib/esm/resources/order_validation_rules.js +0 -1
- package/lib/esm/resources/orders.js +0 -1
- package/lib/esm/resources/packages.js +0 -1
- package/lib/esm/resources/parcel_line_items.d.ts +0 -47
- package/lib/esm/resources/parcel_line_items.js +0 -1
- package/lib/esm/resources/parcels.js +0 -1
- package/lib/esm/resources/payment_gateways.d.ts +0 -20
- package/lib/esm/resources/payment_gateways.js +0 -1
- package/lib/esm/resources/payment_methods.js +0 -1
- package/lib/esm/resources/paypal_gateways.d.ts +0 -37
- package/lib/esm/resources/paypal_gateways.js +0 -1
- package/lib/esm/resources/paypal_payments.js +0 -1
- package/lib/esm/resources/percentage_discount_promotions.js +0 -1
- package/lib/esm/resources/price_lists.d.ts +0 -37
- package/lib/esm/resources/price_lists.js +0 -1
- package/lib/esm/resources/prices.d.ts +0 -54
- package/lib/esm/resources/prices.js +0 -1
- package/lib/esm/resources/promotions.js +0 -1
- package/lib/esm/resources/refunds.d.ts +0 -32
- package/lib/esm/resources/refunds.js +0 -1
- package/lib/esm/resources/return_line_items.d.ts +0 -47
- package/lib/esm/resources/return_line_items.js +0 -1
- package/lib/esm/resources/returns.js +0 -1
- package/lib/esm/resources/shipments.d.ts +0 -76
- package/lib/esm/resources/shipments.js +0 -1
- package/lib/esm/resources/shipping_categories.d.ts +0 -31
- package/lib/esm/resources/shipping_categories.js +0 -1
- package/lib/esm/resources/shipping_methods.js +0 -1
- package/lib/esm/resources/shipping_zones.js +0 -1
- package/lib/esm/resources/sku_list_items.d.ts +0 -45
- package/lib/esm/resources/sku_list_items.js +0 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +0 -66
- package/lib/esm/resources/sku_list_promotion_rules.js +0 -1
- package/lib/esm/resources/sku_lists.js +0 -1
- package/lib/esm/resources/sku_options.d.ts +0 -51
- package/lib/esm/resources/sku_options.js +0 -1
- package/lib/esm/resources/skus.d.ts +0 -72
- package/lib/esm/resources/skus.js +0 -1
- package/lib/esm/resources/stock_items.js +0 -1
- package/lib/esm/resources/stock_line_items.js +0 -1
- package/lib/esm/resources/stock_locations.js +0 -1
- package/lib/esm/resources/stock_transfers.d.ts +0 -66
- package/lib/esm/resources/stock_transfers.js +0 -1
- package/lib/esm/resources/stripe_gateways.d.ts +0 -36
- package/lib/esm/resources/stripe_gateways.js +0 -1
- package/lib/esm/resources/stripe_payments.d.ts +0 -40
- package/lib/esm/resources/stripe_payments.js +0 -1
- package/lib/esm/resources/tax_calculators.js +0 -1
- package/lib/esm/resources/tax_categories.js +0 -1
- package/lib/esm/resources/tax_rules.d.ts +0 -68
- package/lib/esm/resources/tax_rules.js +0 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +0 -40
- package/lib/esm/resources/taxjar_accounts.js +0 -1
- package/lib/esm/resources/transactions.js +0 -1
- package/lib/esm/resources/voids.js +0 -1
- package/lib/esm/resources/webhooks.d.ts +0 -41
- package/lib/esm/resources/webhooks.js +0 -1
- package/lib/esm/resources/wire_transfers.d.ts +0 -31
- 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
@@ -1,47 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { PaymentMethod } from './payment_methods';
|
4
|
-
import { ExternalPayment } from './external_payments';
|
5
|
-
declare type ExternalGatewayRel = ResourceId & {
|
6
|
-
type: typeof ExternalGateways.TYPE;
|
7
|
-
};
|
8
|
-
interface ExternalGateway extends Resource {
|
9
|
-
name?: string;
|
10
|
-
shared_secret?: string;
|
11
|
-
authorize_url?: string;
|
12
|
-
capture_url?: string;
|
13
|
-
void_url?: string;
|
14
|
-
refund_url?: string;
|
15
|
-
token_url?: string;
|
16
|
-
payment_methods?: PaymentMethod[];
|
17
|
-
external_payments?: ExternalPayment[];
|
18
|
-
}
|
19
|
-
interface ExternalGatewayCreate extends ResourceCreate {
|
20
|
-
name: string;
|
21
|
-
authorize_url?: string;
|
22
|
-
capture_url?: string;
|
23
|
-
void_url?: string;
|
24
|
-
refund_url?: string;
|
25
|
-
token_url?: string;
|
26
|
-
}
|
27
|
-
interface ExternalGatewayUpdate extends ResourceUpdate {
|
28
|
-
name?: string;
|
29
|
-
authorize_url?: string;
|
30
|
-
capture_url?: string;
|
31
|
-
void_url?: string;
|
32
|
-
refund_url?: string;
|
33
|
-
token_url?: string;
|
34
|
-
}
|
35
|
-
declare class ExternalGateways extends ApiResource {
|
36
|
-
static readonly TYPE: 'external_gateways';
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalGateway>>;
|
38
|
-
create(resource: ExternalGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
39
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
40
|
-
update(resource: ExternalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
41
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
42
|
-
isExternalGateway(resource: any): resource is ExternalGateway;
|
43
|
-
relationship(id: string | ResourceId): ExternalGatewayRel;
|
44
|
-
type(): string;
|
45
|
-
}
|
46
|
-
export default ExternalGateways;
|
47
|
-
export { ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isExternalGateway(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="external_gateways";export default t;
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isExternalPayment(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="external_payments";export default t;
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isExternalPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="external_promotions";export default t;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { TaxCategory } from './tax_categories';
|
4
|
-
import { Market } from './markets';
|
5
|
-
import { Attachment } from './attachments';
|
6
|
-
declare type ExternalTaxCalculatorRel = ResourceId & {
|
7
|
-
type: typeof ExternalTaxCalculators.TYPE;
|
8
|
-
};
|
9
|
-
declare type TaxCategoryRel = ResourceId & {
|
10
|
-
type: 'tax_categories';
|
11
|
-
};
|
12
|
-
interface ExternalTaxCalculator extends Resource {
|
13
|
-
name?: string;
|
14
|
-
tax_calculator_url?: string;
|
15
|
-
tax_categories?: TaxCategory[];
|
16
|
-
markets?: Market[];
|
17
|
-
attachments?: Attachment[];
|
18
|
-
}
|
19
|
-
interface ExternalTaxCalculatorCreate extends ResourceCreate {
|
20
|
-
name: string;
|
21
|
-
tax_calculator_url: string;
|
22
|
-
tax_categories?: TaxCategoryRel[];
|
23
|
-
}
|
24
|
-
interface ExternalTaxCalculatorUpdate extends ResourceUpdate {
|
25
|
-
name?: string;
|
26
|
-
tax_calculator_url?: string;
|
27
|
-
tax_categories?: TaxCategoryRel[];
|
28
|
-
}
|
29
|
-
declare class ExternalTaxCalculators extends ApiResource {
|
30
|
-
static readonly TYPE: 'external_tax_calculators';
|
31
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalTaxCalculator>>;
|
32
|
-
create(resource: ExternalTaxCalculatorCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
33
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
34
|
-
update(resource: ExternalTaxCalculatorUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
35
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
36
|
-
isExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator;
|
37
|
-
relationship(id: string | ResourceId): ExternalTaxCalculatorRel;
|
38
|
-
type(): string;
|
39
|
-
}
|
40
|
-
export default ExternalTaxCalculators;
|
41
|
-
export { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculatorUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as a}from"../resource";class t extends a{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isExternalTaxCalculator(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="external_tax_calculators";export default t;
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFixedAmountPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="fixed_amount_promotions";export default t;
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as r}from"../resource";class t extends r{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,i){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,i)}async retrieve(e,s,i){return this.resources.retrieve({type:t.TYPE,id:e},s,i)}async update(e,s,i){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,i)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFixedPricePromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="fixed_price_promotions";export default t;
|
@@ -1,87 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Market } from './markets';
|
4
|
-
import { PromotionRule } from './promotion_rules';
|
5
|
-
import { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
6
|
-
import { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
|
-
import { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
|
-
import { Attachment } from './attachments';
|
9
|
-
import { SkuList } from './sku_lists';
|
10
|
-
import { Sku } from './skus';
|
11
|
-
declare type FreeGiftPromotionRel = ResourceId & {
|
12
|
-
type: typeof FreeGiftPromotions.TYPE;
|
13
|
-
};
|
14
|
-
declare type MarketRel = ResourceId & {
|
15
|
-
type: 'markets';
|
16
|
-
};
|
17
|
-
declare type PromotionRuleRel = ResourceId & {
|
18
|
-
type: 'promotion_rules';
|
19
|
-
};
|
20
|
-
declare type OrderAmountPromotionRuleRel = ResourceId & {
|
21
|
-
type: 'order_amount_promotion_rules';
|
22
|
-
};
|
23
|
-
declare type SkuListPromotionRuleRel = ResourceId & {
|
24
|
-
type: 'sku_list_promotion_rules';
|
25
|
-
};
|
26
|
-
declare type CouponCodesPromotionRuleRel = ResourceId & {
|
27
|
-
type: 'coupon_codes_promotion_rules';
|
28
|
-
};
|
29
|
-
declare type SkuListRel = ResourceId & {
|
30
|
-
type: 'sku_lists';
|
31
|
-
};
|
32
|
-
interface FreeGiftPromotion extends Resource {
|
33
|
-
name?: string;
|
34
|
-
starts_at?: string;
|
35
|
-
expires_at?: string;
|
36
|
-
total_usage_limit?: number;
|
37
|
-
total_usage_count?: number;
|
38
|
-
active?: boolean;
|
39
|
-
max_quantity?: number;
|
40
|
-
market?: Market;
|
41
|
-
promotion_rules?: PromotionRule[];
|
42
|
-
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
43
|
-
sku_list_promotion_rule?: SkuListPromotionRule;
|
44
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
45
|
-
attachments?: Attachment[];
|
46
|
-
sku_list?: SkuList;
|
47
|
-
skus?: Sku[];
|
48
|
-
}
|
49
|
-
interface FreeGiftPromotionCreate extends ResourceCreate {
|
50
|
-
name: string;
|
51
|
-
starts_at: string;
|
52
|
-
expires_at: string;
|
53
|
-
total_usage_limit: number;
|
54
|
-
max_quantity?: number;
|
55
|
-
market?: MarketRel;
|
56
|
-
promotion_rules?: PromotionRuleRel[];
|
57
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
58
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
59
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
60
|
-
sku_list: SkuListRel;
|
61
|
-
}
|
62
|
-
interface FreeGiftPromotionUpdate extends ResourceUpdate {
|
63
|
-
name?: string;
|
64
|
-
starts_at?: string;
|
65
|
-
expires_at?: string;
|
66
|
-
total_usage_limit?: number;
|
67
|
-
max_quantity?: number;
|
68
|
-
market?: MarketRel;
|
69
|
-
promotion_rules?: PromotionRuleRel[];
|
70
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
71
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
72
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
73
|
-
sku_list?: SkuListRel;
|
74
|
-
}
|
75
|
-
declare class FreeGiftPromotions extends ApiResource {
|
76
|
-
static readonly TYPE: 'free_gift_promotions';
|
77
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FreeGiftPromotion>>;
|
78
|
-
create(resource: FreeGiftPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
79
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
80
|
-
update(resource: FreeGiftPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
81
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
82
|
-
isFreeGiftPromotion(resource: any): resource is FreeGiftPromotion;
|
83
|
-
relationship(id: string | ResourceId): FreeGiftPromotionRel;
|
84
|
-
type(): string;
|
85
|
-
}
|
86
|
-
export default FreeGiftPromotions;
|
87
|
-
export { FreeGiftPromotion, FreeGiftPromotionCreate, FreeGiftPromotionUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFreeGiftPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="free_gift_promotions";export default t;
|
@@ -1,75 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Market } from './markets';
|
4
|
-
import { PromotionRule } from './promotion_rules';
|
5
|
-
import { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
6
|
-
import { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
|
-
import { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
|
-
import { Attachment } from './attachments';
|
9
|
-
declare type FreeShippingPromotionRel = ResourceId & {
|
10
|
-
type: typeof FreeShippingPromotions.TYPE;
|
11
|
-
};
|
12
|
-
declare type MarketRel = ResourceId & {
|
13
|
-
type: 'markets';
|
14
|
-
};
|
15
|
-
declare type PromotionRuleRel = ResourceId & {
|
16
|
-
type: 'promotion_rules';
|
17
|
-
};
|
18
|
-
declare type OrderAmountPromotionRuleRel = ResourceId & {
|
19
|
-
type: 'order_amount_promotion_rules';
|
20
|
-
};
|
21
|
-
declare type SkuListPromotionRuleRel = ResourceId & {
|
22
|
-
type: 'sku_list_promotion_rules';
|
23
|
-
};
|
24
|
-
declare type CouponCodesPromotionRuleRel = ResourceId & {
|
25
|
-
type: 'coupon_codes_promotion_rules';
|
26
|
-
};
|
27
|
-
interface FreeShippingPromotion extends Resource {
|
28
|
-
name?: string;
|
29
|
-
starts_at?: string;
|
30
|
-
expires_at?: string;
|
31
|
-
total_usage_limit?: number;
|
32
|
-
total_usage_count?: number;
|
33
|
-
active?: boolean;
|
34
|
-
market?: Market;
|
35
|
-
promotion_rules?: PromotionRule[];
|
36
|
-
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
37
|
-
sku_list_promotion_rule?: SkuListPromotionRule;
|
38
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
39
|
-
attachments?: Attachment[];
|
40
|
-
}
|
41
|
-
interface FreeShippingPromotionCreate extends ResourceCreate {
|
42
|
-
name: string;
|
43
|
-
starts_at: string;
|
44
|
-
expires_at: string;
|
45
|
-
total_usage_limit: number;
|
46
|
-
market?: MarketRel;
|
47
|
-
promotion_rules?: PromotionRuleRel[];
|
48
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
49
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
50
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
51
|
-
}
|
52
|
-
interface FreeShippingPromotionUpdate extends ResourceUpdate {
|
53
|
-
name?: string;
|
54
|
-
starts_at?: string;
|
55
|
-
expires_at?: string;
|
56
|
-
total_usage_limit?: number;
|
57
|
-
market?: MarketRel;
|
58
|
-
promotion_rules?: PromotionRuleRel[];
|
59
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
60
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
61
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
62
|
-
}
|
63
|
-
declare class FreeShippingPromotions extends ApiResource {
|
64
|
-
static readonly TYPE: 'free_shipping_promotions';
|
65
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FreeShippingPromotion>>;
|
66
|
-
create(resource: FreeShippingPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
67
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
68
|
-
update(resource: FreeShippingPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
69
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
70
|
-
isFreeShippingPromotion(resource: any): resource is FreeShippingPromotion;
|
71
|
-
relationship(id: string | ResourceId): FreeShippingPromotionRel;
|
72
|
-
type(): string;
|
73
|
-
}
|
74
|
-
export default FreeShippingPromotions;
|
75
|
-
export { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotionUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as r}from"../resource";class t extends r{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,i){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,i)}async retrieve(e,s,i){return this.resources.retrieve({type:t.TYPE,id:e},s,i)}async update(e,s,i){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,i)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFreeShippingPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="free_shipping_promotions";export default t;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Address } from './addresses';
|
4
|
-
import { Attachment } from './attachments';
|
5
|
-
declare type GeocoderRel = ResourceId & {
|
6
|
-
type: typeof Geocoders.TYPE;
|
7
|
-
};
|
8
|
-
interface Geocoder extends Resource {
|
9
|
-
name?: string;
|
10
|
-
addresses?: Address[];
|
11
|
-
attachments?: Attachment[];
|
12
|
-
}
|
13
|
-
declare class Geocoders extends ApiResource {
|
14
|
-
static readonly TYPE: 'geocoders';
|
15
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Geocoder>>;
|
16
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Geocoder>;
|
17
|
-
isGeocoder(resource: any): resource is Geocoder;
|
18
|
-
relationship(id: string | ResourceId): GeocoderRel;
|
19
|
-
type(): string;
|
20
|
-
}
|
21
|
-
export default Geocoders;
|
22
|
-
export { Geocoder };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}isGeocoder(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="geocoders";export default t;
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Customer } from './customers';
|
4
|
-
import { Attachment } from './attachments';
|
5
|
-
declare type GiftCardRecipientRel = ResourceId & {
|
6
|
-
type: typeof GiftCardRecipients.TYPE;
|
7
|
-
};
|
8
|
-
declare type CustomerRel = ResourceId & {
|
9
|
-
type: 'customers';
|
10
|
-
};
|
11
|
-
interface GiftCardRecipient extends Resource {
|
12
|
-
email?: string;
|
13
|
-
first_name?: string;
|
14
|
-
last_name?: string;
|
15
|
-
customer?: Customer;
|
16
|
-
attachments?: Attachment[];
|
17
|
-
}
|
18
|
-
interface GiftCardRecipientCreate extends ResourceCreate {
|
19
|
-
email: string;
|
20
|
-
first_name?: string;
|
21
|
-
last_name?: string;
|
22
|
-
customer?: CustomerRel;
|
23
|
-
}
|
24
|
-
interface GiftCardRecipientUpdate extends ResourceUpdate {
|
25
|
-
email?: string;
|
26
|
-
first_name?: string;
|
27
|
-
last_name?: string;
|
28
|
-
customer?: CustomerRel;
|
29
|
-
}
|
30
|
-
declare class GiftCardRecipients extends ApiResource {
|
31
|
-
static readonly TYPE: 'gift_card_recipients';
|
32
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GiftCardRecipient>>;
|
33
|
-
create(resource: GiftCardRecipientCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
34
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
35
|
-
update(resource: GiftCardRecipientUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
36
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
37
|
-
isGiftCardRecipient(resource: any): resource is GiftCardRecipient;
|
38
|
-
relationship(id: string | ResourceId): GiftCardRecipientRel;
|
39
|
-
type(): string;
|
40
|
-
}
|
41
|
-
export default GiftCardRecipients;
|
42
|
-
export { GiftCardRecipient, GiftCardRecipientCreate, GiftCardRecipientUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isGiftCardRecipient(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="gift_card_recipients";export default t;
|
@@ -1,79 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Market } from './markets';
|
4
|
-
import { GiftCardRecipient } from './gift_card_recipients';
|
5
|
-
import { Attachment } from './attachments';
|
6
|
-
declare type GiftCardRel = ResourceId & {
|
7
|
-
type: typeof GiftCards.TYPE;
|
8
|
-
};
|
9
|
-
declare type MarketRel = ResourceId & {
|
10
|
-
type: 'markets';
|
11
|
-
};
|
12
|
-
declare type GiftCardRecipientRel = ResourceId & {
|
13
|
-
type: 'gift_card_recipients';
|
14
|
-
};
|
15
|
-
interface GiftCard extends Resource {
|
16
|
-
status?: string;
|
17
|
-
code?: string;
|
18
|
-
currency_code?: string;
|
19
|
-
initial_balance_cents?: number;
|
20
|
-
initial_balance_float?: number;
|
21
|
-
formatted_initial_balance?: string;
|
22
|
-
balance_cents?: number;
|
23
|
-
balance_float?: number;
|
24
|
-
formatted_balance?: string;
|
25
|
-
balance_max_cents?: string;
|
26
|
-
balance_max_float?: number;
|
27
|
-
formatted_balance_max?: string;
|
28
|
-
balance_log?: object[];
|
29
|
-
single_use?: boolean;
|
30
|
-
rechargeable?: boolean;
|
31
|
-
image_url?: string;
|
32
|
-
expires_at?: string;
|
33
|
-
recipient_email?: string;
|
34
|
-
market?: Market;
|
35
|
-
gift_card_recipient?: GiftCardRecipient;
|
36
|
-
attachments?: Attachment[];
|
37
|
-
}
|
38
|
-
interface GiftCardCreate extends ResourceCreate {
|
39
|
-
code?: string;
|
40
|
-
currency_code: string;
|
41
|
-
balance_cents: number;
|
42
|
-
balance_max_cents?: string;
|
43
|
-
single_use?: boolean;
|
44
|
-
rechargeable?: boolean;
|
45
|
-
image_url?: string;
|
46
|
-
expires_at?: string;
|
47
|
-
recipient_email?: string;
|
48
|
-
market?: MarketRel;
|
49
|
-
gift_card_recipient?: GiftCardRecipientRel;
|
50
|
-
}
|
51
|
-
interface GiftCardUpdate extends ResourceUpdate {
|
52
|
-
currency_code?: string;
|
53
|
-
balance_cents?: number;
|
54
|
-
balance_max_cents?: string;
|
55
|
-
single_use?: boolean;
|
56
|
-
rechargeable?: boolean;
|
57
|
-
image_url?: string;
|
58
|
-
expires_at?: string;
|
59
|
-
recipient_email?: string;
|
60
|
-
_purchase?: boolean;
|
61
|
-
_activate?: boolean;
|
62
|
-
_deactivate?: boolean;
|
63
|
-
_balance_change_cents?: number;
|
64
|
-
market?: MarketRel;
|
65
|
-
gift_card_recipient?: GiftCardRecipientRel;
|
66
|
-
}
|
67
|
-
declare class GiftCards extends ApiResource {
|
68
|
-
static readonly TYPE: 'gift_cards';
|
69
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GiftCard>>;
|
70
|
-
create(resource: GiftCardCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
71
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
72
|
-
update(resource: GiftCardUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
73
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
74
|
-
isGiftCard(resource: any): resource is GiftCard;
|
75
|
-
relationship(id: string | ResourceId): GiftCardRel;
|
76
|
-
type(): string;
|
77
|
-
}
|
78
|
-
export default GiftCards;
|
79
|
-
export { GiftCard, GiftCardCreate, GiftCardUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isGiftCard(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="gift_cards";export default t;
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isGoogleGeocoder(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="google_geocoders";export default s;
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isImport(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="imports";export default t;
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isInStockSubscription(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="in_stock_subscriptions";export default t;
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { InventoryStockLocation } from './inventory_stock_locations';
|
4
|
-
import { InventoryReturnLocation } from './inventory_return_locations';
|
5
|
-
import { Attachment } from './attachments';
|
6
|
-
declare type InventoryModelRel = ResourceId & {
|
7
|
-
type: typeof InventoryModels.TYPE;
|
8
|
-
};
|
9
|
-
interface InventoryModel extends Resource {
|
10
|
-
name?: string;
|
11
|
-
strategy?: string;
|
12
|
-
stock_locations_cutoff?: number;
|
13
|
-
inventory_stock_locations?: InventoryStockLocation[];
|
14
|
-
inventory_return_locations?: InventoryReturnLocation[];
|
15
|
-
attachments?: Attachment[];
|
16
|
-
}
|
17
|
-
interface InventoryModelCreate extends ResourceCreate {
|
18
|
-
name: string;
|
19
|
-
strategy: string;
|
20
|
-
stock_locations_cutoff?: number;
|
21
|
-
}
|
22
|
-
interface InventoryModelUpdate extends ResourceUpdate {
|
23
|
-
name?: string;
|
24
|
-
strategy?: string;
|
25
|
-
stock_locations_cutoff?: number;
|
26
|
-
}
|
27
|
-
declare class InventoryModels extends ApiResource {
|
28
|
-
static readonly TYPE: 'inventory_models';
|
29
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryModel>>;
|
30
|
-
create(resource: InventoryModelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
31
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
32
|
-
update(resource: InventoryModelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
33
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
34
|
-
isInventoryModel(resource: any): resource is InventoryModel;
|
35
|
-
relationship(id: string | ResourceId): InventoryModelRel;
|
36
|
-
type(): string;
|
37
|
-
}
|
38
|
-
export default InventoryModels;
|
39
|
-
export { InventoryModel, InventoryModelCreate, InventoryModelUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isInventoryModel(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="inventory_models";export default t;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { StockLocation } from './stock_locations';
|
4
|
-
import { InventoryModel } from './inventory_models';
|
5
|
-
declare type InventoryReturnLocationRel = ResourceId & {
|
6
|
-
type: typeof InventoryReturnLocations.TYPE;
|
7
|
-
};
|
8
|
-
declare type StockLocationRel = ResourceId & {
|
9
|
-
type: 'stock_locations';
|
10
|
-
};
|
11
|
-
declare type InventoryModelRel = ResourceId & {
|
12
|
-
type: 'inventory_models';
|
13
|
-
};
|
14
|
-
interface InventoryReturnLocation extends Resource {
|
15
|
-
priority?: number;
|
16
|
-
stock_location?: StockLocation;
|
17
|
-
inventory_model?: InventoryModel;
|
18
|
-
}
|
19
|
-
interface InventoryReturnLocationCreate extends ResourceCreate {
|
20
|
-
priority: number;
|
21
|
-
stock_location: StockLocationRel;
|
22
|
-
inventory_model: InventoryModelRel;
|
23
|
-
}
|
24
|
-
interface InventoryReturnLocationUpdate extends ResourceUpdate {
|
25
|
-
priority?: number;
|
26
|
-
stock_location?: StockLocationRel;
|
27
|
-
inventory_model?: InventoryModelRel;
|
28
|
-
}
|
29
|
-
declare class InventoryReturnLocations extends ApiResource {
|
30
|
-
static readonly TYPE: 'inventory_return_locations';
|
31
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
|
32
|
-
create(resource: InventoryReturnLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
33
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
34
|
-
update(resource: InventoryReturnLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
35
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
36
|
-
isInventoryReturnLocation(resource: any): resource is InventoryReturnLocation;
|
37
|
-
relationship(id: string | ResourceId): InventoryReturnLocationRel;
|
38
|
-
type(): string;
|
39
|
-
}
|
40
|
-
export default InventoryReturnLocations;
|
41
|
-
export { InventoryReturnLocation, InventoryReturnLocationCreate, InventoryReturnLocationUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isInventoryReturnLocation(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="inventory_return_locations";export default t;
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { StockLocation } from './stock_locations';
|
4
|
-
import { InventoryModel } from './inventory_models';
|
5
|
-
declare type InventoryStockLocationRel = ResourceId & {
|
6
|
-
type: typeof InventoryStockLocations.TYPE;
|
7
|
-
};
|
8
|
-
declare type StockLocationRel = ResourceId & {
|
9
|
-
type: 'stock_locations';
|
10
|
-
};
|
11
|
-
declare type InventoryModelRel = ResourceId & {
|
12
|
-
type: 'inventory_models';
|
13
|
-
};
|
14
|
-
interface InventoryStockLocation extends Resource {
|
15
|
-
priority?: number;
|
16
|
-
on_hold?: boolean;
|
17
|
-
stock_location?: StockLocation;
|
18
|
-
inventory_model?: InventoryModel;
|
19
|
-
}
|
20
|
-
interface InventoryStockLocationCreate extends ResourceCreate {
|
21
|
-
priority: number;
|
22
|
-
on_hold?: boolean;
|
23
|
-
stock_location: StockLocationRel;
|
24
|
-
inventory_model: InventoryModelRel;
|
25
|
-
}
|
26
|
-
interface InventoryStockLocationUpdate extends ResourceUpdate {
|
27
|
-
priority?: number;
|
28
|
-
on_hold?: boolean;
|
29
|
-
stock_location?: StockLocationRel;
|
30
|
-
inventory_model?: InventoryModelRel;
|
31
|
-
}
|
32
|
-
declare class InventoryStockLocations extends ApiResource {
|
33
|
-
static readonly TYPE: 'inventory_stock_locations';
|
34
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>>;
|
35
|
-
create(resource: InventoryStockLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
36
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
37
|
-
update(resource: InventoryStockLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
38
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
39
|
-
isInventoryStockLocation(resource: any): resource is InventoryStockLocation;
|
40
|
-
relationship(id: string | ResourceId): InventoryStockLocationRel;
|
41
|
-
type(): string;
|
42
|
-
}
|
43
|
-
export default InventoryStockLocations;
|
44
|
-
export { InventoryStockLocation, InventoryStockLocationCreate, InventoryStockLocationUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isInventoryStockLocation(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="inventory_stock_locations";export default t;
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as a}from"../resource";class t extends a{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isKlarnaGateway(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="klarna_gateways";export default t;
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Order } from './orders';
|
4
|
-
import { PaymentGateway } from './payment_gateways';
|
5
|
-
declare type KlarnaPaymentRel = ResourceId & {
|
6
|
-
type: typeof KlarnaPayments.TYPE;
|
7
|
-
};
|
8
|
-
declare type OrderRel = ResourceId & {
|
9
|
-
type: 'orders';
|
10
|
-
};
|
11
|
-
interface KlarnaPayment extends Resource {
|
12
|
-
session_id?: string;
|
13
|
-
client_token?: string;
|
14
|
-
payment_methods?: object[];
|
15
|
-
auth_token?: string;
|
16
|
-
order?: Order;
|
17
|
-
payment_gateway?: PaymentGateway;
|
18
|
-
}
|
19
|
-
interface KlarnaPaymentCreate extends ResourceCreate {
|
20
|
-
order: OrderRel;
|
21
|
-
}
|
22
|
-
interface KlarnaPaymentUpdate extends ResourceUpdate {
|
23
|
-
auth_token?: string;
|
24
|
-
_update?: boolean;
|
25
|
-
order?: OrderRel;
|
26
|
-
}
|
27
|
-
declare class KlarnaPayments extends ApiResource {
|
28
|
-
static readonly TYPE: 'klarna_payments';
|
29
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>>;
|
30
|
-
create(resource: KlarnaPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
|
31
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
|
32
|
-
update(resource: KlarnaPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
|
33
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
34
|
-
isKlarnaPayment(resource: any): resource is KlarnaPayment;
|
35
|
-
relationship(id: string | ResourceId): KlarnaPaymentRel;
|
36
|
-
type(): string;
|
37
|
-
}
|
38
|
-
export default KlarnaPayments;
|
39
|
-
export { KlarnaPayment, KlarnaPaymentCreate, KlarnaPaymentUpdate };
|