@tonder.io/ionic-lite-sdk 0.0.35-beta.19 → 0.0.35-beta.20

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.
@@ -20,6 +20,7 @@
20
20
  <change beforePath="$PROJECT_DIR$/src/helpers/utils.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/helpers/utils.ts" afterDir="false" />
21
21
  <change beforePath="$PROJECT_DIR$/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.ts" afterDir="false" />
22
22
  <change beforePath="$PROJECT_DIR$/src/types/card.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/card.ts" afterDir="false" />
23
+ <change beforePath="$PROJECT_DIR$/src/types/checkout.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/checkout.ts" afterDir="false" />
23
24
  <change beforePath="$PROJECT_DIR$/src/types/commons.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/commons.ts" afterDir="false" />
24
25
  <change beforePath="$PROJECT_DIR$/src/types/index.d.ts" beforeDir="false" />
25
26
  </list>
@@ -84,7 +85,7 @@
84
85
  <workItem from="1725305433705" duration="21026000" />
85
86
  <workItem from="1725333899382" duration="2939000" />
86
87
  <workItem from="1725337022494" duration="3671000" />
87
- <workItem from="1725378545854" duration="13450000" />
88
+ <workItem from="1725378545854" duration="13659000" />
88
89
  </task>
89
90
  <servers />
90
91
  </component>
@@ -112,7 +113,7 @@
112
113
  </line-breakpoint>
113
114
  <line-breakpoint enabled="true" type="javascript">
114
115
  <url>file://$PROJECT_DIR$/src/types/commons.ts</url>
115
- <line>106</line>
116
+ <line>107</line>
116
117
  <option name="timeStamp" value="17" />
117
118
  </line-breakpoint>
118
119
  <line-breakpoint enabled="true" type="javascript">
@@ -57,7 +57,7 @@ export interface IStartCheckoutResponse {
57
57
  payment_id: number;
58
58
  provider: string;
59
59
  next_action: {
60
- redirect_to_url: {
60
+ redirect_to_url?: {
61
61
  url: string;
62
62
  return_url: string;
63
63
  verify_transaction_status_url: string;
@@ -1,4 +1,5 @@
1
1
  import { ICustomer } from "./customer";
2
+ import { IStartCheckoutResponse } from "./checkout";
2
3
  export type Business = {
3
4
  business: {
4
5
  pk: number;
@@ -101,7 +102,7 @@ export interface IInlineCheckoutBaseOptions {
101
102
  signal?: AbortSignal;
102
103
  apiKey: string;
103
104
  returnUrl?: string;
104
- callBack?: (response: Record<string, any> | Object | {} | void) => void;
105
+ callBack?: (response: IStartCheckoutResponse | Record<string, any> | Object | {} | void) => void;
105
106
  }
106
107
  export interface IApiError {
107
108
  code: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonder.io/ionic-lite-sdk",
3
- "version": "0.0.35-beta.19",
3
+ "version": "0.0.35-beta.20",
4
4
  "description": "Tonder ionic lite SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -67,7 +67,7 @@ export interface IStartCheckoutResponse {
67
67
  payment_id: number;
68
68
  provider: string;
69
69
  next_action: {
70
- redirect_to_url: {
70
+ redirect_to_url?: {
71
71
  url: string;
72
72
  return_url: string;
73
73
  verify_transaction_status_url: string;
@@ -1,4 +1,5 @@
1
1
  import { ICustomer } from "./customer";
2
+ import {IStartCheckoutResponse} from "./checkout";
2
3
 
3
4
  export type Business = {
4
5
  business: {
@@ -107,7 +108,7 @@ export interface IInlineCheckoutBaseOptions {
107
108
  signal?: AbortSignal;
108
109
  apiKey: string;
109
110
  returnUrl?: string;
110
- callBack?: (response: Record<string, any> | Object | {} | void) => void;
111
+ callBack?: (response: IStartCheckoutResponse | Record<string, any> | Object | {} | void) => void;
111
112
  }
112
113
 
113
114