generate build for other targets

This commit is contained in:
Ricardo Ambrogi
2020-04-21 11:56:29 +02:00
parent ad33e0b6db
commit 18b79b664e
50 changed files with 741 additions and 127 deletions

4
dist/es5/main.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "@adyen/api-library",
"version": "3.1.1",
"version": "3.1.3",
"description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.",
"main": "dist/lib/src/index.js",
"types": "dist/lib/src/index.d.ts",
@@ -39,23 +39,26 @@
"author": "Ricardo Ambrogi",
"license": "MIT",
"devDependencies": {
"@types/jest": "25.1.4",
"@types/jest": "25.2.1",
"@types/nock": "11.1.0",
"@typescript-eslint/eslint-plugin": "2.24.0",
"@typescript-eslint/parser": "2.24.0",
"coveralls": "3.0.9",
"@typescript-eslint/eslint-plugin": "2.27.0",
"@typescript-eslint/parser": "2.27.0",
"acorn": "^7.1.1",
"coveralls": "3.0.11",
"eslint": "6.8.0",
"jest": "25.1.0",
"jest": "25.3.0",
"kind-of": "^6.0.3",
"minimist": ">=1.2.3",
"nock": "12.0.3",
"release-it": "13.1.1",
"ts-jest": "25.2.1",
"ts-loader": "6.2.1",
"release-it": "13.5.2",
"ts-jest": "25.3.1",
"ts-loader": "6.2.2",
"typescript": "3.8.3",
"webpack": "4.42.0",
"webpack": "4.42.1",
"webpack-cli": "3.3.11"
},
"dependencies": {
"@types/node": "13.9.1",
"@types/node": "13.11.0",
"https-proxy-agent": "5.0.0"
}
}

View File

