@chargehive/types 2.7.0 → 2.7.1
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/chargehive.d.ts +2 -1
- package/package.json +1 -1
- package/validation.d.ts +1 -1
package/chargehive.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
PCIBridgeTokenizeEphemeralResponse,
|
|
5
5
|
PCIBridgeTokenizeResponse,
|
|
6
6
|
} from '@pci-bridge/types/pcibridge';
|
|
7
|
-
import {Validation, ValidationEventData} from './validation';
|
|
7
|
+
import {Validation, ValidationEventData, Validator} from './validation';
|
|
8
8
|
import {Address, Person} from './address';
|
|
9
9
|
|
|
10
10
|
type EmptyObject = Record<string, never>;
|
|
@@ -344,6 +344,7 @@ export type ChargehiveTokenEvent = TokenizeResponse
|
|
|
344
344
|
interface ChargehiveSuccessEvent
|
|
345
345
|
{
|
|
346
346
|
chargeId: string;
|
|
347
|
+
methodId: string;
|
|
347
348
|
transactionId: string;
|
|
348
349
|
transactedAmount: {
|
|
349
350
|
currency: string;
|
package/package.json
CHANGED
package/validation.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import {FieldName} from './chargehive';
|
|
|
6
6
|
|
|
7
7
|
export type ValidationEventData = Map<FieldName, Validation>;
|
|
8
8
|
|
|
9
|
-
export type Validator = () => Promise<
|
|
9
|
+
export type Validator = () => Promise<ValidationEventData>;
|
|
10
10
|
|
|
11
11
|
export type Validation = {
|
|
12
12
|
isValid: boolean;
|