tek-wallet 0.0.748 → 0.0.749

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.
@@ -12,3 +12,4 @@ export * from "./ui/IncomeWallet";
12
12
  export * from "./ui/TransferConfirmation";
13
13
  export * from "./ui/Formatter";
14
14
  export * from "./ui/TokenItem";
15
+ export * from "./ui/ConfirmTransferInternal";
@@ -28,3 +28,4 @@ __exportStar(require("./ui/IncomeWallet"), exports);
28
28
  __exportStar(require("./ui/TransferConfirmation"), exports);
29
29
  __exportStar(require("./ui/Formatter"), exports);
30
30
  __exportStar(require("./ui/TokenItem"), exports);
31
+ __exportStar(require("./ui/ConfirmTransferInternal"), exports);
@@ -1,3 +1,4 @@
1
1
  export * from "./validate-wallet-address-service";
2
2
  export * from "./validate-wallet-address-service/type";
3
3
  export * from "./type";
4
+ export * from "./transfer-internal-service/type";
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./validate-wallet-address-service"), exports);
18
18
  __exportStar(require("./validate-wallet-address-service/type"), exports);
19
19
  __exportStar(require("./type"), exports);
20
+ __exportStar(require("./transfer-internal-service/type"), exports);
@@ -1,4 +1,3 @@
1
- import { TransferInternalResponse } from "./response.type";
2
- import { TransferInternalBody } from "./type";
1
+ import { TransferInternalBody, TransferInternalResponse } from "./type";
3
2
  declare const transferInternalService: (body: TransferInternalBody) => Promise<TransferInternalResponse>;
4
3
  export default transferInternalService;
@@ -20,3 +20,138 @@ export interface CurrencyUpdateInfo {
20
20
  currency_slug: string;
21
21
  payment_via_gateway: boolean;
22
22
  }
