@evervault/js 2.1.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 +67 -4
- 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,18 @@ declare type ApplePayButtonOptions = {
|
|
|
42
42
|
disbursementOverrides?: {
|
|
43
43
|
disbursementDetails?: PaymentDetailsInit;
|
|
44
44
|
};
|
|
45
|
+
onPaymentMethodChange?: (newPaymentMethod: PaymentMethodUpdate) => Promise<{
|
|
46
|
+
amount: number;
|
|
47
|
+
lineItems?: TransactionLineItem[];
|
|
48
|
+
}>;
|
|
49
|
+
onShippingAddressChange?: (newAddress: ShippingAddress) => Promise<{
|
|
50
|
+
amount: number;
|
|
51
|
+
lineItems?: TransactionLineItem[];
|
|
52
|
+
}>;
|
|
53
|
+
prepareTransaction?: () => Promise<{
|
|
54
|
+
amount?: number;
|
|
55
|
+
lineItems?: TransactionLineItem[];
|
|
56
|
+
}>;
|
|
45
57
|
process: (data: EncryptedApplePayData, helpers: {
|
|
46
58
|
fail: (error?: ApplePayErrorMessage) => void;
|
|
47
59
|
}) => Promise<void>;
|
|
@@ -71,6 +83,21 @@ declare interface BaseTransactionDetails {
|
|
|
71
83
|
lineItems?: TransactionLineItem[];
|
|
72
84
|
}
|
|
73
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
|
+
|
|
74
101
|
declare interface CageKey {
|
|
75
102
|
teamUuid: string;
|
|
76
103
|
appUuid: string;
|
|
@@ -795,6 +822,8 @@ declare interface EncryptedDPAN<P> {
|
|
|
795
822
|
token: PaymentToken<P>;
|
|
796
823
|
card: {
|
|
797
824
|
brand: string;
|
|
825
|
+
lastFour?: string;
|
|
826
|
+
displayName?: string;
|
|
798
827
|
};
|
|
799
828
|
cryptogram: string;
|
|
800
829
|
eci: string;
|
|
@@ -804,6 +833,8 @@ declare interface EncryptedFPAN {
|
|
|
804
833
|
card: {
|
|
805
834
|
brand: string;
|
|
806
835
|
number: string;
|
|
836
|
+
lastFour?: string;
|
|
837
|
+
displayName?: string;
|
|
807
838
|
expiry: {
|
|
808
839
|
month: string;
|
|
809
840
|
year: string;
|
|
@@ -815,7 +846,7 @@ declare type EncryptedGooglePayData = (
|
|
|
815
846
|
| EncryptedDPAN<"google">
|
|
816
847
|
| EncryptedFPAN
|
|
817
848
|
) & {
|
|
818
|
-
billingAddress
|
|
849
|
+
billingAddress?: google.payments.api.Address | null;
|
|
819
850
|
};
|
|
820
851
|
|
|
821
852
|
declare const encryptionConstants: {
|
|
@@ -918,7 +949,7 @@ declare class EvervaultClient {
|
|
|
918
949
|
}>;
|
|
919
950
|
isInDebugMode(): boolean;
|
|
920
951
|
get transactions(): {
|
|
921
|
-
create: (details: CreateTransactionDetails | DisbursementTransactionDetails) => Transaction;
|
|
952
|
+
create: (details: CreateTransactionDetails | RecurringTransactionDetails | DisbursementTransactionDetails) => Transaction;
|
|
922
953
|
};
|
|
923
954
|
}
|
|
924
955
|
|
|
@@ -2478,6 +2509,11 @@ declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string
|
|
|
2478
2509
|
WebkitScrollSnapPointsY?: Property.ScrollSnapPointsY | undefined;
|
|
2479
2510
|
}
|
|
2480
2511
|
|
|
2512
|
+
declare interface PaymentMethodUpdate {
|
|
2513
|
+
type?: string;
|
|
2514
|
+
billingContact?: BillingContact;
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2481
2517
|
declare interface PaymentToken<P> {
|
|
2482
2518
|
tokenServiceProvider: P;
|
|
2483
2519
|
number: string;
|
|
@@ -4223,6 +4259,19 @@ declare namespace Property {
|
|
|
4223
4259
|
type VectorEffect = Globals | "non-scaling-stroke" | "none";
|
|
4224
4260
|
}
|
|
4225
4261
|
|
|
4262
|
+
declare interface RecurringTransactionDetails extends BaseTransactionDetails {
|
|
4263
|
+
type: "recurring";
|
|
4264
|
+
managementURL: string;
|
|
4265
|
+
billingAgreement: string;
|
|
4266
|
+
description: string;
|
|
4267
|
+
regularBilling: TransactionLineItem & {
|
|
4268
|
+
recurringPaymentStartDate: Date;
|
|
4269
|
+
};
|
|
4270
|
+
trialBilling?: TransactionLineItem & {
|
|
4271
|
+
trialPaymentStartDate: Date;
|
|
4272
|
+
};
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4226
4275
|
declare type RequiredRecipientDetail = "email" | "phone" | "name" | "address";
|
|
4227
4276
|
|
|
4228
4277
|
declare class Reveal {
|
|
@@ -4305,6 +4354,19 @@ declare type SdkContext = "inputs" | "default";
|
|
|
4305
4354
|
|
|
4306
4355
|
declare type SelectorType = string | HTMLElement;
|
|
4307
4356
|
|
|
4357
|
+
declare interface ShippingAddress {
|
|
4358
|
+
addressLine: string[];
|
|
4359
|
+
city: string;
|
|
4360
|
+
country: string;
|
|
4361
|
+
dependentLocality: string;
|
|
4362
|
+
organization: string;
|
|
4363
|
+
phone: string;
|
|
4364
|
+
postalCode: string;
|
|
4365
|
+
recipient: string;
|
|
4366
|
+
region: string;
|
|
4367
|
+
sortingCode: string;
|
|
4368
|
+
}
|
|
4369
|
+
|
|
4308
4370
|
declare interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
4309
4371
|
/**
|
|
4310
4372
|
* The **`accent-color`** CSS property sets the accent color for user-interface controls generated by some elements.
|
|
@@ -10311,11 +10373,12 @@ declare interface ThreeDSecureOptions {
|
|
|
10311
10373
|
|
|
10312
10374
|
declare class Transaction {
|
|
10313
10375
|
details: TransactionDetailsWithDomain;
|
|
10314
|
-
constructor(details: CreateTransactionDetails | DisbursementTransactionDetails);
|
|
10376
|
+
constructor(details: CreateTransactionDetails | RecurringTransactionDetails | DisbursementTransactionDetails);
|
|
10315
10377
|
}
|
|
10316
10378
|
|
|
10317
10379
|
declare type TransactionDetails =
|
|
10318
10380
|
| PaymentTransactionDetails
|
|
10381
|
+
| RecurringTransactionDetails
|
|
10319
10382
|
| DisbursementTransactionDetails;
|
|
10320
10383
|
|
|
10321
10384
|
declare type TransactionDetailsWithDomain = TransactionDetails & {
|
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
|
-
"@evervault/browser": "2.
|
|
24
|
-
"themes": "0.1.15",
|
|
23
|
+
"@evervault/browser": "2.47.0",
|
|
25
24
|
"tsconfig": "0.1.0",
|
|
26
|
-
"
|
|
25
|
+
"themes": "0.1.16",
|
|
26
|
+
"types": "0.16.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build",
|