@wix/ecom 1.0.843 → 1.0.844
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ecom",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.844",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@wix/ecom_discount-rules": "1.0.62",
|
|
40
40
|
"@wix/ecom_discounts": "1.0.14",
|
|
41
41
|
"@wix/ecom_discounts-custom-trigger": "1.0.17",
|
|
42
|
-
"@wix/ecom_draft-orders": "1.0.
|
|
42
|
+
"@wix/ecom_draft-orders": "1.0.44",
|
|
43
43
|
"@wix/ecom_gift-vouchers": "1.0.12",
|
|
44
44
|
"@wix/ecom_gift-vouchers-provider": "1.0.12",
|
|
45
45
|
"@wix/ecom_local-delivery-options": "1.0.21",
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"@wix/ecom_order-invoices": "1.0.48",
|
|
49
49
|
"@wix/ecom_order-payment-requests": "1.0.20",
|
|
50
50
|
"@wix/ecom_order-transactions": "1.0.78",
|
|
51
|
-
"@wix/ecom_orders": "1.0.
|
|
51
|
+
"@wix/ecom_orders": "1.0.150",
|
|
52
52
|
"@wix/ecom_orders-settings": "1.0.54",
|
|
53
|
-
"@wix/ecom_payment-settings": "1.0.
|
|
53
|
+
"@wix/ecom_payment-settings": "1.0.78",
|
|
54
54
|
"@wix/ecom_pickup-locations": "1.0.18",
|
|
55
55
|
"@wix/ecom_recommendations": "1.0.52",
|
|
56
56
|
"@wix/ecom_recommendations-provider": "1.0.11",
|
|
57
57
|
"@wix/ecom_shipping-options": "1.0.16",
|
|
58
58
|
"@wix/ecom_shipping-rates": "1.0.53",
|
|
59
59
|
"@wix/ecom_shippo-configurations": "1.0.23",
|
|
60
|
-
"@wix/ecom_subscription-contracts": "1.0.
|
|
60
|
+
"@wix/ecom_subscription-contracts": "1.0.11",
|
|
61
61
|
"@wix/ecom_tip-settings": "1.0.2",
|
|
62
62
|
"@wix/ecom_tippable-staff": "1.0.2",
|
|
63
63
|
"@wix/ecom_tips": "1.0.4",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"fqdn": ""
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
"falconPackageHash": "
|
|
90
|
+
"falconPackageHash": "8031e3b5087c0cd708b41cce5c68e5b8acf836dc3ec8c3af0b1bd3c6"
|
|
91
91
|
}
|
|
@@ -2358,15 +2358,9 @@ interface OrderLineItem$2 {
|
|
|
2358
2358
|
* 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).
|
|
2359
2359
|
*/
|
|
2360
2360
|
fulfillerId?: string | null;
|
|
2361
|
-
/**
|
|
2362
|
-
* Number of items that were refunded.
|
|
2363
|
-
* @readonly
|
|
2364
|
-
*/
|
|
2361
|
+
/** Number of items that were refunded. */
|
|
2365
2362
|
refundQuantity?: number | null;
|
|
2366
|
-
/**
|
|
2367
|
-
* Number of items restocked.
|
|
2368
|
-
* @readonly
|
|
2369
|
-
*/
|
|
2363
|
+
/** Number of items restocked. */
|
|
2370
2364
|
restockQuantity?: number | null;
|
|
2371
2365
|
/** Line item price after line item discounts for display purposes. */
|
|
2372
2366
|
price?: Price$5;
|
|
@@ -3571,11 +3565,11 @@ interface SubscriptionContractCreatedEnvelope {
|
|
|
3571
3565
|
entity: SubscriptionContract;
|
|
3572
3566
|
metadata: EventMetadata$d;
|
|
3573
3567
|
}
|
|
3574
|
-
interface
|
|
3575
|
-
entity: SubscriptionContract;
|
|
3568
|
+
interface SubscriptionContractDeletedEnvelope {
|
|
3576
3569
|
metadata: EventMetadata$d;
|
|
3577
3570
|
}
|
|
3578
|
-
interface
|
|
3571
|
+
interface SubscriptionContractUpdatedEnvelope {
|
|
3572
|
+
entity: SubscriptionContract;
|
|
3579
3573
|
metadata: EventMetadata$d;
|
|
3580
3574
|
}
|
|
3581
3575
|
interface QueryCursorResult$c {
|
|
@@ -3660,8 +3654,8 @@ interface QuerySubscriptionContractsSignature {
|
|
|
3660
3654
|
(): SubscriptionContractsQueryBuilder;
|
|
3661
3655
|
}
|
|
3662
3656
|
declare const onSubscriptionContractCreated$1: EventDefinition<SubscriptionContractCreatedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_created">;
|
|
3663
|
-
declare const onSubscriptionContractUpdated$1: EventDefinition<SubscriptionContractUpdatedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_updated">;
|
|
3664
3657
|
declare const onSubscriptionContractDeleted$1: EventDefinition<SubscriptionContractDeletedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_deleted">;
|
|
3658
|
+
declare const onSubscriptionContractUpdated$1: EventDefinition<SubscriptionContractUpdatedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_updated">;
|
|
3665
3659
|
|
|
3666
3660
|
declare function createEventModule$d<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3667
3661
|
|
|
@@ -3672,14 +3666,14 @@ type _publicOnSubscriptionContractCreatedType = typeof onSubscriptionContractCre
|
|
|
3672
3666
|
/** */
|
|
3673
3667
|
declare const onSubscriptionContractCreated: ReturnType<typeof createEventModule$d<_publicOnSubscriptionContractCreatedType>>;
|
|
3674
3668
|
|
|
3675
|
-
type _publicOnSubscriptionContractUpdatedType = typeof onSubscriptionContractUpdated$1;
|
|
3676
|
-
/** */
|
|
3677
|
-
declare const onSubscriptionContractUpdated: ReturnType<typeof createEventModule$d<_publicOnSubscriptionContractUpdatedType>>;
|
|
3678
|
-
|
|
3679
3669
|
type _publicOnSubscriptionContractDeletedType = typeof onSubscriptionContractDeleted$1;
|
|
3680
3670
|
/** */
|
|
3681
3671
|
declare const onSubscriptionContractDeleted: ReturnType<typeof createEventModule$d<_publicOnSubscriptionContractDeletedType>>;
|
|
3682
3672
|
|
|
3673
|
+
type _publicOnSubscriptionContractUpdatedType = typeof onSubscriptionContractUpdated$1;
|
|
3674
|
+
/** */
|
|
3675
|
+
declare const onSubscriptionContractUpdated: ReturnType<typeof createEventModule$d<_publicOnSubscriptionContractUpdatedType>>;
|
|
3676
|
+
|
|
3683
3677
|
type context$q_CreateSubscriptionContractRequest = CreateSubscriptionContractRequest;
|
|
3684
3678
|
type context$q_CreateSubscriptionContractResponse = CreateSubscriptionContractResponse;
|
|
3685
3679
|
type context$q_GetSubscriptionContractRequest = GetSubscriptionContractRequest;
|
|
@@ -19093,15 +19087,9 @@ interface OrderLineItem$1 {
|
|
|
19093
19087
|
* 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).
|
|
19094
19088
|
*/
|
|
19095
19089
|
fulfillerId?: string | null;
|
|
19096
|
-
/**
|
|
19097
|
-
* Number of items that were refunded.
|
|
19098
|
-
* @readonly
|
|
19099
|
-
*/
|
|
19090
|
+
/** Number of items that were refunded. */
|
|
19100
19091
|
refundQuantity?: number | null;
|
|
19101
|
-
/**
|
|
19102
|
-
* Number of items restocked.
|
|
19103
|
-
* @readonly
|
|
19104
|
-
*/
|
|
19092
|
+
/** Number of items restocked. */
|
|
19105
19093
|
restockQuantity?: number | null;
|
|
19106
19094
|
/** Line item price after line item discounts for display purposes. */
|
|
19107
19095
|
price?: Price$4;
|
|
@@ -20153,7 +20141,8 @@ declare enum RuleType$2 {
|
|
|
20153
20141
|
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
20154
20142
|
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
20155
20143
|
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
20156
|
-
EXACT_LENGTH = "EXACT_LENGTH"
|
|
20144
|
+
EXACT_LENGTH = "EXACT_LENGTH",
|
|
20145
|
+
EXACT_SIZE = "EXACT_SIZE"
|
|
20157
20146
|
}
|
|
20158
20147
|
interface FieldViolation$2 {
|
|
20159
20148
|
field?: string;
|
|
@@ -24299,15 +24288,9 @@ interface OrderLineItem {
|
|
|
24299
24288
|
* To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://www.wix.com/velo/reference/wix-ecom-backend/orderfulfillments/listfulfillmentsforsingleorder).
|
|
24300
24289
|
*/
|
|
24301
24290
|
fulfillerId?: string | null;
|
|
24302
|
-
/**
|
|
24303
|
-
* Number of items that were refunded.
|
|
24304
|
-
* @readonly
|
|
24305
|
-
*/
|
|
24291
|
+
/** Number of items that were refunded. */
|
|
24306
24292
|
refundQuantity?: number | null;
|
|
24307
|
-
/**
|
|
24308
|
-
* Number of items restocked.
|
|
24309
|
-
* @readonly
|
|
24310
|
-
*/
|
|
24293
|
+
/** Number of items restocked. */
|
|
24311
24294
|
restockQuantity?: number | null;
|
|
24312
24295
|
/** Line item price after line item discounts for display purposes. */
|
|
24313
24296
|
price?: Price$3;
|
|
@@ -29139,16 +29122,16 @@ interface OrderUpdatedEnvelope {
|
|
|
29139
29122
|
entity: Order$1;
|
|
29140
29123
|
metadata: EventMetadata$3;
|
|
29141
29124
|
}
|
|
29142
|
-
interface
|
|
29143
|
-
|
|
29125
|
+
interface OrderApprovedEnvelope {
|
|
29126
|
+
data: OrderApproved;
|
|
29144
29127
|
metadata: EventMetadata$3;
|
|
29145
29128
|
}
|
|
29146
29129
|
interface OrderCanceledEnvelope {
|
|
29147
29130
|
data: OrderCanceledEventOrderCanceled;
|
|
29148
29131
|
metadata: EventMetadata$3;
|
|
29149
29132
|
}
|
|
29150
|
-
interface
|
|
29151
|
-
|
|
29133
|
+
interface OrderCreatedEnvelope {
|
|
29134
|
+
entity: Order$1;
|
|
29152
29135
|
metadata: EventMetadata$3;
|
|
29153
29136
|
}
|
|
29154
29137
|
interface PreparePaymentCollectionOptions {
|
|
@@ -29521,9 +29504,9 @@ interface BulkUpdateOrderTagsSignature {
|
|
|
29521
29504
|
}
|
|
29522
29505
|
declare const onOrderPaymentStatusUpdated$1: EventDefinition<OrderPaymentStatusUpdatedEnvelope, "wix.ecom.v1.order_payment_status_updated">;
|
|
29523
29506
|
declare const onOrderUpdated$1: EventDefinition<OrderUpdatedEnvelope, "wix.ecom.v1.order_updated">;
|
|
29524
|
-
declare const onOrderCreated$1: EventDefinition<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
29525
|
-
declare const onOrderCanceled$1: EventDefinition<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
29526
29507
|
declare const onOrderApproved$1: EventDefinition<OrderApprovedEnvelope, "wix.ecom.v1.order_approved">;
|
|
29508
|
+
declare const onOrderCanceled$1: EventDefinition<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
29509
|
+
declare const onOrderCreated$1: EventDefinition<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
29527
29510
|
|
|
29528
29511
|
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
29529
29512
|
|
|
@@ -29549,12 +29532,12 @@ type _publicOnOrderUpdatedType = typeof onOrderUpdated$1;
|
|
|
29549
29532
|
/** */
|
|
29550
29533
|
declare const onOrderUpdated: ReturnType<typeof createEventModule$3<_publicOnOrderUpdatedType>>;
|
|
29551
29534
|
|
|
29552
|
-
type
|
|
29535
|
+
type _publicOnOrderApprovedType = typeof onOrderApproved$1;
|
|
29553
29536
|
/**
|
|
29554
|
-
* Triggered when an order is created
|
|
29555
|
-
* Learn more about [webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
29537
|
+
* Triggered when an order is created and its status is updated to `"APPROVED"`.
|
|
29538
|
+
* Learn more about [eCommerce webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
29556
29539
|
*/
|
|
29557
|
-
declare const
|
|
29540
|
+
declare const onOrderApproved: ReturnType<typeof createEventModule$3<_publicOnOrderApprovedType>>;
|
|
29558
29541
|
|
|
29559
29542
|
type _publicOnOrderCanceledType = typeof onOrderCanceled$1;
|
|
29560
29543
|
/**
|
|
@@ -29563,12 +29546,12 @@ type _publicOnOrderCanceledType = typeof onOrderCanceled$1;
|
|
|
29563
29546
|
*/
|
|
29564
29547
|
declare const onOrderCanceled: ReturnType<typeof createEventModule$3<_publicOnOrderCanceledType>>;
|
|
29565
29548
|
|
|
29566
|
-
type
|
|
29549
|
+
type _publicOnOrderCreatedType = typeof onOrderCreated$1;
|
|
29567
29550
|
/**
|
|
29568
|
-
* Triggered when an order is created
|
|
29569
|
-
* Learn more about [
|
|
29551
|
+
* Triggered when an order is created.
|
|
29552
|
+
* Learn more about [webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
29570
29553
|
*/
|
|
29571
|
-
declare const
|
|
29554
|
+
declare const onOrderCreated: ReturnType<typeof createEventModule$3<_publicOnOrderCreatedType>>;
|
|
29572
29555
|
|
|
29573
29556
|
type context$c_ActivityContentOneOf = ActivityContentOneOf;
|
|
29574
29557
|
type context$c_AddActivitiesRequest = AddActivitiesRequest;
|
|
@@ -2358,15 +2358,9 @@ interface OrderLineItem$2 {
|
|
|
2358
2358
|
* 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).
|
|
2359
2359
|
*/
|
|
2360
2360
|
fulfillerId?: string | null;
|
|
2361
|
-
/**
|
|
2362
|
-
* Number of items that were refunded.
|
|
2363
|
-
* @readonly
|
|
2364
|
-
*/
|
|
2361
|
+
/** Number of items that were refunded. */
|
|
2365
2362
|
refundQuantity?: number | null;
|
|
2366
|
-
/**
|
|
2367
|
-
* Number of items restocked.
|
|
2368
|
-
* @readonly
|
|
2369
|
-
*/
|
|
2363
|
+
/** Number of items restocked. */
|
|
2370
2364
|
restockQuantity?: number | null;
|
|
2371
2365
|
/** Line item price after line item discounts for display purposes. */
|
|
2372
2366
|
price?: Price$5;
|
|
@@ -3571,11 +3565,11 @@ interface SubscriptionContractCreatedEnvelope {
|
|
|
3571
3565
|
entity: SubscriptionContract;
|
|
3572
3566
|
metadata: EventMetadata$d;
|
|
3573
3567
|
}
|
|
3574
|
-
interface
|
|
3575
|
-
entity: SubscriptionContract;
|
|
3568
|
+
interface SubscriptionContractDeletedEnvelope {
|
|
3576
3569
|
metadata: EventMetadata$d;
|
|
3577
3570
|
}
|
|
3578
|
-
interface
|
|
3571
|
+
interface SubscriptionContractUpdatedEnvelope {
|
|
3572
|
+
entity: SubscriptionContract;
|
|
3579
3573
|
metadata: EventMetadata$d;
|
|
3580
3574
|
}
|
|
3581
3575
|
interface QueryCursorResult$c {
|
|
@@ -3660,8 +3654,8 @@ interface QuerySubscriptionContractsSignature {
|
|
|
3660
3654
|
(): SubscriptionContractsQueryBuilder;
|
|
3661
3655
|
}
|
|
3662
3656
|
declare const onSubscriptionContractCreated$1: EventDefinition<SubscriptionContractCreatedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_created">;
|
|
3663
|
-
declare const onSubscriptionContractUpdated$1: EventDefinition<SubscriptionContractUpdatedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_updated">;
|
|
3664
3657
|
declare const onSubscriptionContractDeleted$1: EventDefinition<SubscriptionContractDeletedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_deleted">;
|
|
3658
|
+
declare const onSubscriptionContractUpdated$1: EventDefinition<SubscriptionContractUpdatedEnvelope, "wix.ecom.subscription_contracts.v1.subscription_contract_updated">;
|
|
3665
3659
|
|
|
3666
3660
|
declare function createEventModule$d<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3667
3661
|
|
|
@@ -3672,14 +3666,14 @@ type _publicOnSubscriptionContractCreatedType = typeof onSubscriptionContractCre
|
|
|
3672
3666
|
/** */
|
|
3673
3667
|
declare const onSubscriptionContractCreated: ReturnType<typeof createEventModule$d<_publicOnSubscriptionContractCreatedType>>;
|
|
3674
3668
|
|
|
3675
|
-
type _publicOnSubscriptionContractUpdatedType = typeof onSubscriptionContractUpdated$1;
|
|
3676
|
-
/** */
|
|
3677
|
-
declare const onSubscriptionContractUpdated: ReturnType<typeof createEventModule$d<_publicOnSubscriptionContractUpdatedType>>;
|
|
3678
|
-
|
|
3679
3669
|
type _publicOnSubscriptionContractDeletedType = typeof onSubscriptionContractDeleted$1;
|
|
3680
3670
|
/** */
|
|
3681
3671
|
declare const onSubscriptionContractDeleted: ReturnType<typeof createEventModule$d<_publicOnSubscriptionContractDeletedType>>;
|
|
3682
3672
|
|
|
3673
|
+
type _publicOnSubscriptionContractUpdatedType = typeof onSubscriptionContractUpdated$1;
|
|
3674
|
+
/** */
|
|
3675
|
+
declare const onSubscriptionContractUpdated: ReturnType<typeof createEventModule$d<_publicOnSubscriptionContractUpdatedType>>;
|
|
3676
|
+
|
|
3683
3677
|
type index_d$q_CreateSubscriptionContractRequest = CreateSubscriptionContractRequest;
|
|
3684
3678
|
type index_d$q_CreateSubscriptionContractResponse = CreateSubscriptionContractResponse;
|
|
3685
3679
|
type index_d$q_GetSubscriptionContractRequest = GetSubscriptionContractRequest;
|
|
@@ -19093,15 +19087,9 @@ interface OrderLineItem$1 {
|
|
|
19093
19087
|
* 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).
|
|
19094
19088
|
*/
|
|
19095
19089
|
fulfillerId?: string | null;
|
|
19096
|
-
/**
|
|
19097
|
-
* Number of items that were refunded.
|
|
19098
|
-
* @readonly
|
|
19099
|
-
*/
|
|
19090
|
+
/** Number of items that were refunded. */
|
|
19100
19091
|
refundQuantity?: number | null;
|
|
19101
|
-
/**
|
|
19102
|
-
* Number of items restocked.
|
|
19103
|
-
* @readonly
|
|
19104
|
-
*/
|
|
19092
|
+
/** Number of items restocked. */
|
|
19105
19093
|
restockQuantity?: number | null;
|
|
19106
19094
|
/** Line item price after line item discounts for display purposes. */
|
|
19107
19095
|
price?: Price$4;
|
|
@@ -20153,7 +20141,8 @@ declare enum RuleType$2 {
|
|
|
20153
20141
|
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
20154
20142
|
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
20155
20143
|
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
20156
|
-
EXACT_LENGTH = "EXACT_LENGTH"
|
|
20144
|
+
EXACT_LENGTH = "EXACT_LENGTH",
|
|
20145
|
+
EXACT_SIZE = "EXACT_SIZE"
|
|
20157
20146
|
}
|
|
20158
20147
|
interface FieldViolation$2 {
|
|
20159
20148
|
field?: string;
|
|
@@ -24299,15 +24288,9 @@ interface OrderLineItem {
|
|
|
24299
24288
|
* To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://www.wix.com/velo/reference/wix-ecom-backend/orderfulfillments/listfulfillmentsforsingleorder).
|
|
24300
24289
|
*/
|
|
24301
24290
|
fulfillerId?: string | null;
|
|
24302
|
-
/**
|
|
24303
|
-
* Number of items that were refunded.
|
|
24304
|
-
* @readonly
|
|
24305
|
-
*/
|
|
24291
|
+
/** Number of items that were refunded. */
|
|
24306
24292
|
refundQuantity?: number | null;
|
|
24307
|
-
/**
|
|
24308
|
-
* Number of items restocked.
|
|
24309
|
-
* @readonly
|
|
24310
|
-
*/
|
|
24293
|
+
/** Number of items restocked. */
|
|
24311
24294
|
restockQuantity?: number | null;
|
|
24312
24295
|
/** Line item price after line item discounts for display purposes. */
|
|
24313
24296
|
price?: Price$3;
|
|
@@ -29139,16 +29122,16 @@ interface OrderUpdatedEnvelope {
|
|
|
29139
29122
|
entity: Order$1;
|
|
29140
29123
|
metadata: EventMetadata$3;
|
|
29141
29124
|
}
|
|
29142
|
-
interface
|
|
29143
|
-
|
|
29125
|
+
interface OrderApprovedEnvelope {
|
|
29126
|
+
data: OrderApproved;
|
|
29144
29127
|
metadata: EventMetadata$3;
|
|
29145
29128
|
}
|
|
29146
29129
|
interface OrderCanceledEnvelope {
|
|
29147
29130
|
data: OrderCanceledEventOrderCanceled;
|
|
29148
29131
|
metadata: EventMetadata$3;
|
|
29149
29132
|
}
|
|
29150
|
-
interface
|
|
29151
|
-
|
|
29133
|
+
interface OrderCreatedEnvelope {
|
|
29134
|
+
entity: Order$1;
|
|
29152
29135
|
metadata: EventMetadata$3;
|
|
29153
29136
|
}
|
|
29154
29137
|
interface PreparePaymentCollectionOptions {
|
|
@@ -29521,9 +29504,9 @@ interface BulkUpdateOrderTagsSignature {
|
|
|
29521
29504
|
}
|
|
29522
29505
|
declare const onOrderPaymentStatusUpdated$1: EventDefinition<OrderPaymentStatusUpdatedEnvelope, "wix.ecom.v1.order_payment_status_updated">;
|
|
29523
29506
|
declare const onOrderUpdated$1: EventDefinition<OrderUpdatedEnvelope, "wix.ecom.v1.order_updated">;
|
|
29524
|
-
declare const onOrderCreated$1: EventDefinition<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
29525
|
-
declare const onOrderCanceled$1: EventDefinition<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
29526
29507
|
declare const onOrderApproved$1: EventDefinition<OrderApprovedEnvelope, "wix.ecom.v1.order_approved">;
|
|
29508
|
+
declare const onOrderCanceled$1: EventDefinition<OrderCanceledEnvelope, "wix.ecom.v1.order_canceled">;
|
|
29509
|
+
declare const onOrderCreated$1: EventDefinition<OrderCreatedEnvelope, "wix.ecom.v1.order_created">;
|
|
29527
29510
|
|
|
29528
29511
|
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
29529
29512
|
|
|
@@ -29549,12 +29532,12 @@ type _publicOnOrderUpdatedType = typeof onOrderUpdated$1;
|
|
|
29549
29532
|
/** */
|
|
29550
29533
|
declare const onOrderUpdated: ReturnType<typeof createEventModule$3<_publicOnOrderUpdatedType>>;
|
|
29551
29534
|
|
|
29552
|
-
type
|
|
29535
|
+
type _publicOnOrderApprovedType = typeof onOrderApproved$1;
|
|
29553
29536
|
/**
|
|
29554
|
-
* Triggered when an order is created
|
|
29555
|
-
* Learn more about [webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
29537
|
+
* Triggered when an order is created and its status is updated to `"APPROVED"`.
|
|
29538
|
+
* Learn more about [eCommerce webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
29556
29539
|
*/
|
|
29557
|
-
declare const
|
|
29540
|
+
declare const onOrderApproved: ReturnType<typeof createEventModule$3<_publicOnOrderApprovedType>>;
|
|
29558
29541
|
|
|
29559
29542
|
type _publicOnOrderCanceledType = typeof onOrderCanceled$1;
|
|
29560
29543
|
/**
|
|
@@ -29563,12 +29546,12 @@ type _publicOnOrderCanceledType = typeof onOrderCanceled$1;
|
|
|
29563
29546
|
*/
|
|
29564
29547
|
declare const onOrderCanceled: ReturnType<typeof createEventModule$3<_publicOnOrderCanceledType>>;
|
|
29565
29548
|
|
|
29566
|
-
type
|
|
29549
|
+
type _publicOnOrderCreatedType = typeof onOrderCreated$1;
|
|
29567
29550
|
/**
|
|
29568
|
-
* Triggered when an order is created
|
|
29569
|
-
* Learn more about [
|
|
29551
|
+
* Triggered when an order is created.
|
|
29552
|
+
* Learn more about [webhook payload structure](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/orders/order-object-conversion#webhook-conversion-table).
|
|
29570
29553
|
*/
|
|
29571
|
-
declare const
|
|
29554
|
+
declare const onOrderCreated: ReturnType<typeof createEventModule$3<_publicOnOrderCreatedType>>;
|
|
29572
29555
|
|
|
29573
29556
|
type index_d$c_ActivityContentOneOf = ActivityContentOneOf;
|
|
29574
29557
|
type index_d$c_AddActivitiesRequest = AddActivitiesRequest;
|
|
@@ -1610,15 +1610,9 @@ interface OrderLineItem$5 {
|
|
|
1610
1610
|
* 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).
|
|
1611
1611
|
*/
|
|
1612
1612
|
fulfillerId?: string | null;
|
|
1613
|
-
/**
|
|
1614
|
-
* Number of items that were refunded.
|
|
1615
|
-
* @readonly
|
|
1616
|
-
*/
|
|
1613
|
+
/** Number of items that were refunded. */
|
|
1617
1614
|
refundQuantity?: number | null;
|
|
1618
|
-
/**
|
|
1619
|
-
* Number of items restocked.
|
|
1620
|
-
* @readonly
|
|
1621
|
-
*/
|
|
1615
|
+
/** Number of items restocked. */
|
|
1622
1616
|
restockQuantity?: number | null;
|
|
1623
1617
|
/** Line item price after line item discounts for display purposes. */
|
|
1624
1618
|
price?: Price$b;
|
|
@@ -2777,15 +2771,9 @@ interface OrderLineItem$4 {
|
|
|
2777
2771
|
* 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).
|
|
2778
2772
|
*/
|
|
2779
2773
|
fulfillerId?: string | null;
|
|
2780
|
-
/**
|
|
2781
|
-
* Number of items that were refunded.
|
|
2782
|
-
* @readonly
|
|
2783
|
-
*/
|
|
2774
|
+
/** Number of items that were refunded. */
|
|
2784
2775
|
refundQuantity?: number | null;
|
|
2785
|
-
/**
|
|
2786
|
-
* Number of items restocked.
|
|
2787
|
-
* @readonly
|
|
2788
|
-
*/
|
|
2776
|
+
/** Number of items restocked. */
|
|
2789
2777
|
restockQuantity?: number | null;
|
|
2790
2778
|
/** Line item price after line item discounts for display purposes. */
|
|
2791
2779
|
price?: Price$a;
|
|
@@ -21042,15 +21030,9 @@ interface OrderLineItem$3 {
|
|
|
21042
21030
|
* 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).
|
|
21043
21031
|
*/
|
|
21044
21032
|
fulfillerId?: string | null;
|
|
21045
|
-
/**
|
|
21046
|
-
* Number of items that were refunded.
|
|
21047
|
-
* @readonly
|
|
21048
|
-
*/
|
|
21033
|
+
/** Number of items that were refunded. */
|
|
21049
21034
|
refundQuantity?: number | null;
|
|
21050
|
-
/**
|
|
21051
|
-
* Number of items restocked.
|
|
21052
|
-
* @readonly
|
|
21053
|
-
*/
|
|
21035
|
+
/** Number of items restocked. */
|
|
21054
21036
|
restockQuantity?: number | null;
|
|
21055
21037
|
/** Line item price after line item discounts for display purposes. */
|
|
21056
21038
|
price?: Price$9;
|
|
@@ -22102,7 +22084,8 @@ declare enum RuleType$5 {
|
|
|
22102
22084
|
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
22103
22085
|
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
22104
22086
|
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
22105
|
-
EXACT_LENGTH = "EXACT_LENGTH"
|
|
22087
|
+
EXACT_LENGTH = "EXACT_LENGTH",
|
|
22088
|
+
EXACT_SIZE = "EXACT_SIZE"
|
|
22106
22089
|
}
|
|
22107
22090
|
interface FieldViolation$5 {
|
|
22108
22091
|
field?: string;
|
|
@@ -23673,15 +23656,9 @@ interface OrderLineItem$2 {
|
|
|
23673
23656
|
* 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).
|
|
23674
23657
|
*/
|
|
23675
23658
|
fulfillerId?: string | null;
|
|
23676
|
-
/**
|
|
23677
|
-
* Number of items that were refunded.
|
|
23678
|
-
* @readonly
|
|
23679
|
-
*/
|
|
23659
|
+
/** Number of items that were refunded. */
|
|
23680
23660
|
refundQuantity?: number | null;
|
|
23681
|
-
/**
|
|
23682
|
-
* Number of items restocked.
|
|
23683
|
-
* @readonly
|
|
23684
|
-
*/
|
|
23661
|
+
/** Number of items restocked. */
|
|
23685
23662
|
restockQuantity?: number | null;
|
|
23686
23663
|
/** Line item price after line item discounts for display purposes. */
|
|
23687
23664
|
price?: Price$8;
|
|
@@ -24690,7 +24667,8 @@ declare enum RuleType$4 {
|
|
|
24690
24667
|
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
24691
24668
|
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
24692
24669
|
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
24693
|
-
EXACT_LENGTH = "EXACT_LENGTH"
|
|
24670
|
+
EXACT_LENGTH = "EXACT_LENGTH",
|
|
24671
|
+
EXACT_SIZE = "EXACT_SIZE"
|
|
24694
24672
|
}
|
|
24695
24673
|
interface FieldViolation$4 {
|
|
24696
24674
|
field?: string;
|
|
@@ -27950,15 +27928,9 @@ interface OrderLineItem$1 {
|
|
|
27950
27928
|
* 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).
|
|
27951
27929
|
*/
|
|
27952
27930
|
fulfillerId?: string | null;
|
|
27953
|
-
/**
|
|
27954
|
-
* Number of items that were refunded.
|
|
27955
|
-
* @readonly
|
|
27956
|
-
*/
|
|
27931
|
+
/** Number of items that were refunded. */
|
|
27957
27932
|
refundQuantity?: number | null;
|
|
27958
|
-
/**
|
|
27959
|
-
* Number of items restocked.
|
|
27960
|
-
* @readonly
|
|
27961
|
-
*/
|
|
27933
|
+
/** Number of items restocked. */
|
|
27962
27934
|
restockQuantity?: number | null;
|
|
27963
27935
|
/** Line item price after line item discounts for display purposes. */
|
|
27964
27936
|
price?: Price$7;
|
|
@@ -30266,15 +30238,9 @@ interface OrderLineItem {
|
|
|
30266
30238
|
* To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://www.wix.com/velo/reference/wix-ecom-backend/orderfulfillments/listfulfillmentsforsingleorder).
|
|
30267
30239
|
*/
|
|
30268
30240
|
fulfillerId?: string | null;
|
|
30269
|
-
/**
|
|
30270
|
-
* Number of items that were refunded.
|
|
30271
|
-
* @readonly
|
|
30272
|
-
*/
|
|
30241
|
+
/** Number of items that were refunded. */
|
|
30273
30242
|
refundQuantity?: number | null;
|
|
30274
|
-
/**
|
|
30275
|
-
* Number of items restocked.
|
|
30276
|
-
* @readonly
|
|
30277
|
-
*/
|
|
30243
|
+
/** Number of items restocked. */
|
|
30278
30244
|
restockQuantity?: number | null;
|
|
30279
30245
|
/** Line item price after line item discounts for display purposes. */
|
|
30280
30246
|
price?: Price$6;
|
|
@@ -2894,15 +2894,9 @@ interface OrderLineItem {
|
|
|
2894
2894
|
* 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).
|
|
2895
2895
|
*/
|
|
2896
2896
|
fulfillerId?: string | null;
|
|
2897
|
-
/**
|
|
2898
|
-
* Number of items that were refunded.
|
|
2899
|
-
* @readonly
|
|
2900
|
-
*/
|
|
2897
|
+
/** Number of items that were refunded. */
|
|
2901
2898
|
refundQuantity?: number | null;
|
|
2902
|
-
/**
|
|
2903
|
-
* Number of items restocked.
|
|
2904
|
-
* @readonly
|
|
2905
|
-
*/
|
|
2899
|
+
/** Number of items restocked. */
|
|
2906
2900
|
restockQuantity?: number | null;
|
|
2907
2901
|
/** Line item price after line item discounts for display purposes. */
|
|
2908
2902
|
price?: Price;
|
|
@@ -5026,7 +5020,8 @@ declare enum RuleType {
|
|
|
5026
5020
|
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
5027
5021
|
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
5028
5022
|
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
5029
|
-
EXACT_LENGTH = "EXACT_LENGTH"
|
|
5023
|
+
EXACT_LENGTH = "EXACT_LENGTH",
|
|
5024
|
+
EXACT_SIZE = "EXACT_SIZE"
|
|
5030
5025
|
}
|
|
5031
5026
|
interface FieldViolation {
|
|
5032
5027
|
field?: string;
|
|
@@ -2894,15 +2894,9 @@ interface OrderLineItem {
|
|
|
2894
2894
|
* 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).
|
|
2895
2895
|
*/
|
|
2896
2896
|
fulfillerId?: string | null;
|
|
2897
|
-
/**
|
|
2898
|
-
* Number of items that were refunded.
|
|
2899
|
-
* @readonly
|
|
2900
|
-
*/
|
|
2897
|
+
/** Number of items that were refunded. */
|
|
2901
2898
|
refundQuantity?: number | null;
|
|
2902
|
-
/**
|
|
2903
|
-
* Number of items restocked.
|
|
2904
|
-
* @readonly
|
|
2905
|
-
*/
|
|
2899
|
+
/** Number of items restocked. */
|
|
2906
2900
|
restockQuantity?: number | null;
|
|
2907
2901
|
/** Line item price after line item discounts for display purposes. */
|
|
2908
2902
|
price?: Price;
|
|
@@ -5026,7 +5020,8 @@ declare enum RuleType {
|
|
|
5026
5020
|
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
5027
5021
|
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
5028
5022
|
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
5029
|
-
EXACT_LENGTH = "EXACT_LENGTH"
|
|
5023
|
+
EXACT_LENGTH = "EXACT_LENGTH",
|
|
5024
|
+
EXACT_SIZE = "EXACT_SIZE"
|
|
5030
5025
|
}
|
|
5031
5026
|
interface FieldViolation {
|
|
5032
5027
|
field?: string;
|