@chargehive/types 2.1.27 → 2.1.28

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 CHANGED
@@ -11,7 +11,7 @@ export interface Person
11
11
 
12
12
  export interface Address
13
13
  {
14
- fao?: string | null;
14
+ fao?: string;
15
15
  companyName?: string;
16
16
  address1: string;
17
17
  address2?: string;
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
@@ -9,5 +9,5 @@
9
9
  "typescript": "^3 || ^4",
10
10
  "@pci-bridge/types": "*"
11
11
  },
12
- "version": "2.1.27"
12
+ "version": "2.1.28"
13
13
  }