@chargehive/types 2.0.1 → 2.1.0

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.
Files changed (2) hide show
  1. package/chargehive.d.ts +21 -0
  2. package/package.json +2 -2
package/chargehive.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import {FieldName as PCIBFieldName, PCIBridgeTokenizeResponse} from '@pci-bridge/types/pcibridge';
2
2
  import {FieldValidation} from '@pci-bridge/types/validation';
3
+ import {InitResponse} from '../src/types/paymentauth';
3
4
  import {Address, Person} from './address';
4
5
 
5
6
  declare global
@@ -36,6 +37,10 @@ export interface ChargeHiveType extends ChargeType, ChargeHiveEventTarget
36
37
 
37
38
  initialize(placementToken: string, projectId: string, options: ChargeHiveInitOptions);
38
39
 
40
+ isInitialized(): boolean;
41
+
42
+ getInitResponse(): InitResponse | undefined;
43
+
39
44
  validate(field?: FieldName, timeout?: number): Promise<Map<FieldName, FieldValidation>>;
40
45
 
41
46
  tokenize(): Promise<TokenizeResponse>;
@@ -93,6 +98,22 @@ export type PaymentMethodDataTypes = {
93
98
  }
94
99
  };
95
100
 
101
+ export type PaymentMethodTokenizationData = {
102
+ PLACEMENT_CAPABILITY_TOKEN: null
103
+ PLACEMENT_CAPABILITY_PAYPAL: null
104
+ PLACEMENT_CAPABILITY_CARD_FORM: PCIBridgeTokenizeResponse
105
+ PLACEMENT_CAPABILITY_APPLE_PAY: {
106
+ session: string;
107
+ initiativeContext: string;
108
+ sessionUrl: string;
109
+ }
110
+ PLACEMENT_CAPABILITY_GOOGLE_PAY: {
111
+ environment: string;
112
+ googlePayConfig: google.payments.api.PaymentDataRequest | string;
113
+ }
114
+ PLACEMENT_CAPABILITY_DIRECTDEBIT_FORM: {}
115
+ }
116
+
96
117
  export type PaymentMethodAuthenticationTypes = {
97
118
  cvv: string;
98
119
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "*.d.ts"
7
7
  ],
8
8
  "dependencies": {
9
- "@pci-bridge/types": "^1.1.0"
9
+ "@pci-bridge/types": "^1.0.2"
10
10
  },
11
- "version": "2.0.1"
11
+ "version": "2.1.0"
12
12
  }