privacy.com
Version:
Wrapper for the Privacy.com API using Axios and TypeScript
22 lines (21 loc) • 631 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const _1 = require(".");
const _defaultParams = {
filter: "NONE",
};
/**
* List all the funding accounts associated with the privacy account
*/
class ListFundingAccountsRequest extends _1.GetEndpoint {
constructor(params = _defaultParams) {
super();
this.path = "/fundingsource";
this.params = {};
if (params.filter === "BANK")
this.path += "/bank";
else if (params.filter === "CARD")
this.path += "/card";
}
}
exports.ListFundingAccountsRequest = ListFundingAccountsRequest;