@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 +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)}isKlarnaPayment(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_payments";export default t;
|
@@ -1,55 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { LineItem } from './line_items';
|
4
|
-
import { SkuOption } from './sku_options';
|
5
|
-
declare type LineItemOptionRel = ResourceId & {
|
6
|
-
type: typeof LineItemOptions.TYPE;
|
7
|
-
};
|
8
|
-
declare type LineItemRel = ResourceId & {
|
9
|
-
type: 'line_items';
|
10
|
-
};
|
11
|
-
declare type SkuOptionRel = ResourceId & {
|
12
|
-
type: 'sku_options';
|
13
|
-
};
|
14
|
-
interface LineItemOption extends Resource {
|
15
|
-
name?: string;
|
16
|
-
quantity?: number;
|
17
|
-
currency_code?: string;
|
18
|
-
unit_amount_cents?: number;
|
19
|
-
unit_amount_float?: number;
|
20
|
-
formatted_unit_amount?: string;
|
21
|
-
total_amount_cents?: number;
|
22
|
-
total_amount_float?: number;
|
23
|
-
formatted_total_amount?: string;
|
24
|
-
delay_hours?: number;
|
25
|
-
delay_days?: number;
|
26
|
-
options?: object;
|
27
|
-
line_item?: LineItem;
|
28
|
-
sku_option?: SkuOption;
|
29
|
-
}
|
30
|
-
interface LineItemOptionCreate extends ResourceCreate {
|
31
|
-
name?: string;
|
32
|
-
quantity: number;
|
33
|
-
options: object;
|
34
|
-
line_item: LineItemRel;
|
35
|
-
sku_option: SkuOptionRel;
|
36
|
-
}
|
37
|
-
interface LineItemOptionUpdate extends ResourceUpdate {
|
38
|
-
name?: string;
|
39
|
-
quantity?: number;
|
40
|
-
options?: object;
|
41
|
-
sku_option?: SkuOptionRel;
|
42
|
-
}
|
43
|
-
declare class LineItemOptions extends ApiResource {
|
44
|
-
static readonly TYPE: 'line_item_options';
|
45
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>>;
|
46
|
-
create(resource: LineItemOptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
|
47
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
|
48
|
-
update(resource: LineItemOptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
|
49
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
50
|
-
isLineItemOption(resource: any): resource is LineItemOption;
|
51
|
-
relationship(id: string | ResourceId): LineItemOptionRel;
|
52
|
-
type(): string;
|
53
|
-
}
|
54
|
-
export default LineItemOptions;
|
55
|
-
export { LineItemOption, LineItemOptionCreate, LineItemOptionUpdate };
|
@@ -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)}isLineItemOption(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="line_item_options";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)}isLineItem(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="line_items";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)}isManualGateway(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="manual_gateways";export default t;
|
@@ -1,45 +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
|
-
import { TaxRule } from './tax_rules';
|
7
|
-
declare type ManualTaxCalculatorRel = ResourceId & {
|
8
|
-
type: typeof ManualTaxCalculators.TYPE;
|
9
|
-
};
|
10
|
-
declare type TaxCategoryRel = ResourceId & {
|
11
|
-
type: 'tax_categories';
|
12
|
-
};
|
13
|
-
declare type TaxRuleRel = ResourceId & {
|
14
|
-
type: 'tax_rules';
|
15
|
-
};
|
16
|
-
interface ManualTaxCalculator extends Resource {
|
17
|
-
name?: string;
|
18
|
-
tax_categories?: TaxCategory[];
|
19
|
-
markets?: Market[];
|
20
|
-
attachments?: Attachment[];
|
21
|
-
tax_rules?: TaxRule[];
|
22
|
-
}
|
23
|
-
interface ManualTaxCalculatorCreate extends ResourceCreate {
|
24
|
-
name: string;
|
25
|
-
tax_categories?: TaxCategoryRel[];
|
26
|
-
tax_rules?: TaxRuleRel[];
|
27
|
-
}
|
28
|
-
interface ManualTaxCalculatorUpdate extends ResourceUpdate {
|
29
|
-
name?: string;
|
30
|
-
tax_categories?: TaxCategoryRel[];
|
31
|
-
tax_rules?: TaxRuleRel[];
|
32
|
-
}
|
33
|
-
declare class ManualTaxCalculators extends ApiResource {
|
34
|
-
static readonly TYPE: 'manual_tax_calculators';
|
35
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ManualTaxCalculator>>;
|
36
|
-
create(resource: ManualTaxCalculatorCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
|
37
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
|
38
|
-
update(resource: ManualTaxCalculatorUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
|
39
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
|
-
isManualTaxCalculator(resource: any): resource is ManualTaxCalculator;
|
41
|
-
relationship(id: string | ResourceId): ManualTaxCalculatorRel;
|
42
|
-
type(): string;
|
43
|
-
}
|
44
|
-
export default ManualTaxCalculators;
|
45
|
-
export { ManualTaxCalculator, ManualTaxCalculatorCreate, ManualTaxCalculatorUpdate };
|
@@ -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)}isManualTaxCalculator(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="manual_tax_calculators";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)}isMarket(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="markets";export default t;
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, 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 MerchantRel = ResourceId & {
|
6
|
-
type: typeof Merchants.TYPE;
|
7
|
-
};
|
8
|
-
declare type AddressRel = ResourceId & {
|
9
|
-
type: 'addresses';
|
10
|
-
};
|
11
|
-
interface Merchant extends Resource {
|
12
|
-
name?: string;
|
13
|
-
address?: Address;
|
14
|
-
attachments?: Attachment[];
|
15
|
-
}
|
16
|
-
interface MerchantCreate extends ResourceCreate {
|
17
|
-
name: string;
|
18
|
-
address: AddressRel;
|
19
|
-
}
|
20
|
-
interface MerchantUpdate extends ResourceUpdate {
|
21
|
-
name?: string;
|
22
|
-
address?: AddressRel;
|
23
|
-
}
|
24
|
-
declare class Merchants extends ApiResource {
|
25
|
-
static readonly TYPE: 'merchants';
|
26
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Merchant>>;
|
27
|
-
create(resource: MerchantCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Merchant>;
|
28
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Merchant>;
|
29
|
-
update(resource: MerchantUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Merchant>;
|
30
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
31
|
-
isMerchant(resource: any): resource is Merchant;
|
32
|
-
relationship(id: string | ResourceId): MerchantRel;
|
33
|
-
type(): string;
|
34
|
-
}
|
35
|
-
export default Merchants;
|
36
|
-
export { Merchant, MerchantCreate, MerchantUpdate };
|
@@ -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)}isMerchant(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="merchants";export default t;
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
4
|
-
import { FreeShippingPromotion } from './free_shipping_promotions';
|
5
|
-
import { FixedAmountPromotion } from './fixed_amount_promotions';
|
6
|
-
import { FreeGiftPromotion } from './free_gift_promotions';
|
7
|
-
import { FixedPricePromotion } from './fixed_price_promotions';
|
8
|
-
import { ExternalPromotion } from './external_promotions';
|
9
|
-
declare type OrderAmountPromotionRuleRel = ResourceId & {
|
10
|
-
type: typeof OrderAmountPromotionRules.TYPE;
|
11
|
-
};
|
12
|
-
declare type PercentageDiscountPromotionRel = ResourceId & {
|
13
|
-
type: 'percentage_discount_promotions';
|
14
|
-
};
|
15
|
-
declare type FreeShippingPromotionRel = ResourceId & {
|
16
|
-
type: 'free_shipping_promotions';
|
17
|
-
};
|
18
|
-
declare type FixedAmountPromotionRel = ResourceId & {
|
19
|
-
type: 'fixed_amount_promotions';
|
20
|
-
};
|
21
|
-
declare type FreeGiftPromotionRel = ResourceId & {
|
22
|
-
type: 'free_gift_promotions';
|
23
|
-
};
|
24
|
-
declare type FixedPricePromotionRel = ResourceId & {
|
25
|
-
type: 'fixed_price_promotions';
|
26
|
-
};
|
27
|
-
declare type ExternalPromotionRel = ResourceId & {
|
28
|
-
type: 'external_promotions';
|
29
|
-
};
|
30
|
-
interface OrderAmountPromotionRule extends Resource {
|
31
|
-
order_amount_cents?: number;
|
32
|
-
order_amount_float?: number;
|
33
|
-
formatted_order_amount?: string;
|
34
|
-
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
|
35
|
-
}
|
36
|
-
interface OrderAmountPromotionRuleCreate extends ResourceCreate {
|
37
|
-
order_amount_cents?: number;
|
38
|
-
promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
|
39
|
-
}
|
40
|
-
interface OrderAmountPromotionRuleUpdate extends ResourceUpdate {
|
41
|
-
order_amount_cents?: number;
|
42
|
-
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
|
43
|
-
}
|
44
|
-
declare class OrderAmountPromotionRules extends ApiResource {
|
45
|
-
static readonly TYPE: 'order_amount_promotion_rules';
|
46
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderAmountPromotionRule>>;
|
47
|
-
create(resource: OrderAmountPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
48
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
49
|
-
update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
50
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
51
|
-
isOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule;
|
52
|
-
relationship(id: string | ResourceId): OrderAmountPromotionRuleRel;
|
53
|
-
type(): string;
|
54
|
-
}
|
55
|
-
export default OrderAmountPromotionRules;
|
56
|
-
export { OrderAmountPromotionRule, OrderAmountPromotionRuleCreate, OrderAmountPromotionRuleUpdate };
|
@@ -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)}isOrderAmountPromotionRule(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="order_amount_promotion_rules";export default t;
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Order } from './orders';
|
4
|
-
import { OrderSubscription } from './order_subscriptions';
|
5
|
-
declare type OrderCopyRel = ResourceId & {
|
6
|
-
type: typeof OrderCopies.TYPE;
|
7
|
-
};
|
8
|
-
declare type OrderRel = ResourceId & {
|
9
|
-
type: 'orders';
|
10
|
-
};
|
11
|
-
interface OrderCopy extends Resource {
|
12
|
-
status?: string;
|
13
|
-
started_at?: string;
|
14
|
-
completed_at?: string;
|
15
|
-
failed_at?: string;
|
16
|
-
place_target_order?: boolean;
|
17
|
-
cancel_source_order?: boolean;
|
18
|
-
reuse_wallet?: boolean;
|
19
|
-
errors_log?: object;
|
20
|
-
errors_count?: number;
|
21
|
-
source_order?: Order;
|
22
|
-
target_order?: Order;
|
23
|
-
order_subscription?: OrderSubscription;
|
24
|
-
}
|
25
|
-
interface OrderCopyCreate extends ResourceCreate {
|
26
|
-
place_target_order?: boolean;
|
27
|
-
cancel_source_order?: boolean;
|
28
|
-
reuse_wallet?: boolean;
|
29
|
-
source_order: OrderRel;
|
30
|
-
}
|
31
|
-
declare class OrderCopies extends ApiResource {
|
32
|
-
static readonly TYPE: 'order_copies';
|
33
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
|
34
|
-
create(resource: OrderCopyCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderCopy>;
|
35
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderCopy>;
|
36
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
37
|
-
isOrderCopy(resource: any): resource is OrderCopy;
|
38
|
-
relationship(id: string | ResourceId): OrderCopyRel;
|
39
|
-
type(): string;
|
40
|
-
}
|
41
|
-
export default OrderCopies;
|
42
|
-
export { OrderCopy, OrderCopyCreate };
|
@@ -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)}isOrderCopy(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="order_copies";export default t;
|
@@ -1,62 +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 { Order } from './orders';
|
5
|
-
import { Customer } from './customers';
|
6
|
-
import { OrderCopy } from './order_copies';
|
7
|
-
declare type OrderSubscriptionRel = ResourceId & {
|
8
|
-
type: typeof OrderSubscriptions.TYPE;
|
9
|
-
};
|
10
|
-
declare type MarketRel = ResourceId & {
|
11
|
-
type: 'markets';
|
12
|
-
};
|
13
|
-
declare type OrderRel = ResourceId & {
|
14
|
-
type: 'orders';
|
15
|
-
};
|
16
|
-
interface OrderSubscription extends Resource {
|
17
|
-
number?: string;
|
18
|
-
status?: string;
|
19
|
-
frequency?: string;
|
20
|
-
activate_by_source_order?: boolean;
|
21
|
-
customer_email?: string;
|
22
|
-
starts_at?: string;
|
23
|
-
expires_at?: string;
|
24
|
-
next_run_at?: string;
|
25
|
-
occurrencies?: number;
|
26
|
-
errors_count?: number;
|
27
|
-
succeeded_on_last_run?: boolean;
|
28
|
-
options?: object;
|
29
|
-
market?: Market;
|
30
|
-
source_order?: Order;
|
31
|
-
customer?: Customer;
|
32
|
-
order_copies?: OrderCopy[];
|
33
|
-
orders?: Order[];
|
34
|
-
}
|
35
|
-
interface OrderSubscriptionCreate extends ResourceCreate {
|
36
|
-
frequency: string;
|
37
|
-
activate_by_source_order?: boolean;
|
38
|
-
starts_at?: string;
|
39
|
-
expires_at?: string;
|
40
|
-
options?: object;
|
41
|
-
market?: MarketRel;
|
42
|
-
source_order: OrderRel;
|
43
|
-
}
|
44
|
-
interface OrderSubscriptionUpdate extends ResourceUpdate {
|
45
|
-
expires_at?: string;
|
46
|
-
_activate?: boolean;
|
47
|
-
_deactivate?: boolean;
|
48
|
-
_cancel?: boolean;
|
49
|
-
}
|
50
|
-
declare class OrderSubscriptions extends ApiResource {
|
51
|
-
static readonly TYPE: 'order_subscriptions';
|
52
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>>;
|
53
|
-
create(resource: OrderSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
54
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
55
|
-
update(resource: OrderSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
56
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
57
|
-
isOrderSubscription(resource: any): resource is OrderSubscription;
|
58
|
-
relationship(id: string | ResourceId): OrderSubscriptionRel;
|
59
|
-
type(): string;
|
60
|
-
}
|
61
|
-
export default OrderSubscriptions;
|
62
|
-
export { OrderSubscription, OrderSubscriptionCreate, OrderSubscriptionUpdate };
|
@@ -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)}isOrderSubscription(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="order_subscriptions";export default t;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Market } from './markets';
|
4
|
-
declare type OrderValidationRuleRel = ResourceId & {
|
5
|
-
type: typeof OrderValidationRules.TYPE;
|
6
|
-
};
|
7
|
-
interface OrderValidationRule extends Resource {
|
8
|
-
market?: Market;
|
9
|
-
}
|
10
|
-
declare class OrderValidationRules extends ApiResource {
|
11
|
-
static readonly TYPE: 'order_validation_rules';
|
12
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderValidationRule>>;
|
13
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderValidationRule>;
|
14
|
-
isOrderValidationRule(resource: any): resource is OrderValidationRule;
|
15
|
-
relationship(id: string | ResourceId): OrderValidationRuleRel;
|
16
|
-
type(): string;
|
17
|
-
}
|
18
|
-
export default OrderValidationRules;
|
19
|
-
export { OrderValidationRule };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as s}from"../resource";class t extends s{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async retrieve(e,r,i){return this.resources.retrieve({type:t.TYPE,id:e},r,i)}isOrderValidationRule(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="order_validation_rules";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)}isOrder(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="orders";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)}isPackage(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="packages";export default t;
|
@@ -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 { Parcel } from './parcels';
|
4
|
-
import { StockLineItem } from './stock_line_items';
|
5
|
-
declare type ParcelLineItemRel = ResourceId & {
|
6
|
-
type: typeof ParcelLineItems.TYPE;
|
7
|
-
};
|
8
|
-
declare type ParcelRel = ResourceId & {
|
9
|
-
type: 'parcels';
|
10
|
-
};
|
11
|
-
declare type StockLineItemRel = ResourceId & {
|
12
|
-
type: 'stock_line_items';
|
13
|
-
};
|
14
|
-
interface ParcelLineItem extends Resource {
|
15
|
-
sku_code?: string;
|
16
|
-
quantity?: number;
|
17
|
-
parcel?: Parcel;
|
18
|
-
stock_line_item?: StockLineItem;
|
19
|
-
/**
|
20
|
-
* @deprecated This field should not be used as it may be removed in the future without notice
|
21
|
-
*/
|
22
|
-
shipment_line_item?: object;
|
23
|
-
}
|
24
|
-
interface ParcelLineItemCreate extends ResourceCreate {
|
25
|
-
sku_code?: string;
|
26
|
-
quantity: number;
|
27
|
-
parcel: ParcelRel;
|
28
|
-
stock_line_item: StockLineItemRel;
|
29
|
-
/**
|
30
|
-
* @deprecated This field should not be used as it may be removed in the future without notice
|
31
|
-
*/
|
32
|
-
shipment_line_item?: object;
|
33
|
-
}
|
34
|
-
declare type ParcelLineItemUpdate = ResourceUpdate;
|
35
|
-
declare class ParcelLineItems extends ApiResource {
|
36
|
-
static readonly TYPE: 'parcel_line_items';
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ParcelLineItem>>;
|
38
|
-
create(resource: ParcelLineItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ParcelLineItem>;
|
39
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ParcelLineItem>;
|
40
|
-
update(resource: ParcelLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ParcelLineItem>;
|
41
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
42
|
-
isParcelLineItem(resource: any): resource is ParcelLineItem;
|
43
|
-
relationship(id: string | ResourceId): ParcelLineItemRel;
|
44
|
-
type(): string;
|
45
|
-
}
|
46
|
-
export default ParcelLineItems;
|
47
|
-
export { ParcelLineItem, ParcelLineItemCreate, ParcelLineItemUpdate };
|
@@ -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)}isParcelLineItem(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="parcel_line_items";export default s;
|
@@ -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)}isParcel(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="parcels";export default t;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { PaymentMethod } from './payment_methods';
|
4
|
-
declare type PaymentGatewayRel = ResourceId & {
|
5
|
-
type: typeof PaymentGateways.TYPE;
|
6
|
-
};
|
7
|
-
interface PaymentGateway extends Resource {
|
8
|
-
name?: string;
|
9
|
-
payment_methods?: PaymentMethod[];
|
10
|
-
}
|
11
|
-
declare class PaymentGateways extends ApiResource {
|
12
|
-
static readonly TYPE: 'payment_gateways';
|
13
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentGateway>>;
|
14
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
15
|
-
isPaymentGateway(resource: any): resource is PaymentGateway;
|
16
|
-
relationship(id: string | ResourceId): PaymentGatewayRel;
|
17
|
-
type(): string;
|
18
|
-
}
|
19
|
-
export default PaymentGateways;
|
20
|
-
export { PaymentGateway };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}isPaymentGateway(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="payment_gateways";export default r;
|
@@ -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)}isPaymentMethod(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="payment_methods";export default t;
|
@@ -1,37 +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 { PaypalPayment } from './paypal_payments';
|
5
|
-
declare type PaypalGatewayRel = ResourceId & {
|
6
|
-
type: typeof PaypalGateways.TYPE;
|
7
|
-
};
|
8
|
-
interface PaypalGateway extends Resource {
|
9
|
-
name?: string;
|
10
|
-
payment_methods?: PaymentMethod[];
|
11
|
-
paypal_payments?: PaypalPayment[];
|
12
|
-
}
|
13
|
-
interface PaypalGatewayCreate extends ResourceCreate {
|
14
|
-
name: string;
|
15
|
-
client_id: string;
|
16
|
-
client_secret: string;
|
17
|
-
mode: string;
|
18
|
-
}
|
19
|
-
interface PaypalGatewayUpdate extends ResourceUpdate {
|
20
|
-
name?: string;
|
21
|
-
client_id?: string;
|
22
|
-
client_secret?: string;
|
23
|
-
mode?: string;
|
24
|
-
}
|
25
|
-
declare class PaypalGateways extends ApiResource {
|
26
|
-
static readonly TYPE: 'paypal_gateways';
|
27
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaypalGateway>>;
|
28
|
-
create(resource: PaypalGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
|
29
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
|
30
|
-
update(resource: PaypalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
|
31
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
|
-
isPaypalGateway(resource: any): resource is PaypalGateway;
|
33
|
-
relationship(id: string | ResourceId): PaypalGatewayRel;
|
34
|
-
type(): string;
|
35
|
-
}
|
36
|
-
export default PaypalGateways;
|
37
|
-
export { PaypalGateway, PaypalGatewayCreate, PaypalGatewayUpdate };
|
@@ -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)}isPaypalGateway(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="paypal_gateways";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)}isPaypalPayment(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="paypal_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)}isPercentageDiscountPromotion(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="percentage_discount_promotions";export default t;
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Price } from './prices';
|
4
|
-
import { Attachment } from './attachments';
|
5
|
-
declare type PriceListRel = ResourceId & {
|
6
|
-
type: typeof PriceLists.TYPE;
|
7
|
-
};
|
8
|
-
interface PriceList extends Resource {
|
9
|
-
name?: string;
|
10
|
-
currency_code?: string;
|
11
|
-
tax_included?: boolean;
|
12
|
-
prices?: Price[];
|
13
|
-
attachments?: Attachment[];
|
14
|
-
}
|
15
|
-
interface PriceListCreate extends ResourceCreate {
|
16
|
-
name: string;
|
17
|
-
currency_code: string;
|
18
|
-
tax_included?: boolean;
|
19
|
-
}
|
20
|
-
interface PriceListUpdate extends ResourceUpdate {
|
21
|
-
name?: string;
|
22
|
-
currency_code?: string;
|
23
|
-
tax_included?: boolean;
|
24
|
-
}
|
25
|
-
declare class PriceLists extends ApiResource {
|
26
|
-
static readonly TYPE: 'price_lists';
|
27
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceList>>;
|
28
|
-
create(resource: PriceListCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
|
29
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
|
30
|
-
update(resource: PriceListUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
|
31
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
|
-
isPriceList(resource: any): resource is PriceList;
|
33
|
-
relationship(id: string | ResourceId): PriceListRel;
|
34
|
-
type(): string;
|
35
|
-
}
|
36
|
-
export default PriceLists;
|
37
|
-
export { PriceList, PriceListCreate, PriceListUpdate };
|
@@ -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)}isPriceList(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="price_lists";export default t;
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { PriceList } from './price_lists';
|
4
|
-
import { Sku } from './skus';
|
5
|
-
import { Attachment } from './attachments';
|
6
|
-
declare type PriceRel = ResourceId & {
|
7
|
-
type: typeof Prices.TYPE;
|
8
|
-
};
|
9
|
-
declare type PriceListRel = ResourceId & {
|
10
|
-
type: 'price_lists';
|
11
|
-
};
|
12
|
-
declare type SkuRel = ResourceId & {
|
13
|
-
type: 'skus';
|
14
|
-
};
|
15
|
-
interface Price extends Resource {
|
16
|
-
currency_code?: string;
|
17
|
-
sku_code?: string;
|
18
|
-
amount_cents?: number;
|
19
|
-
amount_float?: number;
|
20
|
-
formatted_amount?: string;
|
21
|
-
compare_at_amount_cents?: number;
|
22
|
-
compare_at_amount_float?: number;
|
23
|
-
formatted_compare_at_amount?: string;
|
24
|
-
price_list?: PriceList;
|
25
|
-
sku?: Sku;
|
26
|
-
attachments?: Attachment[];
|
27
|
-
}
|
28
|
-
interface PriceCreate extends ResourceCreate {
|
29
|
-
sku_code?: string;
|
30
|
-
amount_cents: number;
|
31
|
-
compare_at_amount_cents: number;
|
32
|
-
price_list: PriceListRel;
|
33
|
-
sku?: SkuRel;
|
34
|
-
}
|
35
|
-
interface PriceUpdate extends ResourceUpdate {
|
36
|
-
sku_code?: string;
|
37
|
-
amount_cents?: number;
|
38
|
-
compare_at_amount_cents?: number;
|
39
|
-
price_list?: PriceListRel;
|
40
|
-
sku?: SkuRel;
|
41
|
-
}
|
42
|
-
declare class Prices extends ApiResource {
|
43
|
-
static readonly TYPE: 'prices';
|
44
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Price>>;
|
45
|
-
create(resource: PriceCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
46
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
47
|
-
update(resource: PriceUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
48
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
49
|
-
isPrice(resource: any): resource is Price;
|
50
|
-
relationship(id: string | ResourceId): PriceRel;
|
51
|
-
type(): string;
|
52
|
-
}
|
53
|
-
export default Prices;
|
54
|
-
export { Price, PriceCreate, PriceUpdate };
|
@@ -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)}isPrice(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="prices";export default t;
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as s}from"../resource";class t extends s{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async retrieve(e,r,i){return this.resources.retrieve({type:t.TYPE,id:e},r,i)}isPromotion(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="promotions";export default t;
|