-
Notifications
You must be signed in to change notification settings - Fork 142
Add more constants since web-s has a constant file deleted #875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
77080b7
add more cosntants
techievivek 8787623
remove GB
techievivek f0a0802
get rid of a few const since they are unused
techievivek ae052d1
add quotes
techievivek 5f11b0f
remove quuote change
techievivek 913bfa4
remove quote
techievivek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,12 @@ const CONST = { | |
*/ | ||
ACH_DEFAULT_MAX_AMOUNT_LIMIT: 2000000, | ||
|
||
/** | ||
* This is set in main.html and is derived from a PHP template variable | ||
* @type {String} | ||
*/ | ||
URL_TO_SECURE_WEBSITE: '', | ||
|
||
/** | ||
* IRS remimbursement rate for mileage | ||
* WARNING ! UPDATE THE PHP CONSTANT VERSION WHEN UPDATING THIS ONE | ||
|
@@ -42,7 +48,9 @@ const CONST = { | |
|
||
COUNTRY: { | ||
US: 'US', | ||
MX: 'MX', | ||
AU: 'AU', | ||
CA: 'CA', | ||
UK: 'UK', | ||
NZ: 'NZ', | ||
}, | ||
|
@@ -447,6 +455,11 @@ const CONST = { | |
MAX_AGE_SAME_COMMENT: 300, | ||
|
||
SMARTREPORT_AGENT_EMAIL: '[email protected]', | ||
|
||
/** | ||
* Email to submit smart reports to (alias for consistency) | ||
*/ | ||
SMART_REPORT_AGENT_EMAIL: '[email protected]', | ||
}, | ||
|
||
/** | ||
|
@@ -572,6 +585,23 @@ const CONST = { | |
VERIFICATION_MAX_ATTEMPTS: 7, | ||
}, | ||
|
||
// The number of days that certain banks limit their transaction imports to | ||
// see https://stackoverflow.com/c/expensify/questions/1289/1290#1290 for more about this. | ||
// If a bank isn't on this list, we default to 90 days | ||
BANK_IMPORT_DAY_LIMITS: { | ||
'americanexpress.com': 30, | ||
'oauth.bankofamerica.com': 30, | ||
'oauth.capitalone.com': 90, | ||
'oauth.chase.com': 90, | ||
'discover.com': 30, | ||
'admin.pexcard.com': 30, | ||
svbdirect: 75, | ||
'oauth.wellsfargo.com': 30, | ||
}, | ||
DEFAULT_BANK_IMPORT_DAYS: 90, | ||
PERSONAL_CARD_START_DATE_TOOLTIP: | ||
'Expensify will automatically import the earliest available transactions from this card. If a start date is selected, transactions with a posted date prior to this will not be included.', | ||
|
||
/** | ||
* Emails that the user shouldn't be interacting with from the front-end interface | ||
* Trying to add these emails as a delegate, onto a policy, or as an approver is considered invalid | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, I am unable to add quotes around it, can you please check this on your end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, now that I have add the quotes forcefully it is throwing linter error.