@evervault/js 2.14.0 → 2.15.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 +14 -2
- package/package.json +6 -6
package/dist/evervault.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare type ApplePayButtonOptions = {
|
|
|
60
60
|
amount?: number;
|
|
61
61
|
lineItems?: TransactionLineItem[];
|
|
62
62
|
}>;
|
|
63
|
+
appleMerchantId?: string;
|
|
63
64
|
process: (data: EncryptedApplePayData, helpers: {
|
|
64
65
|
fail: (error?: ApplePayErrorMessage) => void;
|
|
65
66
|
}) => Promise<void>;
|
|
@@ -82,6 +83,15 @@ declare interface ApplePayEvents {
|
|
|
82
83
|
cancel: () => void;
|
|
83
84
|
}
|
|
84
85
|
|
|
86
|
+
declare type ApplePayMerchantCapability =
|
|
87
|
+
| "supports3DS"
|
|
88
|
+
| "supportsEMV"
|
|
89
|
+
| "supportsCredit"
|
|
90
|
+
| "supportsDebit"
|
|
91
|
+
| "supportsInstantFundsOut";
|
|
92
|
+
|
|
93
|
+
declare type ApplePayTransactionType = "oneOff" | "recurring" | "disbursement";
|
|
94
|
+
|
|
85
95
|
declare interface BaseTransactionDetails {
|
|
86
96
|
amount: number;
|
|
87
97
|
currency: string;
|
|
@@ -135,7 +145,7 @@ declare class Card {
|
|
|
135
145
|
get config(): {
|
|
136
146
|
theme: ThemeDefinition | undefined;
|
|
137
147
|
config: {
|
|
138
|
-
icons: boolean | CardIcons | undefined;
|
|
148
|
+
icons: boolean | Partial<CardIcons> | undefined;
|
|
139
149
|
autoFocus: boolean | undefined;
|
|
140
150
|
translations: Partial<CardTranslations> | undefined;
|
|
141
151
|
hiddenFields: string;
|
|
@@ -219,7 +229,7 @@ declare type CardIcons = Record<CardBrandName | "default", string>;
|
|
|
219
229
|
|
|
220
230
|
declare interface CardOptions {
|
|
221
231
|
colorScheme?: ColorScheme;
|
|
222
|
-
icons?: boolean | CardIcons
|
|
232
|
+
icons?: boolean | Partial<CardIcons>;
|
|
223
233
|
theme?: ThemeDefinition;
|
|
224
234
|
autoFocus?: boolean;
|
|
225
235
|
hiddenFields?: ("number" | "expiry" | "cvc")[]; // deprecated
|
|
@@ -858,6 +868,7 @@ declare interface DisbursementTransactionDetails extends BaseTransactionDetails
|
|
|
858
868
|
type: "disbursement";
|
|
859
869
|
instantTransfer?: InstantTransferDetails;
|
|
860
870
|
requiredRecipientDetails?: RequiredRecipientDetail[];
|
|
871
|
+
merchantCapabilities?: ApplePayMerchantCapability[];
|
|
861
872
|
}
|
|
862
873
|
|
|
863
874
|
declare type EncryptedApplePayData = Omit<EncryptedDPAN<"apple">, "token"> & {
|
|
@@ -870,6 +881,7 @@ declare type EncryptedApplePayData = Omit<EncryptedDPAN<"apple">, "token"> & {
|
|
|
870
881
|
address?: unknown;
|
|
871
882
|
};
|
|
872
883
|
paymentDataType: string;
|
|
884
|
+
transactionType: ApplePayTransactionType;
|
|
873
885
|
deviceManufacturerIdentifier: string;
|
|
874
886
|
shippingContact?: {
|
|
875
887
|
givenName?: 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.15.0",
|
|
5
5
|
"description": "Evervault.js loader for client-side browser applications",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"types": "dist/evervault.d.ts",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"typescript": "5.6.3",
|
|
21
|
-
"vite": "^7.3.
|
|
21
|
+
"vite": "^7.3.5",
|
|
22
22
|
"vite-plugin-dts": "^4.5.4",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"types": "0.23.
|
|
26
|
-
"
|
|
23
|
+
"@evervault/browser": "2.58.0",
|
|
24
|
+
"themes": "0.1.24",
|
|
25
|
+
"types": "0.23.1",
|
|
26
|
+
"tsconfig": "0.1.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build",
|