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