@chargehive/types
Advanced tools
+9
-2
@@ -60,3 +60,3 @@ import { | ||
| validate(field?: FieldName, timeout?: number): Promise<Map<FieldName, Validation>>; | ||
| validate(field?: FieldName, timeout?: number): Promise<ValidationEventData>; | ||
@@ -316,3 +316,3 @@ tokenize(): Promise<TokenizeResponse>; | ||
| readonly 'authentication': AuthenticationEvent; | ||
| readonly 'error': object; | ||
| readonly 'error': ChargehiveErrorEvent; | ||
| readonly 'token-config': PaymentMethodTokenizationConfig[PaymentMethodType]; | ||
@@ -358,2 +358,9 @@ readonly 'capability': ChargehiveCapabilityEvent; | ||
| interface ChargehiveErrorEvent | ||
| { | ||
| requestId: string; | ||
| error: string; | ||
| code: string; | ||
| } | ||
| interface ChargehiveDeclinedEvent | ||
@@ -360,0 +367,0 @@ { |
+1
-1
@@ -11,3 +11,3 @@ { | ||
| }, | ||
| "version": "2.7.1" | ||
| "version": "2.7.2" | ||
| } |
+1
-1
@@ -7,3 +7,3 @@ import { | ||
| export type ValidationEventData = Map<FieldName, Validation>; | ||
| export type ValidationEventData = Map<FieldName | string, Validation>; | ||
@@ -10,0 +10,0 @@ export type Validator = () => Promise<ValidationEventData>; |
13086
0.82%467
1.3%