@evervault/js 2.13.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 +20 -2
- package/package.json +7 -7
package/dist/evervault.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ declare class ApplePayButton {
|
|
|
6
6
|
transaction: Transaction;
|
|
7
7
|
constructor(client: EvervaultClient, transaction: Transaction, options: ApplePayButtonOptions);
|
|
8
8
|
on(event: keyof ApplePayEvents, callback: ApplePayEvents[keyof ApplePayEvents]): () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Programmatically dismiss the Apple Pay sheet while a session is active.
|
|
11
|
+
* Maps to PaymentRequest.abort(). Fires the `cancel` event on success.
|
|
12
|
+
* No-op if no session is in progress or abort is not possible.
|
|
13
|
+
*/
|
|
14
|
+
abort(): Promise<void>;
|
|
9
15
|
/**
|
|
10
16
|
* Checks the availability of Apple Pay on the current device.
|
|
11
17
|
*
|
|
@@ -54,6 +60,7 @@ declare type ApplePayButtonOptions = {
|
|
|
54
60
|
amount?: number;
|
|
55
61
|
lineItems?: TransactionLineItem[];
|
|
56
62
|
}>;
|
|
63
|
+
appleMerchantId?: string;
|
|
57
64
|
process: (data: EncryptedApplePayData, helpers: {
|
|
58
65
|
fail: (error?: ApplePayErrorMessage) => void;
|
|
59
66
|
}) => Promise<void>;
|
|
@@ -76,6 +83,15 @@ declare interface ApplePayEvents {
|
|
|
76
83
|
cancel: () => void;
|
|
77
84
|
}
|
|
78
85
|
|
|
86
|
+
declare type ApplePayMerchantCapability =
|
|
87
|
+
| "supports3DS"
|
|
88
|
+
| "supportsEMV"
|
|
89
|
+
| "supportsCredit"
|
|
90
|
+
| "supportsDebit"
|
|
91
|
+
| "supportsInstantFundsOut";
|
|
92
|
+
|
|
93
|
+
declare type ApplePayTransactionType = "oneOff" | "recurring" | "disbursement";
|
|
94
|
+
|
|
79
95
|
declare interface BaseTransactionDetails {
|
|
80
96
|
amount: number;
|
|
81
97
|
currency: string;
|
|
@@ -129,7 +145,7 @@ declare class Card {
|
|
|
129
145
|
get config(): {
|
|
130
146
|
theme: ThemeDefinition | undefined;
|
|
131
147
|
config: {
|
|
132
|
-
icons: boolean | CardIcons | undefined;
|
|
148
|
+
icons: boolean | Partial<CardIcons> | undefined;
|
|
133
149
|
autoFocus: boolean | undefined;
|
|
134
150
|
translations: Partial<CardTranslations> | undefined;
|
|
135
151
|
hiddenFields: string;
|
|
@@ -213,7 +229,7 @@ declare type CardIcons = Record<CardBrandName | "default", string>;
|
|
|
213
229
|
|
|
214
230
|
declare interface CardOptions {
|
|
215
231
|
colorScheme?: ColorScheme;
|
|
216
|
-
icons?: boolean | CardIcons
|
|
232
|
+
icons?: boolean | Partial<CardIcons>;
|
|
217
233
|
theme?: ThemeDefinition;
|
|
218
234
|
autoFocus?: boolean;
|
|
219
235
|
hiddenFields?: ("number" | "expiry" | "cvc")[]; // deprecated
|
|
@@ -852,6 +868,7 @@ declare interface DisbursementTransactionDetails extends BaseTransactionDetails
|
|
|
852
868
|
type: "disbursement";
|
|
853
869
|
instantTransfer?: InstantTransferDetails;
|
|
854
870
|
requiredRecipientDetails?: RequiredRecipientDetail[];
|
|
871
|
+
merchantCapabilities?: ApplePayMerchantCapability[];
|
|
855
872
|
}
|
|
856
873
|
|
|
857
874
|
declare type EncryptedApplePayData = Omit<EncryptedDPAN<"apple">, "token"> & {
|
|
@@ -864,6 +881,7 @@ declare type EncryptedApplePayData = Omit<EncryptedDPAN<"apple">, "token"> & {
|
|
|
864
881
|
address?: unknown;
|
|
865
882
|
};
|
|
866
883
|
paymentDataType: string;
|
|
884
|
+
transactionType: ApplePayTransactionType;
|
|
867
885
|
deviceManufacturerIdentifier: string;
|
|
868
886
|
shippingContact?: {
|
|
869
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",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"module": "dist/evervault-js.js",
|
|
18
18
|
"types": "dist/evervault.d.ts",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"typescript": "5.
|
|
21
|
-
"vite": "^7.3.
|
|
20
|
+
"typescript": "5.6.3",
|
|
21
|
+
"vite": "^7.3.5",
|
|
22
22
|
"vite-plugin-dts": "^4.5.4",
|
|
23
|
-
"@evervault/browser": "2.
|
|
24
|
-
"themes": "0.1.
|
|
25
|
-
"
|
|
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",
|