@wix/ecom 1.0.521 → 1.0.522
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/build/cjs/context.d.ts +16 -16
- package/build/cjs/context.js +17 -17
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +16 -19
- package/build/cjs/index.js +17 -20
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +16 -19
- package/build/cjs/meta.js +17 -20
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +16 -16
- package/build/es/context.js +16 -16
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +16 -19
- package/build/es/index.js +16 -19
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +16 -19
- package/build/es/meta.js +16 -19
- package/build/es/meta.js.map +1 -1
- package/package.json +26 -10
- package/build/cjs/index.typings.d.ts +0 -19
- package/build/cjs/index.typings.js +0 -46
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/ecom-discounts-v1-discount-rule.context.d.ts +0 -7
- package/build/cjs/src/ecom-discounts-v1-discount-rule.context.js +0 -90
- package/build/cjs/src/ecom-discounts-v1-discount-rule.context.js.map +0 -1
- package/build/cjs/src/ecom-discounts-v1-discount-rule.http.d.ts +0 -48
- package/build/cjs/src/ecom-discounts-v1-discount-rule.http.js +0 -265
- package/build/cjs/src/ecom-discounts-v1-discount-rule.http.js.map +0 -1
- package/build/cjs/src/ecom-discounts-v1-discount-rule.meta.d.ts +0 -23
- package/build/cjs/src/ecom-discounts-v1-discount-rule.meta.js +0 -123
- package/build/cjs/src/ecom-discounts-v1-discount-rule.meta.js.map +0 -1
- package/build/cjs/src/ecom-discounts-v1-discount-rule.public.d.ts +0 -205
- package/build/cjs/src/ecom-discounts-v1-discount-rule.public.js +0 -48
- package/build/cjs/src/ecom-discounts-v1-discount-rule.public.js.map +0 -1
- package/build/cjs/src/ecom-discounts-v1-discount-rule.types.d.ts +0 -990
- package/build/cjs/src/ecom-discounts-v1-discount-rule.types.js +0 -70
- package/build/cjs/src/ecom-discounts-v1-discount-rule.types.js.map +0 -1
- package/build/cjs/src/ecom-discounts-v1-discount-rule.universal.d.ts +0 -1086
- package/build/cjs/src/ecom-discounts-v1-discount-rule.universal.js +0 -491
- package/build/cjs/src/ecom-discounts-v1-discount-rule.universal.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice.context.d.ts +0 -3
- package/build/cjs/src/ecom-orders-v1-invoice.context.js +0 -22
- package/build/cjs/src/ecom-orders-v1-invoice.context.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice.http.d.ts +0 -8
- package/build/cjs/src/ecom-orders-v1-invoice.http.js +0 -46
- package/build/cjs/src/ecom-orders-v1-invoice.http.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice.meta.d.ts +0 -13
- package/build/cjs/src/ecom-orders-v1-invoice.meta.js +0 -47
- package/build/cjs/src/ecom-orders-v1-invoice.meta.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice.public.d.ts +0 -6
- package/build/cjs/src/ecom-orders-v1-invoice.public.js +0 -12
- package/build/cjs/src/ecom-orders-v1-invoice.public.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice.types.d.ts +0 -172
- package/build/cjs/src/ecom-orders-v1-invoice.types.js +0 -3
- package/build/cjs/src/ecom-orders-v1-invoice.types.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice.universal.d.ts +0 -201
- package/build/cjs/src/ecom-orders-v1-invoice.universal.js +0 -117
- package/build/cjs/src/ecom-orders-v1-invoice.universal.js.map +0 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation.context.d.ts +0 -4
- package/build/cjs/src/ecom-recommendations-v1-recommendation.context.js +0 -39
- package/build/cjs/src/ecom-recommendations-v1-recommendation.context.js.map +0 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation.http.d.ts +0 -37
- package/build/cjs/src/ecom-recommendations-v1-recommendation.http.js +0 -91
- package/build/cjs/src/ecom-recommendations-v1-recommendation.http.js.map +0 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation.meta.d.ts +0 -14
- package/build/cjs/src/ecom-recommendations-v1-recommendation.meta.js +0 -66
- package/build/cjs/src/ecom-recommendations-v1-recommendation.meta.js.map +0 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation.public.d.ts +0 -9
- package/build/cjs/src/ecom-recommendations-v1-recommendation.public.js +0 -20
- package/build/cjs/src/ecom-recommendations-v1-recommendation.public.js.map +0 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation.types.d.ts +0 -136
- package/build/cjs/src/ecom-recommendations-v1-recommendation.types.js +0 -10
- package/build/cjs/src/ecom-recommendations-v1-recommendation.types.js.map +0 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation.universal.d.ts +0 -206
- package/build/cjs/src/ecom-recommendations-v1-recommendation.universal.js +0 -207
- package/build/cjs/src/ecom-recommendations-v1-recommendation.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout.context.d.ts +0 -3
- package/build/cjs/src/ecom-v1-abandoned-checkout.context.js +0 -22
- package/build/cjs/src/ecom-v1-abandoned-checkout.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout.http.d.ts +0 -3
- package/build/cjs/src/ecom-v1-abandoned-checkout.http.js +0 -55
- package/build/cjs/src/ecom-v1-abandoned-checkout.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout.meta.d.ts +0 -15
- package/build/cjs/src/ecom-v1-abandoned-checkout.meta.js +0 -47
- package/build/cjs/src/ecom-v1-abandoned-checkout.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout.public.d.ts +0 -39
- package/build/cjs/src/ecom-v1-abandoned-checkout.public.js +0 -23
- package/build/cjs/src/ecom-v1-abandoned-checkout.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout.types.d.ts +0 -562
- package/build/cjs/src/ecom-v1-abandoned-checkout.types.js +0 -56
- package/build/cjs/src/ecom-v1-abandoned-checkout.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-abandoned-checkout.universal.d.ts +0 -609
- package/build/cjs/src/ecom-v1-abandoned-checkout.universal.js +0 -177
- package/build/cjs/src/ecom-v1-abandoned-checkout.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.context.d.ts +0 -9
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.context.js +0 -124
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.http.d.ts +0 -54
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.http.js +0 -243
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.meta.d.ts +0 -25
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.meta.js +0 -161
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.public.d.ts +0 -29
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.public.js +0 -55
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.types.d.ts +0 -438
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.types.js +0 -18
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.universal.d.ts +0 -648
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.universal.js +0 -546
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-settings.context.d.ts +0 -5
- package/build/cjs/src/ecom-v1-back-in-stock-settings.context.js +0 -56
- package/build/cjs/src/ecom-v1-back-in-stock-settings.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-settings.http.d.ts +0 -18
- package/build/cjs/src/ecom-v1-back-in-stock-settings.http.js +0 -90
- package/build/cjs/src/ecom-v1-back-in-stock-settings.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-settings.meta.d.ts +0 -15
- package/build/cjs/src/ecom-v1-back-in-stock-settings.meta.js +0 -85
- package/build/cjs/src/ecom-v1-back-in-stock-settings.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-settings.public.d.ts +0 -8
- package/build/cjs/src/ecom-v1-back-in-stock-settings.public.js +0 -24
- package/build/cjs/src/ecom-v1-back-in-stock-settings.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-settings.types.d.ts +0 -63
- package/build/cjs/src/ecom-v1-back-in-stock-settings.types.js +0 -3
- package/build/cjs/src/ecom-v1-back-in-stock-settings.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-back-in-stock-settings.universal.d.ts +0 -94
- package/build/cjs/src/ecom-v1-back-in-stock-settings.universal.js +0 -210
- package/build/cjs/src/ecom-v1-back-in-stock-settings.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-cart.context.d.ts +0 -12
- package/build/cjs/src/ecom-v1-cart-cart.context.js +0 -175
- package/build/cjs/src/ecom-v1-cart-cart.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-cart.http.d.ts +0 -116
- package/build/cjs/src/ecom-v1-cart-cart.http.js +0 -1119
- package/build/cjs/src/ecom-v1-cart-cart.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-cart.meta.d.ts +0 -40
- package/build/cjs/src/ecom-v1-cart-cart.meta.js +0 -218
- package/build/cjs/src/ecom-v1-cart-cart.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-cart.public.d.ts +0 -315
- package/build/cjs/src/ecom-v1-cart-cart.public.js +0 -91
- package/build/cjs/src/ecom-v1-cart-cart.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-cart.types.d.ts +0 -3845
- package/build/cjs/src/ecom-v1-cart-cart.types.js +0 -187
- package/build/cjs/src/ecom-v1-cart-cart.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-cart.universal.d.ts +0 -3539
- package/build/cjs/src/ecom-v1-cart-cart.universal.js +0 -1025
- package/build/cjs/src/ecom-v1-cart-cart.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-current-cart.context.d.ts +0 -11
- package/build/cjs/src/ecom-v1-cart-current-cart.context.js +0 -158
- package/build/cjs/src/ecom-v1-cart-current-cart.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-current-cart.http.d.ts +0 -164
- package/build/cjs/src/ecom-v1-cart-current-cart.http.js +0 -1167
- package/build/cjs/src/ecom-v1-cart-current-cart.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-current-cart.meta.d.ts +0 -21
- package/build/cjs/src/ecom-v1-cart-current-cart.meta.js +0 -199
- package/build/cjs/src/ecom-v1-cart-current-cart.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-current-cart.public.d.ts +0 -215
- package/build/cjs/src/ecom-v1-cart-current-cart.public.js +0 -85
- package/build/cjs/src/ecom-v1-cart-current-cart.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-current-cart.types.d.ts +0 -3845
- package/build/cjs/src/ecom-v1-cart-current-cart.types.js +0 -187
- package/build/cjs/src/ecom-v1-cart-current-cart.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-cart-current-cart.universal.d.ts +0 -3403
- package/build/cjs/src/ecom-v1-cart-current-cart.universal.js +0 -916
- package/build/cjs/src/ecom-v1-cart-current-cart.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.context.d.ts +0 -14
- package/build/cjs/src/ecom-v1-checkout-checkout.context.js +0 -209
- package/build/cjs/src/ecom-v1-checkout-checkout.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.http.d.ts +0 -113
- package/build/cjs/src/ecom-v1-checkout-checkout.http.js +0 -1011
- package/build/cjs/src/ecom-v1-checkout-checkout.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +0 -46
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.js +0 -256
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.public.d.ts +0 -2057
- package/build/cjs/src/ecom-v1-checkout-checkout.public.js +0 -109
- package/build/cjs/src/ecom-v1-checkout-checkout.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.types.d.ts +0 -10784
- package/build/cjs/src/ecom-v1-checkout-checkout.types.js +0 -237
- package/build/cjs/src/ecom-v1-checkout-checkout.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +0 -8780
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js +0 -1366
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings.context.d.ts +0 -4
- package/build/cjs/src/ecom-v1-checkout-settings.context.js +0 -39
- package/build/cjs/src/ecom-v1-checkout-settings.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings.http.d.ts +0 -15
- package/build/cjs/src/ecom-v1-checkout-settings.http.js +0 -85
- package/build/cjs/src/ecom-v1-checkout-settings.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings.meta.d.ts +0 -14
- package/build/cjs/src/ecom-v1-checkout-settings.meta.js +0 -66
- package/build/cjs/src/ecom-v1-checkout-settings.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings.public.d.ts +0 -9
- package/build/cjs/src/ecom-v1-checkout-settings.public.js +0 -20
- package/build/cjs/src/ecom-v1-checkout-settings.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings.types.d.ts +0 -210
- package/build/cjs/src/ecom-v1-checkout-settings.types.js +0 -3
- package/build/cjs/src/ecom-v1-checkout-settings.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-settings.universal.d.ts +0 -259
- package/build/cjs/src/ecom-v1-checkout-settings.universal.js +0 -183
- package/build/cjs/src/ecom-v1-checkout-settings.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-template.context.d.ts +0 -8
- package/build/cjs/src/ecom-v1-checkout-template.context.js +0 -107
- package/build/cjs/src/ecom-v1-checkout-template.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-template.http.d.ts +0 -56
- package/build/cjs/src/ecom-v1-checkout-template.http.js +0 -298
- package/build/cjs/src/ecom-v1-checkout-template.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-template.meta.d.ts +0 -26
- package/build/cjs/src/ecom-v1-checkout-template.meta.js +0 -142
- package/build/cjs/src/ecom-v1-checkout-template.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-template.public.d.ts +0 -41
- package/build/cjs/src/ecom-v1-checkout-template.public.js +0 -70
- package/build/cjs/src/ecom-v1-checkout-template.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-template.types.d.ts +0 -2087
- package/build/cjs/src/ecom-v1-checkout-template.types.js +0 -198
- package/build/cjs/src/ecom-v1-checkout-template.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-checkout-template.universal.d.ts +0 -1983
- package/build/cjs/src/ecom-v1-checkout-template.universal.js +0 -729
- package/build/cjs/src/ecom-v1-checkout-template.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-draft-order.http.d.ts +0 -15
- package/build/cjs/src/ecom-v1-draft-order.http.js +0 -194
- package/build/cjs/src/ecom-v1-draft-order.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-draft-order.meta.d.ts +0 -19
- package/build/cjs/src/ecom-v1-draft-order.meta.js +0 -85
- package/build/cjs/src/ecom-v1-draft-order.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-draft-order.public.d.ts +0 -10
- package/build/cjs/src/ecom-v1-draft-order.public.js +0 -49
- package/build/cjs/src/ecom-v1-draft-order.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-draft-order.types.d.ts +0 -3052
- package/build/cjs/src/ecom-v1-draft-order.types.js +0 -245
- package/build/cjs/src/ecom-v1-draft-order.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-draft-order.universal.d.ts +0 -2879
- package/build/cjs/src/ecom-v1-draft-order.universal.js +0 -525
- package/build/cjs/src/ecom-v1-draft-order.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments.context.d.ts +0 -8
- package/build/cjs/src/ecom-v1-fulfillments.context.js +0 -107
- package/build/cjs/src/ecom-v1-fulfillments.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments.http.d.ts +0 -47
- package/build/cjs/src/ecom-v1-fulfillments.http.js +0 -249
- package/build/cjs/src/ecom-v1-fulfillments.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments.meta.d.ts +0 -28
- package/build/cjs/src/ecom-v1-fulfillments.meta.js +0 -148
- package/build/cjs/src/ecom-v1-fulfillments.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments.public.d.ts +0 -21
- package/build/cjs/src/ecom-v1-fulfillments.public.js +0 -47
- package/build/cjs/src/ecom-v1-fulfillments.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments.types.d.ts +0 -412
- package/build/cjs/src/ecom-v1-fulfillments.types.js +0 -26
- package/build/cjs/src/ecom-v1-fulfillments.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments.universal.d.ts +0 -606
- package/build/cjs/src/ecom-v1-fulfillments.universal.js +0 -492
- package/build/cjs/src/ecom-v1-fulfillments.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-transactions.context.d.ts +0 -7
- package/build/cjs/src/ecom-v1-order-transactions.context.js +0 -90
- package/build/cjs/src/ecom-v1-order-transactions.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-transactions.http.d.ts +0 -38
- package/build/cjs/src/ecom-v1-order-transactions.http.js +0 -240
- package/build/cjs/src/ecom-v1-order-transactions.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-transactions.meta.d.ts +0 -24
- package/build/cjs/src/ecom-v1-order-transactions.meta.js +0 -123
- package/build/cjs/src/ecom-v1-order-transactions.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-transactions.public.d.ts +0 -13
- package/build/cjs/src/ecom-v1-order-transactions.public.js +0 -58
- package/build/cjs/src/ecom-v1-order-transactions.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-transactions.types.d.ts +0 -1621
- package/build/cjs/src/ecom-v1-order-transactions.types.js +0 -220
- package/build/cjs/src/ecom-v1-order-transactions.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-order-transactions.universal.d.ts +0 -1696
- package/build/cjs/src/ecom-v1-order-transactions.universal.js +0 -624
- package/build/cjs/src/ecom-v1-order-transactions.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-order.context.d.ts +0 -7
- package/build/cjs/src/ecom-v1-order.context.js +0 -90
- package/build/cjs/src/ecom-v1-order.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-order.http.d.ts +0 -66
- package/build/cjs/src/ecom-v1-order.http.js +0 -414
- package/build/cjs/src/ecom-v1-order.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-order.meta.d.ts +0 -23
- package/build/cjs/src/ecom-v1-order.meta.js +0 -123
- package/build/cjs/src/ecom-v1-order.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-order.public.d.ts +0 -853
- package/build/cjs/src/ecom-v1-order.public.js +0 -82
- package/build/cjs/src/ecom-v1-order.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-order.types.d.ts +0 -6678
- package/build/cjs/src/ecom-v1-order.types.js +0 -432
- package/build/cjs/src/ecom-v1-order.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-order.universal.d.ts +0 -5481
- package/build/cjs/src/ecom-v1-order.universal.js +0 -1001
- package/build/cjs/src/ecom-v1-order.universal.js.map +0 -1
- package/build/cjs/src/ecom-v1-orders-settings.context.d.ts +0 -4
- package/build/cjs/src/ecom-v1-orders-settings.context.js +0 -39
- package/build/cjs/src/ecom-v1-orders-settings.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-orders-settings.http.d.ts +0 -15
- package/build/cjs/src/ecom-v1-orders-settings.http.js +0 -85
- package/build/cjs/src/ecom-v1-orders-settings.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-orders-settings.meta.d.ts +0 -14
- package/build/cjs/src/ecom-v1-orders-settings.meta.js +0 -66
- package/build/cjs/src/ecom-v1-orders-settings.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-orders-settings.public.d.ts +0 -10
- package/build/cjs/src/ecom-v1-orders-settings.public.js +0 -22
- package/build/cjs/src/ecom-v1-orders-settings.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-orders-settings.types.d.ts +0 -119
- package/build/cjs/src/ecom-v1-orders-settings.types.js +0 -10
- package/build/cjs/src/ecom-v1-orders-settings.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-orders-settings.universal.d.ts +0 -170
- package/build/cjs/src/ecom-v1-orders-settings.universal.js +0 -189
- package/build/cjs/src/ecom-v1-orders-settings.universal.js.map +0 -1
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.context.d.ts +0 -5
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.context.js +0 -38
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.context.js.map +0 -1
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.http.d.ts +0 -16
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.http.js +0 -156
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.http.js.map +0 -1
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.meta.d.ts +0 -21
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.meta.js +0 -85
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.meta.js.map +0 -1
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.public.d.ts +0 -9
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.public.js +0 -24
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.public.js.map +0 -1
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.types.d.ts +0 -64
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.types.js +0 -3
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.types.js.map +0 -1
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.universal.d.ts +0 -123
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.universal.js +0 -234
- package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.universal.js.map +0 -1
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.http.d.ts +0 -12
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.http.js +0 -90
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.http.js.map +0 -1
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.meta.d.ts +0 -13
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.meta.js +0 -47
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.meta.js.map +0 -1
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.public.d.ts +0 -8
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.public.js +0 -30
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.public.js.map +0 -1
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.types.d.ts +0 -1164
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.types.js +0 -176
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.types.js.map +0 -1
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.universal.d.ts +0 -1144
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.universal.js +0 -303
- package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.universal.js.map +0 -1
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.http.d.ts +0 -13
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.http.js +0 -65
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.http.js.map +0 -1
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.meta.d.ts +0 -13
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.meta.js +0 -47
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.meta.js.map +0 -1
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +0 -8
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js +0 -23
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js.map +0 -1
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.types.d.ts +0 -520
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.types.js +0 -84
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.types.js.map +0 -1
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.universal.d.ts +0 -535
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.universal.js +0 -199
- package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -19
- package/build/es/index.typings.js +0 -20
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/ecom-discounts-v1-discount-rule.context.d.ts +0 -7
- package/build/es/src/ecom-discounts-v1-discount-rule.context.js +0 -82
- package/build/es/src/ecom-discounts-v1-discount-rule.context.js.map +0 -1
- package/build/es/src/ecom-discounts-v1-discount-rule.http.d.ts +0 -48
- package/build/es/src/ecom-discounts-v1-discount-rule.http.js +0 -257
- package/build/es/src/ecom-discounts-v1-discount-rule.http.js.map +0 -1
- package/build/es/src/ecom-discounts-v1-discount-rule.meta.d.ts +0 -23
- package/build/es/src/ecom-discounts-v1-discount-rule.meta.js +0 -92
- package/build/es/src/ecom-discounts-v1-discount-rule.meta.js.map +0 -1
- package/build/es/src/ecom-discounts-v1-discount-rule.public.d.ts +0 -205
- package/build/es/src/ecom-discounts-v1-discount-rule.public.js +0 -30
- package/build/es/src/ecom-discounts-v1-discount-rule.public.js.map +0 -1
- package/build/es/src/ecom-discounts-v1-discount-rule.types.d.ts +0 -990
- package/build/es/src/ecom-discounts-v1-discount-rule.types.js +0 -67
- package/build/es/src/ecom-discounts-v1-discount-rule.types.js.map +0 -1
- package/build/es/src/ecom-discounts-v1-discount-rule.universal.d.ts +0 -1086
- package/build/es/src/ecom-discounts-v1-discount-rule.universal.js +0 -460
- package/build/es/src/ecom-discounts-v1-discount-rule.universal.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice.context.d.ts +0 -3
- package/build/es/src/ecom-orders-v1-invoice.context.js +0 -18
- package/build/es/src/ecom-orders-v1-invoice.context.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice.http.d.ts +0 -8
- package/build/es/src/ecom-orders-v1-invoice.http.js +0 -42
- package/build/es/src/ecom-orders-v1-invoice.http.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice.meta.d.ts +0 -13
- package/build/es/src/ecom-orders-v1-invoice.meta.js +0 -20
- package/build/es/src/ecom-orders-v1-invoice.meta.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice.public.d.ts +0 -6
- package/build/es/src/ecom-orders-v1-invoice.public.js +0 -8
- package/build/es/src/ecom-orders-v1-invoice.public.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice.types.d.ts +0 -172
- package/build/es/src/ecom-orders-v1-invoice.types.js +0 -2
- package/build/es/src/ecom-orders-v1-invoice.types.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice.universal.d.ts +0 -201
- package/build/es/src/ecom-orders-v1-invoice.universal.js +0 -90
- package/build/es/src/ecom-orders-v1-invoice.universal.js.map +0 -1
- package/build/es/src/ecom-recommendations-v1-recommendation.context.d.ts +0 -4
- package/build/es/src/ecom-recommendations-v1-recommendation.context.js +0 -34
- package/build/es/src/ecom-recommendations-v1-recommendation.context.js.map +0 -1
- package/build/es/src/ecom-recommendations-v1-recommendation.http.d.ts +0 -37
- package/build/es/src/ecom-recommendations-v1-recommendation.http.js +0 -86
- package/build/es/src/ecom-recommendations-v1-recommendation.http.js.map +0 -1
- package/build/es/src/ecom-recommendations-v1-recommendation.meta.d.ts +0 -14
- package/build/es/src/ecom-recommendations-v1-recommendation.meta.js +0 -38
- package/build/es/src/ecom-recommendations-v1-recommendation.meta.js.map +0 -1
- package/build/es/src/ecom-recommendations-v1-recommendation.public.d.ts +0 -9
- package/build/es/src/ecom-recommendations-v1-recommendation.public.js +0 -14
- package/build/es/src/ecom-recommendations-v1-recommendation.public.js.map +0 -1
- package/build/es/src/ecom-recommendations-v1-recommendation.types.d.ts +0 -136
- package/build/es/src/ecom-recommendations-v1-recommendation.types.js +0 -7
- package/build/es/src/ecom-recommendations-v1-recommendation.types.js.map +0 -1
- package/build/es/src/ecom-recommendations-v1-recommendation.universal.d.ts +0 -206
- package/build/es/src/ecom-recommendations-v1-recommendation.universal.js +0 -179
- package/build/es/src/ecom-recommendations-v1-recommendation.universal.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout.context.d.ts +0 -3
- package/build/es/src/ecom-v1-abandoned-checkout.context.js +0 -18
- package/build/es/src/ecom-v1-abandoned-checkout.context.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout.http.d.ts +0 -3
- package/build/es/src/ecom-v1-abandoned-checkout.http.js +0 -51
- package/build/es/src/ecom-v1-abandoned-checkout.http.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout.meta.d.ts +0 -15
- package/build/es/src/ecom-v1-abandoned-checkout.meta.js +0 -20
- package/build/es/src/ecom-v1-abandoned-checkout.meta.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout.public.d.ts +0 -39
- package/build/es/src/ecom-v1-abandoned-checkout.public.js +0 -10
- package/build/es/src/ecom-v1-abandoned-checkout.public.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout.types.d.ts +0 -562
- package/build/es/src/ecom-v1-abandoned-checkout.types.js +0 -53
- package/build/es/src/ecom-v1-abandoned-checkout.types.js.map +0 -1
- package/build/es/src/ecom-v1-abandoned-checkout.universal.d.ts +0 -609
- package/build/es/src/ecom-v1-abandoned-checkout.universal.js +0 -150
- package/build/es/src/ecom-v1-abandoned-checkout.universal.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-notification-request.context.d.ts +0 -9
- package/build/es/src/ecom-v1-back-in-stock-notification-request.context.js +0 -114
- package/build/es/src/ecom-v1-back-in-stock-notification-request.context.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-notification-request.http.d.ts +0 -54
- package/build/es/src/ecom-v1-back-in-stock-notification-request.http.js +0 -233
- package/build/es/src/ecom-v1-back-in-stock-notification-request.http.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-notification-request.meta.d.ts +0 -25
- package/build/es/src/ecom-v1-back-in-stock-notification-request.meta.js +0 -128
- package/build/es/src/ecom-v1-back-in-stock-notification-request.meta.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-notification-request.public.d.ts +0 -29
- package/build/es/src/ecom-v1-back-in-stock-notification-request.public.js +0 -40
- package/build/es/src/ecom-v1-back-in-stock-notification-request.public.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-notification-request.types.d.ts +0 -438
- package/build/es/src/ecom-v1-back-in-stock-notification-request.types.js +0 -15
- package/build/es/src/ecom-v1-back-in-stock-notification-request.types.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-notification-request.universal.d.ts +0 -648
- package/build/es/src/ecom-v1-back-in-stock-notification-request.universal.js +0 -513
- package/build/es/src/ecom-v1-back-in-stock-notification-request.universal.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-settings.context.d.ts +0 -5
- package/build/es/src/ecom-v1-back-in-stock-settings.context.js +0 -50
- package/build/es/src/ecom-v1-back-in-stock-settings.context.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-settings.http.d.ts +0 -18
- package/build/es/src/ecom-v1-back-in-stock-settings.http.js +0 -84
- package/build/es/src/ecom-v1-back-in-stock-settings.http.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-settings.meta.d.ts +0 -15
- package/build/es/src/ecom-v1-back-in-stock-settings.meta.js +0 -56
- package/build/es/src/ecom-v1-back-in-stock-settings.meta.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-settings.public.d.ts +0 -8
- package/build/es/src/ecom-v1-back-in-stock-settings.public.js +0 -18
- package/build/es/src/ecom-v1-back-in-stock-settings.public.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-settings.types.d.ts +0 -63
- package/build/es/src/ecom-v1-back-in-stock-settings.types.js +0 -2
- package/build/es/src/ecom-v1-back-in-stock-settings.types.js.map +0 -1
- package/build/es/src/ecom-v1-back-in-stock-settings.universal.d.ts +0 -94
- package/build/es/src/ecom-v1-back-in-stock-settings.universal.js +0 -181
- package/build/es/src/ecom-v1-back-in-stock-settings.universal.js.map +0 -1
- package/build/es/src/ecom-v1-cart-cart.context.d.ts +0 -12
- package/build/es/src/ecom-v1-cart-cart.context.js +0 -162
- package/build/es/src/ecom-v1-cart-cart.context.js.map +0 -1
- package/build/es/src/ecom-v1-cart-cart.http.d.ts +0 -116
- package/build/es/src/ecom-v1-cart-cart.http.js +0 -1097
- package/build/es/src/ecom-v1-cart-cart.http.js.map +0 -1
- package/build/es/src/ecom-v1-cart-cart.meta.d.ts +0 -40
- package/build/es/src/ecom-v1-cart-cart.meta.js +0 -182
- package/build/es/src/ecom-v1-cart-cart.meta.js.map +0 -1
- package/build/es/src/ecom-v1-cart-cart.public.d.ts +0 -315
- package/build/es/src/ecom-v1-cart-cart.public.js +0 -55
- package/build/es/src/ecom-v1-cart-cart.public.js.map +0 -1
- package/build/es/src/ecom-v1-cart-cart.types.d.ts +0 -3845
- package/build/es/src/ecom-v1-cart-cart.types.js +0 -184
- package/build/es/src/ecom-v1-cart-cart.types.js.map +0 -1
- package/build/es/src/ecom-v1-cart-cart.universal.d.ts +0 -3539
- package/build/es/src/ecom-v1-cart-cart.universal.js +0 -989
- package/build/es/src/ecom-v1-cart-cart.universal.js.map +0 -1
- package/build/es/src/ecom-v1-cart-current-cart.context.d.ts +0 -11
- package/build/es/src/ecom-v1-cart-current-cart.context.js +0 -146
- package/build/es/src/ecom-v1-cart-current-cart.context.js.map +0 -1
- package/build/es/src/ecom-v1-cart-current-cart.http.d.ts +0 -164
- package/build/es/src/ecom-v1-cart-current-cart.http.js +0 -1145
- package/build/es/src/ecom-v1-cart-current-cart.http.js.map +0 -1
- package/build/es/src/ecom-v1-cart-current-cart.meta.d.ts +0 -21
- package/build/es/src/ecom-v1-cart-current-cart.meta.js +0 -164
- package/build/es/src/ecom-v1-cart-current-cart.meta.js.map +0 -1
- package/build/es/src/ecom-v1-cart-current-cart.public.d.ts +0 -215
- package/build/es/src/ecom-v1-cart-current-cart.public.js +0 -50
- package/build/es/src/ecom-v1-cart-current-cart.public.js.map +0 -1
- package/build/es/src/ecom-v1-cart-current-cart.types.d.ts +0 -3845
- package/build/es/src/ecom-v1-cart-current-cart.types.js +0 -184
- package/build/es/src/ecom-v1-cart-current-cart.types.js.map +0 -1
- package/build/es/src/ecom-v1-cart-current-cart.universal.d.ts +0 -3403
- package/build/es/src/ecom-v1-cart-current-cart.universal.js +0 -881
- package/build/es/src/ecom-v1-cart-current-cart.universal.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.context.d.ts +0 -14
- package/build/es/src/ecom-v1-checkout-checkout.context.js +0 -194
- package/build/es/src/ecom-v1-checkout-checkout.context.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.http.d.ts +0 -113
- package/build/es/src/ecom-v1-checkout-checkout.http.js +0 -996
- package/build/es/src/ecom-v1-checkout-checkout.http.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.meta.d.ts +0 -46
- package/build/es/src/ecom-v1-checkout-checkout.meta.js +0 -218
- package/build/es/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.public.d.ts +0 -2057
- package/build/es/src/ecom-v1-checkout-checkout.public.js +0 -65
- package/build/es/src/ecom-v1-checkout-checkout.public.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.types.d.ts +0 -10784
- package/build/es/src/ecom-v1-checkout-checkout.types.js +0 -234
- package/build/es/src/ecom-v1-checkout-checkout.types.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-checkout.universal.d.ts +0 -8780
- package/build/es/src/ecom-v1-checkout-checkout.universal.js +0 -1328
- package/build/es/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings.context.d.ts +0 -4
- package/build/es/src/ecom-v1-checkout-settings.context.js +0 -34
- package/build/es/src/ecom-v1-checkout-settings.context.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings.http.d.ts +0 -15
- package/build/es/src/ecom-v1-checkout-settings.http.js +0 -80
- package/build/es/src/ecom-v1-checkout-settings.http.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings.meta.d.ts +0 -14
- package/build/es/src/ecom-v1-checkout-settings.meta.js +0 -38
- package/build/es/src/ecom-v1-checkout-settings.meta.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings.public.d.ts +0 -9
- package/build/es/src/ecom-v1-checkout-settings.public.js +0 -14
- package/build/es/src/ecom-v1-checkout-settings.public.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings.types.d.ts +0 -210
- package/build/es/src/ecom-v1-checkout-settings.types.js +0 -2
- package/build/es/src/ecom-v1-checkout-settings.types.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-settings.universal.d.ts +0 -259
- package/build/es/src/ecom-v1-checkout-settings.universal.js +0 -155
- package/build/es/src/ecom-v1-checkout-settings.universal.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-template.context.d.ts +0 -8
- package/build/es/src/ecom-v1-checkout-template.context.js +0 -98
- package/build/es/src/ecom-v1-checkout-template.context.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-template.http.d.ts +0 -56
- package/build/es/src/ecom-v1-checkout-template.http.js +0 -289
- package/build/es/src/ecom-v1-checkout-template.http.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-template.meta.d.ts +0 -26
- package/build/es/src/ecom-v1-checkout-template.meta.js +0 -110
- package/build/es/src/ecom-v1-checkout-template.meta.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-template.public.d.ts +0 -41
- package/build/es/src/ecom-v1-checkout-template.public.js +0 -35
- package/build/es/src/ecom-v1-checkout-template.public.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-template.types.d.ts +0 -2087
- package/build/es/src/ecom-v1-checkout-template.types.js +0 -195
- package/build/es/src/ecom-v1-checkout-template.types.js.map +0 -1
- package/build/es/src/ecom-v1-checkout-template.universal.d.ts +0 -1983
- package/build/es/src/ecom-v1-checkout-template.universal.js +0 -697
- package/build/es/src/ecom-v1-checkout-template.universal.js.map +0 -1
- package/build/es/src/ecom-v1-draft-order.http.d.ts +0 -15
- package/build/es/src/ecom-v1-draft-order.http.js +0 -188
- package/build/es/src/ecom-v1-draft-order.http.js.map +0 -1
- package/build/es/src/ecom-v1-draft-order.meta.d.ts +0 -19
- package/build/es/src/ecom-v1-draft-order.meta.js +0 -56
- package/build/es/src/ecom-v1-draft-order.meta.js.map +0 -1
- package/build/es/src/ecom-v1-draft-order.public.d.ts +0 -10
- package/build/es/src/ecom-v1-draft-order.public.js +0 -19
- package/build/es/src/ecom-v1-draft-order.public.js.map +0 -1
- package/build/es/src/ecom-v1-draft-order.types.d.ts +0 -3052
- package/build/es/src/ecom-v1-draft-order.types.js +0 -242
- package/build/es/src/ecom-v1-draft-order.types.js.map +0 -1
- package/build/es/src/ecom-v1-draft-order.universal.d.ts +0 -2879
- package/build/es/src/ecom-v1-draft-order.universal.js +0 -496
- package/build/es/src/ecom-v1-draft-order.universal.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments.context.d.ts +0 -8
- package/build/es/src/ecom-v1-fulfillments.context.js +0 -98
- package/build/es/src/ecom-v1-fulfillments.context.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments.http.d.ts +0 -47
- package/build/es/src/ecom-v1-fulfillments.http.js +0 -240
- package/build/es/src/ecom-v1-fulfillments.http.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments.meta.d.ts +0 -28
- package/build/es/src/ecom-v1-fulfillments.meta.js +0 -116
- package/build/es/src/ecom-v1-fulfillments.meta.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments.public.d.ts +0 -21
- package/build/es/src/ecom-v1-fulfillments.public.js +0 -35
- package/build/es/src/ecom-v1-fulfillments.public.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments.types.d.ts +0 -412
- package/build/es/src/ecom-v1-fulfillments.types.js +0 -23
- package/build/es/src/ecom-v1-fulfillments.types.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments.universal.d.ts +0 -606
- package/build/es/src/ecom-v1-fulfillments.universal.js +0 -460
- package/build/es/src/ecom-v1-fulfillments.universal.js.map +0 -1
- package/build/es/src/ecom-v1-order-transactions.context.d.ts +0 -7
- package/build/es/src/ecom-v1-order-transactions.context.js +0 -82
- package/build/es/src/ecom-v1-order-transactions.context.js.map +0 -1
- package/build/es/src/ecom-v1-order-transactions.http.d.ts +0 -38
- package/build/es/src/ecom-v1-order-transactions.http.js +0 -232
- package/build/es/src/ecom-v1-order-transactions.http.js.map +0 -1
- package/build/es/src/ecom-v1-order-transactions.meta.d.ts +0 -24
- package/build/es/src/ecom-v1-order-transactions.meta.js +0 -92
- package/build/es/src/ecom-v1-order-transactions.meta.js.map +0 -1
- package/build/es/src/ecom-v1-order-transactions.public.d.ts +0 -13
- package/build/es/src/ecom-v1-order-transactions.public.js +0 -30
- package/build/es/src/ecom-v1-order-transactions.public.js.map +0 -1
- package/build/es/src/ecom-v1-order-transactions.types.d.ts +0 -1621
- package/build/es/src/ecom-v1-order-transactions.types.js +0 -217
- package/build/es/src/ecom-v1-order-transactions.types.js.map +0 -1
- package/build/es/src/ecom-v1-order-transactions.universal.d.ts +0 -1696
- package/build/es/src/ecom-v1-order-transactions.universal.js +0 -593
- package/build/es/src/ecom-v1-order-transactions.universal.js.map +0 -1
- package/build/es/src/ecom-v1-order.context.d.ts +0 -7
- package/build/es/src/ecom-v1-order.context.js +0 -82
- package/build/es/src/ecom-v1-order.context.js.map +0 -1
- package/build/es/src/ecom-v1-order.http.d.ts +0 -66
- package/build/es/src/ecom-v1-order.http.js +0 -406
- package/build/es/src/ecom-v1-order.http.js.map +0 -1
- package/build/es/src/ecom-v1-order.meta.d.ts +0 -23
- package/build/es/src/ecom-v1-order.meta.js +0 -92
- package/build/es/src/ecom-v1-order.meta.js.map +0 -1
- package/build/es/src/ecom-v1-order.public.d.ts +0 -853
- package/build/es/src/ecom-v1-order.public.js +0 -30
- package/build/es/src/ecom-v1-order.public.js.map +0 -1
- package/build/es/src/ecom-v1-order.types.d.ts +0 -6678
- package/build/es/src/ecom-v1-order.types.js +0 -429
- package/build/es/src/ecom-v1-order.types.js.map +0 -1
- package/build/es/src/ecom-v1-order.universal.d.ts +0 -5481
- package/build/es/src/ecom-v1-order.universal.js +0 -970
- package/build/es/src/ecom-v1-order.universal.js.map +0 -1
- package/build/es/src/ecom-v1-orders-settings.context.d.ts +0 -4
- package/build/es/src/ecom-v1-orders-settings.context.js +0 -34
- package/build/es/src/ecom-v1-orders-settings.context.js.map +0 -1
- package/build/es/src/ecom-v1-orders-settings.http.d.ts +0 -15
- package/build/es/src/ecom-v1-orders-settings.http.js +0 -80
- package/build/es/src/ecom-v1-orders-settings.http.js.map +0 -1
- package/build/es/src/ecom-v1-orders-settings.meta.d.ts +0 -14
- package/build/es/src/ecom-v1-orders-settings.meta.js +0 -38
- package/build/es/src/ecom-v1-orders-settings.meta.js.map +0 -1
- package/build/es/src/ecom-v1-orders-settings.public.d.ts +0 -10
- package/build/es/src/ecom-v1-orders-settings.public.js +0 -15
- package/build/es/src/ecom-v1-orders-settings.public.js.map +0 -1
- package/build/es/src/ecom-v1-orders-settings.types.d.ts +0 -119
- package/build/es/src/ecom-v1-orders-settings.types.js +0 -7
- package/build/es/src/ecom-v1-orders-settings.types.js.map +0 -1
- package/build/es/src/ecom-v1-orders-settings.universal.d.ts +0 -170
- package/build/es/src/ecom-v1-orders-settings.universal.js +0 -161
- package/build/es/src/ecom-v1-orders-settings.universal.js.map +0 -1
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.context.d.ts +0 -5
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.context.js +0 -32
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.context.js.map +0 -1
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.http.d.ts +0 -16
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.http.js +0 -150
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.http.js.map +0 -1
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.meta.d.ts +0 -21
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.meta.js +0 -56
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.meta.js.map +0 -1
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.public.d.ts +0 -9
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.public.js +0 -18
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.public.js.map +0 -1
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.types.d.ts +0 -64
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.types.js +0 -2
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.types.js.map +0 -1
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.universal.d.ts +0 -123
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.universal.js +0 -205
- package/build/es/src/ecommerce-currency-converter-v1-currency-rate.universal.js.map +0 -1
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.http.d.ts +0 -12
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.http.js +0 -86
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.http.js.map +0 -1
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.meta.d.ts +0 -13
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.meta.js +0 -20
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.meta.js.map +0 -1
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.public.d.ts +0 -8
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.public.js +0 -9
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.public.js.map +0 -1
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.types.d.ts +0 -1164
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.types.js +0 -173
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.types.js.map +0 -1
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.universal.d.ts +0 -1144
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.universal.js +0 -276
- package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.universal.js.map +0 -1
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.http.d.ts +0 -13
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.http.js +0 -61
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.http.js.map +0 -1
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.meta.d.ts +0 -13
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.meta.js +0 -20
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.meta.js.map +0 -1
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +0 -8
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.js +0 -9
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.js.map +0 -1
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.types.d.ts +0 -520
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.types.js +0 -81
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.types.js.map +0 -1
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.universal.d.ts +0 -535
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.universal.js +0 -172
- package/build/es/src/interfaces-ecommerce-v1-validations-provider.universal.js.map +0 -1
|
@@ -1,2879 +0,0 @@
|
|
|
1
|
-
export declare const __debug: {
|
|
2
|
-
verboseLogging: {
|
|
3
|
-
on: () => boolean;
|
|
4
|
-
off: () => boolean;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
/** DraftOrder is the main entity of DraftOrders service. It represents a single edit order. */
|
|
8
|
-
export interface DraftOrder {
|
|
9
|
-
/** Order's edit ID */
|
|
10
|
-
_id?: string | null;
|
|
11
|
-
/** Order ID which this order's edit is related to */
|
|
12
|
-
orderId?: string | null;
|
|
13
|
-
/** Line items edit details */
|
|
14
|
-
lineItems?: ItemDetails[];
|
|
15
|
-
/** Shipping edit details */
|
|
16
|
-
shippingInfo?: ShippingDetails;
|
|
17
|
-
/** Buyer information. */
|
|
18
|
-
buyerInfo?: BuyerInfo;
|
|
19
|
-
/** Billing address and contact details. */
|
|
20
|
-
billingInfo?: AddressWithContact;
|
|
21
|
-
/** Additional fees edit details */
|
|
22
|
-
additionalFees?: AdditionalFeeDetails[];
|
|
23
|
-
/** Discounts edit details */
|
|
24
|
-
discounts?: DiscountDetails[];
|
|
25
|
-
/** Date and time the draft order was created. in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
|
|
26
|
-
_createdDate?: Date;
|
|
27
|
-
/** Date and time the edit order was last updated. in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
|
|
28
|
-
_updatedDate?: Date;
|
|
29
|
-
/** ID of the edit order's initiator. */
|
|
30
|
-
createdBy?: CreatedBy;
|
|
31
|
-
/** Draft order status. */
|
|
32
|
-
status?: EditingStatus;
|
|
33
|
-
/** Weight measurement unit - defaults to site's weight unit. */
|
|
34
|
-
weightUnit?: WeightUnit;
|
|
35
|
-
/** Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format. */
|
|
36
|
-
currency?: string | null;
|
|
37
|
-
/**
|
|
38
|
-
* --------------------------------------------------
|
|
39
|
-
* Order price summary.
|
|
40
|
-
*/
|
|
41
|
-
priceSummary?: PriceSummary;
|
|
42
|
-
/** Tax summary. */
|
|
43
|
-
taxSummary?: TaxSummary;
|
|
44
|
-
/** Order balance summary. */
|
|
45
|
-
balanceSummary?: BalanceSummary;
|
|
46
|
-
/** Side effects requested on commit. */
|
|
47
|
-
commitSettings?: DraftOrderCommitSettings;
|
|
48
|
-
/** Member ID (if order created by a member). */
|
|
49
|
-
memberId?: string | null;
|
|
50
|
-
/** Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order. */
|
|
51
|
-
purchaseFlowId?: string | null;
|
|
52
|
-
}
|
|
53
|
-
export interface ItemDetails extends ItemDetailsChangeTypeOneOf {
|
|
54
|
-
/** The line item was added. */
|
|
55
|
-
added?: boolean;
|
|
56
|
-
/** The line item was modified. */
|
|
57
|
-
changedDetails?: ItemChangedDetails;
|
|
58
|
-
/** The line item was added. */
|
|
59
|
-
removed?: boolean;
|
|
60
|
-
/** Updated line item */
|
|
61
|
-
lineItem?: OrderLineItem;
|
|
62
|
-
}
|
|
63
|
-
/** @oneof */
|
|
64
|
-
export interface ItemDetailsChangeTypeOneOf {
|
|
65
|
-
/** The line item was added. */
|
|
66
|
-
added?: boolean;
|
|
67
|
-
/** The line item was modified. */
|
|
68
|
-
changedDetails?: ItemChangedDetails;
|
|
69
|
-
/** The line item was added. */
|
|
70
|
-
removed?: boolean;
|
|
71
|
-
}
|
|
72
|
-
export interface Price {
|
|
73
|
-
/** Amount. */
|
|
74
|
-
amount?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Amount formatted with currency symbol.
|
|
77
|
-
* @readonly
|
|
78
|
-
*/
|
|
79
|
-
formattedAmount?: string;
|
|
80
|
-
}
|
|
81
|
-
export interface PriceDescription {
|
|
82
|
-
/** *Required.** Original price description in site's default language. */
|
|
83
|
-
original?: string;
|
|
84
|
-
/** Translated price description according to buyer language. Defaults to `original` when not provided. */
|
|
85
|
-
translated?: string | null;
|
|
86
|
-
}
|
|
87
|
-
export interface OrderLineItem {
|
|
88
|
-
/** Line item ID. */
|
|
89
|
-
_id?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Item name.
|
|
92
|
-
* + Stores - `product.name`
|
|
93
|
-
* + Bookings - `service.info.name`
|
|
94
|
-
* + Events - `ticket.name`
|
|
95
|
-
*/
|
|
96
|
-
productName?: ProductName;
|
|
97
|
-
/**
|
|
98
|
-
* References to the line item's origin catalog.
|
|
99
|
-
* This field is empty in the case of a custom line item.
|
|
100
|
-
*/
|
|
101
|
-
catalogReference?: CatalogReference;
|
|
102
|
-
/** Line item quantity. */
|
|
103
|
-
quantity?: number;
|
|
104
|
-
/**
|
|
105
|
-
* Total discount for this line item's entire quantity.
|
|
106
|
-
* @readonly
|
|
107
|
-
*/
|
|
108
|
-
totalDiscount?: Price;
|
|
109
|
-
/** Line item description lines. Used for display purposes for the cart, checkout and order. */
|
|
110
|
-
descriptionLines?: DescriptionLine[];
|
|
111
|
-
/** Line item image. */
|
|
112
|
-
image?: string;
|
|
113
|
-
/** Physical properties of the item. When relevant, contains information such as SKU and item weight. */
|
|
114
|
-
physicalProperties?: PhysicalProperties;
|
|
115
|
-
/** Item type. Either a preset type or custom. */
|
|
116
|
-
itemType?: ItemType;
|
|
117
|
-
/**
|
|
118
|
-
* Fulfiller ID. Field is empty when the line item is self-fulfilled.
|
|
119
|
-
* To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order).
|
|
120
|
-
*/
|
|
121
|
-
fulfillerId?: string | null;
|
|
122
|
-
/**
|
|
123
|
-
* quantity of inventory requested to be returned. Whether to restock or ignore the request is up the vertical.
|
|
124
|
-
* @readonly
|
|
125
|
-
*/
|
|
126
|
-
restockQuantity?: number | null;
|
|
127
|
-
/** Line item price after line item discounts for display purposes. */
|
|
128
|
-
price?: Price;
|
|
129
|
-
/**
|
|
130
|
-
* Line item price before line item discounts for display purposes. Defaults to `price` when not provided.
|
|
131
|
-
* @readonly
|
|
132
|
-
*/
|
|
133
|
-
priceBeforeDiscounts?: Price;
|
|
134
|
-
/**
|
|
135
|
-
* Deprecated - use `total_price_after_tax` minus `tax_details.total_tax` instead.
|
|
136
|
-
* @readonly
|
|
137
|
-
*/
|
|
138
|
-
totalPriceBeforeTax?: Price;
|
|
139
|
-
/**
|
|
140
|
-
* Total price after all discounts and tax.
|
|
141
|
-
* @readonly
|
|
142
|
-
*/
|
|
143
|
-
totalPriceAfterTax?: Price;
|
|
144
|
-
/**
|
|
145
|
-
* Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
|
|
146
|
-
* + `FULL_PAYMENT_ONLINE` - The entire payment for this item happens as part of the checkout.
|
|
147
|
-
* + `FULL_PAYMENT_OFFLINE` - The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
|
|
148
|
-
* + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
|
|
149
|
-
* + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Eligible for catalog items with type `DEPOSIT_ONLINE` only.
|
|
150
|
-
*/
|
|
151
|
-
paymentOption?: PaymentOptionType;
|
|
152
|
-
/** Tax details for this line item. */
|
|
153
|
-
taxDetails?: ItemTaxFullDetails;
|
|
154
|
-
/** Subscription info. */
|
|
155
|
-
subscriptionInfo?: SubscriptionInfo;
|
|
156
|
-
/** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
|
|
157
|
-
priceDescription?: PriceDescription;
|
|
158
|
-
/**
|
|
159
|
-
* Item's price amount to be charged during checkout, relevant for items with payment option DEPOSIT_ONLINE
|
|
160
|
-
* @readonly
|
|
161
|
-
*/
|
|
162
|
-
depositAmount?: Price;
|
|
163
|
-
}
|
|
164
|
-
export interface ProductName {
|
|
165
|
-
/**
|
|
166
|
-
* __Required.__ Original item name in site's default language.
|
|
167
|
-
* Min: 1 character
|
|
168
|
-
* Max: 200 characters
|
|
169
|
-
*/
|
|
170
|
-
original?: string;
|
|
171
|
-
/**
|
|
172
|
-
* Optional. Translated item name according to buyer language. Defaults to `original` when not provided.
|
|
173
|
-
* Min: 1 character
|
|
174
|
-
* Max: 400 characters
|
|
175
|
-
*/
|
|
176
|
-
translated?: string | null;
|
|
177
|
-
}
|
|
178
|
-
/** Used for grouping line items and is sent on add to cart */
|
|
179
|
-
export interface CatalogReference {
|
|
180
|
-
/** ID of the item within its Wix or 3rd-party catalog. For example, `productId` for Wix Stores or `bookingId` for Wix Bookings. */
|
|
181
|
-
catalogItemId?: string;
|
|
182
|
-
/**
|
|
183
|
-
* ID of the app providing the catalog. For items from Wix apps, the following values always apply:
|
|
184
|
-
* + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
|
|
185
|
-
* + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
|
|
186
|
-
*/
|
|
187
|
-
appId?: string;
|
|
188
|
-
/**
|
|
189
|
-
* Additional info in key:value pairs. For example, to specify Wix Stores product options or variants:
|
|
190
|
-
* + `{"options": {"options": {"Size": "M", "Color": "Red"}}}`
|
|
191
|
-
* + `{"options": {"variantId": "<VARIANT_ID>"}}`
|
|
192
|
-
*/
|
|
193
|
-
options?: Record<string, any> | null;
|
|
194
|
-
}
|
|
195
|
-
export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
|
|
196
|
-
/** Description line plain text value. */
|
|
197
|
-
plainText?: PlainTextValue;
|
|
198
|
-
/** Description line color value. */
|
|
199
|
-
colorInfo?: Color;
|
|
200
|
-
/** Description line name. */
|
|
201
|
-
name?: DescriptionLineName;
|
|
202
|
-
}
|
|
203
|
-
/** @oneof */
|
|
204
|
-
export interface DescriptionLineValueOneOf {
|
|
205
|
-
/** Description line plain text value. */
|
|
206
|
-
plainText?: PlainTextValue;
|
|
207
|
-
/** Description line color value. */
|
|
208
|
-
colorInfo?: Color;
|
|
209
|
-
}
|
|
210
|
-
/** @oneof */
|
|
211
|
-
export interface DescriptionLineDescriptionLineValueOneOf {
|
|
212
|
-
}
|
|
213
|
-
export interface DescriptionLineName {
|
|
214
|
-
/** Description line name in site's default language. */
|
|
215
|
-
original?: string;
|
|
216
|
-
/** Translated description line item according to buyer language. Defaults to `original` when not provided. */
|
|
217
|
-
translated?: string | null;
|
|
218
|
-
}
|
|
219
|
-
export interface PlainTextValue {
|
|
220
|
-
/** Description line plain text value in site's default language. */
|
|
221
|
-
original?: string;
|
|
222
|
-
/** Translated description line plain text value according to buyer language. Defaults to `original` when not provided. */
|
|
223
|
-
translated?: string | null;
|
|
224
|
-
}
|
|
225
|
-
export interface Color {
|
|
226
|
-
/** Description line color name in site's default language. */
|
|
227
|
-
original?: string;
|
|
228
|
-
/** Translated description line color name according to buyer language. Defaults to `original` when not provided. */
|
|
229
|
-
translated?: string | null;
|
|
230
|
-
/** HEX or RGB color code for display. */
|
|
231
|
-
code?: string | null;
|
|
232
|
-
}
|
|
233
|
-
export declare enum DescriptionLineType {
|
|
234
|
-
UNRECOGNISED = "UNRECOGNISED",
|
|
235
|
-
PLAIN_TEXT = "PLAIN_TEXT",
|
|
236
|
-
COLOR = "COLOR"
|
|
237
|
-
}
|
|
238
|
-
export interface PhysicalProperties {
|
|
239
|
-
/** Line item weight. Measurement unit (KG or LB) is taken from `order.weightUnit`. */
|
|
240
|
-
weight?: number | null;
|
|
241
|
-
/** Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku). */
|
|
242
|
-
sku?: string | null;
|
|
243
|
-
/** Whether this line item is shippable. */
|
|
244
|
-
shippable?: boolean;
|
|
245
|
-
}
|
|
246
|
-
export interface ItemType extends ItemTypeItemTypeDataOneOf {
|
|
247
|
-
/** Preset item type. */
|
|
248
|
-
preset?: ItemTypeItemType;
|
|
249
|
-
/** Custom item type. */
|
|
250
|
-
custom?: string;
|
|
251
|
-
}
|
|
252
|
-
/** @oneof */
|
|
253
|
-
export interface ItemTypeItemTypeDataOneOf {
|
|
254
|
-
/** Preset item type. */
|
|
255
|
-
preset?: ItemTypeItemType;
|
|
256
|
-
/** Custom item type. */
|
|
257
|
-
custom?: string;
|
|
258
|
-
}
|
|
259
|
-
export declare enum ItemTypeItemType {
|
|
260
|
-
UNRECOGNISED = "UNRECOGNISED",
|
|
261
|
-
PHYSICAL = "PHYSICAL",
|
|
262
|
-
DIGITAL = "DIGITAL",
|
|
263
|
-
GIFT_CARD = "GIFT_CARD",
|
|
264
|
-
SERVICE = "SERVICE"
|
|
265
|
-
}
|
|
266
|
-
/** Type of selected payment option for catalog item */
|
|
267
|
-
export declare enum PaymentOptionType {
|
|
268
|
-
/** The entire payment for given item will happen as part of the checkout. */
|
|
269
|
-
FULL_PAYMENT_ONLINE = "FULL_PAYMENT_ONLINE",
|
|
270
|
-
/** The entire payment for given item will happen after the checkout. */
|
|
271
|
-
FULL_PAYMENT_OFFLINE = "FULL_PAYMENT_OFFLINE",
|
|
272
|
-
/** Given item cannot be paid via monetary payment options, only via membership. When this option is used, price will always be 0. */
|
|
273
|
-
MEMBERSHIP = "MEMBERSHIP",
|
|
274
|
-
/**
|
|
275
|
-
* Partial payment for the given item to be paid upfront during the checkout.
|
|
276
|
-
* Amount to be paid is defined by `deposit_amount` field on per-item basis.
|
|
277
|
-
*/
|
|
278
|
-
DEPOSIT_ONLINE = "DEPOSIT_ONLINE",
|
|
279
|
-
/**
|
|
280
|
-
* Payment for this item can only be done using a membership and must be manually redeemed in the dashboard by the site owner.
|
|
281
|
-
* Note: when this option is used, price will be 0.
|
|
282
|
-
*/
|
|
283
|
-
MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
|
|
284
|
-
}
|
|
285
|
-
export interface ItemTaxFullDetails {
|
|
286
|
-
/** Taxable amount of this line item. */
|
|
287
|
-
taxableAmount?: Price;
|
|
288
|
-
/** Tax rate percentage, as a decimal numeral between 0 and 1. For example, `"0.13"`. */
|
|
289
|
-
taxRate?: string;
|
|
290
|
-
/** The calculated tax, based on the `taxableAmount` and `taxRate`. */
|
|
291
|
-
totalTax?: Price;
|
|
292
|
-
}
|
|
293
|
-
export interface DigitalFile {
|
|
294
|
-
/** ID of the secure file in media. */
|
|
295
|
-
fileId?: string;
|
|
296
|
-
/** Link will exist after the digital links have been generated on the order. */
|
|
297
|
-
link?: string | null;
|
|
298
|
-
/**
|
|
299
|
-
* Link expiration time and date.
|
|
300
|
-
* @readonly
|
|
301
|
-
*/
|
|
302
|
-
expirationDate?: Date;
|
|
303
|
-
}
|
|
304
|
-
export interface SubscriptionInfo {
|
|
305
|
-
/** Subscription ID. */
|
|
306
|
-
_id?: string | null;
|
|
307
|
-
/** Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`. */
|
|
308
|
-
cycleNumber?: number;
|
|
309
|
-
/** Subscription option title. For example, `"Monthly coffee Subscription"`. */
|
|
310
|
-
subscriptionOptionTitle?: string;
|
|
311
|
-
/** Subscription option description. For example, `"1kg of selected coffee, once a month"`. */
|
|
312
|
-
subscriptionOptionDescription?: string | null;
|
|
313
|
-
/** Subscription detailed information. */
|
|
314
|
-
subscriptionSettings?: SubscriptionSettings;
|
|
315
|
-
}
|
|
316
|
-
export interface SubscriptionSettings {
|
|
317
|
-
/** Frequency of recurring payment. */
|
|
318
|
-
frequency?: SubscriptionFrequency;
|
|
319
|
-
/** Whether subscription is renewed automatically at the end of each period. */
|
|
320
|
-
autoRenewal?: boolean;
|
|
321
|
-
/** Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`. */
|
|
322
|
-
billingCycles?: number | null;
|
|
323
|
-
}
|
|
324
|
-
/** Frequency unit of recurring payment */
|
|
325
|
-
export declare enum SubscriptionFrequency {
|
|
326
|
-
UNDEFINED = "UNDEFINED",
|
|
327
|
-
DAY = "DAY",
|
|
328
|
-
WEEK = "WEEK",
|
|
329
|
-
MONTH = "MONTH",
|
|
330
|
-
YEAR = "YEAR"
|
|
331
|
-
}
|
|
332
|
-
export interface LocationAndQuantity {
|
|
333
|
-
/** Location id in the associated owner app. */
|
|
334
|
-
_id?: string;
|
|
335
|
-
/** Location owner app, if not provided then the site business info locations will be used. */
|
|
336
|
-
appId?: string | null;
|
|
337
|
-
/** Quantity for specific location. */
|
|
338
|
-
quantity?: number;
|
|
339
|
-
}
|
|
340
|
-
export interface ItemChangedDetails {
|
|
341
|
-
/** The quantity before the change. */
|
|
342
|
-
quantityBeforeChange?: number | null;
|
|
343
|
-
/** The price before the change. */
|
|
344
|
-
priceBeforeChange?: Price;
|
|
345
|
-
/** The price description before the change */
|
|
346
|
-
priceDescriptionBeforeChange?: PriceDescription;
|
|
347
|
-
}
|
|
348
|
-
export interface ShippingDetails extends ShippingDetailsChangeTypeOneOf {
|
|
349
|
-
/** Was the shipping information added. */
|
|
350
|
-
added?: boolean;
|
|
351
|
-
/** Shipping details before the edit */
|
|
352
|
-
changedDetails?: ShippingChangedDetails;
|
|
353
|
-
/** Was the shipping information removed. */
|
|
354
|
-
removed?: boolean;
|
|
355
|
-
/** Selected Shipping details. */
|
|
356
|
-
shippingInfo?: ShippingInformation;
|
|
357
|
-
}
|
|
358
|
-
/** @oneof */
|
|
359
|
-
export interface ShippingDetailsChangeTypeOneOf {
|
|
360
|
-
/** Was the shipping information added. */
|
|
361
|
-
added?: boolean;
|
|
362
|
-
/** Shipping details before the edit */
|
|
363
|
-
changedDetails?: ShippingChangedDetails;
|
|
364
|
-
/** Was the shipping information removed. */
|
|
365
|
-
removed?: boolean;
|
|
366
|
-
}
|
|
367
|
-
export interface ShippingInformation {
|
|
368
|
-
/** App Def Id of external provider which was a source of shipping info */
|
|
369
|
-
carrierId?: string | null;
|
|
370
|
-
/** Unique code (or ID) of selected shipping option. For example, `"usps_std_overnight"``. */
|
|
371
|
-
code?: string | null;
|
|
372
|
-
/**
|
|
373
|
-
* Shipping option title.
|
|
374
|
-
* For example, `"USPS Standard Overnight Delivery"`, `"Standard"` or `"First-Class Package International"`.
|
|
375
|
-
*/
|
|
376
|
-
title?: string;
|
|
377
|
-
/** Shipping logistics. */
|
|
378
|
-
logistics?: V1DeliveryLogistics;
|
|
379
|
-
/** Shipping costs. */
|
|
380
|
-
cost?: V1ShippingPrice;
|
|
381
|
-
/** Shipping region. */
|
|
382
|
-
region?: ShippingRegion;
|
|
383
|
-
}
|
|
384
|
-
export interface V1DeliveryLogistics extends V1DeliveryLogisticsAddressOneOf {
|
|
385
|
-
/** Shipping address and contact details. */
|
|
386
|
-
shippingDestination?: AddressWithContact;
|
|
387
|
-
/** Pickup details. */
|
|
388
|
-
pickupDetails?: V1PickupDetails;
|
|
389
|
-
/** Expected delivery time in free text. For example, `"3-5 business days"`. */
|
|
390
|
-
deliveryTime?: string | null;
|
|
391
|
-
/** Instructions for carrier. For example, `"Please knock on the door. If unanswered, please call contact number. Thanks."`. */
|
|
392
|
-
instructions?: string | null;
|
|
393
|
-
/** Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
|
|
394
|
-
deliverByDate?: Date;
|
|
395
|
-
/** Expected delivery time. */
|
|
396
|
-
deliveryTimeSlot?: V1DeliveryTimeSlot;
|
|
397
|
-
}
|
|
398
|
-
/** @oneof */
|
|
399
|
-
export interface V1DeliveryLogisticsAddressOneOf {
|
|
400
|
-
/** Shipping address and contact details. */
|
|
401
|
-
shippingDestination?: AddressWithContact;
|
|
402
|
-
/** Pickup details. */
|
|
403
|
-
pickupDetails?: V1PickupDetails;
|
|
404
|
-
}
|
|
405
|
-
/** Billing Info and shipping details */
|
|
406
|
-
export interface AddressWithContact {
|
|
407
|
-
/** Address. */
|
|
408
|
-
address?: Address;
|
|
409
|
-
/** Contact details. */
|
|
410
|
-
contactDetails?: FullAddressContactDetails;
|
|
411
|
-
}
|
|
412
|
-
/** Physical address */
|
|
413
|
-
export interface Address {
|
|
414
|
-
/** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */
|
|
415
|
-
country?: string | null;
|
|
416
|
-
/** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */
|
|
417
|
-
subdivision?: string | null;
|
|
418
|
-
/** City name. */
|
|
419
|
-
city?: string | null;
|
|
420
|
-
/** Postal or zip code. */
|
|
421
|
-
postalCode?: string | null;
|
|
422
|
-
/** Street address. */
|
|
423
|
-
streetAddress?: StreetAddress;
|
|
424
|
-
/** Main address line (usually street name and number). */
|
|
425
|
-
addressLine1?: string | null;
|
|
426
|
-
/** Free text providing more detailed address info. Usually contains apt, suite, floor. */
|
|
427
|
-
addressLine2?: string | null;
|
|
428
|
-
}
|
|
429
|
-
export interface StreetAddress {
|
|
430
|
-
/** Street number. */
|
|
431
|
-
number?: string;
|
|
432
|
-
/** Street name. */
|
|
433
|
-
name?: string;
|
|
434
|
-
}
|
|
435
|
-
export interface AddressLocation {
|
|
436
|
-
/** Address latitude. */
|
|
437
|
-
latitude?: number | null;
|
|
438
|
-
/** Address longitude. */
|
|
439
|
-
longitude?: number | null;
|
|
440
|
-
}
|
|
441
|
-
/** Full contact details for an address */
|
|
442
|
-
export interface FullAddressContactDetails {
|
|
443
|
-
/** First name. */
|
|
444
|
-
firstName?: string | null;
|
|
445
|
-
/** Last name. */
|
|
446
|
-
lastName?: string | null;
|
|
447
|
-
/** Phone number. */
|
|
448
|
-
phone?: string | null;
|
|
449
|
-
/** Company name. */
|
|
450
|
-
company?: string | null;
|
|
451
|
-
/** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
|
|
452
|
-
vatId?: VatId;
|
|
453
|
-
}
|
|
454
|
-
export interface VatId {
|
|
455
|
-
/** Customer's tax ID. */
|
|
456
|
-
_id?: string;
|
|
457
|
-
/**
|
|
458
|
-
* Tax type.
|
|
459
|
-
*
|
|
460
|
-
* Supported values:
|
|
461
|
-
* + `CPF`: for individual tax payers
|
|
462
|
-
* + `CNPJ`: for corporations
|
|
463
|
-
*/
|
|
464
|
-
type?: VatType;
|
|
465
|
-
}
|
|
466
|
-
/** tax info types */
|
|
467
|
-
export declare enum VatType {
|
|
468
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
469
|
-
/** CPF - for individual tax payers. */
|
|
470
|
-
CPF = "CPF",
|
|
471
|
-
/** CNPJ - for corporations */
|
|
472
|
-
CNPJ = "CNPJ"
|
|
473
|
-
}
|
|
474
|
-
export interface V1PickupDetails {
|
|
475
|
-
/** Pickup address. */
|
|
476
|
-
address?: PickupAddress;
|
|
477
|
-
/** Pickup method */
|
|
478
|
-
pickupMethod?: PickupDetailsPickupMethod;
|
|
479
|
-
}
|
|
480
|
-
/** Physical address */
|
|
481
|
-
export interface PickupAddress {
|
|
482
|
-
/** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */
|
|
483
|
-
country?: string | null;
|
|
484
|
-
/** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */
|
|
485
|
-
subdivision?: string | null;
|
|
486
|
-
/** City name. */
|
|
487
|
-
city?: string | null;
|
|
488
|
-
/** Postal or zip code. */
|
|
489
|
-
postalCode?: string | null;
|
|
490
|
-
/** Street address object, with number, name, and apartment number in separate fields. */
|
|
491
|
-
streetAddress?: StreetAddress;
|
|
492
|
-
/** Main address line (usually street name and number). */
|
|
493
|
-
addressLine1?: string | null;
|
|
494
|
-
/** Free text providing more detailed address info. Usually contains apt, suite, floor. */
|
|
495
|
-
addressLine2?: string | null;
|
|
496
|
-
}
|
|
497
|
-
export declare enum PickupDetailsPickupMethod {
|
|
498
|
-
UNKNOWN_METHOD = "UNKNOWN_METHOD",
|
|
499
|
-
STORE_PICKUP = "STORE_PICKUP",
|
|
500
|
-
PICKUP_POINT = "PICKUP_POINT"
|
|
501
|
-
}
|
|
502
|
-
export interface V1DeliveryTimeSlot {
|
|
503
|
-
/** Delivery slot starting time. */
|
|
504
|
-
from?: Date;
|
|
505
|
-
/** Delivery slot ending time. */
|
|
506
|
-
to?: Date;
|
|
507
|
-
}
|
|
508
|
-
export interface V1ShippingPrice {
|
|
509
|
-
/** Shipping price for display purposes. */
|
|
510
|
-
price?: Price;
|
|
511
|
-
/**
|
|
512
|
-
* Deprecated - use `total_price_after_tax` minus `tax_details.total_tax` instead.
|
|
513
|
-
* @readonly
|
|
514
|
-
*/
|
|
515
|
-
totalPriceBeforeTax?: Price;
|
|
516
|
-
/**
|
|
517
|
-
* Shipping price after all discounts (if any exist), and after tax.
|
|
518
|
-
* @readonly
|
|
519
|
-
*/
|
|
520
|
-
totalPriceAfterTax?: Price;
|
|
521
|
-
/** Tax details. */
|
|
522
|
-
taxDetails?: ItemTaxFullDetails;
|
|
523
|
-
/**
|
|
524
|
-
* Shipping discount before tax.
|
|
525
|
-
* @readonly
|
|
526
|
-
*/
|
|
527
|
-
discount?: Price;
|
|
528
|
-
}
|
|
529
|
-
export interface ShippingRegion {
|
|
530
|
-
/** Name of shipping region. For example, `"Metropolitan London"`, or `"Outer Melbourne suburbs"`. */
|
|
531
|
-
name?: string | null;
|
|
532
|
-
}
|
|
533
|
-
export interface ShippingChangedDetails {
|
|
534
|
-
/** The shipping details before the change. */
|
|
535
|
-
shippingInfoBeforeChange?: ShippingInformation;
|
|
536
|
-
}
|
|
537
|
-
/** Buyer Info */
|
|
538
|
-
export interface BuyerInfo extends BuyerInfoIdOneOf {
|
|
539
|
-
/** Visitor ID (if site visitor is not a member). */
|
|
540
|
-
visitorId?: string;
|
|
541
|
-
/** Member ID (if site visitor is a site member). */
|
|
542
|
-
memberId?: string;
|
|
543
|
-
/** Contact ID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction). */
|
|
544
|
-
contactId?: string | null;
|
|
545
|
-
/** Buyer email address. */
|
|
546
|
-
email?: string | null;
|
|
547
|
-
}
|
|
548
|
-
/** @oneof */
|
|
549
|
-
export interface BuyerInfoIdOneOf {
|
|
550
|
-
/** Visitor ID (if site visitor is not a member). */
|
|
551
|
-
visitorId?: string;
|
|
552
|
-
/** Member ID (if site visitor is a site member). */
|
|
553
|
-
memberId?: string;
|
|
554
|
-
}
|
|
555
|
-
export interface AdditionalFeeDetails {
|
|
556
|
-
/** An additional fee which can be applied to the order. */
|
|
557
|
-
additionalFee?: AdditionalFee;
|
|
558
|
-
/** Tax details for the additional fee */
|
|
559
|
-
taxDetails?: TaxDetails;
|
|
560
|
-
/** What is the source of this fee. */
|
|
561
|
-
source?: SourceType;
|
|
562
|
-
/** Was the fee applied to the order. */
|
|
563
|
-
applied?: boolean;
|
|
564
|
-
}
|
|
565
|
-
export interface AdditionalFee {
|
|
566
|
-
/** Additional fee's unique code for future processing. */
|
|
567
|
-
code?: string | null;
|
|
568
|
-
/** Name of additional fee. */
|
|
569
|
-
name?: string;
|
|
570
|
-
/** Additional fee's price. */
|
|
571
|
-
price?: Price;
|
|
572
|
-
/** Tax details. */
|
|
573
|
-
taxDetails?: ItemTaxFullDetails;
|
|
574
|
-
/** SPI implementer's `appId`. */
|
|
575
|
-
providerAppId?: string | null;
|
|
576
|
-
/** Additional fee's price before tax. */
|
|
577
|
-
priceBeforeTax?: Price;
|
|
578
|
-
/** Additional fee's id. */
|
|
579
|
-
_id?: string;
|
|
580
|
-
/**
|
|
581
|
-
* Optional - Line items associated with this additional fee.
|
|
582
|
-
* If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
|
|
583
|
-
*/
|
|
584
|
-
lineItemIds?: string[];
|
|
585
|
-
}
|
|
586
|
-
export interface TaxDetails {
|
|
587
|
-
/** Indication if additional fee is taxable or not */
|
|
588
|
-
taxable?: boolean;
|
|
589
|
-
/** Optional tax group ID to use when calculating tax for this additional fee */
|
|
590
|
-
taxGroupId?: string | null;
|
|
591
|
-
}
|
|
592
|
-
export declare enum SourceType {
|
|
593
|
-
/** Part of the original order */
|
|
594
|
-
ORIGINAL_ORDER = "ORIGINAL_ORDER",
|
|
595
|
-
/** Added by estimate */
|
|
596
|
-
AUTOMATIC = "AUTOMATIC",
|
|
597
|
-
/** Added manually to current draft order */
|
|
598
|
-
CUSTOM = "CUSTOM"
|
|
599
|
-
}
|
|
600
|
-
export interface DiscountDetails {
|
|
601
|
-
/** A discount which can be applied to the order. */
|
|
602
|
-
discount?: AppliedDiscount;
|
|
603
|
-
/** What is the source of this discount. */
|
|
604
|
-
source?: SourceType;
|
|
605
|
-
/** Was the discount applied to the order. */
|
|
606
|
-
applied?: boolean;
|
|
607
|
-
}
|
|
608
|
-
export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
609
|
-
/** Applied coupon info. */
|
|
610
|
-
coupon?: Coupon;
|
|
611
|
-
/** Merchant discount. */
|
|
612
|
-
merchantDiscount?: MerchantDiscount;
|
|
613
|
-
/** Automatic Discount */
|
|
614
|
-
discountRule?: DiscountRule;
|
|
615
|
-
/**
|
|
616
|
-
* Discount type.
|
|
617
|
-
* * `"GLOBAL"` - discount applies to entire order.
|
|
618
|
-
* * `"SPECIFIC-ITEMS"` - discount applies to specific items.
|
|
619
|
-
* * `"SHIPPING"` - discount applies to shipping. For example, free shipping.
|
|
620
|
-
*/
|
|
621
|
-
discountType?: AppliedDiscountDiscountType;
|
|
622
|
-
/** IDs of line items discount applies to. */
|
|
623
|
-
lineItemIds?: string[];
|
|
624
|
-
/** Discount id. */
|
|
625
|
-
_id?: string | null;
|
|
626
|
-
}
|
|
627
|
-
/** @oneof */
|
|
628
|
-
export interface AppliedDiscountDiscountSourceOneOf {
|
|
629
|
-
/** Applied coupon info. */
|
|
630
|
-
coupon?: Coupon;
|
|
631
|
-
/** Merchant discount. */
|
|
632
|
-
merchantDiscount?: MerchantDiscount;
|
|
633
|
-
/** Automatic Discount */
|
|
634
|
-
discountRule?: DiscountRule;
|
|
635
|
-
}
|
|
636
|
-
export declare enum AppliedDiscountDiscountType {
|
|
637
|
-
GLOBAL = "GLOBAL",
|
|
638
|
-
SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
|
|
639
|
-
SHIPPING = "SHIPPING"
|
|
640
|
-
}
|
|
641
|
-
/** Coupon */
|
|
642
|
-
export interface Coupon {
|
|
643
|
-
/** Coupon ID. */
|
|
644
|
-
_id?: string;
|
|
645
|
-
/** Coupon code. */
|
|
646
|
-
code?: string;
|
|
647
|
-
/** Coupon name. */
|
|
648
|
-
name?: string;
|
|
649
|
-
/** Coupon value. */
|
|
650
|
-
amount?: Price;
|
|
651
|
-
}
|
|
652
|
-
export interface MerchantDiscount extends MerchantDiscountMerchantDiscountReasonOneOf {
|
|
653
|
-
/**
|
|
654
|
-
* Pre-defined discount reason (optional).
|
|
655
|
-
* * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
|
|
656
|
-
*/
|
|
657
|
-
discountReason?: DiscountReason;
|
|
658
|
-
/** Discount description as free text (optional). */
|
|
659
|
-
description?: string | null;
|
|
660
|
-
/** Discount amount. */
|
|
661
|
-
amount?: Price;
|
|
662
|
-
}
|
|
663
|
-
/** @oneof */
|
|
664
|
-
export interface MerchantDiscountMerchantDiscountReasonOneOf {
|
|
665
|
-
/**
|
|
666
|
-
* Pre-defined discount reason (optional).
|
|
667
|
-
* * `"ITEMS_EXCHANGE"` - exchange balance acquired as a result of items exchange.
|
|
668
|
-
*/
|
|
669
|
-
discountReason?: DiscountReason;
|
|
670
|
-
/** Discount description as free text (optional). */
|
|
671
|
-
description?: string | null;
|
|
672
|
-
}
|
|
673
|
-
export declare enum DiscountReason {
|
|
674
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
675
|
-
EXCHANGED_ITEMS = "EXCHANGED_ITEMS"
|
|
676
|
-
}
|
|
677
|
-
export interface DiscountRule {
|
|
678
|
-
/** Discount rule ID */
|
|
679
|
-
_id?: string;
|
|
680
|
-
/** Discount rule name */
|
|
681
|
-
name?: DiscountRuleName;
|
|
682
|
-
/** Discount value. */
|
|
683
|
-
amount?: Price;
|
|
684
|
-
}
|
|
685
|
-
export interface DiscountRuleName {
|
|
686
|
-
/** Original discount rule name (in site's default language). */
|
|
687
|
-
original?: string;
|
|
688
|
-
/** Translated discount rule name according to buyer language. Defaults to `original` when not provided. */
|
|
689
|
-
translated?: string | null;
|
|
690
|
-
}
|
|
691
|
-
export interface CreatedBy extends CreatedByStringOneOf {
|
|
692
|
-
/** User ID - when the edit order was created by a Wix user */
|
|
693
|
-
userId?: string;
|
|
694
|
-
/** App ID - when the edit order was created by an external application. */
|
|
695
|
-
appId?: string;
|
|
696
|
-
}
|
|
697
|
-
/** @oneof */
|
|
698
|
-
export interface CreatedByStringOneOf {
|
|
699
|
-
/** User ID - when the edit order was created by a Wix user */
|
|
700
|
-
userId?: string;
|
|
701
|
-
/** App ID - when the edit order was created by an external application. */
|
|
702
|
-
appId?: string;
|
|
703
|
-
}
|
|
704
|
-
export declare enum EditingStatus {
|
|
705
|
-
/** DraftOrder is in draft state. */
|
|
706
|
-
DRAFT = "DRAFT",
|
|
707
|
-
/** DraftOrder is in committed state. */
|
|
708
|
-
COMMITTED = "COMMITTED"
|
|
709
|
-
}
|
|
710
|
-
export declare enum WeightUnit {
|
|
711
|
-
/** Weight unit can't be classified, due to an error */
|
|
712
|
-
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
713
|
-
/** Kilograms */
|
|
714
|
-
KG = "KG",
|
|
715
|
-
/** Pounds */
|
|
716
|
-
LB = "LB"
|
|
717
|
-
}
|
|
718
|
-
export interface PriceSummary {
|
|
719
|
-
/** Subtotal of all the line items, before discounts and before tax. */
|
|
720
|
-
subtotal?: Price;
|
|
721
|
-
/** Total shipping price, before discounts and before tax. */
|
|
722
|
-
shipping?: Price;
|
|
723
|
-
/** Total tax on this order. */
|
|
724
|
-
tax?: Price;
|
|
725
|
-
/** Total calculated discount value. */
|
|
726
|
-
discount?: Price;
|
|
727
|
-
/** Deprecated - use `total` instead. */
|
|
728
|
-
totalPrice?: Price;
|
|
729
|
-
/** Order’s total price after discounts and tax. */
|
|
730
|
-
total?: Price;
|
|
731
|
-
/** Total price of additional fees before tax. */
|
|
732
|
-
totalAdditionalFees?: Price;
|
|
733
|
-
}
|
|
734
|
-
export interface TaxSummary {
|
|
735
|
-
/**
|
|
736
|
-
* Total tax.
|
|
737
|
-
* @readonly
|
|
738
|
-
*/
|
|
739
|
-
totalTax?: Price;
|
|
740
|
-
}
|
|
741
|
-
export interface BalanceSummary {
|
|
742
|
-
/**
|
|
743
|
-
* collectible amount to pay. Part of order’s price_summary excluding all approved payments amount
|
|
744
|
-
* @readonly
|
|
745
|
-
*/
|
|
746
|
-
balance?: Balance;
|
|
747
|
-
}
|
|
748
|
-
/**
|
|
749
|
-
* Order balance. Reflects amount left to be paid on order and is calculated dynamically. Can be negative per balance definition.
|
|
750
|
-
* `amount` field depends on order payment status:
|
|
751
|
-
* + UNSPECIFIED, NOT_PAID: price_summary.total_price
|
|
752
|
-
* + PARTIALLY_PAID : price_summary.total_price - pay_now.total_price
|
|
753
|
-
* + PENDING, REFUNDED, PARTIALLY_REFUNDED, PAID : 0
|
|
754
|
-
*/
|
|
755
|
-
export interface Balance {
|
|
756
|
-
/**
|
|
757
|
-
* Balance amount, can be negative. Negative value signifies amount to be refunded
|
|
758
|
-
* and can happen due to possible overcharge or modified manual order.
|
|
759
|
-
* @readonly
|
|
760
|
-
*/
|
|
761
|
-
amount?: string;
|
|
762
|
-
/**
|
|
763
|
-
* Amount formatted with currency symbol.
|
|
764
|
-
* @readonly
|
|
765
|
-
*/
|
|
766
|
-
formattedAmount?: string;
|
|
767
|
-
}
|
|
768
|
-
/** Side-effects upon committing a draft order. */
|
|
769
|
-
export interface DraftOrderCommitSettings {
|
|
770
|
-
/** If false, do not send notifications to buyer. Default is true. */
|
|
771
|
-
sendNotificationsToBuyer?: boolean | null;
|
|
772
|
-
/** If false, do not send notifications to business. Default is true. */
|
|
773
|
-
sendNotificationsToBusiness?: boolean | null;
|
|
774
|
-
/** If false,do not add activities to the order. Default is true. */
|
|
775
|
-
addActivitiesToOrder?: boolean | null;
|
|
776
|
-
/** If false, do not send mails to custom fulfillers in case of a change of shippable items fulfilled by custom fulfillers. Default is true. */
|
|
777
|
-
sendNotificationsToCustomFulfillers?: boolean | null;
|
|
778
|
-
/** Item ids to perform inventory change for. If not provided, inventory change will not be performed. */
|
|
779
|
-
updateInventory?: InventoryUpdate[];
|
|
780
|
-
}
|
|
781
|
-
export interface InventoryUpdate {
|
|
782
|
-
/** Line item ID. */
|
|
783
|
-
lineItemId?: string;
|
|
784
|
-
}
|
|
785
|
-
export interface CreateDraftOrderRequest {
|
|
786
|
-
/** To create a draft from existing order, provide its id. Otherwise, an empty draft will be created. */
|
|
787
|
-
orderId?: string | null;
|
|
788
|
-
}
|
|
789
|
-
export interface CreateDraftOrderResponse {
|
|
790
|
-
/** The draft order details calculated with latest content */
|
|
791
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
792
|
-
}
|
|
793
|
-
export interface CalculatedDraftOrder {
|
|
794
|
-
/**
|
|
795
|
-
* The draft order full details with calculations based on it's content.
|
|
796
|
-
* Discount and additional fee options are also included.
|
|
797
|
-
*/
|
|
798
|
-
draftOrder?: DraftOrder;
|
|
799
|
-
/** Shipping options for the order. */
|
|
800
|
-
shippingOptions?: ShippingOption[];
|
|
801
|
-
/** Errors that occurred during calculation. */
|
|
802
|
-
calculationErrors?: CalculationErrors;
|
|
803
|
-
}
|
|
804
|
-
export interface ShippingOption {
|
|
805
|
-
/** This carrier's unique ID */
|
|
806
|
-
carrierId?: string | null;
|
|
807
|
-
/** Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`. */
|
|
808
|
-
code?: string;
|
|
809
|
-
/** Shipping rate title. For example, `"USPS Standard Overnight Delivery"`, `"Standard"`, or `"First-Class Package International"`. */
|
|
810
|
-
title?: string;
|
|
811
|
-
/** Shipping logistics. */
|
|
812
|
-
logistics?: DeliveryLogistics;
|
|
813
|
-
/** Shipping cost. */
|
|
814
|
-
cost?: ShippingPrice;
|
|
815
|
-
}
|
|
816
|
-
export interface DeliveryLogistics {
|
|
817
|
-
/** When the item is expected to be delivered in free text, e.g "3-5 business days" */
|
|
818
|
-
deliveryTime?: string | null;
|
|
819
|
-
/** Instructions for caller, e.g for pickup: "Ensure to come during Opening Hours, and please don't park in disabled-spot" */
|
|
820
|
-
instructions?: string | null;
|
|
821
|
-
/** Additional pickup details if it's a pickup */
|
|
822
|
-
pickupDetails?: PickupDetails;
|
|
823
|
-
/** Expected delivery time slot (from and to time stamps representation) */
|
|
824
|
-
deliveryTimeSlot?: DeliveryTimeSlot;
|
|
825
|
-
}
|
|
826
|
-
export interface PickupDetails {
|
|
827
|
-
/** Pickup address */
|
|
828
|
-
address?: Address;
|
|
829
|
-
/**
|
|
830
|
-
* Pickup method.
|
|
831
|
-
*
|
|
832
|
-
* Supported values:
|
|
833
|
-
* + `"STORE_PICKUP"`
|
|
834
|
-
* + `"PICKUP_POINT"`
|
|
835
|
-
*/
|
|
836
|
-
pickupMethod?: PickupMethod;
|
|
837
|
-
}
|
|
838
|
-
export declare enum PickupMethod {
|
|
839
|
-
UNKNOWN_METHOD = "UNKNOWN_METHOD",
|
|
840
|
-
STORE_PICKUP = "STORE_PICKUP",
|
|
841
|
-
PICKUP_POINT = "PICKUP_POINT"
|
|
842
|
-
}
|
|
843
|
-
export interface DeliveryTimeSlot {
|
|
844
|
-
/** starting time of the delivery time slot */
|
|
845
|
-
from?: Date;
|
|
846
|
-
/** ending time of the delivery time slot */
|
|
847
|
-
to?: Date;
|
|
848
|
-
}
|
|
849
|
-
export interface ShippingPrice {
|
|
850
|
-
/** The shipping rate's price. Must align with the [currency's decimal separator](https://en.wikipedia.org/wiki/ISO_4217#Active_codes). */
|
|
851
|
-
price?: Price;
|
|
852
|
-
/** Currency of the shipping rate price as a 3-letter [ISO-4217 currency code](https://en.wikipedia.org/wiki/ISO_4217). Must align with the `currency` passed to the function. */
|
|
853
|
-
currency?: string;
|
|
854
|
-
}
|
|
855
|
-
export interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
|
|
856
|
-
/** General shipping calculation error. */
|
|
857
|
-
generalShippingCalculationError?: Details;
|
|
858
|
-
/** Carrier errors. */
|
|
859
|
-
carrierErrors?: CarrierErrors;
|
|
860
|
-
/** Tax calculation error. */
|
|
861
|
-
taxCalculationError?: Details;
|
|
862
|
-
/** Order validation errors. */
|
|
863
|
-
orderValidationErrors?: ApplicationError[];
|
|
864
|
-
}
|
|
865
|
-
/** @oneof */
|
|
866
|
-
export interface CalculationErrorsShippingCalculationErrorOneOf {
|
|
867
|
-
/** General shipping calculation error. */
|
|
868
|
-
generalShippingCalculationError?: Details;
|
|
869
|
-
/** Carrier errors. */
|
|
870
|
-
carrierErrors?: CarrierErrors;
|
|
871
|
-
}
|
|
872
|
-
export interface Details extends DetailsKindOneOf {
|
|
873
|
-
applicationError?: ApplicationError;
|
|
874
|
-
validationError?: ValidationError;
|
|
875
|
-
/** deprecated in API's - to enable migration from rendering arbitrary tracing to rest response */
|
|
876
|
-
tracing?: Record<string, string>;
|
|
877
|
-
}
|
|
878
|
-
/** @oneof */
|
|
879
|
-
export interface DetailsKindOneOf {
|
|
880
|
-
applicationError?: ApplicationError;
|
|
881
|
-
validationError?: ValidationError;
|
|
882
|
-
}
|
|
883
|
-
export interface ApplicationError {
|
|
884
|
-
/** Error code. */
|
|
885
|
-
code?: string;
|
|
886
|
-
/** Description of the error. */
|
|
887
|
-
description?: string;
|
|
888
|
-
/** Data related to the error. */
|
|
889
|
-
data?: Record<string, any> | null;
|
|
890
|
-
}
|
|
891
|
-
/**
|
|
892
|
-
* example result:
|
|
893
|
-
* {
|
|
894
|
-
* "fieldViolations": [
|
|
895
|
-
* {
|
|
896
|
-
* "field": "fieldA",
|
|
897
|
-
* "description": "invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]",
|
|
898
|
-
* "violatedRule": "OTHER",
|
|
899
|
-
* "ruleName": "INVALID_NOTE",
|
|
900
|
-
* "data": {
|
|
901
|
-
* "value": "FI"
|
|
902
|
-
* }
|
|
903
|
-
* },
|
|
904
|
-
* {
|
|
905
|
-
* "field": "fieldB",
|
|
906
|
-
* "description": "field value out of range. supported range: [0-20]",
|
|
907
|
-
* "violatedRule": "MAX",
|
|
908
|
-
* "data": {
|
|
909
|
-
* "threshold": 20
|
|
910
|
-
* }
|
|
911
|
-
* },
|
|
912
|
-
* {
|
|
913
|
-
* "field": "fieldC",
|
|
914
|
-
* "description": "invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]",
|
|
915
|
-
* "violatedRule": "FORMAT",
|
|
916
|
-
* "data": {
|
|
917
|
-
* "type": "PHONE"
|
|
918
|
-
* }
|
|
919
|
-
* }
|
|
920
|
-
* ]
|
|
921
|
-
* }
|
|
922
|
-
*/
|
|
923
|
-
export interface ValidationError {
|
|
924
|
-
fieldViolations?: FieldViolation[];
|
|
925
|
-
}
|
|
926
|
-
export declare enum RuleType {
|
|
927
|
-
VALIDATION = "VALIDATION",
|
|
928
|
-
OTHER = "OTHER",
|
|
929
|
-
MAX = "MAX",
|
|
930
|
-
MIN = "MIN",
|
|
931
|
-
MAX_LENGTH = "MAX_LENGTH",
|
|
932
|
-
MIN_LENGTH = "MIN_LENGTH",
|
|
933
|
-
MAX_SIZE = "MAX_SIZE",
|
|
934
|
-
MIN_SIZE = "MIN_SIZE",
|
|
935
|
-
FORMAT = "FORMAT",
|
|
936
|
-
DECIMAL_LTE = "DECIMAL_LTE",
|
|
937
|
-
DECIMAL_GTE = "DECIMAL_GTE",
|
|
938
|
-
DECIMAL_LT = "DECIMAL_LT",
|
|
939
|
-
DECIMAL_GT = "DECIMAL_GT",
|
|
940
|
-
DECIMAL_MAX_SCALE = "DECIMAL_MAX_SCALE",
|
|
941
|
-
INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
|
|
942
|
-
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
943
|
-
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
944
|
-
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT"
|
|
945
|
-
}
|
|
946
|
-
export interface FieldViolation {
|
|
947
|
-
field?: string;
|
|
948
|
-
description?: string;
|
|
949
|
-
violatedRule?: RuleType;
|
|
950
|
-
/** applicable when violated_rule=OTHER */
|
|
951
|
-
ruleName?: string | null;
|
|
952
|
-
data?: Record<string, any> | null;
|
|
953
|
-
}
|
|
954
|
-
export interface CarrierErrors {
|
|
955
|
-
/** Carrier errors. */
|
|
956
|
-
errors?: CarrierError[];
|
|
957
|
-
}
|
|
958
|
-
export interface CarrierError {
|
|
959
|
-
/** Carrier ID. */
|
|
960
|
-
carrierId?: string;
|
|
961
|
-
/** Error details. */
|
|
962
|
-
error?: Details;
|
|
963
|
-
}
|
|
964
|
-
export interface AddLineItemsToDraftOrderRequest {
|
|
965
|
-
/** The draft order id */
|
|
966
|
-
draftOrderId?: string;
|
|
967
|
-
/** Catalog Line items ref to be added. */
|
|
968
|
-
catalogLineItems?: CatalogReferenceLineItem[];
|
|
969
|
-
/** Custom line items to be added. */
|
|
970
|
-
customLineItems?: CustomLineItem[];
|
|
971
|
-
}
|
|
972
|
-
export interface CatalogReferenceLineItem {
|
|
973
|
-
/** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. */
|
|
974
|
-
catalogReference?: CatalogReference;
|
|
975
|
-
/** Item quantity. */
|
|
976
|
-
quantity?: number;
|
|
977
|
-
/** Item price override. */
|
|
978
|
-
price?: Price;
|
|
979
|
-
}
|
|
980
|
-
export interface CustomLineItem {
|
|
981
|
-
/** Line item ID. */
|
|
982
|
-
_id?: string | null;
|
|
983
|
-
/**
|
|
984
|
-
* Item quantity.
|
|
985
|
-
*
|
|
986
|
-
* Min: `"1"`
|
|
987
|
-
* Max: `"100000"`
|
|
988
|
-
*/
|
|
989
|
-
quantity?: number;
|
|
990
|
-
/** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. */
|
|
991
|
-
catalogReference?: CatalogReference;
|
|
992
|
-
/**
|
|
993
|
-
* Item name.
|
|
994
|
-
* + Stores - `product.name`
|
|
995
|
-
* + Bookings - `service.info.name`
|
|
996
|
-
* + Events - `ticket.name`
|
|
997
|
-
*/
|
|
998
|
-
productName?: ProductName;
|
|
999
|
-
/** URL to the item's page on the site. */
|
|
1000
|
-
url?: string;
|
|
1001
|
-
/** Item price **after** catalog-defined discount and line item discounts. */
|
|
1002
|
-
price?: Price;
|
|
1003
|
-
/** Total line item price **after** catalog-defined discount and line item discounts. */
|
|
1004
|
-
lineItemPrice?: Price;
|
|
1005
|
-
/** Item price **before** catalog-defined discount. Defaults to `price` when not provided. */
|
|
1006
|
-
fullPrice?: Price;
|
|
1007
|
-
/** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */
|
|
1008
|
-
priceBeforeDiscounts?: Price;
|
|
1009
|
-
/** Line item description lines. Used for display purposes for order. */
|
|
1010
|
-
descriptionLines?: DescriptionLine[];
|
|
1011
|
-
/** Line item image details. */
|
|
1012
|
-
media?: string;
|
|
1013
|
-
/** Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability. */
|
|
1014
|
-
physicalProperties?: PhysicalProperties;
|
|
1015
|
-
/** Item type. Either a preset type or custom. */
|
|
1016
|
-
itemType?: ItemType;
|
|
1017
|
-
/** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
|
|
1018
|
-
priceDescription?: PriceDescription;
|
|
1019
|
-
/** Delivery Profile Id for the product */
|
|
1020
|
-
deliveryProfileId?: string | null;
|
|
1021
|
-
}
|
|
1022
|
-
export interface SecuredMedia {
|
|
1023
|
-
/** Media ID in media manager. */
|
|
1024
|
-
_id?: string;
|
|
1025
|
-
/** Original file name. */
|
|
1026
|
-
fileName?: string;
|
|
1027
|
-
/** File type. */
|
|
1028
|
-
fileType?: FileType;
|
|
1029
|
-
}
|
|
1030
|
-
export declare enum FileType {
|
|
1031
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
1032
|
-
SECURE_PICTURE = "SECURE_PICTURE",
|
|
1033
|
-
SECURE_VIDEO = "SECURE_VIDEO",
|
|
1034
|
-
SECURE_DOCUMENT = "SECURE_DOCUMENT",
|
|
1035
|
-
SECURE_MUSIC = "SECURE_MUSIC",
|
|
1036
|
-
SECURE_ARCHIVE = "SECURE_ARCHIVE"
|
|
1037
|
-
}
|
|
1038
|
-
export interface AddLineItemsToDraftOrderResponse {
|
|
1039
|
-
/** The draft order details calculated with latest content */
|
|
1040
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
1041
|
-
}
|
|
1042
|
-
export interface UpdateLineItemsRequest {
|
|
1043
|
-
/** The draft order id */
|
|
1044
|
-
draftOrderId?: string;
|
|
1045
|
-
/** Details of changes to apply per line item */
|
|
1046
|
-
lineItemChanges?: LineItemChangeDetails[];
|
|
1047
|
-
}
|
|
1048
|
-
export interface LineItemChangeDetails {
|
|
1049
|
-
/** The line item id to change */
|
|
1050
|
-
lineItemId?: string;
|
|
1051
|
-
/** The new quantity for the line item. quantity zero means to remove the line item. */
|
|
1052
|
-
newQuantity?: number | null;
|
|
1053
|
-
/** The new price for 1 unit of the line item */
|
|
1054
|
-
newPrice?: string | null;
|
|
1055
|
-
/** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
|
|
1056
|
-
newPriceDescription?: PriceDescription;
|
|
1057
|
-
}
|
|
1058
|
-
export interface UpdateLineItemsResponse {
|
|
1059
|
-
/** The draft order details calculated with latest content */
|
|
1060
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
1061
|
-
}
|
|
1062
|
-
export interface SetDiscountsRequest {
|
|
1063
|
-
/** The draft order id */
|
|
1064
|
-
draftOrderId?: string;
|
|
1065
|
-
/** The discount ids to opt-in. all existing discounts not listed are to be opted-out. */
|
|
1066
|
-
discounts?: IdAndApplied[];
|
|
1067
|
-
}
|
|
1068
|
-
export interface IdAndApplied {
|
|
1069
|
-
_id?: string;
|
|
1070
|
-
applied?: boolean;
|
|
1071
|
-
}
|
|
1072
|
-
export interface SetDiscountsResponse {
|
|
1073
|
-
/** The draft order details calculated with latest content */
|
|
1074
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
1075
|
-
}
|
|
1076
|
-
export interface CreateCustomDiscountsRequest {
|
|
1077
|
-
/** The draft order id */
|
|
1078
|
-
draftOrderId?: string;
|
|
1079
|
-
/** The discounts to add. */
|
|
1080
|
-
discounts?: DiscountOption[];
|
|
1081
|
-
}
|
|
1082
|
-
export interface DiscountOption {
|
|
1083
|
-
/**
|
|
1084
|
-
* Discount type.
|
|
1085
|
-
* * `"GLOBAL"` - discount applies to entire order.
|
|
1086
|
-
* * `"SPECIFIC-ITEMS"` - discount applies to a specific item.
|
|
1087
|
-
* * `"SHIPPING"` - discount applies to shipping. For example, free shipping.
|
|
1088
|
-
*/
|
|
1089
|
-
discountType?: DiscountType;
|
|
1090
|
-
/** ID of line item discount applies to. */
|
|
1091
|
-
lineItemId?: string | null;
|
|
1092
|
-
/** Discount amount. */
|
|
1093
|
-
amount?: Price;
|
|
1094
|
-
/** Discount description as free text (optional). */
|
|
1095
|
-
description?: string | null;
|
|
1096
|
-
/**
|
|
1097
|
-
* Should opt-in the added discount. default = false.
|
|
1098
|
-
* if not set or false, then to opt-in them, please call SetDiscounts with the added discounts ids
|
|
1099
|
-
*/
|
|
1100
|
-
applyToDraftOrder?: boolean | null;
|
|
1101
|
-
}
|
|
1102
|
-
export declare enum DiscountType {
|
|
1103
|
-
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
1104
|
-
GLOBAL = "GLOBAL",
|
|
1105
|
-
SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
|
|
1106
|
-
SHIPPING = "SHIPPING"
|
|
1107
|
-
}
|
|
1108
|
-
export interface CreateCustomDiscountsResponse {
|
|
1109
|
-
/** The draft order details with the added discounts */
|
|
1110
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
1111
|
-
}
|
|
1112
|
-
export interface DeleteCustomDiscountsRequest {
|
|
1113
|
-
/** The draft order id */
|
|
1114
|
-
draftOrderId?: string;
|
|
1115
|
-
/** The discounts to remove */
|
|
1116
|
-
discountIds?: string[];
|
|
1117
|
-
}
|
|
1118
|
-
export interface DeleteCustomDiscountsResponse {
|
|
1119
|
-
/** The draft order details calculated with latest content */
|
|
1120
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
1121
|
-
}
|
|
1122
|
-
export interface SetAdditionalFeesRequest {
|
|
1123
|
-
/** The draft order id */
|
|
1124
|
-
draftOrderId?: string;
|
|
1125
|
-
/** The additional fees ids to opt-in. all existing additional fees not listed are to be opted-out */
|
|
1126
|
-
additionalFees?: IdAndApplied[];
|
|
1127
|
-
}
|
|
1128
|
-
export interface SetAdditionalFeesResponse {
|
|
1129
|
-
/** The draft order details calculated with modified additional fees */
|
|
1130
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
1131
|
-
}
|
|
1132
|
-
export interface CreateCustomAdditionalFeesRequest {
|
|
1133
|
-
/** The draft order id */
|
|
1134
|
-
draftOrderId?: string;
|
|
1135
|
-
/** The additional fees to add. added with opted-out setting */
|
|
1136
|
-
customAdditionalFees?: AdditionalFeeOption[];
|
|
1137
|
-
}
|
|
1138
|
-
export interface AdditionalFeeOption {
|
|
1139
|
-
/** Translated additional fee's name */
|
|
1140
|
-
name?: string;
|
|
1141
|
-
/** Additional fee's price */
|
|
1142
|
-
price?: Price;
|
|
1143
|
-
/** Tax calculation details */
|
|
1144
|
-
taxDetails?: TaxDetails;
|
|
1145
|
-
/**
|
|
1146
|
-
* Should apply the additional fee. default = false.
|
|
1147
|
-
* if not set or false, then to apply them, please call ApplyAdditionalFees with the added additional fee ids
|
|
1148
|
-
*/
|
|
1149
|
-
applyToDraftOrder?: boolean | null;
|
|
1150
|
-
/** Additional fee's unique code (or ID) for future processing */
|
|
1151
|
-
code?: string | null;
|
|
1152
|
-
}
|
|
1153
|
-
export interface CreateCustomAdditionalFeesResponse {
|
|
1154
|
-
/** The draft order details with added custom additional fees */
|
|
1155
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
1156
|
-
}
|
|
1157
|
-
export interface DeleteCustomAdditionalFeesRequest {
|
|
1158
|
-
/** The draft order id */
|
|
1159
|
-
draftOrderId?: string;
|
|
1160
|
-
/** The additional fees to remove */
|
|
1161
|
-
customAdditionalFees?: string[];
|
|
1162
|
-
}
|
|
1163
|
-
export interface DeleteCustomAdditionalFeesResponse {
|
|
1164
|
-
/** The draft order details calculated with latest content */
|
|
1165
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
1166
|
-
}
|
|
1167
|
-
export interface UpdateShippingInfoRequest {
|
|
1168
|
-
/** The draft order id */
|
|
1169
|
-
draftOrderId?: string;
|
|
1170
|
-
/** update the shipping option on the order. if not set then the selected shipping is removed */
|
|
1171
|
-
shippingOption?: ShippingOption;
|
|
1172
|
-
}
|
|
1173
|
-
export interface UpdateShippingInfoResponse {
|
|
1174
|
-
/** The draft order details calculated with de/selected shipping info */
|
|
1175
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
1176
|
-
}
|
|
1177
|
-
export interface GetDraftOrderRequest {
|
|
1178
|
-
/** The draft order id */
|
|
1179
|
-
draftOrderId?: string;
|
|
1180
|
-
}
|
|
1181
|
-
export interface GetDraftOrderResponse {
|
|
1182
|
-
/** The draft order details calculated with latest content */
|
|
1183
|
-
calculatedDraftOrder?: CalculatedDraftOrder;
|
|
1184
|
-
}
|
|
1185
|
-
export interface GetOrderDraftabilityStatusRequest {
|
|
1186
|
-
/** Order ID. */
|
|
1187
|
-
orderId?: string;
|
|
1188
|
-
}
|
|
1189
|
-
export interface GetOrderDraftabilityStatusResponse {
|
|
1190
|
-
/** Order ID. */
|
|
1191
|
-
orderId?: string;
|
|
1192
|
-
/** Whether a draft can be created from this order */
|
|
1193
|
-
orderDraftable?: boolean;
|
|
1194
|
-
/** Reasons why the order is not draftable */
|
|
1195
|
-
nonDraftableReasons?: NonDraftableReason[];
|
|
1196
|
-
}
|
|
1197
|
-
export declare enum NonDraftableReason {
|
|
1198
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
1199
|
-
PARTIALLY_OR_FULLY_REFUNDED = "PARTIALLY_OR_FULLY_REFUNDED",
|
|
1200
|
-
UNSUPPORTED_CHANNEL_TYPE = "UNSUPPORTED_CHANNEL_TYPE",
|
|
1201
|
-
ORDER_STATUS_IS_NOT_SUPPORTED = "ORDER_STATUS_IS_NOT_SUPPORTED",
|
|
1202
|
-
ORDER_AND_SITE_CURRENCIES_ARE_INCONSISTENT = "ORDER_AND_SITE_CURRENCIES_ARE_INCONSISTENT",
|
|
1203
|
-
ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT = "ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT",
|
|
1204
|
-
AMOUNTS_DO_NOT_ADD_UP = "AMOUNTS_DO_NOT_ADD_UP",
|
|
1205
|
-
ORDER_NOT_FOUND = "ORDER_NOT_FOUND",
|
|
1206
|
-
SUBSCRIPTION_LINE_ITEM_EXISTS = "SUBSCRIPTION_LINE_ITEM_EXISTS",
|
|
1207
|
-
UNSUPPORTED_CATALOG_ITEM = "UNSUPPORTED_CATALOG_ITEM"
|
|
1208
|
-
}
|
|
1209
|
-
export interface CommitDraftOrderRequest {
|
|
1210
|
-
/** The draft order id */
|
|
1211
|
-
draftOrderId: string;
|
|
1212
|
-
/** Optional side effects to trigger */
|
|
1213
|
-
commitSettings?: DraftOrderCommitSettings;
|
|
1214
|
-
/** Reason for edit, given by user (optional). */
|
|
1215
|
-
reason?: string | null;
|
|
1216
|
-
}
|
|
1217
|
-
export interface CommitDraftOrderResponse {
|
|
1218
|
-
/** The draft order after commit. */
|
|
1219
|
-
committedDraftOrder?: DraftOrder;
|
|
1220
|
-
/** The updated order after commit. */
|
|
1221
|
-
orderAfterCommit?: Order;
|
|
1222
|
-
}
|
|
1223
|
-
export interface Order {
|
|
1224
|
-
/**
|
|
1225
|
-
* Order ID.
|
|
1226
|
-
* @readonly
|
|
1227
|
-
*/
|
|
1228
|
-
_id?: string | null;
|
|
1229
|
-
/**
|
|
1230
|
-
* Order number displayed in the site owner's dashboard (auto-generated).
|
|
1231
|
-
* @readonly
|
|
1232
|
-
*/
|
|
1233
|
-
number?: string;
|
|
1234
|
-
/** Date and time the order was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. */
|
|
1235
|
-
_createdDate?: Date;
|
|
1236
|
-
/**
|
|
1237
|
-
* Date and time the order was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
1238
|
-
* @readonly
|
|
1239
|
-
*/
|
|
1240
|
-
_updatedDate?: Date;
|
|
1241
|
-
/** Order line items. */
|
|
1242
|
-
lineItems?: OrderLineItem[];
|
|
1243
|
-
/** Buyer information. */
|
|
1244
|
-
buyerInfo?: BuyerInfo;
|
|
1245
|
-
/**
|
|
1246
|
-
* Order payment status.
|
|
1247
|
-
* + `NOT_PAID` - This can be an order made online, but not yet paid. In such cases `order.status` will be `INITIALIZED`.
|
|
1248
|
-
* + This status also applies when an offline order needs to be manually marked as paid. In such cases `order.status` will be `APPROVED`.
|
|
1249
|
-
* + `PAID` - All payments associated with this order are paid. For online payments: [`payment.regularPaymentDetails.status: APPROVED`](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-transactions/order-transactions-object). For gift cards: [`payment.giftCardPaymentDetails.voided: false`](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-transactions/order-transactions-object).
|
|
1250
|
-
* + `PARTIALLY_REFUNDED` - Order was refunded, but refund amount is less than order total price.
|
|
1251
|
-
* + `FULLY_REFUNDED` - Order fully refunded. Refund amount equals total price.
|
|
1252
|
-
* + `PENDING` - Payments received but not yet confirmed by the payment provider.
|
|
1253
|
-
* + `PARTIALLY_PAID` - At least one payment was received and approved, covering less than total price amount.
|
|
1254
|
-
*/
|
|
1255
|
-
paymentStatus?: PaymentStatus;
|
|
1256
|
-
/**
|
|
1257
|
-
* Order fulfillment status.
|
|
1258
|
-
* @readonly
|
|
1259
|
-
*/
|
|
1260
|
-
fulfillmentStatus?: FulfillmentStatus;
|
|
1261
|
-
/**
|
|
1262
|
-
* Language for communication with the buyer. Defaults to the site language.
|
|
1263
|
-
* For a site that supports multiple languages, this is the language the buyer selected.
|
|
1264
|
-
*/
|
|
1265
|
-
buyerLanguage?: string | null;
|
|
1266
|
-
/** Weight measurement unit - defaults to site's weight unit. */
|
|
1267
|
-
weightUnit?: WeightUnit;
|
|
1268
|
-
/** Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format. */
|
|
1269
|
-
currency?: string | null;
|
|
1270
|
-
/** Whether tax is included in line item prices. */
|
|
1271
|
-
taxIncludedInPrices?: boolean;
|
|
1272
|
-
/**
|
|
1273
|
-
* Site language in which original values are shown.
|
|
1274
|
-
* @readonly
|
|
1275
|
-
*/
|
|
1276
|
-
siteLanguage?: string | null;
|
|
1277
|
-
/**
|
|
1278
|
-
* Order price summary.
|
|
1279
|
-
* @readonly
|
|
1280
|
-
*/
|
|
1281
|
-
priceSummary?: PriceSummary;
|
|
1282
|
-
/** Billing address and contact details. */
|
|
1283
|
-
billingInfo?: AddressWithContact;
|
|
1284
|
-
/** Shipping info and selected shipping option details. */
|
|
1285
|
-
shippingInfo?: ShippingInformation;
|
|
1286
|
-
/** [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer. */
|
|
1287
|
-
buyerNote?: string | null;
|
|
1288
|
-
/**
|
|
1289
|
-
* Order status.
|
|
1290
|
-
* + `INITIALIZED` - Order was created, but not yet approved or declined.
|
|
1291
|
-
* + `APPROVED` - Order was approved. This happens when either the online payment succeeded or the order is an offline order. Once an order is approved, many side effects are triggered. For example, holding of stock in the inventory and sending of notification emails.
|
|
1292
|
-
* + `CANCELED` - Order was canceled by the user.
|
|
1293
|
-
*/
|
|
1294
|
-
status?: OrderStatus;
|
|
1295
|
-
/**
|
|
1296
|
-
* Whether order is archived.
|
|
1297
|
-
* @readonly
|
|
1298
|
-
*/
|
|
1299
|
-
archived?: boolean | null;
|
|
1300
|
-
/** Tax summary. */
|
|
1301
|
-
taxSummary?: TaxSummary;
|
|
1302
|
-
/** Applied discounts. */
|
|
1303
|
-
appliedDiscounts?: AppliedDiscount[];
|
|
1304
|
-
/**
|
|
1305
|
-
* Order activities.
|
|
1306
|
-
* @readonly
|
|
1307
|
-
*/
|
|
1308
|
-
activities?: Activity[];
|
|
1309
|
-
/** Order attribution source. */
|
|
1310
|
-
attributionSource?: AttributionSource;
|
|
1311
|
-
/**
|
|
1312
|
-
* ID of the order's initiator.
|
|
1313
|
-
* @readonly
|
|
1314
|
-
*/
|
|
1315
|
-
createdBy?: V1CreatedBy;
|
|
1316
|
-
/** Information about the sales channel that submitted this order. */
|
|
1317
|
-
channelInfo?: ChannelInfo;
|
|
1318
|
-
/**
|
|
1319
|
-
* Whether a human has seen the order. Set when an order is clicked on in the dashboard.
|
|
1320
|
-
* @readonly
|
|
1321
|
-
*/
|
|
1322
|
-
seenByAHuman?: boolean | null;
|
|
1323
|
-
/** Checkout ID. */
|
|
1324
|
-
checkoutId?: string | null;
|
|
1325
|
-
/** Custom fields. */
|
|
1326
|
-
customFields?: CustomField[];
|
|
1327
|
-
/** Additional fees applied to the order. */
|
|
1328
|
-
additionalFees?: AdditionalFee[];
|
|
1329
|
-
/** Extensions enabling users to save custom data related to the order. See details here https://dev.wix.com/docs/rest/articles/getting-started/extended-fields */
|
|
1330
|
-
extendedFields?: ExtendedFields;
|
|
1331
|
-
/** Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order. */
|
|
1332
|
-
purchaseFlowId?: string | null;
|
|
1333
|
-
}
|
|
1334
|
-
export declare enum PaymentStatus {
|
|
1335
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
1336
|
-
/** Order is not paid */
|
|
1337
|
-
NOT_PAID = "NOT_PAID",
|
|
1338
|
-
/** Order is paid */
|
|
1339
|
-
PAID = "PAID",
|
|
1340
|
-
/** Order was refunded, refund amount less than order total price */
|
|
1341
|
-
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
1342
|
-
/** Full order total price was refunded */
|
|
1343
|
-
FULLY_REFUNDED = "FULLY_REFUNDED",
|
|
1344
|
-
/** Payments received but not yet confirmed by the payment provider */
|
|
1345
|
-
PENDING = "PENDING",
|
|
1346
|
-
/** At least one payment was received and approved, covering less than total price amount */
|
|
1347
|
-
PARTIALLY_PAID = "PARTIALLY_PAID"
|
|
1348
|
-
}
|
|
1349
|
-
export declare enum FulfillmentStatus {
|
|
1350
|
-
/** none of the order items are fulfilled or order was manually marked as unfulfilled */
|
|
1351
|
-
NOT_FULFILLED = "NOT_FULFILLED",
|
|
1352
|
-
/**
|
|
1353
|
-
* All of the order items are fulfilled or order was manually marked as fulfilled
|
|
1354
|
-
* Orders without shipping info are fulfilled automatically
|
|
1355
|
-
*/
|
|
1356
|
-
FULFILLED = "FULFILLED",
|
|
1357
|
-
/** Some, but not all of the order items are fulfilled */
|
|
1358
|
-
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
|
|
1359
|
-
}
|
|
1360
|
-
export declare enum OrderStatus {
|
|
1361
|
-
INITIALIZED = "INITIALIZED",
|
|
1362
|
-
APPROVED = "APPROVED",
|
|
1363
|
-
CANCELED = "CANCELED"
|
|
1364
|
-
}
|
|
1365
|
-
export interface Activity extends ActivityContentOneOf {
|
|
1366
|
-
/** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */
|
|
1367
|
-
customActivity?: CustomActivity;
|
|
1368
|
-
/** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */
|
|
1369
|
-
merchantComment?: MerchantComment;
|
|
1370
|
-
/** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */
|
|
1371
|
-
orderRefunded?: OrderRefunded;
|
|
1372
|
-
draftOrderChangesApplied?: DraftOrderChangesApplied;
|
|
1373
|
-
/**
|
|
1374
|
-
* Activity ID.
|
|
1375
|
-
* @readonly
|
|
1376
|
-
*/
|
|
1377
|
-
_id?: string | null;
|
|
1378
|
-
/**
|
|
1379
|
-
* Activity author's email.
|
|
1380
|
-
* @readonly
|
|
1381
|
-
*/
|
|
1382
|
-
authorEmail?: string | null;
|
|
1383
|
-
/**
|
|
1384
|
-
* Activity creation date and time.
|
|
1385
|
-
* @readonly
|
|
1386
|
-
*/
|
|
1387
|
-
_createdDate?: Date;
|
|
1388
|
-
/** Activity type. */
|
|
1389
|
-
type?: ActivityType;
|
|
1390
|
-
}
|
|
1391
|
-
/** @oneof */
|
|
1392
|
-
export interface ActivityContentOneOf {
|
|
1393
|
-
/** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */
|
|
1394
|
-
customActivity?: CustomActivity;
|
|
1395
|
-
/** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */
|
|
1396
|
-
merchantComment?: MerchantComment;
|
|
1397
|
-
/** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */
|
|
1398
|
-
orderRefunded?: OrderRefunded;
|
|
1399
|
-
draftOrderChangesApplied?: DraftOrderChangesApplied;
|
|
1400
|
-
}
|
|
1401
|
-
export interface CustomActivity {
|
|
1402
|
-
/** ID of the app that created the custom activity. */
|
|
1403
|
-
appId?: string;
|
|
1404
|
-
/** Custom activity type. For example, `"Ticket number set"`. */
|
|
1405
|
-
type?: string;
|
|
1406
|
-
/** Additional data in key-value form. For example, `{ "Ticket number": "123456" }`. */
|
|
1407
|
-
additionalData?: Record<string, string>;
|
|
1408
|
-
}
|
|
1409
|
-
/** Store owner added a comment */
|
|
1410
|
-
export interface MerchantComment {
|
|
1411
|
-
/** Merchant comment message. */
|
|
1412
|
-
message?: string;
|
|
1413
|
-
}
|
|
1414
|
-
export interface OrderRefunded {
|
|
1415
|
-
/** Whether order was refunded manually. For example, via payment provider or using cash. */
|
|
1416
|
-
manual?: boolean;
|
|
1417
|
-
/** Refund amount. */
|
|
1418
|
-
amount?: Price;
|
|
1419
|
-
/** Reason for refund. */
|
|
1420
|
-
reason?: string;
|
|
1421
|
-
}
|
|
1422
|
-
export interface OrderCreatedFromExchange {
|
|
1423
|
-
/** ID of the original order for which the exchange happened. */
|
|
1424
|
-
originalOrderId?: string;
|
|
1425
|
-
}
|
|
1426
|
-
export interface NewExchangeOrderCreated {
|
|
1427
|
-
/** ID of the new order created as a result of an exchange of items. */
|
|
1428
|
-
exchangeOrderId?: string;
|
|
1429
|
-
/** IDs of the items that were exchanged. */
|
|
1430
|
-
lineItems?: LineItemExchangeData[];
|
|
1431
|
-
}
|
|
1432
|
-
export interface LineItemExchangeData {
|
|
1433
|
-
/** ID of the exchanged line item. */
|
|
1434
|
-
lineItemId?: string;
|
|
1435
|
-
/** Line item quantity being exchanged. */
|
|
1436
|
-
quantity?: number;
|
|
1437
|
-
}
|
|
1438
|
-
export interface DraftOrderChangesApplied {
|
|
1439
|
-
/** Draft order id. */
|
|
1440
|
-
draftOrderId?: string;
|
|
1441
|
-
/** Reason for edit, given by user (optional). */
|
|
1442
|
-
reason?: string | null;
|
|
1443
|
-
/** Changes applied to order. */
|
|
1444
|
-
changes?: OrderChange[];
|
|
1445
|
-
}
|
|
1446
|
-
export interface OrderChange extends OrderChangeValueOneOf {
|
|
1447
|
-
lineItemChanged?: LineItemChanges;
|
|
1448
|
-
lineItemAdded?: ManagedLineItem;
|
|
1449
|
-
lineItemRemoved?: ManagedLineItem;
|
|
1450
|
-
discountAdded?: ManagedDiscount;
|
|
1451
|
-
discountRemoved?: ManagedDiscount;
|
|
1452
|
-
additionalFeeAdded?: ManagedAdditionalFee;
|
|
1453
|
-
additionalFeeRemoved?: ManagedAdditionalFee;
|
|
1454
|
-
totalPriceChanged?: TotalPriceChange;
|
|
1455
|
-
}
|
|
1456
|
-
/** @oneof */
|
|
1457
|
-
export interface OrderChangeValueOneOf {
|
|
1458
|
-
lineItemChanged?: LineItemChanges;
|
|
1459
|
-
lineItemAdded?: ManagedLineItem;
|
|
1460
|
-
lineItemRemoved?: ManagedLineItem;
|
|
1461
|
-
discountAdded?: ManagedDiscount;
|
|
1462
|
-
discountRemoved?: ManagedDiscount;
|
|
1463
|
-
additionalFeeAdded?: ManagedAdditionalFee;
|
|
1464
|
-
additionalFeeRemoved?: ManagedAdditionalFee;
|
|
1465
|
-
totalPriceChanged?: TotalPriceChange;
|
|
1466
|
-
}
|
|
1467
|
-
export interface LineItemChanges {
|
|
1468
|
-
/** Line item ID. */
|
|
1469
|
-
_id?: string;
|
|
1470
|
-
/** Item name. */
|
|
1471
|
-
name?: ProductName;
|
|
1472
|
-
/** Item quantity change. */
|
|
1473
|
-
quantity?: LineItemQuantityChange;
|
|
1474
|
-
/** Item price change. */
|
|
1475
|
-
price?: LineItemPriceChange;
|
|
1476
|
-
}
|
|
1477
|
-
export interface LineItemQuantityChange {
|
|
1478
|
-
/** Item quantity before update. */
|
|
1479
|
-
originalQuantity?: number;
|
|
1480
|
-
/** Item quantity after update. */
|
|
1481
|
-
newQuantity?: number;
|
|
1482
|
-
/** Difference between original and new quantity. Absolute value. */
|
|
1483
|
-
diff?: number;
|
|
1484
|
-
/** Type of quantity change: increase or decrease. */
|
|
1485
|
-
deltaType?: LineItemQuantityChangeType;
|
|
1486
|
-
}
|
|
1487
|
-
export declare enum LineItemQuantityChangeType {
|
|
1488
|
-
QUANTITY_INCREASED = "QUANTITY_INCREASED",
|
|
1489
|
-
QUANTITY_DECREASED = "QUANTITY_DECREASED"
|
|
1490
|
-
}
|
|
1491
|
-
export interface LineItemPriceChange {
|
|
1492
|
-
/** Item price before update. */
|
|
1493
|
-
originalPrice?: Price;
|
|
1494
|
-
/** Item price after update. */
|
|
1495
|
-
newPrice?: Price;
|
|
1496
|
-
}
|
|
1497
|
-
export interface ManagedLineItem {
|
|
1498
|
-
/** Line item ID. */
|
|
1499
|
-
_id?: string;
|
|
1500
|
-
/** Item name. */
|
|
1501
|
-
name?: ProductName;
|
|
1502
|
-
/** Added or removed item quantity. */
|
|
1503
|
-
quantity?: number;
|
|
1504
|
-
}
|
|
1505
|
-
export interface ManagedDiscount {
|
|
1506
|
-
/** Discount id. */
|
|
1507
|
-
_id?: string;
|
|
1508
|
-
/** Discount name: coupon name / discount rule name / merchant discount description. */
|
|
1509
|
-
name?: TranslatedValue;
|
|
1510
|
-
/** Line items discount applies to. */
|
|
1511
|
-
affectedLineItems?: LineItemAmount[];
|
|
1512
|
-
/** Discount amount. */
|
|
1513
|
-
totalAmount?: Price;
|
|
1514
|
-
}
|
|
1515
|
-
export interface TranslatedValue {
|
|
1516
|
-
/** Value in site default language. */
|
|
1517
|
-
original?: string;
|
|
1518
|
-
/** Translated value. */
|
|
1519
|
-
translated?: string | null;
|
|
1520
|
-
}
|
|
1521
|
-
export interface LineItemAmount {
|
|
1522
|
-
/** Order line item id */
|
|
1523
|
-
_id?: string;
|
|
1524
|
-
/** Item name. */
|
|
1525
|
-
name?: ProductName;
|
|
1526
|
-
/** Amount associated with this item. (Discount amount for item / additional fee amount for item) */
|
|
1527
|
-
amount?: Price;
|
|
1528
|
-
}
|
|
1529
|
-
export interface ManagedAdditionalFee {
|
|
1530
|
-
/** Additional fee id. */
|
|
1531
|
-
_id?: string;
|
|
1532
|
-
/** Additional fee name. */
|
|
1533
|
-
name?: TranslatedValue;
|
|
1534
|
-
/** Line items additional fee applies to. */
|
|
1535
|
-
affectedLineItems?: LineItemAmount[];
|
|
1536
|
-
/** Additional fee amount. */
|
|
1537
|
-
totalAmount?: Price;
|
|
1538
|
-
}
|
|
1539
|
-
export interface TotalPriceChange {
|
|
1540
|
-
/** Order’s total price after discounts and tax. Before update */
|
|
1541
|
-
originalTotal?: Price;
|
|
1542
|
-
/** Order’s total price after discounts and tax. After update */
|
|
1543
|
-
newTotal?: Price;
|
|
1544
|
-
}
|
|
1545
|
-
export declare enum ActivityType {
|
|
1546
|
-
ORDER_REFUNDED = "ORDER_REFUNDED",
|
|
1547
|
-
ORDER_PLACED = "ORDER_PLACED",
|
|
1548
|
-
ORDER_PAID = "ORDER_PAID",
|
|
1549
|
-
ORDER_FULFILLED = "ORDER_FULFILLED",
|
|
1550
|
-
ORDER_NOT_FULFILLED = "ORDER_NOT_FULFILLED",
|
|
1551
|
-
ORDER_CANCELED = "ORDER_CANCELED",
|
|
1552
|
-
DOWNLOAD_LINK_SENT = "DOWNLOAD_LINK_SENT",
|
|
1553
|
-
TRACKING_NUMBER_ADDED = "TRACKING_NUMBER_ADDED",
|
|
1554
|
-
TRACKING_NUMBER_EDITED = "TRACKING_NUMBER_EDITED",
|
|
1555
|
-
TRACKING_LINK_ADDED = "TRACKING_LINK_ADDED",
|
|
1556
|
-
SHIPPING_CONFIRMATION_EMAIL_SENT = "SHIPPING_CONFIRMATION_EMAIL_SENT",
|
|
1557
|
-
INVOICE_ADDED = "INVOICE_ADDED",
|
|
1558
|
-
INVOICE_REMOVED = "INVOICE_REMOVED",
|
|
1559
|
-
INVOICE_SENT = "INVOICE_SENT",
|
|
1560
|
-
FULFILLER_EMAIL_SENT = "FULFILLER_EMAIL_SENT",
|
|
1561
|
-
SHIPPING_ADDRESS_EDITED = "SHIPPING_ADDRESS_EDITED",
|
|
1562
|
-
EMAIL_EDITED = "EMAIL_EDITED",
|
|
1563
|
-
PICKUP_READY_EMAIL_SENT = "PICKUP_READY_EMAIL_SENT",
|
|
1564
|
-
CUSTOM_ACTIVITY = "CUSTOM_ACTIVITY",
|
|
1565
|
-
MERCHANT_COMMENT = "MERCHANT_COMMENT",
|
|
1566
|
-
ORDER_CREATED_FROM_EXCHANGE = "ORDER_CREATED_FROM_EXCHANGE",
|
|
1567
|
-
NEW_EXCHANGE_ORDER_CREATED = "NEW_EXCHANGE_ORDER_CREATED",
|
|
1568
|
-
ORDER_PARTIALLY_PAID = "ORDER_PARTIALLY_PAID",
|
|
1569
|
-
DRAFT_ORDER_CHANGES_APPLIED = "DRAFT_ORDER_CHANGES_APPLIED"
|
|
1570
|
-
}
|
|
1571
|
-
export declare enum AttributionSource {
|
|
1572
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
1573
|
-
FACEBOOK_ADS = "FACEBOOK_ADS"
|
|
1574
|
-
}
|
|
1575
|
-
export interface V1CreatedBy extends V1CreatedByStringOneOf {
|
|
1576
|
-
/**
|
|
1577
|
-
* User ID - when the order was created by a Wix user on behalf of a buyer.
|
|
1578
|
-
* For example, via POS (point of service).
|
|
1579
|
-
*/
|
|
1580
|
-
userId?: string;
|
|
1581
|
-
/** Member ID - when the order was created by a **logged in** site visitor. */
|
|
1582
|
-
memberId?: string;
|
|
1583
|
-
/** Visitor ID - when the order was created by a site visitor that was **not** logged in. */
|
|
1584
|
-
visitorId?: string;
|
|
1585
|
-
/** App ID - when the order was created by an external application. */
|
|
1586
|
-
appId?: string;
|
|
1587
|
-
}
|
|
1588
|
-
/** @oneof */
|
|
1589
|
-
export interface V1CreatedByStringOneOf {
|
|
1590
|
-
/**
|
|
1591
|
-
* User ID - when the order was created by a Wix user on behalf of a buyer.
|
|
1592
|
-
* For example, via POS (point of service).
|
|
1593
|
-
*/
|
|
1594
|
-
userId?: string;
|
|
1595
|
-
/** Member ID - when the order was created by a **logged in** site visitor. */
|
|
1596
|
-
memberId?: string;
|
|
1597
|
-
/** Visitor ID - when the order was created by a site visitor that was **not** logged in. */
|
|
1598
|
-
visitorId?: string;
|
|
1599
|
-
/** App ID - when the order was created by an external application. */
|
|
1600
|
-
appId?: string;
|
|
1601
|
-
}
|
|
1602
|
-
export interface ChannelInfo {
|
|
1603
|
-
/** Sales channel that submitted the order. */
|
|
1604
|
-
type?: ChannelType;
|
|
1605
|
-
/** Reference to an order ID from an external system. */
|
|
1606
|
-
externalOrderId?: string | null;
|
|
1607
|
-
/** URL to the order in the external system. */
|
|
1608
|
-
externalOrderUrl?: string | null;
|
|
1609
|
-
}
|
|
1610
|
-
export declare enum ChannelType {
|
|
1611
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
1612
|
-
WEB = "WEB",
|
|
1613
|
-
POS = "POS",
|
|
1614
|
-
EBAY = "EBAY",
|
|
1615
|
-
AMAZON = "AMAZON",
|
|
1616
|
-
OTHER_PLATFORM = "OTHER_PLATFORM",
|
|
1617
|
-
WIX_APP_STORE = "WIX_APP_STORE",
|
|
1618
|
-
WIX_INVOICES = "WIX_INVOICES",
|
|
1619
|
-
BACKOFFICE_MERCHANT = "BACKOFFICE_MERCHANT",
|
|
1620
|
-
WISH = "WISH",
|
|
1621
|
-
CLASS_PASS = "CLASS_PASS",
|
|
1622
|
-
GLOBAL_E = "GLOBAL_E"
|
|
1623
|
-
}
|
|
1624
|
-
export interface CustomField {
|
|
1625
|
-
/** Custom field value. */
|
|
1626
|
-
value?: any;
|
|
1627
|
-
/** Custom field title. */
|
|
1628
|
-
title?: string;
|
|
1629
|
-
/** Translated custom field title. */
|
|
1630
|
-
translatedTitle?: string | null;
|
|
1631
|
-
}
|
|
1632
|
-
export interface V1BalanceSummary {
|
|
1633
|
-
/**
|
|
1634
|
-
* collectible amount to pay. Part of order’s price_summary excluding all approved payments amount
|
|
1635
|
-
* @readonly
|
|
1636
|
-
*/
|
|
1637
|
-
balance?: Balance;
|
|
1638
|
-
}
|
|
1639
|
-
export interface FulfillmentStatusesAggregate {
|
|
1640
|
-
/** Unique string values based on Fulfillment entities statuses */
|
|
1641
|
-
statuses?: string[] | null;
|
|
1642
|
-
}
|
|
1643
|
-
export interface ExtendedFields {
|
|
1644
|
-
/**
|
|
1645
|
-
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
1646
|
-
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
1647
|
-
*
|
|
1648
|
-
* You can only access fields for which you have the appropriate permissions.
|
|
1649
|
-
*/
|
|
1650
|
-
namespaces?: Record<string, Record<string, any>>;
|
|
1651
|
-
}
|
|
1652
|
-
export interface DeleteDraftOrderRequest {
|
|
1653
|
-
/** The draft order id */
|
|
1654
|
-
draftOrderId: string;
|
|
1655
|
-
}
|
|
1656
|
-
export interface DeleteDraftOrderResponse {
|
|
1657
|
-
}
|
|
1658
|
-
export interface QueryDraftOrdersRequest {
|
|
1659
|
-
/** WQL expression */
|
|
1660
|
-
query: CursorQuery;
|
|
1661
|
-
}
|
|
1662
|
-
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
1663
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1664
|
-
cursorPaging?: CursorPaging;
|
|
1665
|
-
/**
|
|
1666
|
-
* Filter object in the following format:
|
|
1667
|
-
* `"filter" : {
|
|
1668
|
-
* "fieldName1": "value1",
|
|
1669
|
-
* "fieldName2":{"$operator":"value2"}
|
|
1670
|
-
* }`
|
|
1671
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
1672
|
-
*/
|
|
1673
|
-
filter?: Record<string, any> | null;
|
|
1674
|
-
/**
|
|
1675
|
-
* Sort object in the following format:
|
|
1676
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
1677
|
-
*/
|
|
1678
|
-
sort?: Sorting[];
|
|
1679
|
-
}
|
|
1680
|
-
/** @oneof */
|
|
1681
|
-
export interface CursorQueryPagingMethodOneOf {
|
|
1682
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1683
|
-
cursorPaging?: CursorPaging;
|
|
1684
|
-
}
|
|
1685
|
-
export interface Sorting {
|
|
1686
|
-
/** Name of the field to sort by. */
|
|
1687
|
-
fieldName?: string;
|
|
1688
|
-
/** Sort order. */
|
|
1689
|
-
order?: SortOrder;
|
|
1690
|
-
}
|
|
1691
|
-
export declare enum SortOrder {
|
|
1692
|
-
ASC = "ASC",
|
|
1693
|
-
DESC = "DESC"
|
|
1694
|
-
}
|
|
1695
|
-
export interface CursorPaging {
|
|
1696
|
-
/** Number of items to load. */
|
|
1697
|
-
limit?: number | null;
|
|
1698
|
-
/**
|
|
1699
|
-
* Pointer to the next or previous page in the list of results.
|
|
1700
|
-
*
|
|
1701
|
-
* You can get the relevant cursor token
|
|
1702
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
1703
|
-
* Not relevant for the first request.
|
|
1704
|
-
*/
|
|
1705
|
-
cursor?: string | null;
|
|
1706
|
-
}
|
|
1707
|
-
export interface QueryDraftOrdersResponse {
|
|
1708
|
-
/** list of edits per order */
|
|
1709
|
-
draftOrders?: DraftOrder[];
|
|
1710
|
-
/** Paging metadata. */
|
|
1711
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
1712
|
-
}
|
|
1713
|
-
export interface CursorPagingMetadata {
|
|
1714
|
-
/** Number of items returned in the response. */
|
|
1715
|
-
count?: number | null;
|
|
1716
|
-
/** Offset that was requested. */
|
|
1717
|
-
cursors?: Cursors;
|
|
1718
|
-
/**
|
|
1719
|
-
* Indicates if there are more results after the current page.
|
|
1720
|
-
* If `true`, another page of results can be retrieved.
|
|
1721
|
-
* If `false`, this is the last page.
|
|
1722
|
-
*/
|
|
1723
|
-
hasNext?: boolean | null;
|
|
1724
|
-
}
|
|
1725
|
-
export interface Cursors {
|
|
1726
|
-
/** Cursor pointing to next page in the list of results. */
|
|
1727
|
-
next?: string | null;
|
|
1728
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
1729
|
-
prev?: string | null;
|
|
1730
|
-
}
|
|
1731
|
-
export interface CommitDraftOrderResponseNonNullableFields {
|
|
1732
|
-
committedDraftOrder?: {
|
|
1733
|
-
lineItems: {
|
|
1734
|
-
added: boolean;
|
|
1735
|
-
changedDetails?: {
|
|
1736
|
-
priceBeforeChange?: {
|
|
1737
|
-
amount: string;
|
|
1738
|
-
formattedAmount: string;
|
|
1739
|
-
};
|
|
1740
|
-
priceDescriptionBeforeChange?: {
|
|
1741
|
-
original: string;
|
|
1742
|
-
};
|
|
1743
|
-
};
|
|
1744
|
-
removed: boolean;
|
|
1745
|
-
lineItem?: {
|
|
1746
|
-
_id: string;
|
|
1747
|
-
productName?: {
|
|
1748
|
-
original: string;
|
|
1749
|
-
};
|
|
1750
|
-
catalogReference?: {
|
|
1751
|
-
catalogItemId: string;
|
|
1752
|
-
appId: string;
|
|
1753
|
-
};
|
|
1754
|
-
quantity: number;
|
|
1755
|
-
totalDiscount?: {
|
|
1756
|
-
amount: string;
|
|
1757
|
-
formattedAmount: string;
|
|
1758
|
-
};
|
|
1759
|
-
descriptionLines: {
|
|
1760
|
-
plainText?: {
|
|
1761
|
-
original: string;
|
|
1762
|
-
};
|
|
1763
|
-
colorInfo?: {
|
|
1764
|
-
original: string;
|
|
1765
|
-
};
|
|
1766
|
-
name?: {
|
|
1767
|
-
original: string;
|
|
1768
|
-
};
|
|
1769
|
-
}[];
|
|
1770
|
-
image: string;
|
|
1771
|
-
physicalProperties?: {
|
|
1772
|
-
shippable: boolean;
|
|
1773
|
-
};
|
|
1774
|
-
itemType?: {
|
|
1775
|
-
preset: ItemTypeItemType;
|
|
1776
|
-
custom: string;
|
|
1777
|
-
};
|
|
1778
|
-
price?: {
|
|
1779
|
-
amount: string;
|
|
1780
|
-
formattedAmount: string;
|
|
1781
|
-
};
|
|
1782
|
-
priceBeforeDiscounts?: {
|
|
1783
|
-
amount: string;
|
|
1784
|
-
formattedAmount: string;
|
|
1785
|
-
};
|
|
1786
|
-
totalPriceBeforeTax?: {
|
|
1787
|
-
amount: string;
|
|
1788
|
-
formattedAmount: string;
|
|
1789
|
-
};
|
|
1790
|
-
totalPriceAfterTax?: {
|
|
1791
|
-
amount: string;
|
|
1792
|
-
formattedAmount: string;
|
|
1793
|
-
};
|
|
1794
|
-
paymentOption: PaymentOptionType;
|
|
1795
|
-
taxDetails?: {
|
|
1796
|
-
taxableAmount?: {
|
|
1797
|
-
amount: string;
|
|
1798
|
-
formattedAmount: string;
|
|
1799
|
-
};
|
|
1800
|
-
taxRate: string;
|
|
1801
|
-
totalTax?: {
|
|
1802
|
-
amount: string;
|
|
1803
|
-
formattedAmount: string;
|
|
1804
|
-
};
|
|
1805
|
-
};
|
|
1806
|
-
subscriptionInfo?: {
|
|
1807
|
-
cycleNumber: number;
|
|
1808
|
-
subscriptionOptionTitle: string;
|
|
1809
|
-
subscriptionSettings?: {
|
|
1810
|
-
frequency: SubscriptionFrequency;
|
|
1811
|
-
autoRenewal: boolean;
|
|
1812
|
-
};
|
|
1813
|
-
};
|
|
1814
|
-
priceDescription?: {
|
|
1815
|
-
original: string;
|
|
1816
|
-
};
|
|
1817
|
-
depositAmount?: {
|
|
1818
|
-
amount: string;
|
|
1819
|
-
formattedAmount: string;
|
|
1820
|
-
};
|
|
1821
|
-
};
|
|
1822
|
-
}[];
|
|
1823
|
-
shippingInfo?: {
|
|
1824
|
-
added: boolean;
|
|
1825
|
-
changedDetails?: {
|
|
1826
|
-
shippingInfoBeforeChange?: {
|
|
1827
|
-
title: string;
|
|
1828
|
-
logistics?: {
|
|
1829
|
-
shippingDestination?: {
|
|
1830
|
-
contactDetails?: {
|
|
1831
|
-
vatId?: {
|
|
1832
|
-
_id: string;
|
|
1833
|
-
type: VatType;
|
|
1834
|
-
};
|
|
1835
|
-
};
|
|
1836
|
-
};
|
|
1837
|
-
pickupDetails?: {
|
|
1838
|
-
pickupMethod: PickupDetailsPickupMethod;
|
|
1839
|
-
};
|
|
1840
|
-
};
|
|
1841
|
-
cost?: {
|
|
1842
|
-
price?: {
|
|
1843
|
-
amount: string;
|
|
1844
|
-
formattedAmount: string;
|
|
1845
|
-
};
|
|
1846
|
-
totalPriceBeforeTax?: {
|
|
1847
|
-
amount: string;
|
|
1848
|
-
formattedAmount: string;
|
|
1849
|
-
};
|
|
1850
|
-
totalPriceAfterTax?: {
|
|
1851
|
-
amount: string;
|
|
1852
|
-
formattedAmount: string;
|
|
1853
|
-
};
|
|
1854
|
-
taxDetails?: {
|
|
1855
|
-
taxableAmount?: {
|
|
1856
|
-
amount: string;
|
|
1857
|
-
formattedAmount: string;
|
|
1858
|
-
};
|
|
1859
|
-
taxRate: string;
|
|
1860
|
-
totalTax?: {
|
|
1861
|
-
amount: string;
|
|
1862
|
-
formattedAmount: string;
|
|
1863
|
-
};
|
|
1864
|
-
};
|
|
1865
|
-
discount?: {
|
|
1866
|
-
amount: string;
|
|
1867
|
-
formattedAmount: string;
|
|
1868
|
-
};
|
|
1869
|
-
};
|
|
1870
|
-
};
|
|
1871
|
-
};
|
|
1872
|
-
removed: boolean;
|
|
1873
|
-
shippingInfo?: {
|
|
1874
|
-
title: string;
|
|
1875
|
-
logistics?: {
|
|
1876
|
-
shippingDestination?: {
|
|
1877
|
-
contactDetails?: {
|
|
1878
|
-
vatId?: {
|
|
1879
|
-
_id: string;
|
|
1880
|
-
type: VatType;
|
|
1881
|
-
};
|
|
1882
|
-
};
|
|
1883
|
-
};
|
|
1884
|
-
pickupDetails?: {
|
|
1885
|
-
pickupMethod: PickupDetailsPickupMethod;
|
|
1886
|
-
};
|
|
1887
|
-
};
|
|
1888
|
-
cost?: {
|
|
1889
|
-
price?: {
|
|
1890
|
-
amount: string;
|
|
1891
|
-
formattedAmount: string;
|
|
1892
|
-
};
|
|
1893
|
-
totalPriceBeforeTax?: {
|
|
1894
|
-
amount: string;
|
|
1895
|
-
formattedAmount: string;
|
|
1896
|
-
};
|
|
1897
|
-
totalPriceAfterTax?: {
|
|
1898
|
-
amount: string;
|
|
1899
|
-
formattedAmount: string;
|
|
1900
|
-
};
|
|
1901
|
-
taxDetails?: {
|
|
1902
|
-
taxableAmount?: {
|
|
1903
|
-
amount: string;
|
|
1904
|
-
formattedAmount: string;
|
|
1905
|
-
};
|
|
1906
|
-
taxRate: string;
|
|
1907
|
-
totalTax?: {
|
|
1908
|
-
amount: string;
|
|
1909
|
-
formattedAmount: string;
|
|
1910
|
-
};
|
|
1911
|
-
};
|
|
1912
|
-
discount?: {
|
|
1913
|
-
amount: string;
|
|
1914
|
-
formattedAmount: string;
|
|
1915
|
-
};
|
|
1916
|
-
};
|
|
1917
|
-
};
|
|
1918
|
-
};
|
|
1919
|
-
buyerInfo?: {
|
|
1920
|
-
visitorId: string;
|
|
1921
|
-
memberId: string;
|
|
1922
|
-
};
|
|
1923
|
-
billingInfo?: {
|
|
1924
|
-
contactDetails?: {
|
|
1925
|
-
vatId?: {
|
|
1926
|
-
_id: string;
|
|
1927
|
-
type: VatType;
|
|
1928
|
-
};
|
|
1929
|
-
};
|
|
1930
|
-
};
|
|
1931
|
-
additionalFees: {
|
|
1932
|
-
additionalFee?: {
|
|
1933
|
-
name: string;
|
|
1934
|
-
price?: {
|
|
1935
|
-
amount: string;
|
|
1936
|
-
formattedAmount: string;
|
|
1937
|
-
};
|
|
1938
|
-
taxDetails?: {
|
|
1939
|
-
taxableAmount?: {
|
|
1940
|
-
amount: string;
|
|
1941
|
-
formattedAmount: string;
|
|
1942
|
-
};
|
|
1943
|
-
taxRate: string;
|
|
1944
|
-
totalTax?: {
|
|
1945
|
-
amount: string;
|
|
1946
|
-
formattedAmount: string;
|
|
1947
|
-
};
|
|
1948
|
-
};
|
|
1949
|
-
priceBeforeTax?: {
|
|
1950
|
-
amount: string;
|
|
1951
|
-
formattedAmount: string;
|
|
1952
|
-
};
|
|
1953
|
-
_id: string;
|
|
1954
|
-
lineItemIds: string[];
|
|
1955
|
-
};
|
|
1956
|
-
taxDetails?: {
|
|
1957
|
-
taxable: boolean;
|
|
1958
|
-
};
|
|
1959
|
-
source: SourceType;
|
|
1960
|
-
applied: boolean;
|
|
1961
|
-
}[];
|
|
1962
|
-
discounts: {
|
|
1963
|
-
discount?: {
|
|
1964
|
-
coupon?: {
|
|
1965
|
-
_id: string;
|
|
1966
|
-
code: string;
|
|
1967
|
-
name: string;
|
|
1968
|
-
amount?: {
|
|
1969
|
-
amount: string;
|
|
1970
|
-
formattedAmount: string;
|
|
1971
|
-
};
|
|
1972
|
-
};
|
|
1973
|
-
merchantDiscount?: {
|
|
1974
|
-
discountReason: DiscountReason;
|
|
1975
|
-
amount?: {
|
|
1976
|
-
amount: string;
|
|
1977
|
-
formattedAmount: string;
|
|
1978
|
-
};
|
|
1979
|
-
};
|
|
1980
|
-
discountRule?: {
|
|
1981
|
-
_id: string;
|
|
1982
|
-
name?: {
|
|
1983
|
-
original: string;
|
|
1984
|
-
};
|
|
1985
|
-
amount?: {
|
|
1986
|
-
amount: string;
|
|
1987
|
-
formattedAmount: string;
|
|
1988
|
-
};
|
|
1989
|
-
};
|
|
1990
|
-
discountType: AppliedDiscountDiscountType;
|
|
1991
|
-
lineItemIds: string[];
|
|
1992
|
-
};
|
|
1993
|
-
source: SourceType;
|
|
1994
|
-
applied: boolean;
|
|
1995
|
-
}[];
|
|
1996
|
-
createdBy?: {
|
|
1997
|
-
userId: string;
|
|
1998
|
-
appId: string;
|
|
1999
|
-
};
|
|
2000
|
-
status: EditingStatus;
|
|
2001
|
-
weightUnit: WeightUnit;
|
|
2002
|
-
priceSummary?: {
|
|
2003
|
-
subtotal?: {
|
|
2004
|
-
amount: string;
|
|
2005
|
-
formattedAmount: string;
|
|
2006
|
-
};
|
|
2007
|
-
shipping?: {
|
|
2008
|
-
amount: string;
|
|
2009
|
-
formattedAmount: string;
|
|
2010
|
-
};
|
|
2011
|
-
tax?: {
|
|
2012
|
-
amount: string;
|
|
2013
|
-
formattedAmount: string;
|
|
2014
|
-
};
|
|
2015
|
-
discount?: {
|
|
2016
|
-
amount: string;
|
|
2017
|
-
formattedAmount: string;
|
|
2018
|
-
};
|
|
2019
|
-
totalPrice?: {
|
|
2020
|
-
amount: string;
|
|
2021
|
-
formattedAmount: string;
|
|
2022
|
-
};
|
|
2023
|
-
total?: {
|
|
2024
|
-
amount: string;
|
|
2025
|
-
formattedAmount: string;
|
|
2026
|
-
};
|
|
2027
|
-
totalAdditionalFees?: {
|
|
2028
|
-
amount: string;
|
|
2029
|
-
formattedAmount: string;
|
|
2030
|
-
};
|
|
2031
|
-
};
|
|
2032
|
-
taxSummary?: {
|
|
2033
|
-
totalTax?: {
|
|
2034
|
-
amount: string;
|
|
2035
|
-
formattedAmount: string;
|
|
2036
|
-
};
|
|
2037
|
-
};
|
|
2038
|
-
balanceSummary?: {
|
|
2039
|
-
balance?: {
|
|
2040
|
-
amount: string;
|
|
2041
|
-
formattedAmount: string;
|
|
2042
|
-
};
|
|
2043
|
-
};
|
|
2044
|
-
commitSettings?: {
|
|
2045
|
-
updateInventory: {
|
|
2046
|
-
lineItemId: string;
|
|
2047
|
-
}[];
|
|
2048
|
-
};
|
|
2049
|
-
};
|
|
2050
|
-
orderAfterCommit?: {
|
|
2051
|
-
number: string;
|
|
2052
|
-
lineItems: {
|
|
2053
|
-
_id: string;
|
|
2054
|
-
productName?: {
|
|
2055
|
-
original: string;
|
|
2056
|
-
};
|
|
2057
|
-
catalogReference?: {
|
|
2058
|
-
catalogItemId: string;
|
|
2059
|
-
appId: string;
|
|
2060
|
-
};
|
|
2061
|
-
quantity: number;
|
|
2062
|
-
totalDiscount?: {
|
|
2063
|
-
amount: string;
|
|
2064
|
-
formattedAmount: string;
|
|
2065
|
-
};
|
|
2066
|
-
descriptionLines: {
|
|
2067
|
-
plainText?: {
|
|
2068
|
-
original: string;
|
|
2069
|
-
};
|
|
2070
|
-
colorInfo?: {
|
|
2071
|
-
original: string;
|
|
2072
|
-
};
|
|
2073
|
-
name?: {
|
|
2074
|
-
original: string;
|
|
2075
|
-
};
|
|
2076
|
-
}[];
|
|
2077
|
-
image: string;
|
|
2078
|
-
physicalProperties?: {
|
|
2079
|
-
shippable: boolean;
|
|
2080
|
-
};
|
|
2081
|
-
itemType?: {
|
|
2082
|
-
preset: ItemTypeItemType;
|
|
2083
|
-
custom: string;
|
|
2084
|
-
};
|
|
2085
|
-
price?: {
|
|
2086
|
-
amount: string;
|
|
2087
|
-
formattedAmount: string;
|
|
2088
|
-
};
|
|
2089
|
-
priceBeforeDiscounts?: {
|
|
2090
|
-
amount: string;
|
|
2091
|
-
formattedAmount: string;
|
|
2092
|
-
};
|
|
2093
|
-
totalPriceBeforeTax?: {
|
|
2094
|
-
amount: string;
|
|
2095
|
-
formattedAmount: string;
|
|
2096
|
-
};
|
|
2097
|
-
totalPriceAfterTax?: {
|
|
2098
|
-
amount: string;
|
|
2099
|
-
formattedAmount: string;
|
|
2100
|
-
};
|
|
2101
|
-
paymentOption: PaymentOptionType;
|
|
2102
|
-
taxDetails?: {
|
|
2103
|
-
taxableAmount?: {
|
|
2104
|
-
amount: string;
|
|
2105
|
-
formattedAmount: string;
|
|
2106
|
-
};
|
|
2107
|
-
taxRate: string;
|
|
2108
|
-
totalTax?: {
|
|
2109
|
-
amount: string;
|
|
2110
|
-
formattedAmount: string;
|
|
2111
|
-
};
|
|
2112
|
-
};
|
|
2113
|
-
subscriptionInfo?: {
|
|
2114
|
-
cycleNumber: number;
|
|
2115
|
-
subscriptionOptionTitle: string;
|
|
2116
|
-
subscriptionSettings?: {
|
|
2117
|
-
frequency: SubscriptionFrequency;
|
|
2118
|
-
autoRenewal: boolean;
|
|
2119
|
-
};
|
|
2120
|
-
};
|
|
2121
|
-
priceDescription?: {
|
|
2122
|
-
original: string;
|
|
2123
|
-
};
|
|
2124
|
-
depositAmount?: {
|
|
2125
|
-
amount: string;
|
|
2126
|
-
formattedAmount: string;
|
|
2127
|
-
};
|
|
2128
|
-
}[];
|
|
2129
|
-
buyerInfo?: {
|
|
2130
|
-
visitorId: string;
|
|
2131
|
-
memberId: string;
|
|
2132
|
-
};
|
|
2133
|
-
paymentStatus: PaymentStatus;
|
|
2134
|
-
fulfillmentStatus: FulfillmentStatus;
|
|
2135
|
-
weightUnit: WeightUnit;
|
|
2136
|
-
taxIncludedInPrices: boolean;
|
|
2137
|
-
priceSummary?: {
|
|
2138
|
-
subtotal?: {
|
|
2139
|
-
amount: string;
|
|
2140
|
-
formattedAmount: string;
|
|
2141
|
-
};
|
|
2142
|
-
shipping?: {
|
|
2143
|
-
amount: string;
|
|
2144
|
-
formattedAmount: string;
|
|
2145
|
-
};
|
|
2146
|
-
tax?: {
|
|
2147
|
-
amount: string;
|
|
2148
|
-
formattedAmount: string;
|
|
2149
|
-
};
|
|
2150
|
-
discount?: {
|
|
2151
|
-
amount: string;
|
|
2152
|
-
formattedAmount: string;
|
|
2153
|
-
};
|
|
2154
|
-
totalPrice?: {
|
|
2155
|
-
amount: string;
|
|
2156
|
-
formattedAmount: string;
|
|
2157
|
-
};
|
|
2158
|
-
total?: {
|
|
2159
|
-
amount: string;
|
|
2160
|
-
formattedAmount: string;
|
|
2161
|
-
};
|
|
2162
|
-
totalAdditionalFees?: {
|
|
2163
|
-
amount: string;
|
|
2164
|
-
formattedAmount: string;
|
|
2165
|
-
};
|
|
2166
|
-
};
|
|
2167
|
-
billingInfo?: {
|
|
2168
|
-
contactDetails?: {
|
|
2169
|
-
vatId?: {
|
|
2170
|
-
_id: string;
|
|
2171
|
-
type: VatType;
|
|
2172
|
-
};
|
|
2173
|
-
};
|
|
2174
|
-
};
|
|
2175
|
-
shippingInfo?: {
|
|
2176
|
-
title: string;
|
|
2177
|
-
logistics?: {
|
|
2178
|
-
shippingDestination?: {
|
|
2179
|
-
contactDetails?: {
|
|
2180
|
-
vatId?: {
|
|
2181
|
-
_id: string;
|
|
2182
|
-
type: VatType;
|
|
2183
|
-
};
|
|
2184
|
-
};
|
|
2185
|
-
};
|
|
2186
|
-
pickupDetails?: {
|
|
2187
|
-
pickupMethod: PickupDetailsPickupMethod;
|
|
2188
|
-
};
|
|
2189
|
-
};
|
|
2190
|
-
cost?: {
|
|
2191
|
-
price?: {
|
|
2192
|
-
amount: string;
|
|
2193
|
-
formattedAmount: string;
|
|
2194
|
-
};
|
|
2195
|
-
totalPriceBeforeTax?: {
|
|
2196
|
-
amount: string;
|
|
2197
|
-
formattedAmount: string;
|
|
2198
|
-
};
|
|
2199
|
-
totalPriceAfterTax?: {
|
|
2200
|
-
amount: string;
|
|
2201
|
-
formattedAmount: string;
|
|
2202
|
-
};
|
|
2203
|
-
taxDetails?: {
|
|
2204
|
-
taxableAmount?: {
|
|
2205
|
-
amount: string;
|
|
2206
|
-
formattedAmount: string;
|
|
2207
|
-
};
|
|
2208
|
-
taxRate: string;
|
|
2209
|
-
totalTax?: {
|
|
2210
|
-
amount: string;
|
|
2211
|
-
formattedAmount: string;
|
|
2212
|
-
};
|
|
2213
|
-
};
|
|
2214
|
-
discount?: {
|
|
2215
|
-
amount: string;
|
|
2216
|
-
formattedAmount: string;
|
|
2217
|
-
};
|
|
2218
|
-
};
|
|
2219
|
-
};
|
|
2220
|
-
status: OrderStatus;
|
|
2221
|
-
taxSummary?: {
|
|
2222
|
-
totalTax?: {
|
|
2223
|
-
amount: string;
|
|
2224
|
-
formattedAmount: string;
|
|
2225
|
-
};
|
|
2226
|
-
};
|
|
2227
|
-
appliedDiscounts: {
|
|
2228
|
-
coupon?: {
|
|
2229
|
-
_id: string;
|
|
2230
|
-
code: string;
|
|
2231
|
-
name: string;
|
|
2232
|
-
amount?: {
|
|
2233
|
-
amount: string;
|
|
2234
|
-
formattedAmount: string;
|
|
2235
|
-
};
|
|
2236
|
-
};
|
|
2237
|
-
merchantDiscount?: {
|
|
2238
|
-
discountReason: DiscountReason;
|
|
2239
|
-
amount?: {
|
|
2240
|
-
amount: string;
|
|
2241
|
-
formattedAmount: string;
|
|
2242
|
-
};
|
|
2243
|
-
};
|
|
2244
|
-
discountRule?: {
|
|
2245
|
-
_id: string;
|
|
2246
|
-
name?: {
|
|
2247
|
-
original: string;
|
|
2248
|
-
};
|
|
2249
|
-
amount?: {
|
|
2250
|
-
amount: string;
|
|
2251
|
-
formattedAmount: string;
|
|
2252
|
-
};
|
|
2253
|
-
};
|
|
2254
|
-
discountType: AppliedDiscountDiscountType;
|
|
2255
|
-
lineItemIds: string[];
|
|
2256
|
-
}[];
|
|
2257
|
-
activities: {
|
|
2258
|
-
customActivity?: {
|
|
2259
|
-
appId: string;
|
|
2260
|
-
type: string;
|
|
2261
|
-
};
|
|
2262
|
-
merchantComment?: {
|
|
2263
|
-
message: string;
|
|
2264
|
-
};
|
|
2265
|
-
orderRefunded?: {
|
|
2266
|
-
manual: boolean;
|
|
2267
|
-
amount?: {
|
|
2268
|
-
amount: string;
|
|
2269
|
-
formattedAmount: string;
|
|
2270
|
-
};
|
|
2271
|
-
reason: string;
|
|
2272
|
-
};
|
|
2273
|
-
draftOrderChangesApplied?: {
|
|
2274
|
-
draftOrderId: string;
|
|
2275
|
-
changes: {
|
|
2276
|
-
lineItemChanged?: {
|
|
2277
|
-
_id: string;
|
|
2278
|
-
name?: {
|
|
2279
|
-
original: string;
|
|
2280
|
-
};
|
|
2281
|
-
quantity?: {
|
|
2282
|
-
originalQuantity: number;
|
|
2283
|
-
newQuantity: number;
|
|
2284
|
-
diff: number;
|
|
2285
|
-
deltaType: LineItemQuantityChangeType;
|
|
2286
|
-
};
|
|
2287
|
-
price?: {
|
|
2288
|
-
originalPrice?: {
|
|
2289
|
-
amount: string;
|
|
2290
|
-
formattedAmount: string;
|
|
2291
|
-
};
|
|
2292
|
-
newPrice?: {
|
|
2293
|
-
amount: string;
|
|
2294
|
-
formattedAmount: string;
|
|
2295
|
-
};
|
|
2296
|
-
};
|
|
2297
|
-
};
|
|
2298
|
-
lineItemAdded?: {
|
|
2299
|
-
_id: string;
|
|
2300
|
-
name?: {
|
|
2301
|
-
original: string;
|
|
2302
|
-
};
|
|
2303
|
-
quantity: number;
|
|
2304
|
-
};
|
|
2305
|
-
lineItemRemoved?: {
|
|
2306
|
-
_id: string;
|
|
2307
|
-
name?: {
|
|
2308
|
-
original: string;
|
|
2309
|
-
};
|
|
2310
|
-
quantity: number;
|
|
2311
|
-
};
|
|
2312
|
-
discountAdded?: {
|
|
2313
|
-
_id: string;
|
|
2314
|
-
name?: {
|
|
2315
|
-
original: string;
|
|
2316
|
-
};
|
|
2317
|
-
affectedLineItems: {
|
|
2318
|
-
_id: string;
|
|
2319
|
-
name?: {
|
|
2320
|
-
original: string;
|
|
2321
|
-
};
|
|
2322
|
-
amount?: {
|
|
2323
|
-
amount: string;
|
|
2324
|
-
formattedAmount: string;
|
|
2325
|
-
};
|
|
2326
|
-
}[];
|
|
2327
|
-
totalAmount?: {
|
|
2328
|
-
amount: string;
|
|
2329
|
-
formattedAmount: string;
|
|
2330
|
-
};
|
|
2331
|
-
};
|
|
2332
|
-
discountRemoved?: {
|
|
2333
|
-
_id: string;
|
|
2334
|
-
name?: {
|
|
2335
|
-
original: string;
|
|
2336
|
-
};
|
|
2337
|
-
affectedLineItems: {
|
|
2338
|
-
_id: string;
|
|
2339
|
-
name?: {
|
|
2340
|
-
original: string;
|
|
2341
|
-
};
|
|
2342
|
-
amount?: {
|
|
2343
|
-
amount: string;
|
|
2344
|
-
formattedAmount: string;
|
|
2345
|
-
};
|
|
2346
|
-
}[];
|
|
2347
|
-
totalAmount?: {
|
|
2348
|
-
amount: string;
|
|
2349
|
-
formattedAmount: string;
|
|
2350
|
-
};
|
|
2351
|
-
};
|
|
2352
|
-
additionalFeeAdded?: {
|
|
2353
|
-
_id: string;
|
|
2354
|
-
name?: {
|
|
2355
|
-
original: string;
|
|
2356
|
-
};
|
|
2357
|
-
affectedLineItems: {
|
|
2358
|
-
_id: string;
|
|
2359
|
-
name?: {
|
|
2360
|
-
original: string;
|
|
2361
|
-
};
|
|
2362
|
-
amount?: {
|
|
2363
|
-
amount: string;
|
|
2364
|
-
formattedAmount: string;
|
|
2365
|
-
};
|
|
2366
|
-
}[];
|
|
2367
|
-
totalAmount?: {
|
|
2368
|
-
amount: string;
|
|
2369
|
-
formattedAmount: string;
|
|
2370
|
-
};
|
|
2371
|
-
};
|
|
2372
|
-
additionalFeeRemoved?: {
|
|
2373
|
-
_id: string;
|
|
2374
|
-
name?: {
|
|
2375
|
-
original: string;
|
|
2376
|
-
};
|
|
2377
|
-
affectedLineItems: {
|
|
2378
|
-
_id: string;
|
|
2379
|
-
name?: {
|
|
2380
|
-
original: string;
|
|
2381
|
-
};
|
|
2382
|
-
amount?: {
|
|
2383
|
-
amount: string;
|
|
2384
|
-
formattedAmount: string;
|
|
2385
|
-
};
|
|
2386
|
-
}[];
|
|
2387
|
-
totalAmount?: {
|
|
2388
|
-
amount: string;
|
|
2389
|
-
formattedAmount: string;
|
|
2390
|
-
};
|
|
2391
|
-
};
|
|
2392
|
-
totalPriceChanged?: {
|
|
2393
|
-
originalTotal?: {
|
|
2394
|
-
amount: string;
|
|
2395
|
-
formattedAmount: string;
|
|
2396
|
-
};
|
|
2397
|
-
newTotal?: {
|
|
2398
|
-
amount: string;
|
|
2399
|
-
formattedAmount: string;
|
|
2400
|
-
};
|
|
2401
|
-
};
|
|
2402
|
-
}[];
|
|
2403
|
-
};
|
|
2404
|
-
type: ActivityType;
|
|
2405
|
-
}[];
|
|
2406
|
-
attributionSource: AttributionSource;
|
|
2407
|
-
createdBy?: {
|
|
2408
|
-
userId: string;
|
|
2409
|
-
memberId: string;
|
|
2410
|
-
visitorId: string;
|
|
2411
|
-
appId: string;
|
|
2412
|
-
};
|
|
2413
|
-
channelInfo?: {
|
|
2414
|
-
type: ChannelType;
|
|
2415
|
-
};
|
|
2416
|
-
customFields: {
|
|
2417
|
-
title: string;
|
|
2418
|
-
}[];
|
|
2419
|
-
additionalFees: {
|
|
2420
|
-
name: string;
|
|
2421
|
-
price?: {
|
|
2422
|
-
amount: string;
|
|
2423
|
-
formattedAmount: string;
|
|
2424
|
-
};
|
|
2425
|
-
taxDetails?: {
|
|
2426
|
-
taxableAmount?: {
|
|
2427
|
-
amount: string;
|
|
2428
|
-
formattedAmount: string;
|
|
2429
|
-
};
|
|
2430
|
-
taxRate: string;
|
|
2431
|
-
totalTax?: {
|
|
2432
|
-
amount: string;
|
|
2433
|
-
formattedAmount: string;
|
|
2434
|
-
};
|
|
2435
|
-
};
|
|
2436
|
-
priceBeforeTax?: {
|
|
2437
|
-
amount: string;
|
|
2438
|
-
formattedAmount: string;
|
|
2439
|
-
};
|
|
2440
|
-
_id: string;
|
|
2441
|
-
lineItemIds: string[];
|
|
2442
|
-
}[];
|
|
2443
|
-
};
|
|
2444
|
-
}
|
|
2445
|
-
export interface QueryDraftOrdersResponseNonNullableFields {
|
|
2446
|
-
draftOrders: {
|
|
2447
|
-
lineItems: {
|
|
2448
|
-
added: boolean;
|
|
2449
|
-
changedDetails?: {
|
|
2450
|
-
priceBeforeChange?: {
|
|
2451
|
-
amount: string;
|
|
2452
|
-
formattedAmount: string;
|
|
2453
|
-
};
|
|
2454
|
-
priceDescriptionBeforeChange?: {
|
|
2455
|
-
original: string;
|
|
2456
|
-
};
|
|
2457
|
-
};
|
|
2458
|
-
removed: boolean;
|
|
2459
|
-
lineItem?: {
|
|
2460
|
-
_id: string;
|
|
2461
|
-
productName?: {
|
|
2462
|
-
original: string;
|
|
2463
|
-
};
|
|
2464
|
-
catalogReference?: {
|
|
2465
|
-
catalogItemId: string;
|
|
2466
|
-
appId: string;
|
|
2467
|
-
};
|
|
2468
|
-
quantity: number;
|
|
2469
|
-
totalDiscount?: {
|
|
2470
|
-
amount: string;
|
|
2471
|
-
formattedAmount: string;
|
|
2472
|
-
};
|
|
2473
|
-
descriptionLines: {
|
|
2474
|
-
plainText?: {
|
|
2475
|
-
original: string;
|
|
2476
|
-
};
|
|
2477
|
-
colorInfo?: {
|
|
2478
|
-
original: string;
|
|
2479
|
-
};
|
|
2480
|
-
name?: {
|
|
2481
|
-
original: string;
|
|
2482
|
-
};
|
|
2483
|
-
}[];
|
|
2484
|
-
image: string;
|
|
2485
|
-
physicalProperties?: {
|
|
2486
|
-
shippable: boolean;
|
|
2487
|
-
};
|
|
2488
|
-
itemType?: {
|
|
2489
|
-
preset: ItemTypeItemType;
|
|
2490
|
-
custom: string;
|
|
2491
|
-
};
|
|
2492
|
-
price?: {
|
|
2493
|
-
amount: string;
|
|
2494
|
-
formattedAmount: string;
|
|
2495
|
-
};
|
|
2496
|
-
priceBeforeDiscounts?: {
|
|
2497
|
-
amount: string;
|
|
2498
|
-
formattedAmount: string;
|
|
2499
|
-
};
|
|
2500
|
-
totalPriceBeforeTax?: {
|
|
2501
|
-
amount: string;
|
|
2502
|
-
formattedAmount: string;
|
|
2503
|
-
};
|
|
2504
|
-
totalPriceAfterTax?: {
|
|
2505
|
-
amount: string;
|
|
2506
|
-
formattedAmount: string;
|
|
2507
|
-
};
|
|
2508
|
-
paymentOption: PaymentOptionType;
|
|
2509
|
-
taxDetails?: {
|
|
2510
|
-
taxableAmount?: {
|
|
2511
|
-
amount: string;
|
|
2512
|
-
formattedAmount: string;
|
|
2513
|
-
};
|
|
2514
|
-
taxRate: string;
|
|
2515
|
-
totalTax?: {
|
|
2516
|
-
amount: string;
|
|
2517
|
-
formattedAmount: string;
|
|
2518
|
-
};
|
|
2519
|
-
};
|
|
2520
|
-
subscriptionInfo?: {
|
|
2521
|
-
cycleNumber: number;
|
|
2522
|
-
subscriptionOptionTitle: string;
|
|
2523
|
-
subscriptionSettings?: {
|
|
2524
|
-
frequency: SubscriptionFrequency;
|
|
2525
|
-
autoRenewal: boolean;
|
|
2526
|
-
};
|
|
2527
|
-
};
|
|
2528
|
-
priceDescription?: {
|
|
2529
|
-
original: string;
|
|
2530
|
-
};
|
|
2531
|
-
depositAmount?: {
|
|
2532
|
-
amount: string;
|
|
2533
|
-
formattedAmount: string;
|
|
2534
|
-
};
|
|
2535
|
-
};
|
|
2536
|
-
}[];
|
|
2537
|
-
shippingInfo?: {
|
|
2538
|
-
added: boolean;
|
|
2539
|
-
changedDetails?: {
|
|
2540
|
-
shippingInfoBeforeChange?: {
|
|
2541
|
-
title: string;
|
|
2542
|
-
logistics?: {
|
|
2543
|
-
shippingDestination?: {
|
|
2544
|
-
contactDetails?: {
|
|
2545
|
-
vatId?: {
|
|
2546
|
-
_id: string;
|
|
2547
|
-
type: VatType;
|
|
2548
|
-
};
|
|
2549
|
-
};
|
|
2550
|
-
};
|
|
2551
|
-
pickupDetails?: {
|
|
2552
|
-
pickupMethod: PickupDetailsPickupMethod;
|
|
2553
|
-
};
|
|
2554
|
-
};
|
|
2555
|
-
cost?: {
|
|
2556
|
-
price?: {
|
|
2557
|
-
amount: string;
|
|
2558
|
-
formattedAmount: string;
|
|
2559
|
-
};
|
|
2560
|
-
totalPriceBeforeTax?: {
|
|
2561
|
-
amount: string;
|
|
2562
|
-
formattedAmount: string;
|
|
2563
|
-
};
|
|
2564
|
-
totalPriceAfterTax?: {
|
|
2565
|
-
amount: string;
|
|
2566
|
-
formattedAmount: string;
|
|
2567
|
-
};
|
|
2568
|
-
taxDetails?: {
|
|
2569
|
-
taxableAmount?: {
|
|
2570
|
-
amount: string;
|
|
2571
|
-
formattedAmount: string;
|
|
2572
|
-
};
|
|
2573
|
-
taxRate: string;
|
|
2574
|
-
totalTax?: {
|
|
2575
|
-
amount: string;
|
|
2576
|
-
formattedAmount: string;
|
|
2577
|
-
};
|
|
2578
|
-
};
|
|
2579
|
-
discount?: {
|
|
2580
|
-
amount: string;
|
|
2581
|
-
formattedAmount: string;
|
|
2582
|
-
};
|
|
2583
|
-
};
|
|
2584
|
-
};
|
|
2585
|
-
};
|
|
2586
|
-
removed: boolean;
|
|
2587
|
-
shippingInfo?: {
|
|
2588
|
-
title: string;
|
|
2589
|
-
logistics?: {
|
|
2590
|
-
shippingDestination?: {
|
|
2591
|
-
contactDetails?: {
|
|
2592
|
-
vatId?: {
|
|
2593
|
-
_id: string;
|
|
2594
|
-
type: VatType;
|
|
2595
|
-
};
|
|
2596
|
-
};
|
|
2597
|
-
};
|
|
2598
|
-
pickupDetails?: {
|
|
2599
|
-
pickupMethod: PickupDetailsPickupMethod;
|
|
2600
|
-
};
|
|
2601
|
-
};
|
|
2602
|
-
cost?: {
|
|
2603
|
-
price?: {
|
|
2604
|
-
amount: string;
|
|
2605
|
-
formattedAmount: string;
|
|
2606
|
-
};
|
|
2607
|
-
totalPriceBeforeTax?: {
|
|
2608
|
-
amount: string;
|
|
2609
|
-
formattedAmount: string;
|
|
2610
|
-
};
|
|
2611
|
-
totalPriceAfterTax?: {
|
|
2612
|
-
amount: string;
|
|
2613
|
-
formattedAmount: string;
|
|
2614
|
-
};
|
|
2615
|
-
taxDetails?: {
|
|
2616
|
-
taxableAmount?: {
|
|
2617
|
-
amount: string;
|
|
2618
|
-
formattedAmount: string;
|
|
2619
|
-
};
|
|
2620
|
-
taxRate: string;
|
|
2621
|
-
totalTax?: {
|
|
2622
|
-
amount: string;
|
|
2623
|
-
formattedAmount: string;
|
|
2624
|
-
};
|
|
2625
|
-
};
|
|
2626
|
-
discount?: {
|
|
2627
|
-
amount: string;
|
|
2628
|
-
formattedAmount: string;
|
|
2629
|
-
};
|
|
2630
|
-
};
|
|
2631
|
-
};
|
|
2632
|
-
};
|
|
2633
|
-
buyerInfo?: {
|
|
2634
|
-
visitorId: string;
|
|
2635
|
-
memberId: string;
|
|
2636
|
-
};
|
|
2637
|
-
billingInfo?: {
|
|
2638
|
-
contactDetails?: {
|
|
2639
|
-
vatId?: {
|
|
2640
|
-
_id: string;
|
|
2641
|
-
type: VatType;
|
|
2642
|
-
};
|
|
2643
|
-
};
|
|
2644
|
-
};
|
|
2645
|
-
additionalFees: {
|
|
2646
|
-
additionalFee?: {
|
|
2647
|
-
name: string;
|
|
2648
|
-
price?: {
|
|
2649
|
-
amount: string;
|
|
2650
|
-
formattedAmount: string;
|
|
2651
|
-
};
|
|
2652
|
-
taxDetails?: {
|
|
2653
|
-
taxableAmount?: {
|
|
2654
|
-
amount: string;
|
|
2655
|
-
formattedAmount: string;
|
|
2656
|
-
};
|
|
2657
|
-
taxRate: string;
|
|
2658
|
-
totalTax?: {
|
|
2659
|
-
amount: string;
|
|
2660
|
-
formattedAmount: string;
|
|
2661
|
-
};
|
|
2662
|
-
};
|
|
2663
|
-
priceBeforeTax?: {
|
|
2664
|
-
amount: string;
|
|
2665
|
-
formattedAmount: string;
|
|
2666
|
-
};
|
|
2667
|
-
_id: string;
|
|
2668
|
-
lineItemIds: string[];
|
|
2669
|
-
};
|
|
2670
|
-
taxDetails?: {
|
|
2671
|
-
taxable: boolean;
|
|
2672
|
-
};
|
|
2673
|
-
source: SourceType;
|
|
2674
|
-
applied: boolean;
|
|
2675
|
-
}[];
|
|
2676
|
-
discounts: {
|
|
2677
|
-
discount?: {
|
|
2678
|
-
coupon?: {
|
|
2679
|
-
_id: string;
|
|
2680
|
-
code: string;
|
|
2681
|
-
name: string;
|
|
2682
|
-
amount?: {
|
|
2683
|
-
amount: string;
|
|
2684
|
-
formattedAmount: string;
|
|
2685
|
-
};
|
|
2686
|
-
};
|
|
2687
|
-
merchantDiscount?: {
|
|
2688
|
-
discountReason: DiscountReason;
|
|
2689
|
-
amount?: {
|
|
2690
|
-
amount: string;
|
|
2691
|
-
formattedAmount: string;
|
|
2692
|
-
};
|
|
2693
|
-
};
|
|
2694
|
-
discountRule?: {
|
|
2695
|
-
_id: string;
|
|
2696
|
-
name?: {
|
|
2697
|
-
original: string;
|
|
2698
|
-
};
|
|
2699
|
-
amount?: {
|
|
2700
|
-
amount: string;
|
|
2701
|
-
formattedAmount: string;
|
|
2702
|
-
};
|
|
2703
|
-
};
|
|
2704
|
-
discountType: AppliedDiscountDiscountType;
|
|
2705
|
-
lineItemIds: string[];
|
|
2706
|
-
};
|
|
2707
|
-
source: SourceType;
|
|
2708
|
-
applied: boolean;
|
|
2709
|
-
}[];
|
|
2710
|
-
createdBy?: {
|
|
2711
|
-
userId: string;
|
|
2712
|
-
appId: string;
|
|
2713
|
-
};
|
|
2714
|
-
status: EditingStatus;
|
|
2715
|
-
weightUnit: WeightUnit;
|
|
2716
|
-
priceSummary?: {
|
|
2717
|
-
subtotal?: {
|
|
2718
|
-
amount: string;
|
|
2719
|
-
formattedAmount: string;
|
|
2720
|
-
};
|
|
2721
|
-
shipping?: {
|
|
2722
|
-
amount: string;
|
|
2723
|
-
formattedAmount: string;
|
|
2724
|
-
};
|
|
2725
|
-
tax?: {
|
|
2726
|
-
amount: string;
|
|
2727
|
-
formattedAmount: string;
|
|
2728
|
-
};
|
|
2729
|
-
discount?: {
|
|
2730
|
-
amount: string;
|
|
2731
|
-
formattedAmount: string;
|
|
2732
|
-
};
|
|
2733
|
-
totalPrice?: {
|
|
2734
|
-
amount: string;
|
|
2735
|
-
formattedAmount: string;
|
|
2736
|
-
};
|
|
2737
|
-
total?: {
|
|
2738
|
-
amount: string;
|
|
2739
|
-
formattedAmount: string;
|
|
2740
|
-
};
|
|
2741
|
-
totalAdditionalFees?: {
|
|
2742
|
-
amount: string;
|
|
2743
|
-
formattedAmount: string;
|
|
2744
|
-
};
|
|
2745
|
-
};
|
|
2746
|
-
taxSummary?: {
|
|
2747
|
-
totalTax?: {
|
|
2748
|
-
amount: string;
|
|
2749
|
-
formattedAmount: string;
|
|
2750
|
-
};
|
|
2751
|
-
};
|
|
2752
|
-
balanceSummary?: {
|
|
2753
|
-
balance?: {
|
|
2754
|
-
amount: string;
|
|
2755
|
-
formattedAmount: string;
|
|
2756
|
-
};
|
|
2757
|
-
};
|
|
2758
|
-
commitSettings?: {
|
|
2759
|
-
updateInventory: {
|
|
2760
|
-
lineItemId: string;
|
|
2761
|
-
}[];
|
|
2762
|
-
};
|
|
2763
|
-
}[];
|
|
2764
|
-
}
|
|
2765
|
-
/**
|
|
2766
|
-
* Commit latest changes to the baseline order and control what side-effects will be applied.
|
|
2767
|
-
* Commit cannot be undone or reverted.
|
|
2768
|
-
* Order-edit become closed for editing, however it's kept for reference and can be retrieved.
|
|
2769
|
-
* @param draftOrderId - The draft order id
|
|
2770
|
-
* @public
|
|
2771
|
-
* @documentationMaturity preview
|
|
2772
|
-
* @requiredField draftOrderId
|
|
2773
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
2774
|
-
* @applicableIdentity APP
|
|
2775
|
-
*/
|
|
2776
|
-
export declare function commitDraftOrder(draftOrderId: string, options?: CommitDraftOrderOptions): Promise<CommitDraftOrderResponse & CommitDraftOrderResponseNonNullableFields>;
|
|
2777
|
-
export interface CommitDraftOrderOptions {
|
|
2778
|
-
/** Optional side effects to trigger */
|
|
2779
|
-
commitSettings?: DraftOrderCommitSettings;
|
|
2780
|
-
/** Reason for edit, given by user (optional). */
|
|
2781
|
-
reason?: string | null;
|
|
2782
|
-
}
|
|
2783
|
-
/**
|
|
2784
|
-
* Delete order-edit entity with all pending changes.
|
|
2785
|
-
* Order-edit in status 'COMMITTED' cannot be deleted.
|
|
2786
|
-
* @param draftOrderId - The draft order id
|
|
2787
|
-
* @public
|
|
2788
|
-
* @documentationMaturity preview
|
|
2789
|
-
* @requiredField draftOrderId
|
|
2790
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
2791
|
-
* @applicableIdentity APP
|
|
2792
|
-
*/
|
|
2793
|
-
export declare function deleteDraftOrder(draftOrderId: string): Promise<void>;
|
|
2794
|
-
/**
|
|
2795
|
-
* Query draft orders by order id or by date range or status.
|
|
2796
|
-
* @public
|
|
2797
|
-
* @documentationMaturity preview
|
|
2798
|
-
* @permissionScope Manage eCommerce - all permissions
|
|
2799
|
-
* @applicableIdentity APP
|
|
2800
|
-
*/
|
|
2801
|
-
export declare function queryDraftOrders(): DraftOrdersQueryBuilder;
|
|
2802
|
-
interface QueryCursorResult {
|
|
2803
|
-
cursors: Cursors;
|
|
2804
|
-
hasNext: () => boolean;
|
|
2805
|
-
hasPrev: () => boolean;
|
|
2806
|
-
length: number;
|
|
2807
|
-
pageSize: number;
|
|
2808
|
-
}
|
|
2809
|
-
export interface DraftOrdersQueryResult extends QueryCursorResult {
|
|
2810
|
-
items: DraftOrder[];
|
|
2811
|
-
query: DraftOrdersQueryBuilder;
|
|
2812
|
-
next: () => Promise<DraftOrdersQueryResult>;
|
|
2813
|
-
prev: () => Promise<DraftOrdersQueryResult>;
|
|
2814
|
-
}
|
|
2815
|
-
export interface DraftOrdersQueryBuilder {
|
|
2816
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2817
|
-
* @param value - Value to compare against.
|
|
2818
|
-
* @documentationMaturity preview
|
|
2819
|
-
*/
|
|
2820
|
-
eq: (propertyName: 'orderId' | '_createdDate' | '_updatedDate' | 'status', value: any) => DraftOrdersQueryBuilder;
|
|
2821
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2822
|
-
* @param value - Value to compare against.
|
|
2823
|
-
* @documentationMaturity preview
|
|
2824
|
-
*/
|
|
2825
|
-
ne: (propertyName: 'orderId' | '_createdDate' | '_updatedDate' | 'status', value: any) => DraftOrdersQueryBuilder;
|
|
2826
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2827
|
-
* @param value - Value to compare against.
|
|
2828
|
-
* @documentationMaturity preview
|
|
2829
|
-
*/
|
|
2830
|
-
ge: (propertyName: '_createdDate' | '_updatedDate', value: any) => DraftOrdersQueryBuilder;
|
|
2831
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2832
|
-
* @param value - Value to compare against.
|
|
2833
|
-
* @documentationMaturity preview
|
|
2834
|
-
*/
|
|
2835
|
-
gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => DraftOrdersQueryBuilder;
|
|
2836
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2837
|
-
* @param value - Value to compare against.
|
|
2838
|
-
* @documentationMaturity preview
|
|
2839
|
-
*/
|
|
2840
|
-
le: (propertyName: '_createdDate' | '_updatedDate', value: any) => DraftOrdersQueryBuilder;
|
|
2841
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2842
|
-
* @param value - Value to compare against.
|
|
2843
|
-
* @documentationMaturity preview
|
|
2844
|
-
*/
|
|
2845
|
-
lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => DraftOrdersQueryBuilder;
|
|
2846
|
-
/** @param propertyName - Property whose value is compared with `string`.
|
|
2847
|
-
* @param string - String to compare against. Case-insensitive.
|
|
2848
|
-
* @documentationMaturity preview
|
|
2849
|
-
*/
|
|
2850
|
-
startsWith: (propertyName: 'orderId', value: string) => DraftOrdersQueryBuilder;
|
|
2851
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
2852
|
-
* @param values - List of values to compare against.
|
|
2853
|
-
* @documentationMaturity preview
|
|
2854
|
-
*/
|
|
2855
|
-
hasSome: (propertyName: 'orderId' | '_createdDate' | '_updatedDate' | 'status', value: any[]) => DraftOrdersQueryBuilder;
|
|
2856
|
-
/** @documentationMaturity preview */
|
|
2857
|
-
in: (propertyName: 'orderId' | '_createdDate' | '_updatedDate' | 'status', value: any) => DraftOrdersQueryBuilder;
|
|
2858
|
-
/** @documentationMaturity preview */
|
|
2859
|
-
exists: (propertyName: 'orderId' | '_createdDate' | '_updatedDate' | 'status', value: boolean) => DraftOrdersQueryBuilder;
|
|
2860
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
2861
|
-
* @documentationMaturity preview
|
|
2862
|
-
*/
|
|
2863
|
-
ascending: (...propertyNames: Array<'orderId' | '_createdDate' | '_updatedDate' | 'status'>) => DraftOrdersQueryBuilder;
|
|
2864
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
2865
|
-
* @documentationMaturity preview
|
|
2866
|
-
*/
|
|
2867
|
-
descending: (...propertyNames: Array<'orderId' | '_createdDate' | '_updatedDate' | 'status'>) => DraftOrdersQueryBuilder;
|
|
2868
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
2869
|
-
* @documentationMaturity preview
|
|
2870
|
-
*/
|
|
2871
|
-
limit: (limit: number) => DraftOrdersQueryBuilder;
|
|
2872
|
-
/** @param cursor - A pointer to specific record
|
|
2873
|
-
* @documentationMaturity preview
|
|
2874
|
-
*/
|
|
2875
|
-
skipTo: (cursor: string) => DraftOrdersQueryBuilder;
|
|
2876
|
-
/** @documentationMaturity preview */
|
|
2877
|
-
find: () => Promise<DraftOrdersQueryResult>;
|
|
2878
|
-
}
|
|
2879
|
-
export {};
|