-
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.
feat: Fetching card details from admin/corporate_cards and removing s…
…tats call (#3038) * Fetching card details from admin/corporate_cards and removing stats call * Removing nickname from mock data to test undefined nickname condition * Simplifying getting card details
- Loading branch information
1 parent
989bedd
commit e04b5e8
Showing
6 changed files
with
129 additions
and
31 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,74 @@ | ||
import { DataFeedSource } from '../enums/data-feed-source.enum'; | ||
import { PlatformCorporateCard } from '../models/platform/platform-corporate-card.model'; | ||
import deepFreeze from 'deep-freeze-strict'; | ||
|
||
export const corporateCardsResponseData: PlatformCorporateCard[] = deepFreeze([ | ||
{ | ||
assignor_user_id: 'usvKA4X8Ugcr', | ||
bank_name: 'DAMNA', | ||
card_number: '8698', | ||
cardholder_name: null, | ||
code: null, | ||
created_at: '2023-03-03T07:16:46.376082+00:00', | ||
data_feed_source: DataFeedSource.BANK_FEED_CDF, | ||
id: 'bacc15bbrRGWzf', | ||
is_dummy: false, | ||
is_mastercard_enrolled: false, | ||
is_visa_enrolled: false, | ||
last_assigned_at: '2023-03-03T07:16:46.376082+00:00', | ||
last_ready_for_verification_at: null, | ||
last_synced_at: null, | ||
last_verification_attempt_at: null, | ||
last_verified_at: null, | ||
org_id: 'orNVthTo2Zyo', | ||
updated_at: '2023-03-03T07:16:46.376082+00:00', | ||
user_id: 'usvKA4X8Ugcr', | ||
verification_status: 'NOT_VERIFIED', | ||
nickname: 'Business Card1', | ||
}, | ||
{ | ||
assignor_user_id: 'usvKA4X8Ugcr', | ||
bank_name: 'DAMNA', | ||
card_number: '8698', | ||
cardholder_name: null, | ||
code: null, | ||
created_at: '2023-03-03T07:16:46.376082+00:00', | ||
data_feed_source: DataFeedSource.BANK_FEED_CDF, | ||
id: 'bacc15bbrRGWzf', | ||
is_dummy: false, | ||
is_mastercard_enrolled: false, | ||
is_visa_enrolled: false, | ||
last_assigned_at: '2023-03-03T07:16:46.376082+00:00', | ||
last_ready_for_verification_at: null, | ||
last_synced_at: null, | ||
last_verification_attempt_at: null, | ||
last_verified_at: null, | ||
org_id: 'orNVthTo2Zyo', | ||
updated_at: '2023-03-03T07:16:46.376082+00:00', | ||
user_id: 'usvKA4X8Ugcr', | ||
verification_status: 'NOT_VERIFIED', | ||
nickname: 'Business Card2', | ||
}, | ||
{ | ||
assignor_user_id: 'usvKA4X8Ugcr', | ||
bank_name: 'PEX BANK', | ||
card_number: '869', | ||
cardholder_name: null, | ||
code: null, | ||
created_at: '2023-03-03T07:16:46.376082+00:00', | ||
data_feed_source: DataFeedSource.BANK_FEED_CDF, | ||
id: 'bacc15bbrRGWzf', | ||
is_dummy: false, | ||
is_mastercard_enrolled: false, | ||
is_visa_enrolled: false, | ||
last_assigned_at: '2023-03-03T07:16:46.376082+00:00', | ||
last_ready_for_verification_at: null, | ||
last_synced_at: null, | ||
last_verification_attempt_at: null, | ||
last_verified_at: null, | ||
org_id: 'orNVthTo2Zyo', | ||
updated_at: '2023-03-03T07:16:46.376082+00:00', | ||
user_id: 'usvKA4X8Ugcr', | ||
verification_status: 'NOT_VERIFIED', | ||
}, | ||
]); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export interface UniqueCards { | ||
cardNumber: string; | ||
cardName: string; | ||
cardNickname?: string; | ||
} |
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