diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 23f35a6..1de0f39 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -6,7 +6,7 @@ src/apis/Balance.ts src/apis/BulkCharge.ts src/apis/Charge.ts src/apis/Customer.ts -src/apis/DedicatedNUBAN.ts +src/apis/DedicatedVirtualAccount.ts src/apis/Dispute.ts src/apis/Integration.ts src/apis/Page.ts @@ -38,8 +38,8 @@ src/models/CustomerRiskAction.ts src/models/CustomerUpdate.ts src/models/CustomerValidate.ts src/models/CustomerValidation.ts -src/models/DedicatedNubanCreate.ts -src/models/DedicatedNubanSplit.ts +src/models/DedicatedVirtualAccountCreate.ts +src/models/DedicatedVirtualAccountSplit.ts src/models/DisputeEvidence.ts src/models/DisputeResolve.ts src/models/DisputeUpdate.ts diff --git a/lib/apis/DedicatedNUBAN.d.ts b/lib/apis/DedicatedVirtualAccount.d.ts similarity index 96% rename from lib/apis/DedicatedNUBAN.d.ts rename to lib/apis/DedicatedVirtualAccount.d.ts index 913e79c..42969e9 100644 --- a/lib/apis/DedicatedNUBAN.d.ts +++ b/lib/apis/DedicatedVirtualAccount.d.ts @@ -46,7 +46,7 @@ export interface RemoveSplitRequest { /** * */ -export declare class DedicatedNUBAN extends BaseAPI { +export declare class DedicatedVirtualAccount extends BaseAPI { /** * Split Dedicated Account Transaction */ diff --git a/lib/apis/DedicatedNUBAN.js b/lib/apis/DedicatedVirtualAccount.js similarity index 98% rename from lib/apis/DedicatedNUBAN.js rename to lib/apis/DedicatedVirtualAccount.js index 1d037f1..e5b6898 100644 --- a/lib/apis/DedicatedNUBAN.js +++ b/lib/apis/DedicatedVirtualAccount.js @@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.DedicatedNUBAN = void 0; +exports.DedicatedVirtualAccount = void 0; const runtime_1 = require("../runtime"); const models_1 = require("../models"); /** * */ -class DedicatedNUBAN extends runtime_1.BaseAPI { +class DedicatedVirtualAccount extends runtime_1.BaseAPI { /** * Split Dedicated Account Transaction */ @@ -203,4 +203,4 @@ class DedicatedNUBAN extends runtime_1.BaseAPI { }); } } -exports.DedicatedNUBAN = DedicatedNUBAN; +exports.DedicatedVirtualAccount = DedicatedVirtualAccount; diff --git a/lib/apis/index.d.ts b/lib/apis/index.d.ts index ce87aca..51d0f44 100644 --- a/lib/apis/index.d.ts +++ b/lib/apis/index.d.ts @@ -2,7 +2,7 @@ export * as Balance from './Balance'; export * as BulkCharge from './BulkCharge'; export * as Charge from './Charge'; export * as Customer from './Customer'; -export * as DedicatedNUBAN from './DedicatedNUBAN'; +export * as DedicatedVirtualAccount from './DedicatedVirtualAccount'; export * as Dispute from './Dispute'; export * as Integration from './Integration'; export * as Page from './Page'; diff --git a/lib/apis/index.js b/lib/apis/index.js index 99736cd..7b00116 100644 --- a/lib/apis/index.js +++ b/lib/apis/index.js @@ -1,10 +1,11 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.Verification = exports.TransferRecipient = exports.Transfer = exports.Transaction = exports.Subscription = exports.Subaccount = exports.Split = exports.Settlement = exports.Refund = exports.Product = exports.Plan = exports.PaymentRequest = exports.Page = exports.Integration = exports.Dispute = exports.DedicatedVirtualAccount = exports.Customer = exports.Charge = exports.BulkCharge = exports.Balance = void 0; exports.Balance = require("./Balance"); exports.BulkCharge = require("./BulkCharge"); exports.Charge = require("./Charge"); exports.Customer = require("./Customer"); -exports.DedicatedNUBAN = require("./DedicatedNUBAN"); +exports.DedicatedVirtualAccount = require("./DedicatedVirtualAccount"); exports.Dispute = require("./Dispute"); exports.Integration = require("./Integration"); exports.Page = require("./Page"); diff --git a/lib/models/DedicatedNubanCreate.d.ts b/lib/models/DedicatedVirtualAccountCreate.d.ts similarity index 59% rename from lib/models/DedicatedNubanCreate.d.ts rename to lib/models/DedicatedVirtualAccountCreate.d.ts index 2026516..b3f016e 100644 --- a/lib/models/DedicatedNubanCreate.d.ts +++ b/lib/models/DedicatedVirtualAccountCreate.d.ts @@ -12,34 +12,34 @@ /** * * @export - * @interface DedicatedNubanCreate + * @interface DedicatedVirtualAccountCreate */ -export interface DedicatedNubanCreate { +export interface DedicatedVirtualAccountCreate { /** * Customer ID or code * @type {string} - * @memberof DedicatedNubanCreate + * @memberof DedicatedVirtualAccountCreate */ customer: string; /** * The bank slug for preferred bank. To get a list of available banks, use the List Providers endpoint * @type {string} - * @memberof DedicatedNubanCreate + * @memberof DedicatedVirtualAccountCreate */ preferredBank?: string; /** * Subaccount code of the account you want to split the transaction with * @type {string} - * @memberof DedicatedNubanCreate + * @memberof DedicatedVirtualAccountCreate */ subaccount?: string; /** * Split code consisting of the lists of accounts you want to split the transaction with * @type {string} - * @memberof DedicatedNubanCreate + * @memberof DedicatedVirtualAccountCreate */ splitCode?: string; } -export declare function DedicatedNubanCreateFromJSON(json: any): DedicatedNubanCreate; -export declare function DedicatedNubanCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedNubanCreate; -export declare function DedicatedNubanCreateToJSON(value?: DedicatedNubanCreate | null): any; +export declare function DedicatedVirtualAccountCreateFromJSON(json: any): DedicatedVirtualAccountCreate; +export declare function DedicatedVirtualAccountCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedVirtualAccountCreate; +export declare function DedicatedVirtualAccountCreateToJSON(value?: DedicatedVirtualAccountCreate | null): any; diff --git a/lib/models/DedicatedNubanCreate.js b/lib/models/DedicatedVirtualAccountCreate.js similarity index 65% rename from lib/models/DedicatedNubanCreate.js rename to lib/models/DedicatedVirtualAccountCreate.js index bbeefd3..6de900d 100644 --- a/lib/models/DedicatedNubanCreate.js +++ b/lib/models/DedicatedVirtualAccountCreate.js @@ -13,13 +13,13 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.DedicatedNubanCreateToJSON = exports.DedicatedNubanCreateFromJSONTyped = exports.DedicatedNubanCreateFromJSON = void 0; +exports.DedicatedVirtualAccountCreateToJSON = exports.DedicatedVirtualAccountCreateFromJSONTyped = exports.DedicatedVirtualAccountCreateFromJSON = void 0; const runtime_1 = require("../runtime"); -function DedicatedNubanCreateFromJSON(json) { - return DedicatedNubanCreateFromJSONTyped(json, false); +function DedicatedVirtualAccountCreateFromJSON(json) { + return DedicatedVirtualAccountCreateFromJSONTyped(json, false); } -exports.DedicatedNubanCreateFromJSON = DedicatedNubanCreateFromJSON; -function DedicatedNubanCreateFromJSONTyped(json, ignoreDiscriminator) { +exports.DedicatedVirtualAccountCreateFromJSON = DedicatedVirtualAccountCreateFromJSON; +function DedicatedVirtualAccountCreateFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } @@ -30,8 +30,8 @@ function DedicatedNubanCreateFromJSONTyped(json, ignoreDiscriminator) { 'splitCode': !runtime_1.exists(json, 'split_code') ? undefined : json['split_code'], }; } -exports.DedicatedNubanCreateFromJSONTyped = DedicatedNubanCreateFromJSONTyped; -function DedicatedNubanCreateToJSON(value) { +exports.DedicatedVirtualAccountCreateFromJSONTyped = DedicatedVirtualAccountCreateFromJSONTyped; +function DedicatedVirtualAccountCreateToJSON(value) { if (value === undefined) { return undefined; } @@ -45,4 +45,4 @@ function DedicatedNubanCreateToJSON(value) { 'split_code': value.splitCode, }; } -exports.DedicatedNubanCreateToJSON = DedicatedNubanCreateToJSON; +exports.DedicatedVirtualAccountCreateToJSON = DedicatedVirtualAccountCreateToJSON; diff --git a/lib/models/DedicatedNubanSplit.d.ts b/lib/models/DedicatedVirtualAccountSplit.d.ts similarity index 57% rename from lib/models/DedicatedNubanSplit.d.ts rename to lib/models/DedicatedVirtualAccountSplit.d.ts index 34b1a5f..6e8ab53 100644 --- a/lib/models/DedicatedNubanSplit.d.ts +++ b/lib/models/DedicatedVirtualAccountSplit.d.ts @@ -12,28 +12,28 @@ /** * * @export - * @interface DedicatedNubanSplit + * @interface DedicatedVirtualAccountSplit */ -export interface DedicatedNubanSplit { +export interface DedicatedVirtualAccountSplit { /** * Valid Dedicated virtual account * @type {string} - * @memberof DedicatedNubanSplit + * @memberof DedicatedVirtualAccountSplit */ accountNumber: string; /** * Subaccount code of the account you want to split the transaction with * @type {string} - * @memberof DedicatedNubanSplit + * @memberof DedicatedVirtualAccountSplit */ subaccount?: string; /** * Split code consisting of the lists of accounts you want to split the transaction with * @type {string} - * @memberof DedicatedNubanSplit + * @memberof DedicatedVirtualAccountSplit */ splitCode?: string; } -export declare function DedicatedNubanSplitFromJSON(json: any): DedicatedNubanSplit; -export declare function DedicatedNubanSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedNubanSplit; -export declare function DedicatedNubanSplitToJSON(value?: DedicatedNubanSplit | null): any; +export declare function DedicatedVirtualAccountSplitFromJSON(json: any): DedicatedVirtualAccountSplit; +export declare function DedicatedVirtualAccountSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedVirtualAccountSplit; +export declare function DedicatedVirtualAccountSplitToJSON(value?: DedicatedVirtualAccountSplit | null): any; diff --git a/lib/models/DedicatedNubanSplit.js b/lib/models/DedicatedVirtualAccountSplit.js similarity index 62% rename from lib/models/DedicatedNubanSplit.js rename to lib/models/DedicatedVirtualAccountSplit.js index a056e75..23cf29d 100644 --- a/lib/models/DedicatedNubanSplit.js +++ b/lib/models/DedicatedVirtualAccountSplit.js @@ -13,13 +13,13 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.DedicatedNubanSplitToJSON = exports.DedicatedNubanSplitFromJSONTyped = exports.DedicatedNubanSplitFromJSON = void 0; +exports.DedicatedVirtualAccountSplitToJSON = exports.DedicatedVirtualAccountSplitFromJSONTyped = exports.DedicatedVirtualAccountSplitFromJSON = void 0; const runtime_1 = require("../runtime"); -function DedicatedNubanSplitFromJSON(json) { - return DedicatedNubanSplitFromJSONTyped(json, false); +function DedicatedVirtualAccountSplitFromJSON(json) { + return DedicatedVirtualAccountSplitFromJSONTyped(json, false); } -exports.DedicatedNubanSplitFromJSON = DedicatedNubanSplitFromJSON; -function DedicatedNubanSplitFromJSONTyped(json, ignoreDiscriminator) { +exports.DedicatedVirtualAccountSplitFromJSON = DedicatedVirtualAccountSplitFromJSON; +function DedicatedVirtualAccountSplitFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } @@ -29,8 +29,8 @@ function DedicatedNubanSplitFromJSONTyped(json, ignoreDiscriminator) { 'splitCode': !runtime_1.exists(json, 'split_code') ? undefined : json['split_code'], }; } -exports.DedicatedNubanSplitFromJSONTyped = DedicatedNubanSplitFromJSONTyped; -function DedicatedNubanSplitToJSON(value) { +exports.DedicatedVirtualAccountSplitFromJSONTyped = DedicatedVirtualAccountSplitFromJSONTyped; +function DedicatedVirtualAccountSplitToJSON(value) { if (value === undefined) { return undefined; } @@ -43,4 +43,4 @@ function DedicatedNubanSplitToJSON(value) { 'split_code': value.splitCode, }; } -exports.DedicatedNubanSplitToJSON = DedicatedNubanSplitToJSON; +exports.DedicatedVirtualAccountSplitToJSON = DedicatedVirtualAccountSplitToJSON; diff --git a/lib/models/index.d.ts b/lib/models/index.d.ts index 64163a4..c55803d 100644 --- a/lib/models/index.d.ts +++ b/lib/models/index.d.ts @@ -12,8 +12,8 @@ export * from './CustomerRiskAction'; export * from './CustomerUpdate'; export * from './CustomerValidate'; export * from './CustomerValidation'; -export * from './DedicatedNubanCreate'; -export * from './DedicatedNubanSplit'; +export * from './DedicatedVirtualAccountCreate'; +export * from './DedicatedVirtualAccountSplit'; export * from './DisputeEvidence'; export * from './DisputeResolve'; export * from './DisputeUpdate'; diff --git a/lib/models/index.js b/lib/models/index.js index a6553c5..e23c199 100644 --- a/lib/models/index.js +++ b/lib/models/index.js @@ -7,7 +7,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); __exportStar(require("./Bank"), exports); @@ -24,8 +24,8 @@ __exportStar(require("./CustomerRiskAction"), exports); __exportStar(require("./CustomerUpdate"), exports); __exportStar(require("./CustomerValidate"), exports); __exportStar(require("./CustomerValidation"), exports); -__exportStar(require("./DedicatedNubanCreate"), exports); -__exportStar(require("./DedicatedNubanSplit"), exports); +__exportStar(require("./DedicatedVirtualAccountCreate"), exports); +__exportStar(require("./DedicatedVirtualAccountSplit"), exports); __exportStar(require("./DisputeEvidence"), exports); __exportStar(require("./DisputeResolve"), exports); __exportStar(require("./DisputeUpdate"), exports); diff --git a/lib/runtime.js b/lib/runtime.js index e3aee9f..04f6a7a 100644 --- a/lib/runtime.js +++ b/lib/runtime.js @@ -51,7 +51,7 @@ class BaseAPI { path: tempPath, headers: { "authorization": `Bearer ${this.apiKey}`, - "paystack-version": `paystack - 0.5.1` + "paystack-version": `@paystack/node - 1.0.0-beta.3` } }; return new Promise((resolve, reject) => { diff --git a/package.json b/package.json index 981d4c8..64ba6f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paystack/node", - "version": "1.0.0-beta.2", + "version": "1.0.0-beta.3", "description": "Paystack API wrapper for Node", "author": "Paystack (https://paystack.com/docs)", "keywords": [ diff --git a/src/apis/DedicatedNUBAN.ts b/src/apis/DedicatedVirtualAccount.ts similarity index 99% rename from src/apis/DedicatedNUBAN.ts rename to src/apis/DedicatedVirtualAccount.ts index d42c9a5..af13c57 100644 --- a/src/apis/DedicatedNUBAN.ts +++ b/src/apis/DedicatedVirtualAccount.ts @@ -60,7 +60,7 @@ export interface RemoveSplitRequest { /** * */ -export class DedicatedNUBAN extends BaseAPI { +export class DedicatedVirtualAccount extends BaseAPI { /** * Split Dedicated Account Transaction diff --git a/src/apis/index.ts b/src/apis/index.ts index ce87aca..51d0f44 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -2,7 +2,7 @@ export * as Balance from './Balance'; export * as BulkCharge from './BulkCharge'; export * as Charge from './Charge'; export * as Customer from './Customer'; -export * as DedicatedNUBAN from './DedicatedNUBAN'; +export * as DedicatedVirtualAccount from './DedicatedVirtualAccount'; export * as Dispute from './Dispute'; export * as Integration from './Integration'; export * as Page from './Page'; diff --git a/src/models/DedicatedNubanCreate.ts b/src/models/DedicatedVirtualAccountCreate.ts similarity index 72% rename from src/models/DedicatedNubanCreate.ts rename to src/models/DedicatedVirtualAccountCreate.ts index a795558..a82d0d3 100644 --- a/src/models/DedicatedNubanCreate.ts +++ b/src/models/DedicatedVirtualAccountCreate.ts @@ -16,40 +16,40 @@ import { exists, mapValues } from '../runtime'; /** * * @export - * @interface DedicatedNubanCreate + * @interface DedicatedVirtualAccountCreate */ -export interface DedicatedNubanCreate { +export interface DedicatedVirtualAccountCreate { /** * Customer ID or code * @type {string} - * @memberof DedicatedNubanCreate + * @memberof DedicatedVirtualAccountCreate */ customer: string; /** * The bank slug for preferred bank. To get a list of available banks, use the List Providers endpoint * @type {string} - * @memberof DedicatedNubanCreate + * @memberof DedicatedVirtualAccountCreate */ preferredBank?: string; /** * Subaccount code of the account you want to split the transaction with * @type {string} - * @memberof DedicatedNubanCreate + * @memberof DedicatedVirtualAccountCreate */ subaccount?: string; /** * Split code consisting of the lists of accounts you want to split the transaction with * @type {string} - * @memberof DedicatedNubanCreate + * @memberof DedicatedVirtualAccountCreate */ splitCode?: string; } -export function DedicatedNubanCreateFromJSON(json: any): DedicatedNubanCreate { - return DedicatedNubanCreateFromJSONTyped(json, false); +export function DedicatedVirtualAccountCreateFromJSON(json: any): DedicatedVirtualAccountCreate { + return DedicatedVirtualAccountCreateFromJSONTyped(json, false); } -export function DedicatedNubanCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedNubanCreate { +export function DedicatedVirtualAccountCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedVirtualAccountCreate { if ((json === undefined) || (json === null)) { return json; } @@ -62,7 +62,7 @@ export function DedicatedNubanCreateFromJSONTyped(json: any, ignoreDiscriminator }; } -export function DedicatedNubanCreateToJSON(value?: DedicatedNubanCreate | null): any { +export function DedicatedVirtualAccountCreateToJSON(value?: DedicatedVirtualAccountCreate | null): any { if (value === undefined) { return undefined; } diff --git a/src/models/DedicatedNubanSplit.ts b/src/models/DedicatedVirtualAccountSplit.ts similarity index 70% rename from src/models/DedicatedNubanSplit.ts rename to src/models/DedicatedVirtualAccountSplit.ts index 53c59b8..02c94db 100644 --- a/src/models/DedicatedNubanSplit.ts +++ b/src/models/DedicatedVirtualAccountSplit.ts @@ -16,34 +16,34 @@ import { exists, mapValues } from '../runtime'; /** * * @export - * @interface DedicatedNubanSplit + * @interface DedicatedVirtualAccountSplit */ -export interface DedicatedNubanSplit { +export interface DedicatedVirtualAccountSplit { /** * Valid Dedicated virtual account * @type {string} - * @memberof DedicatedNubanSplit + * @memberof DedicatedVirtualAccountSplit */ accountNumber: string; /** * Subaccount code of the account you want to split the transaction with * @type {string} - * @memberof DedicatedNubanSplit + * @memberof DedicatedVirtualAccountSplit */ subaccount?: string; /** * Split code consisting of the lists of accounts you want to split the transaction with * @type {string} - * @memberof DedicatedNubanSplit + * @memberof DedicatedVirtualAccountSplit */ splitCode?: string; } -export function DedicatedNubanSplitFromJSON(json: any): DedicatedNubanSplit { - return DedicatedNubanSplitFromJSONTyped(json, false); +export function DedicatedVirtualAccountSplitFromJSON(json: any): DedicatedVirtualAccountSplit { + return DedicatedVirtualAccountSplitFromJSONTyped(json, false); } -export function DedicatedNubanSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedNubanSplit { +export function DedicatedVirtualAccountSplitFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedVirtualAccountSplit { if ((json === undefined) || (json === null)) { return json; } @@ -55,7 +55,7 @@ export function DedicatedNubanSplitFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function DedicatedNubanSplitToJSON(value?: DedicatedNubanSplit | null): any { +export function DedicatedVirtualAccountSplitToJSON(value?: DedicatedVirtualAccountSplit | null): any { if (value === undefined) { return undefined; } diff --git a/src/models/index.ts b/src/models/index.ts index 64163a4..c55803d 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -12,8 +12,8 @@ export * from './CustomerRiskAction'; export * from './CustomerUpdate'; export * from './CustomerValidate'; export * from './CustomerValidation'; -export * from './DedicatedNubanCreate'; -export * from './DedicatedNubanSplit'; +export * from './DedicatedVirtualAccountCreate'; +export * from './DedicatedVirtualAccountSplit'; export * from './DisputeEvidence'; export * from './DisputeResolve'; export * from './DisputeUpdate'; diff --git a/src/runtime.ts b/src/runtime.ts index e409c21..be8eb82 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -55,7 +55,7 @@ export class BaseAPI { path: tempPath, headers: { "authorization": `Bearer ${this.apiKey}`, - "paystack-version": `@paystack/node - 1.0.0-beta.2` + "paystack-version": `@paystack/node - 1.0.0-beta.3` } }