skyflow-js 1.13.0 → 1.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/CHANGELOG.md CHANGED
@@ -2,10 +2,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.15.0] - 2022-05-24
6
+
7
+
8
+ ### Added
9
+ - Support for generic card types
10
+
11
+ ### Changed
12
+ - Deprecated `invokeConnection()`
13
+ - Deprecated `invokeSoapConnection()`
14
+
15
+
16
+ ## [1.14.0] - 2022-04-19
17
+
18
+ ### Added
19
+ - `EXPIRATION_YEAR` element type
20
+ - `EXPIRATION_MONTH` element type
21
+
5
22
  ## [1.13.0] - 2022-04-05
6
23
 
7
24
  ### Added
8
- - - support for application/x-www-form-urlencoded and multipart/form-data content-type's in connections
25
+ - support for application/x-www-form-urlencoded and multipart/form-data content-type's in connections
9
26
 
10
27
  ## [1.12.2] - 2022-03-29
11
28
 
package/README.md CHANGED
@@ -285,6 +285,8 @@ Finally, the `type` field takes a Skyflow ElementType. Each type applies the app
285
285
  - `CARDHOLDER_NAME`
286
286
  - `CARD_NUMBER`
287
287
  - `EXPIRATION_DATE`
288
+ - `EXPIRATION_MONTH`
289
+ - `EXPIRATION_YEAR`
288
290
  - `CVV`
289
291
  - `INPUT_FIELD`
290
292
  - `PIN`
@@ -305,15 +307,19 @@ const options = {
305
307
 
306
308
  `enableCardIcon` paramenter indicates whether the icon is visible for the CARD_NUMBER element, defaults to true
307
309
 
308
- `format` parameter takes string value and indicates the format pattern applicable to the element type. It is currently applicable to EXPIRATION_DATE element type only, the values that are accepted are
310
+ `format` parameter takes string value and indicates the format pattern applicable to the element type, It's currently only applicable to `EXPIRATION_DATE` and `EXPIRATION_YEAR` element types.
309
311
 
310
- - `MM/YY`
311
- - `MM/YYYY`
312
- - `YY/MM`
313
- - `YYYY/MM`
312
+ The values that are accepted for `EXPIRATION_DATE` are
313
+ - `MM/YY` (default)
314
+ - `MM/YYYY`
315
+ - `YY/MM`
316
+ - `YYYY/MM`
314
317
 
315
- `NOTE` : If not specified or invalid value is passed to the format for EXPIRATION_DATE element, then it defaults to MM/YY format.
318
+ The values that are accepted for `EXPIRATION_YEAR` are
319
+ - `YY` (default)
320
+ - `YYYY`
316
321
 
322
+ `NOTE`: If not specified or invalid value is passed to the `format` then it takes default value.
317
323
 
318
324
  Once the Element object and options has been defined, add it to the container using the `create(element, options)` method as shown below. The `element` param takes a Skyflow Element object and options as defined above:
319
325