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