@commercelayer/sdk 4.3.0 → 5.0.0-alpha.2
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 +12 -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} +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} +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/{esm/resource.d.ts → resource.d.ts} +2 -0
- package/lib/resource.js +1 -0
- package/lib/{esm/resources → resources}/addresses.d.ts +1 -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/{esm/resources → resources}/adyen_gateways.d.ts +2 -0
- package/lib/resources/adyen_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/adyen_payments.d.ts +2 -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 +3 -0
- package/lib/resources/authorizations.js +1 -0
- package/lib/{esm/resources → resources}/avalara_accounts.d.ts +3 -0
- package/lib/resources/avalara_accounts.js +1 -0
- package/lib/{cjs/resources → resources}/billing_info_validation_rules.d.ts +1 -0
- package/lib/resources/billing_info_validation_rules.js +1 -0
- package/lib/{esm/resources → resources}/bing_geocoders.d.ts +2 -0
- package/lib/resources/bing_geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/braintree_gateways.d.ts +2 -0
- package/lib/resources/braintree_gateways.js +1 -0
- package/lib/{esm/resources → resources}/braintree_payments.d.ts +2 -0
- package/lib/resources/braintree_payments.js +1 -0
- package/lib/{esm/resources → resources}/bundles.d.ts +4 -0
- package/lib/resources/bundles.js +1 -0
- package/lib/{esm/resources → resources}/captures.d.ts +3 -0
- package/lib/resources/captures.js +1 -0
- package/lib/{esm/resources → resources}/carrier_accounts.d.ts +2 -0
- package/lib/resources/carrier_accounts.js +1 -0
- package/lib/{esm/resources → resources}/checkout_com_gateways.d.ts +2 -0
- package/lib/resources/checkout_com_gateways.js +1 -0
- package/lib/{esm/resources → resources}/checkout_com_payments.d.ts +2 -0
- package/lib/resources/checkout_com_payments.js +1 -0
- package/lib/{esm/resources → resources}/coupon_codes_promotion_rules.d.ts +1 -0
- package/lib/resources/coupon_codes_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/coupon_recipients.d.ts +2 -0
- package/lib/resources/coupon_recipients.js +1 -0
- package/lib/{cjs/resources → resources}/coupons.d.ts +1 -0
- package/lib/resources/coupons.js +1 -0
- package/lib/{esm/resources → resources}/customer_addresses.d.ts +2 -0
- package/lib/resources/customer_addresses.js +1 -0
- package/lib/{esm/resources → resources}/customer_groups.d.ts +3 -0
- package/lib/resources/customer_groups.js +1 -0
- package/lib/{esm/resources → resources}/customer_password_resets.d.ts +1 -0
- package/lib/resources/customer_password_resets.js +1 -0
- package/lib/{cjs/resources → resources}/customer_payment_sources.d.ts +1 -0
- package/lib/resources/customer_payment_sources.js +1 -0
- package/lib/{cjs/resources → resources}/customer_subscriptions.d.ts +1 -0
- package/lib/resources/customer_subscriptions.js +1 -0
- package/lib/{esm/resources → resources}/customers.d.ts +8 -0
- package/lib/resources/customers.js +1 -0
- package/lib/{esm/resources → resources}/delivery_lead_times.d.ts +3 -0
- package/lib/resources/delivery_lead_times.js +1 -0
- package/lib/{cjs/resources → resources}/event_callbacks.d.ts +1 -0
- package/lib/resources/event_callbacks.js +1 -0
- package/lib/{esm/resources → resources}/external_gateways.d.ts +2 -0
- package/lib/resources/external_gateways.js +1 -0
- package/lib/{esm/resources → resources}/external_payments.d.ts +3 -0
- package/lib/resources/external_payments.js +1 -0
- package/lib/{esm/resources → resources}/external_promotions.d.ts +5 -0
- package/lib/resources/external_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/external_tax_calculators.d.ts +3 -0
- package/lib/resources/external_tax_calculators.js +1 -0
- package/lib/{esm/resources → resources}/fixed_amount_promotions.d.ts +5 -0
- package/lib/resources/fixed_amount_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/fixed_price_promotions.d.ts +7 -0
- package/lib/resources/fixed_price_promotions.js +1 -0
- package/lib/{esm/resources → resources}/free_gift_promotions.d.ts +7 -0
- package/lib/resources/free_gift_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/free_shipping_promotions.d.ts +5 -0
- package/lib/resources/free_shipping_promotions.js +1 -0
- package/lib/{esm/resources → resources}/geocoders.d.ts +2 -0
- package/lib/resources/geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/gift_card_recipients.d.ts +2 -0
- package/lib/resources/gift_card_recipients.js +1 -0
- package/lib/{esm/resources → resources}/gift_cards.d.ts +3 -0
- package/lib/resources/gift_cards.js +1 -0
- package/lib/{cjs/resources → resources}/google_geocoders.d.ts +2 -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/{esm/resources → resources}/in_stock_subscriptions.d.ts +3 -0
- package/lib/resources/in_stock_subscriptions.js +1 -0
- package/lib/{esm/resources → resources}/inventory_models.d.ts +3 -0
- package/lib/resources/inventory_models.js +1 -0
- package/lib/{esm/resources → resources}/inventory_return_locations.d.ts +2 -0
- package/lib/resources/inventory_return_locations.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_stock_locations.d.ts +2 -0
- package/lib/resources/inventory_stock_locations.js +1 -0
- package/lib/{cjs/resources → resources}/klarna_gateways.d.ts +2 -0
- package/lib/resources/klarna_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/klarna_payments.d.ts +2 -0
- package/lib/resources/klarna_payments.js +1 -0
- package/lib/{esm/resources → resources}/line_item_options.d.ts +2 -0
- package/lib/resources/line_item_options.js +1 -0
- package/lib/{esm/resources → resources}/line_items.d.ts +4 -0
- package/lib/resources/line_items.js +1 -0
- package/lib/{cjs/resources → resources}/manual_gateways.d.ts +1 -0
- package/lib/resources/manual_gateways.js +1 -0
- package/lib/{esm/resources → resources}/manual_tax_calculators.d.ts +4 -0
- package/lib/resources/manual_tax_calculators.js +1 -0
- package/lib/{esm/resources → resources}/markets.d.ts +6 -0
- package/lib/resources/markets.js +1 -0
- package/lib/{cjs/resources → resources}/merchants.d.ts +2 -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 +3 -0
- package/lib/resources/order_copies.js +1 -0
- package/lib/{esm/resources → resources}/order_subscriptions.d.ts +5 -0
- package/lib/resources/order_subscriptions.js +1 -0
- package/lib/{esm/resources → resources}/order_validation_rules.d.ts +1 -0
- package/lib/resources/order_validation_rules.js +1 -0
- package/lib/{esm/resources → resources}/orders.d.ts +16 -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/{esm/resources → resources}/packages.d.ts +3 -0
- package/lib/resources/packages.js +1 -0
- package/lib/{cjs/resources → resources}/parcel_line_items.d.ts +2 -0
- package/lib/resources/parcel_line_items.js +1 -0
- package/lib/{cjs/resources → resources}/parcels.d.ts +4 -0
- package/lib/resources/parcels.js +1 -0
- package/lib/{cjs/resources → resources}/payment_gateways.d.ts +1 -0
- package/lib/resources/payment_gateways.js +1 -0
- package/lib/{esm/resources → resources}/payment_methods.d.ts +3 -0
- package/lib/resources/payment_methods.js +1 -0
- package/lib/{esm/resources → resources}/paypal_gateways.d.ts +2 -0
- package/lib/resources/paypal_gateways.js +1 -0
- package/lib/{esm/resources → resources}/paypal_payments.d.ts +2 -0
- package/lib/resources/paypal_payments.js +1 -0
- package/lib/{esm/resources → resources}/percentage_discount_promotions.d.ts +7 -0
- package/lib/resources/percentage_discount_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/price_lists.d.ts +2 -0
- package/lib/resources/price_lists.js +1 -0
- package/lib/{esm/resources → resources}/prices.d.ts +3 -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/{esm/resources → resources}/promotions.d.ts +5 -0
- package/lib/resources/promotions.js +1 -0
- package/lib/{cjs/resources → resources}/refunds.d.ts +2 -0
- package/lib/resources/refunds.js +1 -0
- package/lib/{cjs/resources → resources}/return_line_items.d.ts +2 -0
- package/lib/resources/return_line_items.js +1 -0
- package/lib/{esm/resources → resources}/returns.d.ts +7 -0
- package/lib/resources/returns.js +1 -0
- package/lib/{cjs/resources → resources}/shipments.d.ts +13 -0
- package/lib/resources/shipments.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_categories.d.ts +2 -0
- package/lib/resources/shipping_categories.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_methods.d.ts +5 -0
- package/lib/resources/shipping_methods.js +1 -0
- package/lib/{esm/resources → resources}/shipping_zones.d.ts +1 -0
- package/lib/resources/shipping_zones.js +1 -0
- package/lib/{cjs/resources → resources}/sku_list_items.d.ts +2 -0
- package/lib/resources/sku_list_items.js +1 -0
- package/lib/{esm/resources → resources}/sku_list_promotion_rules.d.ts +2 -0
- package/lib/resources/sku_list_promotion_rules.js +1 -0
- package/lib/{esm/resources → resources}/sku_lists.d.ts +3 -0
- package/lib/resources/sku_lists.js +1 -0
- package/lib/{cjs/resources → resources}/sku_options.d.ts +2 -0
- package/lib/resources/sku_options.js +1 -0
- package/lib/{cjs/resources → resources}/skus.d.ts +6 -0
- package/lib/resources/skus.js +1 -0
- package/lib/{esm/resources → resources}/stock_items.d.ts +3 -0
- package/lib/resources/stock_items.js +1 -0
- package/lib/{esm/resources → resources}/stock_line_items.d.ts +3 -0
- package/lib/resources/stock_line_items.js +1 -0
- package/lib/{esm/resources → resources}/stock_locations.d.ts +6 -0
- package/lib/resources/stock_locations.js +1 -0
- package/lib/{cjs/resources → resources}/stock_transfers.d.ts +5 -0
- package/lib/resources/stock_transfers.js +1 -0
- package/lib/{cjs/resources → resources}/stripe_gateways.d.ts +2 -0
- package/lib/resources/stripe_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/stripe_payments.d.ts +2 -0
- package/lib/resources/stripe_payments.js +1 -0
- package/lib/{esm/resources → resources}/tax_calculators.d.ts +3 -0
- package/lib/resources/tax_calculators.js +1 -0
- package/lib/{esm/resources → resources}/tax_categories.d.ts +2 -0
- package/lib/resources/tax_categories.js +1 -0
- package/lib/{esm/resources → resources}/tax_rules.d.ts +1 -0
- package/lib/resources/tax_rules.js +1 -0
- package/lib/{esm/resources → resources}/taxjar_accounts.d.ts +3 -0
- package/lib/resources/taxjar_accounts.js +1 -0
- package/lib/{esm/resources → resources}/transactions.d.ts +1 -0
- package/lib/resources/transactions.js +1 -0
- package/lib/{esm/resources → resources}/voids.d.ts +2 -0
- package/lib/resources/voids.js +1 -0
- package/lib/{cjs/resources → resources}/webhooks.d.ts +1 -0
- package/lib/resources/webhooks.js +1 -0
- package/lib/{cjs/resources → resources}/wire_transfers.d.ts +1 -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 +11 -12
- 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.d.ts +0 -74
- 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.js +0 -1
- package/lib/cjs/resources/authorizations.js +0 -1
- package/lib/cjs/resources/avalara_accounts.d.ts +0 -49
- 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 -70
- 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.d.ts +0 -43
- package/lib/cjs/resources/checkout_com_gateways.js +0 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +0 -48
- package/lib/cjs/resources/checkout_com_payments.js +0 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +0 -58
- 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.d.ts +0 -52
- 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.js +0 -1
- package/lib/cjs/resources/external_gateways.d.ts +0 -47
- 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 -81
- 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 -83
- 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.d.ts +0 -90
- 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.d.ts +0 -22
- package/lib/cjs/resources/geocoders.js +0 -1
- package/lib/cjs/resources/gift_card_recipients.js +0 -1
- package/lib/cjs/resources/gift_cards.d.ts +0 -79
- 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.d.ts +0 -56
- package/lib/cjs/resources/in_stock_subscriptions.js +0 -1
- package/lib/cjs/resources/inventory_models.d.ts +0 -39
- package/lib/cjs/resources/inventory_models.js +0 -1
- package/lib/cjs/resources/inventory_return_locations.d.ts +0 -41
- 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.d.ts +0 -55
- 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.js +0 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +0 -45
- 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.d.ts +0 -62
- package/lib/cjs/resources/order_subscriptions.js +0 -1
- package/lib/cjs/resources/order_validation_rules.d.ts +0 -19
- 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.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.js +0 -1
- package/lib/cjs/resources/payment_gateways.js +0 -1
- package/lib/cjs/resources/payment_methods.d.ts +0 -56
- package/lib/cjs/resources/payment_methods.js +0 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +0 -37
- 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 -90
- package/lib/cjs/resources/percentage_discount_promotions.js +0 -1
- package/lib/cjs/resources/price_lists.js +0 -1
- package/lib/cjs/resources/prices.d.ts +0 -54
- package/lib/cjs/resources/prices.js +0 -1
- package/lib/cjs/resources/promotion_rules.js +0 -1
- package/lib/cjs/resources/promotions.d.ts +0 -36
- 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.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.d.ts +0 -66
- 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.d.ts +0 -68
- package/lib/cjs/resources/tax_rules.js +0 -1
- package/lib/cjs/resources/taxjar_accounts.d.ts +0 -40
- 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.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.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.d.ts +0 -156
- package/lib/esm/resources/attachments.js +0 -1
- package/lib/esm/resources/authorizations.d.ts +0 -54
- package/lib/esm/resources/authorizations.js +0 -1
- 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.js +0 -1
- package/lib/esm/resources/checkout_com_payments.js +0 -1
- 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.js +0 -1
- package/lib/esm/resources/delivery_lead_times.js +0 -1
- package/lib/esm/resources/event_callbacks.d.ts +0 -23
- package/lib/esm/resources/event_callbacks.js +0 -1
- 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.d.ts +0 -92
- package/lib/esm/resources/fixed_price_promotions.js +0 -1
- package/lib/esm/resources/free_gift_promotions.js +0 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +0 -78
- package/lib/esm/resources/free_shipping_promotions.js +0 -1
- 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.js +0 -1
- package/lib/esm/resources/google_geocoders.d.ts +0 -33
- 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.js +0 -1
- package/lib/esm/resources/inventory_models.js +0 -1
- 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.d.ts +0 -42
- 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.js +0 -1
- package/lib/esm/resources/line_items.js +0 -1
- package/lib/esm/resources/manual_gateways.d.ts +0 -32
- package/lib/esm/resources/manual_gateways.js +0 -1
- 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.js +0 -1
- package/lib/esm/resources/order_validation_rules.js +0 -1
- package/lib/esm/resources/orders.js +0 -1
- package/lib/esm/resources/organization.d.ts +0 -32
- 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.d.ts +0 -104
- 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.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.js +0 -1
- package/lib/esm/resources/promotion_rules.d.ts +0 -24
- 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.d.ts +0 -69
- 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.js +0 -1
- package/lib/esm/resources/sku_lists.js +0 -1
- package/lib/esm/resources/sku_options.d.ts +0 -54
- 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.js +0 -1
- 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,48 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { StockLocation } from './stock_locations';
|
4
|
-
import { ShippingMethod } from './shipping_methods';
|
5
|
-
import { Attachment } from './attachments';
|
6
|
-
declare type DeliveryLeadTimeRel = ResourceRel & {
|
7
|
-
type: typeof DeliveryLeadTimes.TYPE;
|
8
|
-
};
|
9
|
-
declare type StockLocationRel = ResourceRel & {
|
10
|
-
type: 'stock_locations';
|
11
|
-
};
|
12
|
-
declare type ShippingMethodRel = ResourceRel & {
|
13
|
-
type: 'shipping_methods';
|
14
|
-
};
|
15
|
-
interface DeliveryLeadTime extends Resource {
|
16
|
-
min_hours?: number;
|
17
|
-
max_hours?: number;
|
18
|
-
min_days?: number;
|
19
|
-
max_days?: number;
|
20
|
-
stock_location?: StockLocation;
|
21
|
-
shipping_method?: ShippingMethod;
|
22
|
-
attachments?: Attachment[];
|
23
|
-
}
|
24
|
-
interface DeliveryLeadTimeCreate extends ResourceCreate {
|
25
|
-
min_hours: number;
|
26
|
-
max_hours: number;
|
27
|
-
stock_location: StockLocationRel;
|
28
|
-
shipping_method: ShippingMethodRel;
|
29
|
-
}
|
30
|
-
interface DeliveryLeadTimeUpdate extends ResourceUpdate {
|
31
|
-
min_hours?: number;
|
32
|
-
max_hours?: number;
|
33
|
-
stock_location?: StockLocationRel;
|
34
|
-
shipping_method?: ShippingMethodRel;
|
35
|
-
}
|
36
|
-
declare class DeliveryLeadTimes extends ApiResource {
|
37
|
-
static readonly TYPE: 'delivery_lead_times';
|
38
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
|
39
|
-
create(resource: DeliveryLeadTimeCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
40
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
41
|
-
update(resource: DeliveryLeadTimeUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
42
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
43
|
-
isDeliveryLeadTime(resource: any): resource is DeliveryLeadTime;
|
44
|
-
relationship(id: string | ResourceId | null): DeliveryLeadTimeRel;
|
45
|
-
type(): string;
|
46
|
-
}
|
47
|
-
export default DeliveryLeadTimes;
|
48
|
-
export { DeliveryLeadTime, DeliveryLeadTimeCreate, DeliveryLeadTimeUpdate };
|
@@ -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,r){return this.resources.create(Object.assign(Object.assign({},t),{type:DeliveryLeadTimes.TYPE}),e,r)}async retrieve(t,e,r){return this.resources.retrieve({type:DeliveryLeadTimes.TYPE,id:t},e,r)}async update(t,e,r){return this.resources.update(Object.assign(Object.assign({},t),{type:DeliveryLeadTimes.TYPE}),e,r)}async delete(t,e){await this.resources.delete({type:DeliveryLeadTimes.TYPE,id:t},e)}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)}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,47 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { PaymentMethod } from './payment_methods';
|
4
|
-
import { ExternalPayment } from './external_payments';
|
5
|
-
declare type ExternalGatewayRel = ResourceRel & {
|
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 | null): ExternalGatewayRel;
|
44
|
-
type(): string;
|
45
|
-
}
|
46
|
-
export default ExternalGateways;
|
47
|
-
export { ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate };
|
@@ -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,r){return this.resources.list({type:ExternalGateways.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalGateways.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:ExternalGateways.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalGateways.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:ExternalGateways.TYPE,id:e},r)}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,40 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Order } from './orders';
|
4
|
-
import { PaymentGateway } from './payment_gateways';
|
5
|
-
import { CustomerPaymentSource } from './customer_payment_sources';
|
6
|
-
declare type ExternalPaymentRel = ResourceRel & {
|
7
|
-
type: typeof ExternalPayments.TYPE;
|
8
|
-
};
|
9
|
-
declare type OrderRel = ResourceRel & {
|
10
|
-
type: 'orders';
|
11
|
-
};
|
12
|
-
interface ExternalPayment extends Resource {
|
13
|
-
payment_source_token?: string;
|
14
|
-
options?: object;
|
15
|
-
order?: Order;
|
16
|
-
payment_gateway?: PaymentGateway;
|
17
|
-
wallet?: CustomerPaymentSource;
|
18
|
-
}
|
19
|
-
interface ExternalPaymentCreate extends ResourceCreate {
|
20
|
-
payment_source_token: string;
|
21
|
-
options?: object;
|
22
|
-
order: OrderRel;
|
23
|
-
}
|
24
|
-
interface ExternalPaymentUpdate extends ResourceUpdate {
|
25
|
-
options?: object;
|
26
|
-
order?: OrderRel;
|
27
|
-
}
|
28
|
-
declare class ExternalPayments extends ApiResource {
|
29
|
-
static readonly TYPE: 'external_payments';
|
30
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>>;
|
31
|
-
create(resource: ExternalPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
32
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
33
|
-
update(resource: ExternalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
34
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
35
|
-
isExternalPayment(resource: any): resource is ExternalPayment;
|
36
|
-
relationship(id: string | ResourceId | null): ExternalPaymentRel;
|
37
|
-
type(): string;
|
38
|
-
}
|
39
|
-
export default ExternalPayments;
|
40
|
-
export { ExternalPayment, ExternalPaymentCreate, ExternalPaymentUpdate };
|
@@ -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,r){return this.resources.list({type:ExternalPayments.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalPayments.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:ExternalPayments.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalPayments.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:ExternalPayments.TYPE,id:e},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,81 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { 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 ExternalPromotionRel = ResourceRel & {
|
10
|
-
type: typeof ExternalPromotions.TYPE;
|
11
|
-
};
|
12
|
-
declare type MarketRel = ResourceRel & {
|
13
|
-
type: 'markets';
|
14
|
-
};
|
15
|
-
declare type PromotionRuleRel = ResourceRel & {
|
16
|
-
type: 'promotion_rules';
|
17
|
-
};
|
18
|
-
declare type OrderAmountPromotionRuleRel = ResourceRel & {
|
19
|
-
type: 'order_amount_promotion_rules';
|
20
|
-
};
|
21
|
-
declare type SkuListPromotionRuleRel = ResourceRel & {
|
22
|
-
type: 'sku_list_promotion_rules';
|
23
|
-
};
|
24
|
-
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
25
|
-
type: 'coupon_codes_promotion_rules';
|
26
|
-
};
|
27
|
-
interface ExternalPromotion extends Resource {
|
28
|
-
name?: string;
|
29
|
-
currency_code?: string;
|
30
|
-
starts_at?: string;
|
31
|
-
expires_at?: string;
|
32
|
-
total_usage_limit?: number;
|
33
|
-
total_usage_count?: number;
|
34
|
-
active?: boolean;
|
35
|
-
promotion_url?: string;
|
36
|
-
market?: Market;
|
37
|
-
promotion_rules?: PromotionRule[];
|
38
|
-
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
39
|
-
sku_list_promotion_rule?: SkuListPromotionRule;
|
40
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
41
|
-
attachments?: Attachment[];
|
42
|
-
}
|
43
|
-
interface ExternalPromotionCreate extends ResourceCreate {
|
44
|
-
name: string;
|
45
|
-
currency_code?: string;
|
46
|
-
starts_at: string;
|
47
|
-
expires_at: string;
|
48
|
-
total_usage_limit: number;
|
49
|
-
promotion_url: string;
|
50
|
-
market?: MarketRel;
|
51
|
-
promotion_rules?: PromotionRuleRel[];
|
52
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
53
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
54
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
55
|
-
}
|
56
|
-
interface ExternalPromotionUpdate extends ResourceUpdate {
|
57
|
-
name?: string;
|
58
|
-
currency_code?: string;
|
59
|
-
starts_at?: string;
|
60
|
-
expires_at?: string;
|
61
|
-
total_usage_limit?: number;
|
62
|
-
promotion_url?: string;
|
63
|
-
market?: MarketRel;
|
64
|
-
promotion_rules?: PromotionRuleRel[];
|
65
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
66
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
67
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
68
|
-
}
|
69
|
-
declare class ExternalPromotions extends ApiResource {
|
70
|
-
static readonly TYPE: 'external_promotions';
|
71
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPromotion>>;
|
72
|
-
create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
73
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
74
|
-
update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
75
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
76
|
-
isExternalPromotion(resource: any): resource is ExternalPromotion;
|
77
|
-
relationship(id: string | ResourceId | null): ExternalPromotionRel;
|
78
|
-
type(): string;
|
79
|
-
}
|
80
|
-
export default ExternalPromotions;
|
81
|
-
export { ExternalPromotion, ExternalPromotionCreate, ExternalPromotionUpdate };
|
@@ -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,s){return this.resources.list({type:ExternalPromotions.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalPromotions.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:ExternalPromotions.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalPromotions.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:ExternalPromotions.TYPE,id:e},s)}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,s){return this.resources.list({type:ExternalTaxCalculators.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalTaxCalculators.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:ExternalTaxCalculators.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalTaxCalculators.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:ExternalTaxCalculators.TYPE,id:e},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,83 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { 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 FixedAmountPromotionRel = ResourceRel & {
|
10
|
-
type: typeof FixedAmountPromotions.TYPE;
|
11
|
-
};
|
12
|
-
declare type MarketRel = ResourceRel & {
|
13
|
-
type: 'markets';
|
14
|
-
};
|
15
|
-
declare type PromotionRuleRel = ResourceRel & {
|
16
|
-
type: 'promotion_rules';
|
17
|
-
};
|
18
|
-
declare type OrderAmountPromotionRuleRel = ResourceRel & {
|
19
|
-
type: 'order_amount_promotion_rules';
|
20
|
-
};
|
21
|
-
declare type SkuListPromotionRuleRel = ResourceRel & {
|
22
|
-
type: 'sku_list_promotion_rules';
|
23
|
-
};
|
24
|
-
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
25
|
-
type: 'coupon_codes_promotion_rules';
|
26
|
-
};
|
27
|
-
interface FixedAmountPromotion extends Resource {
|
28
|
-
name?: string;
|
29
|
-
currency_code?: string;
|
30
|
-
starts_at?: string;
|
31
|
-
expires_at?: string;
|
32
|
-
total_usage_limit?: number;
|
33
|
-
total_usage_count?: number;
|
34
|
-
active?: boolean;
|
35
|
-
fixed_amount_cents?: number;
|
36
|
-
fixed_amount_float?: number;
|
37
|
-
formatted_fixed_amount?: string;
|
38
|
-
market?: Market;
|
39
|
-
promotion_rules?: PromotionRule[];
|
40
|
-
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
41
|
-
sku_list_promotion_rule?: SkuListPromotionRule;
|
42
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
43
|
-
attachments?: Attachment[];
|
44
|
-
}
|
45
|
-
interface FixedAmountPromotionCreate extends ResourceCreate {
|
46
|
-
name: string;
|
47
|
-
currency_code?: string;
|
48
|
-
starts_at: string;
|
49
|
-
expires_at: string;
|
50
|
-
total_usage_limit: number;
|
51
|
-
fixed_amount_cents: number;
|
52
|
-
market?: MarketRel;
|
53
|
-
promotion_rules?: PromotionRuleRel[];
|
54
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
55
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
56
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
57
|
-
}
|
58
|
-
interface FixedAmountPromotionUpdate extends ResourceUpdate {
|
59
|
-
name?: string;
|
60
|
-
currency_code?: string;
|
61
|
-
starts_at?: string;
|
62
|
-
expires_at?: string;
|
63
|
-
total_usage_limit?: number;
|
64
|
-
fixed_amount_cents?: number;
|
65
|
-
market?: MarketRel;
|
66
|
-
promotion_rules?: PromotionRuleRel[];
|
67
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
68
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
69
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
70
|
-
}
|
71
|
-
declare class FixedAmountPromotions extends ApiResource {
|
72
|
-
static readonly TYPE: 'fixed_amount_promotions';
|
73
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FixedAmountPromotion>>;
|
74
|
-
create(resource: FixedAmountPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
75
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
76
|
-
update(resource: FixedAmountPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
77
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
78
|
-
isFixedAmountPromotion(resource: any): resource is FixedAmountPromotion;
|
79
|
-
relationship(id: string | ResourceId | null): FixedAmountPromotionRel;
|
80
|
-
type(): string;
|
81
|
-
}
|
82
|
-
export default FixedAmountPromotions;
|
83
|
-
export { FixedAmountPromotion, FixedAmountPromotionCreate, FixedAmountPromotionUpdate };
|
@@ -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,r){return this.resources.list({type:FixedAmountPromotions.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:FixedAmountPromotions.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:FixedAmountPromotions.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:FixedAmountPromotions.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:FixedAmountPromotions.TYPE,id:e},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)}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,90 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { 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 = ResourceRel & {
|
12
|
-
type: typeof FreeGiftPromotions.TYPE;
|
13
|
-
};
|
14
|
-
declare type MarketRel = ResourceRel & {
|
15
|
-
type: 'markets';
|
16
|
-
};
|
17
|
-
declare type PromotionRuleRel = ResourceRel & {
|
18
|
-
type: 'promotion_rules';
|
19
|
-
};
|
20
|
-
declare type OrderAmountPromotionRuleRel = ResourceRel & {
|
21
|
-
type: 'order_amount_promotion_rules';
|
22
|
-
};
|
23
|
-
declare type SkuListPromotionRuleRel = ResourceRel & {
|
24
|
-
type: 'sku_list_promotion_rules';
|
25
|
-
};
|
26
|
-
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
27
|
-
type: 'coupon_codes_promotion_rules';
|
28
|
-
};
|
29
|
-
declare type SkuListRel = ResourceRel & {
|
30
|
-
type: 'sku_lists';
|
31
|
-
};
|
32
|
-
interface FreeGiftPromotion extends Resource {
|
33
|
-
name?: string;
|
34
|
-
currency_code?: string;
|
35
|
-
starts_at?: string;
|
36
|
-
expires_at?: string;
|
37
|
-
total_usage_limit?: number;
|
38
|
-
total_usage_count?: number;
|
39
|
-
active?: boolean;
|
40
|
-
max_quantity?: number;
|
41
|
-
market?: Market;
|
42
|
-
promotion_rules?: PromotionRule[];
|
43
|
-
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
44
|
-
sku_list_promotion_rule?: SkuListPromotionRule;
|
45
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
46
|
-
attachments?: Attachment[];
|
47
|
-
sku_list?: SkuList;
|
48
|
-
skus?: Sku[];
|
49
|
-
}
|
50
|
-
interface FreeGiftPromotionCreate extends ResourceCreate {
|
51
|
-
name: string;
|
52
|
-
currency_code?: string;
|
53
|
-
starts_at: string;
|
54
|
-
expires_at: string;
|
55
|
-
total_usage_limit: number;
|
56
|
-
max_quantity?: 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
|
-
sku_list: SkuListRel;
|
63
|
-
}
|
64
|
-
interface FreeGiftPromotionUpdate extends ResourceUpdate {
|
65
|
-
name?: string;
|
66
|
-
currency_code?: string;
|
67
|
-
starts_at?: string;
|
68
|
-
expires_at?: string;
|
69
|
-
total_usage_limit?: number;
|
70
|
-
max_quantity?: number;
|
71
|
-
market?: MarketRel;
|
72
|
-
promotion_rules?: PromotionRuleRel[];
|
73
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
74
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
75
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
76
|
-
sku_list?: SkuListRel;
|
77
|
-
}
|
78
|
-
declare class FreeGiftPromotions extends ApiResource {
|
79
|
-
static readonly TYPE: 'free_gift_promotions';
|
80
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FreeGiftPromotion>>;
|
81
|
-
create(resource: FreeGiftPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
82
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
83
|
-
update(resource: FreeGiftPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
84
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
85
|
-
isFreeGiftPromotion(resource: any): resource is FreeGiftPromotion;
|
86
|
-
relationship(id: string | ResourceId | null): FreeGiftPromotionRel;
|
87
|
-
type(): string;
|
88
|
-
}
|
89
|
-
export default FreeGiftPromotions;
|
90
|
-
export { FreeGiftPromotion, FreeGiftPromotionCreate, FreeGiftPromotionUpdate };
|
@@ -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,s){return this.resources.list({type:FreeGiftPromotions.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:FreeGiftPromotions.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:FreeGiftPromotions.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:FreeGiftPromotions.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:FreeGiftPromotions.TYPE,id:e},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,s){return this.resources.create(Object.assign(Object.assign({},e),{type:FreeShippingPromotions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:FreeShippingPromotions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:FreeShippingPromotions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:FreeShippingPromotions.TYPE,id:e},t)}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,22 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Address } from './addresses';
|
4
|
-
import { Attachment } from './attachments';
|
5
|
-
declare type GeocoderRel = ResourceRel & {
|
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 | null): GeocoderRel;
|
19
|
-
type(): string;
|
20
|
-
}
|
21
|
-
export default Geocoders;
|
22
|
-
export { Geocoder };
|
@@ -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,r){return this.resources.retrieve({type:Geocoders.TYPE,id:e},t,r)}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,r){return this.resources.list({type:GiftCardRecipients.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:GiftCardRecipients.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:GiftCardRecipients.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:GiftCardRecipients.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:GiftCardRecipients.TYPE,id:e},r)}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,79 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { 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 = ResourceRel & {
|
7
|
-
type: typeof GiftCards.TYPE;
|
8
|
-
};
|
9
|
-
declare type MarketRel = ResourceRel & {
|
10
|
-
type: 'markets';
|
11
|
-
};
|
12
|
-
declare type GiftCardRecipientRel = ResourceRel & {
|
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 | null): GiftCardRel;
|
76
|
-
type(): string;
|
77
|
-
}
|
78
|
-
export default GiftCards;
|
79
|
-
export { GiftCard, GiftCardCreate, GiftCardUpdate };
|
@@ -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)}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,r){return this.resources.create(Object.assign(Object.assign({},e),{type:GoogleGeocoders.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:GoogleGeocoders.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:GoogleGeocoders.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:GoogleGeocoders.TYPE,id:e},t)}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,56 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Market } from './markets';
|
4
|
-
import { Customer } from './customers';
|
5
|
-
import { Sku } from './skus';
|
6
|
-
declare type InStockSubscriptionRel = ResourceRel & {
|
7
|
-
type: typeof InStockSubscriptions.TYPE;
|
8
|
-
};
|
9
|
-
declare type MarketRel = ResourceRel & {
|
10
|
-
type: 'markets';
|
11
|
-
};
|
12
|
-
declare type CustomerRel = ResourceRel & {
|
13
|
-
type: 'customers';
|
14
|
-
};
|
15
|
-
declare type SkuRel = ResourceRel & {
|
16
|
-
type: 'skus';
|
17
|
-
};
|
18
|
-
interface InStockSubscription extends Resource {
|
19
|
-
status?: string;
|
20
|
-
customer_email?: string;
|
21
|
-
sku_code?: string;
|
22
|
-
stock_threshold?: number;
|
23
|
-
market?: Market;
|
24
|
-
customer?: Customer;
|
25
|
-
sku?: Sku;
|
26
|
-
}
|
27
|
-
interface InStockSubscriptionCreate extends ResourceCreate {
|
28
|
-
customer_email?: string;
|
29
|
-
sku_code?: string;
|
30
|
-
stock_threshold?: number;
|
31
|
-
market: MarketRel;
|
32
|
-
customer: CustomerRel;
|
33
|
-
sku: SkuRel;
|
34
|
-
}
|
35
|
-
interface InStockSubscriptionUpdate extends ResourceUpdate {
|
36
|
-
sku_code?: string;
|
37
|
-
stock_threshold?: number;
|
38
|
-
_activate?: boolean;
|
39
|
-
_deactivate?: boolean;
|
40
|
-
market?: MarketRel;
|
41
|
-
customer?: CustomerRel;
|
42
|
-
sku?: SkuRel;
|
43
|
-
}
|
44
|
-
declare class InStockSubscriptions extends ApiResource {
|
45
|
-
static readonly TYPE: 'in_stock_subscriptions';
|
46
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InStockSubscription>>;
|
47
|
-
create(resource: InStockSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
48
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
49
|
-
update(resource: InStockSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
50
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
51
|
-
isInStockSubscription(resource: any): resource is InStockSubscription;
|
52
|
-
relationship(id: string | ResourceId | null): InStockSubscriptionRel;
|
53
|
-
type(): string;
|
54
|
-
}
|
55
|
-
export default InStockSubscriptions;
|
56
|
-
export { InStockSubscription, InStockSubscriptionCreate, InStockSubscriptionUpdate };
|
@@ -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,r){return this.resources.list({type:InStockSubscriptions.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:InStockSubscriptions.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:InStockSubscriptions.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:InStockSubscriptions.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:InStockSubscriptions.TYPE,id:e},r)}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;
|