@evervault/js 2.2.0 → 2.3.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 +25 -1
- package/package.json +4 -4
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;
|
|
@@ -2490,6 +2509,11 @@ declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string
|
|
|
2490
2509
|
WebkitScrollSnapPointsY?: Property.ScrollSnapPointsY | undefined;
|
|
2491
2510
|
}
|
|
2492
2511
|
|
|
2512
|
+
declare interface PaymentMethodUpdate {
|
|
2513
|
+
type?: string;
|
|
2514
|
+
billingContact?: BillingContact;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2493
2517
|
declare interface PaymentToken<P> {
|
|
2494
2518
|
tokenServiceProvider: P;
|
|
2495
2519
|
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.3.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
|
-
"
|
|
23
|
+
"@evervault/browser": "2.47.0",
|
|
24
24
|
"tsconfig": "0.1.0",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"themes": "0.1.16",
|
|
26
|
+
"types": "0.16.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build",
|