@evervault/js 2.12.0 → 2.13.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.
@@ -100,6 +100,18 @@ declare interface BillingContact {
100
100
  subLocality?: string;
101
101
  }
102
102
 
103
+ declare interface BrandOptions {
104
+ numberValidationRules: {
105
+ luhnCheck?: boolean;
106
+ ranges: Array<number | [number, number]>;
107
+ lengths: number[];
108
+ };
109
+ securityCodeValidationRules: {
110
+ lengths: (3 | 4)[];
111
+ };
112
+ iconSrc?: string;
113
+ }
114
+
103
115
  declare interface CageKey {
104
116
  teamUuid: string;
105
117
  appUuid: string;
@@ -123,6 +135,7 @@ declare class Card {
123
135
  hiddenFields: string;
124
136
  fields: CardField[] | undefined;
125
137
  acceptedBrands: CardBrandName[] | undefined;
138
+ customBrands: CustomBrand[] | undefined;
126
139
  defaultValues: {
127
140
  name?: string;
128
141
  } | undefined;
@@ -206,6 +219,7 @@ declare interface CardOptions {
206
219
  hiddenFields?: ("number" | "expiry" | "cvc")[]; // deprecated
207
220
  fields?: CardField[];
208
221
  acceptedBrands?: CardBrandName[];
222
+ customBrands?: CustomBrand[];
209
223
  translations?: Partial<CardTranslations>;
210
224
  autoProgress?: boolean;
211
225
  redactCVC?: boolean;
@@ -411,6 +425,20 @@ PaymentTransactionDetails,
411
425
  "type"
412
426
  > & { type?: "payment" };
413
427
 
428
+ declare interface CustomBrand {
429
+ name: string;
430
+ isLocal: true;
431
+ numberValidationRules: {
432
+ luhnCheck: boolean;
433
+ ranges: Array<number | [number, number]>;
434
+ lengths: number[];
435
+ };
436
+ securityCodeValidationRules: {
437
+ lengths: (3 | 4)[];
438
+ };
439
+ iconSrc?: string;
440
+ }
441
+
414
442
  declare interface CustomConfig {
415
443
  isDebugMode?: boolean;
416
444
  urls?: ConfigUrls;
@@ -985,6 +1013,9 @@ declare class EvervaultClient {
985
1013
  get transactions(): {
986
1014
  create: (details: CreateTransactionDetails | RecurringTransactionDetails | DisbursementTransactionDetails) => Transaction;
987
1015
  };
1016
+ get brands(): {
1017
+ create: (name: string, options: BrandOptions) => CustomBrand;
1018
+ };
988
1019
  }
989
1020
 
990
1021
  export declare type EvervaultConstructor = typeof EvervaultClient;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@evervault/js",
4
- "version": "2.12.0",
4
+ "version": "2.13.0",
5
5
  "description": "Evervault.js loader for client-side browser applications",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -20,9 +20,9 @@
20
20
  "typescript": "5.5.4",
21
21
  "vite": "^7.3.2",
22
22
  "vite-plugin-dts": "^4.5.4",
23
+ "@evervault/browser": "2.56.0",
23
24
  "themes": "0.1.23",
24
25
  "tsconfig": "0.1.0",
25
- "@evervault/browser": "2.55.1",
26
26
  "types": "0.23.0"
27
27
  },
28
28
  "scripts": {