@commercelayer/sdk 4.2.0-beta.1 → 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} +5 -3
- package/lib/api.js +1 -0
- package/lib/{esm/client.d.ts → client.d.ts} +8 -3
- package/lib/client.js +1 -0
- package/lib/{cjs/commercelayer.d.ts → commercelayer.d.ts} +4 -2
- package/lib/commercelayer.js +1 -0
- 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} +3 -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/{esm/resources → resources}/braintree_gateways.d.ts +7 -5
- package/lib/resources/braintree_gateways.js +1 -0
- package/lib/{cjs/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/{esm/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 +20 -15
- 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/{esm/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 +9 -4
- package/lib/resources/external_gateways.js +1 -0
- package/lib/{esm/resources → resources}/external_payments.d.ts +10 -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/resources/klarna_gateways.d.ts +44 -0
- package/lib/resources/klarna_gateways.js +1 -0
- package/lib/resources/klarna_payments.d.ts +41 -0
- 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/{cjs/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/{cjs/resources → resources}/orders.d.ts +38 -18
- 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/{esm/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/{esm/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/{esm/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/{esm/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/{esm/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 -27
- 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 -99
- 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.d.ts +0 -54
- package/lib/cjs/resources/braintree_gateways.js +0 -1
- 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.d.ts +0 -42
- 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.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 -38
- 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/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.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.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.d.ts +0 -20
- 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.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 -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.d.ts +0 -66
- package/lib/cjs/resources/stock_transfers.js +0 -1
- package/lib/cjs/resources/stripe_gateways.js +0 -1
- package/lib/cjs/resources/stripe_payments.d.ts +0 -40
- 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.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 -101
- package/lib/esm/api.js +0 -1
- package/lib/esm/client.js +0 -1
- package/lib/esm/commercelayer.d.ts +0 -120
- package/lib/esm/commercelayer.js +0 -1
- 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.js +0 -1
- package/lib/esm/resources/braintree_payments.d.ts +0 -45
- 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.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 -65
- 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.js +0 -1
- package/lib/esm/resources/external_gateways.d.ts +0 -44
- 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/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.d.ts +0 -32
- 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.d.ts +0 -251
- 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.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.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.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.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.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,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,32 +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
|
-
declare type ManualGatewayRel = ResourceId & {
|
5
|
-
type: typeof ManualGateways.TYPE;
|
6
|
-
};
|
7
|
-
interface ManualGateway extends Resource {
|
8
|
-
name?: string;
|
9
|
-
require_capture?: boolean;
|
10
|
-
payment_methods?: PaymentMethod[];
|
11
|
-
}
|
12
|
-
interface ManualGatewayCreate extends ResourceCreate {
|
13
|
-
name: string;
|
14
|
-
require_capture?: boolean;
|
15
|
-
}
|
16
|
-
interface ManualGatewayUpdate extends ResourceUpdate {
|
17
|
-
name?: string;
|
18
|
-
require_capture?: boolean;
|
19
|
-
}
|
20
|
-
declare class ManualGateways extends ApiResource {
|
21
|
-
static readonly TYPE: 'manual_gateways';
|
22
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ManualGateway>>;
|
23
|
-
create(resource: ManualGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
|
24
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
|
25
|
-
update(resource: ManualGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
|
26
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
27
|
-
isManualGateway(resource: any): resource is ManualGateway;
|
28
|
-
relationship(id: string | ResourceId): ManualGatewayRel;
|
29
|
-
type(): string;
|
30
|
-
}
|
31
|
-
export default ManualGateways;
|
32
|
-
export { ManualGateway, ManualGatewayCreate, ManualGatewayUpdate };
|
@@ -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,251 +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 { Customer } from './customers';
|
5
|
-
import { Address } from './addresses';
|
6
|
-
import { PaymentMethod } from './payment_methods';
|
7
|
-
import { CustomerPaymentSource } from './customer_payment_sources';
|
8
|
-
import { AdyenPayment } from './adyen_payments';
|
9
|
-
import { BraintreePayment } from './braintree_payments';
|
10
|
-
import { CheckoutComPayment } from './checkout_com_payments';
|
11
|
-
import { ExternalPayment } from './external_payments';
|
12
|
-
import { PaypalPayment } from './paypal_payments';
|
13
|
-
import { StripePayment } from './stripe_payments';
|
14
|
-
import { WireTransfer } from './wire_transfers';
|
15
|
-
import { LineItem } from './line_items';
|
16
|
-
import { Shipment } from './shipments';
|
17
|
-
import { Authorization } from './authorizations';
|
18
|
-
import { Void } from './voids';
|
19
|
-
import { Capture } from './captures';
|
20
|
-
import { Refund } from './refunds';
|
21
|
-
import { OrderSubscription } from './order_subscriptions';
|
22
|
-
import { OrderCopy } from './order_copies';
|
23
|
-
import { Attachment } from './attachments';
|
24
|
-
declare type OrderRel = ResourceId & {
|
25
|
-
type: typeof Orders.TYPE;
|
26
|
-
};
|
27
|
-
declare type MarketRel = ResourceId & {
|
28
|
-
type: 'markets';
|
29
|
-
};
|
30
|
-
declare type CustomerRel = ResourceId & {
|
31
|
-
type: 'customers';
|
32
|
-
};
|
33
|
-
declare type AddressRel = ResourceId & {
|
34
|
-
type: 'addresses';
|
35
|
-
};
|
36
|
-
declare type PaymentMethodRel = ResourceId & {
|
37
|
-
type: 'payment_methods';
|
38
|
-
};
|
39
|
-
declare type AdyenPaymentRel = ResourceId & {
|
40
|
-
type: 'adyen_payments';
|
41
|
-
};
|
42
|
-
declare type BraintreePaymentRel = ResourceId & {
|
43
|
-
type: 'braintree_payments';
|
44
|
-
};
|
45
|
-
declare type CheckoutComPaymentRel = ResourceId & {
|
46
|
-
type: 'checkout_com_payments';
|
47
|
-
};
|
48
|
-
declare type ExternalPaymentRel = ResourceId & {
|
49
|
-
type: 'external_payments';
|
50
|
-
};
|
51
|
-
declare type PaypalPaymentRel = ResourceId & {
|
52
|
-
type: 'paypal_payments';
|
53
|
-
};
|
54
|
-
declare type StripePaymentRel = ResourceId & {
|
55
|
-
type: 'stripe_payments';
|
56
|
-
};
|
57
|
-
declare type WireTransferRel = ResourceId & {
|
58
|
-
type: 'wire_transfers';
|
59
|
-
};
|
60
|
-
interface Order extends Resource {
|
61
|
-
number?: number;
|
62
|
-
autorefresh?: boolean;
|
63
|
-
status?: string;
|
64
|
-
payment_status?: string;
|
65
|
-
fulfillment_status?: string;
|
66
|
-
guest?: boolean;
|
67
|
-
editable?: boolean;
|
68
|
-
customer_email?: string;
|
69
|
-
language_code?: string;
|
70
|
-
currency_code?: string;
|
71
|
-
tax_included?: boolean;
|
72
|
-
tax_rate?: number;
|
73
|
-
freight_taxable?: boolean;
|
74
|
-
requires_billing_info?: boolean;
|
75
|
-
country_code?: string;
|
76
|
-
shipping_country_code_lock?: string;
|
77
|
-
coupon_code?: string;
|
78
|
-
gift_card_code?: string;
|
79
|
-
gift_card_or_coupon_code?: string;
|
80
|
-
subtotal_amount_cents?: number;
|
81
|
-
subtotal_amount_float?: number;
|
82
|
-
formatted_subtotal_amount?: string;
|
83
|
-
shipping_amount_cents?: number;
|
84
|
-
shipping_amount_float?: number;
|
85
|
-
formatted_shipping_amount?: string;
|
86
|
-
payment_method_amount_cents?: number;
|
87
|
-
payment_method_amount_float?: number;
|
88
|
-
formatted_payment_method_amount?: string;
|
89
|
-
discount_amount_cents?: number;
|
90
|
-
discount_amount_float?: number;
|
91
|
-
formatted_discount_amount?: string;
|
92
|
-
adjustment_amount_cents?: number;
|
93
|
-
adjustment_amount_float?: number;
|
94
|
-
formatted_adjustment_amount?: string;
|
95
|
-
gift_card_amount_cents?: number;
|
96
|
-
gift_card_amount_float?: number;
|
97
|
-
formatted_gift_card_amount?: string;
|
98
|
-
total_tax_amount_cents?: number;
|
99
|
-
total_tax_amount_float?: number;
|
100
|
-
formatted_total_tax_amount?: string;
|
101
|
-
subtotal_tax_amount_cents?: number;
|
102
|
-
subtotal_tax_amount_float?: number;
|
103
|
-
formatted_subtotal_tax_amount?: string;
|
104
|
-
shipping_tax_amount_cents?: number;
|
105
|
-
shipping_tax_amount_float?: number;
|
106
|
-
formatted_shipping_tax_amount?: string;
|
107
|
-
payment_method_tax_amount_cents?: number;
|
108
|
-
payment_method_tax_amount_float?: number;
|
109
|
-
formatted_payment_method_tax_amount?: string;
|
110
|
-
adjustment_tax_amount_cents?: number;
|
111
|
-
adjustment_tax_amount_float?: number;
|
112
|
-
formatted_adjustment_tax_amount?: string;
|
113
|
-
total_amount_cents?: number;
|
114
|
-
total_amount_float?: number;
|
115
|
-
formatted_total_amount?: string;
|
116
|
-
total_taxable_amount_cents?: number;
|
117
|
-
total_taxable_amount_float?: number;
|
118
|
-
formatted_total_taxable_amount?: string;
|
119
|
-
subtotal_taxable_amount_cents?: number;
|
120
|
-
subtotal_taxable_amount_float?: number;
|
121
|
-
formatted_subtotal_taxable_amount?: string;
|
122
|
-
shipping_taxable_amount_cents?: number;
|
123
|
-
shipping_taxable_amount_float?: number;
|
124
|
-
formatted_shipping_taxable_amount?: string;
|
125
|
-
payment_method_taxable_amount_cents?: number;
|
126
|
-
payment_method_taxable_amount_float?: number;
|
127
|
-
formatted_payment_method_taxable_amount?: string;
|
128
|
-
adjustment_taxable_amount_cents?: number;
|
129
|
-
adjustment_taxable_amount_float?: number;
|
130
|
-
formatted_adjustment_taxable_amount?: string;
|
131
|
-
total_amount_with_taxes_cents?: number;
|
132
|
-
total_amount_with_taxes_float?: number;
|
133
|
-
formatted_total_amount_with_taxes?: string;
|
134
|
-
fees_amount_cents?: number;
|
135
|
-
fees_amount_float?: number;
|
136
|
-
formatted_fees_amount?: string;
|
137
|
-
duty_amount_cents?: number;
|
138
|
-
duty_amount_float?: number;
|
139
|
-
formatted_duty_amount?: string;
|
140
|
-
skus_count?: number;
|
141
|
-
line_item_options_count?: number;
|
142
|
-
shipments_count?: number;
|
143
|
-
payment_source_details?: object;
|
144
|
-
token?: string;
|
145
|
-
cart_url?: string;
|
146
|
-
return_url?: string;
|
147
|
-
terms_url?: string;
|
148
|
-
privacy_url?: string;
|
149
|
-
checkout_url?: string;
|
150
|
-
placed_at?: string;
|
151
|
-
approved_at?: string;
|
152
|
-
cancelled_at?: string;
|
153
|
-
payment_updated_at?: string;
|
154
|
-
fulfillment_updated_at?: string;
|
155
|
-
refreshed_at?: string;
|
156
|
-
archived_at?: string;
|
157
|
-
expires_at?: string;
|
158
|
-
market?: Market;
|
159
|
-
customer?: Customer;
|
160
|
-
shipping_address?: Address;
|
161
|
-
billing_address?: Address;
|
162
|
-
available_payment_methods?: PaymentMethod[];
|
163
|
-
available_customer_payment_sources?: CustomerPaymentSource[];
|
164
|
-
payment_method?: PaymentMethod;
|
165
|
-
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | PaypalPayment | StripePayment | WireTransfer;
|
166
|
-
line_items?: LineItem[];
|
167
|
-
shipments?: Shipment[];
|
168
|
-
transactions?: (Authorization | Void | Capture | Refund)[];
|
169
|
-
authorizations?: Authorization[];
|
170
|
-
captures?: Capture[];
|
171
|
-
voids?: Void[];
|
172
|
-
refunds?: Refund[];
|
173
|
-
order_subscriptions?: OrderSubscription[];
|
174
|
-
order_copies?: OrderCopy[];
|
175
|
-
attachments?: Attachment[];
|
176
|
-
}
|
177
|
-
interface OrderCreate extends ResourceCreate {
|
178
|
-
autorefresh?: boolean;
|
179
|
-
guest?: boolean;
|
180
|
-
customer_email?: string;
|
181
|
-
customer_password?: string;
|
182
|
-
language_code?: string;
|
183
|
-
shipping_country_code_lock?: string;
|
184
|
-
coupon_code?: string;
|
185
|
-
gift_card_code?: string;
|
186
|
-
gift_card_or_coupon_code?: string;
|
187
|
-
cart_url?: string;
|
188
|
-
return_url?: string;
|
189
|
-
terms_url?: string;
|
190
|
-
privacy_url?: string;
|
191
|
-
market?: MarketRel;
|
192
|
-
customer?: CustomerRel;
|
193
|
-
shipping_address?: AddressRel;
|
194
|
-
billing_address?: AddressRel;
|
195
|
-
payment_method?: PaymentMethodRel;
|
196
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
197
|
-
}
|
198
|
-
interface OrderUpdate extends ResourceUpdate {
|
199
|
-
autorefresh?: boolean;
|
200
|
-
guest?: boolean;
|
201
|
-
customer_email?: string;
|
202
|
-
customer_password?: string;
|
203
|
-
language_code?: string;
|
204
|
-
shipping_country_code_lock?: string;
|
205
|
-
coupon_code?: string;
|
206
|
-
gift_card_code?: string;
|
207
|
-
gift_card_or_coupon_code?: string;
|
208
|
-
cart_url?: string;
|
209
|
-
return_url?: string;
|
210
|
-
terms_url?: string;
|
211
|
-
privacy_url?: string;
|
212
|
-
_archive?: boolean;
|
213
|
-
_unarchive?: boolean;
|
214
|
-
_place?: boolean;
|
215
|
-
_cancel?: boolean;
|
216
|
-
_approve?: boolean;
|
217
|
-
_approve_and_capture?: boolean;
|
218
|
-
_authorize?: boolean;
|
219
|
-
_authorization_amount_cents?: number;
|
220
|
-
_capture?: boolean;
|
221
|
-
_refund?: boolean;
|
222
|
-
_update_taxes?: boolean;
|
223
|
-
_billing_address_clone_id?: string;
|
224
|
-
_shipping_address_clone_id?: string;
|
225
|
-
_customer_payment_source_id?: string;
|
226
|
-
_shipping_address_same_as_billing?: boolean;
|
227
|
-
_billing_address_same_as_shipping?: boolean;
|
228
|
-
_save_payment_source_to_customer_wallet?: boolean;
|
229
|
-
_save_shipping_address_to_customer_address_book?: boolean;
|
230
|
-
_save_billing_address_to_customer_address_book?: boolean;
|
231
|
-
_refresh?: boolean;
|
232
|
-
market?: MarketRel;
|
233
|
-
customer?: CustomerRel;
|
234
|
-
shipping_address?: AddressRel;
|
235
|
-
billing_address?: AddressRel;
|
236
|
-
payment_method?: PaymentMethodRel;
|
237
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
238
|
-
}
|
239
|
-
declare class Orders extends ApiResource {
|
240
|
-
static readonly TYPE: 'orders';
|
241
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Order>>;
|
242
|
-
create(resource: OrderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
243
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
244
|
-
update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
245
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
246
|
-
isOrder(resource: any): resource is Order;
|
247
|
-
relationship(id: string | ResourceId): OrderRel;
|
248
|
-
type(): string;
|
249
|
-
}
|
250
|
-
export default Orders;
|
251
|
-
export { Order, OrderCreate, OrderUpdate };
|
@@ -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;
|