@evervault/js 2.14.0 → 2.16.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 +31 -3
- 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>;
|
|
@@ -69,6 +70,14 @@ declare type ApplePayButtonStyle = "black" | "white" | "white-outline";
|
|
|
69
70
|
|
|
70
71
|
declare type ApplePayButtonType = "add-money" | "book" | "buy" | "check-out" | "continue" | "contribute" | "donate" | "order" | "pay" | "plain" | "reload" | "rent" | "set-up" | "subscribe" | "support" | "tip" | "top-up";
|
|
71
72
|
|
|
73
|
+
declare interface ApplePayCardEnrichment {
|
|
74
|
+
funding?: string;
|
|
75
|
+
segment?: string;
|
|
76
|
+
country?: string;
|
|
77
|
+
currency?: string;
|
|
78
|
+
issuer?: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
72
81
|
declare type ApplePayCardNetwork = "amex" | "bancomat" | "bancontact" | "cartesBancaires" | "chinaUnionPay" | "dankort" | "discover" | "eftpos" | "electron" | "elo" | "girocard" | "interac" | "jcb" | "mada" | "maestro" | "masterCard" | "mir" | "privateLabel" | "visa" | "vPay";
|
|
73
82
|
|
|
74
83
|
declare interface ApplePayErrorMessage {
|
|
@@ -82,6 +91,15 @@ declare interface ApplePayEvents {
|
|
|
82
91
|
cancel: () => void;
|
|
83
92
|
}
|
|
84
93
|
|
|
94
|
+
declare type ApplePayMerchantCapability =
|
|
95
|
+
| "supports3DS"
|
|
96
|
+
| "supportsEMV"
|
|
97
|
+
| "supportsCredit"
|
|
98
|
+
| "supportsDebit"
|
|
99
|
+
| "supportsInstantFundsOut";
|
|
100
|
+
|
|
101
|
+
declare type ApplePayTransactionType = "oneOff" | "recurring" | "disbursement";
|
|
102
|
+
|
|
85
103
|
declare interface BaseTransactionDetails {
|
|
86
104
|
amount: number;
|
|
87
105
|
currency: string;
|
|
@@ -135,7 +153,7 @@ declare class Card {
|
|
|
135
153
|
get config(): {
|
|
136
154
|
theme: ThemeDefinition | undefined;
|
|
137
155
|
config: {
|
|
138
|
-
icons: boolean | CardIcons | undefined;
|
|
156
|
+
icons: boolean | Partial<CardIcons> | undefined;
|
|
139
157
|
autoFocus: boolean | undefined;
|
|
140
158
|
translations: Partial<CardTranslations> | undefined;
|
|
141
159
|
hiddenFields: string;
|
|
@@ -219,7 +237,7 @@ declare type CardIcons = Record<CardBrandName | "default", string>;
|
|
|
219
237
|
|
|
220
238
|
declare interface CardOptions {
|
|
221
239
|
colorScheme?: ColorScheme;
|
|
222
|
-
icons?: boolean | CardIcons
|
|
240
|
+
icons?: boolean | Partial<CardIcons>;
|
|
223
241
|
theme?: ThemeDefinition;
|
|
224
242
|
autoFocus?: boolean;
|
|
225
243
|
hiddenFields?: ("number" | "expiry" | "cvc")[]; // deprecated
|
|
@@ -858,22 +876,32 @@ declare interface DisbursementTransactionDetails extends BaseTransactionDetails
|
|
|
858
876
|
type: "disbursement";
|
|
859
877
|
instantTransfer?: InstantTransferDetails;
|
|
860
878
|
requiredRecipientDetails?: RequiredRecipientDetail[];
|
|
879
|
+
merchantCapabilities?: ApplePayMerchantCapability[];
|
|
861
880
|
}
|
|
862
881
|
|
|
863
|
-
declare type EncryptedApplePayData = Omit<
|
|
882
|
+
declare type EncryptedApplePayData = Omit<
|
|
883
|
+
EncryptedDPAN<"apple">,
|
|
884
|
+
"token" | "card"
|
|
885
|
+
> & {
|
|
864
886
|
networkToken: PaymentToken<"apple"> & { rawExpiry: string };
|
|
887
|
+
card: EncryptedDPAN<"apple">["card"] & ApplePayCardEnrichment;
|
|
865
888
|
billingContact?: {
|
|
866
889
|
givenName?: string;
|
|
867
890
|
familyName?: string;
|
|
891
|
+
phoneticGivenName?: string;
|
|
892
|
+
phoneticFamilyName?: string;
|
|
868
893
|
emailAddress?: string;
|
|
869
894
|
phoneNumber?: string;
|
|
870
895
|
address?: unknown;
|
|
871
896
|
};
|
|
872
897
|
paymentDataType: string;
|
|
898
|
+
transactionType: ApplePayTransactionType;
|
|
873
899
|
deviceManufacturerIdentifier: string;
|
|
874
900
|
shippingContact?: {
|
|
875
901
|
givenName?: string;
|
|
876
902
|
familyName?: string;
|
|
903
|
+
phoneticGivenName?: string;
|
|
904
|
+
phoneticFamilyName?: string;
|
|
877
905
|
emailAddress?: string;
|
|
878
906
|
phoneNumber?: string;
|
|
879
907
|
};
|
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.16.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
|
-
"
|
|
26
|
-
"
|
|
23
|
+
"types": "0.23.1",
|
|
24
|
+
"themes": "0.1.24",
|
|
25
|
+
"@evervault/browser": "2.59.0",
|
|
26
|
+
"tsconfig": "0.1.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build",
|