Skip to content

Commit

Permalink
Generated Xendit node SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
xendit-devx-bot committed Feb 13, 2024
1 parent 6e25a69 commit 06a1626
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The official Xendit Node SDK provides a simple and convenient way to call Xendit's REST API
in applications written in Node.

* Package version: 4.1.0
* Package version: 4.2.0

# Getting Started

Expand Down Expand Up @@ -53,8 +53,8 @@ Find detailed API information and examples for each of our product’s by clicki
* [PaymentRequest](docs/PaymentRequest.md)
* [PaymentMethod](docs/PaymentMethod.md)
* [Refund](docs/Refund.md)
* [Transaction](docs/Transaction.md)
* [Balance](docs/Balance.md)
* [Transaction](docs/Transaction.md)
* [Customer](docs/Customer.md)
* [Payout](docs/Payout.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/refund/RefundCallbackData.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **id** |string | ☑️ | | | |
| **paymentRequestId** |string | ☑️ | | | |
| **paymentId** |string | ☑️ | | | |
| **invoiceId** |string | | | | |
| **paymentMethodType** |string | ☑️ | | | |
| **amount** |number | ☑️ | | | |
Expand Down
36 changes: 18 additions & 18 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
/* eslint-disable */
export * from './runtime';

import { Refund } from './refund';
export { Refund } from './refund';

import { Balance, Transaction } from './balance_and_transaction';
export { Balance, Transaction } from './balance_and_transaction';

import { Invoice } from './invoice';
export { Invoice } from './invoice';

import { Refund } from './refund';
export { Refund } from './refund';
import { PaymentRequest } from './payment_request';
export { PaymentRequest } from './payment_request';

import { Customer } from './customer';
export { Customer } from './customer';

import { Transaction, Balance } from './balance_and_transaction';
export { Transaction, Balance } from './balance_and_transaction';

import { PaymentMethod } from './payment_method';
export { PaymentMethod } from './payment_method';

import { PaymentRequest } from './payment_request';
export { PaymentRequest } from './payment_request';

import { Payout } from './payout';
export { Payout } from './payout';

Expand All @@ -30,13 +30,13 @@ export interface XenditOpts {
}
export class Xendit {
opts: XenditOpts;
Invoice: Invoice;
Refund: Refund;
Customer: Customer;
Transaction: Transaction;
Balance: Balance;
PaymentMethod: PaymentMethod;
Transaction: Transaction;
Invoice: Invoice;
PaymentRequest: PaymentRequest;
Customer: Customer;
PaymentMethod: PaymentMethod;
Payout: Payout;


Expand All @@ -58,19 +58,19 @@ export class Xendit {
}


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

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

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

this.Transaction = new Transaction(this.opts);
this.Balance = new Balance(this.opts);
this.Transaction = new Transaction(this.opts);

this.PaymentMethod = new PaymentMethod(this.opts);
this.Invoice = new Invoice(this.opts);

this.PaymentRequest = new PaymentRequest(this.opts);

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

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

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

}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "xendit-node",
"version": "4.1.0",
"version": "4.2.0",
"description": "OpenAPI client for xendit-node",
"author": "OpenAPI-Generator",
"repository": {
"type": "git",
"url": "https://github.com/xendit/xendit-node.git"
},
"files": [
"invoice/**",
"refund/**",
"customer/**",
"balance_and_transaction/**",
"payment_method/**",
"invoice/**",
"payment_request/**",
"customer/**",
"payment_method/**",
"payout/**",
"docs/**",
"images/**",
Expand Down
8 changes: 4 additions & 4 deletions refund/models/RefundCallbackData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface RefundCallbackData {
* @type {string}
* @memberof RefundCallbackData
*/
paymentRequestId: string;
paymentId: string;
/**
*
* @type {string}
Expand Down Expand Up @@ -117,7 +117,7 @@ export interface RefundCallbackData {
export function instanceOfRefundCallbackData(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "paymentRequestId" in value;
isInstance = isInstance && "paymentId" in value;
isInstance = isInstance && "paymentMethodType" in value;
isInstance = isInstance && "amount" in value;
isInstance = isInstance && "channelCode" in value;
Expand All @@ -142,7 +142,7 @@ export function RefundCallbackDataFromJSONTyped(json: any, ignoreDiscriminator:
return {

'id': json['id'],
'paymentRequestId': json['payment_request_id'],
'paymentId': json['payment_id'],
'invoiceId': !exists(json, 'invoice_id') ? undefined : json['invoice_id'],
'paymentMethodType': json['payment_method_type'],
'amount': json['amount'],
Expand Down Expand Up @@ -170,7 +170,7 @@ export function RefundCallbackDataToJSON(value?: RefundCallbackData | null): any
return {

'id': value.id,
'payment_request_id': value.paymentRequestId,
'payment_id': value.paymentId,
'invoice_id': value.invoiceId,
'payment_method_type': value.paymentMethodType,
'amount': value.amount,
Expand Down
2 changes: 1 addition & 1 deletion runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class BaseAPI {
const headers = Object.assign({}, this.configuration.headers, context.headers);
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
headers['xendit-lib'] = 'node';
headers['xendit-lib-ver'] = '4.1.0';
headers['xendit-lib-ver'] = '4.2.0';

const initParams = {
method: context.method,
Expand Down

0 comments on commit 06a1626

Please sign in to comment.