@commercelayer/sdk 4.41.0 → 4.42.0
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/lib/cjs/api.d.ts +38 -0
- package/lib/cjs/api.js +7 -14
- package/lib/cjs/client.d.ts +20 -14
- package/lib/cjs/client.js +74 -43
- package/lib/cjs/commercelayer.d.ts +7 -6
- package/lib/cjs/commercelayer.js +14 -4
- package/lib/cjs/common.d.ts +1 -0
- package/lib/cjs/common.js +11 -2
- package/lib/cjs/config.d.ts +1 -0
- package/lib/cjs/config.js +3 -0
- package/lib/cjs/debug.js +0 -4
- package/lib/cjs/error.d.ts +11 -8
- package/lib/cjs/error.js +42 -8
- package/lib/cjs/index.d.ts +1 -1
- package/lib/cjs/index.js +0 -16
- package/lib/cjs/interceptor.d.ts +6 -2
- package/lib/cjs/jsonapi.d.ts +1 -0
- package/lib/cjs/jsonapi.js +10 -3
- package/lib/cjs/query.d.ts +9 -15
- package/lib/cjs/query.js +3 -2
- package/lib/cjs/resource.d.ts +31 -20
- package/lib/cjs/resource.js +56 -10
- package/lib/cjs/resources/addresses.d.ts +74 -73
- package/lib/cjs/resources/addresses.js +3 -11
- package/lib/cjs/resources/adjustments.d.ts +20 -19
- package/lib/cjs/resources/adjustments.js +3 -11
- package/lib/cjs/resources/adyen_gateways.d.ts +35 -34
- package/lib/cjs/resources/adyen_gateways.js +3 -11
- package/lib/cjs/resources/adyen_payments.d.ts +29 -27
- package/lib/cjs/resources/adyen_payments.js +6 -11
- package/lib/cjs/resources/application.d.ts +14 -13
- package/lib/cjs/resources/application.js +1 -6
- package/lib/cjs/resources/attachments.d.ts +81 -80
- package/lib/cjs/resources/attachments.js +3 -11
- package/lib/cjs/resources/authorizations.d.ts +47 -43
- package/lib/cjs/resources/authorizations.js +10 -9
- package/lib/cjs/resources/avalara_accounts.d.ts +32 -31
- package/lib/cjs/resources/avalara_accounts.js +3 -11
- package/lib/cjs/resources/axerve_gateways.d.ts +24 -23
- package/lib/cjs/resources/axerve_gateways.js +3 -11
- package/lib/cjs/resources/axerve_payments.d.ts +34 -32
- package/lib/cjs/resources/axerve_payments.js +6 -11
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +17 -16
- package/lib/cjs/resources/billing_info_validation_rules.js +3 -11
- package/lib/cjs/resources/bing_geocoders.d.ts +16 -15
- package/lib/cjs/resources/bing_geocoders.js +3 -11
- package/lib/cjs/resources/braintree_gateways.d.ts +34 -33
- package/lib/cjs/resources/braintree_gateways.js +3 -11
- package/lib/cjs/resources/braintree_payments.d.ts +30 -29
- package/lib/cjs/resources/braintree_payments.js +3 -11
- package/lib/cjs/resources/bundles.d.ts +59 -56
- package/lib/cjs/resources/bundles.js +9 -11
- package/lib/cjs/resources/buy_x_pay_y_promotions.d.ts +96 -85
- package/lib/cjs/resources/buy_x_pay_y_promotions.js +13 -11
- package/lib/cjs/resources/captures.d.ts +37 -34
- package/lib/cjs/resources/captures.js +7 -9
- package/lib/cjs/resources/carrier_accounts.d.ts +16 -15
- package/lib/cjs/resources/carrier_accounts.js +0 -8
- package/lib/cjs/resources/checkout_com_gateways.d.ts +25 -24
- package/lib/cjs/resources/checkout_com_gateways.js +3 -11
- package/lib/cjs/resources/checkout_com_payments.d.ts +41 -38
- package/lib/cjs/resources/checkout_com_payments.js +9 -11
- package/lib/cjs/resources/cleanups.d.ts +24 -23
- package/lib/cjs/resources/cleanups.js +2 -10
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +33 -32
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +3 -11
- package/lib/cjs/resources/coupon_recipients.d.ts +26 -25
- package/lib/cjs/resources/coupon_recipients.js +3 -11
- package/lib/cjs/resources/coupons.d.ts +42 -41
- package/lib/cjs/resources/coupons.js +3 -11
- package/lib/cjs/resources/custom_promotion_rules.d.ts +31 -30
- package/lib/cjs/resources/custom_promotion_rules.js +3 -11
- package/lib/cjs/resources/customer_addresses.d.ts +23 -22
- package/lib/cjs/resources/customer_addresses.js +3 -11
- package/lib/cjs/resources/customer_groups.d.ts +17 -16
- package/lib/cjs/resources/customer_groups.js +3 -11
- package/lib/cjs/resources/customer_password_resets.d.ts +19 -17
- package/lib/cjs/resources/customer_password_resets.js +6 -11
- package/lib/cjs/resources/customer_payment_sources.d.ts +47 -46
- package/lib/cjs/resources/customer_payment_sources.js +3 -11
- package/lib/cjs/resources/customer_subscriptions.d.ts +15 -14
- package/lib/cjs/resources/customer_subscriptions.js +3 -11
- package/lib/cjs/resources/customers.d.ts +37 -36
- package/lib/cjs/resources/customers.js +3 -11
- package/lib/cjs/resources/delivery_lead_times.d.ts +27 -26
- package/lib/cjs/resources/delivery_lead_times.js +3 -11
- package/lib/cjs/resources/event_callbacks.d.ts +15 -14
- package/lib/cjs/resources/event_callbacks.js +0 -8
- package/lib/cjs/resources/events.d.ts +13 -12
- package/lib/cjs/resources/events.js +0 -8
- package/lib/cjs/resources/exports.d.ts +27 -26
- package/lib/cjs/resources/exports.js +2 -10
- package/lib/cjs/resources/external_gateways.d.ts +32 -31
- package/lib/cjs/resources/external_gateways.js +3 -11
- package/lib/cjs/resources/external_payments.d.ts +23 -22
- package/lib/cjs/resources/external_payments.js +3 -11
- package/lib/cjs/resources/external_promotions.d.ts +93 -82
- package/lib/cjs/resources/external_promotions.js +13 -11
- package/lib/cjs/resources/external_tax_calculators.d.ts +19 -18
- package/lib/cjs/resources/external_tax_calculators.js +3 -11
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +94 -83
- package/lib/cjs/resources/fixed_amount_promotions.js +13 -11
- package/lib/cjs/resources/fixed_price_promotions.d.ts +93 -82
- package/lib/cjs/resources/fixed_price_promotions.js +13 -11
- package/lib/cjs/resources/free_gift_promotions.d.ts +92 -81
- package/lib/cjs/resources/free_gift_promotions.js +13 -11
- package/lib/cjs/resources/free_shipping_promotions.d.ts +85 -74
- package/lib/cjs/resources/free_shipping_promotions.js +13 -11
- package/lib/cjs/resources/geocoders.d.ts +13 -12
- package/lib/cjs/resources/geocoders.js +0 -8
- package/lib/cjs/resources/gift_card_recipients.d.ts +26 -25
- package/lib/cjs/resources/gift_card_recipients.js +3 -11
- package/lib/cjs/resources/gift_cards.d.ts +71 -66
- package/lib/cjs/resources/gift_cards.js +15 -11
- package/lib/cjs/resources/google_geocoders.d.ts +16 -15
- package/lib/cjs/resources/google_geocoders.js +3 -11
- package/lib/cjs/resources/imports.d.ts +30 -29
- package/lib/cjs/resources/imports.js +2 -10
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +38 -35
- package/lib/cjs/resources/in_stock_subscriptions.js +9 -11
- package/lib/cjs/resources/inventory_models.d.ts +32 -28
- package/lib/cjs/resources/inventory_models.js +3 -11
- package/lib/cjs/resources/inventory_return_locations.d.ts +22 -21
- package/lib/cjs/resources/inventory_return_locations.js +3 -11
- package/lib/cjs/resources/inventory_stock_locations.d.ts +25 -24
- package/lib/cjs/resources/inventory_stock_locations.js +3 -11
- package/lib/cjs/resources/klarna_gateways.d.ts +23 -22
- package/lib/cjs/resources/klarna_gateways.js +3 -11
- package/lib/cjs/resources/klarna_payments.d.ts +29 -27
- package/lib/cjs/resources/klarna_payments.js +6 -11
- package/lib/cjs/resources/line_item_options.d.ts +41 -40
- package/lib/cjs/resources/line_item_options.js +3 -11
- package/lib/cjs/resources/line_items.d.ts +106 -100
- package/lib/cjs/resources/line_items.js +13 -11
- package/lib/cjs/resources/manual_gateways.d.ts +15 -14
- package/lib/cjs/resources/manual_gateways.js +3 -11
- package/lib/cjs/resources/manual_tax_calculators.d.ts +21 -20
- package/lib/cjs/resources/manual_tax_calculators.js +3 -11
- package/lib/cjs/resources/markets.d.ts +67 -64
- package/lib/cjs/resources/markets.js +9 -11
- package/lib/cjs/resources/merchants.d.ts +19 -18
- package/lib/cjs/resources/merchants.js +3 -11
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +36 -35
- package/lib/cjs/resources/order_amount_promotion_rules.js +3 -11
- package/lib/cjs/resources/order_copies.d.ts +29 -28
- package/lib/cjs/resources/order_copies.js +3 -11
- package/lib/cjs/resources/order_factories.d.ts +21 -20
- package/lib/cjs/resources/order_factories.js +0 -8
- package/lib/cjs/resources/order_subscription_items.d.ts +40 -39
- package/lib/cjs/resources/order_subscription_items.js +3 -11
- package/lib/cjs/resources/order_subscriptions.d.ts +55 -51
- package/lib/cjs/resources/order_subscriptions.js +12 -11
- package/lib/cjs/resources/order_validation_rules.d.ts +13 -12
- package/lib/cjs/resources/order_validation_rules.js +0 -8
- package/lib/cjs/resources/orders.d.ts +281 -251
- package/lib/cjs/resources/orders.js +88 -11
- package/lib/cjs/resources/organization.d.ts +25 -24
- package/lib/cjs/resources/organization.js +1 -6
- package/lib/cjs/resources/packages.d.ts +31 -30
- package/lib/cjs/resources/packages.js +3 -11
- package/lib/cjs/resources/parcel_line_items.d.ts +23 -22
- package/lib/cjs/resources/parcel_line_items.js +3 -11
- package/lib/cjs/resources/parcels.d.ts +94 -93
- package/lib/cjs/resources/parcels.js +3 -11
- package/lib/cjs/resources/payment_gateways.d.ts +13 -12
- package/lib/cjs/resources/payment_gateways.js +0 -8
- package/lib/cjs/resources/payment_methods.d.ts +54 -51
- package/lib/cjs/resources/payment_methods.js +9 -11
- package/lib/cjs/resources/payment_options.d.ts +24 -23
- package/lib/cjs/resources/payment_options.js +3 -11
- package/lib/cjs/resources/paypal_gateways.d.ts +18 -17
- package/lib/cjs/resources/paypal_gateways.js +3 -11
- package/lib/cjs/resources/paypal_payments.d.ts +32 -31
- package/lib/cjs/resources/paypal_payments.js +3 -11
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +92 -81
- package/lib/cjs/resources/percentage_discount_promotions.js +13 -11
- package/lib/cjs/resources/price_frequency_tiers.d.ts +27 -26
- package/lib/cjs/resources/price_frequency_tiers.js +3 -11
- package/lib/cjs/resources/price_lists.d.ts +24 -23
- package/lib/cjs/resources/price_lists.js +3 -11
- package/lib/cjs/resources/price_tiers.d.ts +18 -17
- package/lib/cjs/resources/price_tiers.js +0 -8
- package/lib/cjs/resources/price_volume_tiers.d.ts +27 -26
- package/lib/cjs/resources/price_volume_tiers.js +3 -11
- package/lib/cjs/resources/prices.d.ts +41 -40
- package/lib/cjs/resources/prices.js +3 -11
- package/lib/cjs/resources/promotion_rules.d.ts +12 -11
- package/lib/cjs/resources/promotion_rules.js +0 -8
- package/lib/cjs/resources/promotions.d.ts +34 -30
- package/lib/cjs/resources/promotions.js +4 -8
- package/lib/cjs/resources/recurring_order_copies.d.ts +29 -28
- package/lib/cjs/resources/recurring_order_copies.js +3 -11
- package/lib/cjs/resources/refunds.d.ts +26 -25
- package/lib/cjs/resources/refunds.js +0 -8
- package/lib/cjs/resources/reserved_stocks.d.ts +14 -13
- package/lib/cjs/resources/reserved_stocks.js +0 -8
- package/lib/cjs/resources/return_line_items.d.ts +29 -27
- package/lib/cjs/resources/return_line_items.js +6 -11
- package/lib/cjs/resources/returns.d.ts +59 -49
- package/lib/cjs/resources/returns.js +30 -11
- package/lib/cjs/resources/satispay_gateways.d.ts +23 -22
- package/lib/cjs/resources/satispay_gateways.js +3 -11
- package/lib/cjs/resources/satispay_payments.d.ts +31 -29
- package/lib/cjs/resources/satispay_payments.js +6 -11
- package/lib/cjs/resources/shipments.d.ts +94 -82
- package/lib/cjs/resources/shipments.js +36 -11
- package/lib/cjs/resources/shipping_categories.d.ts +19 -18
- package/lib/cjs/resources/shipping_categories.js +3 -11
- package/lib/cjs/resources/shipping_method_tiers.d.ts +18 -17
- package/lib/cjs/resources/shipping_method_tiers.js +0 -8
- package/lib/cjs/resources/shipping_methods.d.ts +82 -79
- package/lib/cjs/resources/shipping_methods.js +9 -11
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +26 -25
- package/lib/cjs/resources/shipping_weight_tiers.js +3 -11
- package/lib/cjs/resources/shipping_zones.d.ts +33 -32
- package/lib/cjs/resources/shipping_zones.js +3 -11
- package/lib/cjs/resources/sku_list_items.d.ts +27 -26
- package/lib/cjs/resources/sku_list_items.js +3 -11
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +40 -39
- package/lib/cjs/resources/sku_list_promotion_rules.js +3 -11
- package/lib/cjs/resources/sku_lists.d.ts +36 -35
- package/lib/cjs/resources/sku_lists.js +3 -11
- package/lib/cjs/resources/sku_options.d.ts +44 -43
- package/lib/cjs/resources/sku_options.js +3 -11
- package/lib/cjs/resources/skus.d.ts +57 -56
- package/lib/cjs/resources/skus.js +3 -11
- package/lib/cjs/resources/stock_items.d.ts +29 -28
- package/lib/cjs/resources/stock_items.js +3 -11
- package/lib/cjs/resources/stock_line_items.d.ts +44 -37
- package/lib/cjs/resources/stock_line_items.js +12 -11
- package/lib/cjs/resources/stock_locations.d.ts +33 -32
- package/lib/cjs/resources/stock_locations.js +3 -11
- package/lib/cjs/resources/stock_reservations.d.ts +24 -23
- package/lib/cjs/resources/stock_reservations.js +6 -11
- package/lib/cjs/resources/stock_transfers.d.ts +51 -44
- package/lib/cjs/resources/stock_transfers.js +21 -11
- package/lib/cjs/resources/stripe_gateways.d.ts +23 -22
- package/lib/cjs/resources/stripe_gateways.js +3 -11
- package/lib/cjs/resources/stripe_payments.d.ts +37 -34
- package/lib/cjs/resources/stripe_payments.js +9 -11
- package/lib/cjs/resources/subscription_models.d.ts +27 -26
- package/lib/cjs/resources/subscription_models.js +3 -11
- package/lib/cjs/resources/tags.d.ts +13 -12
- package/lib/cjs/resources/tags.js +3 -11
- package/lib/cjs/resources/tax_calculators.d.ts +14 -13
- package/lib/cjs/resources/tax_calculators.js +0 -8
- package/lib/cjs/resources/tax_categories.d.ts +31 -30
- package/lib/cjs/resources/tax_categories.js +3 -11
- package/lib/cjs/resources/tax_rules.d.ts +52 -51
- package/lib/cjs/resources/tax_rules.js +3 -11
- package/lib/cjs/resources/taxjar_accounts.d.ts +22 -21
- package/lib/cjs/resources/taxjar_accounts.js +3 -11
- package/lib/cjs/resources/transactions.d.ts +25 -24
- package/lib/cjs/resources/transactions.js +0 -8
- package/lib/cjs/resources/versions.d.ts +14 -14
- package/lib/cjs/resources/versions.js +0 -8
- package/lib/cjs/resources/voids.d.ts +26 -25
- package/lib/cjs/resources/voids.js +0 -8
- package/lib/cjs/resources/webhooks.d.ts +35 -31
- package/lib/cjs/resources/webhooks.js +12 -11
- package/lib/cjs/resources/wire_transfers.d.ts +17 -16
- package/lib/cjs/resources/wire_transfers.js +3 -11
- package/lib/cjs/static.d.ts +5 -2
- package/lib/cjs/static.js +8 -2
- package/lib/cjs/util.d.ts +2 -4
- package/lib/cjs/util.js +1 -0
- package/lib/esm/api.d.ts +38 -0
- package/lib/esm/api.js +6 -13
- package/lib/esm/client.d.ts +20 -14
- package/lib/esm/client.js +75 -44
- package/lib/esm/commercelayer.d.ts +7 -6
- package/lib/esm/commercelayer.js +14 -4
- package/lib/esm/common.d.ts +1 -0
- package/lib/esm/common.js +11 -2
- package/lib/esm/config.d.ts +1 -0
- package/lib/esm/config.js +3 -0
- package/lib/esm/debug.js +0 -4
- package/lib/esm/error.d.ts +11 -8
- package/lib/esm/error.js +37 -6
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +0 -2
- package/lib/esm/interceptor.d.ts +6 -2
- package/lib/esm/jsonapi.d.ts +1 -0
- package/lib/esm/jsonapi.js +10 -3
- package/lib/esm/query.d.ts +9 -15
- package/lib/esm/query.js +2 -2
- package/lib/esm/resource.d.ts +31 -20
- package/lib/esm/resource.js +56 -11
- package/lib/esm/resources/addresses.d.ts +74 -73
- package/lib/esm/resources/addresses.js +3 -11
- package/lib/esm/resources/adjustments.d.ts +20 -19
- package/lib/esm/resources/adjustments.js +3 -11
- package/lib/esm/resources/adyen_gateways.d.ts +35 -34
- package/lib/esm/resources/adyen_gateways.js +3 -11
- package/lib/esm/resources/adyen_payments.d.ts +29 -27
- package/lib/esm/resources/adyen_payments.js +6 -11
- package/lib/esm/resources/application.d.ts +14 -13
- package/lib/esm/resources/application.js +2 -7
- package/lib/esm/resources/attachments.d.ts +81 -80
- package/lib/esm/resources/attachments.js +3 -11
- package/lib/esm/resources/authorizations.d.ts +47 -43
- package/lib/esm/resources/authorizations.js +10 -9
- package/lib/esm/resources/avalara_accounts.d.ts +32 -31
- package/lib/esm/resources/avalara_accounts.js +3 -11
- package/lib/esm/resources/axerve_gateways.d.ts +24 -23
- package/lib/esm/resources/axerve_gateways.js +3 -11
- package/lib/esm/resources/axerve_payments.d.ts +34 -32
- package/lib/esm/resources/axerve_payments.js +6 -11
- package/lib/esm/resources/billing_info_validation_rules.d.ts +17 -16
- package/lib/esm/resources/billing_info_validation_rules.js +3 -11
- package/lib/esm/resources/bing_geocoders.d.ts +16 -15
- package/lib/esm/resources/bing_geocoders.js +3 -11
- package/lib/esm/resources/braintree_gateways.d.ts +34 -33
- package/lib/esm/resources/braintree_gateways.js +3 -11
- package/lib/esm/resources/braintree_payments.d.ts +30 -29
- package/lib/esm/resources/braintree_payments.js +3 -11
- package/lib/esm/resources/bundles.d.ts +59 -56
- package/lib/esm/resources/bundles.js +9 -11
- package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +96 -85
- package/lib/esm/resources/buy_x_pay_y_promotions.js +13 -11
- package/lib/esm/resources/captures.d.ts +37 -34
- package/lib/esm/resources/captures.js +7 -9
- package/lib/esm/resources/carrier_accounts.d.ts +16 -15
- package/lib/esm/resources/carrier_accounts.js +0 -8
- package/lib/esm/resources/checkout_com_gateways.d.ts +25 -24
- package/lib/esm/resources/checkout_com_gateways.js +3 -11
- package/lib/esm/resources/checkout_com_payments.d.ts +41 -38
- package/lib/esm/resources/checkout_com_payments.js +9 -11
- package/lib/esm/resources/cleanups.d.ts +24 -23
- package/lib/esm/resources/cleanups.js +2 -10
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +33 -32
- package/lib/esm/resources/coupon_codes_promotion_rules.js +3 -11
- package/lib/esm/resources/coupon_recipients.d.ts +26 -25
- package/lib/esm/resources/coupon_recipients.js +3 -11
- package/lib/esm/resources/coupons.d.ts +42 -41
- package/lib/esm/resources/coupons.js +3 -11
- package/lib/esm/resources/custom_promotion_rules.d.ts +31 -30
- package/lib/esm/resources/custom_promotion_rules.js +3 -11
- package/lib/esm/resources/customer_addresses.d.ts +23 -22
- package/lib/esm/resources/customer_addresses.js +3 -11
- package/lib/esm/resources/customer_groups.d.ts +17 -16
- package/lib/esm/resources/customer_groups.js +3 -11
- package/lib/esm/resources/customer_password_resets.d.ts +19 -17
- package/lib/esm/resources/customer_password_resets.js +6 -11
- package/lib/esm/resources/customer_payment_sources.d.ts +47 -46
- package/lib/esm/resources/customer_payment_sources.js +3 -11
- package/lib/esm/resources/customer_subscriptions.d.ts +15 -14
- package/lib/esm/resources/customer_subscriptions.js +3 -11
- package/lib/esm/resources/customers.d.ts +37 -36
- package/lib/esm/resources/customers.js +3 -11
- package/lib/esm/resources/delivery_lead_times.d.ts +27 -26
- package/lib/esm/resources/delivery_lead_times.js +3 -11
- package/lib/esm/resources/event_callbacks.d.ts +15 -14
- package/lib/esm/resources/event_callbacks.js +0 -8
- package/lib/esm/resources/events.d.ts +13 -12
- package/lib/esm/resources/events.js +0 -8
- package/lib/esm/resources/exports.d.ts +27 -26
- package/lib/esm/resources/exports.js +2 -10
- package/lib/esm/resources/external_gateways.d.ts +32 -31
- package/lib/esm/resources/external_gateways.js +3 -11
- package/lib/esm/resources/external_payments.d.ts +23 -22
- package/lib/esm/resources/external_payments.js +3 -11
- package/lib/esm/resources/external_promotions.d.ts +93 -82
- package/lib/esm/resources/external_promotions.js +13 -11
- package/lib/esm/resources/external_tax_calculators.d.ts +19 -18
- package/lib/esm/resources/external_tax_calculators.js +3 -11
- package/lib/esm/resources/fixed_amount_promotions.d.ts +94 -83
- package/lib/esm/resources/fixed_amount_promotions.js +13 -11
- package/lib/esm/resources/fixed_price_promotions.d.ts +93 -82
- package/lib/esm/resources/fixed_price_promotions.js +13 -11
- package/lib/esm/resources/free_gift_promotions.d.ts +92 -81
- package/lib/esm/resources/free_gift_promotions.js +13 -11
- package/lib/esm/resources/free_shipping_promotions.d.ts +85 -74
- package/lib/esm/resources/free_shipping_promotions.js +13 -11
- package/lib/esm/resources/geocoders.d.ts +13 -12
- package/lib/esm/resources/geocoders.js +0 -8
- package/lib/esm/resources/gift_card_recipients.d.ts +26 -25
- package/lib/esm/resources/gift_card_recipients.js +3 -11
- package/lib/esm/resources/gift_cards.d.ts +71 -66
- package/lib/esm/resources/gift_cards.js +15 -11
- package/lib/esm/resources/google_geocoders.d.ts +16 -15
- package/lib/esm/resources/google_geocoders.js +3 -11
- package/lib/esm/resources/imports.d.ts +30 -29
- package/lib/esm/resources/imports.js +2 -10
- package/lib/esm/resources/in_stock_subscriptions.d.ts +38 -35
- package/lib/esm/resources/in_stock_subscriptions.js +9 -11
- package/lib/esm/resources/inventory_models.d.ts +32 -28
- package/lib/esm/resources/inventory_models.js +3 -11
- package/lib/esm/resources/inventory_return_locations.d.ts +22 -21
- package/lib/esm/resources/inventory_return_locations.js +3 -11
- package/lib/esm/resources/inventory_stock_locations.d.ts +25 -24
- package/lib/esm/resources/inventory_stock_locations.js +3 -11
- package/lib/esm/resources/klarna_gateways.d.ts +23 -22
- package/lib/esm/resources/klarna_gateways.js +3 -11
- package/lib/esm/resources/klarna_payments.d.ts +29 -27
- package/lib/esm/resources/klarna_payments.js +6 -11
- package/lib/esm/resources/line_item_options.d.ts +41 -40
- package/lib/esm/resources/line_item_options.js +3 -11
- package/lib/esm/resources/line_items.d.ts +106 -100
- package/lib/esm/resources/line_items.js +13 -11
- package/lib/esm/resources/manual_gateways.d.ts +15 -14
- package/lib/esm/resources/manual_gateways.js +3 -11
- package/lib/esm/resources/manual_tax_calculators.d.ts +21 -20
- package/lib/esm/resources/manual_tax_calculators.js +3 -11
- package/lib/esm/resources/markets.d.ts +67 -64
- package/lib/esm/resources/markets.js +9 -11
- package/lib/esm/resources/merchants.d.ts +19 -18
- package/lib/esm/resources/merchants.js +3 -11
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +36 -35
- package/lib/esm/resources/order_amount_promotion_rules.js +3 -11
- package/lib/esm/resources/order_copies.d.ts +29 -28
- package/lib/esm/resources/order_copies.js +3 -11
- package/lib/esm/resources/order_factories.d.ts +21 -20
- package/lib/esm/resources/order_factories.js +0 -8
- package/lib/esm/resources/order_subscription_items.d.ts +40 -39
- package/lib/esm/resources/order_subscription_items.js +3 -11
- package/lib/esm/resources/order_subscriptions.d.ts +55 -51
- package/lib/esm/resources/order_subscriptions.js +12 -11
- package/lib/esm/resources/order_validation_rules.d.ts +13 -12
- package/lib/esm/resources/order_validation_rules.js +0 -8
- package/lib/esm/resources/orders.d.ts +281 -251
- package/lib/esm/resources/orders.js +88 -11
- package/lib/esm/resources/organization.d.ts +25 -24
- package/lib/esm/resources/organization.js +2 -7
- package/lib/esm/resources/packages.d.ts +31 -30
- package/lib/esm/resources/packages.js +3 -11
- package/lib/esm/resources/parcel_line_items.d.ts +23 -22
- package/lib/esm/resources/parcel_line_items.js +3 -11
- package/lib/esm/resources/parcels.d.ts +94 -93
- package/lib/esm/resources/parcels.js +3 -11
- package/lib/esm/resources/payment_gateways.d.ts +13 -12
- package/lib/esm/resources/payment_gateways.js +0 -8
- package/lib/esm/resources/payment_methods.d.ts +54 -51
- package/lib/esm/resources/payment_methods.js +9 -11
- package/lib/esm/resources/payment_options.d.ts +24 -23
- package/lib/esm/resources/payment_options.js +3 -11
- package/lib/esm/resources/paypal_gateways.d.ts +18 -17
- package/lib/esm/resources/paypal_gateways.js +3 -11
- package/lib/esm/resources/paypal_payments.d.ts +32 -31
- package/lib/esm/resources/paypal_payments.js +3 -11
- package/lib/esm/resources/percentage_discount_promotions.d.ts +92 -81
- package/lib/esm/resources/percentage_discount_promotions.js +13 -11
- package/lib/esm/resources/price_frequency_tiers.d.ts +27 -26
- package/lib/esm/resources/price_frequency_tiers.js +3 -11
- package/lib/esm/resources/price_lists.d.ts +24 -23
- package/lib/esm/resources/price_lists.js +3 -11
- package/lib/esm/resources/price_tiers.d.ts +18 -17
- package/lib/esm/resources/price_tiers.js +0 -8
- package/lib/esm/resources/price_volume_tiers.d.ts +27 -26
- package/lib/esm/resources/price_volume_tiers.js +3 -11
- package/lib/esm/resources/prices.d.ts +41 -40
- package/lib/esm/resources/prices.js +3 -11
- package/lib/esm/resources/promotion_rules.d.ts +12 -11
- package/lib/esm/resources/promotion_rules.js +0 -8
- package/lib/esm/resources/promotions.d.ts +34 -30
- package/lib/esm/resources/promotions.js +4 -8
- package/lib/esm/resources/recurring_order_copies.d.ts +29 -28
- package/lib/esm/resources/recurring_order_copies.js +3 -11
- package/lib/esm/resources/refunds.d.ts +26 -25
- package/lib/esm/resources/refunds.js +0 -8
- package/lib/esm/resources/reserved_stocks.d.ts +14 -13
- package/lib/esm/resources/reserved_stocks.js +0 -8
- package/lib/esm/resources/return_line_items.d.ts +29 -27
- package/lib/esm/resources/return_line_items.js +6 -11
- package/lib/esm/resources/returns.d.ts +59 -49
- package/lib/esm/resources/returns.js +30 -11
- package/lib/esm/resources/satispay_gateways.d.ts +23 -22
- package/lib/esm/resources/satispay_gateways.js +3 -11
- package/lib/esm/resources/satispay_payments.d.ts +31 -29
- package/lib/esm/resources/satispay_payments.js +6 -11
- package/lib/esm/resources/shipments.d.ts +94 -82
- package/lib/esm/resources/shipments.js +36 -11
- package/lib/esm/resources/shipping_categories.d.ts +19 -18
- package/lib/esm/resources/shipping_categories.js +3 -11
- package/lib/esm/resources/shipping_method_tiers.d.ts +18 -17
- package/lib/esm/resources/shipping_method_tiers.js +0 -8
- package/lib/esm/resources/shipping_methods.d.ts +82 -79
- package/lib/esm/resources/shipping_methods.js +9 -11
- package/lib/esm/resources/shipping_weight_tiers.d.ts +26 -25
- package/lib/esm/resources/shipping_weight_tiers.js +3 -11
- package/lib/esm/resources/shipping_zones.d.ts +33 -32
- package/lib/esm/resources/shipping_zones.js +3 -11
- package/lib/esm/resources/sku_list_items.d.ts +27 -26
- package/lib/esm/resources/sku_list_items.js +3 -11
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +40 -39
- package/lib/esm/resources/sku_list_promotion_rules.js +3 -11
- package/lib/esm/resources/sku_lists.d.ts +36 -35
- package/lib/esm/resources/sku_lists.js +3 -11
- package/lib/esm/resources/sku_options.d.ts +44 -43
- package/lib/esm/resources/sku_options.js +3 -11
- package/lib/esm/resources/skus.d.ts +57 -56
- package/lib/esm/resources/skus.js +3 -11
- package/lib/esm/resources/stock_items.d.ts +29 -28
- package/lib/esm/resources/stock_items.js +3 -11
- package/lib/esm/resources/stock_line_items.d.ts +44 -37
- package/lib/esm/resources/stock_line_items.js +12 -11
- package/lib/esm/resources/stock_locations.d.ts +33 -32
- package/lib/esm/resources/stock_locations.js +3 -11
- package/lib/esm/resources/stock_reservations.d.ts +24 -23
- package/lib/esm/resources/stock_reservations.js +6 -11
- package/lib/esm/resources/stock_transfers.d.ts +51 -44
- package/lib/esm/resources/stock_transfers.js +21 -11
- package/lib/esm/resources/stripe_gateways.d.ts +23 -22
- package/lib/esm/resources/stripe_gateways.js +3 -11
- package/lib/esm/resources/stripe_payments.d.ts +37 -34
- package/lib/esm/resources/stripe_payments.js +9 -11
- package/lib/esm/resources/subscription_models.d.ts +27 -26
- package/lib/esm/resources/subscription_models.js +3 -11
- package/lib/esm/resources/tags.d.ts +13 -12
- package/lib/esm/resources/tags.js +3 -11
- package/lib/esm/resources/tax_calculators.d.ts +14 -13
- package/lib/esm/resources/tax_calculators.js +0 -8
- package/lib/esm/resources/tax_categories.d.ts +31 -30
- package/lib/esm/resources/tax_categories.js +3 -11
- package/lib/esm/resources/tax_rules.d.ts +52 -51
- package/lib/esm/resources/tax_rules.js +3 -11
- package/lib/esm/resources/taxjar_accounts.d.ts +22 -21
- package/lib/esm/resources/taxjar_accounts.js +3 -11
- package/lib/esm/resources/transactions.d.ts +25 -24
- package/lib/esm/resources/transactions.js +0 -8
- package/lib/esm/resources/versions.d.ts +14 -14
- package/lib/esm/resources/versions.js +0 -8
- package/lib/esm/resources/voids.d.ts +26 -25
- package/lib/esm/resources/voids.js +0 -8
- package/lib/esm/resources/webhooks.d.ts +35 -31
- package/lib/esm/resources/webhooks.js +12 -11
- package/lib/esm/resources/wire_transfers.d.ts +17 -16
- package/lib/esm/resources/wire_transfers.js +3 -11
- package/lib/esm/static.d.ts +5 -2
- package/lib/esm/static.js +8 -2
- package/lib/esm/util.d.ts +2 -4
- package/lib/esm/util.js +27 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
@@ -1,22 +1,23 @@
|
|
1
|
-
import { ApiResource
|
2
|
-
import type {
|
3
|
-
import type {
|
4
|
-
import type {
|
5
|
-
import type {
|
6
|
-
import type {
|
1
|
+
import { ApiResource } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
+
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
|
+
import type { Market, MarketType } from './markets';
|
5
|
+
import type { Customer, CustomerType } from './customers';
|
6
|
+
import type { Address, AddressType } from './addresses';
|
7
|
+
import type { PaymentMethod, PaymentMethodType } from './payment_methods';
|
7
8
|
import type { CustomerPaymentSource } from './customer_payment_sources';
|
8
9
|
import type { Sku } from './skus';
|
9
10
|
import type { Bundle } from './bundles';
|
10
|
-
import type { AdyenPayment } from './adyen_payments';
|
11
|
-
import type { AxervePayment } from './axerve_payments';
|
12
|
-
import type { BraintreePayment } from './braintree_payments';
|
13
|
-
import type { CheckoutComPayment } from './checkout_com_payments';
|
14
|
-
import type { ExternalPayment } from './external_payments';
|
15
|
-
import type { KlarnaPayment } from './klarna_payments';
|
16
|
-
import type { PaypalPayment } from './paypal_payments';
|
17
|
-
import type { SatispayPayment } from './satispay_payments';
|
18
|
-
import type { StripePayment } from './stripe_payments';
|
19
|
-
import type { WireTransfer } from './wire_transfers';
|
11
|
+
import type { AdyenPayment, AdyenPaymentType } from './adyen_payments';
|
12
|
+
import type { AxervePayment, AxervePaymentType } from './axerve_payments';
|
13
|
+
import type { BraintreePayment, BraintreePaymentType } from './braintree_payments';
|
14
|
+
import type { CheckoutComPayment, CheckoutComPaymentType } from './checkout_com_payments';
|
15
|
+
import type { ExternalPayment, ExternalPaymentType } from './external_payments';
|
16
|
+
import type { KlarnaPayment, KlarnaPaymentType } from './klarna_payments';
|
17
|
+
import type { PaypalPayment, PaypalPaymentType } from './paypal_payments';
|
18
|
+
import type { SatispayPayment, SatispayPaymentType } from './satispay_payments';
|
19
|
+
import type { StripePayment, StripePaymentType } from './stripe_payments';
|
20
|
+
import type { WireTransfer, WireTransferType } from './wire_transfers';
|
20
21
|
import type { LineItem } from './line_items';
|
21
22
|
import type { LineItemOption } from './line_item_options';
|
22
23
|
import type { StockReservation } from './stock_reservations';
|
@@ -35,280 +36,281 @@ import type { OrderCopy } from './order_copies';
|
|
35
36
|
import type { RecurringOrderCopy } from './recurring_order_copies';
|
36
37
|
import type { Attachment } from './attachments';
|
37
38
|
import type { Event } from './events';
|
38
|
-
import type { Tag } from './tags';
|
39
|
+
import type { Tag, TagType } from './tags';
|
39
40
|
import type { Version } from './versions';
|
41
|
+
type OrderType = 'orders';
|
40
42
|
type OrderRel = ResourceRel & {
|
41
|
-
type:
|
43
|
+
type: OrderType;
|
42
44
|
};
|
43
45
|
type MarketRel = ResourceRel & {
|
44
|
-
type:
|
46
|
+
type: MarketType;
|
45
47
|
};
|
46
48
|
type CustomerRel = ResourceRel & {
|
47
|
-
type:
|
49
|
+
type: CustomerType;
|
48
50
|
};
|
49
51
|
type AddressRel = ResourceRel & {
|
50
|
-
type:
|
52
|
+
type: AddressType;
|
51
53
|
};
|
52
54
|
type PaymentMethodRel = ResourceRel & {
|
53
|
-
type:
|
55
|
+
type: PaymentMethodType;
|
54
56
|
};
|
55
57
|
type AdyenPaymentRel = ResourceRel & {
|
56
|
-
type:
|
58
|
+
type: AdyenPaymentType;
|
57
59
|
};
|
58
60
|
type AxervePaymentRel = ResourceRel & {
|
59
|
-
type:
|
61
|
+
type: AxervePaymentType;
|
60
62
|
};
|
61
63
|
type BraintreePaymentRel = ResourceRel & {
|
62
|
-
type:
|
64
|
+
type: BraintreePaymentType;
|
63
65
|
};
|
64
66
|
type CheckoutComPaymentRel = ResourceRel & {
|
65
|
-
type:
|
67
|
+
type: CheckoutComPaymentType;
|
66
68
|
};
|
67
69
|
type ExternalPaymentRel = ResourceRel & {
|
68
|
-
type:
|
70
|
+
type: ExternalPaymentType;
|
69
71
|
};
|
70
72
|
type KlarnaPaymentRel = ResourceRel & {
|
71
|
-
type:
|
73
|
+
type: KlarnaPaymentType;
|
72
74
|
};
|
73
75
|
type PaypalPaymentRel = ResourceRel & {
|
74
|
-
type:
|
76
|
+
type: PaypalPaymentType;
|
75
77
|
};
|
76
78
|
type SatispayPaymentRel = ResourceRel & {
|
77
|
-
type:
|
79
|
+
type: SatispayPaymentType;
|
78
80
|
};
|
79
81
|
type StripePaymentRel = ResourceRel & {
|
80
|
-
type:
|
82
|
+
type: StripePaymentType;
|
81
83
|
};
|
82
84
|
type WireTransferRel = ResourceRel & {
|
83
|
-
type:
|
85
|
+
type: WireTransferType;
|
84
86
|
};
|
85
87
|
type TagRel = ResourceRel & {
|
86
|
-
type:
|
88
|
+
type: TagType;
|
87
89
|
};
|
88
90
|
interface Order extends Resource {
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
91
|
+
readonly type: OrderType;
|
92
|
+
number?: string | null;
|
93
|
+
autorefresh?: boolean | null;
|
94
|
+
status: 'draft' | 'pending' | 'placed' | 'editing' | 'approved' | 'cancelled';
|
95
|
+
payment_status: 'unpaid' | 'authorized' | 'partially_authorized' | 'paid' | 'partially_paid' | 'voided' | 'partially_voided' | 'refunded' | 'partially_refunded' | 'free';
|
96
|
+
fulfillment_status: 'unfulfilled' | 'in_progress' | 'fulfilled' | 'not_required';
|
97
|
+
guest?: boolean | null;
|
98
|
+
editable?: boolean | null;
|
99
|
+
customer_email?: string | null;
|
100
|
+
language_code?: string | null;
|
101
|
+
currency_code?: string | null;
|
102
|
+
tax_included?: boolean | null;
|
103
|
+
tax_rate?: number | null;
|
104
|
+
freight_taxable?: boolean | null;
|
105
|
+
payment_method_taxable?: boolean | null;
|
106
|
+
adjustment_taxable?: boolean | null;
|
107
|
+
gift_card_taxable?: boolean | null;
|
108
|
+
requires_billing_info?: boolean | null;
|
109
|
+
country_code?: string | null;
|
110
|
+
shipping_country_code_lock?: string | null;
|
111
|
+
coupon_code?: string | null;
|
112
|
+
gift_card_code?: string | null;
|
113
|
+
subtotal_amount_cents?: number | null;
|
114
|
+
subtotal_amount_float?: number | null;
|
115
|
+
formatted_subtotal_amount?: string | null;
|
116
|
+
shipping_amount_cents?: number | null;
|
117
|
+
shipping_amount_float?: number | null;
|
118
|
+
formatted_shipping_amount?: string | null;
|
119
|
+
payment_method_amount_cents?: number | null;
|
120
|
+
payment_method_amount_float?: number | null;
|
121
|
+
formatted_payment_method_amount?: string | null;
|
122
|
+
discount_amount_cents?: number | null;
|
123
|
+
discount_amount_float?: number | null;
|
124
|
+
formatted_discount_amount?: string | null;
|
125
|
+
adjustment_amount_cents?: number | null;
|
126
|
+
adjustment_amount_float?: number | null;
|
127
|
+
formatted_adjustment_amount?: string | null;
|
128
|
+
gift_card_amount_cents?: number | null;
|
129
|
+
gift_card_amount_float?: number | null;
|
130
|
+
formatted_gift_card_amount?: string | null;
|
131
|
+
total_tax_amount_cents?: number | null;
|
132
|
+
total_tax_amount_float?: number | null;
|
133
|
+
formatted_total_tax_amount?: string | null;
|
134
|
+
subtotal_tax_amount_cents?: number | null;
|
135
|
+
subtotal_tax_amount_float?: number | null;
|
136
|
+
formatted_subtotal_tax_amount?: string | null;
|
137
|
+
shipping_tax_amount_cents?: number | null;
|
138
|
+
shipping_tax_amount_float?: number | null;
|
139
|
+
formatted_shipping_tax_amount?: string | null;
|
140
|
+
payment_method_tax_amount_cents?: number | null;
|
141
|
+
payment_method_tax_amount_float?: number | null;
|
142
|
+
formatted_payment_method_tax_amount?: string | null;
|
143
|
+
adjustment_tax_amount_cents?: number | null;
|
144
|
+
adjustment_tax_amount_float?: number | null;
|
145
|
+
formatted_adjustment_tax_amount?: string | null;
|
146
|
+
total_amount_cents?: number | null;
|
147
|
+
total_amount_float?: number | null;
|
148
|
+
formatted_total_amount?: string | null;
|
149
|
+
total_taxable_amount_cents?: number | null;
|
150
|
+
total_taxable_amount_float?: number | null;
|
151
|
+
formatted_total_taxable_amount?: string | null;
|
152
|
+
subtotal_taxable_amount_cents?: number | null;
|
153
|
+
subtotal_taxable_amount_float?: number | null;
|
154
|
+
formatted_subtotal_taxable_amount?: string | null;
|
155
|
+
shipping_taxable_amount_cents?: number | null;
|
156
|
+
shipping_taxable_amount_float?: number | null;
|
157
|
+
formatted_shipping_taxable_amount?: string | null;
|
158
|
+
payment_method_taxable_amount_cents?: number | null;
|
159
|
+
payment_method_taxable_amount_float?: number | null;
|
160
|
+
formatted_payment_method_taxable_amount?: string | null;
|
161
|
+
adjustment_taxable_amount_cents?: number | null;
|
162
|
+
adjustment_taxable_amount_float?: number | null;
|
163
|
+
formatted_adjustment_taxable_amount?: string | null;
|
164
|
+
total_amount_with_taxes_cents?: number | null;
|
165
|
+
total_amount_with_taxes_float?: number | null;
|
166
|
+
formatted_total_amount_with_taxes?: string | null;
|
167
|
+
fees_amount_cents?: number | null;
|
168
|
+
fees_amount_float?: number | null;
|
169
|
+
formatted_fees_amount?: string | null;
|
170
|
+
duty_amount_cents?: number | null;
|
171
|
+
duty_amount_float?: number | null;
|
172
|
+
formatted_duty_amount?: string | null;
|
173
|
+
place_total_amount_cents?: number | null;
|
174
|
+
place_total_amount_float?: number | null;
|
175
|
+
formatted_place_total_amount?: string | null;
|
176
|
+
skus_count?: number | null;
|
177
|
+
line_item_options_count?: number | null;
|
178
|
+
shipments_count?: number | null;
|
179
|
+
tax_calculations_count?: number | null;
|
180
|
+
validations_count?: number | null;
|
181
|
+
payment_source_details?: Record<string, any> | null;
|
182
|
+
token?: string | null;
|
183
|
+
cart_url?: string | null;
|
184
|
+
return_url?: string | null;
|
185
|
+
terms_url?: string | null;
|
186
|
+
privacy_url?: string | null;
|
187
|
+
checkout_url?: string | null;
|
188
|
+
placed_at?: string | null;
|
189
|
+
approved_at?: string | null;
|
190
|
+
cancelled_at?: string | null;
|
191
|
+
payment_updated_at?: string | null;
|
192
|
+
fulfillment_updated_at?: string | null;
|
193
|
+
refreshed_at?: string | null;
|
194
|
+
archived_at?: string | null;
|
195
|
+
expires_at?: string | null;
|
196
|
+
subscription_created_at?: string | null;
|
197
|
+
market?: Market | null;
|
198
|
+
customer?: Customer | null;
|
199
|
+
shipping_address?: Address | null;
|
200
|
+
billing_address?: Address | null;
|
201
|
+
available_payment_methods?: PaymentMethod[] | null;
|
202
|
+
available_customer_payment_sources?: CustomerPaymentSource[] | null;
|
203
|
+
available_free_skus?: Sku[] | null;
|
204
|
+
available_free_bundles?: Bundle[] | null;
|
205
|
+
payment_method?: PaymentMethod | null;
|
206
|
+
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null;
|
207
|
+
line_items?: LineItem[] | null;
|
208
|
+
line_item_options?: LineItemOption[] | null;
|
209
|
+
stock_reservations?: StockReservation[] | null;
|
210
|
+
stock_line_items?: StockLineItem[] | null;
|
211
|
+
stock_transfers?: StockTransfer[] | null;
|
212
|
+
shipments?: Shipment[] | null;
|
213
|
+
payment_options?: PaymentOption[] | null;
|
214
|
+
transactions?: Array<Authorization | Capture | Void | Refund> | null;
|
215
|
+
authorizations?: Authorization[] | null;
|
216
|
+
captures?: Capture[] | null;
|
217
|
+
voids?: Void[] | null;
|
218
|
+
refunds?: Refund[] | null;
|
219
|
+
returns?: Return[] | null;
|
220
|
+
order_subscription?: OrderSubscription | null;
|
221
|
+
order_subscriptions?: OrderSubscription[] | null;
|
222
|
+
order_factories?: OrderFactory[] | null;
|
223
|
+
order_copies?: OrderCopy[] | null;
|
224
|
+
recurring_order_copies?: RecurringOrderCopy[] | null;
|
225
|
+
attachments?: Attachment[] | null;
|
226
|
+
events?: Event[] | null;
|
227
|
+
tags?: Tag[] | null;
|
228
|
+
versions?: Version[] | null;
|
225
229
|
}
|
226
230
|
interface OrderCreate extends ResourceCreate {
|
227
|
-
number?: string;
|
228
|
-
autorefresh?: boolean;
|
229
|
-
guest?: boolean;
|
230
|
-
customer_email?: string;
|
231
|
-
customer_password?: string;
|
232
|
-
language_code?: string;
|
233
|
-
freight_taxable?: boolean;
|
234
|
-
payment_method_taxable?: boolean;
|
235
|
-
adjustment_taxable?: boolean;
|
236
|
-
gift_card_taxable?: boolean;
|
237
|
-
shipping_country_code_lock?: string;
|
238
|
-
coupon_code?: string;
|
239
|
-
gift_card_code?: string;
|
240
|
-
cart_url?: string;
|
241
|
-
return_url?: string;
|
242
|
-
terms_url?: string;
|
243
|
-
privacy_url?: string;
|
244
|
-
market?: MarketRel;
|
245
|
-
customer?: CustomerRel;
|
246
|
-
shipping_address?: AddressRel;
|
247
|
-
billing_address?: AddressRel;
|
248
|
-
payment_method?: PaymentMethodRel;
|
249
|
-
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel;
|
250
|
-
tags?: TagRel[];
|
231
|
+
number?: string | null;
|
232
|
+
autorefresh?: boolean | null;
|
233
|
+
guest?: boolean | null;
|
234
|
+
customer_email?: string | null;
|
235
|
+
customer_password?: string | null;
|
236
|
+
language_code?: string | null;
|
237
|
+
freight_taxable?: boolean | null;
|
238
|
+
payment_method_taxable?: boolean | null;
|
239
|
+
adjustment_taxable?: boolean | null;
|
240
|
+
gift_card_taxable?: boolean | null;
|
241
|
+
shipping_country_code_lock?: string | null;
|
242
|
+
coupon_code?: string | null;
|
243
|
+
gift_card_code?: string | null;
|
244
|
+
cart_url?: string | null;
|
245
|
+
return_url?: string | null;
|
246
|
+
terms_url?: string | null;
|
247
|
+
privacy_url?: string | null;
|
248
|
+
market?: MarketRel | null;
|
249
|
+
customer?: CustomerRel | null;
|
250
|
+
shipping_address?: AddressRel | null;
|
251
|
+
billing_address?: AddressRel | null;
|
252
|
+
payment_method?: PaymentMethodRel | null;
|
253
|
+
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel | null;
|
254
|
+
tags?: TagRel[] | null;
|
251
255
|
}
|
252
256
|
interface OrderUpdate extends ResourceUpdate {
|
253
|
-
number?: string;
|
254
|
-
autorefresh?: boolean;
|
255
|
-
guest?: boolean;
|
256
|
-
customer_email?: string;
|
257
|
-
customer_password?: string;
|
258
|
-
language_code?: string;
|
259
|
-
freight_taxable?: boolean;
|
260
|
-
payment_method_taxable?: boolean;
|
261
|
-
adjustment_taxable?: boolean;
|
262
|
-
gift_card_taxable?: boolean;
|
263
|
-
shipping_country_code_lock?: string;
|
264
|
-
coupon_code?: string;
|
265
|
-
gift_card_code?: string;
|
266
|
-
cart_url?: string;
|
267
|
-
return_url?: string;
|
268
|
-
terms_url?: string;
|
269
|
-
privacy_url?: string;
|
270
|
-
_archive?: boolean;
|
271
|
-
_unarchive?: boolean;
|
272
|
-
_place?: boolean;
|
273
|
-
_cancel?: boolean;
|
274
|
-
_approve?: boolean;
|
275
|
-
_approve_and_capture?: boolean;
|
276
|
-
_authorize?: boolean;
|
277
|
-
_authorization_amount_cents?: number;
|
278
|
-
_capture?: boolean;
|
279
|
-
_refund?: boolean;
|
280
|
-
_update_taxes?: boolean;
|
281
|
-
_nullify_payment_source?: boolean;
|
282
|
-
_billing_address_clone_id?: string;
|
283
|
-
_shipping_address_clone_id?: string;
|
284
|
-
_customer_payment_source_id?: string;
|
285
|
-
_shipping_address_same_as_billing?: boolean;
|
286
|
-
_billing_address_same_as_shipping?: boolean;
|
287
|
-
_commit_invoice?: boolean;
|
288
|
-
_refund_invoice?: boolean;
|
289
|
-
_save_payment_source_to_customer_wallet?: boolean;
|
290
|
-
_save_shipping_address_to_customer_address_book?: boolean;
|
291
|
-
_save_billing_address_to_customer_address_book?: boolean;
|
292
|
-
_refresh?: boolean;
|
293
|
-
_validate?: boolean;
|
294
|
-
_create_subscriptions?: boolean;
|
295
|
-
_start_editing?: boolean;
|
296
|
-
_stop_editing?: boolean;
|
297
|
-
market?: MarketRel;
|
298
|
-
customer?: CustomerRel;
|
299
|
-
shipping_address?: AddressRel;
|
300
|
-
billing_address?: AddressRel;
|
301
|
-
payment_method?: PaymentMethodRel;
|
302
|
-
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel;
|
303
|
-
tags?: TagRel[];
|
257
|
+
number?: string | null;
|
258
|
+
autorefresh?: boolean | null;
|
259
|
+
guest?: boolean | null;
|
260
|
+
customer_email?: string | null;
|
261
|
+
customer_password?: string | null;
|
262
|
+
language_code?: string | null;
|
263
|
+
freight_taxable?: boolean | null;
|
264
|
+
payment_method_taxable?: boolean | null;
|
265
|
+
adjustment_taxable?: boolean | null;
|
266
|
+
gift_card_taxable?: boolean | null;
|
267
|
+
shipping_country_code_lock?: string | null;
|
268
|
+
coupon_code?: string | null;
|
269
|
+
gift_card_code?: string | null;
|
270
|
+
cart_url?: string | null;
|
271
|
+
return_url?: string | null;
|
272
|
+
terms_url?: string | null;
|
273
|
+
privacy_url?: string | null;
|
274
|
+
_archive?: boolean | null;
|
275
|
+
_unarchive?: boolean | null;
|
276
|
+
_place?: boolean | null;
|
277
|
+
_cancel?: boolean | null;
|
278
|
+
_approve?: boolean | null;
|
279
|
+
_approve_and_capture?: boolean | null;
|
280
|
+
_authorize?: boolean | null;
|
281
|
+
_authorization_amount_cents?: number | null;
|
282
|
+
_capture?: boolean | null;
|
283
|
+
_refund?: boolean | null;
|
284
|
+
_update_taxes?: boolean | null;
|
285
|
+
_nullify_payment_source?: boolean | null;
|
286
|
+
_billing_address_clone_id?: string | null;
|
287
|
+
_shipping_address_clone_id?: string | null;
|
288
|
+
_customer_payment_source_id?: string | null;
|
289
|
+
_shipping_address_same_as_billing?: boolean | null;
|
290
|
+
_billing_address_same_as_shipping?: boolean | null;
|
291
|
+
_commit_invoice?: boolean | null;
|
292
|
+
_refund_invoice?: boolean | null;
|
293
|
+
_save_payment_source_to_customer_wallet?: boolean | null;
|
294
|
+
_save_shipping_address_to_customer_address_book?: boolean | null;
|
295
|
+
_save_billing_address_to_customer_address_book?: boolean | null;
|
296
|
+
_refresh?: boolean | null;
|
297
|
+
_validate?: boolean | null;
|
298
|
+
_create_subscriptions?: boolean | null;
|
299
|
+
_start_editing?: boolean | null;
|
300
|
+
_stop_editing?: boolean | null;
|
301
|
+
market?: MarketRel | null;
|
302
|
+
customer?: CustomerRel | null;
|
303
|
+
shipping_address?: AddressRel | null;
|
304
|
+
billing_address?: AddressRel | null;
|
305
|
+
payment_method?: PaymentMethodRel | null;
|
306
|
+
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel | null;
|
307
|
+
tags?: TagRel[] | null;
|
304
308
|
}
|
305
|
-
declare class Orders extends ApiResource {
|
306
|
-
static readonly TYPE:
|
307
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Order>>;
|
309
|
+
declare class Orders extends ApiResource<Order> {
|
310
|
+
static readonly TYPE: OrderType;
|
308
311
|
create(resource: OrderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
309
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
310
312
|
update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
311
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
313
|
+
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
312
314
|
market(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
313
315
|
customer(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
314
316
|
shipping_address(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
|
@@ -330,6 +332,7 @@ declare class Orders extends ApiResource {
|
|
330
332
|
voids(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Void>>;
|
331
333
|
refunds(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Refund>>;
|
332
334
|
returns(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Return>>;
|
335
|
+
order_subscription(orderId: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
333
336
|
order_subscriptions(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>>;
|
334
337
|
order_factories(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderFactory>>;
|
335
338
|
order_copies(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
|
@@ -338,9 +341,36 @@ declare class Orders extends ApiResource {
|
|
338
341
|
events(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
339
342
|
tags(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
340
343
|
versions(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
344
|
+
_archive(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
345
|
+
_unarchive(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
346
|
+
_place(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
347
|
+
_cancel(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
348
|
+
_approve(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
349
|
+
_approve_and_capture(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
350
|
+
_authorize(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
351
|
+
_authorization_amount_cents(id: string | Order, triggerValue: number, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
352
|
+
_capture(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
353
|
+
_refund(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
354
|
+
_update_taxes(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
355
|
+
_nullify_payment_source(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
356
|
+
_billing_address_clone_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
357
|
+
_shipping_address_clone_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
358
|
+
_customer_payment_source_id(id: string | Order, triggerValue: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
359
|
+
_shipping_address_same_as_billing(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
360
|
+
_billing_address_same_as_shipping(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
361
|
+
_commit_invoice(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
362
|
+
_refund_invoice(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
363
|
+
_save_payment_source_to_customer_wallet(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
364
|
+
_save_shipping_address_to_customer_address_book(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
365
|
+
_save_billing_address_to_customer_address_book(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
366
|
+
_refresh(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
367
|
+
_validate(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
368
|
+
_create_subscriptions(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
369
|
+
_start_editing(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
370
|
+
_stop_editing(id: string | Order, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
341
371
|
isOrder(resource: any): resource is Order;
|
342
372
|
relationship(id: string | ResourceId | null): OrderRel;
|
343
|
-
type():
|
373
|
+
type(): OrderType;
|
344
374
|
}
|
345
375
|
export default Orders;
|
346
|
-
export { Order, OrderCreate, OrderUpdate };
|
376
|
+
export type { Order, OrderCreate, OrderUpdate, OrderType };
|