@@ -5,24 +5,24 @@ export * from './runtime';
5
5
import { Invoice } from './invoice' ;
6
6
export { Invoice } from './invoice' ;
7
7
8
- import { Balance , Transaction } from './balance_and_transaction' ;
9
- export { Balance , Transaction } from './balance_and_transaction' ;
10
-
11
8
import { Refund } from './refund' ;
12
9
export { Refund } from './refund' ;
13
10
14
- import { Payout } from './payout' ;
15
- export { Payout } from './payout' ;
16
-
17
- import { PaymentRequest } from './payment_request' ;
18
- export { PaymentRequest } from './payment_request' ;
19
-
20
11
import { Customer } from './customer' ;
21
12
export { Customer } from './customer' ;
22
13
14
+ import { Transaction , Balance } from './balance_and_transaction' ;
15
+ export { Transaction , Balance } from './balance_and_transaction' ;
16
+
23
17
import { PaymentMethod } from './payment_method' ;
24
18
export { PaymentMethod } from './payment_method' ;
25
19
20
+ import { PaymentRequest } from './payment_request' ;
21
+ export { PaymentRequest } from './payment_request' ;
22
+
23
+ import { Payout } from './payout' ;
24
+ export { Payout } from './payout' ;
25
+
26
26
27
27
export interface XenditOpts {
28
28
secretKey : string ;
@@ -31,13 +31,13 @@ export interface XenditOpts {
31
31
export class Xendit {
32
32
opts : XenditOpts ;
33
33
Invoice : Invoice ;
34
- Balance : Balance ;
35
- Transaction : Transaction ;
36
34
Refund : Refund ;
37
- Payout : Payout ;
38
- PaymentRequest : PaymentRequest ;
39
35
Customer : Customer ;
36
+ Transaction : Transaction ;
37
+ Balance : Balance ;
40
38
PaymentMethod : PaymentMethod ;
39
+ PaymentRequest : PaymentRequest ;
40
+ Payout : Payout ;
41
41
42
42
43
43
constructor ( { secretKey : _secretKey , xenditURL : _xenditURL } : XenditOpts ) {
@@ -60,19 +60,19 @@ export class Xendit {
60
60
61
61
this . Invoice = new Invoice ( this . opts ) ;
62
62
63
- this . Balance = new Balance ( this . opts ) ;
64
- this . Transaction = new Transaction ( this . opts ) ;
65
-
66
63
this . Refund = new Refund ( this . opts ) ;
67
64
68
- this . Payout = new Payout ( this . opts ) ;
69
-
70
- this . PaymentRequest = new PaymentRequest ( this . opts ) ;
71
-
72
65
this . Customer = new Customer ( this . opts ) ;
73
66
67
+ this . Transaction = new Transaction ( this . opts ) ;
68
+ this . Balance = new Balance ( this . opts ) ;
69
+
74
70
this . PaymentMethod = new PaymentMethod ( this . opts ) ;
75
71
72
+ this . PaymentRequest = new PaymentRequest ( this . opts ) ;
73
+
74
+ this . Payout = new Payout ( this . opts ) ;
75
+
76
76
}
77
77
}
78
78
0 commit comments