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