UNPKG

tranzak-node

Version:
31 lines (23 loc) 758 B
/** * Copyright 2023 HolyCorn Software * The tranzak-node library * */ import SMSMessagingSection from "./sms/index.mjs"; import Transport from "../lib/transport.mjs"; import AccountManagementSection from "./account/index.mjs"; import PaymentAPI from "./payment/index.mjs"; import WebhooksProcessor from "./webhooks/index.mjs"; export default class TRANZAK { /** * * @param {tranzak_node.Credentials} credentials */ constructor(credentials) { const transport = new Transport(credentials) this.payment = new PaymentAPI(transport) this.account = new AccountManagementSection(transport) this.webhook = new WebhooksProcessor(this) this.sms = new SMSMessagingSection(transport) } }