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