Skip to content

Commit f112525

Browse files
committed
removed old railz.io
1 parent 0ee10a4 commit f112525

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/Configuration.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export class Configuration {
4040
*/
4141
constructor(config?: ConfigurationParams) {
4242
this.apiKey = (config && config.key) || Configuration.apiKeyDefault;
43-
this.apiSecret = (config && config.secret) || Configuration.apiSecretDefault;
43+
this.apiSecret =
44+
(config && config.secret) || Configuration.apiSecretDefault;
4445
if (config && config.environment) {
4546
this.apiBase = Configuration.environmentToUrl(config.environment);
4647
} else {
@@ -93,17 +94,14 @@ export class Configuration {
9394

9495
/**
9596
* Private method that converts an environment to a specific URL
96-
* @param environment "production" | "sandbox" | "development"
97+
* @param environment "production" | "sandbox"
9798
* @hidden
9899
*/
99100
private static environmentToUrl(environment: string) {
100101
switch (environment) {
101102
case "integration":
102103
// tslint:disable-next-line:no-http-string
103104
return "http://api.local.dev:3000";
104-
case "development":
105-
// tslint:disable-next-line:no-http-string
106-
return "https://api.railz.io";
107105
case "sandbox":
108106
return "https://api.sandbox.paymentrails.com";
109107
case "production":

0 commit comments

Comments
 (0)