Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 6 .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface RemoveSplitRequest {
/**
*
*/
export declare class DedicatedNUBAN extends BaseAPI {
export declare class DedicatedVirtualAccount extends BaseAPI {
/**
* Split Dedicated Account Transaction
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -203,4 +203,4 @@ class DedicatedNUBAN extends runtime_1.BaseAPI {
});
}
}
exports.DedicatedNUBAN = DedicatedNUBAN;
exports.DedicatedVirtualAccount = DedicatedVirtualAccount;
2 changes: 1 addition & 1 deletion 2 lib/apis/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 2 additions & 1 deletion 3 lib/apis/index.js
Original file line number Diff line number Diff line change
@@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -45,4 +45,4 @@ function DedicatedNubanCreateToJSON(value) {
'split_code': value.splitCode,
};
}
exports.DedicatedNubanCreateToJSON = DedicatedNubanCreateToJSON;
exports.DedicatedVirtualAccountCreateToJSON = DedicatedVirtualAccountCreateToJSON;
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -43,4 +43,4 @@ function DedicatedNubanSplitToJSON(value) {
'split_code': value.splitCode,
};
}
exports.DedicatedNubanSplitToJSON = DedicatedNubanSplitToJSON;
exports.DedicatedVirtualAccountSplitToJSON = DedicatedVirtualAccountSplitToJSON;
4 changes: 2 additions & 2 deletions 4 lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
6 changes: 3 additions & 3 deletions 6 lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion 2 lib/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion 2 package.json
Original file line number Diff line number Diff line change
@@ -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 <integrations@paystack.com> (https://paystack.com/docs)",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface RemoveSplitRequest {
/**
*
*/
export class DedicatedNUBAN extends BaseAPI {
export class DedicatedVirtualAccount extends BaseAPI {

/**
* Split Dedicated Account Transaction
Expand Down
2 changes: 1 addition & 1 deletion 2 src/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.