-
Notifications
You must be signed in to change notification settings - Fork 1
/
environment.ts
49 lines (44 loc) · 1.36 KB
/
environment.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* This class represents the Zoho CRM environment.
*/
class Environment {
private url: string;
private accountsUrl: string;
private fileUploadUrl: string;
/**
* Creates an Environment class instance with the specified parameters.
* @param {string} url - A String representing the domain URL
* @param {string} accountsUrl - A String representing the accounts URL to fetch tokens.
* @param {string} fileUploadUrl - A string representing the file Upload URL
*/
constructor(url: string, accountsUrl: string, fileUploadUrl: string) {
this.url = url;
this.accountsUrl = accountsUrl;
this.fileUploadUrl = fileUploadUrl;
}
/**
* The method is used to get the Zoho CRM API URL.
* @returns {string} A String representing the Zoho CRM API URL.
*/
public getUrl(): string {
return this.url;
}
/**
* The method to get the Zoho CRM Accounts URL.
* @returns {string} A String representing the accounts URL.
*/
public getAccountsUrl(): string {
return this.accountsUrl;
}
/**
* The method to get the File Upload URL.
* @returns {string} A String representing the File Upload URL.
*/
public getFileUploadUrl(): string {
return this.fileUploadUrl;
}
}
export {
Environment as MasterModel,
Environment as Environment
}