-
Notifications
You must be signed in to change notification settings - Fork 135
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
Add methods to create and update admin issued virtual cards #595
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
lib/API.jsx
Outdated
*/ | ||
editAdminIssuedVirtualCard: function (parameters) { | ||
const commandName = 'Card_EditAdminIssuedVirtualCard'; | ||
requireParameters(['domainName', 'cardID', 'cardName', 'assigneeEmail', 'cardLimit', 'cardLimitType'], parameters, commandName); |
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.
requireParameters(['domainName', 'cardID', 'cardName', 'assigneeEmail', 'cardLimit', 'cardLimitType'], parameters, commandName); | |
requireParameters(['domainName', 'cardID', 'cardTitle', 'assigneeEmail', 'cardLimit', 'cardLimitType'], parameters, commandName); |
Maybe we should standardize on using cardTitle instead of cardName for admin-issued virtual cards everywhere 🤔
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.
I think it would be a good idea to standardize, yes. I've found one spot where we're using cardName
instead of cardTitle
here
updated! |
Fixed Issues
Part of https://github.com/Expensify/Expensify/issues/304890
Tests
Tested in https://github.com/Expensify/Web-Expensify/pull/39483
QA
None