@tonder.io/ionic-lite-sdk 0.0.22-beta → 0.0.24-beta

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/README.md CHANGED
@@ -6,7 +6,7 @@ Tonder SDK Lite to integrate REST service
6
6
 
7
7
  You can install using NPM
8
8
  ```bash
9
- npm i @tonder/ionic-lite-sdk
9
+ npm i @tonder.io/ionic-lite-sdk
10
10
  ```
11
11
 
12
12
  or using an script tag
@@ -23,7 +23,7 @@ Add dependencies to the root of the app (index.html)
23
23
  ## Usage
24
24
  ## Import LiteCheckout class
25
25
  ```javascript
26
- import { LiteCheckout } from "@tonder/ionic-lite-sdk"
26
+ import { LiteCheckout } from "@tonder.io/ionic-lite-sdk"
27
27
  ```
28
28
  ## Create instance
29
29
 
@@ -353,6 +353,10 @@ const routerData = {
353
353
  business_id: business.pk,
354
354
  payment_id: jsonResponsePayment.pk,
355
355
  source: 'ionic-lite-sdk',
356
+ metadata: {
357
+ name: "xxxxx"
358
+ },
359
+ currency: "MXN"
356
360
  };
357
361
 
358
362
  const jsonResponseRouter = await liteCheckout.startCheckoutRouter(
@@ -38,6 +38,9 @@ export type StartCheckoutRequest = {
38
38
  business_id: any;
39
39
  payment_id: any;
40
40
  source: string;
41
+ browser_info?: any;
42
+ metadata: any;
43
+ currency: string;
41
44
  };
42
45
  export interface VaultRequest extends SkyflowRecord {
43
46
  records: SkyflowRecord[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonder.io/ionic-lite-sdk",
3
- "version": "0.0.22-beta",
3
+ "version": "0.0.24-beta",
4
4
  "description": "Tonder ionic lite SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,6 +41,9 @@ export type StartCheckoutRequest = {
41
41
  business_id: any,
42
42
  payment_id: any,
43
43
  source: string,
44
+ browser_info?: any,
45
+ metadata: any,
46
+ currency: string
44
47
  }
45
48
 
46
49
  export interface VaultRequest extends SkyflowRecord {
@@ -331,6 +331,8 @@ export class StartCheckoutRequestClass implements StartCheckoutRequest {
331
331
  business_id: any;
332
332
  payment_id: any;
333
333
  source!: string;
334
+ currency!: string;
335
+ metadata!: string;
334
336
 
335
337
  get mockObject(): StartCheckoutRequest {
336
338
  return {
@@ -353,6 +355,8 @@ export class StartCheckoutRequestClass implements StartCheckoutRequest {
353
355
  business_id: " any",
354
356
  payment_id: " any",
355
357
  source: " string",
358
+ currency: "string",
359
+ metadata: "string"
356
360
  };
357
361
  }
358
362
  }