Skip to content

Commit

Permalink
Remove merchantAccount from Config. (#590)
Browse files Browse the repository at this point in the history
Co-authored-by: fredriksmaamo <fredrik.smaamo@sonat.no>
  • Loading branch information
smafre and smafre committed Nov 13, 2020
1 parent 46a4918 commit 21700d8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/__tests__/terminalCloudAPI.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ beforeEach((): void => {
nock.activate();
}
client = createClient(process.env.ADYEN_TERMINAL_APIKEY);
client.config.merchantAccount = process.env.ADYEN_TERMINAL_MERCHANT;

terminalCloudAPI = new TerminalCloudAPI(client);
scope = nock(`${client.config.terminalApiCloudEndpoint}`);
Expand Down
3 changes: 0 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
interface ConfigConstructor {
username?: string;
password?: string;
merchantAccount?: string;
environment?: Environment;
endpoint?: string;
marketPayEndpoint?: string;
Expand All @@ -39,7 +38,6 @@ interface ConfigConstructor {
class Config {
public username?: string;
public password?: string;
public merchantAccount?: string;
public environment?: Environment;
public endpoint?: string;
public marketPayEndpoint?: string;
Expand All @@ -61,7 +59,6 @@ class Config {
public constructor(options: ConfigConstructor = {}) {
if (options.username) this.username = options.username;
if (options.password) this.password = options.password;
if (options.merchantAccount) this.merchantAccount = options.merchantAccount;
if (options.environment) this.environment = options.environment;
if (options.endpoint) this.endpoint = options.endpoint;
if (options.marketPayEndpoint) this.marketPayEndpoint = options.marketPayEndpoint;
Expand Down

0 comments on commit 21700d8

Please sign in to comment.