# Use cases

<span style="font-weight: 400; color: #1c1e3f;">Below is a chart presenting group hierarchy to describe use cases on real structure.</span>

### <span style="font-weight: 400; color: #1c1e3f;">![](https://lh4.googleusercontent.com/z0FJivG8gmvb2ThjDhaI3gAxba6VckPilZoCFn5C59C3rmTC0U6qsbasHAc8KoJioacGfxiMSdawErOsZd-5I-JGGihIUK76BlnhXj10ulJJ9JOoyNpDLKUMUuVgHLCGMejwg0SWItu4BZaC5EjGOonA9FfWEs4c53OTmPCPo9x2s9JY7O5QdYrybQ)</span>

### <span style="font-weight: 400; color: #1c1e3f;">Group limits</span>

<span style="font-weight: 400; color: #1c1e3f;">First account is created for the corporation during the process of adding the corporation. Second one can be added by the Issuer Admin. To be able to assign cards there must be a limit set to the highest group.</span>

1. <span style="font-weight: 400; color: #1c1e3f;">Issuer Admin creates account A for corporation.</span>
2. <span style="font-weight: 400; color: #1c1e3f;">Corporate Admin from Chief level group add limit for account A for Chief level group. Now only Corporate Admins from the Chief level group see this account. </span>
3. <span style="font-weight: 400; color: #1c1e3f;">Corporate Admin from Chief level group add limit for account A for Java group. Now Corporate Admins from group Java can see account A on Accounts list and can assign cards using this account.</span>

### <span style="font-weight: 400; color: #1c1e3f;">Accept/Reject card</span>

<span style="color: #1c1e3f;"><span style="font-weight: 400;">**Use case 1:** </span><span style="font-weight: 400;">Group limit of PO: 100$.</span></span>

1. <span style="font-weight: 400; color: #1c1e3f;">Operator A from the group HR assigns a card with a total limit 100$. Card is created with a status Accepted. Actions available for this card for operators from PO group are: Edit, Cancel. Card is visible only on the Cards history tab.</span>
2. <span style="font-weight: 400; color: #1c1e3f;">Cardholder received an email notification with a card to redeem.</span>

<span style="color: #1c1e3f;">**Use case 2:** <span style="font-weight: 400;">Group limit for HR: 100$ </span><span style="font-weight: 400;">Group limit for Business: 200$.</span></span>

1. <span style="color: #1c1e3f;"><span style="font-weight: 400;">Operator A from the group HR assigns a card with a total limit 150$. Card is created with a status </span>CREATED<span style="font-weight: 400;">. Actions available for this card for operators from PO group are: Edit, Cancel. Card is visible only on the Cards history tab.</span></span>
2. <span style="font-weight: 400; color: #1c1e3f;">Operator B from the group Business sees A’s card on the Awaiting cards and Cards history tab. Option available for this card for B are: Accept, Reject.</span>
3. <span style="color: #1c1e3f;"><span style="font-weight: 400;">Operator B decides:  
    </span><span style="font-weight: 400;">a. Accept - card changes its status to </span>ACCEPTED<span style="font-weight: 400;"> and the cardholder receives an e-mail with a card to redeem.   
    </span><span style="font-weight: 400;">b. Reject - card changes its status to </span>REJECTED<span style="font-weight: 400;">. No actions are available for this card. Operator A receives an e-mail notification about rejection.</span></span>

### <span style="font-weight: 400; color: #1c1e3f;">Request changes as cardholder</span>

<span style="font-weight: 400; color: #1c1e3f;">**Use case 1:** Corporate admin from group A with group limit 100$ have assigned the card for the cardholder and requested change of limit is below 100$.</span>

1. <span style="font-weight: 400; color: #1c1e3f;">Cardholder chooses the “Request changes” button in the mobile app and fills the form.</span>
2. <span style="font-weight: 400; color: #1c1e3f;">All corporate admins from group A see a new request on the Awaiting cards tab on Cards list. He wants to change the limit from 50$ to 90$.</span>
3. <span style="color: #1c1e3f;"><span style="font-weight: 400;">Until there is no decision we see 2 states of this card on Cards list - the active one is in </span>DELIVERED<span style="font-weight: 400;"> status and requested one is in </span>CREATED<span style="font-weight: 400;"> status.</span></span>
4. <span style="color: #1c1e3f;"><span style="font-weight: 400;">Corporate admin decides:  
    </span><span style="font-weight: 400;">a. Accept - card changes its status from </span>CREATED<span style="font-weight: 400;"> to </span>DELIVERED<span style="font-weight: 400;"> and card with previous limits changes its status to </span>REAPPROVED<span style="font-weight: 400;">. Only one card is seen on Cards history list.  
    </span><span style="font-weight: 400;">b. Reject - card changes its status from </span>CREATED<span style="font-weight: 400;"> to </span>REJECTED<span style="font-weight: 400;"> and card with previous limits stays with status </span>DELIVERED<span style="font-weight: 400;">. Both cards can be seen on Cards history list.   
    </span></span>

<span style="font-weight: 400; color: #1c1e3f;">**Use case 2:** Corporate admin from group HR with group limit 100$ have assigned the card for the cardholder and requested change of limit is above 100$. Limit of group above (Business) is 200$.</span>

