@wix/ecom 1.0.827 → 1.0.829

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.
@@ -32374,7 +32374,7 @@ interface OrderPaymentRequest$1 {
32374
32374
  */
32375
32375
  id?: string | null;
32376
32376
  /** Additional parameters to identify the source of the order payment request. */
32377
- source?: Source$1;
32377
+ source?: Source$3;
32378
32378
  /**
32379
32379
  * status.
32380
32380
  * @readonly
@@ -32423,7 +32423,7 @@ interface OrderPaymentRequest$1 {
32423
32423
  */
32424
32424
  updatedDate?: Date | null;
32425
32425
  }
32426
- interface Source$1 {
32426
+ interface Source$3 {
32427
32427
  /** App Def ID that created the order payment request. */
32428
32428
  appId?: string | null;
32429
32429
  /** Reference to an ID from an external system, indicating the original source of the order payment request. */
@@ -32649,7 +32649,7 @@ interface OrderPaymentRequest {
32649
32649
  */
32650
32650
  _id?: string | null;
32651
32651
  /** Additional parameters to identify the source of the order payment request. */
32652
- source?: Source;
32652
+ source?: Source$2;
32653
32653
  /**
32654
32654
  * status.
32655
32655
  * @readonly
@@ -32698,7 +32698,7 @@ interface OrderPaymentRequest {
32698
32698
  */
32699
32699
  _updatedDate?: Date | null;
32700
32700
  }
32701
- interface Source {
32701
+ interface Source$2 {
32702
32702
  /** App Def ID that created the order payment request. */
32703
32703
  appId?: string | null;
32704
32704
  /** Reference to an ID from an external system, indicating the original source of the order payment request. */
@@ -40412,6 +40412,16 @@ interface Transaction$1 {
40412
40412
  */
40413
40413
  date?: Date | null;
40414
40414
  }
40415
+ declare enum Source$1 {
40416
+ /** There is no information about who created the tip distributions. */
40417
+ UNKNOWN_SOURCE = "UNKNOWN_SOURCE",
40418
+ /** The customer added the tip distributions via an external payment terminal. */
40419
+ POS = "POS",
40420
+ /** The customer added the tip distributions during an online [ecommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction). */
40421
+ WEB = "WEB",
40422
+ /** The business added the tip distributions on behalf of the customer in the site's dashboard. */
40423
+ DASHBOARD = "DASHBOARD"
40424
+ }
40415
40425
  interface PreviewTipRequest$1 {
40416
40426
  /**
40417
40427
  * Information about the line items to preview the tip for.
@@ -40682,6 +40692,7 @@ interface StaffNonNullableFields$1 {
40682
40692
  }
40683
40693
  interface TipDistributionNonNullableFields$1 {
40684
40694
  staff?: StaffNonNullableFields$1;
40695
+ source: Source$1;
40685
40696
  }
40686
40697
  interface TipNonNullableFields$1 {
40687
40698
  distributions: TipDistributionNonNullableFields$1[];
@@ -40737,9 +40748,9 @@ interface Tip {
40737
40748
  */
40738
40749
  _id?: string | null;
40739
40750
  /**
40740
- * Subtotal of all line items from the [eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/order-object)
40751
+ * Subtotal of all line items from the [eCommerce order](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup)
40741
40752
  * that's related to the tip. In the response of
40742
- * [Preview Tip](https://dev.wix.com/docs/rest/business-solutions/e-commerce/tips/tips/preview-tip),
40753
+ * [previewTip()](https://dev.wix.com/docs/sdk/backend-modules/ecom/tips/preview-tip),
40743
40754
  * there is no related eCommerce order. Then, value of this field corresponds to
40744
40755
  * the sum of all line item prices passed in the request.
40745
40756
  * @readonly
@@ -40790,19 +40801,18 @@ interface TipDistribution {
40790
40801
  amount?: string | null;
40791
40802
  /**
40792
40803
  * Details about the related line items from the
40793
- * [eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/order-object).
40804
+ * [eCommerce order](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup).
40794
40805
  *
40795
- * Max: 10 `lineItemInfo` objects
40796
40806
  */
40797
40807
  lineItemInfo?: LineItemInfo[];
40798
40808
  /**
40799
40809
  * Details of how the customer is charged for the tip. Available only if the
40800
- * [transcation](https://dev.wix.com/docs/rest/business-management/payments/cashier/payments/transaction/transaction-object)
40810
+ * [transcation](https://dev.wix.com/docs/sdk/backend-modules/ecom/order-transactions/setup)
40801
40811
  * has been created.
40802
40812
  */
40803
40813
  transaction?: Transaction;
40804
40814
  /**
40805
- * ID of the [eCommerce order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/order-object)
40815
+ * ID of the [eCommerce order](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup)
40806
40816
  * associated with the tip distribution. Identical for all distributions that
40807
40817
  * belong to the same tip.
40808
40818
  * @readonly
@@ -40828,7 +40838,7 @@ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
40828
40838
  /** ID of an app. */
40829
40839
  appId?: string;
40830
40840
  /**
40831
- * ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/introduction)
40841
+ * ID of the [contact](https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/introduction)
40832
40842
  * in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.
40833
40843
  */
40834
40844
  contactId?: string | null;
@@ -40863,8 +40873,8 @@ interface Staff {
40863
40873
  _id?: string | null;
40864
40874
  /**
40865
40875
  * Staff name. Matches `staffMember.name` if the staff is a
40866
- * [Bookings staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/staff-member-v1/staff-member-object),
40867
- * or the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)'s
40876
+ * Bookings staff member,
40877
+ * or the [contact](https://dev.wix.com/docs/sdk/backend-modules/crm/contacts/introduction)'s
40868
40878
  * `info.name` if not.
40869
40879
  *
40870
40880
  * Max: 500 characters
@@ -40872,7 +40882,7 @@ interface Staff {
40872
40882
  */
40873
40883
  name?: string | null;
40874
40884
  /**
40875
- * ID of the [staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/staff-member-v1/staff-member-object).
40885
+ * ID of the Bookings staff member.
40876
40886
  * Available only if the staff is a staff member and not a
40877
40887
  * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
40878
40888
  */
@@ -40906,8 +40916,8 @@ interface LineItemInfo {
40906
40916
  price?: string | null;
40907
40917
  /**
40908
40918
  * Name of the line item, which is identical to:
40909
- * + `product.name` for [Stores](https://dev.wix.com/docs/rest/business-solutions/stores/about-wix-stores).
40910
- * + `service.name` for [Bookings](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings).
40919
+ * + `product.name` for [Stores](https://dev.wix.com/docs/sdk/backend-modules/stores/products/introduction).
40920
+ * + `service.name` for [Bookings](https://dev.wix.com/docs/sdk/backend-modules/bookings/introduction).
40911
40921
  *
40912
40922
  * Min: 1 character
40913
40923
  * Max: 200 characters
@@ -40949,6 +40959,16 @@ interface Transaction {
40949
40959
  */
40950
40960
  date?: Date | null;
40951
40961
  }
40962
+ declare enum Source {
40963
+ /** There is no information about who created the tip distributions. */
40964
+ UNKNOWN_SOURCE = "UNKNOWN_SOURCE",
40965
+ /** The customer added the tip distributions via an external payment terminal. */
40966
+ POS = "POS",
40967
+ /** The customer added the tip distributions during an online [ecommerce checkout](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction). */
40968
+ WEB = "WEB",
40969
+ /** The business added the tip distributions on behalf of the customer in the site's dashboard. */
40970
+ DASHBOARD = "DASHBOARD"
40971
+ }
40952
40972
  interface PreviewTipRequest {
40953
40973
  /**
40954
40974
  * Information about the line items to preview the tip for.
@@ -41219,6 +41239,7 @@ interface StaffNonNullableFields {
41219
41239
  }
41220
41240
  interface TipDistributionNonNullableFields {
41221
41241
  staff?: StaffNonNullableFields;
41242
+ source: Source;
41222
41243
  }
41223
41244
  interface TipNonNullableFields {
41224
41245
  distributions: TipDistributionNonNullableFields[];