tonder-web-sdk 1.12.0-beta.16 → 1.12.0-beta.18

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.
@@ -5,6 +5,7 @@
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
7
  <list default="true" id="37fc62e5-7dd0-4a2e-b68c-304069cdf5bd" name="Changes" comment="">
8
+ <change afterPath="$PROJECT_DIR$/src/helpers/validations.js" afterDir="false" />
8
9
  <change afterPath="$PROJECT_DIR$/types/validations.d.ts" afterDir="false" />
9
10
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
10
11
  <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
@@ -17,6 +18,8 @@
17
18
  <change beforePath="$PROJECT_DIR$/src/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.html" afterDir="false" />
18
19
  <change beforePath="$PROJECT_DIR$/src/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.js" afterDir="false" />
19
20
  <change beforePath="$PROJECT_DIR$/types/card.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/card.d.ts" afterDir="false" />
21
+ <change beforePath="$PROJECT_DIR$/types/checkout.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/checkout.d.ts" afterDir="false" />
22
+ <change beforePath="$PROJECT_DIR$/types/customer.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/customer.d.ts" afterDir="false" />
20
23
  <change beforePath="$PROJECT_DIR$/types/index.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/types/index.d.ts" afterDir="false" />
21
24
  <change beforePath="$PROJECT_DIR$/v1/bundle.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/v1/bundle.min.js" afterDir="false" />
22
25
  <change beforePath="$PROJECT_DIR$/webpack.config.js" beforeDir="false" afterPath="$PROJECT_DIR$/webpack.config.js" afterDir="false" />
@@ -105,7 +108,8 @@
105
108
  <workItem from="1723855727317" duration="20341000" />
106
109
  <workItem from="1723952592527" duration="17418000" />
107
110
  <workItem from="1724247675743" duration="41003000" />
108
- <workItem from="1724435697518" duration="6417000" />
111
+ <workItem from="1724435697518" duration="6451000" />
112
+ <workItem from="1724444182006" duration="2750000" />
109
113
  </task>
110
114
  <servers />
111
115
  </component>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tonder-web-sdk",
3
- "version": "1.12.0-beta.16",
3
+ "version": "1.12.0-beta.18",
4
4
  "description": "tonder sdk for integrations",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -181,7 +181,6 @@ export class LiteInlineCheckout extends BaseInlineCheckout {
181
181
  );
182
182
  const { vault_id, vault_url } = this.merchantData;
183
183
  let skyflowTokens;
184
- console.log("_checkout", card, payment_method);
185
184
  if (!payment_method || payment_method !== "" || payment_method === null) {
186
185
  if (typeof card === "string") {
187
186
  skyflowTokens = {
@@ -92,7 +92,7 @@ export interface IItem {
92
92
  price_unit: number;
93
93
  discount: number;
94
94
  taxes: number;
95
- product_reference: number;
95
+ product_reference: string | number;
96
96
  name: string;
97
97
  amount_total: number;
98
98
  }
@@ -8,4 +8,5 @@ export type ICustomer = {
8
8
  postCode?: string;
9
9
  email: string;
10
10
  phone?: string;
11
+ address?: string;
11
12
  };