@wix/auto_sdk_payments_saved-payment-methods 1.0.9 → 1.0.11
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/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.d.ts +18 -20
- package/build/cjs/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.js.map +1 -1
- package/build/cjs/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.d.ts +28 -38
- package/build/cjs/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.js.map +1 -1
- package/build/es/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.d.ts +18 -20
- package/build/es/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.js.map +1 -1
- package/build/es/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.d.ts +28 -38
- package/build/es/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.js.map +1 -1
- package/build/internal/cjs/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.d.ts +18 -20
- package/build/internal/cjs/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.js.map +1 -1
- package/build/internal/cjs/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.d.ts +28 -38
- package/build/internal/cjs/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.js.map +1 -1
- package/build/internal/es/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.d.ts +18 -20
- package/build/internal/es/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.js.map +1 -1
- package/build/internal/es/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.d.ts +28 -38
- package/build/internal/es/src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -96,6 +96,8 @@ export declare enum CardBrand {
|
|
|
96
96
|
VISA = "VISA",
|
|
97
97
|
RUPAY = "RUPAY"
|
|
98
98
|
}
|
|
99
|
+
/** @enumType */
|
|
100
|
+
export type CardBrandWithLiterals = CardBrand | 'UNKNOWN_CARD_BRAND' | 'AMEX' | 'DANKORT' | 'DINERS' | 'DISCOVER' | 'ISRACARD' | 'JCB' | 'MAESTRO' | 'MASTERCARD' | 'UNIONPAY' | 'VISA' | 'RUPAY';
|
|
99
101
|
export interface PaymentMethod {
|
|
100
102
|
/**
|
|
101
103
|
* Legacy payment method type ID. Supported values are `creditCard`, `payPal`.
|
|
@@ -167,13 +169,15 @@ export interface GetSavedPaymentMethodRequest {
|
|
|
167
169
|
* You should have additional permission in order to get them as described in HidedFields documentation.
|
|
168
170
|
* @maxSize 1
|
|
169
171
|
*/
|
|
170
|
-
fields?:
|
|
172
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
171
173
|
}
|
|
172
174
|
export declare enum RequestedFields {
|
|
173
175
|
/** Default value. This value is unused. */
|
|
174
176
|
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
175
177
|
SENSITIVE_INFO = "SENSITIVE_INFO"
|
|
176
178
|
}
|
|
179
|
+
/** @enumType */
|
|
180
|
+
export type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'SENSITIVE_INFO';
|
|
177
181
|
export interface GetSavedPaymentMethodResponse {
|
|
178
182
|
/** Saved payment method. */
|
|
179
183
|
savedPaymentMethod?: SavedPaymentMethod;
|
|
@@ -213,7 +217,7 @@ export interface ListSavedPaymentMethodsRequest {
|
|
|
213
217
|
* In order to receive it you should have `PAYMENTS.SAVED_PAYMENT_METHOD_READ_SENSITIVE_INFO` permission
|
|
214
218
|
* @maxSize 1
|
|
215
219
|
*/
|
|
216
|
-
fields?:
|
|
220
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
217
221
|
/**
|
|
218
222
|
* Paging for limit the response size.
|
|
219
223
|
* If no paging provider default response limit 100 will be used.
|
|
@@ -288,25 +292,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
288
292
|
updatedEvent?: EntityUpdatedEvent;
|
|
289
293
|
deletedEvent?: EntityDeletedEvent;
|
|
290
294
|
actionEvent?: ActionEvent;
|
|
291
|
-
/**
|
|
292
|
-
* Unique event ID.
|
|
293
|
-
* Allows clients to ignore duplicate webhooks.
|
|
294
|
-
*/
|
|
295
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
295
296
|
id?: string;
|
|
296
297
|
/**
|
|
297
|
-
*
|
|
298
|
-
*
|
|
298
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
299
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
299
300
|
*/
|
|
300
301
|
entityFqdn?: string;
|
|
301
302
|
/**
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
303
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
304
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
305
305
|
*/
|
|
306
306
|
slug?: string;
|
|
307
307
|
/** ID of the entity associated with the event. */
|
|
308
308
|
entityId?: string;
|
|
309
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
309
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
310
310
|
eventTime?: Date | null;
|
|
311
311
|
/**
|
|
312
312
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -316,12 +316,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
316
316
|
/** If present, indicates the action that triggered the event. */
|
|
317
317
|
originatedFrom?: string | null;
|
|
318
318
|
/**
|
|
319
|
-
* A sequence number
|
|
320
|
-
*
|
|
321
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
322
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
323
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
324
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
319
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
320
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
325
321
|
*/
|
|
326
322
|
entityEventSequence?: string | null;
|
|
327
323
|
}
|
|
@@ -349,7 +345,7 @@ export interface EntityUpdatedEvent {
|
|
|
349
345
|
currentEntityAsJson?: string;
|
|
350
346
|
}
|
|
351
347
|
export interface EntityDeletedEvent {
|
|
352
|
-
/** Entity that was deleted */
|
|
348
|
+
/** Entity that was deleted. */
|
|
353
349
|
deletedEntityAsJson?: string | null;
|
|
354
350
|
}
|
|
355
351
|
export interface ActionEvent {
|
|
@@ -393,7 +389,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
393
389
|
*/
|
|
394
390
|
appId?: string;
|
|
395
391
|
/** @readonly */
|
|
396
|
-
identityType?:
|
|
392
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
397
393
|
}
|
|
398
394
|
/** @oneof */
|
|
399
395
|
export interface IdentificationDataIdOneOf {
|
|
@@ -425,6 +421,8 @@ export declare enum WebhookIdentityType {
|
|
|
425
421
|
WIX_USER = "WIX_USER",
|
|
426
422
|
APP = "APP"
|
|
427
423
|
}
|
|
424
|
+
/** @enumType */
|
|
425
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
428
426
|
export interface FindSavedCreditCardRequest {
|
|
429
427
|
/**
|
|
430
428
|
* temporary card token
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.js","sourceRoot":"","sources":["../../../src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.ts"],"names":[],"mappings":";;;AAsFA,IAAY,SAaX;AAbD,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,wBAAW,CAAA;IACX,gCAAmB,CAAA;IACnB,sCAAyB,CAAA;IACzB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,4BAAe,CAAA;AACjB,CAAC,EAbW,SAAS,yBAAT,SAAS,QAapB;
|
|
1
|
+
{"version":3,"file":"payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.js","sourceRoot":"","sources":["../../../src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.ts"],"names":[],"mappings":";;;AAsFA,IAAY,SAaX;AAbD,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,wBAAW,CAAA;IACX,gCAAmB,CAAA;IACnB,sCAAyB,CAAA;IACzB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,4BAAe,CAAA;AACjB,CAAC,EAbW,SAAS,yBAAT,SAAS,QAapB;AAkGD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,2CAA2C;IAC3C,sEAAmD,CAAA;IACnD,oDAAiC,CAAA;AACnC,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAwQD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -97,6 +97,8 @@ export declare enum CardBrand {
|
|
|
97
97
|
VISA = "VISA",
|
|
98
98
|
RUPAY = "RUPAY"
|
|
99
99
|
}
|
|
100
|
+
/** @enumType */
|
|
101
|
+
export type CardBrandWithLiterals = CardBrand | 'UNKNOWN_CARD_BRAND' | 'AMEX' | 'DANKORT' | 'DINERS' | 'DISCOVER' | 'ISRACARD' | 'JCB' | 'MAESTRO' | 'MASTERCARD' | 'UNIONPAY' | 'VISA' | 'RUPAY';
|
|
100
102
|
export interface PaymentMethod {
|
|
101
103
|
/**
|
|
102
104
|
* Legacy payment method type ID. Supported values are `creditCard`, `payPal`.
|
|
@@ -168,13 +170,15 @@ export interface GetSavedPaymentMethodRequest {
|
|
|
168
170
|
* You should have additional permission in order to get them as described in HidedFields documentation.
|
|
169
171
|
* @maxSize 1
|
|
170
172
|
*/
|
|
171
|
-
fields?:
|
|
173
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
172
174
|
}
|
|
173
175
|
export declare enum RequestedFields {
|
|
174
176
|
/** Default value. This value is unused. */
|
|
175
177
|
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
176
178
|
SENSITIVE_INFO = "SENSITIVE_INFO"
|
|
177
179
|
}
|
|
180
|
+
/** @enumType */
|
|
181
|
+
export type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'SENSITIVE_INFO';
|
|
178
182
|
export interface GetSavedPaymentMethodResponse {
|
|
179
183
|
/** Saved payment method. */
|
|
180
184
|
savedPaymentMethod?: SavedPaymentMethod;
|
|
@@ -214,7 +218,7 @@ export interface ListSavedPaymentMethodsRequest {
|
|
|
214
218
|
* In order to receive it you should have `PAYMENTS.SAVED_PAYMENT_METHOD_READ_SENSITIVE_INFO` permission
|
|
215
219
|
* @maxSize 1
|
|
216
220
|
*/
|
|
217
|
-
fields?:
|
|
221
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
218
222
|
/**
|
|
219
223
|
* Paging for limit the response size.
|
|
220
224
|
* If no paging provider default response limit 100 will be used.
|
|
@@ -289,25 +293,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
289
293
|
updatedEvent?: EntityUpdatedEvent;
|
|
290
294
|
deletedEvent?: EntityDeletedEvent;
|
|
291
295
|
actionEvent?: ActionEvent;
|
|
292
|
-
/**
|
|
293
|
-
* Unique event ID.
|
|
294
|
-
* Allows clients to ignore duplicate webhooks.
|
|
295
|
-
*/
|
|
296
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
296
297
|
_id?: string;
|
|
297
298
|
/**
|
|
298
|
-
*
|
|
299
|
-
*
|
|
299
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
300
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
300
301
|
*/
|
|
301
302
|
entityFqdn?: string;
|
|
302
303
|
/**
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
304
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
305
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
306
306
|
*/
|
|
307
307
|
slug?: string;
|
|
308
308
|
/** ID of the entity associated with the event. */
|
|
309
309
|
entityId?: string;
|
|
310
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
310
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
311
311
|
eventTime?: Date | null;
|
|
312
312
|
/**
|
|
313
313
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -317,12 +317,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
317
317
|
/** If present, indicates the action that triggered the event. */
|
|
318
318
|
originatedFrom?: string | null;
|
|
319
319
|
/**
|
|
320
|
-
* A sequence number
|
|
321
|
-
*
|
|
322
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
323
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
324
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
325
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
320
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
321
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
326
322
|
*/
|
|
327
323
|
entityEventSequence?: string | null;
|
|
328
324
|
}
|
|
@@ -348,7 +344,7 @@ export interface EntityUpdatedEvent {
|
|
|
348
344
|
currentEntity?: string;
|
|
349
345
|
}
|
|
350
346
|
export interface EntityDeletedEvent {
|
|
351
|
-
/** Entity that was deleted */
|
|
347
|
+
/** Entity that was deleted. */
|
|
352
348
|
deletedEntity?: string | null;
|
|
353
349
|
}
|
|
354
350
|
export interface ActionEvent {
|
|
@@ -392,7 +388,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
392
388
|
*/
|
|
393
389
|
appId?: string;
|
|
394
390
|
/** @readonly */
|
|
395
|
-
identityType?:
|
|
391
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
396
392
|
}
|
|
397
393
|
/** @oneof */
|
|
398
394
|
export interface IdentificationDataIdOneOf {
|
|
@@ -424,6 +420,8 @@ export declare enum WebhookIdentityType {
|
|
|
424
420
|
WIX_USER = "WIX_USER",
|
|
425
421
|
APP = "APP"
|
|
426
422
|
}
|
|
423
|
+
/** @enumType */
|
|
424
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
427
425
|
export interface FindSavedCreditCardRequest {
|
|
428
426
|
/**
|
|
429
427
|
* temporary card token
|
|
@@ -470,25 +468,21 @@ export interface BaseEventMetadata {
|
|
|
470
468
|
identity?: IdentificationData;
|
|
471
469
|
}
|
|
472
470
|
export interface EventMetadata extends BaseEventMetadata {
|
|
473
|
-
/**
|
|
474
|
-
* Unique event ID.
|
|
475
|
-
* Allows clients to ignore duplicate webhooks.
|
|
476
|
-
*/
|
|
471
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
477
472
|
_id?: string;
|
|
478
473
|
/**
|
|
479
|
-
*
|
|
480
|
-
*
|
|
474
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
475
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
481
476
|
*/
|
|
482
477
|
entityFqdn?: string;
|
|
483
478
|
/**
|
|
484
|
-
*
|
|
485
|
-
*
|
|
486
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
479
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
480
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
487
481
|
*/
|
|
488
482
|
slug?: string;
|
|
489
483
|
/** ID of the entity associated with the event. */
|
|
490
484
|
entityId?: string;
|
|
491
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
485
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
492
486
|
eventTime?: Date | null;
|
|
493
487
|
/**
|
|
494
488
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -498,12 +492,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
498
492
|
/** If present, indicates the action that triggered the event. */
|
|
499
493
|
originatedFrom?: string | null;
|
|
500
494
|
/**
|
|
501
|
-
* A sequence number
|
|
502
|
-
*
|
|
503
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
504
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
505
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
506
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
495
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
496
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
507
497
|
*/
|
|
508
498
|
entityEventSequence?: string | null;
|
|
509
499
|
}
|
|
@@ -588,7 +578,7 @@ export interface GetSavedPaymentMethodOptions {
|
|
|
588
578
|
* You should have additional permission in order to get them as described in HidedFields documentation.
|
|
589
579
|
* @maxSize 1
|
|
590
580
|
*/
|
|
591
|
-
fields?:
|
|
581
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
592
582
|
}
|
|
593
583
|
/**
|
|
594
584
|
* Deletes SavedPaymentMethod by ID.
|
|
@@ -637,7 +627,7 @@ export interface ListSavedPaymentMethodsOptions {
|
|
|
637
627
|
* In order to receive it you should have `PAYMENTS.SAVED_PAYMENT_METHOD_READ_SENSITIVE_INFO` permission
|
|
638
628
|
* @maxSize 1
|
|
639
629
|
*/
|
|
640
|
-
fields?:
|
|
630
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
641
631
|
/**
|
|
642
632
|
* Paging for limit the response size.
|
|
643
633
|
* If no paging provider default response limit 100 will be used.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.js","sourceRoot":"","sources":["../../../src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,qLAAuK;AAwFvK,IAAY,SAaX;AAbD,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,wBAAW,CAAA;IACX,gCAAmB,CAAA;IACnB,sCAAyB,CAAA;IACzB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,4BAAe,CAAA;AACjB,CAAC,EAbW,SAAS,yBAAT,SAAS,QAapB;
|
|
1
|
+
{"version":3,"file":"payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.js","sourceRoot":"","sources":["../../../src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,qLAAuK;AAwFvK,IAAY,SAaX;AAbD,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,wBAAW,CAAA;IACX,gCAAmB,CAAA;IACnB,sCAAyB,CAAA;IACzB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,4BAAe,CAAA;AACjB,CAAC,EAbW,SAAS,yBAAT,SAAS,QAapB;AAkGD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,2CAA2C;IAC3C,sEAAmD,CAAA;IACnD,oDAAiC,CAAA;AACnC,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAsQD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCA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{
|
|
|
96
96
|
VISA = "VISA",
|
|
97
97
|
RUPAY = "RUPAY"
|
|
98
98
|
}
|
|
99
|
+
/** @enumType */
|
|
100
|
+
export type CardBrandWithLiterals = CardBrand | 'UNKNOWN_CARD_BRAND' | 'AMEX' | 'DANKORT' | 'DINERS' | 'DISCOVER' | 'ISRACARD' | 'JCB' | 'MAESTRO' | 'MASTERCARD' | 'UNIONPAY' | 'VISA' | 'RUPAY';
|
|
99
101
|
export interface PaymentMethod {
|
|
100
102
|
/**
|
|
101
103
|
* Legacy payment method type ID. Supported values are `creditCard`, `payPal`.
|
|
@@ -167,13 +169,15 @@ export interface GetSavedPaymentMethodRequest {
|
|
|
167
169
|
* You should have additional permission in order to get them as described in HidedFields documentation.
|
|
168
170
|
* @maxSize 1
|
|
169
171
|
*/
|
|
170
|
-
fields?:
|
|
172
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
171
173
|
}
|
|
172
174
|
export declare enum RequestedFields {
|
|
173
175
|
/** Default value. This value is unused. */
|
|
174
176
|
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
175
177
|
SENSITIVE_INFO = "SENSITIVE_INFO"
|
|
176
178
|
}
|
|
179
|
+
/** @enumType */
|
|
180
|
+
export type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'SENSITIVE_INFO';
|
|
177
181
|
export interface GetSavedPaymentMethodResponse {
|
|
178
182
|
/** Saved payment method. */
|
|
179
183
|
savedPaymentMethod?: SavedPaymentMethod;
|
|
@@ -213,7 +217,7 @@ export interface ListSavedPaymentMethodsRequest {
|
|
|
213
217
|
* In order to receive it you should have `PAYMENTS.SAVED_PAYMENT_METHOD_READ_SENSITIVE_INFO` permission
|
|
214
218
|
* @maxSize 1
|
|
215
219
|
*/
|
|
216
|
-
fields?:
|
|
220
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
217
221
|
/**
|
|
218
222
|
* Paging for limit the response size.
|
|
219
223
|
* If no paging provider default response limit 100 will be used.
|
|
@@ -288,25 +292,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
288
292
|
updatedEvent?: EntityUpdatedEvent;
|
|
289
293
|
deletedEvent?: EntityDeletedEvent;
|
|
290
294
|
actionEvent?: ActionEvent;
|
|
291
|
-
/**
|
|
292
|
-
* Unique event ID.
|
|
293
|
-
* Allows clients to ignore duplicate webhooks.
|
|
294
|
-
*/
|
|
295
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
295
296
|
id?: string;
|
|
296
297
|
/**
|
|
297
|
-
*
|
|
298
|
-
*
|
|
298
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
299
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
299
300
|
*/
|
|
300
301
|
entityFqdn?: string;
|
|
301
302
|
/**
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
303
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
304
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
305
305
|
*/
|
|
306
306
|
slug?: string;
|
|
307
307
|
/** ID of the entity associated with the event. */
|
|
308
308
|
entityId?: string;
|
|
309
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
309
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
310
310
|
eventTime?: Date | null;
|
|
311
311
|
/**
|
|
312
312
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -316,12 +316,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
316
316
|
/** If present, indicates the action that triggered the event. */
|
|
317
317
|
originatedFrom?: string | null;
|
|
318
318
|
/**
|
|
319
|
-
* A sequence number
|
|
320
|
-
*
|
|
321
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
322
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
323
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
324
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
319
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
320
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
325
321
|
*/
|
|
326
322
|
entityEventSequence?: string | null;
|
|
327
323
|
}
|
|
@@ -349,7 +345,7 @@ export interface EntityUpdatedEvent {
|
|
|
349
345
|
currentEntityAsJson?: string;
|
|
350
346
|
}
|
|
351
347
|
export interface EntityDeletedEvent {
|
|
352
|
-
/** Entity that was deleted */
|
|
348
|
+
/** Entity that was deleted. */
|
|
353
349
|
deletedEntityAsJson?: string | null;
|
|
354
350
|
}
|
|
355
351
|
export interface ActionEvent {
|
|
@@ -393,7 +389,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
393
389
|
*/
|
|
394
390
|
appId?: string;
|
|
395
391
|
/** @readonly */
|
|
396
|
-
identityType?:
|
|
392
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
397
393
|
}
|
|
398
394
|
/** @oneof */
|
|
399
395
|
export interface IdentificationDataIdOneOf {
|
|
@@ -425,6 +421,8 @@ export declare enum WebhookIdentityType {
|
|
|
425
421
|
WIX_USER = "WIX_USER",
|
|
426
422
|
APP = "APP"
|
|
427
423
|
}
|
|
424
|
+
/** @enumType */
|
|
425
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
428
426
|
export interface FindSavedCreditCardRequest {
|
|
429
427
|
/**
|
|
430
428
|
* temporary card token
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.js","sourceRoot":"","sources":["../../../src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.ts"],"names":[],"mappings":"AAsFA,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,wBAAW,CAAA;IACX,gCAAmB,CAAA;IACnB,sCAAyB,CAAA;IACzB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,4BAAe,CAAA;AACjB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB;
|
|
1
|
+
{"version":3,"file":"payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.js","sourceRoot":"","sources":["../../../src/payments-saved-payment-methods-v1-saved-payment-method-saved-payment-methods.types.ts"],"names":[],"mappings":"AAsFA,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,wBAAW,CAAA;IACX,gCAAmB,CAAA;IACnB,sCAAyB,CAAA;IACzB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,4BAAe,CAAA;AACjB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB;AAkGD,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,2CAA2C;IAC3C,sEAAmD,CAAA;IACnD,oDAAiC,CAAA;AACnC,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAwQD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -97,6 +97,8 @@ export declare enum CardBrand {
|
|
|
97
97
|
VISA = "VISA",
|
|
98
98
|
RUPAY = "RUPAY"
|
|
99
99
|
}
|
|
100
|
+
/** @enumType */
|
|
101
|
+
export type CardBrandWithLiterals = CardBrand | 'UNKNOWN_CARD_BRAND' | 'AMEX' | 'DANKORT' | 'DINERS' | 'DISCOVER' | 'ISRACARD' | 'JCB' | 'MAESTRO' | 'MASTERCARD' | 'UNIONPAY' | 'VISA' | 'RUPAY';
|
|
100
102
|
export interface PaymentMethod {
|
|
101
103
|
/**
|
|
102
104
|
* Legacy payment method type ID. Supported values are `creditCard`, `payPal`.
|
|
@@ -168,13 +170,15 @@ export interface GetSavedPaymentMethodRequest {
|
|
|
168
170
|
* You should have additional permission in order to get them as described in HidedFields documentation.
|
|
169
171
|
* @maxSize 1
|
|
170
172
|
*/
|
|
171
|
-
fields?:
|
|
173
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
172
174
|
}
|
|
173
175
|
export declare enum RequestedFields {
|
|
174
176
|
/** Default value. This value is unused. */
|
|
175
177
|
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
176
178
|
SENSITIVE_INFO = "SENSITIVE_INFO"
|
|
177
179
|
}
|
|
180
|
+
/** @enumType */
|
|
181
|
+
export type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'SENSITIVE_INFO';
|
|
178
182
|
export interface GetSavedPaymentMethodResponse {
|
|
179
183
|
/** Saved payment method. */
|
|
180
184
|
savedPaymentMethod?: SavedPaymentMethod;
|
|
@@ -214,7 +218,7 @@ export interface ListSavedPaymentMethodsRequest {
|
|
|
214
218
|
* In order to receive it you should have `PAYMENTS.SAVED_PAYMENT_METHOD_READ_SENSITIVE_INFO` permission
|
|
215
219
|
* @maxSize 1
|
|
216
220
|
*/
|
|
217
|
-
fields?:
|
|
221
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
218
222
|
/**
|
|
219
223
|
* Paging for limit the response size.
|
|
220
224
|
* If no paging provider default response limit 100 will be used.
|
|
@@ -289,25 +293,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
289
293
|
updatedEvent?: EntityUpdatedEvent;
|
|
290
294
|
deletedEvent?: EntityDeletedEvent;
|
|
291
295
|
actionEvent?: ActionEvent;
|
|
292
|
-
/**
|
|
293
|
-
* Unique event ID.
|
|
294
|
-
* Allows clients to ignore duplicate webhooks.
|
|
295
|
-
*/
|
|
296
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
296
297
|
_id?: string;
|
|
297
298
|
/**
|
|
298
|
-
*
|
|
299
|
-
*
|
|
299
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
300
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
300
301
|
*/
|
|
301
302
|
entityFqdn?: string;
|
|
302
303
|
/**
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
304
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
305
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
306
306
|
*/
|
|
307
307
|
slug?: string;
|
|
308
308
|
/** ID of the entity associated with the event. */
|
|
309
309
|
entityId?: string;
|
|
310
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
310
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
311
311
|
eventTime?: Date | null;
|
|
312
312
|
/**
|
|
313
313
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -317,12 +317,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
317
317
|
/** If present, indicates the action that triggered the event. */
|
|
318
318
|
originatedFrom?: string | null;
|
|
319
319
|
/**
|
|
320
|
-
* A sequence number
|
|
321
|
-
*
|
|
322
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
323
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
324
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
325
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
320
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
321
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
326
322
|
*/
|
|
327
323
|
entityEventSequence?: string | null;
|
|
328
324
|
}
|
|
@@ -348,7 +344,7 @@ export interface EntityUpdatedEvent {
|
|
|
348
344
|
currentEntity?: string;
|
|
349
345
|
}
|
|
350
346
|
export interface EntityDeletedEvent {
|
|
351
|
-
/** Entity that was deleted */
|
|
347
|
+
/** Entity that was deleted. */
|
|
352
348
|
deletedEntity?: string | null;
|
|
353
349
|
}
|
|
354
350
|
export interface ActionEvent {
|
|
@@ -392,7 +388,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
392
388
|
*/
|
|
393
389
|
appId?: string;
|
|
394
390
|
/** @readonly */
|
|
395
|
-
identityType?:
|
|
391
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
396
392
|
}
|
|
397
393
|
/** @oneof */
|
|
398
394
|
export interface IdentificationDataIdOneOf {
|
|
@@ -424,6 +420,8 @@ export declare enum WebhookIdentityType {
|
|
|
424
420
|
WIX_USER = "WIX_USER",
|
|
425
421
|
APP = "APP"
|
|
426
422
|
}
|
|
423
|
+
/** @enumType */
|
|
424
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
427
425
|
export interface FindSavedCreditCardRequest {
|
|
428
426
|
/**
|
|
429
427
|
* temporary card token
|
|
@@ -470,25 +468,21 @@ export interface BaseEventMetadata {
|
|
|
470
468
|
identity?: IdentificationData;
|
|
471
469
|
}
|
|
472
470
|
export interface EventMetadata extends BaseEventMetadata {
|
|
473
|
-
/**
|
|
474
|
-
* Unique event ID.
|
|
475
|
-
* Allows clients to ignore duplicate webhooks.
|
|
476
|
-
*/
|
|
471
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
477
472
|
_id?: string;
|
|
478
473
|
/**
|
|
479
|
-
*
|
|
480
|
-
*
|
|
474
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
475
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
481
476
|
*/
|
|
482
477
|
entityFqdn?: string;
|
|
483
478
|
/**
|
|
484
|
-
*
|
|
485
|
-
*
|
|
486
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
479
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
480
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
487
481
|
*/
|
|
488
482
|
slug?: string;
|
|
489
483
|
/** ID of the entity associated with the event. */
|
|
490
484
|
entityId?: string;
|
|
491
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example
|
|
485
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
492
486
|
eventTime?: Date | null;
|
|
493
487
|
/**
|
|
494
488
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -498,12 +492,8 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
498
492
|
/** If present, indicates the action that triggered the event. */
|
|
499
493
|
originatedFrom?: string | null;
|
|
500
494
|
/**
|
|
501
|
-
* A sequence number
|
|
502
|
-
*
|
|
503
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
504
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
505
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
506
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
495
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
496
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
507
497
|
*/
|
|
508
498
|
entityEventSequence?: string | null;
|
|
509
499
|
}
|
|
@@ -588,7 +578,7 @@ export interface GetSavedPaymentMethodOptions {
|
|
|
588
578
|
* You should have additional permission in order to get them as described in HidedFields documentation.
|
|
589
579
|
* @maxSize 1
|
|
590
580
|
*/
|
|
591
|
-
fields?:
|
|
581
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
592
582
|
}
|
|
593
583
|
/**
|
|
594
584
|
* Deletes SavedPaymentMethod by ID.
|
|
@@ -637,7 +627,7 @@ export interface ListSavedPaymentMethodsOptions {
|
|
|
637
627
|
* In order to receive it you should have `PAYMENTS.SAVED_PAYMENT_METHOD_READ_SENSITIVE_INFO` permission
|
|
638
628
|
* @maxSize 1
|
|
639
629
|
*/
|
|
640
|
-
fields?:
|
|
630
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
641
631
|
/**
|
|
642
632
|
* Paging for limit the response size.
|
|
643
633
|
* If no paging provider default response limit 100 will be used.
|