@tonder.io/ionic-lite-sdk 0.0.35-beta.2 → 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.
Files changed (40) hide show
  1. package/.idea/prettier.xml +6 -0
  2. package/.idea/workspace.xml +37 -47
  3. package/dist/classes/BaseInlineCheckout.d.ts +14 -15
  4. package/dist/classes/liteCheckout.d.ts +8 -9
  5. package/dist/data/paymentMethodApi.d.ts +1 -1
  6. package/dist/helpers/skyflow.d.ts +1 -1
  7. package/dist/helpers/utils.d.ts +1 -1
  8. package/dist/index.d.ts +3 -1
  9. package/dist/index.js +1 -1
  10. package/dist/types/card.d.ts +1 -0
  11. package/dist/types/checkout.d.ts +2 -1
  12. package/dist/types/commons.d.ts +6 -3
  13. package/dist/types/customer.d.ts +10 -0
  14. package/dist/types/transaction.d.ts +101 -0
  15. package/package.json +3 -1
  16. package/src/classes/BaseInlineCheckout.ts +363 -300
  17. package/src/classes/errorResponse.ts +1 -1
  18. package/src/classes/liteCheckout.ts +267 -213
  19. package/src/data/businessApi.ts +16 -12
  20. package/src/data/cardApi.ts +65 -62
  21. package/src/data/checkoutApi.ts +73 -60
  22. package/src/data/customerApi.ts +26 -26
  23. package/src/data/openPayApi.ts +12 -7
  24. package/src/data/paymentMethodApi.ts +32 -29
  25. package/src/data/skyflowApi.ts +18 -14
  26. package/src/helpers/mercadopago.ts +14 -14
  27. package/src/helpers/skyflow.ts +35 -29
  28. package/src/helpers/utils.ts +51 -39
  29. package/src/helpers/validations.ts +35 -35
  30. package/src/index.ts +9 -1
  31. package/src/shared/catalog/paymentMethodsCatalog.ts +8 -8
  32. package/src/shared/constants/paymentMethodAPM.ts +59 -59
  33. package/src/shared/constants/tonderUrl.ts +4 -4
  34. package/src/types/card.ts +1 -0
  35. package/src/types/checkout.ts +2 -1
  36. package/src/types/commons.ts +101 -99
  37. package/src/types/customer.ts +10 -0
  38. package/src/types/liteInlineCheckout.d.ts +207 -184
  39. package/src/types/transaction.ts +101 -0
  40. package/src/types/index.d.ts +0 -10
@@ -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
+ }
@@ -1,10 +0,0 @@
1
- export * from './card';
2
- export * from './checkout';
3
- export * from './commons';
4
- export * from './customer';
5
- export * from './paymentMethod';
6
- export * from './liteInlineCheckout';
7
- export * from './validations';
8
- export * from './responses';
9
- export * from './requests';
10
-