@wix/payments 1.0.25 → 1.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/payments",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "@wix/payments_onboarding-availability": "1.0.12",
25
- "@wix/payments_psp-callbacks": "1.0.6",
25
+ "@wix/payments_psp-callbacks": "1.0.7",
26
26
  "@wix/payments_refunds": "1.0.21",
27
27
  "@wix/payments_saved-payment-methods": "1.0.2"
28
28
  },
@@ -49,5 +49,5 @@
49
49
  "fqdn": ""
50
50
  }
51
51
  },
52
- "falconPackageHash": "f269f7fabc90d101c0486a180004d68c7e3b376636ab122700cc1fe7"
52
+ "falconPackageHash": "acd522364b0879b2c0e2334876e7a06364a961230b0797adf06d9f8e"
53
53
  }
@@ -893,6 +893,10 @@ interface ProviderPlatformEvent extends ProviderPlatformEventResourceOneOf {
893
893
  refund?: RefundEvent;
894
894
  /** Transaction event data. */
895
895
  transaction?: TransactionEvent;
896
+ /** Capture event data */
897
+ capture?: CaptureEvent;
898
+ /** Void event data */
899
+ void?: VoidEvent;
896
900
  /**
897
901
  * This field is ignored, do not send it.
898
902
  * @deprecated
@@ -905,6 +909,10 @@ interface ProviderPlatformEventResourceOneOf {
905
909
  refund?: RefundEvent;
906
910
  /** Transaction event data. */
907
911
  transaction?: TransactionEvent;
912
+ /** Capture event data */
913
+ capture?: CaptureEvent;
914
+ /** Void event data */
915
+ void?: VoidEvent;
908
916
  }
