Skip to content

Commit 3fe09ea

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

6 files changed

+29
-29
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: 6.1.0
8+
* Package version: 6.2.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-
* [Transaction](docs/Transaction.md)
5756
* [Balance](docs/Balance.md)
57+
* [Transaction](docs/Transaction.md)
5858
* [Customer](docs/Customer.md)
5959
* [Payout](docs/Payout.md)
6060

docs/invoice/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| Name | Type | Required | Description | Examples |
88
|------------|:-------------:|:-------------:|-------------|:-------------:|
99
| **issuer** |string | | The bank code of the installment provider / issuer | | |
10-
| **allowedTerms** |number[] | | An array containing list of installment tenor available to choose | | |
10+
| **terms** |number[] | | An array containing list of installment tenor available to choose | | |
1111

1212

1313

index.ts

+18-18
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 { Payout } from './payout';
9-
export { Payout } from './payout';
10-
115
import { PaymentMethod } from './payment_method';
126
export { PaymentMethod } from './payment_method';
137

8+
import { Invoice } from './invoice';
9+
export { Invoice } from './invoice';
10+
1411
import { PaymentRequest } from './payment_request';
1512
export { PaymentRequest } from './payment_request';
1613

17-
import { Transaction, Balance } from './balance_and_transaction';
18-
export { Transaction, Balance } from './balance_and_transaction';
14+
import { Payout } from './payout';
15+
export { Payout } from './payout';
1916

2017
import { Customer } from './customer';
2118
export { Customer } from './customer';
2219

2320
import { Refund } from './refund';
2421
export { Refund } from './refund';
2522

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-
Invoice: Invoice;
34-
Payout: Payout;
3533
PaymentMethod: PaymentMethod;
34+
Invoice: Invoice;
3635
PaymentRequest: PaymentRequest;
37-
Transaction: Transaction;
38-
Balance: Balance;
36+
Payout: Payout;
3937
Customer: Customer;
4038
Refund: Refund;
39+
Balance: Balance;
40+
Transaction: Transaction;
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.Payout = new Payout(this.opts);
64-
6561
this.PaymentMethod = new PaymentMethod(this.opts);
6662

63+
this.Invoice = new Invoice(this.opts);
64+
6765
this.PaymentRequest = new PaymentRequest(this.opts);
6866

69-
this.Transaction = new Transaction(this.opts);
70-
this.Balance = new Balance(this.opts);
67+
this.Payout = new Payout(this.opts);
7168

7269
this.Customer = new Customer(this.opts);
7370

7471
this.Refund = new Refund(this.opts);
7572

73+
this.Balance = new Balance(this.opts);
74+
this.Transaction = new Transaction(this.opts);
75+
7676
}
7777
}
7878

invoice/models/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner
2424
* @type {Array<number>}
2525
* @memberof ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner
2626
*/
27-
allowedTerms?: Array<number>;
27+
terms?: Array<number>;
2828
}
2929

3030
/**
@@ -47,7 +47,7 @@ export function ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerF
4747
return {
4848

4949
'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
50-
'allowedTerms': !exists(json, 'allowed_terms') ? undefined : json['allowed_terms'],
50+
'terms': !exists(json, 'terms') ? undefined : json['terms'],
5151
};
5252
}
5353

@@ -61,7 +61,7 @@ export function ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerT
6161
return {
6262

6363
'issuer': value.issuer,
64-
'allowed_terms': value.allowedTerms,
64+
'terms': value.terms,
6565
};
6666
}
6767

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"name": "xendit-node",
3-
"version": "6.1.0",
3+
"version": "6.2.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-
"payout/**",
1311
"payment_method/**",
12+
"invoice/**",
1413
"payment_request/**",
15-
"balance_and_transaction/**",
14+
"payout/**",
1615
"customer/**",
1716
"refund/**",
17+
"balance_and_transaction/**",
1818
"docs/**",
1919
"images/**",
2020
"README.md",

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

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

0 commit comments

Comments
 (0)