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 Aug 15, 2024
1 parent ec84309 commit 6dfd603
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
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
34 changes: 17 additions & 17 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand All @@ -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);

}
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6dfd603

Please sign in to comment.