23
+ export interface TransferInternalResponse {
24
+ success: boolean;
25
+ message: string;
26
+ timestamp: string;
27
+ data?: TransferInternalData;
28
+ }
29
+ export interface TransferInternalData {
30
+ id: number;
31
+ transaction_type: TransactionType;
32
+ from_address: string;
33
+ to_address: string;
34
+ network: any;
35
+ currency_slug: string;
36
+ fee: string;
37
+ amount: string;
38
+ transaction_status: string;
39
+ user_created: string;
40
+ user_updated: string;
41
+ date_created: string;
42
+ date_updated: any;
43
+ description: any;
44
+ currency_usd_rate: string;
45
+ from_app_slug: string;
46
+ fee_info: FeeInfo;
47
+ order_id: any;
48
+ parent_transaction_id: any;
49
+ child_transactions: any[];
50
+ metadata: string;
51
+ bank_account_number: string;
52
+ bank_code: string;
53
+ currency_data: CurrencyData;
54
+ childrens: any[];
55
+ payment_via_fiat: PaymentViaFiat;
56
+ }
57
+ export interface TransactionType {
58
+ id: number;
59
+ status: string;
60
+ name: string;
61
+ slug: string;
62
+ description: any;
63
+ icon: any;
64
+ }
65
+ export interface FeeInfo {
66
+ fee_detail: FeeDetail[];
67
+ fee_in_currency: number;
68
+ fee_in_usd: number;
69
+ original_amount_in_currency: number;
70
+ original_amount_in_usd: number;
71
+ original_currency: string;
72
+ }
73
+ export interface FeeDetail {
74
+ currency: Currency;
75
+ fee_fixed: number;
76
+ fee_in_currency: number;
77
+ fee_in_usd: number;
78
+ fee_percent: number;
79
+ fee_type: FeeType;
80
+ }
81
+ interface Currency {
82
+ decimals: number;
83
+ full_name: string;
84
+ icon: string;
85
+ id: number;
86
+ link: string;
87
+ name: string;
88
+ slug: string;
89
+ usd_rate: number;
90
+ }
91
+ export interface FeeType {
92
+ name: string;
93
+ slug: string;
94
+ }
95
+ export interface CurrencyData {
96
+ name: string;
97
+ id: number;
98
+ slug: string;
99
+ full_name: string;
100
+ icon: string;
101
+ link: string;
102
+ usd_rate: number;
103
+ decimals: number;
104
+ }
105
+ export interface PaymentViaFiat {
106
+ status: string;
107
+ data: Data;
108
+ statusCode: number;
109
+ processingTime: number;
110
+ }
111
+ export interface Data {
112
+ id: string;
113
+ orderId: string;
114
+ amount: number;
115
+ message: string;
116
+ provider: string;
117
+ status: string;
118
+ method: string;
119
+ currency: string;
120
+ is_cancellable: boolean;
121
+ details: any;
122
+ buyer_email: string;
123
+ created_at: number;
124
+ mode: string;
125
+ metadata: Metadata;
126
+ qr_code: string;
127
+ _link: Link;
128
+ tran: string;
129
+ }
130
+ export interface Metadata {
131
+ app: App;
132
+ bank_account: BankAccount;
133
+ }
134
+ export interface App {
135
+ app_id: string;
136
+ name: string;
137
+ status: string;
138
+ }
139
+ export interface BankAccount {
140
+ account_name: string;
141
+ account_number: string;
142
+ bank_code: string;
143
+ bank_name: string;
144
+ bank_branch: string;
145
+ }
146
+ export interface Link {
147
+ payment_link: PaymentLink;
148
+ self: Self;
149
+ }
150
+ export interface PaymentLink {
151
+ href: string;
152
+ type: string;
153
+ }
154
+ export interface Self {
155
+ href: string;
156
+ }
157
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.748",
3
+ "version": "0.0.749",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,134 +0,0 @@
1
- export interface TransferInternalResponse {
2
- success: boolean;
3
- message: string;
4
- timestamp: string;
5
- data?: TransferInternalData;
6
- }
7
- export interface TransferInternalData {
8
- id: number;
9
- transaction_type: TransactionType;
10
- from_address: string;
11
- to_address: string;
12
- network: any;
13
- currency_slug: string;
14
- fee: string;
15
- amount: string;
16
- transaction_status: string;
17
- user_created: string;
18
- user_updated: string;
19
- date_created: string;
20
- date_updated: any;
21
- description: any;
22
- currency_usd_rate: string;
23
- from_app_slug: string;
24
- fee_info: FeeInfo;
25
- order_id: any;
26
- parent_transaction_id: any;
27
- child_transactions: any[];
28
- metadata: string;
29
- bank_account_number: string;
30
- bank_code: string;
31
- currency_data: CurrencyData;
32
- childrens: any[];
33
- payment_via_fiat: PaymentViaFiat;
34
- }
35
- export interface TransactionType {
36
- id: number;
37
- status: string;
38
- name: string;
39
- slug: string;
40
- description: any;
41
- icon: any;
42
- }
43
- export interface FeeInfo {
44
- fee_detail: FeeDetail[];
45
- fee_in_currency: number;
46
- fee_in_usd: number;
47
- original_amount_in_currency: number;
48
- original_amount_in_usd: number;
49
- original_currency: string;
50
- }
51
- export interface FeeDetail {
52
- currency: Currency;
53
- fee_fixed: number;
54
- fee_in_currency: number;
55
- fee_in_usd: number;
56
- fee_percent: number;
57
- fee_type: FeeType;
58
- }
59
- export interface Currency {
60
- decimals: number;
61
- full_name: string;
62
- icon: string;
63
- id: number;
64
- link: string;
65
- name: string;
66
- slug: string;
67
- usd_rate: number;
68
- }
69
- export interface FeeType {
70
- name: string;
71
- slug: string;
72
- }
73
- export interface CurrencyData {
74
- name: string;
75
- id: number;
76
- slug: string;
77
- full_name: string;
78
- icon: string;
79
- link: string;
80
- usd_rate: number;
81
- decimals: number;
82
- }
83
- export interface PaymentViaFiat {
84
- status: string;
85
- data: Data;
86
- statusCode: number;
87
- processingTime: number;
88
- }
89
- export interface Data {
90
- id: string;
91
- orderId: string;
92
- amount: number;
93
- message: string;
94
- provider: string;
95
- status: string;
96
- method: string;
97
- currency: string;
98
- is_cancellable: boolean;
99
- details: any;
100
- buyer_email: string;
101
- created_at: number;
102
- mode: string;
103
- metadata: Metadata;
104
- qr_code: string;
105
- _link: Link;
106
- tran: string;
107
- }
108
- export interface Metadata {
109
- app: App;
110
- bank_account: BankAccount;
111
- }
112
- export interface App {
113
- app_id: string;
114
- name: string;
115
- status: string;
116
- }
117
- export interface BankAccount {
118
- account_name: string;
119
- account_number: string;
120
- bank_code: string;
121
- bank_name: string;
122
- bank_branch: string;
123
- }
124
- export interface Link {
125
- payment_link: PaymentLink;
126
- self: Self;
127
- }
128
- export interface PaymentLink {
129
- href: string;
130
- type: string;
131
- }
132
- export interface Self {
133
- href: string;
134
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });