@tonder.io/ionic-lite-sdk 0.0.35-beta.6 → 0.0.35-beta.8

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.
@@ -24,6 +24,7 @@
24
24
  <change afterPath="$PROJECT_DIR$/src/shared/constants/messages.ts" afterDir="false" />
25
25
  <change afterPath="$PROJECT_DIR$/src/shared/constants/paymentMethodAPM.ts" afterDir="false" />
26
26
  <change afterPath="$PROJECT_DIR$/src/shared/constants/tonderUrl.ts" afterDir="false" />
27
+ <change afterPath="$PROJECT_DIR$/src/types/transaction.ts" afterDir="false" />
27
28
  <change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
28
29
  <change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
29
30
  <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
@@ -77,7 +78,7 @@
77
78
  "node.js.selected.package.eslint": "(autodetect)",
78
79
  "node.js.selected.package.tslint": "(autodetect)",
79
80
  "nodejs_package_manager_path": "npm",
80
- "prettierjs.PrettierConfiguration.Package": "/Users/davidhernandezalmagro/Desktop/Tonder/ionic-lite/node_modules/prettier",
81
+ "prettierjs.PrettierConfiguration.Package": "/Users/davidhernandezalmagro/.nvm/versions/node/v21.2.0/lib/node_modules/prettier",
81
82
  "settings.editor.selected.configurable": "settings.javascript.prettier",
82
83
  "ts.external.directory.path": "/Users/davidhernandezalmagro/Desktop/Tonder/ionic-lite/node_modules/typescript/lib",
83
84
  "vue.rearranger.settings.migration": "true"
@@ -99,7 +100,7 @@
99
100
  <updated>1724776429568</updated>
100
101
  <workItem from="1724776430626" duration="1847000" />
101
102
  <workItem from="1724790840744" duration="239000" />
102
- <workItem from="1725305433705" duration="19376000" />
103
+ <workItem from="1725305433705" duration="19644000" />
103
104
  </task>
104
105
  <servers />
105
106
  </component>
