@commercelayer/sdk 5.0.0-beta.1 → 5.0.0-beta.10
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 +15 -0
- package/lib/cjs/api.js +0 -13
- package/lib/cjs/client.js +11 -8
- package/lib/cjs/commercelayer.d.ts +4 -4
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/common.js +0 -2
- package/lib/cjs/config.d.ts +1 -0
- package/lib/cjs/config.js +1 -0
- package/lib/cjs/debug.js +0 -4
- package/lib/cjs/error.js +1 -4
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/jsonapi.js +5 -1
- package/lib/cjs/query.d.ts +3 -2
- package/lib/cjs/query.js +3 -2
- package/lib/cjs/resource.d.ts +12 -15
- package/lib/cjs/resource.js +11 -8
- package/lib/cjs/resources/addresses.d.ts +56 -57
- package/lib/cjs/resources/addresses.js +2 -6
- package/lib/cjs/resources/adjustments.d.ts +10 -11
- package/lib/cjs/resources/adjustments.js +2 -6
- package/lib/cjs/resources/adyen_gateways.d.ts +21 -22
- package/lib/cjs/resources/adyen_gateways.js +2 -6
- package/lib/cjs/resources/adyen_payments.d.ts +16 -17
- package/lib/cjs/resources/adyen_payments.js +2 -6
- package/lib/cjs/resources/application.d.ts +5 -5
- package/lib/cjs/resources/application.js +0 -1
- package/lib/cjs/resources/attachments.d.ts +12 -13
- package/lib/cjs/resources/attachments.js +2 -6
- package/lib/cjs/resources/authorizations.d.ts +32 -33
- package/lib/cjs/resources/authorizations.js +1 -5
- package/lib/cjs/resources/avalara_accounts.d.ts +18 -19
- package/lib/cjs/resources/avalara_accounts.js +2 -6
- package/lib/cjs/resources/axerve_gateways.d.ts +9 -10
- package/lib/cjs/resources/axerve_gateways.js +2 -6
- package/lib/cjs/resources/axerve_payments.d.ts +15 -16
- package/lib/cjs/resources/axerve_payments.js +2 -6
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +3 -4
- package/lib/cjs/resources/billing_info_validation_rules.js +2 -6
- package/lib/cjs/resources/bing_geocoders.d.ts +5 -6
- package/lib/cjs/resources/bing_geocoders.js +2 -6
- package/lib/cjs/resources/braintree_gateways.d.ts +20 -21
- package/lib/cjs/resources/braintree_gateways.js +2 -6
- package/lib/cjs/resources/braintree_payments.d.ts +18 -19
- package/lib/cjs/resources/braintree_payments.js +2 -6
- package/lib/cjs/resources/bundles.d.ts +33 -34
- package/lib/cjs/resources/bundles.js +2 -6
- package/lib/cjs/resources/captures.d.ts +23 -24
- package/lib/cjs/resources/captures.js +1 -5
- package/lib/cjs/resources/carrier_accounts.d.ts +5 -6
- package/lib/cjs/resources/carrier_accounts.js +0 -4
- package/lib/cjs/resources/checkout_com_gateways.d.ts +11 -12
- package/lib/cjs/resources/checkout_com_gateways.js +2 -6
- package/lib/cjs/resources/checkout_com_payments.d.ts +27 -28
- package/lib/cjs/resources/checkout_com_payments.js +2 -6
- package/lib/cjs/resources/cleanups.d.ts +12 -13
- package/lib/cjs/resources/cleanups.js +1 -5
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +5 -6
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +2 -6
- package/lib/cjs/resources/coupon_recipients.d.ts +12 -13
- package/lib/cjs/resources/coupon_recipients.js +2 -6
- package/lib/cjs/resources/coupons.d.ts +15 -16
- package/lib/cjs/resources/coupons.js +2 -6
- package/lib/cjs/resources/customer_addresses.d.ts +6 -7
- package/lib/cjs/resources/customer_addresses.js +2 -6
- package/lib/cjs/resources/customer_groups.d.ts +5 -6
- package/lib/cjs/resources/customer_groups.js +2 -6
- package/lib/cjs/resources/customer_password_resets.d.ts +7 -8
- package/lib/cjs/resources/customer_password_resets.js +2 -6
- package/lib/cjs/resources/customer_payment_sources.d.ts +9 -10
- package/lib/cjs/resources/customer_payment_sources.js +2 -6
- package/lib/cjs/resources/customer_subscriptions.d.ts +3 -4
- package/lib/cjs/resources/customer_subscriptions.js +2 -6
- package/lib/cjs/resources/customers.d.ts +18 -19
- package/lib/cjs/resources/customers.js +2 -6
- package/lib/cjs/resources/delivery_lead_times.d.ts +11 -12
- package/lib/cjs/resources/delivery_lead_times.js +2 -6
- package/lib/cjs/resources/event_callbacks.d.ts +7 -8
- package/lib/cjs/resources/event_callbacks.js +0 -4
- package/lib/cjs/resources/events.d.ts +3 -4
- package/lib/cjs/resources/events.js +0 -4
- package/lib/cjs/resources/exports.d.ts +16 -17
- package/lib/cjs/resources/exports.js +1 -5
- package/lib/cjs/resources/external_gateways.d.ts +20 -21
- package/lib/cjs/resources/external_gateways.js +2 -6
- package/lib/cjs/resources/external_payments.d.ts +11 -12
- package/lib/cjs/resources/external_payments.js +2 -6
- package/lib/cjs/resources/external_promotions.d.ts +33 -34
- package/lib/cjs/resources/external_promotions.js +2 -6
- package/lib/cjs/resources/external_tax_calculators.d.ts +7 -8
- package/lib/cjs/resources/external_tax_calculators.js +2 -6
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +34 -35
- package/lib/cjs/resources/fixed_amount_promotions.js +2 -6
- package/lib/cjs/resources/fixed_price_promotions.d.ts +37 -38
- package/lib/cjs/resources/fixed_price_promotions.js +2 -6
- package/lib/cjs/resources/free_gift_promotions.d.ts +36 -37
- package/lib/cjs/resources/free_gift_promotions.js +2 -6
- package/lib/cjs/resources/free_shipping_promotions.d.ts +29 -30
- package/lib/cjs/resources/free_shipping_promotions.js +2 -6
- package/lib/cjs/resources/geocoders.d.ts +3 -4
- package/lib/cjs/resources/geocoders.js +0 -4
- package/lib/cjs/resources/gift_card_recipients.d.ts +12 -13
- package/lib/cjs/resources/gift_card_recipients.js +2 -6
- package/lib/cjs/resources/gift_cards.d.ts +46 -47
- package/lib/cjs/resources/gift_cards.js +2 -6
- package/lib/cjs/resources/google_geocoders.d.ts +5 -6
- package/lib/cjs/resources/google_geocoders.js +2 -6
- package/lib/cjs/resources/imports.d.ts +20 -21
- package/lib/cjs/resources/imports.js +1 -5
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +18 -19
- package/lib/cjs/resources/in_stock_subscriptions.js +2 -6
- package/lib/cjs/resources/inventory_models.d.ts +11 -12
- package/lib/cjs/resources/inventory_models.js +2 -6
- package/lib/cjs/resources/inventory_return_locations.d.ts +8 -9
- package/lib/cjs/resources/inventory_return_locations.js +2 -6
- package/lib/cjs/resources/inventory_stock_locations.d.ts +11 -12
- package/lib/cjs/resources/inventory_stock_locations.js +2 -6
- package/lib/cjs/resources/klarna_gateways.d.ts +9 -10
- package/lib/cjs/resources/klarna_gateways.js +2 -6
- package/lib/cjs/resources/klarna_payments.d.ts +16 -17
- package/lib/cjs/resources/klarna_payments.js +2 -6
- package/lib/cjs/resources/line_item_options.d.ts +21 -22
- package/lib/cjs/resources/line_item_options.js +2 -6
- package/lib/cjs/resources/line_items.d.ts +45 -46
- package/lib/cjs/resources/line_items.js +2 -6
- package/lib/cjs/resources/manual_gateways.d.ts +3 -4
- package/lib/cjs/resources/manual_gateways.js +2 -6
- package/lib/cjs/resources/manual_tax_calculators.d.ts +7 -8
- package/lib/cjs/resources/manual_tax_calculators.js +2 -6
- package/lib/cjs/resources/markets.d.ts +33 -34
- package/lib/cjs/resources/markets.js +2 -6
- package/lib/cjs/resources/merchants.d.ts +5 -6
- package/lib/cjs/resources/merchants.js +2 -6
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +9 -10
- package/lib/cjs/resources/order_amount_promotion_rules.js +2 -6
- package/lib/cjs/resources/order_copies.d.ts +16 -17
- package/lib/cjs/resources/order_copies.js +1 -5
- package/lib/cjs/resources/order_subscriptions.d.ts +27 -28
- package/lib/cjs/resources/order_subscriptions.js +2 -6
- package/lib/cjs/resources/order_validation_rules.d.ts +2 -3
- package/lib/cjs/resources/order_validation_rules.js +0 -4
- package/lib/cjs/resources/orders.d.ts +182 -183
- package/lib/cjs/resources/orders.js +2 -6
- package/lib/cjs/resources/organization.d.ts +16 -16
- package/lib/cjs/resources/organization.js +0 -1
- package/lib/cjs/resources/packages.d.ts +17 -18
- package/lib/cjs/resources/packages.js +2 -6
- package/lib/cjs/resources/parcel_line_items.d.ts +9 -10
- package/lib/cjs/resources/parcel_line_items.js +2 -6
- package/lib/cjs/resources/parcels.d.ts +75 -76
- package/lib/cjs/resources/parcels.js +2 -6
- package/lib/cjs/resources/payment_gateways.d.ts +2 -3
- package/lib/cjs/resources/payment_gateways.js +0 -4
- package/lib/cjs/resources/payment_methods.d.ts +33 -34
- package/lib/cjs/resources/payment_methods.js +2 -6
- package/lib/cjs/resources/paypal_gateways.d.ts +6 -7
- package/lib/cjs/resources/paypal_gateways.js +2 -6
- package/lib/cjs/resources/paypal_payments.d.ts +20 -21
- package/lib/cjs/resources/paypal_payments.js +2 -6
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +36 -37
- package/lib/cjs/resources/percentage_discount_promotions.js +2 -6
- package/lib/cjs/resources/price_lists.d.ts +9 -10
- package/lib/cjs/resources/price_lists.js +2 -6
- package/lib/cjs/resources/price_tiers.d.ts +7 -8
- package/lib/cjs/resources/price_tiers.js +0 -4
- package/lib/cjs/resources/price_volume_tiers.d.ts +12 -13
- package/lib/cjs/resources/price_volume_tiers.js +2 -6
- package/lib/cjs/resources/prices.d.ts +21 -22
- package/lib/cjs/resources/prices.js +2 -6
- package/lib/cjs/resources/promotion_rules.d.ts +2 -4
- package/lib/cjs/resources/promotion_rules.js +0 -4
- package/lib/cjs/resources/promotions.d.ts +13 -14
- package/lib/cjs/resources/promotions.js +0 -4
- package/lib/cjs/resources/refunds.d.ts +14 -15
- package/lib/cjs/resources/refunds.js +0 -4
- package/lib/cjs/resources/return_line_items.d.ts +14 -15
- package/lib/cjs/resources/return_line_items.js +2 -6
- package/lib/cjs/resources/returns.d.ts +29 -30
- package/lib/cjs/resources/returns.js +2 -6
- package/lib/cjs/resources/satispay_gateways.d.ts +7 -8
- package/lib/cjs/resources/satispay_gateways.js +2 -6
- package/lib/cjs/resources/satispay_payments.d.ts +13 -14
- package/lib/cjs/resources/satispay_payments.js +2 -6
- package/lib/cjs/resources/shipments.d.ts +40 -41
- package/lib/cjs/resources/shipments.js +1 -5
- package/lib/cjs/resources/shipping_categories.d.ts +4 -5
- package/lib/cjs/resources/shipping_categories.js +2 -6
- package/lib/cjs/resources/shipping_method_tiers.d.ts +7 -8
- package/lib/cjs/resources/shipping_method_tiers.js +0 -4
- package/lib/cjs/resources/shipping_methods.d.ts +50 -51
- package/lib/cjs/resources/shipping_methods.js +2 -6
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +12 -13
- package/lib/cjs/resources/shipping_weight_tiers.js +2 -6
- package/lib/cjs/resources/shipping_zones.d.ts +21 -22
- package/lib/cjs/resources/shipping_zones.js +2 -6
- package/lib/cjs/resources/sku_list_items.d.ts +13 -14
- package/lib/cjs/resources/sku_list_items.js +2 -6
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +12 -13
- package/lib/cjs/resources/sku_list_promotion_rules.js +2 -6
- package/lib/cjs/resources/sku_lists.d.ts +22 -23
- package/lib/cjs/resources/sku_lists.js +2 -6
- package/lib/cjs/resources/sku_options.d.ts +24 -25
- package/lib/cjs/resources/sku_options.js +2 -6
- package/lib/cjs/resources/skus.d.ts +36 -37
- package/lib/cjs/resources/skus.js +2 -6
- package/lib/cjs/resources/stock_items.d.ts +11 -12
- package/lib/cjs/resources/stock_items.js +2 -6
- package/lib/cjs/resources/stock_line_items.d.ts +8 -9
- package/lib/cjs/resources/stock_line_items.js +0 -4
- package/lib/cjs/resources/stock_locations.d.ts +16 -17
- package/lib/cjs/resources/stock_locations.js +2 -6
- package/lib/cjs/resources/stock_transfers.d.ts +23 -24
- package/lib/cjs/resources/stock_transfers.js +2 -6
- package/lib/cjs/resources/stripe_gateways.d.ts +11 -12
- package/lib/cjs/resources/stripe_gateways.js +2 -6
- package/lib/cjs/resources/stripe_payments.d.ts +17 -18
- package/lib/cjs/resources/stripe_payments.js +2 -6
- package/lib/cjs/resources/tax_calculators.d.ts +3 -4
- package/lib/cjs/resources/tax_calculators.js +0 -4
- package/lib/cjs/resources/tax_categories.d.ts +9 -10
- package/lib/cjs/resources/tax_categories.js +2 -6
- package/lib/cjs/resources/tax_rules.d.ts +40 -41
- package/lib/cjs/resources/tax_rules.js +2 -6
- package/lib/cjs/resources/taxjar_accounts.d.ts +8 -9
- package/lib/cjs/resources/taxjar_accounts.js +2 -6
- package/lib/cjs/resources/transactions.d.ts +14 -15
- package/lib/cjs/resources/transactions.js +0 -4
- package/lib/cjs/resources/voids.d.ts +14 -15
- package/lib/cjs/resources/voids.js +0 -4
- package/lib/cjs/resources/webhooks.d.ts +15 -16
- package/lib/cjs/resources/webhooks.js +2 -6
- package/lib/cjs/resources/wire_transfers.d.ts +5 -6
- package/lib/cjs/resources/wire_transfers.js +2 -6
- package/lib/cjs/static.d.ts +1 -1
- package/lib/esm/api.d.ts +15 -0
- package/lib/esm/api.js +0 -13
- package/lib/esm/client.js +11 -8
- package/lib/esm/commercelayer.d.ts +4 -4
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/common.js +0 -2
- package/lib/esm/config.d.ts +1 -0
- package/lib/esm/config.js +1 -0
- package/lib/esm/debug.js +0 -4
- package/lib/esm/error.js +1 -4
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/jsonapi.js +5 -1
- package/lib/esm/query.d.ts +3 -2
- package/lib/esm/query.js +2 -2
- package/lib/esm/resource.d.ts +12 -15
- package/lib/esm/resource.js +12 -9
- package/lib/esm/resources/addresses.d.ts +56 -57
- package/lib/esm/resources/addresses.js +2 -6
- package/lib/esm/resources/adjustments.d.ts +10 -11
- package/lib/esm/resources/adjustments.js +2 -6
- package/lib/esm/resources/adyen_gateways.d.ts +21 -22
- package/lib/esm/resources/adyen_gateways.js +2 -6
- package/lib/esm/resources/adyen_payments.d.ts +16 -17
- package/lib/esm/resources/adyen_payments.js +2 -6
- package/lib/esm/resources/application.d.ts +5 -5
- package/lib/esm/resources/application.js +0 -1
- package/lib/esm/resources/attachments.d.ts +12 -13
- package/lib/esm/resources/attachments.js +2 -6
- package/lib/esm/resources/authorizations.d.ts +32 -33
- package/lib/esm/resources/authorizations.js +1 -5
- package/lib/esm/resources/avalara_accounts.d.ts +18 -19
- package/lib/esm/resources/avalara_accounts.js +2 -6
- package/lib/esm/resources/axerve_gateways.d.ts +9 -10
- package/lib/esm/resources/axerve_gateways.js +2 -6
- package/lib/esm/resources/axerve_payments.d.ts +15 -16
- package/lib/esm/resources/axerve_payments.js +2 -6
- package/lib/esm/resources/billing_info_validation_rules.d.ts +3 -4
- package/lib/esm/resources/billing_info_validation_rules.js +2 -6
- package/lib/esm/resources/bing_geocoders.d.ts +5 -6
- package/lib/esm/resources/bing_geocoders.js +2 -6
- package/lib/esm/resources/braintree_gateways.d.ts +20 -21
- package/lib/esm/resources/braintree_gateways.js +2 -6
- package/lib/esm/resources/braintree_payments.d.ts +18 -19
- package/lib/esm/resources/braintree_payments.js +2 -6
- package/lib/esm/resources/bundles.d.ts +33 -34
- package/lib/esm/resources/bundles.js +2 -6
- package/lib/esm/resources/captures.d.ts +23 -24
- package/lib/esm/resources/captures.js +1 -5
- package/lib/esm/resources/carrier_accounts.d.ts +5 -6
- package/lib/esm/resources/carrier_accounts.js +0 -4
- package/lib/esm/resources/checkout_com_gateways.d.ts +11 -12
- package/lib/esm/resources/checkout_com_gateways.js +2 -6
- package/lib/esm/resources/checkout_com_payments.d.ts +27 -28
- package/lib/esm/resources/checkout_com_payments.js +2 -6
- package/lib/esm/resources/cleanups.d.ts +12 -13
- package/lib/esm/resources/cleanups.js +1 -5
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +5 -6
- package/lib/esm/resources/coupon_codes_promotion_rules.js +2 -6
- package/lib/esm/resources/coupon_recipients.d.ts +12 -13
- package/lib/esm/resources/coupon_recipients.js +2 -6
- package/lib/esm/resources/coupons.d.ts +15 -16
- package/lib/esm/resources/coupons.js +2 -6
- package/lib/esm/resources/customer_addresses.d.ts +6 -7
- package/lib/esm/resources/customer_addresses.js +2 -6
- package/lib/esm/resources/customer_groups.d.ts +5 -6
- package/lib/esm/resources/customer_groups.js +2 -6
- package/lib/esm/resources/customer_password_resets.d.ts +7 -8
- package/lib/esm/resources/customer_password_resets.js +2 -6
- package/lib/esm/resources/customer_payment_sources.d.ts +9 -10
- package/lib/esm/resources/customer_payment_sources.js +2 -6
- package/lib/esm/resources/customer_subscriptions.d.ts +3 -4
- package/lib/esm/resources/customer_subscriptions.js +2 -6
- package/lib/esm/resources/customers.d.ts +18 -19
- package/lib/esm/resources/customers.js +2 -6
- package/lib/esm/resources/delivery_lead_times.d.ts +11 -12
- package/lib/esm/resources/delivery_lead_times.js +2 -6
- package/lib/esm/resources/event_callbacks.d.ts +7 -8
- package/lib/esm/resources/event_callbacks.js +0 -4
- package/lib/esm/resources/events.d.ts +3 -4
- package/lib/esm/resources/events.js +0 -4
- package/lib/esm/resources/exports.d.ts +16 -17
- package/lib/esm/resources/exports.js +1 -5
- package/lib/esm/resources/external_gateways.d.ts +20 -21
- package/lib/esm/resources/external_gateways.js +2 -6
- package/lib/esm/resources/external_payments.d.ts +11 -12
- package/lib/esm/resources/external_payments.js +2 -6
- package/lib/esm/resources/external_promotions.d.ts +33 -34
- package/lib/esm/resources/external_promotions.js +2 -6
- package/lib/esm/resources/external_tax_calculators.d.ts +7 -8
- package/lib/esm/resources/external_tax_calculators.js +2 -6
- package/lib/esm/resources/fixed_amount_promotions.d.ts +34 -35
- package/lib/esm/resources/fixed_amount_promotions.js +2 -6
- package/lib/esm/resources/fixed_price_promotions.d.ts +37 -38
- package/lib/esm/resources/fixed_price_promotions.js +2 -6
- package/lib/esm/resources/free_gift_promotions.d.ts +36 -37
- package/lib/esm/resources/free_gift_promotions.js +2 -6
- package/lib/esm/resources/free_shipping_promotions.d.ts +29 -30
- package/lib/esm/resources/free_shipping_promotions.js +2 -6
- package/lib/esm/resources/geocoders.d.ts +3 -4
- package/lib/esm/resources/geocoders.js +0 -4
- package/lib/esm/resources/gift_card_recipients.d.ts +12 -13
- package/lib/esm/resources/gift_card_recipients.js +2 -6
- package/lib/esm/resources/gift_cards.d.ts +46 -47
- package/lib/esm/resources/gift_cards.js +2 -6
- package/lib/esm/resources/google_geocoders.d.ts +5 -6
- package/lib/esm/resources/google_geocoders.js +2 -6
- package/lib/esm/resources/imports.d.ts +20 -21
- package/lib/esm/resources/imports.js +1 -5
- package/lib/esm/resources/in_stock_subscriptions.d.ts +18 -19
- package/lib/esm/resources/in_stock_subscriptions.js +2 -6
- package/lib/esm/resources/inventory_models.d.ts +11 -12
- package/lib/esm/resources/inventory_models.js +2 -6
- package/lib/esm/resources/inventory_return_locations.d.ts +8 -9
- package/lib/esm/resources/inventory_return_locations.js +2 -6
- package/lib/esm/resources/inventory_stock_locations.d.ts +11 -12
- package/lib/esm/resources/inventory_stock_locations.js +2 -6
- package/lib/esm/resources/klarna_gateways.d.ts +9 -10
- package/lib/esm/resources/klarna_gateways.js +2 -6
- package/lib/esm/resources/klarna_payments.d.ts +16 -17
- package/lib/esm/resources/klarna_payments.js +2 -6
- package/lib/esm/resources/line_item_options.d.ts +21 -22
- package/lib/esm/resources/line_item_options.js +2 -6
- package/lib/esm/resources/line_items.d.ts +45 -46
- package/lib/esm/resources/line_items.js +2 -6
- package/lib/esm/resources/manual_gateways.d.ts +3 -4
- package/lib/esm/resources/manual_gateways.js +2 -6
- package/lib/esm/resources/manual_tax_calculators.d.ts +7 -8
- package/lib/esm/resources/manual_tax_calculators.js +2 -6
- package/lib/esm/resources/markets.d.ts +33 -34
- package/lib/esm/resources/markets.js +2 -6
- package/lib/esm/resources/merchants.d.ts +5 -6
- package/lib/esm/resources/merchants.js +2 -6
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +9 -10
- package/lib/esm/resources/order_amount_promotion_rules.js +2 -6
- package/lib/esm/resources/order_copies.d.ts +16 -17
- package/lib/esm/resources/order_copies.js +1 -5
- package/lib/esm/resources/order_subscriptions.d.ts +27 -28
- package/lib/esm/resources/order_subscriptions.js +2 -6
- package/lib/esm/resources/order_validation_rules.d.ts +2 -3
- package/lib/esm/resources/order_validation_rules.js +0 -4
- package/lib/esm/resources/orders.d.ts +182 -183
- package/lib/esm/resources/orders.js +2 -6
- package/lib/esm/resources/organization.d.ts +16 -16
- package/lib/esm/resources/organization.js +0 -1
- package/lib/esm/resources/packages.d.ts +17 -18
- package/lib/esm/resources/packages.js +2 -6
- package/lib/esm/resources/parcel_line_items.d.ts +9 -10
- package/lib/esm/resources/parcel_line_items.js +2 -6
- package/lib/esm/resources/parcels.d.ts +75 -76
- package/lib/esm/resources/parcels.js +2 -6
- package/lib/esm/resources/payment_gateways.d.ts +2 -3
- package/lib/esm/resources/payment_gateways.js +0 -4
- package/lib/esm/resources/payment_methods.d.ts +33 -34
- package/lib/esm/resources/payment_methods.js +2 -6
- package/lib/esm/resources/paypal_gateways.d.ts +6 -7
- package/lib/esm/resources/paypal_gateways.js +2 -6
- package/lib/esm/resources/paypal_payments.d.ts +20 -21
- package/lib/esm/resources/paypal_payments.js +2 -6
- package/lib/esm/resources/percentage_discount_promotions.d.ts +36 -37
- package/lib/esm/resources/percentage_discount_promotions.js +2 -6
- package/lib/esm/resources/price_lists.d.ts +9 -10
- package/lib/esm/resources/price_lists.js +2 -6
- package/lib/esm/resources/price_tiers.d.ts +7 -8
- package/lib/esm/resources/price_tiers.js +0 -4
- package/lib/esm/resources/price_volume_tiers.d.ts +12 -13
- package/lib/esm/resources/price_volume_tiers.js +2 -6
- package/lib/esm/resources/prices.d.ts +21 -22
- package/lib/esm/resources/prices.js +2 -6
- package/lib/esm/resources/promotion_rules.d.ts +2 -4
- package/lib/esm/resources/promotion_rules.js +0 -4
- package/lib/esm/resources/promotions.d.ts +13 -14
- package/lib/esm/resources/promotions.js +0 -4
- package/lib/esm/resources/refunds.d.ts +14 -15
- package/lib/esm/resources/refunds.js +0 -4
- package/lib/esm/resources/return_line_items.d.ts +14 -15
- package/lib/esm/resources/return_line_items.js +2 -6
- package/lib/esm/resources/returns.d.ts +29 -30
- package/lib/esm/resources/returns.js +2 -6
- package/lib/esm/resources/satispay_gateways.d.ts +7 -8
- package/lib/esm/resources/satispay_gateways.js +2 -6
- package/lib/esm/resources/satispay_payments.d.ts +13 -14
- package/lib/esm/resources/satispay_payments.js +2 -6
- package/lib/esm/resources/shipments.d.ts +40 -41
- package/lib/esm/resources/shipments.js +1 -5
- package/lib/esm/resources/shipping_categories.d.ts +4 -5
- package/lib/esm/resources/shipping_categories.js +2 -6
- package/lib/esm/resources/shipping_method_tiers.d.ts +7 -8
- package/lib/esm/resources/shipping_method_tiers.js +0 -4
- package/lib/esm/resources/shipping_methods.d.ts +50 -51
- package/lib/esm/resources/shipping_methods.js +2 -6
- package/lib/esm/resources/shipping_weight_tiers.d.ts +12 -13
- package/lib/esm/resources/shipping_weight_tiers.js +2 -6
- package/lib/esm/resources/shipping_zones.d.ts +21 -22
- package/lib/esm/resources/shipping_zones.js +2 -6
- package/lib/esm/resources/sku_list_items.d.ts +13 -14
- package/lib/esm/resources/sku_list_items.js +2 -6
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +12 -13
- package/lib/esm/resources/sku_list_promotion_rules.js +2 -6
- package/lib/esm/resources/sku_lists.d.ts +22 -23
- package/lib/esm/resources/sku_lists.js +2 -6
- package/lib/esm/resources/sku_options.d.ts +24 -25
- package/lib/esm/resources/sku_options.js +2 -6
- package/lib/esm/resources/skus.d.ts +36 -37
- package/lib/esm/resources/skus.js +2 -6
- package/lib/esm/resources/stock_items.d.ts +11 -12
- package/lib/esm/resources/stock_items.js +2 -6
- package/lib/esm/resources/stock_line_items.d.ts +8 -9
- package/lib/esm/resources/stock_line_items.js +0 -4
- package/lib/esm/resources/stock_locations.d.ts +16 -17
- package/lib/esm/resources/stock_locations.js +2 -6
- package/lib/esm/resources/stock_transfers.d.ts +23 -24
- package/lib/esm/resources/stock_transfers.js +2 -6
- package/lib/esm/resources/stripe_gateways.d.ts +11 -12
- package/lib/esm/resources/stripe_gateways.js +2 -6
- package/lib/esm/resources/stripe_payments.d.ts +17 -18
- package/lib/esm/resources/stripe_payments.js +2 -6
- package/lib/esm/resources/tax_calculators.d.ts +3 -4
- package/lib/esm/resources/tax_calculators.js +0 -4
- package/lib/esm/resources/tax_categories.d.ts +9 -10
- package/lib/esm/resources/tax_categories.js +2 -6
- package/lib/esm/resources/tax_rules.d.ts +40 -41
- package/lib/esm/resources/tax_rules.js +2 -6
- package/lib/esm/resources/taxjar_accounts.d.ts +8 -9
- package/lib/esm/resources/taxjar_accounts.js +2 -6
- package/lib/esm/resources/transactions.d.ts +14 -15
- package/lib/esm/resources/transactions.js +0 -4
- package/lib/esm/resources/voids.d.ts +14 -15
- package/lib/esm/resources/voids.js +0 -4
- package/lib/esm/resources/webhooks.d.ts +15 -16
- package/lib/esm/resources/webhooks.js +2 -6
- package/lib/esm/resources/wire_transfers.d.ts +5 -6
- package/lib/esm/resources/wire_transfers.js +2 -6
- package/lib/esm/static.d.ts +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
@@ -2,15 +2,11 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Merchants extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'merchants'
|
6
|
-
async list(params, options) {
|
7
|
-
return this.resources.list({ type: Merchants.TYPE }, params, options);
|
8
|
-
}
|
9
5
|
async create(resource, params, options) {
|
10
|
-
return this.resources.create(
|
6
|
+
return this.resources.create({ ...resource, type: Merchants.TYPE }, params, options);
|
11
7
|
}
|
12
8
|
async update(resource, params, options) {
|
13
|
-
return this.resources.update(
|
9
|
+
return this.resources.update({ ...resource, type: Merchants.TYPE }, params, options);
|
14
10
|
}
|
15
11
|
async delete(id, options) {
|
16
12
|
await this.resources.delete((typeof id === 'string') ? { id, type: Merchants.TYPE } : id, options);
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel
|
2
|
-
import type { QueryParamsRetrieve
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
|
+
import type { QueryParamsRetrieve } from '../query';
|
3
3
|
import type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions';
|
4
4
|
import type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions';
|
5
5
|
import type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions';
|
@@ -30,22 +30,21 @@ type FixedAmountPromotionRel = ResourceRel & {
|
|
30
30
|
};
|
31
31
|
interface OrderAmountPromotionRule extends Resource {
|
32
32
|
readonly type: OrderAmountPromotionRuleType;
|
33
|
-
order_amount_cents?: number;
|
34
|
-
order_amount_float?: number;
|
35
|
-
formatted_order_amount?: string;
|
36
|
-
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion;
|
33
|
+
order_amount_cents?: number | null;
|
34
|
+
order_amount_float?: number | null;
|
35
|
+
formatted_order_amount?: string | null;
|
36
|
+
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
|
37
37
|
}
|
38
38
|
interface OrderAmountPromotionRuleCreate extends ResourceCreate {
|
39
|
-
order_amount_cents?: number;
|
39
|
+
order_amount_cents?: number | null;
|
40
40
|
promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel;
|
41
41
|
}
|
42
42
|
interface OrderAmountPromotionRuleUpdate extends ResourceUpdate {
|
43
|
-
order_amount_cents?: number;
|
44
|
-
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel;
|
43
|
+
order_amount_cents?: number | null;
|
44
|
+
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | null;
|
45
45
|
}
|
46
46
|
declare class OrderAmountPromotionRules extends ApiResource<OrderAmountPromotionRule> {
|
47
47
|
static readonly TYPE: OrderAmountPromotionRuleType;
|
48
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderAmountPromotionRule>>;
|
49
48
|
create(resource: OrderAmountPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
50
49
|
update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
51
50
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,15 +2,11 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class OrderAmountPromotionRules extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'order_amount_promotion_rules'
|
6
|
-
async list(params, options) {
|
7
|
-
return this.resources.list({ type: OrderAmountPromotionRules.TYPE }, params, options);
|
8
|
-
}
|
9
5
|
async create(resource, params, options) {
|
10
|
-
return this.resources.create(
|
6
|
+
return this.resources.create({ ...resource, type: OrderAmountPromotionRules.TYPE }, params, options);
|
11
7
|
}
|
12
8
|
async update(resource, params, options) {
|
13
|
-
return this.resources.update(
|
9
|
+
return this.resources.update({ ...resource, type: OrderAmountPromotionRules.TYPE }, params, options);
|
14
10
|
}
|
15
11
|
async delete(id, options) {
|
16
12
|
await this.resources.delete((typeof id === 'string') ? { id, type: OrderAmountPromotionRules.TYPE } : id, options);
|
@@ -12,29 +12,28 @@ type OrderRel = ResourceRel & {
|
|
12
12
|
};
|
13
13
|
interface OrderCopy extends Resource {
|
14
14
|
readonly type: OrderCopyType;
|
15
|
-
status?: 'pending' | 'in_progress' | 'failed' | 'completed';
|
16
|
-
started_at?: string;
|
17
|
-
completed_at?: string;
|
18
|
-
failed_at?: string;
|
19
|
-
place_target_order?: boolean;
|
20
|
-
cancel_source_order?: boolean;
|
21
|
-
reuse_wallet?: boolean;
|
22
|
-
errors_log?: object;
|
23
|
-
errors_count?: number;
|
24
|
-
source_order?: Order;
|
25
|
-
target_order?: Order;
|
26
|
-
order_subscription?: OrderSubscription;
|
27
|
-
events?: Event[];
|
15
|
+
status?: 'pending' | 'in_progress' | 'failed' | 'completed' | null;
|
16
|
+
started_at?: string | null;
|
17
|
+
completed_at?: string | null;
|
18
|
+
failed_at?: string | null;
|
19
|
+
place_target_order?: boolean | null;
|
20
|
+
cancel_source_order?: boolean | null;
|
21
|
+
reuse_wallet?: boolean | null;
|
22
|
+
errors_log?: object | null;
|
23
|
+
errors_count?: number | null;
|
24
|
+
source_order?: Order | null;
|
25
|
+
target_order?: Order | null;
|
26
|
+
order_subscription?: OrderSubscription | null;
|
27
|
+
events?: Event[] | null;
|
28
28
|
}
|
29
29
|
interface OrderCopyCreate extends ResourceCreate {
|
30
|
-
place_target_order?: boolean;
|
31
|
-
cancel_source_order?: boolean;
|
32
|
-
reuse_wallet?: boolean;
|
30
|
+
place_target_order?: boolean | null;
|
31
|
+
cancel_source_order?: boolean | null;
|
32
|
+
reuse_wallet?: boolean | null;
|
33
33
|
source_order: OrderRel;
|
34
34
|
}
|
35
35
|
declare class OrderCopies extends ApiResource<OrderCopy> {
|
36
36
|
static readonly TYPE: OrderCopyType;
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
|
38
37
|
create(resource: OrderCopyCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderCopy>;
|
39
38
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
40
39
|
source_order(orderCopyId: string | OrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
@@ -2,12 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class OrderCopies extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'order_copies'
|
6
|
-
async list(params, options) {
|
7
|
-
return this.resources.list({ type: OrderCopies.TYPE }, params, options);
|
8
|
-
}
|
9
5
|
async create(resource, params, options) {
|
10
|
-
return this.resources.create(
|
6
|
+
return this.resources.create({ ...resource, type: OrderCopies.TYPE }, params, options);
|
11
7
|
}
|
12
8
|
async delete(id, options) {
|
13
9
|
await this.resources.delete((typeof id === 'string') ? { id, type: OrderCopies.TYPE } : id, options);
|
@@ -17,43 +17,42 @@ type OrderRel = ResourceRel & {
|
|
17
17
|
};
|
18
18
|
interface OrderSubscription extends Resource {
|
19
19
|
readonly type: OrderSubscriptionType;
|
20
|
-
number?: string;
|
21
|
-
status?: 'draft' | 'inactive' | 'active' | 'cancelled';
|
22
|
-
frequency
|
23
|
-
activate_by_source_order?: boolean;
|
24
|
-
customer_email?: string;
|
25
|
-
starts_at?: string;
|
26
|
-
expires_at?: string;
|
27
|
-
next_run_at?: string;
|
28
|
-
occurrencies?: number;
|
29
|
-
errors_count?: number;
|
30
|
-
succeeded_on_last_run?: boolean;
|
31
|
-
options?: object;
|
32
|
-
market?: Market;
|
33
|
-
source_order?: Order;
|
34
|
-
customer?: Customer;
|
35
|
-
order_copies?: OrderCopy[];
|
36
|
-
orders?: Order[];
|
37
|
-
events?: Event[];
|
20
|
+
number?: string | null;
|
21
|
+
status?: 'draft' | 'inactive' | 'active' | 'cancelled' | null;
|
22
|
+
frequency: string;
|
23
|
+
activate_by_source_order?: boolean | null;
|
24
|
+
customer_email?: string | null;
|
25
|
+
starts_at?: string | null;
|
26
|
+
expires_at?: string | null;
|
27
|
+
next_run_at?: string | null;
|
28
|
+
occurrencies?: number | null;
|
29
|
+
errors_count?: number | null;
|
30
|
+
succeeded_on_last_run?: boolean | null;
|
31
|
+
options?: object | null;
|
32
|
+
market?: Market | null;
|
33
|
+
source_order?: Order | null;
|
34
|
+
customer?: Customer | null;
|
35
|
+
order_copies?: OrderCopy[] | null;
|
36
|
+
orders?: Order[] | null;
|
37
|
+
events?: Event[] | null;
|
38
38
|
}
|
39
39
|
interface OrderSubscriptionCreate extends ResourceCreate {
|
40
40
|
frequency: string;
|
41
|
-
activate_by_source_order?: boolean;
|
42
|
-
starts_at?: string;
|
43
|
-
expires_at?: string;
|
44
|
-
options?: object;
|
45
|
-
market?: MarketRel;
|
41
|
+
activate_by_source_order?: boolean | null;
|
42
|
+
starts_at?: string | null;
|
43
|
+
expires_at?: string | null;
|
44
|
+
options?: object | null;
|
45
|
+
market?: MarketRel | null;
|
46
46
|
source_order: OrderRel;
|
47
47
|
}
|
48
48
|
interface OrderSubscriptionUpdate extends ResourceUpdate {
|
49
|
-
expires_at?: string;
|
50
|
-
_activate?: boolean;
|
51
|
-
_deactivate?: boolean;
|
52
|
-
_cancel?: boolean;
|
49
|
+
expires_at?: string | null;
|
50
|
+
_activate?: boolean | null;
|
51
|
+
_deactivate?: boolean | null;
|
52
|
+
_cancel?: boolean | null;
|
53
53
|
}
|
54
54
|
declare class OrderSubscriptions extends ApiResource<OrderSubscription> {
|
55
55
|
static readonly TYPE: OrderSubscriptionType;
|
56
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>>;
|
57
56
|
create(resource: OrderSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
58
57
|
update(resource: OrderSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
59
58
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
@@ -2,15 +2,11 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class OrderSubscriptions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'order_subscriptions'
|
6
|
-
async list(params, options) {
|
7
|
-
return this.resources.list({ type: OrderSubscriptions.TYPE }, params, options);
|
8
|
-
}
|
9
5
|
async create(resource, params, options) {
|
10
|
-
return this.resources.create(
|
6
|
+
return this.resources.create({ ...resource, type: OrderSubscriptions.TYPE }, params, options);
|
11
7
|
}
|
12
8
|
async update(resource, params, options) {
|
13
|
-
return this.resources.update(
|
9
|
+
return this.resources.update({ ...resource, type: OrderSubscriptions.TYPE }, params, options);
|
14
10
|
}
|
15
11
|
async delete(id, options) {
|
16
12
|
await this.resources.delete((typeof id === 'string') ? { id, type: OrderSubscriptions.TYPE } : id, options);
|
@@ -8,12 +8,11 @@ type OrderValidationRuleRel = ResourceRel & {
|
|
8
8
|
};
|
9
9
|
interface OrderValidationRule extends Resource {
|
10
10
|
readonly type: OrderValidationRuleType;
|
11
|
-
market?: Market;
|
12
|
-
attachments?: Attachment[];
|
11
|
+
market?: Market | null;
|
12
|
+
attachments?: Attachment[] | null;
|
13
13
|
}
|
14
14
|
declare class OrderValidationRules extends ApiResource<OrderValidationRule> {
|
15
15
|
static readonly TYPE: OrderValidationRuleType;
|
16
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderValidationRule>>;
|
17
16
|
market(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
18
17
|
attachments(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
19
18
|
isOrderValidationRule(resource: any): resource is OrderValidationRule;
|
@@ -2,10 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class OrderValidationRules extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'order_validation_rules'
|
6
|
-
async list(params, options) {
|
7
|
-
return this.resources.list({ type: OrderValidationRules.TYPE }, params, options);
|
8
|
-
}
|
9
5
|
async market(orderValidationRuleId, params, options) {
|
10
6
|
const _orderValidationRuleId = orderValidationRuleId.id || orderValidationRuleId;
|
11
7
|
return this.resources.fetch({ type: 'markets' }, `order_validation_rules/${_orderValidationRuleId}/market`, params, options);
|
@@ -76,196 +76,195 @@ type WireTransferRel = ResourceRel & {
|
|
76
76
|
};
|
77
77
|
interface Order extends Resource {
|
78
78
|
readonly type: OrderType;
|
79
|
-
number?: number;
|
80
|
-
autorefresh?: boolean;
|
81
|
-
status?: 'draft' | 'pending' | 'placed' | 'approved' | 'cancelled';
|
82
|
-
payment_status?: 'unpaid' | 'authorized' | 'paid' | 'voided' | 'refunded';
|
83
|
-
fulfillment_status?: 'unfulfilled' | 'in_progress' | 'fulfilled';
|
84
|
-
guest?: boolean;
|
85
|
-
editable?: boolean;
|
86
|
-
customer_email?: string;
|
87
|
-
language_code?: string;
|
88
|
-
currency_code?: string;
|
89
|
-
tax_included?: boolean;
|
90
|
-
tax_rate?: number;
|
91
|
-
freight_taxable?: boolean;
|
92
|
-
requires_billing_info?: boolean;
|
93
|
-
country_code?: string;
|
94
|
-
shipping_country_code_lock?: string;
|
95
|
-
coupon_code?: string;
|
96
|
-
gift_card_code?: string;
|
97
|
-
gift_card_or_coupon_code?: string;
|
98
|
-
subtotal_amount_cents?: number;
|
99
|
-
subtotal_amount_float?: number;
|
100
|
-
formatted_subtotal_amount?: string;
|
101
|
-
shipping_amount_cents?: number;
|
102
|
-
shipping_amount_float?: number;
|
103
|
-
formatted_shipping_amount?: string;
|
104
|
-
payment_method_amount_cents?: number;
|
105
|
-
payment_method_amount_float?: number;
|
106
|
-
formatted_payment_method_amount?: string;
|
107
|
-
discount_amount_cents?: number;
|
108
|
-
discount_amount_float?: number;
|
109
|
-
formatted_discount_amount?: string;
|
110
|
-
adjustment_amount_cents?: number;
|
111
|
-
adjustment_amount_float?: number;
|
112
|
-
formatted_adjustment_amount?: string;
|
113
|
-
gift_card_amount_cents?: number;
|
114
|
-
gift_card_amount_float?: number;
|
115
|
-
formatted_gift_card_amount?: string;
|
116
|
-
total_tax_amount_cents?: number;
|
117
|
-
total_tax_amount_float?: number;
|
118
|
-
formatted_total_tax_amount?: string;
|
119
|
-
subtotal_tax_amount_cents?: number;
|
120
|
-
subtotal_tax_amount_float?: number;
|
121
|
-
formatted_subtotal_tax_amount?: string;
|
122
|
-
shipping_tax_amount_cents?: number;
|
123
|
-
shipping_tax_amount_float?: number;
|
124
|
-
formatted_shipping_tax_amount?: string;
|
125
|
-
payment_method_tax_amount_cents?: number;
|
126
|
-
payment_method_tax_amount_float?: number;
|
127
|
-
formatted_payment_method_tax_amount?: string;
|
128
|
-
adjustment_tax_amount_cents?: number;
|
129
|
-
adjustment_tax_amount_float?: number;
|
130
|
-
formatted_adjustment_tax_amount?: string;
|
131
|
-
total_amount_cents?: number;
|
132
|
-
total_amount_float?: number;
|
133
|
-
formatted_total_amount?: string;
|
134
|
-
total_taxable_amount_cents?: number;
|
135
|
-
total_taxable_amount_float?: number;
|
136
|
-
formatted_total_taxable_amount?: string;
|
137
|
-
subtotal_taxable_amount_cents?: number;
|
138
|
-
subtotal_taxable_amount_float?: number;
|
139
|
-
formatted_subtotal_taxable_amount?: string;
|
140
|
-
shipping_taxable_amount_cents?: number;
|
141
|
-
shipping_taxable_amount_float?: number;
|
142
|
-
formatted_shipping_taxable_amount?: string;
|
143
|
-
payment_method_taxable_amount_cents?: number;
|
144
|
-
payment_method_taxable_amount_float?: number;
|
145
|
-
formatted_payment_method_taxable_amount?: string;
|
146
|
-
adjustment_taxable_amount_cents?: number;
|
147
|
-
adjustment_taxable_amount_float?: number;
|
148
|
-
formatted_adjustment_taxable_amount?: string;
|
149
|
-
total_amount_with_taxes_cents?: number;
|
150
|
-
total_amount_with_taxes_float?: number;
|
151
|
-
formatted_total_amount_with_taxes?: string;
|
152
|
-
fees_amount_cents?: number;
|
153
|
-
fees_amount_float?: number;
|
154
|
-
formatted_fees_amount?: string;
|
155
|
-
duty_amount_cents?: number;
|
156
|
-
duty_amount_float?: number;
|
157
|
-
formatted_duty_amount?: string;
|
158
|
-
skus_count?: number;
|
159
|
-
line_item_options_count?: number;
|
160
|
-
shipments_count?: number;
|
161
|
-
tax_calculations_count?: number;
|
162
|
-
payment_source_details?: object;
|
163
|
-
token?: string;
|
164
|
-
cart_url?: string;
|
165
|
-
return_url?: string;
|
166
|
-
terms_url?: string;
|
167
|
-
privacy_url?: string;
|
168
|
-
checkout_url?: string;
|
169
|
-
placed_at?: string;
|
170
|
-
approved_at?: string;
|
171
|
-
cancelled_at?: string;
|
172
|
-
payment_updated_at?: string;
|
173
|
-
fulfillment_updated_at?: string;
|
174
|
-
refreshed_at?: string;
|
175
|
-
archived_at?: string;
|
176
|
-
expires_at?: string;
|
177
|
-
market?: Market;
|
178
|
-
customer?: Customer;
|
179
|
-
shipping_address?: Address;
|
180
|
-
billing_address?: Address;
|
181
|
-
available_payment_methods?: PaymentMethod[];
|
182
|
-
available_customer_payment_sources?: CustomerPaymentSource[];
|
183
|
-
available_free_skus?: Sku[];
|
184
|
-
available_free_bundles?: Bundle[];
|
185
|
-
payment_method?: PaymentMethod;
|
186
|
-
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer;
|
187
|
-
line_items?: LineItem[];
|
188
|
-
shipments?: Shipment[];
|
189
|
-
transactions?: Array<Authorization | Void | Capture | Refund
|
190
|
-
authorizations?: Authorization[];
|
191
|
-
captures?: Capture[];
|
192
|
-
voids?: Void[];
|
193
|
-
refunds?: Refund[];
|
194
|
-
returns?: Return[];
|
195
|
-
order_subscriptions?: OrderSubscription[];
|
196
|
-
order_copies?: OrderCopy[];
|
197
|
-
attachments?: Attachment[];
|
198
|
-
events?: Event[];
|
79
|
+
number?: number | null;
|
80
|
+
autorefresh?: boolean | null;
|
81
|
+
status?: 'draft' | 'pending' | 'placed' | 'approved' | 'cancelled' | null;
|
82
|
+
payment_status?: 'unpaid' | 'authorized' | 'paid' | 'voided' | 'refunded' | 'free' | null;
|
83
|
+
fulfillment_status?: 'unfulfilled' | 'in_progress' | 'fulfilled' | 'not_required' | null;
|
84
|
+
guest?: boolean | null;
|
85
|
+
editable?: boolean | null;
|
86
|
+
customer_email?: string | null;
|
87
|
+
language_code?: string | null;
|
88
|
+
currency_code?: string | null;
|
89
|
+
tax_included?: boolean | null;
|
90
|
+
tax_rate?: number | null;
|
91
|
+
freight_taxable?: boolean | null;
|
92
|
+
requires_billing_info?: boolean | null;
|
93
|
+
country_code?: string | null;
|
94
|
+
shipping_country_code_lock?: string | null;
|
95
|
+
coupon_code?: string | null;
|
96
|
+
gift_card_code?: string | null;
|
97
|
+
gift_card_or_coupon_code?: string | null;
|
98
|
+
subtotal_amount_cents?: number | null;
|
99
|
+
subtotal_amount_float?: number | null;
|
100
|
+
formatted_subtotal_amount?: string | null;
|
101
|
+
shipping_amount_cents?: number | null;
|
102
|
+
shipping_amount_float?: number | null;
|
103
|
+
formatted_shipping_amount?: string | null;
|
104
|
+
payment_method_amount_cents?: number | null;
|
105
|
+
payment_method_amount_float?: number | null;
|
106
|
+
formatted_payment_method_amount?: string | null;
|
107
|
+
discount_amount_cents?: number | null;
|
108
|
+
discount_amount_float?: number | null;
|
109
|
+
formatted_discount_amount?: string | null;
|
110
|
+
adjustment_amount_cents?: number | null;
|
111
|
+
adjustment_amount_float?: number | null;
|
112
|
+
formatted_adjustment_amount?: string | null;
|
113
|
+
gift_card_amount_cents?: number | null;
|
114
|
+
gift_card_amount_float?: number | null;
|
115
|
+
formatted_gift_card_amount?: string | null;
|
116
|
+
total_tax_amount_cents?: number | null;
|
117
|
+
total_tax_amount_float?: number | null;
|
118
|
+
formatted_total_tax_amount?: string | null;
|
119
|
+
subtotal_tax_amount_cents?: number | null;
|
120
|
+
subtotal_tax_amount_float?: number | null;
|
121
|
+
formatted_subtotal_tax_amount?: string | null;
|
122
|
+
shipping_tax_amount_cents?: number | null;
|
123
|
+
shipping_tax_amount_float?: number | null;
|
124
|
+
formatted_shipping_tax_amount?: string | null;
|
125
|
+
payment_method_tax_amount_cents?: number | null;
|
126
|
+
payment_method_tax_amount_float?: number | null;
|
127
|
+
formatted_payment_method_tax_amount?: string | null;
|
128
|
+
adjustment_tax_amount_cents?: number | null;
|
129
|
+
adjustment_tax_amount_float?: number | null;
|
130
|
+
formatted_adjustment_tax_amount?: string | null;
|
131
|
+
total_amount_cents?: number | null;
|
132
|
+
total_amount_float?: number | null;
|
133
|
+
formatted_total_amount?: string | null;
|
134
|
+
total_taxable_amount_cents?: number | null;
|
135
|
+
total_taxable_amount_float?: number | null;
|
136
|
+
formatted_total_taxable_amount?: string | null;
|
137
|
+
subtotal_taxable_amount_cents?: number | null;
|
138
|
+
subtotal_taxable_amount_float?: number | null;
|
139
|
+
formatted_subtotal_taxable_amount?: string | null;
|
140
|
+
shipping_taxable_amount_cents?: number | null;
|
141
|
+
shipping_taxable_amount_float?: number | null;
|
142
|
+
formatted_shipping_taxable_amount?: string | null;
|
143
|
+
payment_method_taxable_amount_cents?: number | null;
|
144
|
+
payment_method_taxable_amount_float?: number | null;
|
145
|
+
formatted_payment_method_taxable_amount?: string | null;
|
146
|
+
adjustment_taxable_amount_cents?: number | null;
|
147
|
+
adjustment_taxable_amount_float?: number | null;
|
148
|
+
formatted_adjustment_taxable_amount?: string | null;
|
149
|
+
total_amount_with_taxes_cents?: number | null;
|
150
|
+
total_amount_with_taxes_float?: number | null;
|
151
|
+
formatted_total_amount_with_taxes?: string | null;
|
152
|
+
fees_amount_cents?: number | null;
|
153
|
+
fees_amount_float?: number | null;
|
154
|
+
formatted_fees_amount?: string | null;
|
155
|
+
duty_amount_cents?: number | null;
|
156
|
+
duty_amount_float?: number | null;
|
157
|
+
formatted_duty_amount?: string | null;
|
158
|
+
skus_count?: number | null;
|
159
|
+
line_item_options_count?: number | null;
|
160
|
+
shipments_count?: number | null;
|
161
|
+
tax_calculations_count?: number | null;
|
162
|
+
payment_source_details?: object | null;
|
163
|
+
token?: string | null;
|
164
|
+
cart_url?: string | null;
|
165
|
+
return_url?: string | null;
|
166
|
+
terms_url?: string | null;
|
167
|
+
privacy_url?: string | null;
|
168
|
+
checkout_url?: string | null;
|
169
|
+
placed_at?: string | null;
|
170
|
+
approved_at?: string | null;
|
171
|
+
cancelled_at?: string | null;
|
172
|
+
payment_updated_at?: string | null;
|
173
|
+
fulfillment_updated_at?: string | null;
|
174
|
+
refreshed_at?: string | null;
|
175
|
+
archived_at?: string | null;
|
176
|
+
expires_at?: string | null;
|
177
|
+
market?: Market | null;
|
178
|
+
customer?: Customer | null;
|
179
|
+
shipping_address?: Address | null;
|
180
|
+
billing_address?: Address | null;
|
181
|
+
available_payment_methods?: PaymentMethod[] | null;
|
182
|
+
available_customer_payment_sources?: CustomerPaymentSource[] | null;
|
183
|
+
available_free_skus?: Sku[] | null;
|
184
|
+
available_free_bundles?: Bundle[] | null;
|
185
|
+
payment_method?: PaymentMethod | null;
|
186
|
+
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null;
|
187
|
+
line_items?: LineItem[] | null;
|
188
|
+
shipments?: Shipment[] | null;
|
189
|
+
transactions?: Array<Authorization | Void | Capture | Refund> | null;
|
190
|
+
authorizations?: Authorization[] | null;
|
191
|
+
captures?: Capture[] | null;
|
192
|
+
voids?: Void[] | null;
|
193
|
+
refunds?: Refund[] | null;
|
194
|
+
returns?: Return[] | null;
|
195
|
+
order_subscriptions?: OrderSubscription[] | null;
|
196
|
+
order_copies?: OrderCopy[] | null;
|
197
|
+
attachments?: Attachment[] | null;
|
198
|
+
events?: Event[] | null;
|
199
199
|
}
|
200
200
|
interface OrderCreate extends ResourceCreate {
|
201
|
-
autorefresh?: boolean;
|
202
|
-
guest?: boolean;
|
203
|
-
customer_email?: string;
|
204
|
-
customer_password?: string;
|
205
|
-
language_code?: string;
|
206
|
-
shipping_country_code_lock?: string;
|
207
|
-
coupon_code?: string;
|
208
|
-
gift_card_code?: string;
|
209
|
-
gift_card_or_coupon_code?: string;
|
210
|
-
cart_url?: string;
|
211
|
-
return_url?: string;
|
212
|
-
terms_url?: string;
|
213
|
-
privacy_url?: string;
|
214
|
-
market?: MarketRel;
|
215
|
-
customer?: CustomerRel;
|
216
|
-
shipping_address?: AddressRel;
|
217
|
-
billing_address?: AddressRel;
|
218
|
-
payment_method?: PaymentMethodRel;
|
219
|
-
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel;
|
201
|
+
autorefresh?: boolean | null;
|
202
|
+
guest?: boolean | null;
|
203
|
+
customer_email?: string | null;
|
204
|
+
customer_password?: string | null;
|
205
|
+
language_code?: string | null;
|
206
|
+
shipping_country_code_lock?: string | null;
|
207
|
+
coupon_code?: string | null;
|
208
|
+
gift_card_code?: string | null;
|
209
|
+
gift_card_or_coupon_code?: string | null;
|
210
|
+
cart_url?: string | null;
|
211
|
+
return_url?: string | null;
|
212
|
+
terms_url?: string | null;
|
213
|
+
privacy_url?: string | null;
|
214
|
+
market?: MarketRel | null;
|
215
|
+
customer?: CustomerRel | null;
|
216
|
+
shipping_address?: AddressRel | null;
|
217
|
+
billing_address?: AddressRel | null;
|
218
|
+
payment_method?: PaymentMethodRel | null;
|
219
|
+
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel | null;
|
220
220
|
}
|
221
221
|
interface OrderUpdate extends ResourceUpdate {
|
222
|
-
autorefresh?: boolean;
|
223
|
-
guest?: boolean;
|
224
|
-
customer_email?: string;
|
225
|
-
customer_password?: string;
|
226
|
-
language_code?: string;
|
227
|
-
shipping_country_code_lock?: string;
|
228
|
-
coupon_code?: string;
|
229
|
-
gift_card_code?: string;
|
230
|
-
gift_card_or_coupon_code?: string;
|
231
|
-
cart_url?: string;
|
232
|
-
return_url?: string;
|
233
|
-
terms_url?: string;
|
234
|
-
privacy_url?: string;
|
235
|
-
_archive?: boolean;
|
236
|
-
_unarchive?: boolean;
|
237
|
-
_place?: boolean;
|
238
|
-
_cancel?: boolean;
|
239
|
-
_approve?: boolean;
|
240
|
-
_approve_and_capture?: boolean;
|
241
|
-
_authorize?: boolean;
|
242
|
-
_authorization_amount_cents?: number;
|
243
|
-
_capture?: boolean;
|
244
|
-
_refund?: boolean;
|
245
|
-
_update_taxes?: boolean;
|
246
|
-
_nullify_payment_source?: boolean;
|
247
|
-
_billing_address_clone_id?: string;
|
248
|
-
_shipping_address_clone_id?: string;
|
249
|
-
_customer_payment_source_id?: string;
|
250
|
-
_shipping_address_same_as_billing?: boolean;
|
251
|
-
_billing_address_same_as_shipping?: boolean;
|
252
|
-
_commit_invoice?: boolean;
|
253
|
-
_refund_invoice?: boolean;
|
254
|
-
_save_payment_source_to_customer_wallet?: boolean;
|
255
|
-
_save_shipping_address_to_customer_address_book?: boolean;
|
256
|
-
_save_billing_address_to_customer_address_book?: boolean;
|
257
|
-
_refresh?: boolean;
|
258
|
-
_validate?: boolean;
|
259
|
-
market?: MarketRel;
|
260
|
-
customer?: CustomerRel;
|
261
|
-
shipping_address?: AddressRel;
|
262
|
-
billing_address?: AddressRel;
|
263
|
-
payment_method?: PaymentMethodRel;
|
264
|
-
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel;
|
222
|
+
autorefresh?: boolean | null;
|
223
|
+
guest?: boolean | null;
|
224
|
+
customer_email?: string | null;
|
225
|
+
customer_password?: string | null;
|
226
|
+
language_code?: string | null;
|
227
|
+
shipping_country_code_lock?: string | null;
|
228
|
+
coupon_code?: string | null;
|
229
|
+
gift_card_code?: string | null;
|
230
|
+
gift_card_or_coupon_code?: string | null;
|
231
|
+
cart_url?: string | null;
|
232
|
+
return_url?: string | null;
|
233
|
+
terms_url?: string | null;
|
234
|
+
privacy_url?: string | null;
|
235
|
+
_archive?: boolean | null;
|
236
|
+
_unarchive?: boolean | null;
|
237
|
+
_place?: boolean | null;
|
238
|
+
_cancel?: boolean | null;
|
239
|
+
_approve?: boolean | null;
|
240
|
+
_approve_and_capture?: boolean | null;
|
241
|
+
_authorize?: boolean | null;
|
242
|
+
_authorization_amount_cents?: number | null;
|
243
|
+
_capture?: boolean | null;
|
244
|
+
_refund?: boolean | null;
|
245
|
+
_update_taxes?: boolean | null;
|
246
|
+
_nullify_payment_source?: boolean | null;
|
247
|
+
_billing_address_clone_id?: string | null;
|
248
|
+
_shipping_address_clone_id?: string | null;
|
249
|
+
_customer_payment_source_id?: string | null;
|
250
|
+
_shipping_address_same_as_billing?: boolean | null;
|
251
|
+
_billing_address_same_as_shipping?: boolean | null;
|
252
|
+
_commit_invoice?: boolean | null;
|
253
|
+
_refund_invoice?: boolean | null;
|
254
|
+
_save_payment_source_to_customer_wallet?: boolean | null;
|
255
|
+
_save_shipping_address_to_customer_address_book?: boolean | null;
|
256
|
+
_save_billing_address_to_customer_address_book?: boolean | null;
|
257
|
+
_refresh?: boolean | null;
|
258
|
+
_validate?: boolean | null;
|
259
|
+
market?: MarketRel | null;
|
260
|
+
customer?: CustomerRel | null;
|
261
|
+
shipping_address?: AddressRel | null;
|
262
|
+
billing_address?: AddressRel | null;
|
263
|
+
payment_method?: PaymentMethodRel | null;
|
264
|
+
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel | null;
|
265
265
|
}
|
266
266
|
declare class Orders extends ApiResource<Order> {
|
267
267
|
static readonly TYPE: OrderType;
|
268
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Order>>;
|
269
268
|
create(resource: OrderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
270
269
|
update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
271
270
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|