909
917
  interface RefundEvent {
910
918
  /** Wix transaction ID. */
@@ -967,6 +975,30 @@ interface CardDetails {
967
975
  /** Last 4 digits of the card's number. */
968
976
  lastFour?: string | null;
969
977
  }
978
+ interface CaptureEvent {
979
+ /** Wix transaction ID. */
980
+ wixTransactionId?: string;
981
+ /** Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes#capture-declined) indicating request's status. */
982
+ reasonCode?: number;
983
+ /** Capture amount. */
984
+ amount?: string;
985
+ /** PSP-specific error code. */
986
+ errorCode?: string | null;
987
+ /** PSP-specific error message. */
988
+ errorMessage?: string | null;
989
+ }
990
+ interface VoidEvent {
991
+ /** Wix transaction ID. */
992
+ wixTransactionId?: string;
993
+ /** PSP void ID. */
994
+ reasonCode?: number;
995
+ /** Voided amount. */
996
+ amount?: string;
997
+ /** PSP-specific error code. */
998
+ errorCode?: string | null;
999
+ /** PSP-specific error message. */
1000
+ errorMessage?: string | null;
1001
+ }
970
1002
  /** Submit event request */
971
1003
  interface SubmitEventRequest {
972
1004
  /** Event data. */
@@ -995,6 +1027,7 @@ interface SubmitEventSignature {
995
1027
 
996
1028
  declare const submitEvent: MaybeContext<BuildRESTFunction<typeof submitEvent$1> & typeof submitEvent$1>;
997
1029
 
1030
+ type context$2_CaptureEvent = CaptureEvent;
998
1031
  type context$2_CardDetails = CardDetails;
999
1032
  type context$2_CardReference = CardReference;
1000
1033
  type context$2_CredentialsOnFile = CredentialsOnFile;
@@ -1006,9 +1039,10 @@ type context$2_RefundEvent = RefundEvent;
1006
1039
  type context$2_SubmitEventRequest = SubmitEventRequest;
1007
1040
  type context$2_SubmitEventResponse = SubmitEventResponse;
1008
1041
  type context$2_TransactionEvent = TransactionEvent;
1042
+ type context$2_VoidEvent = VoidEvent;
1009
1043
  declare const context$2_submitEvent: typeof submitEvent;
1010
1044
  declare namespace context$2 {
1011
- export { type context$2_CardDetails as CardDetails, type context$2_CardReference as CardReference, type context$2_CredentialsOnFile as CredentialsOnFile, type context$2_CredentialsOnFileInfoOneOf as CredentialsOnFileInfoOneOf, type context$2_PaymentMethodReference as PaymentMethodReference, type context$2_ProviderPlatformEvent as ProviderPlatformEvent, type context$2_ProviderPlatformEventResourceOneOf as ProviderPlatformEventResourceOneOf, type context$2_RefundEvent as RefundEvent, type context$2_SubmitEventRequest as SubmitEventRequest, type context$2_SubmitEventResponse as SubmitEventResponse, type context$2_TransactionEvent as TransactionEvent, context$2_submitEvent as submitEvent };
1045
+ export { type context$2_CaptureEvent as CaptureEvent, type context$2_CardDetails as CardDetails, type context$2_CardReference as CardReference, type context$2_CredentialsOnFile as CredentialsOnFile, type context$2_CredentialsOnFileInfoOneOf as CredentialsOnFileInfoOneOf, type context$2_PaymentMethodReference as PaymentMethodReference, type context$2_ProviderPlatformEvent as ProviderPlatformEvent, type context$2_ProviderPlatformEventResourceOneOf as ProviderPlatformEventResourceOneOf, type context$2_RefundEvent as RefundEvent, type context$2_SubmitEventRequest as SubmitEventRequest, type context$2_SubmitEventResponse as SubmitEventResponse, type context$2_TransactionEvent as TransactionEvent, type context$2_VoidEvent as VoidEvent, context$2_submitEvent as submitEvent };
1012
1046
  }
1013
1047
 
1014
1048
  /**
@@ -893,6 +893,10 @@ interface ProviderPlatformEvent extends ProviderPlatformEventResourceOneOf {
893
893
  refund?: RefundEvent;
894
894
  /** Transaction event data. */
895
895
  transaction?: TransactionEvent;
896
+ /** Capture event data */
897
+ capture?: CaptureEvent;
898
+ /** Void event data */
899
+ void?: VoidEvent;
896
900
  /**
897
901
  * This field is ignored, do not send it.
898
902
  * @deprecated
@@ -905,6 +909,10 @@ interface ProviderPlatformEventResourceOneOf {
905
909
  refund?: RefundEvent;
906
910
  /** Transaction event data. */
907
911
  transaction?: TransactionEvent;
912
+ /** Capture event data */
913
+ capture?: CaptureEvent;
914
+ /** Void event data */
915
+ void?: VoidEvent;
908
916
  }
909
917
  interface RefundEvent {
910
918
  /** Wix transaction ID. */
@@ -967,6 +975,30 @@ interface CardDetails {
967
975
  /** Last 4 digits of the card's number. */
968
976
  lastFour?: string | null;
969
977
  }
978
+ interface CaptureEvent {
979
+ /** Wix transaction ID. */
980
+ wixTransactionId?: string;
981
+ /** Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes#capture-declined) indicating request's status. */
982
+ reasonCode?: number;
983
+ /** Capture amount. */
984
+ amount?: string;
985
+ /** PSP-specific error code. */
986
+ errorCode?: string | null;
987
+ /** PSP-specific error message. */
988
+ errorMessage?: string | null;
989
+ }
990
+ interface VoidEvent {
991
+ /** Wix transaction ID. */
992
+ wixTransactionId?: string;
993
+ /** PSP void ID. */
994
+ reasonCode?: number;
995
+ /** Voided amount. */
996
+ amount?: string;
997
+ /** PSP-specific error code. */
998
+ errorCode?: string | null;
999
+ /** PSP-specific error message. */
1000
+ errorMessage?: string | null;
1001
+ }
970
1002
  /** Submit event request */
971
1003
  interface SubmitEventRequest {
972
1004
  /** Event data. */
@@ -995,6 +1027,7 @@ interface SubmitEventSignature {
995
1027
 
996
1028
  declare const submitEvent: MaybeContext<BuildRESTFunction<typeof submitEvent$1> & typeof submitEvent$1>;
997
1029
 
1030
+ type index_d$2_CaptureEvent = CaptureEvent;
998
1031
  type index_d$2_CardDetails = CardDetails;
999
1032
  type index_d$2_CardReference = CardReference;
1000
1033
  type index_d$2_CredentialsOnFile = CredentialsOnFile;
@@ -1006,9 +1039,10 @@ type index_d$2_RefundEvent = RefundEvent;
1006
1039
  type index_d$2_SubmitEventRequest = SubmitEventRequest;
1007
1040
  type index_d$2_SubmitEventResponse = SubmitEventResponse;
1008
1041
  type index_d$2_TransactionEvent = TransactionEvent;
1042
+ type index_d$2_VoidEvent = VoidEvent;
1009
1043
  declare const index_d$2_submitEvent: typeof submitEvent;
1010
1044
  declare namespace index_d$2 {
1011
- export { type index_d$2_CardDetails as CardDetails, type index_d$2_CardReference as CardReference, type index_d$2_CredentialsOnFile as CredentialsOnFile, type index_d$2_CredentialsOnFileInfoOneOf as CredentialsOnFileInfoOneOf, type index_d$2_PaymentMethodReference as PaymentMethodReference, type index_d$2_ProviderPlatformEvent as ProviderPlatformEvent, type index_d$2_ProviderPlatformEventResourceOneOf as ProviderPlatformEventResourceOneOf, type index_d$2_RefundEvent as RefundEvent, type index_d$2_SubmitEventRequest as SubmitEventRequest, type index_d$2_SubmitEventResponse as SubmitEventResponse, type index_d$2_TransactionEvent as TransactionEvent, index_d$2_submitEvent as submitEvent };
1045
+ export { type index_d$2_CaptureEvent as CaptureEvent, type index_d$2_CardDetails as CardDetails, type index_d$2_CardReference as CardReference, type index_d$2_CredentialsOnFile as CredentialsOnFile, type index_d$2_CredentialsOnFileInfoOneOf as CredentialsOnFileInfoOneOf, type index_d$2_PaymentMethodReference as PaymentMethodReference, type index_d$2_ProviderPlatformEvent as ProviderPlatformEvent, type index_d$2_ProviderPlatformEventResourceOneOf as ProviderPlatformEventResourceOneOf, type index_d$2_RefundEvent as RefundEvent, type index_d$2_SubmitEventRequest as SubmitEventRequest, type index_d$2_SubmitEventResponse as SubmitEventResponse, type index_d$2_TransactionEvent as TransactionEvent, type index_d$2_VoidEvent as VoidEvent, index_d$2_submitEvent as submitEvent };
1012
1046
  }
1013
1047
 
1014
1048
  /**
@@ -325,6 +325,10 @@ interface ProviderPlatformEvent$1 extends ProviderPlatformEventResourceOneOf$1 {
325
325
  refund?: RefundEvent$1;
326
326
  /** Transaction event data. */
327
327
  transaction?: TransactionEvent$1;
328
+ /** Capture event data */
329
+ capture?: CaptureEvent$1;
330
+ /** Void event data */
331
+ void?: VoidEvent$1;
328
332
  /**
329
333
  * This field is ignored, do not send it.
330
334
  * @deprecated
@@ -337,6 +341,10 @@ interface ProviderPlatformEventResourceOneOf$1 {
337
341
  refund?: RefundEvent$1;
338
342
  /** Transaction event data. */
339
343
  transaction?: TransactionEvent$1;
344
+ /** Capture event data */
345
+ capture?: CaptureEvent$1;
346
+ /** Void event data */
347
+ void?: VoidEvent$1;
340
348
  }
341
349
  interface RefundEvent$1 {
342
350
  /** Wix transaction ID. */
@@ -399,6 +407,30 @@ interface CardDetails$1 {
399
407
  /** Last 4 digits of the card's number. */
400
408
  lastFour?: string | null;
401
409
  }
410
+ interface CaptureEvent$1 {
411
+ /** Wix transaction ID. */
412
+ wixTransactionId?: string;
413
+ /** Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes#capture-declined) indicating request's status. */
414
+ reasonCode?: number;
415
+ /** Capture amount. */
416
+ amount?: string;
417
+ /** PSP-specific error code. */
418
+ errorCode?: string | null;
419
+ /** PSP-specific error message. */
420
+ errorMessage?: string | null;
421
+ }
422
+ interface VoidEvent$1 {
423
+ /** Wix transaction ID. */
424
+ wixTransactionId?: string;
425
+ /** PSP void ID. */
426
+ reasonCode?: number;
427
+ /** Voided amount. */
428
+ amount?: string;
429
+ /** PSP-specific error code. */
430
+ errorCode?: string | null;
431
+ /** PSP-specific error message. */
432
+ errorMessage?: string | null;
433
+ }
402
434
  /** Submit event request */
403
435
  interface SubmitEventRequest$1 {
404
436
  /** Event data. */
@@ -414,6 +446,10 @@ interface ProviderPlatformEvent extends ProviderPlatformEventResourceOneOf {
414
446
  refund?: RefundEvent;
415
447
  /** Transaction event data. */
416
448
  transaction?: TransactionEvent;
449
+ /** Capture event data */
450
+ capture?: CaptureEvent;
451
+ /** Void event data */
452
+ void?: VoidEvent;
417
453
  /**
418
454
  * This field is ignored, do not send it.
419
455
  * @deprecated
@@ -426,6 +462,10 @@ interface ProviderPlatformEventResourceOneOf {
426
462
  refund?: RefundEvent;
427
463
  /** Transaction event data. */
428
464
  transaction?: TransactionEvent;
465
+ /** Capture event data */
466
+ capture?: CaptureEvent;
467
+ /** Void event data */
468
+ void?: VoidEvent;
429
469
  }
430
470
  interface RefundEvent {
431
471
  /** Wix transaction ID. */
@@ -488,6 +528,30 @@ interface CardDetails {
488
528
  /** Last 4 digits of the card's number. */
489
529
  lastFour?: string | null;
490
530
  }
531
+ interface CaptureEvent {
532
+ /** Wix transaction ID. */
533
+ wixTransactionId?: string;
534
+ /** Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes#capture-declined) indicating request's status. */
535
+ reasonCode?: number;
536
+ /** Capture amount. */
537
+ amount?: string;
538
+ /** PSP-specific error code. */
539
+ errorCode?: string | null;
540
+ /** PSP-specific error message. */
541
+ errorMessage?: string | null;
542
+ }
543
+ interface VoidEvent {
544
+ /** Wix transaction ID. */
545
+ wixTransactionId?: string;
546
+ /** PSP void ID. */
547
+ reasonCode?: number;
548
+ /** Voided amount. */
549
+ amount?: string;
550
+ /** PSP-specific error code. */
551
+ errorCode?: string | null;
552
+ /** PSP-specific error message. */
553
+ errorMessage?: string | null;
554
+ }
491
555
  /** Submit event request */
492
556
  interface SubmitEventRequest {
493
557
  /** Event data. */