1. <span style="font-weight: 400; color: #1c1e3f;">Cardholder chooses the “Request changes” button in the mobile app and fills the form.</span>
2. <span style="font-weight: 400; color: #1c1e3f;">All corporate admins from group HR see a new request on the Awaiting cards tab on Cards list. He wants to change the limit from 50$ to 150$.</span>
3. <span style="color: #1c1e3f;"><span style="font-weight: 400;">Until there is no decision we see 2 states of this card on Cards list - the active one is in </span>DELIVERED<span style="font-weight: 400;"> status and requested one is in </span>CREATED<span style="font-weight: 400;"> status.</span></span>
4. <span style="color: #1c1e3f;"><span style="font-weight: 400;">Corporate admin decides:  
    </span><span style="font-weight: 400;">a. Accept - card stays with a status CREATED but disappears from the Awaiting cards tab for all users from the HR group. Request goes to the group above Business. Corporate admin from Business group decides:  
    </span><span style="font-weight: 400;">i. Accept - card changes its status from </span>CREATED<span style="font-weight: 400;"> to </span>DELIVERED<span style="font-weight: 400;"> and card with previous limits changes its status to </span>REAPPROVED<span style="font-weight: 400;">. Only one card is seen on Cards history list.  
    </span><span style="font-weight: 400;">ii. Reject - card changes its status from </span>CREATED<span style="font-weight: 400;"> to </span>REJECTED<span style="font-weight: 400;"> and card with previous limits stays with status </span>DELIVERED<span style="font-weight: 400;">. Both cards can be seen on Cards history list. </span><span style="font-weight: 400;">  
    </span><span style="font-weight: 400;">  
    b. Reject - card changes its status from </span>CREATED<span style="font-weight: 400;"> to </span>REJECTED<span style="font-weight: 400;"> and card with previous limits stays with status </span>DELIVERED<span style="font-weight: 400;">. Both cards can be seen on Cards history list. </span></span>

### <span style="font-weight: 400; color: #1c1e3f;">Redeem card</span>

<span style="font-weight: 400; color: #1c1e3f;">**Use case 1:** Start date of a card is actual date.</span>

1. <span style="font-weight: 400; color: #1c1e3f;">Cardholder receives an email with code to redeem card in mobile application. If they do not have an account, they receive an invitation email first.</span>
2. <span style="font-weight: 400; color: #1c1e3f;">Cardholder fills 6 digits code for redeeming card.</span>
3. <span style="font-weight: 400; color: #1c1e3f;">In the next step the cardholder receives confirmation code on the phone number that Operator has put in the Assign card form. Cardholder fills this code in a mobile application.</span>
4. <span style="color: #1c1e3f;"><span style="font-weight: 400;">Card is redeemed and ready to use. In the Corporate panel card changes its status to </span>DELIVERED<span style="font-weight: 400;">.</span></span>

<span style="font-weight: 400; color: #1c1e3f;">**Use case 2:** Start date of a card is in the future.</span>

1. <span style="font-weight: 400; color: #1c1e3f;">Cardholder receives an email with code to redeem card in mobile application. If they do not have an account, they receive an invitation email first.</span>
2. <span style="font-weight: 400; color: #1c1e3f;">Cardholder fills 6 digits code for redeeming card before the start date of a card.</span>
3. <span style="font-weight: 400; color: #1c1e3f;">In the next step the cardholder receives confirmation code on the phone number that Operator has put in the Assign card form. Cardholder fills this code in a mobile application.</span>
4. <span style="color: #1c1e3f;"><span style="font-weight: 400;">Card is redeemed but the cardholder can’t use it yet. In the Corporate panel card changes its status to </span>PREPARED<span style="font-weight: 400;">.</span></span>
5. <span style="color: #1c1e3f;"><span style="font-weight: 400;">When the actual date meets the start date of a card, the cardholder can use a card. Then it changes its status to </span>DELIVERED<span style="font-weight: 400;">.</span><span style="font-weight: 400;">  
      
    </span></span>

<span style="color: #1c1e3f;"><span style="font-weight: 400;">In both cases cards can be used until the end date of a card or until Corporate Admin unassign a card from the cardholder. Then the card changes its status to </span>FINISHED<span style="font-weight: 400;">.</span></span>

### <span style="font-weight: 400; color: #1c1e3f;">Reassign card</span>

<span style="font-weight: 400; color: #1c1e3f;">Reassign card option can be used to assign a card for the same cardholder one more time. </span>

1. <span style="font-weight: 400; color: #1c1e3f;">Card changes its status to FINISHED.</span>
2. <span style="font-weight: 400; color: #1c1e3f;">Corporate admin chooses option “Reassign card” on card details or cards list. </span>
3. <span style="font-weight: 400; color: #1c1e3f;">Reassign card is displayed with already filled fields: Cardholder e-mail, cardholder phone number, account, total amount, periodic limit. All fields apart from cardholder e-mail and cardholder phone number can be changed.</span>
4. <span style="font-weight: 400; color: #1c1e3f;">After adjusting data, the Corporate Admin saves form.</span>
5. <span style="font-weight: 400; color: #1c1e3f;">Cardholder receives an email with code to redeem card in mobile application.</span>