@wix/auto_sdk_ecom_memberships 1.0.14 → 1.0.15

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.
@@ -0,0 +1,676 @@
1
+ import { ServicePluginDefinition } from '@wix/sdk-types';
2
+
3
+ interface ListEligibleMembershipsRequest {
4
+ /**
5
+ * The line items for which to list eligible memberships.
6
+ * @minSize 1
7
+ * @maxSize 300
8
+ */
9
+ lineItems: LineItem[];
10
+ /**
11
+ * Member ID.
12
+ *
13
+ * 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.
14
+ * @format GUID
15
+ */
16
+ memberId: string;
17
+ /**
18
+ * The selected payment memberships and which line items they apply to.
19
+ *
20
+ * When not provided, your implementation is expected to return the default selection.
21
+ * When provided, your implementation is expected to validate and return it.
22
+ */
23
+ selectedMemberships?: SelectedMemberships;
24
+ }
25
+ interface LineItem {
26
+ /**
27
+ * Line item ID.
28
+ * @minLength 1
29
+ * @maxLength 100
30
+ */
31
+ _id?: string;
32
+ /** Catalog and item reference info. */
33
+ catalogReference?: CatalogReference;
34
+ /** Properties of the service. When relevant, contains information such as date and number of participants. */
35
+ serviceProperties?: ServiceProperties;
36
+ /**
37
+ * Root catalog item ID.
38
+ *
39
+ * The value will usually be the same as `catalogReference.catalogItemId`.
40
+ * In cases when these are not the same, this field will return the actual ID of the item in the catalog.
41
+ * For example, for Wix bookings, the value of `catalogReference.catalogItemId` is the booking ID, but `rootCatalogItemId` is set to the service ID.
42
+ * @minLength 1
43
+ * @maxLength 36
44
+ */
45
+ rootCatalogItemId?: string | null;
46
+ }
47
+ /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
48
+ interface CatalogReference {
49
+ /**
50
+ * ID of the item within the catalog it belongs to.
51
+ * @minLength 1
52
+ * @maxLength 36
53
+ */
54
+ catalogItemId?: string;
55
+ /**
56
+ * ID of the app providing the catalog.
57
+ *
58
+ * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).
59
+ *
60
+ * For items from Wix catalogs, the following values always apply:
61
+ * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
62
+ * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
63
+ * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
64
+ * @minLength 1
65
+ */
66
+ appId?: string;
67
+ /**
68
+ * 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.
69
+ *
70
+ * For products and variants from a Wix Stores catalog, learn more about eCommerce integration ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)).
71
+ */
72
+ options?: Record<string, any> | null;
73
+ }
74
+ interface ServiceProperties {
75
+ /**
76
+ * 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.
77
+ * For example, the start time of a class.
78
+ */
79
+ scheduledDate?: Date | null;
80
+ /**
81
+ * 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.
82
+ * @min 1
83
+ * @max 10000
84
+ */
85
+ numberOfParticipants?: number | null;
86
+ }
87
+ interface SelectedMemberships {
88
+ /**
89
+ * Selected memberships.
90
+ * @maxSize 300
91
+ */
92
+ memberships?: SelectedMembership[];
93
+ }
94
+ interface SelectedMembership {
95
+ /**
96
+ * Membership ID.
97
+ * @minLength 1
98
+ * @maxLength 100
99
+ */
100
+ _id?: string;
101
+ /**
102
+ * IDs of the line items this membership applies to.
103
+ * @minSize 1
104
+ * @maxSize 300
105
+ * @minLength 1
106
+ * @maxLength 100
107
+ */
108
+ lineItemIds?: string[];
109
+ }
110
+ interface ListEligibleMembershipsResponse {
111
+ /**
112
+ * List of memberships that are eligible for the given member and line items.
113
+ * @maxSize 300
114
+ */
115
+ eligibleMemberships?: Membership[];
116
+ /**
117
+ * List of memberships owned by the member, but cannot be used due to the reason provided.
118
+ * @maxSize 300
119
+ */
120
+ invalidMemberships?: InvalidMembership[];
121
+ /**
122
+ * List of selected memberships and which line items they apply to.
123
+ * @maxSize 300
124
+ */
125
+ selectedMemberships?: SelectedMembership[];
126
+ }
127
+ interface Membership {
128
+ /**
129
+ * Membership ID.
130
+ * @minLength 1
131
+ * @maxLength 100
132
+ */
133
+ _id?: string;
134
+ /** Membership name. */
135
+ name?: MembershipName;
136
+ /**
137
+ * Line item IDs this membership applies to.
138
+ * @minSize 1
139
+ * @maxSize 300
140
+ * @minLength 1
141
+ * @maxLength 100
142
+ */
143
+ lineItemIds?: string[];
144
+ /** Total and remaining membership credits. */
145
+ credits?: MembershipPaymentCredits;
146
+ /** Membership expiration date. */
147
+ expirationDate?: Date | null;
148
+ /** Additional data about this membership. */
149
+ additionalData?: Record<string, any> | null;
150
+ }
151
+ interface MembershipName {
152
+ /**
153
+ * Membership name.
154
+ * @maxLength 100
155
+ */
156
+ original?: string;
157
+ /**
158
+ * Translated membership name. Defaults to `original` when not provided.
159
+ * @maxLength 100
160
+ */
161
+ translated?: string | null;
162
+ }
163
+ interface MembershipPaymentCredits {
164
+ /**
165
+ * Membership's total amount of credits.
166
+ * @min 1
167
+ */
168
+ total?: number;
169
+ /** Membership's remaining amount of credits. */
170
+ remaining?: number;
171
+ }
172
+ interface InvalidMembership {
173
+ /** The membership that is invalid and cannot be used. */
174
+ membership?: Membership;
175
+ /**
176
+ * Reason why this membership is invalid.
177
+ * @minLength 1
178
+ * @maxLength 200
179
+ */
180
+ reason?: string;
181
+ }
182
+ interface MembershipInvalidSelectionErrors {
183
+ /**
184
+ * Error details for invalid memberships.
185
+ * @maxSize 300
186
+ */
187
+ membershipInvalidSelectionErrors?: MembershipInvalidSelectionError[];
188
+ }
189
+ interface MembershipInvalidSelectionError extends MembershipInvalidSelectionErrorErrorDataOneOf {
190
+ /** Line item IDs that were missing. */
191
+ lineItemNotFoundInfo?: LineItemNotFoundInfo;
192
+ /** Error details for line items that cannot be used with this membership. */
193
+ membershipCannotBeUsedForLineItemsInfo?: MembershipCannotBeUsedForLineItemsInfo;
194
+ /**
195
+ * Reason why this membership selection is invalid.
196
+ * @maxLength 1000
197
+ */
198
+ membershipSelectionInvalidReason?: string | null;
199
+ /**
200
+ * Membership ID.
201
+ * @format GUID
202
+ */
203
+ membershipId?: string;
204
+ /** Error type. */
205
+ errorType?: MembershipErrorType;
206
+ }
207
+ /** @oneof */
208
+ interface MembershipInvalidSelectionErrorErrorDataOneOf {
209
+ /** Line item IDs that were missing. */
210
+ lineItemNotFoundInfo?: LineItemNotFoundInfo;
211
+ /** Error details for line items that cannot be used with this membership. */
212
+ membershipCannotBeUsedForLineItemsInfo?: MembershipCannotBeUsedForLineItemsInfo;
213
+ /**
214
+ * Reason why this membership selection is invalid.
215
+ * @maxLength 1000
216
+ */
217
+ membershipSelectionInvalidReason?: string | null;
218
+ }
219
+ declare enum MembershipErrorType {
220
+ UNKNOWN = "UNKNOWN",
221
+ /** Membership not found. */
222
+ MEMBERSHIP_NOT_FOUND = "MEMBERSHIP_NOT_FOUND",
223
+ /** The selection points to a line item ID that wasn't provided. */
224
+ LINE_ITEM_NOT_FOUND = "LINE_ITEM_NOT_FOUND",
225
+ /** The membership cannot be used for the specific line items provided. */
226
+ MEMBERSHIP_CANNOT_BE_USED_FOR_LINE_ITEMS = "MEMBERSHIP_CANNOT_BE_USED_FOR_LINE_ITEMS",
227
+ /** The membership can be used for each individual line item, but combining all of them is invalid. */
228
+ MEMBERSHIP_SELECTION_INVALID = "MEMBERSHIP_SELECTION_INVALID"
229
+ }
230
+ interface LineItemNotFoundInfo {
231
+ /**
232
+ * Line item IDs that were missing.
233
+ * @maxSize 300
234
+ * @minLength 1
235
+ * @maxLength 100
236
+ */
237
+ lineItemIds?: string[];
238
+ }
239
+ interface MembershipCannotBeUsedForLineItemsInfo {
240
+ /**
241
+ * Line items that cannot be used with this membership, and the reason why.
242
+ * @maxSize 300
243
+ */
244
+ lineItems?: MembershipCannotBeUsedForLineItemInfo[];
245
+ }
246
+ interface MembershipCannotBeUsedForLineItemInfo {
247
+ /**
248
+ * Line item ID.
249
+ * @minLength 1
250
+ * @maxLength 100
251
+ */
252
+ lineItemId?: string;
253
+ /**
254
+ * Reason why this line item cannot be used with this membership.
255
+ * @maxLength 1000
256
+ */
257
+ reason?: string;
258
+ }
259
+ interface ChargeMembershipRequest {
260
+ /**
261
+ * Member ID.
262
+ *
263
+ * 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.
264
+ * @format GUID
265
+ */
266
+ memberId: string;
267
+ /**
268
+ * Membership ID, as returned from the List Eligible Memberships call.
269
+ * @minLength 1
270
+ * @maxLength 100
271
+ */
272
+ membershipId: string;
273
+ /**
274
+ * Idempotency key to avoid duplicate charge.
275
+ * The value will usually would be the same as `membershipId` + `orderId` + `rootCatalogItemId`.
276
+ * @minLength 1
277
+ * @maxLength 200
278
+ */
279
+ idempotencyKey: string;
280
+ /**
281
+ * Service properties.
282
+ *
283
+ * When relevant, this contains information such as date and number of participants.
284
+ */
285
+ serviceProperties?: ServiceProperties;
286
+ /** Catalog and item reference info. */
287
+ catalogReference: CatalogReference;
288
+ /**
289
+ * Root catalog item ID.
290
+ *
291
+ * The value will usually be the same as `catalogReference.catalogItemId`.
292
+ * In cases when these are not the same, this field will return the actual ID of the item in the catalog.
293
+ * For example, for Wix bookings, the value of `catalogReference.catalogItemId` is the booking ID, but `rootCatalogItemId` is set to the service ID.
294
+ * @minLength 1
295
+ * @maxLength 36
296
+ */
297
+ rootCatalogItemId?: string | null;
298
+ /** Additional data about this charge. */
299
+ additionalData?: Record<string, any> | null;
300
+ }
301
+ interface ChargeMembershipResponse {
302
+ /**
303
+ * The transaction ID for this charge.
304
+ *
305
+ * Use this ID to void the charge.
306
+ * @minLength 1
307
+ * @maxLength 100
308
+ */
309
+ transactionId?: string;
310
+ }
311
+ interface MembershipCannotBeChargedError extends MembershipCannotBeChargedErrorErrorDataOneOf {
312
+ /** Membership is out of credits. For example, 5 are required, but only 4 remain. */
313
+ outOfCredits?: OutOfCredits;
314
+ /** Membership has not become active yet. */
315
+ notStartedYet?: NotStartedYet;
316
+ /** Membership has expired or ended. */
317
+ ended?: Ended;
318
+ /** Error type. */
319
+ errorType?: MembershipCannotBeChargedType;
320
+ }
321
+ /** @oneof */
322
+ interface MembershipCannotBeChargedErrorErrorDataOneOf {
323
+ /** Membership is out of credits. For example, 5 are required, but only 4 remain. */
324
+ outOfCredits?: OutOfCredits;
325
+ /** Membership has not become active yet. */
326
+ notStartedYet?: NotStartedYet;
327
+ /** Membership has expired or ended. */
328
+ ended?: Ended;
329
+ }
330
+ declare enum MembershipCannotBeChargedType {
331
+ /** Membership is out of credits. For example, 5 are required, but only 4 remain. */
332
+ OUT_OF_CREDITS = "OUT_OF_CREDITS",
333
+ /** Membership has not become active yet. */
334
+ NOT_STARTED_YET = "NOT_STARTED_YET",
335
+ /** Membership has expired or ended. */
336
+ ENDED = "ENDED",
337
+ /** Not applicable for multiple participants. */
338
+ NOT_APPLICABLE_FOR_MULTIPLE_PARTICIPANTS = "NOT_APPLICABLE_FOR_MULTIPLE_PARTICIPANTS"
339
+ }
340
+ interface OutOfCredits {
341
+ /** Required amount of credits. */
342
+ required?: number;
343
+ /** Remaining amount of credits. */
344
+ remaining?: number;
345
+ }
346
+ interface NotStartedYet {
347
+ /** Start date of the membership. */
348
+ membershipStartDate?: Date | null;
349
+ }
350
+ interface Ended {
351
+ /** End date of the membership. */
352
+ endDate?: Date | null;
353
+ }
354
+ interface MembershipAlreadyChargedError {
355
+ /**
356
+ * ID of the transaction that was already used for membership charge.
357
+ * @minLength 1
358
+ * @maxLength 100
359
+ */
360
+ transactionId?: string;
361
+ }
362
+ interface GetMembershipVoidabilityRequest {
363
+ /**
364
+ * Transaction ID to check if it can be voided.
365
+ * @minLength 1
366
+ * @maxLength 100
367
+ */
368
+ transactionId: string;
369
+ }
370
+ interface GetMembershipVoidabilityResponse {
371
+ /** Whether the membership charge can be voided. */
372
+ voidable?: boolean;
373
+ /**
374
+ * Reason why the membership charge cannot be voided.
375
+ * @minLength 1
376
+ * @maxLength 200
377
+ */
378
+ reason?: string | null;
379
+ }
380
+ interface VoidMembershipChargeRequest {
381
+ /**
382
+ * Transaction ID to void.
383
+ * @minLength 1
384
+ * @maxLength 100
385
+ */
386
+ transactionId: string;
387
+ }
388
+ interface VoidMembershipChargeResponse {
389
+ }
390
+ interface MembershipsSPIConfig {
391
+ /**
392
+ * The base URI where the endpoints are called. Wix eCommerce appends the endpoint path to the base URI.
393
+ * 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/.
394
+ * @format WEB_URL
395
+ */
396
+ deploymentUri?: string;
397
+ /**
398
+ * The app IDs of the catalogs your app supports.
399
+ * @minSize 1
400
+ * @maxSize 300
401
+ * @format GUID
402
+ */
403
+ catalogAppDefIds?: string[];
404
+ }
405
+ /**
406
+ * this message is not directly used by any service,
407
+ * it exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform.
408
+ * e.g. SPIs, event-handlers, etc..
409
+ * NOTE: this context object MUST be provided as the last argument in each Velo method signature.
410
+ *
411
+ * Example:
412
+ * ```typescript
413
+ * export function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) {
414
+ * ...
415
+ * }
416
+ * ```
417
+ */
418
+ interface Context {
419
+ /** 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. */
420
+ requestId?: string | null;
421
+ /**
422
+ * [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code.
423
+ * @format CURRENCY
424
+ */
425
+ currency?: string | null;
426
+ /** An object that describes the identity that triggered this request. */
427
+ identity?: IdentificationData;
428
+ /** 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"`. */
429
+ languages?: string[];
430
+ /**
431
+ * The service provider app's instance ID.
432
+ * @format GUID
433
+ */
434
+ instanceId?: string | null;
435
+ }
436
+ declare enum IdentityType {
437
+ UNKNOWN = "UNKNOWN",
438
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
439
+ MEMBER = "MEMBER",
440
+ WIX_USER = "WIX_USER",
441
+ APP = "APP"
442
+ }
443
+ interface IdentificationData extends IdentificationDataIdOneOf {
444
+ /**
445
+ * ID of a site visitor that has not logged in to the site.
446
+ * @format GUID
447
+ */
448
+ anonymousVisitorId?: string;
449
+ /**
450
+ * ID of a site visitor that has logged in to the site.
451
+ * @format GUID
452
+ */
453
+ memberId?: string;
454
+ /**
455
+ * ID of a Wix user (site owner, contributor, etc.).
456
+ * @format GUID
457
+ */
458
+ wixUserId?: string;
459
+ /**
460
+ * ID of an app.
461
+ * @format GUID
462
+ */
463
+ appId?: string;
464
+ /** @readonly */
465
+ identityType?: IdentityType;
466
+ }
467
+ /** @oneof */
468
+ interface IdentificationDataIdOneOf {
469
+ /**
470
+ * ID of a site visitor that has not logged in to the site.
471
+ * @format GUID
472
+ */
473
+ anonymousVisitorId?: string;
474
+ /**
475
+ * ID of a site visitor that has logged in to the site.
476
+ * @format GUID
477
+ */
478
+ memberId?: string;
479
+ /**
480
+ * ID of a Wix user (site owner, contributor, etc.).
481
+ * @format GUID
482
+ */
483
+ wixUserId?: string;
484
+ /**
485
+ * ID of an app.
486
+ * @format GUID
487
+ */
488
+ appId?: string;
489
+ }
490
+
491
+ interface ListEligibleMembershipsEnvelope {
492
+ request: ListEligibleMembershipsRequest;
493
+ metadata: Context;
494
+ }
495
+ interface ChargeMembershipEnvelope {
496
+ request: ChargeMembershipRequest;
497
+ metadata: Context;
498
+ }
499
+ interface GetMembershipVoidabilityEnvelope {
500
+ request: GetMembershipVoidabilityRequest;
501
+ metadata: Context;
502
+ }
503
+ interface VoidMembershipChargeEnvelope {
504
+ request: VoidMembershipChargeRequest;
505
+ metadata: Context;
506
+ }
507
+ declare const provideHandlers: ServicePluginDefinition<{
508
+ /**
509
+ *
510
+ * This method retrieves eligible memberships from your app. */
511
+ listEligibleMemberships(payload: ListEligibleMembershipsEnvelope): ListEligibleMembershipsResponse | Promise<ListEligibleMembershipsResponse>;
512
+ /**
513
+ *
514
+ * This method requests that a membership be charged by your app. */
515
+ chargeMembership(payload: ChargeMembershipEnvelope): ChargeMembershipResponse | Promise<ChargeMembershipResponse>;
516
+ /**
517
+ *
518
+ * This method retrieves from your app whether a membership can be voided. */
519
+ getMembershipVoidability(payload: GetMembershipVoidabilityEnvelope): GetMembershipVoidabilityResponse | Promise<GetMembershipVoidabilityResponse>;
520
+ /**
521
+ *
522
+ * This method requests that a membership charge be voided by your app. */
523
+ voidMembershipCharge(payload: VoidMembershipChargeEnvelope): VoidMembershipChargeResponse | Promise<VoidMembershipChargeResponse>;
524
+ }>;
525
+
526
+ /**
527
+ * The provided membership selection is invalid
528
+ */
529
+ declare class InvalidSelectionWixError extends Error {
530
+ /** @hidden */
531
+ httpCode: number;
532
+ /** @hidden */
533
+ statusCode: string;
534
+ /** @hidden */
535
+ applicationCode: string;
536
+ /** @hidden */
537
+ name: string;
538
+ /** @hidden */
539
+ errorSchemaName: string;
540
+ /** @hidden */
541
+ errorType: string;
542
+ /** @hidden */
543
+ spiErrorData: object;
544
+ data: MembershipInvalidSelectionErrors;
545
+ constructor(data?: MembershipInvalidSelectionErrors);
546
+ /** @hidden */
547
+ static readonly __type = "wix_spi_error";
548
+ }
549
+ /**
550
+ * The membership was found, but does not apply for the provided item
551
+ */
552
+ declare class MembershipDoesNotApplyToItemWixError extends Error {
553
+ /** @hidden */
554
+ httpCode: number;
555
+ /** @hidden */
556
+ statusCode: string;
557
+ /** @hidden */
558
+ applicationCode: string;
559
+ /** @hidden */
560
+ name: string;
561
+ /** @hidden */
562
+ errorType: string;
563
+ /** @hidden */
564
+ spiErrorData: object;
565
+ constructor();
566
+ /** @hidden */
567
+ static readonly __type = "wix_spi_error";
568
+ }
569
+ /**
570
+ * The membership was found, applied to the provided item but cannot be charged. For example because a limited membership doesn't have enough credits
571
+ */
572
+ declare class MembershipCannotBeUsedWixError extends Error {
573
+ /** @hidden */
574
+ httpCode: number;
575
+ /** @hidden */
576
+ statusCode: string;
577
+ /** @hidden */
578
+ applicationCode: string;
579
+ /** @hidden */
580
+ name: string;
581
+ /** @hidden */
582
+ errorSchemaName: string;
583
+ /** @hidden */
584
+ errorType: string;
585
+ /** @hidden */
586
+ spiErrorData: object;
587
+ data: MembershipCannotBeChargedError;
588
+ constructor(data?: MembershipCannotBeChargedError);
589
+ /** @hidden */
590
+ static readonly __type = "wix_spi_error";
591
+ }
592
+ /**
593
+ * This charge was already done, per the idempotency key of membershipId + orderId + rootCatalogItemId
594
+ */
595
+ declare class MembershipAlreadyChargedWixError extends Error {
596
+ /** @hidden */
597
+ httpCode: number;
598
+ /** @hidden */
599
+ statusCode: string;
600
+ /** @hidden */
601
+ applicationCode: string;
602
+ /** @hidden */
603
+ name: string;
604
+ /** @hidden */
605
+ errorSchemaName: string;
606
+ /** @hidden */
607
+ errorType: string;
608
+ /** @hidden */
609
+ spiErrorData: object;
610
+ data: MembershipAlreadyChargedError;
611
+ constructor(data?: MembershipAlreadyChargedError);
612
+ /** @hidden */
613
+ static readonly __type = "wix_spi_error";
614
+ }
615
+ /**
616
+ * Transaction not found
617
+ */
618
+ declare class TransactionNotFoundWixError extends Error {
619
+ /** @hidden */
620
+ httpCode: number;
621
+ /** @hidden */
622
+ statusCode: string;
623
+ /** @hidden */
624
+ applicationCode: string;
625
+ /** @hidden */
626
+ name: string;
627
+ /** @hidden */
628
+ errorType: string;
629
+ /** @hidden */
630
+ spiErrorData: object;
631
+ constructor();
632
+ /** @hidden */
633
+ static readonly __type = "wix_spi_error";
634
+ }
635
+ /**
636
+ * Transaction exists but cannot be voided
637
+ */
638
+ declare class TransactionCannotBeVoidedWixError extends Error {
639
+ /** @hidden */
640
+ httpCode: number;
641
+ /** @hidden */
642
+ statusCode: string;
643
+ /** @hidden */
644
+ applicationCode: string;
645
+ /** @hidden */
646
+ name: string;
647
+ /** @hidden */
648
+ errorType: string;
649
+ /** @hidden */
650
+ spiErrorData: object;
651
+ constructor();
652
+ /** @hidden */
653
+ static readonly __type = "wix_spi_error";
654
+ }
655
+ /**
656
+ * Transaction was already voided
657
+ */
658
+ declare class TransactionAlreadyVoidedWixError extends Error {
659
+ /** @hidden */
660
+ httpCode: number;
661
+ /** @hidden */
662
+ statusCode: string;
663
+ /** @hidden */
664
+ applicationCode: string;
665
+ /** @hidden */
666
+ name: string;
667
+ /** @hidden */
668
+ errorType: string;
669
+ /** @hidden */
670
+ spiErrorData: object;
671
+ constructor();
672
+ /** @hidden */
673
+ static readonly __type = "wix_spi_error";
674
+ }
675
+
676
+ export { type IdentificationDataIdOneOf as A, InvalidSelectionWixError as B, type CatalogReference as C, MembershipDoesNotApplyToItemWixError as D, type Ended as E, MembershipCannotBeUsedWixError as F, type GetMembershipVoidabilityRequest as G, MembershipAlreadyChargedWixError as H, type InvalidMembership as I, TransactionCannotBeVoidedWixError as J, TransactionAlreadyVoidedWixError as K, type ListEligibleMembershipsRequest as L, type Membership as M, type NotStartedYet as N, type OutOfCredits as O, type ListEligibleMembershipsEnvelope as P, type ChargeMembershipEnvelope as Q, type GetMembershipVoidabilityEnvelope as R, type ServiceProperties as S, TransactionNotFoundWixError as T, type VoidMembershipChargeEnvelope as U, type VoidMembershipChargeRequest as V, type LineItem as a, type SelectedMemberships as b, type SelectedMembership as c, type ListEligibleMembershipsResponse as d, type MembershipName as e, type MembershipPaymentCredits as f, type MembershipInvalidSelectionErrors as g, type MembershipInvalidSelectionError as h, type MembershipInvalidSelectionErrorErrorDataOneOf as i, MembershipErrorType as j, type LineItemNotFoundInfo as k, type MembershipCannotBeUsedForLineItemsInfo as l, type MembershipCannotBeUsedForLineItemInfo as m, type ChargeMembershipRequest as n, type ChargeMembershipResponse as o, provideHandlers as p, type MembershipCannotBeChargedError as q, type MembershipCannotBeChargedErrorErrorDataOneOf as r, MembershipCannotBeChargedType as s, type MembershipAlreadyChargedError as t, type GetMembershipVoidabilityResponse as u, type VoidMembershipChargeResponse as v, type MembershipsSPIConfig as w, type Context as x, IdentityType as y, type IdentificationData as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_memberships",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -49,5 +49,5 @@
49
49
  "fqdn": "wix.interfaces.ecom.v1.memberships_provider"
50
50
  }
51
51
  },
52
- "falconPackageHash": "eb0c8df7146d9869d66824516078566073461e675dca5945bfb8cb96"
52
+ "falconPackageHash": "0152756a180de551e1c863b9b0c2a595f94de2b07933b895cb975ae7"
53
53
  }