Skip to content

Commit 6e25a69

Browse files
author
xendit-devx-bot
committed
Generated Xendit node SDK
1 parent 2114b60 commit 6e25a69

12 files changed

+57
-30
lines changed

README.md

+2-2
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: 4.0.0
8+
* Package version: 4.1.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

+10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ Representing the available eWallet channels used for invoice-related transaction
2626

2727
* `Jeniuspay` (value: `'JENIUSPAY'`)
2828

29+
* `Momo` (value: `'MOMO'`)
30+
31+
* `Zalopay` (value: `'ZALOPAY'`)
32+
33+
* `Viettelpay` (value: `'VIETTELPAY'`)
34+
35+
* `Vnptwallet` (value: `'VNPTWALLET'`)
36+
37+
* `Appota` (value: `'APPOTA'`)
38+
2939
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`)
3040

3141
If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM.

docs/payment_request/PaymentCallbackData.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Represents the actual funds transaction/attempt made to a payment method
1717
| **paymentMethod** |[PaymentMethod](PaymentMethod.md) | ☑️ | | | |
1818
| **channelProperties** |[PaymentRequestChannelProperties](PaymentRequestChannelProperties.md) | | | | |
1919
| **paymentDetail** |object | | | | |
20-
| **failureCode** |object | | | | |
20+
| **failureCode** |string | | | | |
2121
| **created** |string | ☑️ | | | |
2222
| **updated** |string | ☑️ | | | |
2323
| **metadata** |object | | | | |

docs/payment_request/QrCodeChannelCode.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ QR Code Channel Code
66
## Enum
77

88

9+
* `Qris` (value: `'QRIS'`)
10+
911
* `Dana` (value: `'DANA'`)
1012

1113
* `Rcbc` (value: `'RCBC'`)

docs/payment_request/VirtualAccountChannelCode.md

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ Virtual Account Channel Code
3838

3939
* `Ambank` (value: `'AMBANK'`)
4040

41+
* `Bnc` (value: `'BNC'`)
42+
43+
* `Hana` (value: `'HANA'`)
44+
45+
* `Muamalat` (value: `'MUAMALAT'`)
46+
4147
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`)
4248

4349
If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM.

index.ts

+20-20
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ export * from './runtime';
55
import { Invoice } from './invoice';
66
export { Invoice } from './invoice';
77

8-
import { Balance, Transaction } from './balance_and_transaction';
9-
export { Balance, Transaction } from './balance_and_transaction';
10-
118
import { Refund } from './refund';
129
export { Refund } from './refund';
1310

14-
import { Payout } from './payout';
15-
export { Payout } from './payout';
16-
17-
import { PaymentRequest } from './payment_request';
18-
export { PaymentRequest } from './payment_request';
19-
2011
import { Customer } from './customer';
2112
export { Customer } from './customer';
2213

14+
import { Transaction, Balance } from './balance_and_transaction';
15+
export { Transaction, Balance } from './balance_and_transaction';
16+
2317
import { PaymentMethod } from './payment_method';
2418
export { PaymentMethod } from './payment_method';
2519

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

2727
export interface XenditOpts {
2828
secretKey: string;
@@ -31,13 +31,13 @@ export interface XenditOpts {
3131
export class Xendit {
3232
opts: XenditOpts;
3333
Invoice: Invoice;
34-
Balance: Balance;
35-
Transaction: Transaction;
3634
Refund: Refund;
37-
Payout: Payout;
38-
PaymentRequest: PaymentRequest;
3935
Customer: Customer;
36+
Transaction: Transaction;
37+
Balance: Balance;
4038
PaymentMethod: PaymentMethod;
39+
PaymentRequest: PaymentRequest;
40+
Payout: Payout;
4141

4242

4343
constructor({ secretKey: _secretKey, xenditURL: _xenditURL }: XenditOpts) {
@@ -60,19 +60,19 @@ export class Xendit {
6060

6161
this.Invoice = new Invoice(this.opts);
6262

63-
this.Balance = new Balance(this.opts);
64-
this.Transaction = new Transaction(this.opts);
65-
6663
this.Refund = new Refund(this.opts);
6764

68-
this.Payout = new Payout(this.opts);
69-
70-
this.PaymentRequest = new PaymentRequest(this.opts);
71-
7265
this.Customer = new Customer(this.opts);
7366

67+
this.Transaction = new Transaction(this.opts);
68+
this.Balance = new Balance(this.opts);
69+
7470
this.PaymentMethod = new PaymentMethod(this.opts);
7571

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

invoice/models/EwalletType.ts

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ export const EwalletType = {
2222
Astrapay: 'ASTRAPAY',
2323
Nexcash: 'NEXCASH',
2424
Jeniuspay: 'JENIUSPAY',
25+
Momo: 'MOMO',
26+
Zalopay: 'ZALOPAY',
27+
Viettelpay: 'VIETTELPAY',
28+
Vnptwallet: 'VNPTWALLET',
29+
Appota: 'APPOTA',
2530
XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE"
2631
} as const;
2732
export type EwalletType = typeof EwalletType[keyof typeof EwalletType];

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xendit-node",
3-
"version": "4.0.0",
3+
"version": "4.1.0",
44
"description": "OpenAPI client for xendit-node",
55
"author": "OpenAPI-Generator",
66
"repository": {
@@ -9,12 +9,12 @@
99
},
1010
"files": [
1111
"invoice/**",
12-
"balance_and_transaction/**",
1312
"refund/**",
14-
"payout/**",
15-
"payment_request/**",
1613
"customer/**",
14+
"balance_and_transaction/**",
1715
"payment_method/**",
16+
"payment_request/**",
17+
"payout/**",
1818
"docs/**",
1919
"images/**",
2020
"README.md",

payment_request/models/PaymentCallbackData.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ export interface PaymentCallbackData {
9494
paymentDetail?: object | null;
9595
/**
9696
*
97-
* @type {object}
97+
* @type {string}
9898
* @memberof PaymentCallbackData
9999
*/
100-
failureCode?: object | null;
100+
failureCode?: string | null;
101101
/**
102102
*
103103
* @type {string}

payment_request/models/QRCodeChannelCode.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @export
1313
*/
1414
export const QRCodeChannelCode = {
15+
Qris: 'QRIS',
1516
Dana: 'DANA',
1617
Rcbc: 'RCBC',
1718
Linkaja: 'LINKAJA',

payment_request/models/VirtualAccountChannelCode.ts

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ export const VirtualAccountChannelCode = {
2828
Msb: 'MSB',
2929
StandardChartered: 'STANDARD_CHARTERED',
3030
Ambank: 'AMBANK',
31+
Bnc: 'BNC',
32+
Hana: 'HANA',
33+
Muamalat: 'MUAMALAT',
3134
XenditEnumDefaultFallback: "UNKNOWN_ENUM_VALUE"
3235
} as const;
3336
export type VirtualAccountChannelCode = typeof VirtualAccountChannelCode[keyof typeof VirtualAccountChannelCode];

runtime.ts

+1-1
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'] = '4.0.0';
139+
headers['xendit-lib-ver'] = '4.1.0';
140140

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

0 commit comments

Comments
 (0)