@wix/ecom 1.0.785 → 1.0.786

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.
@@ -129,26 +129,27 @@ interface IdentificationDataIdOneOf$8 {
129
129
  appId?: string;
130
130
  }
131
131
 
132
- type ServicePluginMethodInput$9 = {
132
+ type ServicePluginMethodInput$8 = {
133
133
  request: any;
134
134
  metadata: any;
135
135
  };
136
- type ServicePluginContract$9 = Record<string, (payload: ServicePluginMethodInput$9) => unknown | Promise<unknown>>;
137
- type ServicePluginMethodMetadata$9 = {
136
+ type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
137
+ type ServicePluginMethodMetadata$8 = {
138
138
  name: string;
139
139
  primaryHttpMappingPath: string;
140
140
  transformations: {
141
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$9;
141
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
142
142
  toREST: (...args: unknown[]) => unknown;
143
143
  };
144
144
  };
145
- type ServicePluginDefinition$9<Contract extends ServicePluginContract$9> = {
145
+ type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
146
146
  __type: 'service-plugin-definition';
147
147
  componentType: string;
148
- methods: ServicePluginMethodMetadata$9[];
148
+ methods: ServicePluginMethodMetadata$8[];
149
149
  __contract: Contract;
150
150
  };
151
- declare function ServicePluginDefinition$9<Contract extends ServicePluginContract$9>(componentType: string, methods: ServicePluginMethodMetadata$9[]): ServicePluginDefinition$9<Contract>;
151
+ declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
152
+ type BuildServicePluginDefinition$8<T extends ServicePluginDefinition$8<any>> = (implementation: T['__contract']) => void;
152
153
 
153
154
  declare global {
154
155
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -174,7 +175,7 @@ interface _voidEnvelope {
174
175
  request: VoidRequest;
175
176
  metadata: Context$8;
176
177
  }
177
- declare const provideHandlers$h: ServicePluginDefinition$9<{
178
+ declare const provideHandlers$h: ServicePluginDefinition$8<{
178
179
  /**
179
180
  *
180
181
  * This method retrieves gift card data from your app.
@@ -192,35 +193,6 @@ declare const provideHandlers$h: ServicePluginDefinition$9<{
192
193
  _void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
193
194
  }>;
194
195
 
195
- type ServicePluginMethodInput$8 = {
196
- request: any;
197
- metadata: any;
198
- };
199
- type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
200
- type ServicePluginMethodMetadata$8 = {
201
- name: string;
202
- primaryHttpMappingPath: string;
203
- transformations: {
204
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
205
- toREST: (...args: unknown[]) => unknown;
206
- };
207
- };
208
- type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
209
- __type: 'service-plugin-definition';
210
- componentType: string;
211
- methods: ServicePluginMethodMetadata$8[];
212
- __contract: Contract;
213
- };
214
- declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
215
- type BuildServicePluginDefinition$8<T extends ServicePluginDefinition$8<any>> = (implementation: T['__contract']) => void;
216
-
217
- declare global {
218
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
219
- interface SymbolConstructor {
220
- readonly observable: symbol;
221
- }
222
- }
223
-
224
196
  declare function createServicePluginModule$8<T extends ServicePluginDefinition$8<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$8<T> & T;
225
197
 
226
198
  type _publicProvideHandlersType$8 = typeof provideHandlers$h;
@@ -716,6 +688,40 @@ interface IdentificationDataIdOneOf$7 {
716
688
  appId?: string;
717
689
  }
718
690
 
691
+ type ServicePluginMethodInput$7 = {
692
+ request: any;
693
+ metadata: any;
694
+ };
695
+ type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
696
+ type ServicePluginMethodMetadata$7 = {
697
+ name: string;
698
+ primaryHttpMappingPath: string;
699
+ transformations: {
700
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
701
+ toREST: (...args: unknown[]) => unknown;
702
+ };
703
+ };
704
+ type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
705
+ __type: 'service-plugin-definition';
706
+ componentType: string;
707
+ methods: ServicePluginMethodMetadata$7[];
708
+ __contract: Contract;
709
+ };
710
+ declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
711
+ type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$7<any>> = (implementation: T['__contract']) => void;
712
+
713
+ declare global {
714
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
715
+ interface SymbolConstructor {
716
+ readonly observable: symbol;
717
+ }
718
+ }
719
+
720
+ declare global {
721
+ interface ContextualClient {
722
+ }
723
+ }
724
+
719
725
  interface ListEligibleMembershipsEnvelope {
720
726
  request: ListEligibleMembershipsRequest;
721
727
  metadata: Context$7;
@@ -732,7 +738,7 @@ interface VoidMembershipChargeEnvelope {
732
738
  request: VoidMembershipChargeRequest;
733
739
  metadata: Context$7;
734
740
  }
735
- declare const provideHandlers$f: ServicePluginDefinition$9<{
741
+ declare const provideHandlers$f: ServicePluginDefinition$7<{
736
742
  /**
737
743
  *
738
744
  * This method retrieves eligible memberships from your app. */
@@ -751,35 +757,6 @@ declare const provideHandlers$f: ServicePluginDefinition$9<{
751
757
  voidMembershipCharge(payload: VoidMembershipChargeEnvelope): VoidMembershipChargeResponse | Promise<VoidMembershipChargeResponse>;
752
758
  }>;
753
759
 
754
- type ServicePluginMethodInput$7 = {
755
- request: any;
756
- metadata: any;
757
- };
758
- type ServicePluginContract$7 = Record<string, (payload: ServicePluginMethodInput$7) => unknown | Promise<unknown>>;
759
- type ServicePluginMethodMetadata$7 = {
760
- name: string;
761
- primaryHttpMappingPath: string;
762
- transformations: {
763
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$7;
764
- toREST: (...args: unknown[]) => unknown;
765
- };
766
- };
767
- type ServicePluginDefinition$7<Contract extends ServicePluginContract$7> = {
768
- __type: 'service-plugin-definition';
769
- componentType: string;
770
- methods: ServicePluginMethodMetadata$7[];
771
- __contract: Contract;
772
- };
773
- declare function ServicePluginDefinition$7<Contract extends ServicePluginContract$7>(componentType: string, methods: ServicePluginMethodMetadata$7[]): ServicePluginDefinition$7<Contract>;
774
- type BuildServicePluginDefinition$7<T extends ServicePluginDefinition$7<any>> = (implementation: T['__contract']) => void;
775
-
776
- declare global {
777
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
778
- interface SymbolConstructor {
779
- readonly observable: symbol;
780
- }
781
- }
782
-
783
760
  declare function createServicePluginModule$7<T extends ServicePluginDefinition$7<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$7<T> & T;
784
761
 
785
762
  type _publicProvideHandlersType$7 = typeof provideHandlers$f;
@@ -1086,20 +1063,6 @@ interface IdentificationDataIdOneOf$6 {
1086
1063
  appId?: string;
1087
1064
  }
1088
1065
 
1089
- interface GetRecommendationsEnvelope {
1090
- request: GetRecommendationsRequest;
1091
- metadata: Context$6;
1092
- }
1093
- declare const provideHandlers$d: ServicePluginDefinition$9<{
1094
- /**
1095
- *
1096
- * Returns lists of items recommended by each requested algorithm.
1097
- *
1098
- * If the algorithm's type is `RELATED_ITEMS` then the `items` field is required in the request, and the response will contain items related to those submitted.
1099
- * How the related items are selected based on the requested items depends on the algorithm. Some examples include items related by category or those frequently bought or watched together. */
1100
- getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
1101
- }>;
1102
-
1103
1066
  type ServicePluginMethodInput$6 = {
1104
1067
  request: any;
1105
1068
  metadata: any;
@@ -1129,6 +1092,25 @@ declare global {
1129
1092
  }
1130
1093
  }
1131
1094
 
1095
+ declare global {
1096
+ interface ContextualClient {
1097
+ }
1098
+ }
1099
+
1100
+ interface GetRecommendationsEnvelope {
1101
+ request: GetRecommendationsRequest;
1102
+ metadata: Context$6;
1103
+ }
1104
+ declare const provideHandlers$d: ServicePluginDefinition$6<{
1105
+ /**
1106
+ *
1107
+ * Returns lists of items recommended by each requested algorithm.
1108
+ *
1109
+ * If the algorithm's type is `RELATED_ITEMS` then the `items` field is required in the request, and the response will contain items related to those submitted.
1110
+ * How the related items are selected based on the requested items depends on the algorithm. Some examples include items related by category or those frequently bought or watched together. */
1111
+ getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
1112
+ }>;
1113
+
1132
1114
  declare function createServicePluginModule$6<T extends ServicePluginDefinition$6<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
1133
1115
 
1134
1116
  type _publicProvideHandlersType$6 = typeof provideHandlers$d;
@@ -1626,21 +1608,6 @@ interface IdentificationDataIdOneOf$5 {
1626
1608
  appId?: string;
1627
1609
  }
1628
1610
 
1629
- interface GetShippingRatesEnvelope {
1630
- request: GetShippingRatesRequest;
1631
- metadata: Context$5;
1632
- }
1633
- declare const provideHandlers$b: ServicePluginDefinition$9<{
1634
- /**
1635
- *
1636
- * This method retrieves applicable shipping rates for a delivery from your app.
1637
- *
1638
- * Wix calls this method when certain actions are performed on the cart and/or checkout. For example, when an item is added to the cart, or the shipping destination is changed.
1639
- *
1640
- * > __Note:__ Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Get Shipping Rates. Doing so will result in an error. */
1641
- getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
1642
- }>;
1643
-
1644
1611
  type ServicePluginMethodInput$5 = {
1645
1612
  request: any;
1646
1613
  metadata: any;
@@ -1670,6 +1637,26 @@ declare global {
1670
1637
  }
1671
1638
  }
1672
1639
 
1640
+ declare global {
1641
+ interface ContextualClient {
1642
+ }
1643
+ }
1644
+
1645
+ interface GetShippingRatesEnvelope {
1646
+ request: GetShippingRatesRequest;
1647
+ metadata: Context$5;
1648
+ }
1649
+ declare const provideHandlers$b: ServicePluginDefinition$5<{
1650
+ /**
1651
+ *
1652
+ * This method retrieves applicable shipping rates for a delivery from your app.
1653
+ *
1654
+ * Wix calls this method when certain actions are performed on the cart and/or checkout. For example, when an item is added to the cart, or the shipping destination is changed.
1655
+ *
1656
+ * > __Note:__ Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Get Shipping Rates. Doing so will result in an error. */
1657
+ getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
1658
+ }>;
1659
+
1673
1660
  declare function createServicePluginModule$5<T extends ServicePluginDefinition$5<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
1674
1661
 
1675
1662
  type _publicProvideHandlersType$5 = typeof provideHandlers$b;
@@ -2186,24 +2173,6 @@ interface IdentificationDataIdOneOf$4 {
2186
2173
  appId?: string;
2187
2174
  }
2188
2175
 
2189
- interface CalculateAdditionalFeesEnvelope {
2190
- request: CalculateAdditionalFeesRequest;
2191
- metadata: Context$4;
2192
- }
2193
- declare const provideHandlers$9: ServicePluginDefinition$9<{
2194
- /**
2195
- *
2196
- * This method retrieves additional fees calculated by your app.
2197
- *
2198
- * Wix calls this method when certain actions are performed on the cart or checkout.
2199
- * For example, when an item is added to the cart or the amount of an item is updated in the checkout.
2200
- *
2201
- * > __Notes:__
2202
- * > + Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Calculate Additional Fees. Doing so will result in an error.
2203
- * > + The currency returned in the response object must match the site's currency or those fees will be filtered out and not returned. */
2204
- calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
2205
- }>;
2206
-
2207
2176
  type ServicePluginMethodInput$4 = {
2208
2177
  request: any;
2209
2178
  metadata: any;
@@ -2233,6 +2202,29 @@ declare global {
2233
2202
  }
2234
2203
  }
2235
2204
 
2205
+ declare global {
2206
+ interface ContextualClient {
2207
+ }
2208
+ }
2209
+
2210
+ interface CalculateAdditionalFeesEnvelope {
2211
+ request: CalculateAdditionalFeesRequest;
2212
+ metadata: Context$4;
2213
+ }
2214
+ declare const provideHandlers$9: ServicePluginDefinition$4<{
2215
+ /**
2216
+ *
2217
+ * This method retrieves additional fees calculated by your app.
2218
+ *
2219
+ * Wix calls this method when certain actions are performed on the cart or checkout.
2220
+ * For example, when an item is added to the cart or the amount of an item is updated in the checkout.
2221
+ *
2222
+ * > __Notes:__
2223
+ * > + Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Calculate Additional Fees. Doing so will result in an error.
2224
+ * > + The currency returned in the response object must match the site's currency or those fees will be filtered out and not returned. */
2225
+ calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
2226
+ }>;
2227
+
2236
2228
  declare function createServicePluginModule$4<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$4<T> & T;
2237
2229
 
2238
2230
  type _publicProvideHandlersType$4 = typeof provideHandlers$9;
@@ -2384,30 +2376,6 @@ interface IdentificationDataIdOneOf$3 {
2384
2376
  appId?: string;
2385
2377
  }
2386
2378
 
2387
- interface ListTriggersEnvelope {
2388
- request: ListTriggersRequest;
2389
- metadata: Context$3;
2390
- }
2391
- interface GetEligibleTriggersEnvelope {
2392
- request: GetEligibleTriggersRequest;
2393
- metadata: Context$3;
2394
- }
2395
- declare const provideHandlers$7: ServicePluginDefinition$9<{
2396
- /**
2397
- *
2398
- * Lists all custom triggers provided by your service plugin integration.
2399
- *
2400
- * This method is automatically called by Wix eCommerce to populate the custom [minimum requirements section of an automatic discount](https://support.wix.com/en/article/wix-stores-creating-automatic-discounts#:~:text=Create%20minimum%20requirements). */
2401
- listTriggers(payload: ListTriggersEnvelope): ListTriggersResponse | Promise<ListTriggersResponse>;
2402
- /**
2403
- *
2404
- * Retrieves eligible custom discount triggers based on the provided items.
2405
- *
2406
- * This method is automatically called by Wix eCommerce to retrieve the custom discount triggers provided by your extension.
2407
- * This happens when actions are performed on the cart and checkout entities/pages. For example, when an item is added to the cart. */
2408
- getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
2409
- }>;
2410
-
2411
2379
  type ServicePluginMethodInput$3 = {
2412
2380
  request: any;
2413
2381
  metadata: any;
@@ -2437,6 +2405,35 @@ declare global {
2437
2405
  }
2438
2406
  }
2439
2407
 
2408
+ declare global {
2409
+ interface ContextualClient {
2410
+ }
2411
+ }
2412
+
2413
+ interface ListTriggersEnvelope {
2414
+ request: ListTriggersRequest;
2415
+ metadata: Context$3;
2416
+ }
2417
+ interface GetEligibleTriggersEnvelope {
2418
+ request: GetEligibleTriggersRequest;
2419
+ metadata: Context$3;
2420
+ }
2421
+ declare const provideHandlers$7: ServicePluginDefinition$3<{
2422
+ /**
2423
+ *
2424
+ * Lists all custom triggers provided by your service plugin integration.
2425
+ *
2426
+ * This method is automatically called by Wix eCommerce to populate the custom [minimum requirements section of an automatic discount](https://support.wix.com/en/article/wix-stores-creating-automatic-discounts#:~:text=Create%20minimum%20requirements). */
2427
+ listTriggers(payload: ListTriggersEnvelope): ListTriggersResponse | Promise<ListTriggersResponse>;
2428
+ /**
2429
+ *
2430
+ * Retrieves eligible custom discount triggers based on the provided items.
2431
+ *
2432
+ * This method is automatically called by Wix eCommerce to retrieve the custom discount triggers provided by your extension.
2433
+ * This happens when actions are performed on the cart and checkout entities/pages. For example, when an item is added to the cart. */
2434
+ getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
2435
+ }>;
2436
+
2440
2437
  declare function createServicePluginModule$3<T extends ServicePluginDefinition$3<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
2441
2438
 
2442
2439
  type _publicProvideHandlersType$3 = typeof provideHandlers$7;
@@ -2657,18 +2654,6 @@ interface IdentificationDataIdOneOf$2 {
2657
2654
  appId?: string;
2658
2655
  }
2659
2656
 
2660
- interface GetEligibleDiscountsEnvelope {
2661
- request: GetEligibleDiscountsRequest;
2662
- metadata: Context$2;
2663
- }
2664
- declare const provideHandlers$5: ServicePluginDefinition$9<{
2665
- /**
2666
- *
2667
- * Wix calls this method when certain actions are performed on the cart or checkout.
2668
- * For example, when an item is added to the cart or the amount of an item is updated in the checkout. */
2669
- getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
2670
- }>;
2671
-
2672
2657
  type ServicePluginMethodInput$2 = {
2673
2658
  request: any;
2674
2659
  metadata: any;
@@ -2698,6 +2683,23 @@ declare global {
2698
2683
  }
2699
2684
  }
2700
2685
 
2686
+ declare global {
2687
+ interface ContextualClient {
2688
+ }
2689
+ }
2690
+
2691
+ interface GetEligibleDiscountsEnvelope {
2692
+ request: GetEligibleDiscountsRequest;
2693
+ metadata: Context$2;
2694
+ }
2695
+ declare const provideHandlers$5: ServicePluginDefinition$2<{
2696
+ /**
2697
+ *
2698
+ * Wix calls this method when certain actions are performed on the cart or checkout.
2699
+ * For example, when an item is added to the cart or the amount of an item is updated in the checkout. */
2700
+ getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
2701
+ }>;
2702
+
2701
2703
  declare function createServicePluginModule$2<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
2702
2704
 
2703
2705
  type _publicProvideHandlersType$2 = typeof provideHandlers$5;
@@ -3363,13 +3365,7 @@ declare enum PaymentStatus {
3363
3365
  /** Payments received but not yet confirmed by the payment provider */
3364
3366
  PENDING = "PENDING",
3365
3367
  /** At least one payment was received and approved, covering less than total price amount */
3366
- PARTIALLY_PAID = "PARTIALLY_PAID",
3367
- /** Payment received but not yet confirmed by the payment provider and waits for some user action */
3368
- PENDING_MERCHANT = "PENDING_MERCHANT",
3369
- /** Payment was canceled by user on payment provider side */
3370
- CANCELED = "CANCELED",
3371
- /** Payment was declined by payment provider */
3372
- DECLINED = "DECLINED"
3368
+ PARTIALLY_PAID = "PARTIALLY_PAID"
3373
3369
  }
3374
3370
  declare enum FulfillmentStatus {
3375
3371
  /** none of the order items are fulfilled or order was manually marked as unfulfilled */
@@ -3576,9 +3572,7 @@ interface ShippingRegion {
3576
3572
  declare enum OrderStatus {
3577
3573
  INITIALIZED = "INITIALIZED",
3578
3574
  APPROVED = "APPROVED",
3579
- CANCELED = "CANCELED",
3580
- PENDING = "PENDING",
3581
- REJECTED = "REJECTED"
3575
+ CANCELED = "CANCELED"
3582
3576
  }
3583
3577
  interface TaxSummary {
3584
3578
  /**
@@ -4060,17 +4054,7 @@ declare enum ActivityType {
4060
4054
  NEW_EXCHANGE_ORDER_CREATED = "NEW_EXCHANGE_ORDER_CREATED",
4061
4055
  ORDER_PARTIALLY_PAID = "ORDER_PARTIALLY_PAID",
4062
4056
  DRAFT_ORDER_CHANGES_APPLIED = "DRAFT_ORDER_CHANGES_APPLIED",
4063
- SAVED_PAYMENT_METHOD = "SAVED_PAYMENT_METHOD",
4064
- AUTHORIZED_PAYMENT_CREATED = "AUTHORIZED_PAYMENT_CREATED",
4065
- AUTHORIZED_PAYMENT_CAPTURED = "AUTHORIZED_PAYMENT_CAPTURED",
4066
- AUTHORIZED_PAYMENT_VOIDED = "AUTHORIZED_PAYMENT_VOIDED",
4067
- REFUND_INITIATED = "REFUND_INITIATED",
4068
- PAYMENT_REFUNDED = "PAYMENT_REFUNDED",
4069
- PAYMENT_REFUND_FAILED = "PAYMENT_REFUND_FAILED",
4070
- REFUNDED_AS_STORE_CREDIT = "REFUNDED_AS_STORE_CREDIT",
4071
- PAYMENT_PENDING = "PAYMENT_PENDING",
4072
- PAYMENT_CANCELED = "PAYMENT_CANCELED",
4073
- PAYMENT_DECLINED = "PAYMENT_DECLINED"
4057
+ SAVED_PAYMENT_METHOD = "SAVED_PAYMENT_METHOD"
4074
4058
  }
4075
4059
  declare enum AttributionSource {
4076
4060
  UNSPECIFIED = "UNSPECIFIED",
@@ -5572,27 +5556,6 @@ interface IdentificationDataIdOneOf$1 {
5572
5556
  appId?: string;
5573
5557
  }
5574
5558
 
5575
- interface GetPaymentSettingsEnvelope {
5576
- request: GetPaymentSettingsRequest;
5577
- metadata: Context$1;
5578
- }
5579
- interface GetPaymentSettingsForCheckoutEnvelope {
5580
- request: GetPaymentSettingsForCheckoutRequest;
5581
- metadata: Context$1;
5582
- }
5583
- declare const provideHandlers$3: ServicePluginDefinition$9<{
5584
- /**
5585
- *
5586
- * This method retrieves payment settings from your app.
5587
- *
5588
- * Wix calls this method during the payment process. For example, when a customer inserts credit card details and places an order.
5589
- * This method retrieves the payment settings to apply, and Wix passes on the settings to the payment provider. */
5590
- getPaymentSettings(payload: GetPaymentSettingsEnvelope): GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>;
5591
- /**
5592
- * Returns payment settings for provided Checkout entity. */
5593
- getPaymentSettingsForCheckout(payload: GetPaymentSettingsForCheckoutEnvelope): GetPaymentSettingsForCheckoutResponse | Promise<GetPaymentSettingsForCheckoutResponse>;
5594
- }>;
5595
-
5596
5559
  type ServicePluginMethodInput$1 = {
5597
5560
  request: any;
5598
5561
  metadata: any;
@@ -5622,6 +5585,32 @@ declare global {
5622
5585
  }
5623
5586
  }
5624
5587
 
5588
+ declare global {
5589
+ interface ContextualClient {
5590
+ }
5591
+ }
5592
+
5593
+ interface GetPaymentSettingsEnvelope {
5594
+ request: GetPaymentSettingsRequest;
5595
+ metadata: Context$1;
5596
+ }
5597
+ interface GetPaymentSettingsForCheckoutEnvelope {
5598
+ request: GetPaymentSettingsForCheckoutRequest;
5599
+ metadata: Context$1;
5600
+ }
5601
+ declare const provideHandlers$3: ServicePluginDefinition$1<{
5602
+ /**
5603
+ *
5604
+ * This method retrieves payment settings from your app.
5605
+ *
5606
+ * Wix calls this method during the payment process. For example, when a customer inserts credit card details and places an order.
5607
+ * This method retrieves the payment settings to apply, and Wix passes on the settings to the payment provider. */
5608
+ getPaymentSettings(payload: GetPaymentSettingsEnvelope): GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>;
5609
+ /**
5610
+ * Returns payment settings for provided Checkout entity. */
5611
+ getPaymentSettingsForCheckout(payload: GetPaymentSettingsForCheckoutEnvelope): GetPaymentSettingsForCheckoutResponse | Promise<GetPaymentSettingsForCheckoutResponse>;
5612
+ }>;
5613
+
5625
5614
  declare function createServicePluginModule$1<T extends ServicePluginDefinition$1<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
5626
5615
 
5627
5616
  type _publicProvideHandlersType$1 = typeof provideHandlers$3;
@@ -6465,24 +6454,6 @@ interface IdentificationDataIdOneOf {
6465
6454
  appId?: string;
6466
6455
  }
6467
6456
 
6468
- interface GetValidationViolationsEnvelope {
6469
- request: GetValidationViolationsRequest;
6470
- metadata: Context;
6471
- }
6472
- declare const provideHandlers$1: ServicePluginDefinition$9<{
6473
- /**
6474
- *
6475
- * This method retrieves validation violations from your app.
6476
- *
6477
- * Wix calls this method when certain actions are performed on a visitor's cart and checkout. For example, when an item is added to the cart, or when a coupon is added to a checkout.
6478
- * This method validates a visitor's cart and checkout, and returns any validation violations (using the structure provided by Wix eCommerce). Site visitors can see the validation violations in their cart and checkout pages. If there aren't any validation violations, the method returns an object containing an empty list.
6479
- *
6480
- * > __Notes:__
6481
- * > + Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Get Validation Violations. Doing so will result in an error.
6482
- * > + By default, this method only retrieves validation violations from a visitor's checkout. If you want to also retrieve validation violations from a visitor's cart, set the `validateInCart` parameter to `true` in the Ecom Validations Integration's config file. */
6483
- getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
6484
- }>;
6485
-
6486
6457
  type ServicePluginMethodInput = {
6487
6458
  request: any;
6488
6459
  metadata: any;
@@ -6512,6 +6483,29 @@ declare global {
6512
6483
  }
6513
6484
  }
6514
6485
 
6486
+ declare global {
6487
+ interface ContextualClient {
6488
+ }
6489
+ }
6490
+
6491
+ interface GetValidationViolationsEnvelope {
6492
+ request: GetValidationViolationsRequest;
6493
+ metadata: Context;
6494
+ }
6495
+ declare const provideHandlers$1: ServicePluginDefinition<{
6496
+ /**
6497
+ *
6498
+ * This method retrieves validation violations from your app.
6499
+ *
6500
+ * Wix calls this method when certain actions are performed on a visitor's cart and checkout. For example, when an item is added to the cart, or when a coupon is added to a checkout.
6501
+ * This method validates a visitor's cart and checkout, and returns any validation violations (using the structure provided by Wix eCommerce). Site visitors can see the validation violations in their cart and checkout pages. If there aren't any validation violations, the method returns an object containing an empty list.
6502
+ *
6503
+ * > __Notes:__
6504
+ * > + Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Get Validation Violations. Doing so will result in an error.
6505
+ * > + By default, this method only retrieves validation violations from a visitor's checkout. If you want to also retrieve validation violations from a visitor's cart, set the `validateInCart` parameter to `true` in the Ecom Validations Integration's config file. */
6506
+ getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
6507
+ }>;
6508
+
6515
6509
  declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
6516
6510
 
6517
6511
  type _publicProvideHandlersType = typeof provideHandlers$1;