Skip to content
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

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

nkuoch
Copy link
Contributor

@nkuoch nkuoch commented Nov 3, 2023

@nkuoch nkuoch requested a review from a team as a code owner November 3, 2023 12:07
@nkuoch nkuoch self-assigned this Nov 3, 2023
Copy link

github-actions bot commented Nov 3, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@melvin-bot melvin-bot bot requested review from Gonals and removed request for a team November 3, 2023 12:07
@nkuoch
Copy link
Contributor Author

nkuoch commented Nov 3, 2023

I have read the CLA Document and I hereby sign the CLA

@nkuoch nkuoch requested review from MariaHCD and lakchote and removed request for Gonals November 3, 2023 12:39
lib/API.jsx Outdated
*/
editAdminIssuedVirtualCard: function (parameters) {
const commandName = 'Card_EditAdminIssuedVirtualCard';
requireParameters(['domainName', 'cardID', 'cardName', 'assigneeEmail', 'cardLimit', 'cardLimitType'], parameters, commandName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 🤔

Copy link
Contributor

@lakchote lakchote Nov 6, 2023

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

@nkuoch
Copy link
Contributor Author

nkuoch commented Nov 6, 2023

updated!

@MariaHCD MariaHCD merged commit 0e96a8f into main Nov 7, 2023
5 checks passed
@MariaHCD MariaHCD deleted the nat-virtualcards branch November 7, 2023 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants