From 6dfd603820962ffd59876efc86c8bd93f49a1323 Mon Sep 17 00:00:00 2001 From: xendit-devx-bot Date: Thu, 15 Aug 2024 05:59:53 +0000 Subject: [PATCH] Generated Xendit node SDK --- README.md | 2 +- index.ts | 34 +++++++++++++++++----------------- package.json | 6 +++--- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index f5c2716..6d3195b 100644 --- a/README.md +++ b/README.md @@ -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/index.ts b/index.ts index 18aa35f..4a59d71 100644 --- a/index.ts +++ b/index.ts @@ -5,24 +5,24 @@ export * from './runtime'; import { Customer } from './customer'; export { Customer } from './customer'; -import { PaymentMethod } from './payment_method'; -export { PaymentMethod } from './payment_method'; - import { PaymentRequest } from './payment_request'; export { PaymentRequest } from './payment_request'; -import { Invoice } from './invoice'; -export { Invoice } from './invoice'; - import { Payout } from './payout'; export { Payout } from './payout'; -import { Transaction, Balance } from './balance_and_transaction'; -export { Transaction, Balance } from './balance_and_transaction'; +import { Invoice } from './invoice'; +export { Invoice } from './invoice'; import { Refund } from './refund'; export { Refund } from './refund'; +import { Balance, Transaction } from './balance_and_transaction'; +export { Balance, Transaction } from './balance_and_transaction'; + +import { PaymentMethod } from './payment_method'; +export { PaymentMethod } from './payment_method'; + export interface XenditOpts { secretKey: string; @@ -31,13 +31,13 @@ export interface XenditOpts { export class Xendit { opts: XenditOpts; Customer: Customer; - PaymentMethod: PaymentMethod; PaymentRequest: PaymentRequest; - Invoice: Invoice; Payout: Payout; - Transaction: Transaction; - Balance: Balance; + Invoice: Invoice; Refund: Refund; + Balance: Balance; + Transaction: Transaction; + PaymentMethod: PaymentMethod; constructor({ secretKey: _secretKey, xenditURL: _xenditURL }: XenditOpts) { @@ -60,18 +60,18 @@ export class Xendit { this.Customer = new Customer(this.opts); - this.PaymentMethod = new PaymentMethod(this.opts); - this.PaymentRequest = new PaymentRequest(this.opts); + this.Payout = new Payout(this.opts); + this.Invoice = new Invoice(this.opts); - this.Payout = new Payout(this.opts); + this.Refund = new Refund(this.opts); - this.Transaction = new Transaction(this.opts); this.Balance = new Balance(this.opts); + this.Transaction = new Transaction(this.opts); - this.Refund = new Refund(this.opts); + this.PaymentMethod = new PaymentMethod(this.opts); } } diff --git a/package.json b/package.json index 919ea28..3a8c319 100644 --- a/package.json +++ b/package.json @@ -9,12 +9,12 @@ }, "files": [ "customer/**", - "payment_method/**", "payment_request/**", - "invoice/**", "payout/**", - "balance_and_transaction/**", + "invoice/**", "refund/**", + "balance_and_transaction/**", + "payment_method/**", "docs/**", "images/**", "README.md",