Skip to content

Commit e271df8

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

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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.2.0
8+
* Package version: 6.3.0
99

1010
# Getting Started
1111

index.ts

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

5-
import { PaymentMethod } from './payment_method';
6-
export { PaymentMethod } from './payment_method';
7-
85
import { Invoice } from './invoice';
96
export { Invoice } from './invoice';
107

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';
1310

1411
import { Payout } from './payout';
1512
export { Payout } from './payout';
1613

1714
import { Customer } from './customer';
1815
export { Customer } from './customer';
1916

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+
2023
import { Refund } from './refund';
2124
export { Refund } from './refund';
2225

23-
import { Balance, Transaction } from './balance_and_transaction';
24-
export { Balance, Transaction } from './balance_and_transaction';
25-
2626

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

4242

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

6060

61-
this.PaymentMethod = new PaymentMethod(this.opts);
62-
6361
this.Invoice = new Invoice(this.opts);
6462

65-
this.PaymentRequest = new PaymentRequest(this.opts);
63+
this.Balance = new Balance(this.opts);
64+
this.Transaction = new Transaction(this.opts);
6665

6766
this.Payout = new Payout(this.opts);
6867

6968
this.Customer = new Customer(this.opts);
7069

71-
this.Refund = new Refund(this.opts);
70+
this.PaymentMethod = new PaymentMethod(this.opts);
7271

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

7676
}
7777
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"name": "xendit-node",
3-
"version": "6.2.0",
3+
"version": "6.3.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-
"payment_method/**",
1211
"invoice/**",
13-
"payment_request/**",
12+
"balance_and_transaction/**",
1413
"payout/**",
1514
"customer/**",
15+
"payment_method/**",
16+
"payment_request/**",
1617
"refund/**",
17-
"balance_and_transaction/**",
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.2.0';
139+
headers['xendit-lib-ver'] = '6.3.0';
140140

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

0 commit comments

Comments
 (0)