From 06a1626299d9c92601a1373d68bfaf3fd41492be Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Tue, 13 Feb 2024 02:43:03 +0000 Subject: [PATCH] Generated Xendit node SDK --- README.md | 4 ++-- docs/refund/RefundCallbackData.md | 2 +- index.ts | 36 ++++++++++++++--------------- package.json | 8 +++---- refund/models/RefundCallbackData.ts | 8 +++---- runtime.ts | 2 +- 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 0f8f2e8..976a4f6 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) diff --git a/docs/refund/RefundCallbackData.md b/docs/refund/RefundCallbackData.md index 4c734cf..5d81c6d 100644 --- a/docs/refund/RefundCallbackData.md +++ b/docs/refund/RefundCallbackData.md @@ -7,7 +7,7 @@ | Name | Type | Required | Description | Examples | |------------|:-------------:|:-------------:|-------------|:-------------:| | **id** |string | ☑️ | | | | -| **paymentRequestId** |string | ☑️ | | | | +| **paymentId** |string | ☑️ | | | | | **invoiceId** |string | | | | | | **paymentMethodType** |string | ☑️ | | | | | **amount** |number | ☑️ | | | | diff --git a/index.ts b/index.ts index a67dcc2..3c7206f 100644 --- a/index.ts +++ b/index.ts @@ -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'; @@ -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; @@ -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); } diff --git a/package.json b/package.json index 24a7453..95e7330 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xendit-node", - "version": "4.1.0", + "version": "4.2.0", "description": "OpenAPI client for xendit-node", "author": "OpenAPI-Generator", "repository": { @@ -8,12 +8,12 @@ "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/**", diff --git a/refund/models/RefundCallbackData.ts b/refund/models/RefundCallbackData.ts index 5c1e7bb..249f797 100644 --- a/refund/models/RefundCallbackData.ts +++ b/refund/models/RefundCallbackData.ts @@ -24,7 +24,7 @@ export interface RefundCallbackData { * @type {string} * @memberof RefundCallbackData */ - paymentRequestId: string; + paymentId: string; /** * * @type {string} @@ -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; @@ -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'], @@ -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, diff --git a/runtime.ts b/runtime.ts index 71eba28..db1f6b4 100644 --- a/runtime.ts +++ b/runtime.ts @@ -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,