Skip to content

Commit

Permalink
Expose xendit model and interface
Browse files Browse the repository at this point in the history
  • Loading branch information
arcphysx committed Apr 4, 2024
1 parent 63239ed commit 98db5cb
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nestjs-xendit",
"version": "0.1.1",
"version": "0.1.2",
"description": "NestJS Package wrapper for xendit-node package",
"main": "dist/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/interface/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './xendit-options.interface';
export * from './xendit-model.interface';
74 changes: 74 additions & 0 deletions src/interface/xendit-model.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import * as RefundModel from "xendit-node/refund/models";
import * as InvoiceModel from "xendit-node/invoice/models";
import * as PayoutModel from "xendit-node/payout/models";
import * as PaymentMethodModel from "xendit-node/payment_method/models";
import * as PaymentRequestModel from "xendit-node/payment_request/models";
import * as CustomerModel from "xendit-node/customer/models";
import * as BalanceTransactionModel from "xendit-node/balance_and_transaction/models";

export {
CreateRefundRequest,
GetRefundRequest,
GetAllRefundsRequest,
CancelRefundRequest
} from "xendit-node/refund/apis";

export {
CreateInvoiceOperationRequest,
GetInvoiceByIdRequest,
GetInvoicesRequest,
ExpireInvoiceRequest
} from "xendit-node/invoice/apis";

export {
CancelPayoutRequest,
CreatePayoutOperationRequest,
GetPayoutByIdRequest,
GetPayoutChannelsRequest,
GetPayoutsRequest
} from "xendit-node/payout/apis";

export {
AuthPaymentMethodRequest,
CreatePaymentMethodRequest,
ExpirePaymentMethodRequest,
GetAllPaymentMethodsRequest,
GetPaymentMethodByIDRequest,
GetPaymentsByPaymentMethodIdRequest,
PatchPaymentMethodRequest,
SimulatePaymentOperationRequest
} from "xendit-node/payment_method/apis";

export {
AuthorizePaymentRequestRequest,
CapturePaymentRequestRequest,
CreatePaymentRequestRequest,
GetAllPaymentRequestsRequest,
GetPaymentRequestByIDRequest,
GetPaymentRequestCapturesRequest,
ResendPaymentRequestAuthRequest
} from "xendit-node/payment_request/apis";

export {
CreateCustomerRequest,
GetCustomerByReferenceIDRequest,
GetCustomerRequest,
UpdateCustomerRequest
} from "xendit-node/customer/apis";

export {
GetAllTransactionsRequest,
GetBalanceRequest,
GetTransactionByIDRequest,
GetBalanceAccountTypeEnum
} from "xendit-node/balance_and_transaction/apis";

export {
RefundModel,
InvoiceModel,
PayoutModel,
PaymentMethodModel,
PaymentRequestModel,
CustomerModel,
BalanceTransactionModel,
};

0 comments on commit 98db5cb

Please sign in to comment.