@@ -1,11 +1,11 @@
export declare const paymentsResultMultibancoSuccess: {
additionalData: {
"cvcResult": string;
"avsResult": string;
cvcResult: string;
avsResult: string;
"comprafacil.deadline": string;
"comprafacil.reference": string;
"paymentMethod": string;
"paymentMethodVariant": string;
paymentMethod: string;
paymentMethodVariant: string;
"comprafacil.entity": string;
"comprafacil.amount": string;
};

View File

@@ -36,8 +36,8 @@ export declare const listRecurringDetailsSuccess: {
recurringDetailReference: string;
tokenDetails: {
tokenData: {
"BillingAgreementId": string;
"EmailId": string;
BillingAgreementId: string;
EmailId: string;
"PayPal.PayerId": string;
};
tokenDataType: string;

View File

@@ -54,6 +54,7 @@ declare class Client {
static RECURRING_API_VERSION: string;
static MARKETPAY_ACCOUNT_API_VERSION: string;
static MARKETPAY_FUND_API_VERSION: string;
static MARKETPAY_HOP_API_VERSION: string;
static MARKETPAY_NOTIFICATION_API_VERSION: string;
static LIB_NAME: string;
static LIB_VERSION: string;

View File

@@ -100,6 +100,7 @@ var Client = /** @class */ (function () {
Client.RECURRING_API_VERSION = "v49";
Client.MARKETPAY_ACCOUNT_API_VERSION = "v5";
Client.MARKETPAY_FUND_API_VERSION = "v5";
Client.MARKETPAY_HOP_API_VERSION = "v1";
Client.MARKETPAY_NOTIFICATION_API_VERSION = "v5";
Client.LIB_NAME = "adyen-node-api-library";
Client.LIB_VERSION = version;

View File

@@ -1 +1 @@
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,uBAAuB,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAC,OAAO,EAAC,MAAM,iBAAiB,CAAC;AAyBxC;IA6BI,gBAAmB,OAAyB;QACxC,IAAI,OAAO,CAAC,MAAM,EAAE;YAChB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;SAChC;aAAM;YACH,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;SAC9B;QAED,IAAM,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;QACnE,IAAI,WAAW,EAAE;YACb,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,OAAO,CAAC,qBAAqB,CAAC,CAAC;YAChE,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CA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C,GAAG,IAAI,CAAC;IAC1C,eAAQ,GAAG,wBAAwB,CAAC;IACpC,kBAAW,GAAW,OAAO,CAAC;IAC9B,6BAAsB,GAAG,0CAA0C,CAAC;IACpE,oCAA6B,GAAG,2CAA2C,CAAC;IAC5E,2BAAoB,GAAG,KAAK,CAAC;IAC7B,4BAAqB,GAAG,yBAAyB,CAAC;IAClD,6BAAsB,GAAG,KAAK,CAAC;IAC/B,mCAA4B,GAAG,IAAI,CAAC;IACpC,iCAA0B,GAAG,qCAAqC,CAAC;IACnE,iCAA0B,GAAG,qCAAqC,CAAC;IACnE,wBAAiB,GAAG,UAAU,CAAC;IA2EjD,aAAC;CAAA,AAnGD,IAmGC;AAED,eAAe,MAAM,CAAC"}

View File

@@ -6,3 +6,4 @@ export { default as Recurring } from "./recurring";
export { default as Modification } from "./modification";
export { default as BinLookup } from "./binLookup";
export { default as Payout } from "./payout";
export { default as Platforms } from "./platforms";

View File

@@ -26,4 +26,5 @@ export { default as Recurring } from "./recurring";
export { default as Modification } from "./modification";
export { default as BinLookup } from "./binLookup";
export { default as Payout } from "./payout";
export { default as Platforms } from "./platforms";
//# sourceMappingURL=index.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA"}

View File

@@ -0,0 +1,89 @@
import Service from "../service";
import Client from "../client";
import PlatformsAccount, { AccountTypesEnum } from "./resource/platforms/account";
import PlatformsFund from "./resource/platforms/fund";
import PlatformsHostedOnboardingPage from "./resource/platforms/hop";
declare type AccountType = AccountTypesEnum.Accounts;
declare type VerificationType = AccountTypesEnum.Verification;
declare type AccountHoldersType = AccountTypesEnum.AccountHolders;
declare type AccountsAccount = PlatformsAccount<AccountType>;
declare type AccountsVerification = PlatformsAccount<VerificationType>;
declare type AccountsAccountHolders = PlatformsAccount<AccountHoldersType>;
declare type PlatformsTypes = AccountsAccount | AccountsVerification | AccountsAccountHolders | PlatformsFund | PlatformsHostedOnboardingPage;
declare class Platforms extends Service {
private readonly _closeAccount;
private readonly _updateAccount;
private readonly _createAccount;
private readonly _uploadDocument;
private readonly _getUploadedDocuments;
private readonly _deleteBankAccounts;
private readonly _deletePayoutMethods;
private readonly _deleteShareholders;
private readonly _checkAccountHolder;
private readonly _createAccountHolder;
private readonly _getAccountHolder;
private readonly _updateAccountHolder;
private readonly _suspendAccountHolder;
private readonly _unSuspendAccountHolder;
private readonly _closeAccountHolder;
private readonly _accountHolderBalance;
private readonly _accountHolderTransactionList;
private readonly _payoutAccountHolder;
private readonly _transferFunds;
private readonly _refundFundsTransfer;
private readonly _setupBeneficiary;
private readonly _refundNotPaidOutTransfers;
private readonly _getOnboardingUrl;
private readonly _createNotificationConfiguration;
private readonly _getNotificationConfiguration;
private readonly _getNotificationConfigurationList;
private readonly _testNotificationConfiguration;
private readonly _updateNotificationConfiguration;
private readonly _deleteNotificationConfiguration;
constructor(client: Client);
createRequest: <T extends PlatformsTypes, U, V>(service: T) => (request: U) => Promise<V>;
get Account(): {
accountHolders: {
unSuspendAccountHolder: (request: IPlatformsAccount.UnSuspendAccountHolderRequest) => Promise<IPlatformsAccount.UnSuspendAccountHolderResponse>;
getAccountHolder: (request: IPlatformsAccount.GetAccountHolderRequest) => Promise<IPlatformsAccount.GetAccountHolderResponse>;
suspendAccountHolder: (request: IPlatformsAccount.SuspendAccountHolderRequest) => Promise<IPlatformsAccount.SuspendAccountHolderResponse>;
createAccountHolder: (request: IPlatformsAccount.CreateAccountRequest) => Promise<IPlatformsAccount.CreateAccountHolderResponse>;
updateAccountHolder: (request: IPlatformsAccount.UpdateAccountHolderRequest) => Promise<IPlatformsAccount.UpdateAccountHolderResponse>;
closeAccountHolder: (request: IPlatformsAccount.CloseAccountHolderRequest) => Promise<IPlatformsAccount.CloseAccountHolderResponse>;
};
accounts: {
closeAccount: (request: IPlatformsAccount.CloseAccountRequest) => Promise<IPlatformsAccount.CloseAccountResponse>;
createAccount: (request: IPlatformsAccount.CreateAccountRequest) => Promise<IPlatformsAccount.CreateAccountResponse>;
updateAccount: (request: IPlatformsAccount.UpdateAccountRequest) => Promise<IPlatformsAccount.UpdateAccountHolderResponse>;
};
verification: {
getUploadedDocuments: (request: IPlatformsAccount.GetUploadedDocumentsRequest) => Promise<IPlatformsAccount.GetUploadedDocumentsResponse>;
deleteShareholders: (request: IPlatformsAccount.DeleteShareholderRequest) => Promise<IPlatformsAccount.GenericResponse>;
deleteBankAccounts: (request: IPlatformsAccount.DeleteBankAccountRequest) => Promise<IPlatformsAccount.GenericResponse>;
deletePayoutMethods: (request: IPlatformsAccount.DeletePayoutMethodRequest) => Promise<IPlatformsAccount.GenericResponse>;
checkAccountHolder: (request: IPlatformsAccount.PerformVerificationRequest) => Promise<IPlatformsAccount.GenericResponse>;
uploadDocument: (request: IPlatformsAccount.UploadDocumentRequest) => Promise<IPlatformsAccount.GetUploadedDocumentsResponse>;
};
};
get Fund(): {
refundNotPaidOutTransfers: (request: IPlatformsFund.RefundNotPaidOutTransfersRequest) => Promise<IPlatformsFund.RefundNotPaidOutTransfersResponse>;
accountHolderTransactionList: (request: IPlatformsFund.AccountHolderTransactionListRequest) => Promise<IPlatformsFund.AccountHolderTransactionListResponse>;
setupBeneficiary: (request: IPlatformsFund.SetupBeneficiaryRequest) => Promise<IPlatformsFund.SetupBeneficiaryResponse>;
transferFunds: (request: IPlatformsFund.TransferFundsRequest) => Promise<IPlatformsFund.TransferFundsResponse>;
refundFundsTransfer: (request: IPlatformsFund.RefundFundsTransferRequest) => Promise<IPlatformsFund.RefundFundsTransferResponse>;
payoutAccountHolder: (request: IPlatformsFund.PayoutAccountHolderRequest) => Promise<IPlatformsFund.PayoutAccountHolderResponse>;
accountHolderBalance: (request: IPlatformsFund.AccountHolderBalanceRequest) => Promise<IPlatformsFund.AccountHolderBalanceResponse>;
};
get HostedOnboardingPage(): {
getOnboardingUrl: (request: IPlatformsHostedOnboardingPage.GetOnboardingUrlRequest) => Promise<IPlatformsHostedOnboardingPage.GetOnboardingUrlResponse>;
};
get NotificationConfiguration(): {
createNotificationConfiguration: (request: IPlatformsNotificationConfiguration.CreateNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
updateNotificationConfiguration: (request: IPlatformsNotificationConfiguration.UpdateNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
getNotificationConfiguration: (request: IPlatformsNotificationConfiguration.GetNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
deleteNotificationConfiguration: (request: IPlatformsNotificationConfiguration.DeleteNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GenericResponse>;
testNotificationConfiguration: (request: IPlatformsNotificationConfiguration.TestNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.TestNotificationConfigurationResponse>;
getNotificationConfigurationList: (request: null) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationListResponse>;
};
}
export default Platforms;

145
dist/lib-esm/src/services/platforms.js vendored Normal file
View File

@@ -0,0 +1,145 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import Service from "../service";
import PlatformsAccount from "./resource/platforms/account";
import getJsonResponse from "./../helpers/getJsonResponse";
import PlatformsFund from "./resource/platforms/fund";
import PlatformsHostedOnboardingPage from "./resource/platforms/hop";
import PlatformsNotificationConfiguration from "./resource/platforms/notificationConfiguration";
var Platforms = /** @class */ (function (_super) {
__extends(Platforms, _super);
function Platforms(client) {
var _this = _super.call(this, client) || this;
_this.createRequest = function (service) {
return function (request) { return getJsonResponse(service, request); };
};
// Account
_this._closeAccount = new PlatformsAccount(_this, "/closeAccount");
_this._updateAccount = new PlatformsAccount(_this, "/updateAccount");
_this._createAccount = new PlatformsAccount(_this, "/createAccount");
_this._uploadDocument = new PlatformsAccount(_this, "/uploadDocument");
_this._getUploadedDocuments = new PlatformsAccount(_this, "/getUploadedDocuments");
_this._deleteBankAccounts = new PlatformsAccount(_this, "/deleteBankAccounts");
_this._deletePayoutMethods = new PlatformsAccount(_this, "/deletePayoutMethods");
_this._deleteShareholders = new PlatformsAccount(_this, "/deleteShareholders");
_this._checkAccountHolder = new PlatformsAccount(_this, "/checkAccountHolder");
_this._createAccountHolder = new PlatformsAccount(_this, "/createAccountHolder");
_this._getAccountHolder = new PlatformsAccount(_this, "/getAccountHolder");
_this._updateAccountHolder = new PlatformsAccount(_this, "/updateAccountHolder");
_this._suspendAccountHolder = new PlatformsAccount(_this, "/suspendAccountHolder");
_this._unSuspendAccountHolder = new PlatformsAccount(_this, "/unSuspendAccountHolder");
_this._closeAccountHolder = new PlatformsAccount(_this, "/closeAccountHolder");
// Fund
_this._accountHolderBalance = new PlatformsFund(_this, "/accountHolderBalance");
_this._accountHolderTransactionList = new PlatformsFund(_this, "/accountHolderTransactionList");
_this._payoutAccountHolder = new PlatformsFund(_this, "/payoutAccountHolder");
_this._transferFunds = new PlatformsFund(_this, "/transferFunds");
_this._refundFundsTransfer = new PlatformsFund(_this, "/refundFundsTransfer");
_this._setupBeneficiary = new PlatformsFund(_this, "/setupBeneficiary");
_this._refundNotPaidOutTransfers = new PlatformsFund(_this, "/refundNotPaidOutTransfers");
// HOP
_this._getOnboardingUrl = new PlatformsHostedOnboardingPage(_this, "/getOnboardingUrl");
// Notification Configuration
_this._createNotificationConfiguration = new PlatformsNotificationConfiguration(_this, "/createNotificationConfiguration");
_this._getNotificationConfiguration = new PlatformsNotificationConfiguration(_this, "/getNotificationConfiguration");
_this._getNotificationConfigurationList = new PlatformsNotificationConfiguration(_this, "/getNotificationConfigurationList");
_this._testNotificationConfiguration = new PlatformsNotificationConfiguration(_this, "/testNotificationConfiguration");
_this._updateNotificationConfiguration = new PlatformsNotificationConfiguration(_this, "/updateNotificationConfiguration");
_this._deleteNotificationConfiguration = new PlatformsNotificationConfiguration(_this, "/deleteNotificationConfigurations");
return _this;
}
Object.defineProperty(Platforms.prototype, "Account", {
get: function () {
var closeAccount = this.createRequest(this._closeAccount);
var updateAccount = this.createRequest(this._updateAccount);
var createAccount = this.createRequest(this._createAccount);
var uploadDocument = this.createRequest(this._uploadDocument);
var getUploadedDocuments = this.createRequest(this._getUploadedDocuments);
var deleteBankAccounts = this.createRequest(this._deleteBankAccounts);
var deletePayoutMethods = this.createRequest(this._deletePayoutMethods);
var deleteShareholders = this.createRequest(this._deleteShareholders);
var checkAccountHolder = this.createRequest(this._checkAccountHolder);
var createAccountHolder = this.createRequest(this._createAccountHolder);
var getAccountHolder = this.createRequest(this._getAccountHolder);
var updateAccountHolder = this.createRequest(this._updateAccountHolder);
var suspendAccountHolder = this.createRequest(this._suspendAccountHolder);
var unSuspendAccountHolder = this.createRequest(this._unSuspendAccountHolder);
var closeAccountHolder = this.createRequest(this._closeAccountHolder);
var accounts = { closeAccount: closeAccount, updateAccount: updateAccount, createAccount: createAccount };
var verification = { uploadDocument: uploadDocument, getUploadedDocuments: getUploadedDocuments, deleteBankAccounts: deleteBankAccounts, deletePayoutMethods: deletePayoutMethods, deleteShareholders: deleteShareholders, checkAccountHolder: checkAccountHolder };
var accountHolders = { createAccountHolder: createAccountHolder, getAccountHolder: getAccountHolder, updateAccountHolder: updateAccountHolder, suspendAccountHolder: suspendAccountHolder, unSuspendAccountHolder: unSuspendAccountHolder, closeAccountHolder: closeAccountHolder };
return { accounts: accounts, verification: verification, accountHolders: accountHolders };
},
enumerable: true,
configurable: true
});
Object.defineProperty(Platforms.prototype, "Fund", {
get: function () {
var accountHolderBalance = this.createRequest(this._accountHolderBalance);
var accountHolderTransactionList = this.createRequest(this._accountHolderTransactionList);
var payoutAccountHolder = this.createRequest(this._payoutAccountHolder);
var transferFunds = this.createRequest(this._transferFunds);
var refundFundsTransfer = this.createRequest(this._refundFundsTransfer);
var setupBeneficiary = this.createRequest(this._setupBeneficiary);
var refundNotPaidOutTransfers = this.createRequest(this._refundNotPaidOutTransfers);
return { accountHolderBalance: accountHolderBalance, accountHolderTransactionList: accountHolderTransactionList, payoutAccountHolder: payoutAccountHolder, refundFundsTransfer: refundFundsTransfer, transferFunds: transferFunds, setupBeneficiary: setupBeneficiary, refundNotPaidOutTransfers: refundNotPaidOutTransfers };
},
enumerable: true,
configurable: true
});
Object.defineProperty(Platforms.prototype, "HostedOnboardingPage", {
get: function () {
var getOnboardingUrl = this.createRequest(this._getOnboardingUrl);
return { getOnboardingUrl: getOnboardingUrl };
},
enumerable: true,
configurable: true
});
Object.defineProperty(Platforms.prototype, "NotificationConfiguration", {
get: function () {
var createNotificationConfiguration = this.createRequest(this._createNotificationConfiguration);
var getNotificationConfiguration = this.createRequest(this._getNotificationConfiguration);
var getNotificationConfigurationList = this.createRequest(this._getNotificationConfigurationList);
var testNotificationConfiguration = this.createRequest(this._testNotificationConfiguration);
var updateNotificationConfiguration = this.createRequest(this._updateNotificationConfiguration);
var deleteNotificationConfiguration = this.createRequest(this._deleteNotificationConfiguration);
return { createNotificationConfiguration: createNotificationConfiguration, getNotificationConfiguration: getNotificationConfiguration, getNotificationConfigurationList: getNotificationConfigurationList, testNotificationConfiguration: testNotificationConfiguration, updateNotificationConfiguration: updateNotificationConfiguration, deleteNotificationConfiguration: deleteNotificationConfiguration, };
},
enumerable: true,
configurable: true
});
return Platforms;
}(Service));
export default Platforms;
//# sourceMappingURL=platforms.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,19 @@
import Service from "../../../service";
import Resource from "../../resource";
declare type AccountHoldersEndpoints = "/createAccountHolder" | "/getAccountHolder" | "/updateAccountHolder" | "/suspendAccountHolder" | "/unSuspendAccountHolder" | "/closeAccountHolder";
declare type VerificationEndpoints = "/uploadDocument" | "/getUploadedDocuments" | "/deleteBankAccounts" | "/deletePayoutMethods" | "/deleteShareholders" | "/checkAccountHolder";
declare type AccountsEndpoints = "/createAccount" | "/updateAccount" | "/closeAccount";
export declare enum AccountTypesEnum {
AccountHolders = "AccountHolders",
Accounts = "Accounts",
Verification = "Verification"
}
export interface AccountTypes {
[AccountTypesEnum.AccountHolders]: AccountHoldersEndpoints;
[AccountTypesEnum.Accounts]: AccountsEndpoints;
[AccountTypesEnum.Verification]: VerificationEndpoints;
}
declare class PlatformsAccount<T extends AccountTypesEnum> extends Resource {
constructor(service: Service, endpoint: AccountTypes[T]);
}
export default PlatformsAccount;

View File

@@ -0,0 +1,50 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import Client from "../../../client";
import Resource from "../../resource";
export var AccountTypesEnum;
(function (AccountTypesEnum) {
AccountTypesEnum["AccountHolders"] = "AccountHolders";
AccountTypesEnum["Accounts"] = "Accounts";
AccountTypesEnum["Verification"] = "Verification";
})(AccountTypesEnum || (AccountTypesEnum = {}));
var PlatformsAccount = /** @class */ (function (_super) {
__extends(PlatformsAccount, _super);
function PlatformsAccount(service, endpoint) {
return _super.call(this, service, service.client.config.marketPayEndpoint + "/Account/" + Client.MARKETPAY_ACCOUNT_API_VERSION + "/" + endpoint) || this;
}
return PlatformsAccount;
}(Resource));
export default PlatformsAccount;
//# sourceMappingURL=account.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/account.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;AAEH,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAoBtC,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,qDAAgC,CAAA;IAChC,yCAAoB,CAAA;IACpB,iDAA4B,CAAA;AAChC,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAQD;IAA2D,oCAAQ;IAC/D,0BAAmB,OAAgB,EAAE,QAAyB;eAC1D,kBAAM,OAAO,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,iBAAY,MAAM,CAAC,6BAA6B,SAAI,QAAU,CAAC;IAC5H,CAAC;IACL,uBAAC;AAAD,CAAC,AAJD,CAA2D,QAAQ,GAIlE;AAED,eAAe,gBAAgB,CAAC"}

View File

@@ -0,0 +1,7 @@
import Service from "../../../service";
import Resource from "../../resource";
declare type Endpoints = "/accountHolderBalance" | "/accountHolderTransactionList" | "/payoutAccountHolder" | "/transferFunds" | "/refundFundsTransfer" | "/setupBeneficiary" | "/refundNotPaidOutTransfers";
declare class PlatformsFund extends Resource {
constructor(service: Service, endpoint: Endpoints);
}
export default PlatformsFund;

View File

@@ -0,0 +1,44 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import Client from "../../../client";
import Resource from "../../resource";
var PlatformsFund = /** @class */ (function (_super) {
__extends(PlatformsFund, _super);
function PlatformsFund(service, endpoint) {
return _super.call(this, service, service.client.config.marketPayEndpoint + "/Fund/" + Client.MARKETPAY_FUND_API_VERSION + "/" + endpoint) || this;
}
return PlatformsFund;
}(Resource));
export default PlatformsFund;
//# sourceMappingURL=fund.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"fund.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/fund.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;AAEH,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAYtC;IAA4B,iCAAQ;IAChC,uBAAmB,OAAgB,EAAE,QAAmB;eACpD,kBACI,OAAO,EACJ,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,cAAS,MAAM,CAAC,0BAA0B,SAAI,QAAU,CACrG;IACL,CAAC;IACL,oBAAC;AAAD,CAAC,AAPD,CAA4B,QAAQ,GAOnC;AAED,eAAe,aAAa,CAAC"}

View File

@@ -0,0 +1,7 @@
import Service from "../../../service";
import Resource from "../../resource";
declare type Endpoints = "/getOnboardingUrl";
declare class PlatformsHostedOnboardingPage extends Resource {
constructor(service: Service, endpoint: Endpoints);
}
export default PlatformsHostedOnboardingPage;

View File

@@ -0,0 +1,44 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import Client from "../../../client";
import Resource from "../../resource";
var PlatformsHostedOnboardingPage = /** @class */ (function (_super) {
__extends(PlatformsHostedOnboardingPage, _super);
function PlatformsHostedOnboardingPage(service, endpoint) {
return _super.call(this, service, service.client.config.marketPayEndpoint + "/Hop/" + Client.MARKETPAY_HOP_API_VERSION + "/" + endpoint) || this;
}
return PlatformsHostedOnboardingPage;
}(Resource));
export default PlatformsHostedOnboardingPage;
//# sourceMappingURL=hop.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hop.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/hop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;AAEH,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAItC;IAA4C,iDAAQ;IAChD,uCAAmB,OAAgB,EAAE,QAAmB;eACpD,kBACI,OAAO,EACJ,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,aAAQ,MAAM,CAAC,yBAAyB,SAAI,QAAU,CACnG;IACL,CAAC;IACL,oCAAC;AAAD,CAAC,AAPD,CAA4C,QAAQ,GAOnD;AAED,eAAe,6BAA6B,CAAC"}

View File

@@ -0,0 +1,7 @@
import Service from "../../../service";
import Resource from "../../resource";
declare type Endpoints = "/createNotificationConfiguration" | "/getNotificationConfiguration" | "/getNotificationConfigurationList" | "/testNotificationConfiguration" | "/updateNotificationConfiguration" | "/deleteNotificationConfigurations";
declare class PlatformsNotificationConfiguration extends Resource {
constructor(service: Service, endpoint: Endpoints);
}
export default PlatformsNotificationConfiguration;

View File

@@ -0,0 +1,44 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import Client from "../../../client";
import Resource from "../../resource";
var PlatformsNotificationConfiguration = /** @class */ (function (_super) {
__extends(PlatformsNotificationConfiguration, _super);
function PlatformsNotificationConfiguration(service, endpoint) {
return _super.call(this, service, service.client.config.marketPayEndpoint + "/Notification/" + Client.MARKETPAY_NOTIFICATION_API_VERSION + "/" + endpoint) || this;
}
return PlatformsNotificationConfiguration;
}(Resource));
export default PlatformsNotificationConfiguration;
//# sourceMappingURL=notificationConfiguration.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"notificationConfiguration.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/notificationConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;AAEH,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAUtC;IAAiD,sDAAQ;IACrD,4CAAmB,OAAgB,EAAE,QAAmB;eACpD,kBACI,OAAO,EACJ,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,sBAAiB,MAAM,CAAC,kCAAkC,SAAI,QAAU,CACrH;IACL,CAAC;IACL,yCAAC;AAAD,CAAC,AAPD,CAAiD,QAAQ,GAOxD;AAED,eAAe,kCAAkC,CAAC"}

View File

@@ -6,11 +6,6 @@
/// <reference path="checkoutUtility.d.ts" />
/// <reference path="enums/environment.d.ts" />
/// <reference path="enums/vatCategory.d.ts" />
/// <reference path="marketPayAccount.d.ts" />
/// <reference path="marketPayFund.d.ts" />
/// <reference path="marketPayHostedOnboardingPage.d.ts" />
/// <reference path="marketPayNotificationConfiguration.d.ts" />
/// <reference path="marketPayNotifications.d.ts" />
/// <reference path="nexo.d.ts" />
/// <reference path="notification.d.ts" />
/// <reference path="payments.d.ts" />
@@ -18,3 +13,8 @@
/// <reference path="recurring.d.ts" />
/// <reference path="requestOptions.d.ts" />
/// <reference path="terminal.d.ts" />
/// <reference path="platformsAccount.d.ts" />
/// <reference path="platformsFund.d.ts" />
/// <reference path="platformsHostedOnboardingPage.d.ts" />
/// <reference path="platformsNotificationConfiguration.d.ts" />
/// <reference path="platformsNotifications.d.ts" />

View File

@@ -7,11 +7,6 @@
/// <reference path="checkoutUtility.ts" />
/// <reference path="enums/environment.ts" />
/// <reference path="enums/vatCategory.ts" />
/// <reference path="marketPayAccount.ts" />
/// <reference path="marketPayFund.ts" />
/// <reference path="marketPayHostedOnboardingPage.ts" />
/// <reference path="marketPayNotificationConfiguration.ts" />
/// <reference path="marketPayNotifications.ts" />
/// <reference path="nexo.ts" />
/// <reference path="notification.ts" />
/// <reference path="payments.ts" />
@@ -19,4 +14,9 @@
/// <reference path="recurring.ts" />
/// <reference path="requestOptions.ts" />
/// <reference path="terminal.ts" />
/// <reference path="platformsAccount.ts" />
/// <reference path="platformsFund.ts" />
/// <reference path="platformsHostedOnboardingPage.ts" />
/// <reference path="platformsNotificationConfiguration.ts" />
/// <reference path="platformsNotifications.ts" />
//# sourceMappingURL=index.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/typings/index.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,oCAAoC;AACpC,2CAA2C;AAC3C,qCAAqC;AACrC,oCAAoC;AACpC,2CAA2C;AAC3C,6CAA6C;AAC7C,6CAA6C;AAC7C,4CAA4C;AAC5C,yCAAyC;AACzC,yDAAyD;AACzD,8DAA8D;AAC9D,kDAAkD;AAClD,gCAAgC;AAChC,wCAAwC;AACxC,oCAAoC;AACpC,mCAAmC;AACnC,qCAAqC;AACrC,0CAA0C;AAC1C,oCAAoC"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/typings/index.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,oCAAoC;AACpC,2CAA2C;AAC3C,qCAAqC;AACrC,oCAAoC;AACpC,2CAA2C;AAC3C,6CAA6C;AAC7C,6CAA6C;AAC7C,gCAAgC;AAChC,wCAAwC;AACxC,oCAAoC;AACpC,mCAAmC;AACnC,qCAAqC;AACrC,0CAA0C;AAC1C,oCAAoC;AACpC,4CAA4C;AAC5C,yCAAyC;AACzC,yDAAyD;AACzD,8DAA8D;AAC9D,kDAAkD"}

View File

@@ -6,3 +6,4 @@ export { default as Recurring } from "./recurring";
export { default as Modification } from "./modification";
export { default as BinLookup } from "./binLookup";
export { default as Payout } from "./payout";
export { default as Platforms } from "./platforms";

View File

@@ -36,4 +36,6 @@ var binLookup_1 = require("./binLookup");
exports.BinLookup = binLookup_1.default;
var payout_1 = require("./payout");
exports.Payout = payout_1.default;
var platforms_1 = require("./platforms");
exports.Platforms = platforms_1.default;
//# sourceMappingURL=index.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;AAEH,uDAAiE;AAAxD,8CAAA,OAAO,CAAoB;AACpC,uDAAiE;AAAxD,8CAAA,OAAO,CAAoB;AACpC,uCAAoD;AAA3C,iCAAA,OAAO,CAAe;AAC/B,qDAA+D;AAAtD,4CAAA,OAAO,CAAmB;AACnC,yCAAmD;AAA1C,gCAAA,OAAO,CAAa;AAC7B,+CAAyD;AAAhD,sCAAA,OAAO,CAAgB;AAChC,yCAAmD;AAA1C,gCAAA,OAAO,CAAa;AAC7B,mCAA6C;AAApC,0BAAA,OAAO,CAAU"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;AAEH,uDAAiE;AAAxD,8CAAA,OAAO,CAAoB;AACpC,uDAAiE;AAAxD,8CAAA,OAAO,CAAoB;AACpC,uCAAoD;AAA3C,iCAAA,OAAO,CAAe;AAC/B,qDAA+D;AAAtD,4CAAA,OAAO,CAAmB;AACnC,yCAAmD;AAA1C,gCAAA,OAAO,CAAa;AAC7B,+CAAyD;AAAhD,sCAAA,OAAO,CAAgB;AAChC,yCAAmD;AAA1C,gCAAA,OAAO,CAAa;AAC7B,mCAA6C;AAApC,0BAAA,OAAO,CAAU;AAC1B,yCAAkD;AAAzC,gCAAA,OAAO,CAAa"}

View File

@@ -1,6 +1,89 @@
import Service from "../service";
import Client from "../client";
import PlatformsAccount, { AccountTypesEnum } from "./resource/platforms/account";
import PlatformsFund from "./resource/platforms/fund";
import PlatformsHostedOnboardingPage from "./resource/platforms/hop";
declare type AccountType = AccountTypesEnum.Accounts;
declare type VerificationType = AccountTypesEnum.Verification;
declare type AccountHoldersType = AccountTypesEnum.AccountHolders;
declare type AccountsAccount = PlatformsAccount<AccountType>;
declare type AccountsVerification = PlatformsAccount<VerificationType>;
declare type AccountsAccountHolders = PlatformsAccount<AccountHoldersType>;
declare type PlatformsTypes = AccountsAccount | AccountsVerification | AccountsAccountHolders | PlatformsFund | PlatformsHostedOnboardingPage;
declare class Platforms extends Service {
private readonly _closeAccount;
private readonly _updateAccount;
private readonly _createAccount;
private readonly _uploadDocument;
private readonly _getUploadedDocuments;
private readonly _deleteBankAccounts;
private readonly _deletePayoutMethods;
private readonly _deleteShareholders;
private readonly _checkAccountHolder;
private readonly _createAccountHolder;
private readonly _getAccountHolder;
private readonly _updateAccountHolder;
private readonly _suspendAccountHolder;
private readonly _unSuspendAccountHolder;
private readonly _closeAccountHolder;
private readonly _accountHolderBalance;
private readonly _accountHolderTransactionList;
private readonly _payoutAccountHolder;
private readonly _transferFunds;
private readonly _refundFundsTransfer;
private readonly _setupBeneficiary;
private readonly _refundNotPaidOutTransfers;
private readonly _getOnboardingUrl;
private readonly _createNotificationConfiguration;
private readonly _getNotificationConfiguration;
private readonly _getNotificationConfigurationList;
private readonly _testNotificationConfiguration;
private readonly _updateNotificationConfiguration;
private readonly _deleteNotificationConfiguration;
constructor(client: Client);
createRequest: <T extends PlatformsTypes, U, V>(service: T) => (request: U) => Promise<V>;
get Account(): {
accountHolders: {
unSuspendAccountHolder: (request: IPlatformsAccount.UnSuspendAccountHolderRequest) => Promise<IPlatformsAccount.UnSuspendAccountHolderResponse>;
getAccountHolder: (request: IPlatformsAccount.GetAccountHolderRequest) => Promise<IPlatformsAccount.GetAccountHolderResponse>;
suspendAccountHolder: (request: IPlatformsAccount.SuspendAccountHolderRequest) => Promise<IPlatformsAccount.SuspendAccountHolderResponse>;
createAccountHolder: (request: IPlatformsAccount.CreateAccountRequest) => Promise<IPlatformsAccount.CreateAccountHolderResponse>;
updateAccountHolder: (request: IPlatformsAccount.UpdateAccountHolderRequest) => Promise<IPlatformsAccount.UpdateAccountHolderResponse>;
closeAccountHolder: (request: IPlatformsAccount.CloseAccountHolderRequest) => Promise<IPlatformsAccount.CloseAccountHolderResponse>;
};
accounts: {
closeAccount: (request: IPlatformsAccount.CloseAccountRequest) => Promise<IPlatformsAccount.CloseAccountResponse>;
createAccount: (request: IPlatformsAccount.CreateAccountRequest) => Promise<IPlatformsAccount.CreateAccountResponse>;
updateAccount: (request: IPlatformsAccount.UpdateAccountRequest) => Promise<IPlatformsAccount.UpdateAccountHolderResponse>;
};
verification: {
getUploadedDocuments: (request: IPlatformsAccount.GetUploadedDocumentsRequest) => Promise<IPlatformsAccount.GetUploadedDocumentsResponse>;
deleteShareholders: (request: IPlatformsAccount.DeleteShareholderRequest) => Promise<IPlatformsAccount.GenericResponse>;
deleteBankAccounts: (request: IPlatformsAccount.DeleteBankAccountRequest) => Promise<IPlatformsAccount.GenericResponse>;
deletePayoutMethods: (request: IPlatformsAccount.DeletePayoutMethodRequest) => Promise<IPlatformsAccount.GenericResponse>;
checkAccountHolder: (request: IPlatformsAccount.PerformVerificationRequest) => Promise<IPlatformsAccount.GenericResponse>;
uploadDocument: (request: IPlatformsAccount.UploadDocumentRequest) => Promise<IPlatformsAccount.GetUploadedDocumentsResponse>;
};
};
get Fund(): {
refundNotPaidOutTransfers: (request: IPlatformsFund.RefundNotPaidOutTransfersRequest) => Promise<IPlatformsFund.RefundNotPaidOutTransfersResponse>;
accountHolderTransactionList: (request: IPlatformsFund.AccountHolderTransactionListRequest) => Promise<IPlatformsFund.AccountHolderTransactionListResponse>;
setupBeneficiary: (request: IPlatformsFund.SetupBeneficiaryRequest) => Promise<IPlatformsFund.SetupBeneficiaryResponse>;
transferFunds: (request: IPlatformsFund.TransferFundsRequest) => Promise<IPlatformsFund.TransferFundsResponse>;
refundFundsTransfer: (request: IPlatformsFund.RefundFundsTransferRequest) => Promise<IPlatformsFund.RefundFundsTransferResponse>;
payoutAccountHolder: (request: IPlatformsFund.PayoutAccountHolderRequest) => Promise<IPlatformsFund.PayoutAccountHolderResponse>;
accountHolderBalance: (request: IPlatformsFund.AccountHolderBalanceRequest) => Promise<IPlatformsFund.AccountHolderBalanceResponse>;
};
get HostedOnboardingPage(): {
getOnboardingUrl: (request: IPlatformsHostedOnboardingPage.GetOnboardingUrlRequest) => Promise<IPlatformsHostedOnboardingPage.GetOnboardingUrlResponse>;
};
get NotificationConfiguration(): {
createNotificationConfiguration: (request: IPlatformsNotificationConfiguration.CreateNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
updateNotificationConfiguration: (request: IPlatformsNotificationConfiguration.UpdateNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
getNotificationConfiguration: (request: IPlatformsNotificationConfiguration.GetNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationResponse>;
deleteNotificationConfiguration: (request: IPlatformsNotificationConfiguration.DeleteNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.GenericResponse>;
testNotificationConfiguration: (request: IPlatformsNotificationConfiguration.TestNotificationConfigurationRequest) => Promise<IPlatformsNotificationConfiguration.TestNotificationConfigurationResponse>;
getNotificationConfigurationList: (request: null) => Promise<IPlatformsNotificationConfiguration.GetNotificationConfigurationListResponse>;
};
}
export default Platforms;

View File

@@ -37,19 +37,114 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
var service_1 = __importDefault(require("../service"));
var client_1 = __importDefault(require("../client"));
var account_1 = __importDefault(require("./resource/platforms/account"));
var getJsonResponse_1 = __importDefault(require("./../helpers/getJsonResponse"));
var fund_1 = __importDefault(require("./resource/platforms/fund"));
var hop_1 = __importDefault(require("./resource/platforms/hop"));
var notificationConfiguration_1 = __importDefault(require("./resource/platforms/notificationConfiguration"));
var Platforms = /** @class */ (function (_super) {
__extends(Platforms, _super);
function Platforms(client) {
var _this = _super.call(this, client) || this;
_this._closeAccount = new account_1.default("/");
_this.createRequest = function (service) {
return function (request) { return getJsonResponse_1.default(service, request); };
};
// Account
_this._closeAccount = new account_1.default(_this, "/closeAccount");
_this._updateAccount = new account_1.default(_this, "/updateAccount");
_this._createAccount = new account_1.default(_this, "/createAccount");
_this._uploadDocument = new account_1.default(_this, "/uploadDocument");
_this._getUploadedDocuments = new account_1.default(_this, "/getUploadedDocuments");
_this._deleteBankAccounts = new account_1.default(_this, "/deleteBankAccounts");
_this._deletePayoutMethods = new account_1.default(_this, "/deletePayoutMethods");
_this._deleteShareholders = new account_1.default(_this, "/deleteShareholders");
_this._checkAccountHolder = new account_1.default(_this, "/checkAccountHolder");
_this._createAccountHolder = new account_1.default(_this, "/createAccountHolder");
_this._getAccountHolder = new account_1.default(_this, "/getAccountHolder");
_this._updateAccountHolder = new account_1.default(_this, "/updateAccountHolder");
_this._suspendAccountHolder = new account_1.default(_this, "/suspendAccountHolder");
_this._unSuspendAccountHolder = new account_1.default(_this, "/unSuspendAccountHolder");
_this._closeAccountHolder = new account_1.default(_this, "/closeAccountHolder");
// Fund
_this._accountHolderBalance = new fund_1.default(_this, "/accountHolderBalance");
_this._accountHolderTransactionList = new fund_1.default(_this, "/accountHolderTransactionList");
_this._payoutAccountHolder = new fund_1.default(_this, "/payoutAccountHolder");
_this._transferFunds = new fund_1.default(_this, "/transferFunds");
_this._refundFundsTransfer = new fund_1.default(_this, "/refundFundsTransfer");
_this._setupBeneficiary = new fund_1.default(_this, "/setupBeneficiary");
_this._refundNotPaidOutTransfers = new fund_1.default(_this, "/refundNotPaidOutTransfers");
// HOP
_this._getOnboardingUrl = new hop_1.default(_this, "/getOnboardingUrl");
// Notification Configuration
_this._createNotificationConfiguration = new notificationConfiguration_1.default(_this, "/createNotificationConfiguration");
_this._getNotificationConfiguration = new notificationConfiguration_1.default(_this, "/getNotificationConfiguration");
_this._getNotificationConfigurationList = new notificationConfiguration_1.default(_this, "/getNotificationConfigurationList");
_this._testNotificationConfiguration = new notificationConfiguration_1.default(_this, "/testNotificationConfiguration");
_this._updateNotificationConfiguration = new notificationConfiguration_1.default(_this, "/updateNotificationConfiguration");
_this._deleteNotificationConfiguration = new notificationConfiguration_1.default(_this, "/deleteNotificationConfigurations");
return _this;
}
Object.defineProperty(Platforms.prototype, "Account", {
get: function () {
var closeAccount = this.createRequest(this._closeAccount);
var updateAccount = this.createRequest(this._updateAccount);
var createAccount = this.createRequest(this._createAccount);
var uploadDocument = this.createRequest(this._uploadDocument);
var getUploadedDocuments = this.createRequest(this._getUploadedDocuments);
var deleteBankAccounts = this.createRequest(this._deleteBankAccounts);
var deletePayoutMethods = this.createRequest(this._deletePayoutMethods);
var deleteShareholders = this.createRequest(this._deleteShareholders);
var checkAccountHolder = this.createRequest(this._checkAccountHolder);
var createAccountHolder = this.createRequest(this._createAccountHolder);
var getAccountHolder = this.createRequest(this._getAccountHolder);
var updateAccountHolder = this.createRequest(this._updateAccountHolder);
var suspendAccountHolder = this.createRequest(this._suspendAccountHolder);
var unSuspendAccountHolder = this.createRequest(this._unSuspendAccountHolder);
var closeAccountHolder = this.createRequest(this._closeAccountHolder);
var accounts = { closeAccount: closeAccount, updateAccount: updateAccount, createAccount: createAccount };
var verification = { uploadDocument: uploadDocument, getUploadedDocuments: getUploadedDocuments, deleteBankAccounts: deleteBankAccounts, deletePayoutMethods: deletePayoutMethods, deleteShareholders: deleteShareholders, checkAccountHolder: checkAccountHolder };
var accountHolders = { createAccountHolder: createAccountHolder, getAccountHolder: getAccountHolder, updateAccountHolder: updateAccountHolder, suspendAccountHolder: suspendAccountHolder, unSuspendAccountHolder: unSuspendAccountHolder, closeAccountHolder: closeAccountHolder };
return { accounts: accounts, verification: verification, accountHolders: accountHolders };
},
enumerable: true,
configurable: true
});
Object.defineProperty(Platforms.prototype, "Fund", {
get: function () {
var accountHolderBalance = this.createRequest(this._accountHolderBalance);
var accountHolderTransactionList = this.createRequest(this._accountHolderTransactionList);
var payoutAccountHolder = this.createRequest(this._payoutAccountHolder);
var transferFunds = this.createRequest(this._transferFunds);
var refundFundsTransfer = this.createRequest(this._refundFundsTransfer);
var setupBeneficiary = this.createRequest(this._setupBeneficiary);
var refundNotPaidOutTransfers = this.createRequest(this._refundNotPaidOutTransfers);
return { accountHolderBalance: accountHolderBalance, accountHolderTransactionList: accountHolderTransactionList, payoutAccountHolder: payoutAccountHolder, refundFundsTransfer: refundFundsTransfer, transferFunds: transferFunds, setupBeneficiary: setupBeneficiary, refundNotPaidOutTransfers: refundNotPaidOutTransfers };
},
enumerable: true,
configurable: true
});
Object.defineProperty(Platforms.prototype, "HostedOnboardingPage", {
get: function () {
var getOnboardingUrl = this.createRequest(this._getOnboardingUrl);
return { getOnboardingUrl: getOnboardingUrl };
},
enumerable: true,
configurable: true
});
Object.defineProperty(Platforms.prototype, "NotificationConfiguration", {
get: function () {
var createNotificationConfiguration = this.createRequest(this._createNotificationConfiguration);
var getNotificationConfiguration = this.createRequest(this._getNotificationConfiguration);
var getNotificationConfigurationList = this.createRequest(this._getNotificationConfigurationList);
var testNotificationConfiguration = this.createRequest(this._testNotificationConfiguration);
var updateNotificationConfiguration = this.createRequest(this._updateNotificationConfiguration);
var deleteNotificationConfiguration = this.createRequest(this._deleteNotificationConfiguration);
return { createNotificationConfiguration: createNotificationConfiguration, getNotificationConfiguration: getNotificationConfiguration, getNotificationConfigurationList: getNotificationConfigurationList, testNotificationConfiguration: testNotificationConfiguration, updateNotificationConfiguration: updateNotificationConfiguration, deleteNotificationConfiguration: deleteNotificationConfiguration, };
},
enumerable: true,
configurable: true
});
return Platforms;
}(service_1.default));
var client = new client_1.default({ environment: "" });
var platforms = new Platforms(new client_1.default({}));
platforms.Account.closeAccount.request();
exports.default = Platforms;
//# sourceMappingURL=platforms.js.map

File diff suppressed because one or more lines are too long

View File

@@ -1,12 +1,19 @@
import Service from "../../../service";
import Resource from "../../resource";
declare type AccountHoldersEndpoints = "/createAccountHolder" | "/getAccountHolder" | "/updateAccountHolder" | "/suspendAccountHolder" | "/unSuspendAccountHolder" | "/closeAccountHolder";
declare type VerificationEndpoints = "/uploadDocument" | "/getUploadedDocuments" | "/deleteBankAccounts" | "/deletePayoutMethods" | "/deleteShareholders" | "/checkAccountHolder";
declare type AccountsEndpoints = "/createAccount" | "/updateAccount" | "/closeAccount";
export declare enum AccountTypesEnum {
AccountHolders = "AccountHolders",
Accounts = "Accounts",
Verification = "Verification"
}
export interface AccountTypes {
[AccountTypesEnum.Accounts]: "/foo" | "/bar" | "/baz";
[AccountTypesEnum.AccountHolders]: AccountHoldersEndpoints;
[AccountTypesEnum.Accounts]: AccountsEndpoints;
[AccountTypesEnum.Verification]: VerificationEndpoints;
}
declare class PlatformsAccount<T extends AccountTypesEnum> {
constructor(endpoint: AccountTypes[T]);
declare class PlatformsAccount<T extends AccountTypesEnum> extends Resource {
constructor(service: Service, endpoint: AccountTypes[T]);
}
export default PlatformsAccount;

View File

@@ -19,39 +19,37 @@
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var AccountHoldersEndpoints;
(function (AccountHoldersEndpoints) {
AccountHoldersEndpoints["createAccountHolder"] = "/createAccountHolder";
AccountHoldersEndpoints["getAccountHolder"] = "/getAccountHolder";
AccountHoldersEndpoints["updateAccountholder"] = "/updateAccountholder";
AccountHoldersEndpoints["suspendAccountHolder"] = "/suspendAccountHolder";
AccountHoldersEndpoints["unSuspendAccountHolder"] = "/unSuspendAccountHolder";
AccountHoldersEndpoints["closeAccountHolder"] = "/closeAccountHolder";
})(AccountHoldersEndpoints || (AccountHoldersEndpoints = {}));
var VerificationEndpoints;
(function (VerificationEndpoints) {
VerificationEndpoints["uploadDocument"] = "/uploadDocument";
VerificationEndpoints["getUploadedDocuments"] = "/getUploadedDocuments";
VerificationEndpoints["deleteBankAccounts"] = "/deleteBankAccounts";
VerificationEndpoints["deletePayoytMethods"] = "/deletePayoutMethods";
VerificationEndpoints["deleteShareholdesrs"] = "/deleteShareholders";
VerificationEndpoints["checkAccountHolder"] = "/checkAccountHolder";
})(VerificationEndpoints || (VerificationEndpoints = {}));
// declare type AccountTypesEnum = "AccountHolders" | "Accounts" | "Verification"
// declare type AccountHolders = "AccountHolders"
// declare type Accounts = "Accounts"
// declare type Verification = "Verification"
var client_1 = __importDefault(require("../../../client"));
var resource_1 = __importDefault(require("../../resource"));
var AccountTypesEnum;
(function (AccountTypesEnum) {
AccountTypesEnum["AccountHolders"] = "AccountHolders";
AccountTypesEnum["Accounts"] = "Accounts";
AccountTypesEnum["Verification"] = "Verification";
})(AccountTypesEnum = exports.AccountTypesEnum || (exports.AccountTypesEnum = {}));
var PlatformsAccount = /** @class */ (function () {
function PlatformsAccount(endpoint) {
var PlatformsAccount = /** @class */ (function (_super) {
__extends(PlatformsAccount, _super);
function PlatformsAccount(service, endpoint) {
return _super.call(this, service, service.client.config.marketPayEndpoint + "/Account/" + client_1.default.MARKETPAY_ACCOUNT_API_VERSION + "/" + endpoint) || this;
}
return PlatformsAccount;
}());
}(resource_1.default));
exports.default = PlatformsAccount;
//# sourceMappingURL=account.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/account.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;AAMH,IAAK,uBAOJ;AAPD,WAAK,uBAAuB;IACxB,uEAA2C,CAAA;IAC3C,iEAAsC,CAAA;IACtC,uEAA4C,CAAA;IAC5C,yEAA8C,CAAA;IAC9C,6EAAkD,CAAA;IAClD,qEAA0C,CAAA;AAC9C,CAAC,EAPI,uBAAuB,KAAvB,uBAAuB,QAO3B;AAED,IAAK,qBAOJ;AAPD,WAAK,qBAAqB;IACtB,2DAAkC,CAAA;IAClC,uEAA8C,CAAA;IAC9C,mEAA0C,CAAA;IAC1C,qEAA4C,CAAA;IAC5C,oEAA2C,CAAA;IAC3C,mEAA0C,CAAA;AAC9C,CAAC,EAPI,qBAAqB,KAArB,qBAAqB,QAOzB;AAED,iFAAiF;AACjF,iDAAiD;AACjD,qCAAqC;AACrC,6CAA6C;AAC7C,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,qDAAgC,CAAA;IAChC,yCAAoB,CAAA;IACpB,iDAA4B,CAAA;AAChC,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAcD;IACI,0BAAmB,QAAyB;IAC5C,CAAC;IACL,uBAAC;AAAD,CAAC,AAHD,IAGC;AAED,kBAAe,gBAAgB,CAAC"}
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/account.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;AAEH,2DAAqC;AAErC,4DAAsC;AAoBtC,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,qDAAgC,CAAA;IAChC,yCAAoB,CAAA;IACpB,iDAA4B,CAAA;AAChC,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAQD;IAA2D,oCAAQ;IAC/D,0BAAmB,OAAgB,EAAE,QAAyB;eAC1D,kBAAM,OAAO,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,iBAAY,gBAAM,CAAC,6BAA6B,SAAI,QAAU,CAAC;IAC5H,CAAC;IACL,uBAAC;AAAD,CAAC,AAJD,CAA2D,kBAAQ,GAIlE;AAED,kBAAe,gBAAgB,CAAC"}

View File

@@ -1,14 +1,6 @@
import Service from "../../../service";
import Resource from "../../resource";
declare enum Endpoints {
accountHolderBalance = "/accountHolderBalance",
accountHolderTransactionList = "/accountHolderTransactionList",
payoutAccountHolder = "/payoutAccountHolder",
transferFunds = "/transferFunds",
refundFundsTransfer = "/refundFundsTransfer",
setupBeneficiary = "/setupBeneficiary",
refundNotPaidOutTransfers = "/refundNotPaidOutTransfers"
}
declare type Endpoints = "/accountHolderBalance" | "/accountHolderTransactionList" | "/payoutAccountHolder" | "/transferFunds" | "/refundFundsTransfer" | "/setupBeneficiary" | "/refundNotPaidOutTransfers";
declare class PlatformsFund extends Resource {
constructor(service: Service, endpoint: Endpoints);
}

View File

@@ -38,16 +38,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
var client_1 = __importDefault(require("../../../client"));
var resource_1 = __importDefault(require("../../resource"));
var Endpoints;
(function (Endpoints) {
Endpoints["accountHolderBalance"] = "/accountHolderBalance";
Endpoints["accountHolderTransactionList"] = "/accountHolderTransactionList";
Endpoints["payoutAccountHolder"] = "/payoutAccountHolder";
Endpoints["transferFunds"] = "/transferFunds";
Endpoints["refundFundsTransfer"] = "/refundFundsTransfer";
Endpoints["setupBeneficiary"] = "/setupBeneficiary";
Endpoints["refundNotPaidOutTransfers"] = "/refundNotPaidOutTransfers";
})(Endpoints || (Endpoints = {}));
var PlatformsFund = /** @class */ (function (_super) {
__extends(PlatformsFund, _super);
function PlatformsFund(service, endpoint) {

View File

@@ -1 +1 @@
{"version":3,"file":"fund.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/fund.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;AAEH,2DAAqC;AAErC,4DAAsC;AAEtC,IAAK,SAQJ;AARD,WAAK,SAAS;IACV,2DAA8C,CAAA;IAC9C,2EAA8D,CAAA;IAC9D,yDAA4C,CAAA;IAC5C,6CAAgC,CAAA;IAChC,yDAA4C,CAAA;IAC5C,mDAAsC,CAAA;IACtC,qEAAwD,CAAA;AAC5D,CAAC,EARI,SAAS,KAAT,SAAS,QAQb;AAED;IAA4B,iCAAQ;IAChC,uBAAmB,OAAgB,EAAE,QAAmB;eACpD,kBACI,OAAO,EACJ,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,cAAS,gBAAM,CAAC,0BAA0B,SAAI,QAAU,CACrG;IACL,CAAC;IACL,oBAAC;AAAD,CAAC,AAPD,CAA4B,kBAAQ,GAOnC;AAED,kBAAe,aAAa,CAAC"}
{"version":3,"file":"fund.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/fund.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;AAEH,2DAAqC;AAErC,4DAAsC;AAYtC;IAA4B,iCAAQ;IAChC,uBAAmB,OAAgB,EAAE,QAAmB;eACpD,kBACI,OAAO,EACJ,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,cAAS,gBAAM,CAAC,0BAA0B,SAAI,QAAU,CACrG;IACL,CAAC;IACL,oBAAC;AAAD,CAAC,AAPD,CAA4B,kBAAQ,GAOnC;AAED,kBAAe,aAAa,CAAC"}

View File

@@ -1,8 +1,6 @@
import Service from "../../../service";
import Resource from "../../resource";
declare enum Endpoints {
getOnboardingUrl = "/getOnboardingUrl"
}
declare type Endpoints = "/getOnboardingUrl";
declare class PlatformsHostedOnboardingPage extends Resource {
constructor(service: Service, endpoint: Endpoints);
}

View File

@@ -38,10 +38,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
var client_1 = __importDefault(require("../../../client"));
var resource_1 = __importDefault(require("../../resource"));
var Endpoints;
(function (Endpoints) {
Endpoints["getOnboardingUrl"] = "/getOnboardingUrl";
})(Endpoints || (Endpoints = {}));
var PlatformsHostedOnboardingPage = /** @class */ (function (_super) {
__extends(PlatformsHostedOnboardingPage, _super);
function PlatformsHostedOnboardingPage(service, endpoint) {

View File

@@ -1 +1 @@
{"version":3,"file":"hop.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/hop.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;AAEH,2DAAqC;AAErC,4DAAsC;AAEtC,IAAK,SAEJ;AAFD,WAAK,SAAS;IACV,mDAAsC,CAAA;AAC1C,CAAC,EAFI,SAAS,KAAT,SAAS,QAEb;AAED;IAA4C,iDAAQ;IAChD,uCAAmB,OAAgB,EAAE,QAAmB;eACpD,kBACI,OAAO,EACJ,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,aAAQ,gBAAM,CAAC,yBAAyB,SAAI,QAAU,CACnG;IACL,CAAC;IACL,oCAAC;AAAD,CAAC,AAPD,CAA4C,kBAAQ,GAOnD;AAED,kBAAe,6BAA6B,CAAC"}
{"version":3,"file":"hop.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/hop.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;AAEH,2DAAqC;AAErC,4DAAsC;AAItC;IAA4C,iDAAQ;IAChD,uCAAmB,OAAgB,EAAE,QAAmB;eACpD,kBACI,OAAO,EACJ,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,aAAQ,gBAAM,CAAC,yBAAyB,SAAI,QAAU,CACnG;IACL,CAAC;IACL,oCAAC;AAAD,CAAC,AAPD,CAA4C,kBAAQ,GAOnD;AAED,kBAAe,6BAA6B,CAAC"}

View File

@@ -1,13 +1,6 @@
import Service from "../../../service";
import Resource from "../../resource";
declare enum Endpoints {
create = "/createNotificationConfiguration",
get = "/getNotificationConfiguration",
getList = "/getNotificationConfigurationList",
test = "/testNotificationConfiguration",
update = "/updateNotificationConfiguration",
delete = "/deleteNotificaitonConfigurations"
}
declare type Endpoints = "/createNotificationConfiguration" | "/getNotificationConfiguration" | "/getNotificationConfigurationList" | "/testNotificationConfiguration" | "/updateNotificationConfiguration" | "/deleteNotificationConfigurations";
declare class PlatformsNotificationConfiguration extends Resource {
constructor(service: Service, endpoint: Endpoints);
}

View File

@@ -38,15 +38,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
var client_1 = __importDefault(require("../../../client"));
var resource_1 = __importDefault(require("../../resource"));
var Endpoints;
(function (Endpoints) {
Endpoints["create"] = "/createNotificationConfiguration";
Endpoints["get"] = "/getNotificationConfiguration";
Endpoints["getList"] = "/getNotificationConfigurationList";
Endpoints["test"] = "/testNotificationConfiguration";
Endpoints["update"] = "/updateNotificationConfiguration";
Endpoints["delete"] = "/deleteNotificaitonConfigurations";
})(Endpoints || (Endpoints = {}));
var PlatformsNotificationConfiguration = /** @class */ (function (_super) {
__extends(PlatformsNotificationConfiguration, _super);
function PlatformsNotificationConfiguration(service, endpoint) {

View File

@@ -1 +1 @@
{"version":3,"file":"notificationConfiguration.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/notificationConfiguration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;AAEH,2DAAqC;AAErC,4DAAsC;AAEtC,IAAK,SAOJ;AAPD,WAAK,SAAS;IACV,wDAA2C,CAAA;IAC3C,kDAAqC,CAAA;IACrC,0DAA6C,CAAA;IAC7C,oDAAuC,CAAA;IACvC,wDAA2C,CAAA;IAC3C,yDAA4C,CAAA;AAChD,CAAC,EAPI,SAAS,KAAT,SAAS,QAOb;AAED;IAAiD,sDAAQ;IACrD,4CAAmB,OAAgB,EAAE,QAAmB;eACpD,kBACI,OAAO,EACJ,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,sBAAiB,gBAAM,CAAC,kCAAkC,SAAI,QAAU,CACrH;IACL,CAAC;IACL,yCAAC;AAAD,CAAC,AAPD,CAAiD,kBAAQ,GAOxD;AAED,kBAAe,kCAAkC,CAAC"}
{"version":3,"file":"notificationConfiguration.js","sourceRoot":"","sources":["../../../../../../src/services/resource/platforms/notificationConfiguration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;AAEH,2DAAqC;AAErC,4DAAsC;AAUtC;IAAiD,sDAAQ;IACrD,4CAAmB,OAAgB,EAAE,QAAmB;eACpD,kBACI,OAAO,EACJ,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,sBAAiB,gBAAM,CAAC,kCAAkC,SAAI,QAAU,CACrH;IACL,CAAC;IACL,yCAAC;AAAD,CAAC,AAPD,CAAiD,kBAAQ,GAOxD;AAED,kBAAe,kCAAkC,CAAC"}

View File

@@ -6,11 +6,6 @@
/// <reference path="checkoutUtility.d.ts" />
/// <reference path="enums/environment.d.ts" />
/// <reference path="enums/vatCategory.d.ts" />
/// <reference path="marketPayAccount.d.ts" />
/// <reference path="marketPayFund.d.ts" />
/// <reference path="marketPayHostedOnboardingPage.d.ts" />
/// <reference path="marketPayNotificationConfiguration.d.ts" />
/// <reference path="marketPayNotifications.d.ts" />
/// <reference path="nexo.d.ts" />
/// <reference path="notification.d.ts" />
/// <reference path="payments.d.ts" />
@@ -18,3 +13,8 @@
/// <reference path="recurring.d.ts" />
/// <reference path="requestOptions.d.ts" />
/// <reference path="terminal.d.ts" />
/// <reference path="platformsAccount.d.ts" />
/// <reference path="platformsFund.d.ts" />
/// <reference path="platformsHostedOnboardingPage.d.ts" />
/// <reference path="platformsNotificationConfiguration.d.ts" />
/// <reference path="platformsNotifications.d.ts" />

View File

@@ -7,11 +7,6 @@
/// <reference path="checkoutUtility.ts" />
/// <reference path="enums/environment.ts" />
/// <reference path="enums/vatCategory.ts" />
/// <reference path="marketPayAccount.ts" />
/// <reference path="marketPayFund.ts" />
/// <reference path="marketPayHostedOnboardingPage.ts" />
/// <reference path="marketPayNotificationConfiguration.ts" />
/// <reference path="marketPayNotifications.ts" />
/// <reference path="nexo.ts" />
/// <reference path="notification.ts" />
/// <reference path="payments.ts" />
@@ -19,4 +14,9 @@
/// <reference path="recurring.ts" />
/// <reference path="requestOptions.ts" />
/// <reference path="terminal.ts" />
/// <reference path="platformsAccount.ts" />
/// <reference path="platformsFund.ts" />
/// <reference path="platformsHostedOnboardingPage.ts" />
/// <reference path="platformsNotificationConfiguration.ts" />
/// <reference path="platformsNotifications.ts" />
//# sourceMappingURL=index.js.map

View File

@@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/typings/index.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,oCAAoC;AACpC,2CAA2C;AAC3C,qCAAqC;AACrC,oCAAoC;AACpC,2CAA2C;AAC3C,6CAA6C;AAC7C,6CAA6C;AAC7C,4CAA4C;AAC5C,yCAAyC;AACzC,yDAAyD;AACzD,8DAA8D;AAC9D,kDAAkD;AAClD,gCAAgC;AAChC,wCAAwC;AACxC,oCAAoC;AACpC,mCAAmC;AACnC,qCAAqC;AACrC,0CAA0C;AAC1C,oCAAoC"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/typings/index.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,oCAAoC;AACpC,2CAA2C;AAC3C,qCAAqC;AACrC,oCAAoC;AACpC,2CAA2C;AAC3C,6CAA6C;AAC7C,6CAA6C;AAC7C,gCAAgC;AAChC,wCAAwC;AACxC,oCAAoC;AACpC,mCAAmC;AACnC,qCAAqC;AACrC,0CAA0C;AAC1C,oCAAoC;AACpC,4CAA4C;AAC5C,yCAAyC;AACzC,yDAAyD;AACzD,8DAA8D;AAC9D,kDAAkD"}