@wix/ecom 1.0.782 → 1.0.783
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/build/cjs/service-plugins-context.d.ts +1 -0
- package/build/cjs/service-plugins-context.js +2 -1
- package/build/cjs/service-plugins-context.js.map +1 -1
- package/build/cjs/service-plugins.d.ts +1 -0
- package/build/cjs/service-plugins.js +2 -1
- package/build/cjs/service-plugins.js.map +1 -1
- package/build/es/service-plugins-context.d.ts +1 -0
- package/build/es/service-plugins-context.js +1 -0
- package/build/es/service-plugins-context.js.map +1 -1
- package/build/es/service-plugins.d.ts +1 -0
- package/build/es/service-plugins.js +1 -0
- package/build/es/service-plugins.js.map +1 -1
- package/package.json +3 -2
- package/type-bundles/service-plugins-context.bundle.d.ts +616 -49
- package/type-bundles/service-plugins.bundle.d.ts +627 -60
|
@@ -86,26 +86,26 @@ interface GiftCardProviderConfig {
|
|
|
86
86
|
* }
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
|
-
interface Context$
|
|
89
|
+
interface Context$8 {
|
|
90
90
|
/** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
|
|
91
91
|
requestId?: string | null;
|
|
92
92
|
/** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
|
|
93
93
|
currency?: string | null;
|
|
94
94
|
/** An object that describes the identity that triggered this request. */
|
|
95
|
-
identity?: IdentificationData$
|
|
95
|
+
identity?: IdentificationData$8;
|
|
96
96
|
/** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
|
|
97
97
|
languages?: string[];
|
|
98
98
|
/** The service provider app's instance ID. */
|
|
99
99
|
instanceId?: string | null;
|
|
100
100
|
}
|
|
101
|
-
declare enum IdentityType$
|
|
101
|
+
declare enum IdentityType$8 {
|
|
102
102
|
UNKNOWN = "UNKNOWN",
|
|
103
103
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
104
104
|
MEMBER = "MEMBER",
|
|
105
105
|
WIX_USER = "WIX_USER",
|
|
106
106
|
APP = "APP"
|
|
107
107
|
}
|
|
108
|
-
interface IdentificationData$
|
|
108
|
+
interface IdentificationData$8 extends IdentificationDataIdOneOf$8 {
|
|
109
109
|
/** ID of a site visitor that has not logged in to the site. */
|
|
110
110
|
anonymousVisitorId?: string;
|
|
111
111
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -115,10 +115,10 @@ interface IdentificationData$7 extends IdentificationDataIdOneOf$7 {
|
|
|
115
115
|
/** ID of an app. */
|
|
116
116
|
appId?: string;
|
|
117
117
|
/** @readonly */
|
|
118
|
-
identityType?: IdentityType$
|
|
118
|
+
identityType?: IdentityType$8;
|
|
119
119
|
}
|
|
120
120
|
/** @oneof */
|
|
121
|
-
interface IdentificationDataIdOneOf$
|
|
121
|
+
interface IdentificationDataIdOneOf$8 {
|
|
122
122
|
/** ID of a site visitor that has not logged in to the site. */
|
|
123
123
|
anonymousVisitorId?: string;
|
|
124
124
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -228,7 +228,7 @@ declare class CurrencyNotSupportedWixError extends Error {
|
|
|
228
228
|
/**
|
|
229
229
|
* Transaction not found.
|
|
230
230
|
*/
|
|
231
|
-
declare class TransactionNotFoundWixError extends Error {
|
|
231
|
+
declare class TransactionNotFoundWixError$1 extends Error {
|
|
232
232
|
/** @hidden */
|
|
233
233
|
httpCode: number;
|
|
234
234
|
/** @hidden */
|
|
@@ -258,26 +258,26 @@ declare class AlreadyVoidedWixError extends Error {
|
|
|
258
258
|
static readonly __type = "wix_spi_error";
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
type ServicePluginMethodInput$
|
|
261
|
+
type ServicePluginMethodInput$9 = {
|
|
262
262
|
request: any;
|
|
263
263
|
metadata: any;
|
|
264
264
|
};
|
|
265
|
-
type ServicePluginContract$
|
|
266
|
-
type ServicePluginMethodMetadata$
|
|
265
|
+
type ServicePluginContract$9 = Record<string, (payload: ServicePluginMethodInput$9) => unknown | Promise<unknown>>;
|
|
266
|
+
type ServicePluginMethodMetadata$9 = {
|
|
267
267
|
name: string;
|
|
268
268
|
primaryHttpMappingPath: string;
|
|
269
269
|
transformations: {
|
|
270
|
-
fromREST: (...args: unknown[]) => ServicePluginMethodInput$
|
|
270
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$9;
|
|
271
271
|
toREST: (...args: unknown[]) => unknown;
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
|
-
type ServicePluginDefinition$
|
|
274
|
+
type ServicePluginDefinition$9<Contract extends ServicePluginContract$9> = {
|
|
275
275
|
__type: 'service-plugin-definition';
|
|
276
276
|
componentType: string;
|
|
277
|
-
methods: ServicePluginMethodMetadata$
|
|
277
|
+
methods: ServicePluginMethodMetadata$9[];
|
|
278
278
|
__contract: Contract;
|
|
279
279
|
};
|
|
280
|
-
declare function ServicePluginDefinition$
|
|
280
|
+
declare function ServicePluginDefinition$9<Contract extends ServicePluginContract$9>(componentType: string, methods: ServicePluginMethodMetadata$9[]): ServicePluginDefinition$9<Contract>;
|
|
281
281
|
|
|
282
282
|
declare global {
|
|
283
283
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -293,17 +293,17 @@ declare global {
|
|
|
293
293
|
|
|
294
294
|
interface GetBalanceEnvelope {
|
|
295
295
|
request: GetBalanceRequest;
|
|
296
|
-
metadata: Context$
|
|
296
|
+
metadata: Context$8;
|
|
297
297
|
}
|
|
298
298
|
interface RedeemEnvelope {
|
|
299
299
|
request: RedeemRequest;
|
|
300
|
-
metadata: Context$
|
|
300
|
+
metadata: Context$8;
|
|
301
301
|
}
|
|
302
302
|
interface _voidEnvelope {
|
|
303
303
|
request: VoidRequest;
|
|
304
|
-
metadata: Context$
|
|
304
|
+
metadata: Context$8;
|
|
305
305
|
}
|
|
306
|
-
declare const provideHandlers$
|
|
306
|
+
declare const provideHandlers$h: ServicePluginDefinition$9<{
|
|
307
307
|
/**
|
|
308
308
|
*
|
|
309
309
|
* This method retrieves gift card data from your app.
|
|
@@ -321,6 +321,558 @@ declare const provideHandlers$f: ServicePluginDefinition$8<{
|
|
|
321
321
|
_void(payload: _voidEnvelope): VoidResponse | Promise<VoidResponse>;
|
|
322
322
|
}>;
|
|
323
323
|
|
|
324
|
+
type ServicePluginMethodInput$8 = {
|
|
325
|
+
request: any;
|
|
326
|
+
metadata: any;
|
|
327
|
+
};
|
|
328
|
+
type ServicePluginContract$8 = Record<string, (payload: ServicePluginMethodInput$8) => unknown | Promise<unknown>>;
|
|
329
|
+
type ServicePluginMethodMetadata$8 = {
|
|
330
|
+
name: string;
|
|
331
|
+
primaryHttpMappingPath: string;
|
|
332
|
+
transformations: {
|
|
333
|
+
fromREST: (...args: unknown[]) => ServicePluginMethodInput$8;
|
|
334
|
+
toREST: (...args: unknown[]) => unknown;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
type ServicePluginDefinition$8<Contract extends ServicePluginContract$8> = {
|
|
338
|
+
__type: 'service-plugin-definition';
|
|
339
|
+
componentType: string;
|
|
340
|
+
methods: ServicePluginMethodMetadata$8[];
|
|
341
|
+
__contract: Contract;
|
|
342
|
+
};
|
|
343
|
+
declare function ServicePluginDefinition$8<Contract extends ServicePluginContract$8>(componentType: string, methods: ServicePluginMethodMetadata$8[]): ServicePluginDefinition$8<Contract>;
|
|
344
|
+
type BuildServicePluginDefinition$8<T extends ServicePluginDefinition$8<any>> = (implementation: T['__contract']) => void;
|
|
345
|
+
|
|
346
|
+
declare global {
|
|
347
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
348
|
+
interface SymbolConstructor {
|
|
349
|
+
readonly observable: symbol;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
declare function createServicePluginModule$8<T extends ServicePluginDefinition$8<any>>(servicePluginDefinition: T): BuildServicePluginDefinition$8<T> & T;
|
|
354
|
+
|
|
355
|
+
type _publicProvideHandlersType$8 = typeof provideHandlers$h;
|
|
356
|
+
declare const provideHandlers$g: ReturnType<typeof createServicePluginModule$8<_publicProvideHandlersType>>;
|
|
357
|
+
|
|
358
|
+
type context$8_AlreadyRedeemedWixError = AlreadyRedeemedWixError;
|
|
359
|
+
declare const context$8_AlreadyRedeemedWixError: typeof AlreadyRedeemedWixError;
|
|
360
|
+
type context$8_AlreadyVoidedWixError = AlreadyVoidedWixError;
|
|
361
|
+
declare const context$8_AlreadyVoidedWixError: typeof AlreadyVoidedWixError;
|
|
362
|
+
type context$8_CurrencyNotSupportedWixError = CurrencyNotSupportedWixError;
|
|
363
|
+
declare const context$8_CurrencyNotSupportedWixError: typeof CurrencyNotSupportedWixError;
|
|
364
|
+
type context$8_GetBalanceRequest = GetBalanceRequest;
|
|
365
|
+
type context$8_GetBalanceResponse = GetBalanceResponse;
|
|
366
|
+
type context$8_GiftCardDisabledWixError = GiftCardDisabledWixError;
|
|
367
|
+
declare const context$8_GiftCardDisabledWixError: typeof GiftCardDisabledWixError;
|
|
368
|
+
type context$8_GiftCardExpiredWixError = GiftCardExpiredWixError;
|
|
369
|
+
declare const context$8_GiftCardExpiredWixError: typeof GiftCardExpiredWixError;
|
|
370
|
+
type context$8_GiftCardNotFoundWixError = GiftCardNotFoundWixError;
|
|
371
|
+
declare const context$8_GiftCardNotFoundWixError: typeof GiftCardNotFoundWixError;
|
|
372
|
+
type context$8_GiftCardProviderConfig = GiftCardProviderConfig;
|
|
373
|
+
type context$8_GiftCardProviderEntity = GiftCardProviderEntity;
|
|
374
|
+
type context$8_InsufficientFundsWixError = InsufficientFundsWixError;
|
|
375
|
+
declare const context$8_InsufficientFundsWixError: typeof InsufficientFundsWixError;
|
|
376
|
+
type context$8_RedeemRequest = RedeemRequest;
|
|
377
|
+
type context$8_RedeemResponse = RedeemResponse;
|
|
378
|
+
type context$8_VoidRequest = VoidRequest;
|
|
379
|
+
type context$8_VoidResponse = VoidResponse;
|
|
380
|
+
declare namespace context$8 {
|
|
381
|
+
export { context$8_AlreadyRedeemedWixError as AlreadyRedeemedWixError, context$8_AlreadyVoidedWixError as AlreadyVoidedWixError, type Context$8 as Context, context$8_CurrencyNotSupportedWixError as CurrencyNotSupportedWixError, type context$8_GetBalanceRequest as GetBalanceRequest, type context$8_GetBalanceResponse as GetBalanceResponse, context$8_GiftCardDisabledWixError as GiftCardDisabledWixError, context$8_GiftCardExpiredWixError as GiftCardExpiredWixError, context$8_GiftCardNotFoundWixError as GiftCardNotFoundWixError, type context$8_GiftCardProviderConfig as GiftCardProviderConfig, type context$8_GiftCardProviderEntity as GiftCardProviderEntity, type IdentificationData$8 as IdentificationData, type IdentificationDataIdOneOf$8 as IdentificationDataIdOneOf, IdentityType$8 as IdentityType, context$8_InsufficientFundsWixError as InsufficientFundsWixError, type context$8_RedeemRequest as RedeemRequest, type context$8_RedeemResponse as RedeemResponse, TransactionNotFoundWixError$1 as TransactionNotFoundWixError, type context$8_VoidRequest as VoidRequest, type context$8_VoidResponse as VoidResponse, type _publicProvideHandlersType$8 as _publicProvideHandlersType, provideHandlers$g as provideHandlers, provideHandlers$h as publicProvideHandlers };
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
interface ListEligibleMembershipsRequest {
|
|
385
|
+
/** The line items for which to list eligible memberships. */
|
|
386
|
+
lineItems: LineItem$5[];
|
|
387
|
+
/**
|
|
388
|
+
* Member ID.
|
|
389
|
+
*
|
|
390
|
+
* Do not retrieve this from the request context. In some cases the caller is not a member, but a user who is using the membership on behalf of a member.
|
|
391
|
+
*/
|
|
392
|
+
memberId: string;
|
|
393
|
+
/**
|
|
394
|
+
* The selected payment memberships and which line items they apply to.
|
|
395
|
+
*
|
|
396
|
+
* When not provided, your implementation is expected to return the default selection.
|
|
397
|
+
* When provided, your implementation is expected to validate and return it.
|
|
398
|
+
*/
|
|
399
|
+
selectedMemberships?: SelectedMemberships$1;
|
|
400
|
+
}
|
|
401
|
+
interface LineItem$5 {
|
|
402
|
+
/** Line item ID. */
|
|
403
|
+
_id?: string;
|
|
404
|
+
/** Catalog and item reference info. */
|
|
405
|
+
catalogReference?: CatalogReference$7;
|
|
406
|
+
/** Properties of the service. When relevant, contains information such as date and number of participants. */
|
|
407
|
+
serviceProperties?: ServiceProperties$1;
|
|
408
|
+
/**
|
|
409
|
+
* Root catalog item ID.
|
|
410
|
+
*
|
|
411
|
+
* The value will usually be the same as `catalogReference.catalogItemId`.
|
|
412
|
+
* In cases when these are not the same, this field will return the actual ID of the item in the catalog.
|
|
413
|
+
* For example, for Wix bookings, the value of `catalogReference.catalogItemId` is the booking ID, but `rootCatalogItemId` is set to the service ID.
|
|
414
|
+
*/
|
|
415
|
+
rootCatalogItemId?: string | null;
|
|
416
|
+
}
|
|
417
|
+
/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
|
|
418
|
+
interface CatalogReference$7 {
|
|
419
|
+
/** ID of the item within the catalog it belongs to. */
|
|
420
|
+
catalogItemId?: string;
|
|
421
|
+
/**
|
|
422
|
+
* ID of the app providing the catalog.
|
|
423
|
+
*
|
|
424
|
+
* You can get your app's ID from its page in the [Wix Dev Center](https://dev.wix.com/apps).
|
|
425
|
+
*
|
|
426
|
+
* For items from Wix catalogs, the following values always apply:
|
|
427
|
+
* + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
|
|
428
|
+
* + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
|
|
429
|
+
* + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
|
|
430
|
+
*/
|
|
431
|
+
appId?: string;
|
|
432
|
+
/**
|
|
433
|
+
* Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
|
|
434
|
+
*
|
|
435
|
+
* For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).
|
|
436
|
+
*/
|
|
437
|
+
options?: Record<string, any> | null;
|
|
438
|
+
}
|
|
439
|
+
interface ServiceProperties$1 {
|
|
440
|
+
/**
|
|
441
|
+
* Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
442
|
+
* For example, the start time of a class.
|
|
443
|
+
*/
|
|
444
|
+
scheduledDate?: Date;
|
|
445
|
+
/** The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room. */
|
|
446
|
+
numberOfParticipants?: number | null;
|
|
447
|
+
}
|
|
448
|
+
interface SelectedMemberships$1 {
|
|
449
|
+
/** Selected memberships. */
|
|
450
|
+
memberships?: SelectedMembership$1[];
|
|
451
|
+
}
|
|
452
|
+
interface SelectedMembership$1 {
|
|
453
|
+
/** Membership ID. */
|
|
454
|
+
_id?: string;
|
|
455
|
+
/** IDs of the line items this membership applies to. */
|
|
456
|
+
lineItemIds?: string[];
|
|
457
|
+
}
|
|
458
|
+
interface ListEligibleMembershipsResponse {
|
|
459
|
+
/** List of memberships that are eligible for the given member and line items. */
|
|
460
|
+
eligibleMemberships?: Membership$1[];
|
|
461
|
+
/** List of memberships owned by the member, but cannot be used due to the reason provided. */
|
|
462
|
+
invalidMemberships?: InvalidMembership$1[];
|
|
463
|
+
/** List of selected memberships and which line items they apply to. */
|
|
464
|
+
selectedMemberships?: SelectedMembership$1[];
|
|
465
|
+
}
|
|
466
|
+
interface Membership$1 {
|
|
467
|
+
/** Membership ID. */
|
|
468
|
+
_id?: string;
|
|
469
|
+
/** Membership name. */
|
|
470
|
+
name?: MembershipName$1;
|
|
471
|
+
/** Line item IDs this membership applies to. */
|
|
472
|
+
lineItemIds?: string[];
|
|
473
|
+
/** Total and remaining membership credits. */
|
|
474
|
+
credits?: MembershipPaymentCredits$1;
|
|
475
|
+
/** Membership expiration date. */
|
|
476
|
+
expirationDate?: Date;
|
|
477
|
+
/** Additional data about this membership. */
|
|
478
|
+
additionalData?: Record<string, any> | null;
|
|
479
|
+
}
|
|
480
|
+
interface MembershipName$1 {
|
|
481
|
+
/** Membership name. */
|
|
482
|
+
original?: string;
|
|
483
|
+
/** Translated membership name. Defaults to `original` when not provided. */
|
|
484
|
+
translated?: string | null;
|
|
485
|
+
}
|
|
486
|
+
interface MembershipPaymentCredits$1 {
|
|
487
|
+
/** Membership's total amount of credits. */
|
|
488
|
+
total?: number;
|
|
489
|
+
/** Membership's remaining amount of credits. */
|
|
490
|
+
remaining?: number;
|
|
491
|
+
}
|
|
492
|
+
interface InvalidMembership$1 {
|
|
493
|
+
/** The membership that is invalid and cannot be used. */
|
|
494
|
+
membership?: Membership$1;
|
|
495
|
+
/** Reason why this membership is invalid. */
|
|
496
|
+
reason?: string;
|
|
497
|
+
}
|
|
498
|
+
interface MembershipInvalidSelectionErrors {
|
|
499
|
+
/** Error details for invalid memberships. */
|
|
500
|
+
membershipInvalidSelectionErrors?: MembershipInvalidSelectionError[];
|
|
501
|
+
}
|
|
502
|
+
interface MembershipInvalidSelectionError extends MembershipInvalidSelectionErrorErrorDataOneOf {
|
|
503
|
+
/** Line item IDs that were missing. */
|
|
504
|
+
lineItemNotFoundInfo?: LineItemNotFoundInfo;
|
|
505
|
+
/** Error details for line items that cannot be used with this membership. */
|
|
506
|
+
membershipCannotBeUsedForLineItemsInfo?: MembershipCannotBeUsedForLineItemsInfo;
|
|
507
|
+
/** Reason why this membership selection is invalid. */
|
|
508
|
+
membershipSelectionInvalidReason?: string | null;
|
|
509
|
+
/** Membership ID. */
|
|
510
|
+
membershipId?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Error type.
|
|
513
|
+
*
|
|
514
|
+
* + MEMBERSHIP_NOT_FOUND: Membership not found.
|
|
515
|
+
* + LINE_ITEM_NOT_FOUND: The selection points to a line item ID that wasn't provided.
|
|
516
|
+
* + MEMBERSHIP_CANNOT_BE_USED_FOR_LINE_ITEMS: The membership cannot be used for the specific line items provided.
|
|
517
|
+
* + MEMBERSHIP_SELECTION_INVALID: The membership can be used for each individual line item, but combining all of them is invalid.
|
|
518
|
+
*/
|
|
519
|
+
errorType?: MembershipErrorType;
|
|
520
|
+
}
|
|
521
|
+
/** @oneof */
|
|
522
|
+
interface MembershipInvalidSelectionErrorErrorDataOneOf {
|
|
523
|
+
/** Line item IDs that were missing. */
|
|
524
|
+
lineItemNotFoundInfo?: LineItemNotFoundInfo;
|
|
525
|
+
/** Error details for line items that cannot be used with this membership. */
|
|
526
|
+
membershipCannotBeUsedForLineItemsInfo?: MembershipCannotBeUsedForLineItemsInfo;
|
|
527
|
+
/** Reason why this membership selection is invalid. */
|
|
528
|
+
membershipSelectionInvalidReason?: string | null;
|
|
529
|
+
}
|
|
530
|
+
declare enum MembershipErrorType {
|
|
531
|
+
UNKNOWN = "UNKNOWN",
|
|
532
|
+
MEMBERSHIP_NOT_FOUND = "MEMBERSHIP_NOT_FOUND",
|
|
533
|
+
/** which line item ids */
|
|
534
|
+
LINE_ITEM_NOT_FOUND = "LINE_ITEM_NOT_FOUND",
|
|
535
|
+
/** which ids and why */
|
|
536
|
+
MEMBERSHIP_CANNOT_BE_USED_FOR_LINE_ITEMS = "MEMBERSHIP_CANNOT_BE_USED_FOR_LINE_ITEMS",
|
|
537
|
+
/** reason */
|
|
538
|
+
MEMBERSHIP_SELECTION_INVALID = "MEMBERSHIP_SELECTION_INVALID"
|
|
539
|
+
}
|
|
540
|
+
interface LineItemNotFoundInfo {
|
|
541
|
+
/** Line item IDs that were missing. */
|
|
542
|
+
lineItemIds?: string[];
|
|
543
|
+
}
|
|
544
|
+
interface MembershipCannotBeUsedForLineItemsInfo {
|
|
545
|
+
/** Line items that cannot be used with this membership, and the reason why. */
|
|
546
|
+
lineItems?: MembershipCannotBeUsedForLineItemInfo[];
|
|
547
|
+
}
|
|
548
|
+
interface MembershipCannotBeUsedForLineItemInfo {
|
|
549
|
+
/** Line item ID. */
|
|
550
|
+
lineItemId?: string;
|
|
551
|
+
/** Reason why this line item cannot be used with this membership. */
|
|
552
|
+
reason?: string;
|
|
553
|
+
}
|
|
554
|
+
interface ChargeMembershipRequest {
|
|
555
|
+
/**
|
|
556
|
+
* Member ID.
|
|
557
|
+
*
|
|
558
|
+
* Do not retrieve this from the request context. In some cases the caller is not a member, but a user who is using the membership on behalf of a member.
|
|
559
|
+
*/
|
|
560
|
+
memberId: string;
|
|
561
|
+
/** Membership ID, as returned from the List Eligible Memberships call. */
|
|
562
|
+
membershipId: string;
|
|
563
|
+
/**
|
|
564
|
+
* Idempotency key to avoid duplicate charge.
|
|
565
|
+
* The value will usually would be the same as `membershipId` + `orderId` + `rootCatalogItemId`.
|
|
566
|
+
*/
|
|
567
|
+
idempotencyKey: string;
|
|
568
|
+
/**
|
|
569
|
+
* Service properties.
|
|
570
|
+
*
|
|
571
|
+
* When relevant, this contains information such as date and number of participants.
|
|
572
|
+
*/
|
|
573
|
+
serviceProperties?: ServiceProperties$1;
|
|
574
|
+
/** Catalog and item reference info. */
|
|
575
|
+
catalogReference: CatalogReference$7;
|
|
576
|
+
/**
|
|
577
|
+
* Root catalog item ID.
|
|
578
|
+
*
|
|
579
|
+
* The value will usually be the same as `catalogReference.catalogItemId`.
|
|
580
|
+
* In cases when these are not the same, this field will return the actual ID of the item in the catalog.
|
|
581
|
+
* For example, for Wix bookings, the value of `catalogReference.catalogItemId` is the booking ID, but `rootCatalogItemId` is set to the service ID.
|
|
582
|
+
*/
|
|
583
|
+
rootCatalogItemId?: string | null;
|
|
584
|
+
/** Additional data about this charge. */
|
|
585
|
+
additionalData?: Record<string, any> | null;
|
|
586
|
+
}
|
|
587
|
+
interface ChargeMembershipResponse {
|
|
588
|
+
/**
|
|
589
|
+
* The transaction ID for this charge.
|
|
590
|
+
*
|
|
591
|
+
* Use this ID to void the charge.
|
|
592
|
+
*/
|
|
593
|
+
transactionId?: string;
|
|
594
|
+
}
|
|
595
|
+
interface MembershipCannotBeChargedError extends MembershipCannotBeChargedErrorErrorDataOneOf {
|
|
596
|
+
/** Membership is out of credits. For example, 5 are required, but only 4 remain. */
|
|
597
|
+
outOfCredits?: OutOfCredits;
|
|
598
|
+
/** Membership has not become active yet. */
|
|
599
|
+
notStartedYet?: NotStartedYet;
|
|
600
|
+
/** Membership has expired or ended. */
|
|
601
|
+
ended?: Ended;
|
|
602
|
+
/** Error type. */
|
|
603
|
+
errorType?: MembershipCannotBeChargedType;
|
|
604
|
+
}
|
|
605
|
+
/** @oneof */
|
|
606
|
+
interface MembershipCannotBeChargedErrorErrorDataOneOf {
|
|
607
|
+
/** Membership is out of credits. For example, 5 are required, but only 4 remain. */
|
|
608
|
+
outOfCredits?: OutOfCredits;
|
|
609
|
+
/** Membership has not become active yet. */
|
|
610
|
+
notStartedYet?: NotStartedYet;
|
|
611
|
+
/** Membership has expired or ended. */
|
|
612
|
+
ended?: Ended;
|
|
613
|
+
}
|
|
614
|
+
declare enum MembershipCannotBeChargedType {
|
|
615
|
+
OUT_OF_CREDITS = "OUT_OF_CREDITS",
|
|
616
|
+
NOT_STARTED_YET = "NOT_STARTED_YET",
|
|
617
|
+
ENDED = "ENDED",
|
|
618
|
+
NOT_APPLICABLE_FOR_MULTIPLE_PARTICIPANTS = "NOT_APPLICABLE_FOR_MULTIPLE_PARTICIPANTS"
|
|
619
|
+
}
|
|
620
|
+
interface OutOfCredits {
|
|
621
|
+
/** Required amount of credits. */
|
|
622
|
+
required?: number;
|
|
623
|
+
/** Remaining amount of credits. */
|
|
624
|
+
remaining?: number;
|
|
625
|
+
}
|
|
626
|
+
interface NotStartedYet {
|
|
627
|
+
/** Start date of the membership. */
|
|
628
|
+
membershipStartDate?: Date;
|
|
629
|
+
}
|
|
630
|
+
interface Ended {
|
|
631
|
+
/** End date of the membership. */
|
|
632
|
+
endDate?: Date;
|
|
633
|
+
}
|
|
634
|
+
interface MembershipAlreadyChargedError {
|
|
635
|
+
/** ID of the transaction that was already used for membership charge. */
|
|
636
|
+
transactionId?: string;
|
|
637
|
+
}
|
|
638
|
+
interface GetMembershipVoidabilityRequest {
|
|
639
|
+
/** Transaction ID to check if it can be voided. */
|
|
640
|
+
transactionId: string;
|
|
641
|
+
}
|
|
642
|
+
interface GetMembershipVoidabilityResponse {
|
|
643
|
+
/** Whether the membership charge can be voided. */
|
|
644
|
+
voidable?: boolean;
|
|
645
|
+
/** Reason why the membership charge cannot be voided. */
|
|
646
|
+
reason?: string | null;
|
|
647
|
+
}
|
|
648
|
+
interface VoidMembershipChargeRequest {
|
|
649
|
+
/** Transaction ID to void. */
|
|
650
|
+
transactionId: string;
|
|
651
|
+
}
|
|
652
|
+
interface VoidMembershipChargeResponse {
|
|
653
|
+
}
|
|
654
|
+
interface MembershipsSPIConfig {
|
|
655
|
+
/**
|
|
656
|
+
* The base URI where the endpoints are called. Wix eCommerce appends the endpoint path to the base URI.
|
|
657
|
+
* For example, to call the Charge Membership endpoint at https://my-memberships.com/v1/charge-membership, the base URI you provide here is https://my-memberships.com/.
|
|
658
|
+
*/
|
|
659
|
+
deploymentUri?: string;
|
|
660
|
+
/** The app IDs of the catalogs your app supports. */
|
|
661
|
+
catalogAppDefIds?: string[];
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* this message is not directly used by any service,
|
|
665
|
+
* it exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform.
|
|
666
|
+
* e.g. SPIs, event-handlers, etc..
|
|
667
|
+
* NOTE: this context object MUST be provided as the last argument in each Velo method signature.
|
|
668
|
+
*
|
|
669
|
+
* Example:
|
|
670
|
+
* ```typescript
|
|
671
|
+
* export function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) {
|
|
672
|
+
* ...
|
|
673
|
+
* }
|
|
674
|
+
* ```
|
|
675
|
+
*/
|
|
676
|
+
interface Context$7 {
|
|
677
|
+
/** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */
|
|
678
|
+
requestId?: string | null;
|
|
679
|
+
/** [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code. */
|
|
680
|
+
currency?: string | null;
|
|
681
|
+
/** An object that describes the identity that triggered this request. */
|
|
682
|
+
identity?: IdentificationData$7;
|
|
683
|
+
/** A string representing a language and region in the format of `"xx-XX"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash "-", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `"en-US"`. */
|
|
684
|
+
languages?: string[];
|
|
685
|
+
/** The service provider app's instance ID. */
|
|
686
|
+
instanceId?: string | null;
|
|
687
|
+
}
|
|
688
|
+
declare enum IdentityType$7 {
|
|
689
|
+
UNKNOWN = "UNKNOWN",
|
|
690
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
691
|
+
MEMBER = "MEMBER",
|
|
692
|
+
WIX_USER = "WIX_USER",
|
|
693
|
+
APP = "APP"
|
|
694
|
+
}
|
|
695
|
+
interface IdentificationData$7 extends IdentificationDataIdOneOf$7 {
|
|
696
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
697
|
+
anonymousVisitorId?: string;
|
|
698
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
699
|
+
memberId?: string;
|
|
700
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
701
|
+
wixUserId?: string;
|
|
702
|
+
/** ID of an app. */
|
|
703
|
+
appId?: string;
|
|
704
|
+
/** @readonly */
|
|
705
|
+
identityType?: IdentityType$7;
|
|
706
|
+
}
|
|
707
|
+
/** @oneof */
|
|
708
|
+
interface IdentificationDataIdOneOf$7 {
|
|
709
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
710
|
+
anonymousVisitorId?: string;
|
|
711
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
712
|
+
memberId?: string;
|
|
713
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
714
|
+
wixUserId?: string;
|
|
715
|
+
/** ID of an app. */
|
|
716
|
+
appId?: string;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* The provided membership selection is invalid
|
|
721
|
+
*/
|
|
722
|
+
declare class InvalidSelectionWixError extends Error {
|
|
723
|
+
/** @hidden */
|
|
724
|
+
httpCode: number;
|
|
725
|
+
/** @hidden */
|
|
726
|
+
statusCode: string;
|
|
727
|
+
/** @hidden */
|
|
728
|
+
applicationCode: string;
|
|
729
|
+
/** @hidden */
|
|
730
|
+
name: string;
|
|
731
|
+
/** @hidden */
|
|
732
|
+
errorSchemaName: string;
|
|
733
|
+
data: MembershipInvalidSelectionErrors;
|
|
734
|
+
constructor(data: MembershipInvalidSelectionErrors);
|
|
735
|
+
/** @hidden */
|
|
736
|
+
static readonly __type = "wix_spi_error";
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* The membership was found, but does not apply for the provided item
|
|
740
|
+
*/
|
|
741
|
+
declare class MembershipDoesNotApplyToItemWixError extends Error {
|
|
742
|
+
/** @hidden */
|
|
743
|
+
httpCode: number;
|
|
744
|
+
/** @hidden */
|
|
745
|
+
statusCode: string;
|
|
746
|
+
/** @hidden */
|
|
747
|
+
applicationCode: string;
|
|
748
|
+
/** @hidden */
|
|
749
|
+
name: string;
|
|
750
|
+
constructor();
|
|
751
|
+
/** @hidden */
|
|
752
|
+
static readonly __type = "wix_spi_error";
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* The membership was found, applied to the provided item but cannot be charged. For example because a limited membership doesn't have enough credits
|
|
756
|
+
*/
|
|
757
|
+
declare class MembershipCannotBeUsedWixError extends Error {
|
|
758
|
+
/** @hidden */
|
|
759
|
+
httpCode: number;
|
|
760
|
+
/** @hidden */
|
|
761
|
+
statusCode: string;
|
|
762
|
+
/** @hidden */
|
|
763
|
+
applicationCode: string;
|
|
764
|
+
/** @hidden */
|
|
765
|
+
name: string;
|
|
766
|
+
/** @hidden */
|
|
767
|
+
errorSchemaName: string;
|
|
768
|
+
data: MembershipCannotBeChargedError;
|
|
769
|
+
constructor(data: MembershipCannotBeChargedError);
|
|
770
|
+
/** @hidden */
|
|
771
|
+
static readonly __type = "wix_spi_error";
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* This charge was already done, per the idempotency key of membershipId + orderId + rootCatalogItemId
|
|
775
|
+
*/
|
|
776
|
+
declare class MembershipAlreadyChargedWixError extends Error {
|
|
777
|
+
/** @hidden */
|
|
778
|
+
httpCode: number;
|
|
779
|
+
/** @hidden */
|
|
780
|
+
statusCode: string;
|
|
781
|
+
/** @hidden */
|
|
782
|
+
applicationCode: string;
|
|
783
|
+
/** @hidden */
|
|
784
|
+
name: string;
|
|
785
|
+
/** @hidden */
|
|
786
|
+
errorSchemaName: string;
|
|
787
|
+
data: MembershipAlreadyChargedError;
|
|
788
|
+
constructor(data: MembershipAlreadyChargedError);
|
|
789
|
+
/** @hidden */
|
|
790
|
+
static readonly __type = "wix_spi_error";
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Transaction not found
|
|
794
|
+
*/
|
|
795
|
+
declare class TransactionNotFoundWixError extends Error {
|
|
796
|
+
/** @hidden */
|
|
797
|
+
httpCode: number;
|
|
798
|
+
/** @hidden */
|
|
799
|
+
statusCode: string;
|
|
800
|
+
/** @hidden */
|
|
801
|
+
applicationCode: string;
|
|
802
|
+
/** @hidden */
|
|
803
|
+
name: string;
|
|
804
|
+
constructor();
|
|
805
|
+
/** @hidden */
|
|
806
|
+
static readonly __type = "wix_spi_error";
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Transaction exists but cannot be voided
|
|
810
|
+
*/
|
|
811
|
+
declare class TransactionCannotBeVoidedWixError extends Error {
|
|
812
|
+
/** @hidden */
|
|
813
|
+
httpCode: number;
|
|
814
|
+
/** @hidden */
|
|
815
|
+
statusCode: string;
|
|
816
|
+
/** @hidden */
|
|
817
|
+
applicationCode: string;
|
|
818
|
+
/** @hidden */
|
|
819
|
+
name: string;
|
|
820
|
+
constructor();
|
|
821
|
+
/** @hidden */
|
|
822
|
+
static readonly __type = "wix_spi_error";
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* Transaction was already voided
|
|
826
|
+
*/
|
|
827
|
+
declare class TransactionAlreadyVoidedWixError extends Error {
|
|
828
|
+
/** @hidden */
|
|
829
|
+
httpCode: number;
|
|
830
|
+
/** @hidden */
|
|
831
|
+
statusCode: string;
|
|
832
|
+
/** @hidden */
|
|
833
|
+
applicationCode: string;
|
|
834
|
+
/** @hidden */
|
|
835
|
+
name: string;
|
|
836
|
+
constructor();
|
|
837
|
+
/** @hidden */
|
|
838
|
+
static readonly __type = "wix_spi_error";
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
interface ListEligibleMembershipsEnvelope {
|
|
842
|
+
request: ListEligibleMembershipsRequest;
|
|
843
|
+
metadata: Context$7;
|
|
844
|
+
}
|
|
845
|
+
interface ChargeMembershipEnvelope {
|
|
846
|
+
request: ChargeMembershipRequest;
|
|
847
|
+
metadata: Context$7;
|
|
848
|
+
}
|
|
849
|
+
interface GetMembershipVoidabilityEnvelope {
|
|
850
|
+
request: GetMembershipVoidabilityRequest;
|
|
851
|
+
metadata: Context$7;
|
|
852
|
+
}
|
|
853
|
+
interface VoidMembershipChargeEnvelope {
|
|
854
|
+
request: VoidMembershipChargeRequest;
|
|
855
|
+
metadata: Context$7;
|
|
856
|
+
}
|
|
857
|
+
declare const provideHandlers$f: ServicePluginDefinition$9<{
|
|
858
|
+
/**
|
|
859
|
+
*
|
|
860
|
+
* This method retrieves eligible memberships from your app. */
|
|
861
|
+
listEligibleMemberships(payload: ListEligibleMembershipsEnvelope): ListEligibleMembershipsResponse | Promise<ListEligibleMembershipsResponse>;
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* This method requests that a membership be charged by your app. */
|
|
865
|
+
chargeMembership(payload: ChargeMembershipEnvelope): ChargeMembershipResponse | Promise<ChargeMembershipResponse>;
|
|
866
|
+
/**
|
|
867
|
+
*
|
|
868
|
+
* This method retrieves from your app whether a membership can be voided. */
|
|
869
|
+
getMembershipVoidability(payload: GetMembershipVoidabilityEnvelope): GetMembershipVoidabilityResponse | Promise<GetMembershipVoidabilityResponse>;
|
|
870
|
+
/**
|
|
871
|
+
*
|
|
872
|
+
* This method requests that a membership charge be voided by your app. */
|
|
873
|
+
voidMembershipCharge(payload: VoidMembershipChargeEnvelope): VoidMembershipChargeResponse | Promise<VoidMembershipChargeResponse>;
|
|
874
|
+
}>;
|
|
875
|
+
|
|
324
876
|
type ServicePluginMethodInput$7 = {
|
|
325
877
|
request: any;
|
|
326
878
|
metadata: any;
|
|
@@ -355,32 +907,47 @@ declare function createServicePluginModule$7<T extends ServicePluginDefinition$7
|
|
|
355
907
|
type _publicProvideHandlersType$7 = typeof provideHandlers$f;
|
|
356
908
|
declare const provideHandlers$e: ReturnType<typeof createServicePluginModule$7<_publicProvideHandlersType>>;
|
|
357
909
|
|
|
358
|
-
type context$
|
|
359
|
-
|
|
360
|
-
type context$
|
|
361
|
-
|
|
362
|
-
type context$
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
type context$
|
|
366
|
-
type context$
|
|
367
|
-
|
|
368
|
-
type context$
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
type context$
|
|
373
|
-
type context$
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
type context$
|
|
377
|
-
type context$
|
|
910
|
+
type context$7_ChargeMembershipRequest = ChargeMembershipRequest;
|
|
911
|
+
type context$7_ChargeMembershipResponse = ChargeMembershipResponse;
|
|
912
|
+
type context$7_Ended = Ended;
|
|
913
|
+
type context$7_GetMembershipVoidabilityRequest = GetMembershipVoidabilityRequest;
|
|
914
|
+
type context$7_GetMembershipVoidabilityResponse = GetMembershipVoidabilityResponse;
|
|
915
|
+
type context$7_InvalidSelectionWixError = InvalidSelectionWixError;
|
|
916
|
+
declare const context$7_InvalidSelectionWixError: typeof InvalidSelectionWixError;
|
|
917
|
+
type context$7_LineItemNotFoundInfo = LineItemNotFoundInfo;
|
|
918
|
+
type context$7_ListEligibleMembershipsRequest = ListEligibleMembershipsRequest;
|
|
919
|
+
type context$7_ListEligibleMembershipsResponse = ListEligibleMembershipsResponse;
|
|
920
|
+
type context$7_MembershipAlreadyChargedError = MembershipAlreadyChargedError;
|
|
921
|
+
type context$7_MembershipAlreadyChargedWixError = MembershipAlreadyChargedWixError;
|
|
922
|
+
declare const context$7_MembershipAlreadyChargedWixError: typeof MembershipAlreadyChargedWixError;
|
|
923
|
+
type context$7_MembershipCannotBeChargedError = MembershipCannotBeChargedError;
|
|
924
|
+
type context$7_MembershipCannotBeChargedErrorErrorDataOneOf = MembershipCannotBeChargedErrorErrorDataOneOf;
|
|
925
|
+
type context$7_MembershipCannotBeChargedType = MembershipCannotBeChargedType;
|
|
926
|
+
declare const context$7_MembershipCannotBeChargedType: typeof MembershipCannotBeChargedType;
|
|
927
|
+
type context$7_MembershipCannotBeUsedForLineItemInfo = MembershipCannotBeUsedForLineItemInfo;
|
|
928
|
+
type context$7_MembershipCannotBeUsedForLineItemsInfo = MembershipCannotBeUsedForLineItemsInfo;
|
|
929
|
+
type context$7_MembershipCannotBeUsedWixError = MembershipCannotBeUsedWixError;
|
|
930
|
+
declare const context$7_MembershipCannotBeUsedWixError: typeof MembershipCannotBeUsedWixError;
|
|
931
|
+
type context$7_MembershipDoesNotApplyToItemWixError = MembershipDoesNotApplyToItemWixError;
|
|
932
|
+
declare const context$7_MembershipDoesNotApplyToItemWixError: typeof MembershipDoesNotApplyToItemWixError;
|
|
933
|
+
type context$7_MembershipErrorType = MembershipErrorType;
|
|
934
|
+
declare const context$7_MembershipErrorType: typeof MembershipErrorType;
|
|
935
|
+
type context$7_MembershipInvalidSelectionError = MembershipInvalidSelectionError;
|
|
936
|
+
type context$7_MembershipInvalidSelectionErrorErrorDataOneOf = MembershipInvalidSelectionErrorErrorDataOneOf;
|
|
937
|
+
type context$7_MembershipInvalidSelectionErrors = MembershipInvalidSelectionErrors;
|
|
938
|
+
type context$7_MembershipsSPIConfig = MembershipsSPIConfig;
|
|
939
|
+
type context$7_NotStartedYet = NotStartedYet;
|
|
940
|
+
type context$7_OutOfCredits = OutOfCredits;
|
|
941
|
+
type context$7_TransactionAlreadyVoidedWixError = TransactionAlreadyVoidedWixError;
|
|
942
|
+
declare const context$7_TransactionAlreadyVoidedWixError: typeof TransactionAlreadyVoidedWixError;
|
|
943
|
+
type context$7_TransactionCannotBeVoidedWixError = TransactionCannotBeVoidedWixError;
|
|
944
|
+
declare const context$7_TransactionCannotBeVoidedWixError: typeof TransactionCannotBeVoidedWixError;
|
|
378
945
|
type context$7_TransactionNotFoundWixError = TransactionNotFoundWixError;
|
|
379
946
|
declare const context$7_TransactionNotFoundWixError: typeof TransactionNotFoundWixError;
|
|
380
|
-
type context$
|
|
381
|
-
type context$
|
|
947
|
+
type context$7_VoidMembershipChargeRequest = VoidMembershipChargeRequest;
|
|
948
|
+
type context$7_VoidMembershipChargeResponse = VoidMembershipChargeResponse;
|
|
382
949
|
declare namespace context$7 {
|
|
383
|
-
export { context$
|
|
950
|
+
export { type CatalogReference$7 as CatalogReference, type context$7_ChargeMembershipRequest as ChargeMembershipRequest, type context$7_ChargeMembershipResponse as ChargeMembershipResponse, type Context$7 as Context, type context$7_Ended as Ended, type context$7_GetMembershipVoidabilityRequest as GetMembershipVoidabilityRequest, type context$7_GetMembershipVoidabilityResponse as GetMembershipVoidabilityResponse, type IdentificationData$7 as IdentificationData, type IdentificationDataIdOneOf$7 as IdentificationDataIdOneOf, IdentityType$7 as IdentityType, type InvalidMembership$1 as InvalidMembership, context$7_InvalidSelectionWixError as InvalidSelectionWixError, type LineItem$5 as LineItem, type context$7_LineItemNotFoundInfo as LineItemNotFoundInfo, type context$7_ListEligibleMembershipsRequest as ListEligibleMembershipsRequest, type context$7_ListEligibleMembershipsResponse as ListEligibleMembershipsResponse, type Membership$1 as Membership, type context$7_MembershipAlreadyChargedError as MembershipAlreadyChargedError, context$7_MembershipAlreadyChargedWixError as MembershipAlreadyChargedWixError, type context$7_MembershipCannotBeChargedError as MembershipCannotBeChargedError, type context$7_MembershipCannotBeChargedErrorErrorDataOneOf as MembershipCannotBeChargedErrorErrorDataOneOf, context$7_MembershipCannotBeChargedType as MembershipCannotBeChargedType, type context$7_MembershipCannotBeUsedForLineItemInfo as MembershipCannotBeUsedForLineItemInfo, type context$7_MembershipCannotBeUsedForLineItemsInfo as MembershipCannotBeUsedForLineItemsInfo, context$7_MembershipCannotBeUsedWixError as MembershipCannotBeUsedWixError, context$7_MembershipDoesNotApplyToItemWixError as MembershipDoesNotApplyToItemWixError, context$7_MembershipErrorType as MembershipErrorType, type context$7_MembershipInvalidSelectionError as MembershipInvalidSelectionError, type context$7_MembershipInvalidSelectionErrorErrorDataOneOf as MembershipInvalidSelectionErrorErrorDataOneOf, type context$7_MembershipInvalidSelectionErrors as MembershipInvalidSelectionErrors, type MembershipName$1 as MembershipName, type MembershipPaymentCredits$1 as MembershipPaymentCredits, type context$7_MembershipsSPIConfig as MembershipsSPIConfig, type context$7_NotStartedYet as NotStartedYet, type context$7_OutOfCredits as OutOfCredits, type SelectedMembership$1 as SelectedMembership, type SelectedMemberships$1 as SelectedMemberships, type ServiceProperties$1 as ServiceProperties, context$7_TransactionAlreadyVoidedWixError as TransactionAlreadyVoidedWixError, context$7_TransactionCannotBeVoidedWixError as TransactionCannotBeVoidedWixError, context$7_TransactionNotFoundWixError as TransactionNotFoundWixError, type context$7_VoidMembershipChargeRequest as VoidMembershipChargeRequest, type context$7_VoidMembershipChargeResponse as VoidMembershipChargeResponse, type _publicProvideHandlersType$7 as _publicProvideHandlersType, provideHandlers$e as provideHandlers, provideHandlers$f as publicProvideHandlers };
|
|
384
951
|
}
|
|
385
952
|
|
|
386
953
|
/** additional information can be passed via aspects, for example GEO */
|
|
@@ -556,7 +1123,7 @@ interface GetRecommendationsEnvelope {
|
|
|
556
1123
|
request: GetRecommendationsRequest;
|
|
557
1124
|
metadata: Context$6;
|
|
558
1125
|
}
|
|
559
|
-
declare const provideHandlers$d: ServicePluginDefinition$
|
|
1126
|
+
declare const provideHandlers$d: ServicePluginDefinition$9<{
|
|
560
1127
|
/**
|
|
561
1128
|
*
|
|
562
1129
|
* Returns lists of items recommended by each requested algorithm.
|
|
@@ -1162,7 +1729,7 @@ interface GetShippingRatesEnvelope {
|
|
|
1162
1729
|
request: GetShippingRatesRequest;
|
|
1163
1730
|
metadata: Context$5;
|
|
1164
1731
|
}
|
|
1165
|
-
declare const provideHandlers$b: ServicePluginDefinition$
|
|
1732
|
+
declare const provideHandlers$b: ServicePluginDefinition$9<{
|
|
1166
1733
|
/**
|
|
1167
1734
|
*
|
|
1168
1735
|
* This method retrieves applicable shipping rates for a delivery from your app.
|
|
@@ -1623,7 +2190,7 @@ interface CalculateAdditionalFeesEnvelope {
|
|
|
1623
2190
|
request: CalculateAdditionalFeesRequest;
|
|
1624
2191
|
metadata: Context$4;
|
|
1625
2192
|
}
|
|
1626
|
-
declare const provideHandlers$9: ServicePluginDefinition$
|
|
2193
|
+
declare const provideHandlers$9: ServicePluginDefinition$9<{
|
|
1627
2194
|
/**
|
|
1628
2195
|
*
|
|
1629
2196
|
* This method retrieves additional fees calculated by your app.
|
|
@@ -1825,7 +2392,7 @@ interface GetEligibleTriggersEnvelope {
|
|
|
1825
2392
|
request: GetEligibleTriggersRequest;
|
|
1826
2393
|
metadata: Context$3;
|
|
1827
2394
|
}
|
|
1828
|
-
declare const provideHandlers$7: ServicePluginDefinition$
|
|
2395
|
+
declare const provideHandlers$7: ServicePluginDefinition$9<{
|
|
1829
2396
|
/**
|
|
1830
2397
|
*
|
|
1831
2398
|
* Lists all custom triggers provided by your service plugin integration.
|
|
@@ -2173,7 +2740,7 @@ interface GetEligibleDiscountsEnvelope {
|
|
|
2173
2740
|
request: GetEligibleDiscountsRequest;
|
|
2174
2741
|
metadata: Context$2;
|
|
2175
2742
|
}
|
|
2176
|
-
declare const provideHandlers$5: ServicePluginDefinition$
|
|
2743
|
+
declare const provideHandlers$5: ServicePluginDefinition$9<{
|
|
2177
2744
|
/**
|
|
2178
2745
|
*
|
|
2179
2746
|
* Wix calls this method when certain actions are performed on the cart or checkout.
|
|
@@ -5013,7 +5580,7 @@ interface GetPaymentSettingsForCheckoutEnvelope {
|
|
|
5013
5580
|
request: GetPaymentSettingsForCheckoutRequest;
|
|
5014
5581
|
metadata: Context$1;
|
|
5015
5582
|
}
|
|
5016
|
-
declare const provideHandlers$3: ServicePluginDefinition$
|
|
5583
|
+
declare const provideHandlers$3: ServicePluginDefinition$9<{
|
|
5017
5584
|
/**
|
|
5018
5585
|
*
|
|
5019
5586
|
* This method retrieves payment settings from your app.
|
|
@@ -5902,7 +6469,7 @@ interface GetValidationViolationsEnvelope {
|
|
|
5902
6469
|
request: GetValidationViolationsRequest;
|
|
5903
6470
|
metadata: Context;
|
|
5904
6471
|
}
|
|
5905
|
-
declare const provideHandlers$1: ServicePluginDefinition$
|
|
6472
|
+
declare const provideHandlers$1: ServicePluginDefinition$9<{
|
|
5906
6473
|
/**
|
|
5907
6474
|
*
|
|
5908
6475
|
* This method retrieves validation violations from your app.
|
|
@@ -6031,4 +6598,4 @@ declare namespace context {
|
|
|
6031
6598
|
export { type context_Address as Address, type context_AddressLocation as AddressLocation, type context_AddressWithContact as AddressWithContact, type context_AppliedDiscount as AppliedDiscount, type context_AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOf, type context_BuyerDetails as BuyerDetails, type context_CatalogReference as CatalogReference, context_CheckoutStage as CheckoutStage, type context_Context as Context, type context_Coupon as Coupon, type context_CustomField as CustomField, type context_CustomFields as CustomFields, type context_Description as Description, type context_DiscountRule as DiscountRule, type context_DiscountRuleName as DiscountRuleName, context_DiscountType as DiscountType, type context_ExtendedFields as ExtendedFields, type context_ExternalReference as ExternalReference, type context_FullAddressContactDetails as FullAddressContactDetails, type context_GetValidationViolationsRequest as GetValidationViolationsRequest, type context_GetValidationViolationsResponse as GetValidationViolationsResponse, type context_GiftCard as GiftCard, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, type context_ItemTaxFullDetails as ItemTaxFullDetails, type context_ItemType as ItemType, context_ItemTypeItemType as ItemTypeItemType, type context_ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOf, context_JurisdictionType as JurisdictionType, type context_LineItem as LineItem, type context_LineItemPricesData as LineItemPricesData, type context_MerchantDiscount as MerchantDiscount, type context_MultiCurrencyPrice as MultiCurrencyPrice, context_NameInLineItem as NameInLineItem, context_NameInOther as NameInOther, type context_Other as Other, type context_PhysicalProperties as PhysicalProperties, type context_PriceSummary as PriceSummary, type context_ProductName as ProductName, type context_SelectedCarrierServiceOption as SelectedCarrierServiceOption, type context_SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPrices, context_Severity as Severity, type context_ShippingInfo as ShippingInfo, context_Source as Source, type context_SourceInfo as SourceInfo, type context_Stage as Stage, type context_StageStagesOneOf as StageStagesOneOf, type context_StreetAddress as StreetAddress, context_SubscriptionFrequency as SubscriptionFrequency, type context_SubscriptionOptionInfo as SubscriptionOptionInfo, type context_SubscriptionSettings as SubscriptionSettings, type context_Target as Target, type context_TargetLineItem as TargetLineItem, type context_TargetTargetTypeOneOf as TargetTargetTypeOneOf, type context_TaxBreakdown as TaxBreakdown, type context_Title as Title, type context_ValidationInfo as ValidationInfo, type context_ValidationsSPIConfig as ValidationsSPIConfig, type context_VatId as VatId, context_VatType as VatType, type context_Violation as Violation, context_WeightUnit as WeightUnit, type context__publicProvideHandlersType as _publicProvideHandlersType, context_provideHandlers as provideHandlers, provideHandlers$1 as publicProvideHandlers };
|
|
6032
6599
|
}
|
|
6033
6600
|
|
|
6034
|
-
export { context$4 as additionalFees, context$3 as customTriggers, context$2 as discounts, context$
|
|
6601
|
+
export { context$4 as additionalFees, context$3 as customTriggers, context$2 as discounts, context$8 as giftVouchersProvider, context$7 as memberships, context$1 as paymentSettings, context$6 as recommendationsProvider, context$5 as shippingRates, context as validations };
|