Skip to content

Commit 1743c13

Browse files
author
xendit-devx-bot
committed
Generated Xendit node SDK
1 parent e271df8 commit 1743c13

File tree

6 files changed

+36
-33
lines changed

6 files changed

+36
-33
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The official Xendit Node SDK provides a simple and convenient way to call Xendit's REST API
66
in applications written in Node.
77

8-
* Package version: 6.3.0
8+
* Package version: 6.4.0
99

1010
# Getting Started
1111

@@ -53,8 +53,8 @@ Find detailed API information and examples for each of our product’s by clicki
5353
* [PaymentRequest](docs/PaymentRequest.md)
5454
* [PaymentMethod](docs/PaymentMethod.md)
5555
* [Refund](docs/Refund.md)
56-
* [Balance](docs/Balance.md)
5756
* [Transaction](docs/Transaction.md)
57+
* [Balance](docs/Balance.md)
5858
* [Customer](docs/Customer.md)
5959
* [Payout](docs/Payout.md)
6060

docs/invoice/EwalletType.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Representing the available eWallet channels used for invoice-related transaction
88

99
* `Ovo` (value: `'OVO'`)
1010

11+
* `Gopay` (value: `'GOPAY'`)
12+
1113
* `Dana` (value: `'DANA'`)
1214

1315
* `Linkaja` (value: `'LINKAJA'`)

index.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@
22
/* eslint-disable */
33
export * from './runtime';
44

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-
145
import { Customer } from './customer';
156
export { Customer } from './customer';
167

17-
import { PaymentMethod } from './payment_method';
18-
export { PaymentMethod } from './payment_method';
19-
208
import { PaymentRequest } from './payment_request';
219
export { PaymentRequest } from './payment_request';
2210

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+
2317
import { Refund } from './refund';
2418
export { Refund } from './refund';
2519

20+
import { Payout } from './payout';
21+
export { Payout } from './payout';
22+
23+
import { Invoice } from './invoice';
24+
export { Invoice } from './invoice';
25+
2626

2727
export interface XenditOpts {
2828
secretKey: string;
2929
xenditURL?: string;
3030
}
3131
export class Xendit {
3232
opts: XenditOpts;
33-
Invoice: Invoice;
34-
Balance: Balance;
35-
Transaction: Transaction;
36-
Payout: Payout;
3733
Customer: Customer;
38-
PaymentMethod: PaymentMethod;
3934
PaymentRequest: PaymentRequest;
35+
Transaction: Transaction;
36+
Balance: Balance;
37+
PaymentMethod: PaymentMethod;
4038
Refund: Refund;
39+
Payout: Payout;
40+
Invoice: Invoice;
4141

4242

4343
constructor({ secretKey: _secretKey, xenditURL: _xenditURL }: XenditOpts) {
@@ -58,21 +58,21 @@ export class Xendit {
5858
}
5959

6060

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);
6562

66-
this.Payout = new Payout(this.opts);
63+
this.PaymentRequest = new PaymentRequest(this.opts);
6764

68-
this.Customer = new Customer(this.opts);
65+
this.Transaction = new Transaction(this.opts);
66+
this.Balance = new Balance(this.opts);
6967

7068
this.PaymentMethod = new PaymentMethod(this.opts);
7169

72-
this.PaymentRequest = new PaymentRequest(this.opts);
73-
7470
this.Refund = new Refund(this.opts);
7571

72+
this.Payout = new Payout(this.opts);
73+
74+
this.Invoice = new Invoice(this.opts);
75+
7676
}
7777
}
7878

invoice/models/EwalletType.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*/
1414
export const EwalletType = {
1515
Ovo: 'OVO',
16+
Gopay: 'GOPAY',
1617
Dana: 'DANA',
1718
Linkaja: 'LINKAJA',
1819
Paymaya: 'PAYMAYA',

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"name": "xendit-node",
3-
"version": "6.3.0",
3+
"version": "6.4.0",
44
"description": "OpenAPI client for xendit-node",
55
"author": "OpenAPI-Generator",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/xendit/xendit-node.git"
99
},
1010
"files": [
11-
"invoice/**",
12-
"balance_and_transaction/**",
13-
"payout/**",
1411
"customer/**",
15-
"payment_method/**",
1612
"payment_request/**",
13+
"balance_and_transaction/**",
14+
"payment_method/**",
1715
"refund/**",
16+
"payout/**",
17+
"invoice/**",
1818
"docs/**",
1919
"images/**",
2020
"README.md",

runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class BaseAPI {
136136
const headers = Object.assign({}, this.configuration.headers, context.headers);
137137
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
138138
headers['xendit-lib'] = 'node';
139-
headers['xendit-lib-ver'] = '6.3.0';
139+
headers['xendit-lib-ver'] = '6.4.0';
140140

141141
const initParams = {
142142
method: context.method,

0 commit comments

Comments
 (0)