Skip to content

Commit d7bd4c0

Browse files
author
xendit-devx-bot
committed
Generated Xendit node SDK
1 parent 6dfd603 commit d7bd4c0

21 files changed

+271
-39
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.0.0
8+
* Package version: 6.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/BankCode.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ Representing the available bank channels used for invoice-related transactions.
2424

2525
* `Cimb` (value: `'CIMB'`)
2626

27+
* `Vietcapital` (value: `'VIETCAPITAL'`)
28+
29+
* `Woori` (value: `'WOORI'`)
30+
31+
* `Pv` (value: `'PV'`)
32+
33+
* `Msb` (value: `'MSB'`)
34+
35+
* `Vpb` (value: `'VPB'`)
36+
37+
* `Bidv` (value: `'BIDV'`)
38+
39+
* `Cake` (value: `'CAKE'`)
40+
2741
* `Bnc` (value: `'BNC'`)
2842

2943
* `Hana` (value: `'HANA'`)

docs/invoice/ChannelPropertiesCards.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ An object representing properties specific for credit card payment method.
77
| Name | Type | Required | Description | Examples |
88
|------------|:-------------:|:-------------:|-------------|:-------------:|
99
| **allowedBins** |string[] | | An array of allowed BINs (6 or 8 digits) for credit card payments. | | |
10+
| **installmentConfiguration** |[ChannelPropertiesCardsInstallmentConfiguration](ChannelPropertiesCardsInstallmentConfiguration.md) | | | | |
1011

1112

1213

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ChannelPropertiesCardsInstallmentConfiguration
2+
3+
An object to pre-set cards installment for a specific invoice
4+
5+
## Properties
6+
7+
| Name | Type | Required | Description | Examples |
8+
|------------|:-------------:|:-------------:|-------------|:-------------:|
9+
| **allowFullPayment** |boolean | | Indicate whether full payment (without installment) is allowed | | |
10+
| **allowedTerms** |[ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner[]](ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md) | | An object to set what kind (from specific bank / specific tenor) of cards installments will be available on a specific invoice | | |
11+
12+
13+
14+
[[Back to README]](../../README.md)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner
2+
3+
4+
5+
## Properties
6+
7+
| Name | Type | Required | Description | Examples |
8+
|------------|:-------------:|:-------------:|-------------|:-------------:|
9+
| **issuer** |string | | The bank code of the installment provider / issuer | | |
10+
| **allowedTerms** |number[] | | An array containing list of installment tenor available to choose | | |
11+
12+
13+
14+
[[Back to README]](../../README.md)

docs/invoice/CreateInvoiceRequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ An object representing for an invoice creation request.
2222
| **shouldAuthenticateCreditCard** |boolean | | Indicates whether credit card authentication is required. | | |
2323
| **currency** |string | | The currency of the invoice. | | |
2424
| **reminderTime** |number | | The reminder time. | | |
25-
| **local** |string | | The local. | | |
25+
| **locale** |string | | The default language to display. | | |
2626
| **reminderTimeUnit** |string | | The unit of the reminder time. | | |
2727
| **items** |[InvoiceItem[]](InvoiceItem.md) | | An array of items included in the invoice. | | |
2828
| **fees** |[InvoiceFee[]](InvoiceFee.md) | | An array of fees associated with the invoice. | | |
2929
| **channelProperties** |[ChannelProperties](ChannelProperties.md) | | | | |
30+
| **metadata** |object | | A free-format JSON for additional information that you may use. Object can be up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. | | |
3031

3132

3233

docs/invoice/Invoice.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ An object representing details for an invoice.
4040
| **customerNotificationPreference** |[NotificationPreference](NotificationPreference.md) | | | | |
4141
| **fees** |[InvoiceFee[]](InvoiceFee.md) | | An array of fees associated with the invoice. | | |
4242
| **channelProperties** |[ChannelProperties](ChannelProperties.md) | | | | |
43+
| **metadata** |object | | A free-format JSON for additional information that you may use. Object can be up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. | | |
4344

4445

4546

docs/invoice/InvoiceCurrency.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Representing the currency used for an invoice.
1616

1717
* `Php` (value: `'PHP'`)
1818

19+
* `Myr` (value: `'MYR'`)
20+
1921
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`)
2022

2123
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/invoice/QrCodeType.md

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

1111
* `Promptpay` (value: `'PROMPTPAY'`)
1212

13+
* `Qrph` (value: `'QRPH'`)
14+
1315
* `XenditEnumDefaultFallback` (value: `UNKNOWN_ENUM_VALUE`)
1416

1517
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

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 { Customer } from './customer';
6-
export { Customer } from './customer';
5+
import { Invoice } from './invoice';
6+
export { Invoice } from './invoice';
7+
8+
import { Payout } from './payout';
9+
export { Payout } from './payout';
10+
11+
import { PaymentMethod } from './payment_method';
12+
export { PaymentMethod } from './payment_method';
713

814
import { PaymentRequest } from './payment_request';
915
export { PaymentRequest } from './payment_request';
1016

11-
import { Payout } from './payout';
12-
export { Payout } from './payout';
17+
import { Transaction, Balance } from './balance_and_transaction';
18+
export { Transaction, Balance } from './balance_and_transaction';
1319

14-
import { Invoice } from './invoice';
15-
export { Invoice } from './invoice';
20+
import { Customer } from './customer';
21+
export { Customer } from './customer';
1622

1723
import { Refund } from './refund';
1824
export { Refund } from './refund';
1925

20-
import { Balance, Transaction } from './balance_and_transaction';
21-
export { Balance, Transaction } from './balance_and_transaction';
22-
23-
import { PaymentMethod } from './payment_method';
24-
export { PaymentMethod } from './payment_method';
25-
2626

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

4242

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

6060

61-
this.Customer = new Customer(this.opts);
62-
63-
this.PaymentRequest = new PaymentRequest(this.opts);
61+
this.Invoice = new Invoice(this.opts);
6462

6563
this.Payout = new Payout(this.opts);
6664

67-
this.Invoice = new Invoice(this.opts);
65+
this.PaymentMethod = new PaymentMethod(this.opts);
6866

69-
this.Refund = new Refund(this.opts);
67+
this.PaymentRequest = new PaymentRequest(this.opts);
7068

71-
this.Balance = new Balance(this.opts);
7269
this.Transaction = new Transaction(this.opts);
70+
this.Balance = new Balance(this.opts);
7371

74-
this.PaymentMethod = new PaymentMethod(this.opts);
72+
this.Customer = new Customer(this.opts);
73+
74+
this.Refund = new Refund(this.opts);
7575

7676
}
7777
}

0 commit comments

Comments
 (0)