@chargehive/types 2.1.27 → 2.1.29
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/address.d.ts +1 -1
- package/chargehive.d.ts +15 -1
- package/package.json +1 -1
package/address.d.ts
CHANGED
package/chargehive.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
PCIBridgeTokenizeEphemeralResponse,
|
|
6
6
|
} from '@pci-bridge/types/pcibridge';
|
|
7
7
|
import {FieldValidation} from '@pci-bridge/types/validation';
|
|
8
|
-
import {InitResponse} from '../src/types/paymentauth';
|
|
9
8
|
import {Address, Person} from './address';
|
|
10
9
|
import ApplePayPaymentToken = ApplePayJS.ApplePayPaymentToken;
|
|
11
10
|
|
|
12
11
|
declare global
|
|
13
12
|
{
|
|
14
13
|
/* eslint-disable no-var */
|
|
14
|
+
// @ts-ignore
|
|
15
15
|
// noinspection ES6ConvertVarToLetConst
|
|
16
16
|
var ChargeHive: ChargeHiveType;
|
|
17
17
|
/* eslint-enable no-var */
|
|
@@ -77,6 +77,20 @@ export interface ChargeHiveInitOptions
|
|
|
77
77
|
environment?: ChargeEnvironment;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
export interface InitResponse
|
|
81
|
+
{
|
|
82
|
+
riskCheckers: { [key: string]: RiskChecker };
|
|
83
|
+
capabilities: PaymentMethodType[];
|
|
84
|
+
serverTime: number;
|
|
85
|
+
sandboxMode: boolean;
|
|
86
|
+
defaultPaymentType: PaymentMethodType;
|
|
87
|
+
projectName: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type RiskChecker = {
|
|
91
|
+
[key: string]: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
80
94
|
export type PaymentMethodType =
|
|
81
95
|
| 'PLACEMENT_CAPABILITY_TOKEN'
|
|
82
96
|
| 'PLACEMENT_CAPABILITY_CARD_FORM'
|
package/package.json
CHANGED