@@ -0,0 +1,101 @@
1
+ export interface ITransaction {
2
+ id: number;
3
+ provider: string;
4
+ country: string;
5
+ currency_code: string;
6
+ transaction_status: string;
7
+ created: string;
8
+ modified: string;
9
+ operation_date: string;
10
+ transaction_reference: string;
11
+ transaction_type: string;
12
+ status: string;
13
+ amount: string;
14
+ related_transaction_reference?: null | string;
15
+ reason?: null | string;
16
+ is_refunded?: null | boolean;
17
+ is_disputed?: null | boolean;
18
+ number_of_payment_attempts: number;
19
+ card_brand?: null | string;
20
+ number_of_installments: number;
21
+ payment?: {
22
+ id: number;
23
+ created: string;
24
+ modified: string;
25
+ amount: string;
26
+ status: string;
27
+ date: string;
28
+ paid_date: null | string;
29
+ source: null | string;
30
+ customer_order_reference: null | string;
31
+ client: number;
32
+ business: number;
33
+ shipping_address?: null | string;
34
+ billing_address?: null | string;
35
+ order: number;
36
+ };
37
+ checkout: {
38
+ id: string;
39
+ created: string;
40
+ modified: string;
41
+ checkout_data: {
42
+ name: string;
43
+ amount: number;
44
+ source: string;
45
+ id_ship: string;
46
+ currency: string;
47
+ order_id: number;
48
+ token_id: string;
49
+ last_name: string;
50
+ id_product: string;
51
+ ip_address: string;
52
+ payment_id: number;
53
+ return_url: string;
54
+ title_ship: string;
55
+ business_id: number;
56
+ checkout_id: string;
57
+ description: string;
58
+ browser_info: {
59
+ language: string;
60
+ time_zone: number;
61
+ user_agent: string;
62
+ color_depth: number;
63
+ screen_width: number;
64
+ screen_height: number;
65
+ javascript_enabled: boolean;
66
+ };
67
+ email_client: string;
68
+ phone_number: string;
69
+ instance_id_ship: string;
70
+ quantity_product: number;
71
+ device_session_id: null | string;
72
+ number_of_payment_attempts: number;
73
+ };
74
+ number_of_payment_attempts: number;
75
+ tried_psps: string[];
76
+ rejected_transactions: string[];
77
+ routing_step: number;
78
+ route_length: number;
79
+ last_status: string;
80
+ ip_address: string;
81
+ is_dynamic_routing: boolean;
82
+ is_route_finished: boolean;
83
+ business: number;
84
+ payment: number;
85
+ };
86
+ currency: {
87
+ id: number;
88
+ name: string;
89
+ code: string;
90
+ symbol: string;
91
+ country: null | string;
92
+ };
93
+ payment_method?: null | {
94
+ id: number;
95
+ name: string;
96
+ display_name: string;
97
+ category: string;
98
+ is_apm: boolean;
99
+ };
100
+ issuing_country?: null | string;
101
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonder.io/ionic-lite-sdk",
3
- "version": "0.0.35-beta.6",
3
+ "version": "0.0.35-beta.8",
4
4
  "description": "Tonder ionic lite SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "src/types/index.d.ts",
@@ -1,4 +1,4 @@
1
- import {IConfigureCheckout, IInlineCheckoutBaseOptions} from "./common";
1
+ import {IConfigureCheckout, IInlineCheckoutBaseOptions} from "./commons";
2
2
  import {ICustomerCardsResponse, ISaveCardRequest, ISaveCardResponse} from "./card";
3
3
  import {IPaymentMethod} from "./paymentMethod";
4
4
  import {IProcessPaymentRequest, IStartCheckoutResponse} from "./checkout";
@@ -124,7 +124,7 @@ export class LiteCheckout {
124
124
  * It is no longer necessary to use this method as customer registration is now automatically handled
125
125
  * during the payment process or when using card management methods.
126
126
  */
127
- async customerRegister(email: string): Promise<CustomerRegisterResponse | ErrorResponse>
127
+ customerRegister(email: string): Promise<CustomerRegisterResponse | ErrorResponse>
128
128
 
129
129
  // TODO: DEPRECATED
130
130
  /**
@@ -132,7 +132,7 @@ export class LiteCheckout {
132
132
  * It is no longer necessary to use this method as order creation is now automatically
133
133
  * handled when making a payment through the `payment` function.
134
134
  */
135
- async createOrder(orderItems: CreateOrderRequest): Promise<CreateOrderResponse | ErrorResponse>
135
+ createOrder(orderItems: CreateOrderRequest): Promise<CreateOrderResponse | ErrorResponse>
136
136
 
137
137
  // TODO: DEPRECATED
138
138
  /**
@@ -140,28 +140,28 @@ export class LiteCheckout {
140
140
  * It is no longer necessary to use this method as payment creation is now automatically
141
141
  * handled when making a payment through the `payment` function.
142
142
  */
143
- async createPayment(paymentItems: CreatePaymentRequest): Promise<CreatePaymentResponse | ErrorResponse>
143
+ createPayment(paymentItems: CreatePaymentRequest): Promise<CreatePaymentResponse | ErrorResponse>
144
144
 
145
145
  // TODO: DEPRECATED
146
146
  /**
147
147
  * @deprecated This method is deprecated and will be removed in a future release.
148
148
  * Use the {@link payment} method
149
149
  */
150
- async startCheckoutRouter(routerData: StartCheckoutRequest | StartCheckoutIdRequest): Promise<StartCheckoutResponse | ErrorResponse | undefined>
150
+ startCheckoutRouter(routerData: StartCheckoutRequest | StartCheckoutIdRequest): Promise<StartCheckoutResponse | ErrorResponse | undefined>
151
151
 
152
152
  // TODO: DEPRECATED
153
153
  /**
154
154
  * @deprecated This method is deprecated and will be removed in a future release.
155
155
  * Use the {@link payment} method
156
156
  */
157
- async startCheckoutRouterFull(routerFullData: StartCheckoutFullRequest): Promise<StartCheckoutResponse | ErrorResponse | undefined>
157
+ startCheckoutRouterFull(routerFullData: StartCheckoutFullRequest): Promise<StartCheckoutResponse | ErrorResponse | undefined>
158
158
 
159
159
  // TODO: DEPRECATED
160
160
  /**
161
161
  * @deprecated This method is deprecated and will be removed in a future release.
162
162
  * Use the {@link saveCustomerCard} method
163
163
  */
164
- async registerCustomerCard(customerToken: string, data: RegisterCustomerCardRequest): Promise<RegisterCustomerCardResponse | ErrorResponse>
164
+ registerCustomerCard(customerToken: string, data: RegisterCustomerCardRequest): Promise<RegisterCustomerCardResponse | ErrorResponse>
165
165
 
166
166
 
167
167
  // TODO: DEPRECATED
@@ -169,14 +169,14 @@ export class LiteCheckout {
169
169
  * @deprecated This method is deprecated and will be removed in a future release.
170
170
  * Use the {@link removeCustomerCard} method
171
171
  */
172
- async deleteCustomerCard(customerToken: string, skyflowId: string = ""): Promise<Boolean | ErrorResponse>
172
+ deleteCustomerCard(customerToken: string, skyflowId: string): Promise<Boolean | ErrorResponse>
173
173
 
174
174
  // TODO: DEPRECATED
175
175
  /**
176
176
  * @deprecated This method is deprecated and will be removed in a future release.
177
177
  * Use the {@link getCustomerPaymentMethods} method
178
178
  */
179
- async getActiveAPMs(): Promise<APM[]>;
179
+ getActiveAPMs(): Promise<APM[]>;
180
180
 
181
181
  // TODO: DEPRECATED
182
182
  /**
@@ -184,7 +184,7 @@ export class LiteCheckout {
184
184
  * It is no longer necessary to use this method as customer registration is now automatically handled
185
185
  * during the payment process or when using card management methods.
186
186
  */
187
- async getSkyflowTokens({vault_id, vault_url, data}: TokensRequest): Promise<any | ErrorResponse>
187
+ getSkyflowTokens({vault_id, vault_url, data}: TokensRequest): Promise<any | ErrorResponse>
188
188
  }
189
189
 
190
190
 
@@ -0,0 +1,101 @@
1
+ export interface ITransaction {
2
+ id: number;
3
+ provider: string;
4
+ country: string;
5
+ currency_code: string;
6
+ transaction_status: string;
7
+ created: string;
8
+ modified: string;
9
+ operation_date: string;
10
+ transaction_reference: string;
11
+ transaction_type: string;
12
+ status: string;
13
+ amount: string;
14
+ related_transaction_reference?: null | string;
15
+ reason?: null | string;
16
+ is_refunded?: null | boolean;
17
+ is_disputed?: null | boolean;
18
+ number_of_payment_attempts: number;
19
+ card_brand?: null | string;
20
+ number_of_installments: number;
21
+ payment?: {
22
+ id: number;
23
+ created: string;
24
+ modified: string;
25
+ amount: string;
26
+ status: string;
27
+ date: string;
28
+ paid_date: null | string;
29
+ source: null | string;
30
+ customer_order_reference: null | string;
31
+ client: number;
32
+ business: number;
33
+ shipping_address?: null | string;
34
+ billing_address?: null | string;
35
+ order: number;
36
+ };
37
+ checkout: {
38
+ id: string;
39
+ created: string;
40
+ modified: string;
41
+ checkout_data: {
42
+ name: string;
43
+ amount: number;
44
+ source: string;
45
+ id_ship: string;
46
+ currency: string;
47
+ order_id: number;
48
+ token_id: string;
49
+ last_name: string;
50
+ id_product: string;
51
+ ip_address: string;
52
+ payment_id: number;
53
+ return_url: string;
54
+ title_ship: string;
55
+ business_id: number;
56
+ checkout_id: string;
57
+ description: string;
58
+ browser_info: {
59
+ language: string;
60
+ time_zone: number;
61
+ user_agent: string;
62
+ color_depth: number;
63
+ screen_width: number;
64
+ screen_height: number;
65
+ javascript_enabled: boolean;
66
+ };
67
+ email_client: string;
68
+ phone_number: string;
69
+ instance_id_ship: string;
70
+ quantity_product: number;
71
+ device_session_id: null | string;
72
+ number_of_payment_attempts: number;
73
+ };
74
+ number_of_payment_attempts: number;
75
+ tried_psps: string[];
76
+ rejected_transactions: string[];
77
+ routing_step: number;
78
+ route_length: number;
79
+ last_status: string;
80
+ ip_address: string;
81
+ is_dynamic_routing: boolean;
82
+ is_route_finished: boolean;
83
+ business: number;
84
+ payment: number;
85
+ };
86
+ currency: {
87
+ id: number;
88
+ name: string;
89
+ code: string;
90
+ symbol: string;
91
+ country: null | string;
92
+ };
93
+ payment_method?: null | {
94
+ id: number;
95
+ name: string;
96
+ display_name: string;
97
+ category: string;
98
+ is_apm: boolean;
99
+ };
100
+ issuing_country?: null | string;
101
+ }