@commercelayer/sdk 6.0.0-alfa.8 → 6.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.mts +7644 -0
- package/lib/index.d.ts +7644 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +2 -0
- package/lib/index.mjs.map +1 -0
- package/package.json +9 -15
- package/lib/cjs/api.d.ts +0 -161
- package/lib/cjs/api.js +0 -377
- package/lib/cjs/client.d.ts +0 -31
- package/lib/cjs/client.js +0 -120
- package/lib/cjs/commercelayer.d.ts +0 -154
- package/lib/cjs/commercelayer.js +0 -365
- package/lib/cjs/common.d.ts +0 -5
- package/lib/cjs/common.js +0 -12
- package/lib/cjs/config.d.ts +0 -15
- package/lib/cjs/config.js +0 -17
- package/lib/cjs/debug.d.ts +0 -3
- package/lib/cjs/debug.js +0 -17
- package/lib/cjs/error.d.ts +0 -30
- package/lib/cjs/error.js +0 -78
- package/lib/cjs/fetch.d.ts +0 -13
- package/lib/cjs/fetch.js +0 -67
- package/lib/cjs/index.d.ts +0 -7
- package/lib/cjs/index.js +0 -11
- package/lib/cjs/interceptor.d.ts +0 -37
- package/lib/cjs/interceptor.js +0 -2
- package/lib/cjs/jsonapi.d.ts +0 -6
- package/lib/cjs/jsonapi.js +0 -92
- package/lib/cjs/model.d.ts +0 -121
- package/lib/cjs/model.js +0 -2
- package/lib/cjs/query.d.ts +0 -18
- package/lib/cjs/query.js +0 -70
- package/lib/cjs/resource.d.ts +0 -86
- package/lib/cjs/resource.js +0 -172
- package/lib/cjs/resources/addresses.d.ts +0 -104
- package/lib/cjs/resources/addresses.js +0 -44
- package/lib/cjs/resources/adjustments.d.ts +0 -43
- package/lib/cjs/resources/adjustments.js +0 -32
- package/lib/cjs/resources/adyen_gateways.d.ts +0 -61
- package/lib/cjs/resources/adyen_gateways.js +0 -40
- package/lib/cjs/resources/adyen_payments.d.ts +0 -52
- package/lib/cjs/resources/adyen_payments.js +0 -43
- package/lib/cjs/resources/application.d.ts +0 -23
- package/lib/cjs/resources/application.js +0 -19
- package/lib/cjs/resources/attachments.d.ts +0 -158
- package/lib/cjs/resources/attachments.js +0 -28
- package/lib/cjs/resources/authorizations.d.ts +0 -71
- package/lib/cjs/resources/authorizations.js +0 -55
- package/lib/cjs/resources/avalara_accounts.d.ts +0 -60
- package/lib/cjs/resources/avalara_accounts.js +0 -44
- package/lib/cjs/resources/axerve_gateways.d.ts +0 -49
- package/lib/cjs/resources/axerve_gateways.js +0 -40
- package/lib/cjs/resources/axerve_payments.d.ts +0 -58
- package/lib/cjs/resources/axerve_payments.js +0 -43
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +0 -40
- package/lib/cjs/resources/billing_info_validation_rules.js +0 -40
- package/lib/cjs/resources/bing_geocoders.d.ts +0 -37
- package/lib/cjs/resources/bing_geocoders.js +0 -36
- package/lib/cjs/resources/braintree_gateways.d.ts +0 -61
- package/lib/cjs/resources/braintree_gateways.js +0 -40
- package/lib/cjs/resources/braintree_payments.d.ts +0 -53
- package/lib/cjs/resources/braintree_payments.js +0 -40
- package/lib/cjs/resources/bundles.d.ts +0 -94
- package/lib/cjs/resources/bundles.js +0 -62
- package/lib/cjs/resources/buy_x_pay_y_promotions.d.ts +0 -138
- package/lib/cjs/resources/buy_x_pay_y_promotions.js +0 -82
- package/lib/cjs/resources/captures.d.ts +0 -61
- package/lib/cjs/resources/captures.js +0 -52
- package/lib/cjs/resources/carrier_accounts.d.ts +0 -31
- package/lib/cjs/resources/carrier_accounts.js +0 -31
- package/lib/cjs/resources/checkout_com_gateways.d.ts +0 -50
- package/lib/cjs/resources/checkout_com_gateways.js +0 -40
- package/lib/cjs/resources/checkout_com_payments.d.ts +0 -66
- package/lib/cjs/resources/checkout_com_payments.js +0 -46
- package/lib/cjs/resources/cleanups.d.ts +0 -41
- package/lib/cjs/resources/cleanups.js +0 -33
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +0 -68
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +0 -36
- package/lib/cjs/resources/coupon_recipients.d.ts +0 -49
- package/lib/cjs/resources/coupon_recipients.js +0 -40
- package/lib/cjs/resources/coupons.d.ts +0 -72
- package/lib/cjs/resources/coupons.js +0 -48
- package/lib/cjs/resources/custom_promotion_rules.d.ts +0 -63
- package/lib/cjs/resources/custom_promotion_rules.js +0 -32
- package/lib/cjs/resources/customer_addresses.d.ts +0 -51
- package/lib/cjs/resources/customer_addresses.js +0 -44
- package/lib/cjs/resources/customer_groups.d.ts +0 -41
- package/lib/cjs/resources/customer_groups.js +0 -44
- package/lib/cjs/resources/customer_password_resets.d.ts +0 -39
- package/lib/cjs/resources/customer_password_resets.js +0 -39
- package/lib/cjs/resources/customer_payment_sources.d.ts +0 -87
- package/lib/cjs/resources/customer_payment_sources.js +0 -40
- package/lib/cjs/resources/customer_subscriptions.d.ts +0 -36
- package/lib/cjs/resources/customer_subscriptions.js +0 -40
- package/lib/cjs/resources/customers.d.ts +0 -77
- package/lib/cjs/resources/customers.js +0 -72
- package/lib/cjs/resources/delivery_lead_times.d.ts +0 -56
- package/lib/cjs/resources/delivery_lead_times.js +0 -44
- package/lib/cjs/resources/event_callbacks.d.ts +0 -26
- package/lib/cjs/resources/event_callbacks.js +0 -23
- package/lib/cjs/resources/events.d.ts +0 -26
- package/lib/cjs/resources/events.js +0 -27
- package/lib/cjs/resources/exports.d.ts +0 -42
- package/lib/cjs/resources/exports.js +0 -29
- package/lib/cjs/resources/external_gateways.d.ts +0 -58
- package/lib/cjs/resources/external_gateways.js +0 -43
- package/lib/cjs/resources/external_payments.d.ts +0 -49
- package/lib/cjs/resources/external_payments.js +0 -44
- package/lib/cjs/resources/external_promotions.d.ts +0 -137
- package/lib/cjs/resources/external_promotions.js +0 -85
- package/lib/cjs/resources/external_tax_calculators.d.ts +0 -46
- package/lib/cjs/resources/external_tax_calculators.js +0 -43
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +0 -134
- package/lib/cjs/resources/fixed_amount_promotions.js +0 -82
- package/lib/cjs/resources/fixed_price_promotions.d.ts +0 -134
- package/lib/cjs/resources/fixed_price_promotions.js +0 -82
- package/lib/cjs/resources/free_gift_promotions.d.ts +0 -132
- package/lib/cjs/resources/free_gift_promotions.js +0 -82
- package/lib/cjs/resources/free_shipping_promotions.d.ts +0 -126
- package/lib/cjs/resources/free_shipping_promotions.js +0 -78
- package/lib/cjs/resources/geocoders.d.ts +0 -26
- package/lib/cjs/resources/geocoders.js +0 -27
- package/lib/cjs/resources/gift_card_recipients.d.ts +0 -49
- package/lib/cjs/resources/gift_card_recipients.js +0 -40
- package/lib/cjs/resources/gift_cards.d.ts +0 -105
- package/lib/cjs/resources/gift_cards.js +0 -64
- package/lib/cjs/resources/google_geocoders.d.ts +0 -37
- package/lib/cjs/resources/google_geocoders.js +0 -36
- package/lib/cjs/resources/imports.d.ts +0 -45
- package/lib/cjs/resources/imports.js +0 -29
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +0 -69
- package/lib/cjs/resources/in_stock_subscriptions.js +0 -54
- package/lib/cjs/resources/inventory_models.d.ts +0 -56
- package/lib/cjs/resources/inventory_models.js +0 -44
- package/lib/cjs/resources/inventory_return_locations.d.ts +0 -48
- package/lib/cjs/resources/inventory_return_locations.js +0 -40
- package/lib/cjs/resources/inventory_stock_locations.d.ts +0 -51
- package/lib/cjs/resources/inventory_stock_locations.js +0 -40
- package/lib/cjs/resources/klarna_gateways.d.ts +0 -49
- package/lib/cjs/resources/klarna_gateways.js +0 -40
- package/lib/cjs/resources/klarna_payments.d.ts +0 -52
- package/lib/cjs/resources/klarna_payments.js +0 -43
- package/lib/cjs/resources/line_item_options.d.ts +0 -70
- package/lib/cjs/resources/line_item_options.js +0 -44
- package/lib/cjs/resources/line_items.d.ts +0 -171
- package/lib/cjs/resources/line_items.js +0 -69
- package/lib/cjs/resources/manual_gateways.d.ts +0 -35
- package/lib/cjs/resources/manual_gateways.js +0 -36
- package/lib/cjs/resources/manual_tax_calculators.d.ts +0 -46
- package/lib/cjs/resources/manual_tax_calculators.js +0 -44
- package/lib/cjs/resources/markets.d.ts +0 -108
- package/lib/cjs/resources/markets.js +0 -66
- package/lib/cjs/resources/merchants.d.ts +0 -43
- package/lib/cjs/resources/merchants.js +0 -40
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +0 -68
- package/lib/cjs/resources/order_amount_promotion_rules.js +0 -32
- package/lib/cjs/resources/order_copies.d.ts +0 -52
- package/lib/cjs/resources/order_copies.js +0 -44
- package/lib/cjs/resources/order_factories.d.ts +0 -35
- package/lib/cjs/resources/order_factories.js +0 -31
- package/lib/cjs/resources/order_subscription_items.d.ts +0 -69
- package/lib/cjs/resources/order_subscription_items.js +0 -36
- package/lib/cjs/resources/order_subscriptions.d.ts +0 -97
- package/lib/cjs/resources/order_subscriptions.js +0 -81
- package/lib/cjs/resources/order_validation_rules.d.ts +0 -28
- package/lib/cjs/resources/order_validation_rules.js +0 -31
- package/lib/cjs/resources/orders.d.ts +0 -390
- package/lib/cjs/resources/orders.js +0 -239
- package/lib/cjs/resources/organization.d.ts +0 -35
- package/lib/cjs/resources/organization.js +0 -19
- package/lib/cjs/resources/packages.d.ts +0 -61
- package/lib/cjs/resources/packages.js +0 -44
- package/lib/cjs/resources/parcel_line_items.d.ts +0 -48
- package/lib/cjs/resources/parcel_line_items.js +0 -40
- package/lib/cjs/resources/parcels.d.ts +0 -127
- package/lib/cjs/resources/parcels.js +0 -52
- package/lib/cjs/resources/payment_gateways.d.ts +0 -26
- package/lib/cjs/resources/payment_gateways.js +0 -27
- package/lib/cjs/resources/payment_methods.d.ts +0 -84
- package/lib/cjs/resources/payment_methods.js +0 -50
- package/lib/cjs/resources/payment_options.d.ts +0 -45
- package/lib/cjs/resources/payment_options.js +0 -36
- package/lib/cjs/resources/paypal_gateways.d.ts +0 -42
- package/lib/cjs/resources/paypal_gateways.js +0 -40
- package/lib/cjs/resources/paypal_payments.d.ts +0 -57
- package/lib/cjs/resources/paypal_payments.js +0 -40
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +0 -132
- package/lib/cjs/resources/percentage_discount_promotions.js +0 -82
- package/lib/cjs/resources/price_frequency_tiers.d.ts +0 -54
- package/lib/cjs/resources/price_frequency_tiers.js +0 -44
- package/lib/cjs/resources/price_lists.d.ts +0 -47
- package/lib/cjs/resources/price_lists.js +0 -40
- package/lib/cjs/resources/price_tiers.d.ts +0 -33
- package/lib/cjs/resources/price_tiers.js +0 -31
- package/lib/cjs/resources/price_volume_tiers.d.ts +0 -54
- package/lib/cjs/resources/price_volume_tiers.js +0 -44
- package/lib/cjs/resources/prices.d.ts +0 -76
- package/lib/cjs/resources/prices.js +0 -56
- package/lib/cjs/resources/promotion_rules.d.ts +0 -30
- package/lib/cjs/resources/promotion_rules.js +0 -23
- package/lib/cjs/resources/promotions.d.ts +0 -64
- package/lib/cjs/resources/promotions.js +0 -63
- package/lib/cjs/resources/recurring_order_copies.d.ts +0 -54
- package/lib/cjs/resources/recurring_order_copies.js +0 -44
- package/lib/cjs/resources/refunds.d.ts +0 -45
- package/lib/cjs/resources/refunds.js +0 -39
- package/lib/cjs/resources/reserved_stocks.d.ts +0 -29
- package/lib/cjs/resources/reserved_stocks.js +0 -31
- package/lib/cjs/resources/resource_errors.d.ts +0 -23
- package/lib/cjs/resources/resource_errors.js +0 -19
- package/lib/cjs/resources/return_line_items.d.ts +0 -53
- package/lib/cjs/resources/return_line_items.js +0 -39
- package/lib/cjs/resources/returns.d.ts +0 -97
- package/lib/cjs/resources/returns.js +0 -95
- package/lib/cjs/resources/satispay_gateways.d.ts +0 -47
- package/lib/cjs/resources/satispay_gateways.js +0 -40
- package/lib/cjs/resources/satispay_payments.d.ts +0 -54
- package/lib/cjs/resources/satispay_payments.js +0 -43
- package/lib/cjs/resources/shipments.d.ts +0 -152
- package/lib/cjs/resources/shipments.js +0 -133
- package/lib/cjs/resources/shipping_categories.d.ts +0 -41
- package/lib/cjs/resources/shipping_categories.js +0 -40
- package/lib/cjs/resources/shipping_method_tiers.d.ts +0 -33
- package/lib/cjs/resources/shipping_method_tiers.js +0 -31
- package/lib/cjs/resources/shipping_methods.d.ts +0 -126
- package/lib/cjs/resources/shipping_methods.js +0 -73
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +0 -51
- package/lib/cjs/resources/shipping_weight_tiers.js +0 -40
- package/lib/cjs/resources/shipping_zones.d.ts +0 -53
- package/lib/cjs/resources/shipping_zones.js +0 -36
- package/lib/cjs/resources/sku_list_items.d.ts +0 -52
- package/lib/cjs/resources/sku_list_items.js +0 -40
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +0 -77
- package/lib/cjs/resources/sku_list_promotion_rules.js +0 -40
- package/lib/cjs/resources/sku_lists.d.ts +0 -65
- package/lib/cjs/resources/sku_lists.js +0 -52
- package/lib/cjs/resources/sku_options.d.ts +0 -72
- package/lib/cjs/resources/sku_options.js +0 -48
- package/lib/cjs/resources/skus.d.ts +0 -97
- package/lib/cjs/resources/skus.js +0 -68
- package/lib/cjs/resources/stock_items.d.ts +0 -60
- package/lib/cjs/resources/stock_items.js +0 -52
- package/lib/cjs/resources/stock_line_items.d.ts +0 -74
- package/lib/cjs/resources/stock_line_items.js +0 -57
- package/lib/cjs/resources/stock_locations.d.ts +0 -65
- package/lib/cjs/resources/stock_locations.js +0 -56
- package/lib/cjs/resources/stock_reservations.d.ts +0 -52
- package/lib/cjs/resources/stock_reservations.js +0 -51
- package/lib/cjs/resources/stock_transfers.d.ts +0 -87
- package/lib/cjs/resources/stock_transfers.js +0 -74
- package/lib/cjs/resources/stripe_gateways.d.ts +0 -46
- package/lib/cjs/resources/stripe_gateways.js +0 -40
- package/lib/cjs/resources/stripe_payments.d.ts +0 -63
- package/lib/cjs/resources/stripe_payments.js +0 -46
- package/lib/cjs/resources/subscription_models.d.ts +0 -50
- package/lib/cjs/resources/subscription_models.js +0 -40
- package/lib/cjs/resources/tags.d.ts +0 -29
- package/lib/cjs/resources/tags.js +0 -28
- package/lib/cjs/resources/tax_calculators.d.ts +0 -29
- package/lib/cjs/resources/tax_calculators.js +0 -31
- package/lib/cjs/resources/tax_categories.d.ts +0 -64
- package/lib/cjs/resources/tax_categories.js +0 -40
- package/lib/cjs/resources/tax_rules.d.ts +0 -74
- package/lib/cjs/resources/tax_rules.js +0 -36
- package/lib/cjs/resources/taxjar_accounts.d.ts +0 -48
- package/lib/cjs/resources/taxjar_accounts.js +0 -44
- package/lib/cjs/resources/transactions.d.ts +0 -42
- package/lib/cjs/resources/transactions.js +0 -35
- package/lib/cjs/resources/versions.d.ts +0 -23
- package/lib/cjs/resources/versions.js +0 -19
- package/lib/cjs/resources/voids.d.ts +0 -45
- package/lib/cjs/resources/voids.js +0 -39
- package/lib/cjs/resources/webhooks.d.ts +0 -56
- package/lib/cjs/resources/webhooks.js +0 -45
- package/lib/cjs/resources/wire_transfers.d.ts +0 -38
- package/lib/cjs/resources/wire_transfers.js +0 -36
- package/lib/cjs/static.d.ts +0 -12
- package/lib/cjs/static.js +0 -50
- package/lib/cjs/util.d.ts +0 -9
- package/lib/cjs/util.js +0 -15
- package/lib/esm/api.d.ts +0 -161
- package/lib/esm/api.js +0 -248
- package/lib/esm/client.d.ts +0 -31
- package/lib/esm/client.js +0 -102
- package/lib/esm/commercelayer.d.ts +0 -154
- package/lib/esm/commercelayer.js +0 -323
- package/lib/esm/common.d.ts +0 -5
- package/lib/esm/common.js +0 -8
- package/lib/esm/config.d.ts +0 -15
- package/lib/esm/config.js +0 -15
- package/lib/esm/debug.d.ts +0 -3
- package/lib/esm/debug.js +0 -15
- package/lib/esm/error.d.ts +0 -30
- package/lib/esm/error.js +0 -78
- package/lib/esm/fetch.d.ts +0 -13
- package/lib/esm/fetch.js +0 -46
- package/lib/esm/index.d.ts +0 -7
- package/lib/esm/index.js +0 -2
- package/lib/esm/interceptor.d.ts +0 -37
- package/lib/esm/interceptor.js +0 -1
- package/lib/esm/jsonapi.d.ts +0 -6
- package/lib/esm/jsonapi.js +0 -85
- package/lib/esm/model.d.ts +0 -121
- package/lib/esm/model.js +0 -1
- package/lib/esm/query.d.ts +0 -18
- package/lib/esm/query.js +0 -62
- package/lib/esm/resource.d.ts +0 -86
- package/lib/esm/resource.js +0 -155
- package/lib/esm/resources/addresses.d.ts +0 -104
- package/lib/esm/resources/addresses.js +0 -42
- package/lib/esm/resources/adjustments.d.ts +0 -43
- package/lib/esm/resources/adjustments.js +0 -30
- package/lib/esm/resources/adyen_gateways.d.ts +0 -61
- package/lib/esm/resources/adyen_gateways.js +0 -38
- package/lib/esm/resources/adyen_payments.d.ts +0 -52
- package/lib/esm/resources/adyen_payments.js +0 -41
- package/lib/esm/resources/application.d.ts +0 -23
- package/lib/esm/resources/application.js +0 -17
- package/lib/esm/resources/attachments.d.ts +0 -158
- package/lib/esm/resources/attachments.js +0 -26
- package/lib/esm/resources/authorizations.d.ts +0 -71
- package/lib/esm/resources/authorizations.js +0 -53
- package/lib/esm/resources/avalara_accounts.d.ts +0 -60
- package/lib/esm/resources/avalara_accounts.js +0 -42
- package/lib/esm/resources/axerve_gateways.d.ts +0 -49
- package/lib/esm/resources/axerve_gateways.js +0 -38
- package/lib/esm/resources/axerve_payments.d.ts +0 -58
- package/lib/esm/resources/axerve_payments.js +0 -41
- package/lib/esm/resources/billing_info_validation_rules.d.ts +0 -40
- package/lib/esm/resources/billing_info_validation_rules.js +0 -38
- package/lib/esm/resources/bing_geocoders.d.ts +0 -37
- package/lib/esm/resources/bing_geocoders.js +0 -34
- package/lib/esm/resources/braintree_gateways.d.ts +0 -61
- package/lib/esm/resources/braintree_gateways.js +0 -38
- package/lib/esm/resources/braintree_payments.d.ts +0 -53
- package/lib/esm/resources/braintree_payments.js +0 -38
- package/lib/esm/resources/bundles.d.ts +0 -94
- package/lib/esm/resources/bundles.js +0 -60
- package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +0 -138
- package/lib/esm/resources/buy_x_pay_y_promotions.js +0 -80
- package/lib/esm/resources/captures.d.ts +0 -61
- package/lib/esm/resources/captures.js +0 -50
- package/lib/esm/resources/carrier_accounts.d.ts +0 -31
- package/lib/esm/resources/carrier_accounts.js +0 -29
- package/lib/esm/resources/checkout_com_gateways.d.ts +0 -50
- package/lib/esm/resources/checkout_com_gateways.js +0 -38
- package/lib/esm/resources/checkout_com_payments.d.ts +0 -66
- package/lib/esm/resources/checkout_com_payments.js +0 -44
- package/lib/esm/resources/cleanups.d.ts +0 -41
- package/lib/esm/resources/cleanups.js +0 -31
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +0 -68
- package/lib/esm/resources/coupon_codes_promotion_rules.js +0 -34
- package/lib/esm/resources/coupon_recipients.d.ts +0 -49
- package/lib/esm/resources/coupon_recipients.js +0 -38
- package/lib/esm/resources/coupons.d.ts +0 -72
- package/lib/esm/resources/coupons.js +0 -46
- package/lib/esm/resources/custom_promotion_rules.d.ts +0 -63
- package/lib/esm/resources/custom_promotion_rules.js +0 -30
- package/lib/esm/resources/customer_addresses.d.ts +0 -51
- package/lib/esm/resources/customer_addresses.js +0 -42
- package/lib/esm/resources/customer_groups.d.ts +0 -41
- package/lib/esm/resources/customer_groups.js +0 -42
- package/lib/esm/resources/customer_password_resets.d.ts +0 -39
- package/lib/esm/resources/customer_password_resets.js +0 -37
- package/lib/esm/resources/customer_payment_sources.d.ts +0 -87
- package/lib/esm/resources/customer_payment_sources.js +0 -38
- package/lib/esm/resources/customer_subscriptions.d.ts +0 -36
- package/lib/esm/resources/customer_subscriptions.js +0 -38
- package/lib/esm/resources/customers.d.ts +0 -77
- package/lib/esm/resources/customers.js +0 -70
- package/lib/esm/resources/delivery_lead_times.d.ts +0 -56
- package/lib/esm/resources/delivery_lead_times.js +0 -42
- package/lib/esm/resources/event_callbacks.d.ts +0 -26
- package/lib/esm/resources/event_callbacks.js +0 -21
- package/lib/esm/resources/events.d.ts +0 -26
- package/lib/esm/resources/events.js +0 -25
- package/lib/esm/resources/exports.d.ts +0 -42
- package/lib/esm/resources/exports.js +0 -27
- package/lib/esm/resources/external_gateways.d.ts +0 -58
- package/lib/esm/resources/external_gateways.js +0 -41
- package/lib/esm/resources/external_payments.d.ts +0 -49
- package/lib/esm/resources/external_payments.js +0 -42
- package/lib/esm/resources/external_promotions.d.ts +0 -137
- package/lib/esm/resources/external_promotions.js +0 -83
- package/lib/esm/resources/external_tax_calculators.d.ts +0 -46
- package/lib/esm/resources/external_tax_calculators.js +0 -41
- package/lib/esm/resources/fixed_amount_promotions.d.ts +0 -134
- package/lib/esm/resources/fixed_amount_promotions.js +0 -80
- package/lib/esm/resources/fixed_price_promotions.d.ts +0 -134
- package/lib/esm/resources/fixed_price_promotions.js +0 -80
- package/lib/esm/resources/free_gift_promotions.d.ts +0 -132
- package/lib/esm/resources/free_gift_promotions.js +0 -80
- package/lib/esm/resources/free_shipping_promotions.d.ts +0 -126
- package/lib/esm/resources/free_shipping_promotions.js +0 -76
- package/lib/esm/resources/geocoders.d.ts +0 -26
- package/lib/esm/resources/geocoders.js +0 -25
- package/lib/esm/resources/gift_card_recipients.d.ts +0 -49
- package/lib/esm/resources/gift_card_recipients.js +0 -38
- package/lib/esm/resources/gift_cards.d.ts +0 -105
- package/lib/esm/resources/gift_cards.js +0 -62
- package/lib/esm/resources/google_geocoders.d.ts +0 -37
- package/lib/esm/resources/google_geocoders.js +0 -34
- package/lib/esm/resources/imports.d.ts +0 -45
- package/lib/esm/resources/imports.js +0 -27
- package/lib/esm/resources/in_stock_subscriptions.d.ts +0 -69
- package/lib/esm/resources/in_stock_subscriptions.js +0 -52
- package/lib/esm/resources/inventory_models.d.ts +0 -56
- package/lib/esm/resources/inventory_models.js +0 -42
- package/lib/esm/resources/inventory_return_locations.d.ts +0 -48
- package/lib/esm/resources/inventory_return_locations.js +0 -38
- package/lib/esm/resources/inventory_stock_locations.d.ts +0 -51
- package/lib/esm/resources/inventory_stock_locations.js +0 -38
- package/lib/esm/resources/klarna_gateways.d.ts +0 -49
- package/lib/esm/resources/klarna_gateways.js +0 -38
- package/lib/esm/resources/klarna_payments.d.ts +0 -52
- package/lib/esm/resources/klarna_payments.js +0 -41
- package/lib/esm/resources/line_item_options.d.ts +0 -70
- package/lib/esm/resources/line_item_options.js +0 -42
- package/lib/esm/resources/line_items.d.ts +0 -171
- package/lib/esm/resources/line_items.js +0 -67
- package/lib/esm/resources/manual_gateways.d.ts +0 -35
- package/lib/esm/resources/manual_gateways.js +0 -34
- package/lib/esm/resources/manual_tax_calculators.d.ts +0 -46
- package/lib/esm/resources/manual_tax_calculators.js +0 -42
- package/lib/esm/resources/markets.d.ts +0 -108
- package/lib/esm/resources/markets.js +0 -64
- package/lib/esm/resources/merchants.d.ts +0 -43
- package/lib/esm/resources/merchants.js +0 -38
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +0 -68
- package/lib/esm/resources/order_amount_promotion_rules.js +0 -30
- package/lib/esm/resources/order_copies.d.ts +0 -52
- package/lib/esm/resources/order_copies.js +0 -42
- package/lib/esm/resources/order_factories.d.ts +0 -35
- package/lib/esm/resources/order_factories.js +0 -29
- package/lib/esm/resources/order_subscription_items.d.ts +0 -69
- package/lib/esm/resources/order_subscription_items.js +0 -34
- package/lib/esm/resources/order_subscriptions.d.ts +0 -97
- package/lib/esm/resources/order_subscriptions.js +0 -79
- package/lib/esm/resources/order_validation_rules.d.ts +0 -28
- package/lib/esm/resources/order_validation_rules.js +0 -29
- package/lib/esm/resources/orders.d.ts +0 -390
- package/lib/esm/resources/orders.js +0 -237
- package/lib/esm/resources/organization.d.ts +0 -35
- package/lib/esm/resources/organization.js +0 -17
- package/lib/esm/resources/packages.d.ts +0 -61
- package/lib/esm/resources/packages.js +0 -42
- package/lib/esm/resources/parcel_line_items.d.ts +0 -48
- package/lib/esm/resources/parcel_line_items.js +0 -38
- package/lib/esm/resources/parcels.d.ts +0 -127
- package/lib/esm/resources/parcels.js +0 -50
- package/lib/esm/resources/payment_gateways.d.ts +0 -26
- package/lib/esm/resources/payment_gateways.js +0 -25
- package/lib/esm/resources/payment_methods.d.ts +0 -84
- package/lib/esm/resources/payment_methods.js +0 -48
- package/lib/esm/resources/payment_options.d.ts +0 -45
- package/lib/esm/resources/payment_options.js +0 -34
- package/lib/esm/resources/paypal_gateways.d.ts +0 -42
- package/lib/esm/resources/paypal_gateways.js +0 -38
- package/lib/esm/resources/paypal_payments.d.ts +0 -57
- package/lib/esm/resources/paypal_payments.js +0 -38
- package/lib/esm/resources/percentage_discount_promotions.d.ts +0 -132
- package/lib/esm/resources/percentage_discount_promotions.js +0 -80
- package/lib/esm/resources/price_frequency_tiers.d.ts +0 -54
- package/lib/esm/resources/price_frequency_tiers.js +0 -42
- package/lib/esm/resources/price_lists.d.ts +0 -47
- package/lib/esm/resources/price_lists.js +0 -38
- package/lib/esm/resources/price_tiers.d.ts +0 -33
- package/lib/esm/resources/price_tiers.js +0 -29
- package/lib/esm/resources/price_volume_tiers.d.ts +0 -54
- package/lib/esm/resources/price_volume_tiers.js +0 -42
- package/lib/esm/resources/prices.d.ts +0 -76
- package/lib/esm/resources/prices.js +0 -54
- package/lib/esm/resources/promotion_rules.d.ts +0 -30
- package/lib/esm/resources/promotion_rules.js +0 -21
- package/lib/esm/resources/promotions.d.ts +0 -64
- package/lib/esm/resources/promotions.js +0 -61
- package/lib/esm/resources/recurring_order_copies.d.ts +0 -54
- package/lib/esm/resources/recurring_order_copies.js +0 -42
- package/lib/esm/resources/refunds.d.ts +0 -45
- package/lib/esm/resources/refunds.js +0 -37
- package/lib/esm/resources/reserved_stocks.d.ts +0 -29
- package/lib/esm/resources/reserved_stocks.js +0 -29
- package/lib/esm/resources/resource_errors.d.ts +0 -23
- package/lib/esm/resources/resource_errors.js +0 -17
- package/lib/esm/resources/return_line_items.d.ts +0 -53
- package/lib/esm/resources/return_line_items.js +0 -37
- package/lib/esm/resources/returns.d.ts +0 -97
- package/lib/esm/resources/returns.js +0 -93
- package/lib/esm/resources/satispay_gateways.d.ts +0 -47
- package/lib/esm/resources/satispay_gateways.js +0 -38
- package/lib/esm/resources/satispay_payments.d.ts +0 -54
- package/lib/esm/resources/satispay_payments.js +0 -41
- package/lib/esm/resources/shipments.d.ts +0 -152
- package/lib/esm/resources/shipments.js +0 -131
- package/lib/esm/resources/shipping_categories.d.ts +0 -41
- package/lib/esm/resources/shipping_categories.js +0 -38
- package/lib/esm/resources/shipping_method_tiers.d.ts +0 -33
- package/lib/esm/resources/shipping_method_tiers.js +0 -29
- package/lib/esm/resources/shipping_methods.d.ts +0 -126
- package/lib/esm/resources/shipping_methods.js +0 -71
- package/lib/esm/resources/shipping_weight_tiers.d.ts +0 -51
- package/lib/esm/resources/shipping_weight_tiers.js +0 -38
- package/lib/esm/resources/shipping_zones.d.ts +0 -53
- package/lib/esm/resources/shipping_zones.js +0 -34
- package/lib/esm/resources/sku_list_items.d.ts +0 -52
- package/lib/esm/resources/sku_list_items.js +0 -38
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +0 -77
- package/lib/esm/resources/sku_list_promotion_rules.js +0 -38
- package/lib/esm/resources/sku_lists.d.ts +0 -65
- package/lib/esm/resources/sku_lists.js +0 -50
- package/lib/esm/resources/sku_options.d.ts +0 -72
- package/lib/esm/resources/sku_options.js +0 -46
- package/lib/esm/resources/skus.d.ts +0 -97
- package/lib/esm/resources/skus.js +0 -66
- package/lib/esm/resources/stock_items.d.ts +0 -60
- package/lib/esm/resources/stock_items.js +0 -50
- package/lib/esm/resources/stock_line_items.d.ts +0 -74
- package/lib/esm/resources/stock_line_items.js +0 -55
- package/lib/esm/resources/stock_locations.d.ts +0 -65
- package/lib/esm/resources/stock_locations.js +0 -54
- package/lib/esm/resources/stock_reservations.d.ts +0 -52
- package/lib/esm/resources/stock_reservations.js +0 -49
- package/lib/esm/resources/stock_transfers.d.ts +0 -87
- package/lib/esm/resources/stock_transfers.js +0 -72
- package/lib/esm/resources/stripe_gateways.d.ts +0 -46
- package/lib/esm/resources/stripe_gateways.js +0 -38
- package/lib/esm/resources/stripe_payments.d.ts +0 -63
- package/lib/esm/resources/stripe_payments.js +0 -44
- package/lib/esm/resources/subscription_models.d.ts +0 -50
- package/lib/esm/resources/subscription_models.js +0 -38
- package/lib/esm/resources/tags.d.ts +0 -29
- package/lib/esm/resources/tags.js +0 -26
- package/lib/esm/resources/tax_calculators.d.ts +0 -29
- package/lib/esm/resources/tax_calculators.js +0 -29
- package/lib/esm/resources/tax_categories.d.ts +0 -64
- package/lib/esm/resources/tax_categories.js +0 -38
- package/lib/esm/resources/tax_rules.d.ts +0 -74
- package/lib/esm/resources/tax_rules.js +0 -34
- package/lib/esm/resources/taxjar_accounts.d.ts +0 -48
- package/lib/esm/resources/taxjar_accounts.js +0 -42
- package/lib/esm/resources/transactions.d.ts +0 -42
- package/lib/esm/resources/transactions.js +0 -33
- package/lib/esm/resources/versions.d.ts +0 -23
- package/lib/esm/resources/versions.js +0 -17
- package/lib/esm/resources/voids.d.ts +0 -45
- package/lib/esm/resources/voids.js +0 -37
- package/lib/esm/resources/webhooks.d.ts +0 -56
- package/lib/esm/resources/webhooks.js +0 -43
- package/lib/esm/resources/wire_transfers.d.ts +0 -38
- package/lib/esm/resources/wire_transfers.js +0 -34
- package/lib/esm/static.d.ts +0 -12
- package/lib/esm/static.js +0 -24
- package/lib/esm/util.d.ts +0 -9
- package/lib/esm/util.js +0 -11
- package/lib/tsconfig.esm.tsbuildinfo +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
@@ -1,81 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const resource_1 = require("../resource");
|
4
|
-
class OrderSubscriptions extends resource_1.ApiResource {
|
5
|
-
async create(resource, params, options) {
|
6
|
-
return this.resources.create({ ...resource, type: OrderSubscriptions.TYPE }, params, options);
|
7
|
-
}
|
8
|
-
async update(resource, params, options) {
|
9
|
-
return this.resources.update({ ...resource, type: OrderSubscriptions.TYPE }, params, options);
|
10
|
-
}
|
11
|
-
async delete(id, options) {
|
12
|
-
await this.resources.delete((typeof id === 'string') ? { id, type: OrderSubscriptions.TYPE } : id, options);
|
13
|
-
}
|
14
|
-
async market(orderSubscriptionId, params, options) {
|
15
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
16
|
-
return this.resources.fetch({ type: 'markets' }, `order_subscriptions/${_orderSubscriptionId}/market`, params, options);
|
17
|
-
}
|
18
|
-
async subscription_model(orderSubscriptionId, params, options) {
|
19
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
20
|
-
return this.resources.fetch({ type: 'subscription_models' }, `order_subscriptions/${_orderSubscriptionId}/subscription_model`, params, options);
|
21
|
-
}
|
22
|
-
async source_order(orderSubscriptionId, params, options) {
|
23
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
24
|
-
return this.resources.fetch({ type: 'orders' }, `order_subscriptions/${_orderSubscriptionId}/source_order`, params, options);
|
25
|
-
}
|
26
|
-
async customer(orderSubscriptionId, params, options) {
|
27
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
28
|
-
return this.resources.fetch({ type: 'customers' }, `order_subscriptions/${_orderSubscriptionId}/customer`, params, options);
|
29
|
-
}
|
30
|
-
async customer_payment_source(orderSubscriptionId, params, options) {
|
31
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
32
|
-
return this.resources.fetch({ type: 'customer_payment_sources' }, `order_subscriptions/${_orderSubscriptionId}/customer_payment_source`, params, options);
|
33
|
-
}
|
34
|
-
async order_subscription_items(orderSubscriptionId, params, options) {
|
35
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
36
|
-
return this.resources.fetch({ type: 'order_subscription_items' }, `order_subscriptions/${_orderSubscriptionId}/order_subscription_items`, params, options);
|
37
|
-
}
|
38
|
-
async order_factories(orderSubscriptionId, params, options) {
|
39
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
40
|
-
return this.resources.fetch({ type: 'order_factories' }, `order_subscriptions/${_orderSubscriptionId}/order_factories`, params, options);
|
41
|
-
}
|
42
|
-
async recurring_order_copies(orderSubscriptionId, params, options) {
|
43
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
44
|
-
return this.resources.fetch({ type: 'recurring_order_copies' }, `order_subscriptions/${_orderSubscriptionId}/recurring_order_copies`, params, options);
|
45
|
-
}
|
46
|
-
async orders(orderSubscriptionId, params, options) {
|
47
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
48
|
-
return this.resources.fetch({ type: 'orders' }, `order_subscriptions/${_orderSubscriptionId}/orders`, params, options);
|
49
|
-
}
|
50
|
-
async events(orderSubscriptionId, params, options) {
|
51
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
52
|
-
return this.resources.fetch({ type: 'events' }, `order_subscriptions/${_orderSubscriptionId}/events`, params, options);
|
53
|
-
}
|
54
|
-
async versions(orderSubscriptionId, params, options) {
|
55
|
-
const _orderSubscriptionId = orderSubscriptionId.id || orderSubscriptionId;
|
56
|
-
return this.resources.fetch({ type: 'versions' }, `order_subscriptions/${_orderSubscriptionId}/versions`, params, options);
|
57
|
-
}
|
58
|
-
async _activate(id, params, options) {
|
59
|
-
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: OrderSubscriptions.TYPE, _activate: true }, params, options);
|
60
|
-
}
|
61
|
-
async _deactivate(id, params, options) {
|
62
|
-
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: OrderSubscriptions.TYPE, _deactivate: true }, params, options);
|
63
|
-
}
|
64
|
-
async _cancel(id, params, options) {
|
65
|
-
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: OrderSubscriptions.TYPE, _cancel: true }, params, options);
|
66
|
-
}
|
67
|
-
isOrderSubscription(resource) {
|
68
|
-
return resource.type && (resource.type === OrderSubscriptions.TYPE);
|
69
|
-
}
|
70
|
-
relationship(id) {
|
71
|
-
return super.relationshipOneToOne(id);
|
72
|
-
}
|
73
|
-
relationshipToMany(...ids) {
|
74
|
-
return super.relationshipOneToMany(...ids);
|
75
|
-
}
|
76
|
-
type() {
|
77
|
-
return OrderSubscriptions.TYPE;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
OrderSubscriptions.TYPE = 'order_subscriptions';
|
81
|
-
exports.default = OrderSubscriptions;
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
-
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
|
-
import type { Market } from './markets';
|
5
|
-
import type { Attachment } from './attachments';
|
6
|
-
import type { Version } from './versions';
|
7
|
-
type OrderValidationRuleType = 'order_validation_rules';
|
8
|
-
type OrderValidationRuleRel = ResourceRel & {
|
9
|
-
type: OrderValidationRuleType;
|
10
|
-
};
|
11
|
-
interface OrderValidationRule extends Resource {
|
12
|
-
readonly type: OrderValidationRuleType;
|
13
|
-
market?: Market | null;
|
14
|
-
attachments?: Attachment[] | null;
|
15
|
-
versions?: Version[] | null;
|
16
|
-
}
|
17
|
-
declare class OrderValidationRules extends ApiResource<OrderValidationRule> {
|
18
|
-
static readonly TYPE: OrderValidationRuleType;
|
19
|
-
market(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
20
|
-
attachments(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
21
|
-
versions(orderValidationRuleId: string | OrderValidationRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
22
|
-
isOrderValidationRule(resource: any): resource is OrderValidationRule;
|
23
|
-
relationship(id: string | ResourceId | null): OrderValidationRuleRel;
|
24
|
-
relationshipToMany(...ids: string[]): OrderValidationRuleRel[];
|
25
|
-
type(): OrderValidationRuleType;
|
26
|
-
}
|
27
|
-
export default OrderValidationRules;
|
28
|
-
export type { OrderValidationRule, OrderValidationRuleType };
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const resource_1 = require("../resource");
|
4
|
-
class OrderValidationRules extends resource_1.ApiResource {
|
5
|
-
async market(orderValidationRuleId, params, options) {
|
6
|
-
const _orderValidationRuleId = orderValidationRuleId.id || orderValidationRuleId;
|
7
|
-
return this.resources.fetch({ type: 'markets' }, `order_validation_rules/${_orderValidationRuleId}/market`, params, options);
|
8
|
-
}
|
9
|
-
async attachments(orderValidationRuleId, params, options) {
|
10
|
-
const _orderValidationRuleId = orderValidationRuleId.id || orderValidationRuleId;
|
11
|
-
return this.resources.fetch({ type: 'attachments' }, `order_validation_rules/${_orderValidationRuleId}/attachments`, params, options);
|
12
|
-
}
|
13
|
-
async versions(orderValidationRuleId, params, options) {
|
14
|
-
const _orderValidationRuleId = orderValidationRuleId.id || orderValidationRuleId;
|
15
|
-
return this.resources.fetch({ type: 'versions' }, `order_validation_rules/${_orderValidationRuleId}/versions`, params, options);
|
16
|
-
}
|
17
|
-
isOrderValidationRule(resource) {
|
18
|
-
return resource.type && (resource.type === OrderValidationRules.TYPE);
|
19
|
-
}
|
20
|
-
relationship(id) {
|
21
|
-
return super.relationshipOneToOne(id);
|
22
|
-
}
|
23
|
-
relationshipToMany(...ids) {
|
24
|
-
return super.relationshipOneToMany(...ids);
|
25
|
-
}
|
26
|
-
type() {
|
27
|
-
return OrderValidationRules.TYPE;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
OrderValidationRules.TYPE = 'order_validation_rules';
|
31
|
-
exports.default = OrderValidationRules;
|
@@ -1,390 +0,0 @@
|
|
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
|
-
relationshipToMany(...ids: string[]): OrderRel[];
|
387
|
-
type(): OrderType;
|
388
|
-
}
|
389
|
-
export default Orders;
|
390
|
-
export type { Order, OrderCreate, OrderUpdate, OrderType };
|