Skip to content

Commit 93a04f7

Browse files
authored
Merge pull request Expensify#81710 from ShridharGoel/frozenCard1
[NoQA] Add FrozenCardData to Card.ts
2 parents c667045 + bef1c5f commit 93a04f7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/types/onyx/Card.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ type Card = OnyxCommon.OnyxValueWithOfflineFeedback<{
158158

159159
/** Collection of form field errors */
160160
errorFields?: OnyxCommon.ErrorFields;
161+
162+
/**
163+
* Metadata about when and by whom the card was frozen.
164+
* null/undefined if card is not frozen
165+
*/
166+
frozen?: FrozenCardData | null;
161167
}> &
162168
OnyxCommon.OnyxValueWithOfflineFeedback<
163169
/** Type of export card */
@@ -356,6 +362,17 @@ type CardAssignmentData = {
356362
pendingAction?: OnyxCommon.PendingAction;
357363
};
358364

365+
/**
366+
* Data for a frozen card
367+
*/
368+
type FrozenCardData = {
369+
/** Account ID of the user who froze the card */
370+
byAccountID: number;
371+
372+
/** UTC datetime when card was frozen (ISO format: YYYY-MM-DD HH:MM:SS) */
373+
date: string;
374+
};
375+
359376
export default Card;
360377
export type {
361378
ExpensifyCardDetails,
@@ -369,4 +386,5 @@ export type {
369386
ProvisioningCardData,
370387
AssignableCardsList,
371388
UnassignedCard,
389+
FrozenCardData,
372390
};

0 commit comments

Comments
 (0)