@wix/ecom 1.0.785 → 1.0.787

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 = {
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 = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
137
+ type ServicePluginMethodMetadata = {
138
138
  name: string;
139
139
  primaryHttpMappingPath: string;
140
140
  transformations: {
141
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$9;
141
+ fromREST: (...args: unknown[]) => ServicePluginMethodInput;
142
142
  toREST: (...args: unknown[]) => unknown;
143
143
  };
144
144
  };
145
- type ServicePluginDefinition$9<Contract extends ServicePluginContract$9> = {
145
+ type ServicePluginDefinition<Contract extends ServicePluginContract> = {
146
146
  __type: 'service-plugin-definition';
147
147
  componentType: string;
148
- methods: ServicePluginMethodMetadata$9[];
148
+ methods: ServicePluginMethodMetadata[];
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<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
152
+ type BuildServicePluginDefinition<T extends ServicePluginDefinition<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<{
178
179
  /**
179
180
  *
180
181
  * This method retrieves gift card data from your app.
@@ -192,36 +193,7 @@ 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
- declare function createServicePluginModule$8<T extends ServicePluginDefinition$8<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$8<T> & T;
196
+ declare function createServicePluginModule$8<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
225
197
 
226
198
  type _publicProvideHandlersType$8 = typeof provideHandlers$h;
227
199
  declare const provideHandlers$g: ReturnType<typeof createServicePluginModule$8<_publicProvideHandlersType>>;
@@ -732,7 +704,7 @@ interface VoidMembershipChargeEnvelope {
732
704
  request: VoidMembershipChargeRequest;
733
705
  metadata: Context$7;
734
706
  }
735
- declare const provideHandlers$f: ServicePluginDefinition$9<{
707
+ declare const provideHandlers$f: ServicePluginDefinition<{
736
708
  /**
737
709
  *
738
710
  * This method retrieves eligible memberships from your app. */
@@ -751,36 +723,7 @@ declare const provideHandlers$f: ServicePluginDefinition$9<{
751
723
  voidMembershipCharge(payload: VoidMembershipChargeEnvelope): VoidMembershipChargeResponse | Promise<VoidMembershipChargeResponse>;
752
724
  }>;
753
725
 
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
- declare function createServicePluginModule$7<T extends ServicePluginDefinition$7<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$7<T> & T;
726
+ declare function createServicePluginModule$7<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
784
727
 
785
728
  type _publicProvideHandlersType$7 = typeof provideHandlers$f;
786
729
  declare const provideHandlers$e: ReturnType<typeof createServicePluginModule$7<_publicProvideHandlersType>>;
@@ -1090,7 +1033,7 @@ interface GetRecommendationsEnvelope {
1090
1033
  request: GetRecommendationsRequest;
1091
1034
  metadata: Context$6;
1092
1035
  }
1093
- declare const provideHandlers$d: ServicePluginDefinition$9<{
1036
+ declare const provideHandlers$d: ServicePluginDefinition<{
1094
1037
  /**
1095
1038
  *
1096
1039
  * Returns lists of items recommended by each requested algorithm.
@@ -1100,36 +1043,7 @@ declare const provideHandlers$d: ServicePluginDefinition$9<{
1100
1043
  getRecommendations(payload: GetRecommendationsEnvelope): GetRecommendationsResponse | Promise<GetRecommendationsResponse>;
1101
1044
  }>;
1102
1045
 
1103
- type ServicePluginMethodInput$6 = {
1104
- request: any;
1105
- metadata: any;
1106
- };
1107
- type ServicePluginContract$6 = Record<string, (payload: ServicePluginMethodInput$6) => unknown | Promise<unknown>>;
1108
- type ServicePluginMethodMetadata$6 = {
1109
- name: string;
1110
- primaryHttpMappingPath: string;
1111
- transformations: {
1112
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$6;
1113
- toREST: (...args: unknown[]) => unknown;
1114
- };
1115
- };
1116
- type ServicePluginDefinition$6<Contract extends ServicePluginContract$6> = {
1117
- __type: 'service-plugin-definition';
1118
- componentType: string;
1119
- methods: ServicePluginMethodMetadata$6[];
1120
- __contract: Contract;
1121
- };
1122
- declare function ServicePluginDefinition$6<Contract extends ServicePluginContract$6>(componentType: string, methods: ServicePluginMethodMetadata$6[]): ServicePluginDefinition$6<Contract>;
1123
- type BuildServicePluginDefinition$6<T extends ServicePluginDefinition$6<any>> = (implementation: T['__contract']) => void;
1124
-
1125
- declare global {
1126
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1127
- interface SymbolConstructor {
1128
- readonly observable: symbol;
1129
- }
1130
- }
1131
-
1132
- declare function createServicePluginModule$6<T extends ServicePluginDefinition$6<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$6<T> & T;
1046
+ declare function createServicePluginModule$6<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1133
1047
 
1134
1048
  type _publicProvideHandlersType$6 = typeof provideHandlers$d;
1135
1049
  declare const provideHandlers$c: ReturnType<typeof createServicePluginModule$6<_publicProvideHandlersType>>;
@@ -1630,7 +1544,7 @@ interface GetShippingRatesEnvelope {
1630
1544
  request: GetShippingRatesRequest;
1631
1545
  metadata: Context$5;
1632
1546
  }
1633
- declare const provideHandlers$b: ServicePluginDefinition$9<{
1547
+ declare const provideHandlers$b: ServicePluginDefinition<{
1634
1548
  /**
1635
1549
  *
1636
1550
  * This method retrieves applicable shipping rates for a delivery from your app.
@@ -1641,36 +1555,7 @@ declare const provideHandlers$b: ServicePluginDefinition$9<{
1641
1555
  getShippingRates(payload: GetShippingRatesEnvelope): GetShippingRatesResponse | Promise<GetShippingRatesResponse>;
1642
1556
  }>;
1643
1557
 
1644
- type ServicePluginMethodInput$5 = {
1645
- request: any;
1646
- metadata: any;
1647
- };
1648
- type ServicePluginContract$5 = Record<string, (payload: ServicePluginMethodInput$5) => unknown | Promise<unknown>>;
1649
- type ServicePluginMethodMetadata$5 = {
1650
- name: string;
1651
- primaryHttpMappingPath: string;
1652
- transformations: {
1653
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$5;
1654
- toREST: (...args: unknown[]) => unknown;
1655
- };
1656
- };
1657
- type ServicePluginDefinition$5<Contract extends ServicePluginContract$5> = {
1658
- __type: 'service-plugin-definition';
1659
- componentType: string;
1660
- methods: ServicePluginMethodMetadata$5[];
1661
- __contract: Contract;
1662
- };
1663
- declare function ServicePluginDefinition$5<Contract extends ServicePluginContract$5>(componentType: string, methods: ServicePluginMethodMetadata$5[]): ServicePluginDefinition$5<Contract>;
1664
- type BuildServicePluginDefinition$5<T extends ServicePluginDefinition$5<any>> = (implementation: T['__contract']) => void;
1665
-
1666
- declare global {
1667
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1668
- interface SymbolConstructor {
1669
- readonly observable: symbol;
1670
- }
1671
- }
1672
-
1673
- declare function createServicePluginModule$5<T extends ServicePluginDefinition$5<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$5<T> & T;
1558
+ declare function createServicePluginModule$5<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
1674
1559
 
1675
1560
  type _publicProvideHandlersType$5 = typeof provideHandlers$b;
1676
1561
  declare const provideHandlers$a: ReturnType<typeof createServicePluginModule$5<_publicProvideHandlersType>>;
@@ -2190,7 +2075,7 @@ interface CalculateAdditionalFeesEnvelope {
2190
2075
  request: CalculateAdditionalFeesRequest;
2191
2076
  metadata: Context$4;
2192
2077
  }
2193
- declare const provideHandlers$9: ServicePluginDefinition$9<{
2078
+ declare const provideHandlers$9: ServicePluginDefinition<{
2194
2079
  /**
2195
2080
  *
2196
2081
  * This method retrieves additional fees calculated by your app.
@@ -2204,36 +2089,7 @@ declare const provideHandlers$9: ServicePluginDefinition$9<{
2204
2089
  calculateAdditionalFees(payload: CalculateAdditionalFeesEnvelope): CalculateAdditionalFeesResponse | Promise<CalculateAdditionalFeesResponse>;
2205
2090
  }>;
2206
2091
 
2207
- type ServicePluginMethodInput$4 = {
2208
- request: any;
2209
- metadata: any;
2210
- };
2211
- type ServicePluginContract$4 = Record<string, (payload: ServicePluginMethodInput$4) => unknown | Promise<unknown>>;
2212
- type ServicePluginMethodMetadata$4 = {
2213
- name: string;
2214
- primaryHttpMappingPath: string;
2215
- transformations: {
2216
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$4;
2217
- toREST: (...args: unknown[]) => unknown;
2218
- };
2219
- };
2220
- type ServicePluginDefinition$4<Contract extends ServicePluginContract$4> = {
2221
- __type: 'service-plugin-definition';
2222
- componentType: string;
2223
- methods: ServicePluginMethodMetadata$4[];
2224
- __contract: Contract;
2225
- };
2226
- declare function ServicePluginDefinition$4<Contract extends ServicePluginContract$4>(componentType: string, methods: ServicePluginMethodMetadata$4[]): ServicePluginDefinition$4<Contract>;
2227
- type BuildServicePluginDefinition$4<T extends ServicePluginDefinition$4<any>> = (implementation: T['__contract']) => void;
2228
-
2229
- declare global {
2230
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2231
- interface SymbolConstructor {
2232
- readonly observable: symbol;
2233
- }
2234
- }
2235
-
2236
- declare function createServicePluginModule$4<T extends ServicePluginDefinition$4<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$4<T> & T;
2092
+ declare function createServicePluginModule$4<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2237
2093
 
2238
2094
  type _publicProvideHandlersType$4 = typeof provideHandlers$9;
2239
2095
  declare const provideHandlers$8: ReturnType<typeof createServicePluginModule$4<_publicProvideHandlersType>>;
@@ -2392,7 +2248,7 @@ interface GetEligibleTriggersEnvelope {
2392
2248
  request: GetEligibleTriggersRequest;
2393
2249
  metadata: Context$3;
2394
2250
  }
2395
- declare const provideHandlers$7: ServicePluginDefinition$9<{
2251
+ declare const provideHandlers$7: ServicePluginDefinition<{
2396
2252
  /**
2397
2253
  *
2398
2254
  * Lists all custom triggers provided by your service plugin integration.
@@ -2408,36 +2264,7 @@ declare const provideHandlers$7: ServicePluginDefinition$9<{
2408
2264
  getEligibleTriggers(payload: GetEligibleTriggersEnvelope): GetEligibleTriggersResponse | Promise<GetEligibleTriggersResponse>;
2409
2265
  }>;
2410
2266
 
2411
- type ServicePluginMethodInput$3 = {
2412
- request: any;
2413
- metadata: any;
2414
- };
2415
- type ServicePluginContract$3 = Record<string, (payload: ServicePluginMethodInput$3) => unknown | Promise<unknown>>;
2416
- type ServicePluginMethodMetadata$3 = {
2417
- name: string;
2418
- primaryHttpMappingPath: string;
2419
- transformations: {
2420
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$3;
2421
- toREST: (...args: unknown[]) => unknown;
2422
- };
2423
- };
2424
- type ServicePluginDefinition$3<Contract extends ServicePluginContract$3> = {
2425
- __type: 'service-plugin-definition';
2426
- componentType: string;
2427
- methods: ServicePluginMethodMetadata$3[];
2428
- __contract: Contract;
2429
- };
2430
- declare function ServicePluginDefinition$3<Contract extends ServicePluginContract$3>(componentType: string, methods: ServicePluginMethodMetadata$3[]): ServicePluginDefinition$3<Contract>;
2431
- type BuildServicePluginDefinition$3<T extends ServicePluginDefinition$3<any>> = (implementation: T['__contract']) => void;
2432
-
2433
- declare global {
2434
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2435
- interface SymbolConstructor {
2436
- readonly observable: symbol;
2437
- }
2438
- }
2439
-
2440
- declare function createServicePluginModule$3<T extends ServicePluginDefinition$3<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$3<T> & T;
2267
+ declare function createServicePluginModule$3<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2441
2268
 
2442
2269
  type _publicProvideHandlersType$3 = typeof provideHandlers$7;
2443
2270
  declare const provideHandlers$6: ReturnType<typeof createServicePluginModule$3<_publicProvideHandlersType>>;
@@ -2661,7 +2488,7 @@ interface GetEligibleDiscountsEnvelope {
2661
2488
  request: GetEligibleDiscountsRequest;
2662
2489
  metadata: Context$2;
2663
2490
  }
2664
- declare const provideHandlers$5: ServicePluginDefinition$9<{
2491
+ declare const provideHandlers$5: ServicePluginDefinition<{
2665
2492
  /**
2666
2493
  *
2667
2494
  * Wix calls this method when certain actions are performed on the cart or checkout.
@@ -2669,36 +2496,7 @@ declare const provideHandlers$5: ServicePluginDefinition$9<{
2669
2496
  getEligibleDiscounts(payload: GetEligibleDiscountsEnvelope): GetEligibleDiscountsResponse | Promise<GetEligibleDiscountsResponse>;
2670
2497
  }>;
2671
2498
 
2672
- type ServicePluginMethodInput$2 = {
2673
- request: any;
2674
- metadata: any;
2675
- };
2676
- type ServicePluginContract$2 = Record<string, (payload: ServicePluginMethodInput$2) => unknown | Promise<unknown>>;
2677
- type ServicePluginMethodMetadata$2 = {
2678
- name: string;
2679
- primaryHttpMappingPath: string;
2680
- transformations: {
2681
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$2;
2682
- toREST: (...args: unknown[]) => unknown;
2683
- };
2684
- };
2685
- type ServicePluginDefinition$2<Contract extends ServicePluginContract$2> = {
2686
- __type: 'service-plugin-definition';
2687
- componentType: string;
2688
- methods: ServicePluginMethodMetadata$2[];
2689
- __contract: Contract;
2690
- };
2691
- declare function ServicePluginDefinition$2<Contract extends ServicePluginContract$2>(componentType: string, methods: ServicePluginMethodMetadata$2[]): ServicePluginDefinition$2<Contract>;
2692
- type BuildServicePluginDefinition$2<T extends ServicePluginDefinition$2<any>> = (implementation: T['__contract']) => void;
2693
-
2694
- declare global {
2695
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2696
- interface SymbolConstructor {
2697
- readonly observable: symbol;
2698
- }
2699
- }
2700
-
2701
- declare function createServicePluginModule$2<T extends ServicePluginDefinition$2<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$2<T> & T;
2499
+ declare function createServicePluginModule$2<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
2702
2500
 
2703
2501
  type _publicProvideHandlersType$2 = typeof provideHandlers$5;
2704
2502
  declare const provideHandlers$4: ReturnType<typeof createServicePluginModule$2<_publicProvideHandlersType>>;
@@ -3363,13 +3161,7 @@ declare enum PaymentStatus {
3363
3161
  /** Payments received but not yet confirmed by the payment provider */
3364
3162
  PENDING = "PENDING",
3365
3163
  /** 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"
3164
+ PARTIALLY_PAID = "PARTIALLY_PAID"
3373
3165
  }
3374
3166
  declare enum FulfillmentStatus {
3375
3167
  /** none of the order items are fulfilled or order was manually marked as unfulfilled */
@@ -3576,9 +3368,7 @@ interface ShippingRegion {
3576
3368
  declare enum OrderStatus {
3577
3369
  INITIALIZED = "INITIALIZED",
3578
3370
  APPROVED = "APPROVED",
3579
- CANCELED = "CANCELED",
3580
- PENDING = "PENDING",
3581
- REJECTED = "REJECTED"
3371
+ CANCELED = "CANCELED"
3582
3372
  }
3583
3373
  interface TaxSummary {
3584
3374
  /**
@@ -4060,17 +3850,7 @@ declare enum ActivityType {
4060
3850
  NEW_EXCHANGE_ORDER_CREATED = "NEW_EXCHANGE_ORDER_CREATED",
4061
3851
  ORDER_PARTIALLY_PAID = "ORDER_PARTIALLY_PAID",
4062
3852
  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"
3853
+ SAVED_PAYMENT_METHOD = "SAVED_PAYMENT_METHOD"
4074
3854
  }
4075
3855
  declare enum AttributionSource {
4076
3856
  UNSPECIFIED = "UNSPECIFIED",
@@ -5580,7 +5360,7 @@ interface GetPaymentSettingsForCheckoutEnvelope {
5580
5360
  request: GetPaymentSettingsForCheckoutRequest;
5581
5361
  metadata: Context$1;
5582
5362
  }
5583
- declare const provideHandlers$3: ServicePluginDefinition$9<{
5363
+ declare const provideHandlers$3: ServicePluginDefinition<{
5584
5364
  /**
5585
5365
  *
5586
5366
  * This method retrieves payment settings from your app.
@@ -5593,36 +5373,7 @@ declare const provideHandlers$3: ServicePluginDefinition$9<{
5593
5373
  getPaymentSettingsForCheckout(payload: GetPaymentSettingsForCheckoutEnvelope): GetPaymentSettingsForCheckoutResponse | Promise<GetPaymentSettingsForCheckoutResponse>;
5594
5374
  }>;
5595
5375
 
5596
- type ServicePluginMethodInput$1 = {
5597
- request: any;
5598
- metadata: any;
5599
- };
5600
- type ServicePluginContract$1 = Record<string, (payload: ServicePluginMethodInput$1) => unknown | Promise<unknown>>;
5601
- type ServicePluginMethodMetadata$1 = {
5602
- name: string;
5603
- primaryHttpMappingPath: string;
5604
- transformations: {
5605
- fromREST: (...args: unknown[]) => ServicePluginMethodInput$1;
5606
- toREST: (...args: unknown[]) => unknown;
5607
- };
5608
- };
5609
- type ServicePluginDefinition$1<Contract extends ServicePluginContract$1> = {
5610
- __type: 'service-plugin-definition';
5611
- componentType: string;
5612
- methods: ServicePluginMethodMetadata$1[];
5613
- __contract: Contract;
5614
- };
5615
- declare function ServicePluginDefinition$1<Contract extends ServicePluginContract$1>(componentType: string, methods: ServicePluginMethodMetadata$1[]): ServicePluginDefinition$1<Contract>;
5616
- type BuildServicePluginDefinition$1<T extends ServicePluginDefinition$1<any>> = (implementation: T['__contract']) => void;
5617
-
5618
- declare global {
5619
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
5620
- interface SymbolConstructor {
5621
- readonly observable: symbol;
5622
- }
5623
- }
5624
-
5625
- declare function createServicePluginModule$1<T extends ServicePluginDefinition$1<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$1<T> & T;
5376
+ declare function createServicePluginModule$1<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
5626
5377
 
5627
5378
  type _publicProvideHandlersType$1 = typeof provideHandlers$3;
5628
5379
  declare const provideHandlers$2: ReturnType<typeof createServicePluginModule$1<_publicProvideHandlersType>>;
@@ -6469,7 +6220,7 @@ interface GetValidationViolationsEnvelope {
6469
6220
  request: GetValidationViolationsRequest;
6470
6221
  metadata: Context;
6471
6222
  }
6472
- declare const provideHandlers$1: ServicePluginDefinition$9<{
6223
+ declare const provideHandlers$1: ServicePluginDefinition<{
6473
6224
  /**
6474
6225
  *
6475
6226
  * This method retrieves validation violations from your app.
@@ -6483,35 +6234,6 @@ declare const provideHandlers$1: ServicePluginDefinition$9<{
6483
6234
  getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
6484
6235
  }>;
6485
6236
 
6486
- type ServicePluginMethodInput = {
6487
- request: any;
6488
- metadata: any;
6489
- };
6490
- type ServicePluginContract = Record<string, (payload: ServicePluginMethodInput) => unknown | Promise<unknown>>;
6491
- type ServicePluginMethodMetadata = {
6492
- name: string;
6493
- primaryHttpMappingPath: string;
6494
- transformations: {
6495
- fromREST: (...args: unknown[]) => ServicePluginMethodInput;
6496
- toREST: (...args: unknown[]) => unknown;
6497
- };
6498
- };
6499
- type ServicePluginDefinition<Contract extends ServicePluginContract> = {
6500
- __type: 'service-plugin-definition';
6501
- componentType: string;
6502
- methods: ServicePluginMethodMetadata[];
6503
- __contract: Contract;
6504
- };
6505
- declare function ServicePluginDefinition<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): ServicePluginDefinition<Contract>;
6506
- type BuildServicePluginDefinition<T extends ServicePluginDefinition<any>> = (implementation: T['__contract']) => void;
6507
-
6508
- declare global {
6509
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
6510
- interface SymbolConstructor {
6511
- readonly observable: symbol;
6512
- }
6513
- }
6514
-
6515
6237
  declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): BuildServicePluginDefinition<T> & T;
6516
6238
 
6517
6239
  type _publicProvideHandlersType = typeof provideHandlers$1;