@evervault/js 2.2.0 → 2.4.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.
- package/dist/evervault.d.ts +35 -1
- package/package.json +5 -5
package/dist/evervault.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ declare type ApplePayButtonOptions = {
|
|
|
32
32
|
height: string | number;
|
|
33
33
|
};
|
|
34
34
|
allowedCardNetworks?: ApplePayCardNetwork[];
|
|
35
|
-
requestPayerDetails?: ("name" | "email" | "phone")[];
|
|
35
|
+
requestPayerDetails?: ("name" | "email" | "phone" | "postalAddress")[];
|
|
36
36
|
requestBillingAddress?: boolean;
|
|
37
37
|
requestShipping?: boolean;
|
|
38
38
|
paymentOverrides?: {
|
|
@@ -42,6 +42,10 @@ declare type ApplePayButtonOptions = {
|
|
|
42
42
|
disbursementOverrides?: {
|
|
43
43
|
disbursementDetails?: PaymentDetailsInit;
|
|
44
44
|
};
|
|
45
|
+
onPaymentMethodChange?: (newPaymentMethod: PaymentMethodUpdate) => Promise<{
|
|
46
|
+
amount: number;
|
|
47
|
+
lineItems?: TransactionLineItem[];
|
|
48
|
+
}>;
|
|
45
49
|
onShippingAddressChange?: (newAddress: ShippingAddress) => Promise<{
|
|
46
50
|
amount: number;
|
|
47
51
|
lineItems?: TransactionLineItem[];
|
|
@@ -79,6 +83,21 @@ declare interface BaseTransactionDetails {
|
|
|
79
83
|
lineItems?: TransactionLineItem[];
|
|
80
84
|
}
|
|
81
85
|
|
|
86
|
+
declare interface BillingContact {
|
|
87
|
+
addressLines?: string[];
|
|
88
|
+
administrativeArea?: string;
|
|
89
|
+
country?: string;
|
|
90
|
+
countryCode?: string;
|
|
91
|
+
familyName?: string;
|
|
92
|
+
givenName?: string;
|
|
93
|
+
locality?: string;
|
|
94
|
+
phoneticFamilyName?: string;
|
|
95
|
+
phoneticGivenName?: string;
|
|
96
|
+
postalCode?: string;
|
|
97
|
+
subAdministrativeArea?: string;
|
|
98
|
+
subLocality?: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
82
101
|
declare interface CageKey {
|
|
83
102
|
teamUuid: string;
|
|
84
103
|
appUuid: string;
|
|
@@ -114,6 +133,11 @@ declare class Card {
|
|
|
114
133
|
autoProgress: boolean | undefined;
|
|
115
134
|
redactCVC: boolean | undefined;
|
|
116
135
|
allow3DigitAmexCVC: boolean | undefined;
|
|
136
|
+
validation: {
|
|
137
|
+
name?: {
|
|
138
|
+
regex?: RegExp;
|
|
139
|
+
};
|
|
140
|
+
} | undefined;
|
|
117
141
|
};
|
|
118
142
|
};
|
|
119
143
|
mount(selector: SelectorType): this;
|
|
@@ -189,6 +213,11 @@ declare interface CardOptions {
|
|
|
189
213
|
expiry?: boolean;
|
|
190
214
|
cvc?: boolean;
|
|
191
215
|
};
|
|
216
|
+
validation?: {
|
|
217
|
+
name?: {
|
|
218
|
+
regex?: RegExp;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
192
221
|
}
|
|
193
222
|
|
|
194
223
|
declare interface CardPayload {
|
|
@@ -2490,6 +2519,11 @@ declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string
|
|
|
2490
2519
|
WebkitScrollSnapPointsY?: Property.ScrollSnapPointsY | undefined;
|
|
2491
2520
|
}
|
|
2492
2521
|
|
|
2522
|
+
declare interface PaymentMethodUpdate {
|
|
2523
|
+
type?: string;
|
|
2524
|
+
billingContact?: BillingContact;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2493
2527
|
declare interface PaymentToken<P> {
|
|
2494
2528
|
tokenServiceProvider: P;
|
|
2495
2529
|
number: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@evervault/js",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.4.0",
|
|
5
5
|
"description": "Evervault.js loader for client-side browser applications",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"typescript": "5.5.4",
|
|
21
21
|
"vite": "^5.4.11",
|
|
22
22
|
"vite-plugin-dts": "^4.3.0",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"types": "0.
|
|
26
|
-
"
|
|
23
|
+
"@evervault/browser": "2.48.0",
|
|
24
|
+
"themes": "0.1.17",
|
|
25
|
+
"types": "0.17.0",
|
|
26
|
+
"tsconfig": "0.1.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build",
|