@wix/ecom 1.0.828 → 1.0.830
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.
|
@@ -6628,7 +6628,8 @@ declare enum RuleType$b {
|
|
|
6628
6628
|
INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
|
|
6629
6629
|
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
6630
6630
|
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
6631
|
-
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT"
|
|
6631
|
+
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
6632
|
+
EXACT_LENGTH = "EXACT_LENGTH"
|
|
6632
6633
|
}
|
|
6633
6634
|
interface FieldViolation$b {
|
|
6634
6635
|
field?: string;
|
|
@@ -8600,7 +8601,8 @@ declare enum RuleType$a {
|
|
|
8600
8601
|
INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
|
|
8601
8602
|
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
8602
8603
|
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
8603
|
-
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT"
|
|
8604
|
+
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
8605
|
+
EXACT_LENGTH = "EXACT_LENGTH"
|
|
8604
8606
|
}
|
|
8605
8607
|
interface FieldViolation$a {
|
|
8606
8608
|
field?: string;
|
|
@@ -10687,7 +10689,8 @@ declare enum RuleType$9 {
|
|
|
10687
10689
|
INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
|
|
10688
10690
|
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
10689
10691
|
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
10690
|
-
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT"
|
|
10692
|
+
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
10693
|
+
EXACT_LENGTH = "EXACT_LENGTH"
|
|
10691
10694
|
}
|
|
10692
10695
|
interface FieldViolation$9 {
|
|
10693
10696
|
field?: string;
|
|
@@ -12619,7 +12622,8 @@ declare enum RuleType$8 {
|
|
|
12619
12622
|
INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
|
|
12620
12623
|
REQUIRED_FIELD = "REQUIRED_FIELD",
|
|
12621
12624
|
FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
|
|
12622
|
-
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT"
|
|
12625
|
+
ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
|
|
12626
|
+
EXACT_LENGTH = "EXACT_LENGTH"
|
|
12623
12627
|
}
|
|
12624
12628
|
interface FieldViolation$8 {
|
|
12625
12629
|
field?: string;
|
|
@@ -32374,7 +32378,7 @@ interface OrderPaymentRequest$1 {
|
|
|
32374
32378
|
*/
|
|
32375
32379
|
id?: string | null;
|
|
32376
32380
|
/** Additional parameters to identify the source of the order payment request. */
|
|
32377
|
-
source?: Source$
|
|
32381
|
+
source?: Source$3;
|
|
32378
32382
|
/**
|
|
32379
32383
|
* status.
|
|
32380
32384
|
* @readonly
|
|
@@ -32423,7 +32427,7 @@ interface OrderPaymentRequest$1 {
|
|
|
32423
32427
|
*/
|
|
32424
32428
|
updatedDate?: Date | null;
|
|
32425
32429
|
}
|
|
32426
|
-
interface Source$
|
|
32430
|
+
interface Source$3 {
|
|
32427
32431
|
/** App Def ID that created the order payment request. */
|
|
32428
32432
|
appId?: string | null;
|
|
32429
32433
|
/** Reference to an ID from an external system, indicating the original source of the order payment request. */
|
|
@@ -32649,7 +32653,7 @@ interface OrderPaymentRequest {
|
|
|
32649
32653
|
*/
|
|
32650
32654
|
_id?: string | null;
|
|
32651
32655
|
/** Additional parameters to identify the source of the order payment request. */
|
|
32652
|
-
source?: Source;
|
|
32656
|
+
source?: Source$2;
|
|
32653
32657
|
/**
|
|
32654
32658
|
* status.
|
|
32655
32659
|
* @readonly
|
|
@@ -32698,7 +32702,7 @@ interface OrderPaymentRequest {
|
|
|
32698
32702
|
*/
|
|
32699
32703
|
_updatedDate?: Date | null;
|
|
32700
32704
|
}
|
|
32701
|
-
interface Source {
|
|
32705
|
+
interface Source$2 {
|
|
32702
32706
|
/** App Def ID that created the order payment request. */
|
|
32703
32707
|
appId?: string | null;
|
|
32704
32708
|
/** Reference to an ID from an external system, indicating the original source of the order payment request. */
|
|
@@ -40412,6 +40416,16 @@ interface Transaction$1 {
|
|
|
40412
40416
|
*/
|
|
40413
40417
|
date?: Date | null;
|
|
40414
40418
|
}
|
|
40419
|
+
declare enum Source$1 {
|
|
40420
|
+
/** There is no information about who created the tip distributions. */
|
|
40421
|
+
UNKNOWN_SOURCE = "UNKNOWN_SOURCE",
|
|
40422
|
+
/** The customer added the tip distributions via an external payment terminal. */
|
|
40423
|
+
POS = "POS",
|
|
40424
|
+
/** The customer added the tip distributions during an online [ecommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction). */
|
|
40425
|
+
WEB = "WEB",
|
|
40426
|
+
/** The business added the tip distributions on behalf of the customer in the site's dashboard. */
|
|
40427
|
+
DASHBOARD = "DASHBOARD"
|
|
40428
|
+
}
|
|
40415
40429
|
interface PreviewTipRequest$1 {
|
|
40416
40430
|
/**
|
|
40417
40431
|
* Information about the line items to preview the tip for.
|
|
@@ -40682,6 +40696,7 @@ interface StaffNonNullableFields$1 {
|
|
|
40682
40696
|
}
|
|
40683
40697
|
interface TipDistributionNonNullableFields$1 {
|
|
40684
40698
|
staff?: StaffNonNullableFields$1;
|
|
40699
|
+
source: Source$1;
|
|
40685
40700
|
}
|
|
40686
40701
|
interface TipNonNullableFields$1 {
|
|
40687
40702
|
distributions: TipDistributionNonNullableFields$1[];
|
|
@@ -40737,9 +40752,9 @@ interface Tip {
|
|
|
40737
40752
|
*/
|
|
40738
40753
|
_id?: string | null;
|
|
40739
40754
|
/**
|
|
40740
|
-
* Subtotal of all line items from the [eCommerce order](https://dev.wix.com/docs/
|
|
40755
|
+
* Subtotal of all line items from the [eCommerce order](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup)
|
|
40741
40756
|
* that's related to the tip. In the response of
|
|
40742
|
-
* [
|
|
40757
|
+
* [previewTip()](https://dev.wix.com/docs/sdk/backend-modules/ecom/tips/preview-tip),
|
|
40743
40758
|
* there is no related eCommerce order. Then, value of this field corresponds to
|
|
40744
40759
|
* the sum of all line item prices passed in the request.
|
|
40745
40760
|
* @readonly
|
|
@@ -40790,19 +40805,18 @@ interface TipDistribution {
|
|
|
40790
40805
|
amount?: string | null;
|
|
40791
40806
|
/**
|
|
40792
40807
|
* Details about the related line items from the
|
|
40793
|
-
* [eCommerce order](https://dev.wix.com/docs/
|
|
40808
|
+
* [eCommerce order](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup).
|
|
40794
40809
|
*
|
|
40795
|
-
* Max: 10 `lineItemInfo` objects
|
|
40796
40810
|
*/
|
|
40797
40811
|
lineItemInfo?: LineItemInfo[];
|
|
40798
40812
|
/**
|
|
40799
40813
|
* Details of how the customer is charged for the tip. Available only if the
|
|
40800
|
-
* [transcation](https://dev.wix.com/docs/
|
|
40814
|
+
* [transcation](https://dev.wix.com/docs/sdk/backend-modules/ecom/order-transactions/setup)
|
|
40801
40815
|
* has been created.
|
|
40802
40816
|
*/
|
|
40803
40817
|
transaction?: Transaction;
|
|
40804
40818
|
/**
|
|
40805
|
-
* ID of the [eCommerce order](https://dev.wix.com/docs/
|
|
40819
|
+
* ID of the [eCommerce order](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup)
|
|
40806
40820
|
* associated with the tip distribution. Identical for all distributions that
|
|
40807
40821
|
* belong to the same tip.
|
|
40808
40822
|
* @readonly
|
|
@@ -40828,7 +40842,7 @@ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
|
40828
40842
|
/** ID of an app. */
|
|
40829
40843
|
appId?: string;
|
|
40830
40844
|
/**
|
|
40831
|
-
* ID of the [contact](https://dev.wix.com/docs/
|
|
40845
|
+
* ID of the [contact](https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/introduction)
|
|
40832
40846
|
* in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.
|
|
40833
40847
|
*/
|
|
40834
40848
|
contactId?: string | null;
|
|
@@ -40863,8 +40877,8 @@ interface Staff {
|
|
|
40863
40877
|
_id?: string | null;
|
|
40864
40878
|
/**
|
|
40865
40879
|
* Staff name. Matches `staffMember.name` if the staff is a
|
|
40866
|
-
*
|
|
40867
|
-
* or the [contact](https://dev.wix.com/docs/
|
|
40880
|
+
* Bookings staff member,
|
|
40881
|
+
* or the [contact](https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/introduction)'s
|
|
40868
40882
|
* `info.name` if not.
|
|
40869
40883
|
*
|
|
40870
40884
|
* Max: 500 characters
|
|
@@ -40872,7 +40886,7 @@ interface Staff {
|
|
|
40872
40886
|
*/
|
|
40873
40887
|
name?: string | null;
|
|
40874
40888
|
/**
|
|
40875
|
-
* ID of the
|
|
40889
|
+
* ID of the Bookings staff member.
|
|
40876
40890
|
* Available only if the staff is a staff member and not a
|
|
40877
40891
|
* [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
|
|
40878
40892
|
*/
|
|
@@ -40906,8 +40920,8 @@ interface LineItemInfo {
|
|
|
40906
40920
|
price?: string | null;
|
|
40907
40921
|
/**
|
|
40908
40922
|
* Name of the line item, which is identical to:
|
|
40909
|
-
* + `product.name` for [Stores](https://dev.wix.com/docs/
|
|
40910
|
-
* + `service.name` for [Bookings](https://dev.wix.com/docs/
|
|
40923
|
+
* + `product.name` for [Stores](https://dev.wix.com/docs/sdk/backend-modules/stores/products/introduction).
|
|
40924
|
+
* + `service.name` for [Bookings](https://dev.wix.com/docs/sdk/backend-modules/bookings/introduction).
|
|
40911
40925
|
*
|
|
40912
40926
|
* Min: 1 character
|
|
40913
40927
|
* Max: 200 characters
|
|
@@ -40949,6 +40963,16 @@ interface Transaction {
|
|
|
40949
40963
|
*/
|
|
40950
40964
|
date?: Date | null;
|
|
40951
40965
|
}
|
|
40966
|
+
declare enum Source {
|
|
40967
|
+
/** There is no information about who created the tip distributions. */
|
|
40968
|
+
UNKNOWN_SOURCE = "UNKNOWN_SOURCE",
|
|
40969
|
+
/** The customer added the tip distributions via an external payment terminal. */
|
|
40970
|
+
POS = "POS",
|
|
40971
|
+
/** The customer added the tip distributions during an online [ecommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction). */
|
|
40972
|
+
WEB = "WEB",
|
|
40973
|
+
/** The business added the tip distributions on behalf of the customer in the site's dashboard. */
|
|
40974
|
+
DASHBOARD = "DASHBOARD"
|
|
40975
|
+
}
|
|
40952
40976
|
interface PreviewTipRequest {
|
|
40953
40977
|
/**
|
|
40954
40978
|
* Information about the line items to preview the tip for.
|
|
@@ -41219,6 +41243,7 @@ interface StaffNonNullableFields {
|
|
|
41219
41243
|
}
|
|
41220
41244
|
interface TipDistributionNonNullableFields {
|
|
41221
41245
|
staff?: StaffNonNullableFields;
|
|
41246
|
+
source: Source;
|
|
41222
41247
|
}
|
|
41223
41248
|
interface TipNonNullableFields {
|
|
41224
41249
|
distributions: TipDistributionNonNullableFields[];
|