-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
447 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export enum CardStatus { | ||
ACTIVE = 'ACTIVE', | ||
PREACTIVE = 'PREACTIVE', | ||
INACTIVE = 'INACTIVE', | ||
USED = 'USED', | ||
DELETED = 'DELETED', | ||
EXPIRED = 'EXPIRED', | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum ManageCardsPageSegment { | ||
CORPORATE_CARDS, | ||
VIRTUAL_CARDS, | ||
} |
This file contains 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
17 changes: 17 additions & 0 deletions
17
src/app/core/mock-data/virtual-card-details-response.data.ts
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { CardDetailsAmountResponse } from '../models/card-details-amount-response'; | ||
import { CardDetailsResponse } from '../models/card-details-response.model'; | ||
|
||
export const virtualCardDetailsResponse: { data: CardDetailsResponse } = { | ||
data: { | ||
full_card_number: '123412341234123', | ||
cvv: '123', | ||
// @ts-ignore | ||
expiry_date: '2029-01-01T00:00:00+00:00', | ||
}, | ||
}; | ||
|
||
export const virtualCardCurrentAmountResponse: { data: CardDetailsAmountResponse } = { | ||
data: { | ||
current_amount: 1000, | ||
}, | ||
}; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
1 change: 0 additions & 1 deletion
1
src/app/shared/components/spent-cards/card-detail/card-detail.component.html
This file contains 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
55 changes: 55 additions & 0 deletions
55
src/app/shared/components/virtual-card/virtual-card.component.html
This file contains 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<div class="virtual-card"> | ||
<div class="virtual-card__card-number"> | ||
<div class="virtual-card__card-number__nickname"> | ||
{{ cardNickname }} | ||
<div class="virtual-card__status-pill"> | ||
<div class="virtual-card__status-pill__dot"></div> | ||
<div>{{ cardStatus | titlecase }}</div> | ||
</div> | ||
</div> | ||
<div class="virtual-card__card-number__card-number-container"> | ||
<div *ngIf="!showCardNumber" class="virtual-card__card-number__card-number-mask d-flex"> | ||
<div>****</div> | ||
<div>******</div> | ||
</div> | ||
<div *ngIf="showCardNumber" class="virtual-card__card-number__card-number-unmasked d-flex"> | ||
<div>{{ cardNumber | slice : 0 : 4 }}</div> | ||
<div>{{ cardNumber | slice : 4 : 10 }}</div> | ||
</div> | ||
<div class="virtual-card__card-number__unmasked-card-digits"> | ||
{{ cardNumber | slice : 10 : 15 }} | ||
</div> | ||
<ion-icon | ||
src="../../../../../assets/svg/duplicate.svg" | ||
(press)="toggleShowCardNumber()" | ||
(pressup)="hideCardNumberAndCopy()" | ||
(tap)="copyToClipboard(cardNumber)" | ||
></ion-icon> | ||
</div> | ||
</div> | ||
<div class="virtual-card__card-fields"> | ||
<div class="virtual-card__card-fields__cvv-field"> | ||
<div class="virtual-card__card-fields__label-text">CVV</div> | ||
<div class="d-flex"> | ||
<div *ngIf="!showCvv" class="virtual-card__card-fields__cvv-mask">****</div> | ||
<div *ngIf="showCvv" class="virtual-card__card-fields__cvv-number">{{ cvv }}</div> | ||
<ion-icon | ||
class="virtual-card__card-fields__cvv-copy-icon" | ||
src="../../../../../assets/svg/duplicate.svg" | ||
(press)="toggleShowCvv()" | ||
(pressup)="hideCvvAndCopy()" | ||
(tap)="copyToClipboard(cvv)" | ||
></ion-icon> | ||
</div> | ||
</div> | ||
<div> | ||
<div class="virtual-card__card-fields__label-text">Expiry</div> | ||
<div class="virtual-card__card-fields__value-text">{{ expiry | date : 'MM/yy' }}</div> | ||
</div> | ||
<div class="virtual-card__vertical-divider"></div> | ||
<div> | ||
<div class="virtual-card__card-fields__label-text">Available</div> | ||
<div class="virtual-card__card-fields__value-text">{{ availableAmount | currency : 'USD' }}</div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.