react-native-unit-components
Version:
Unit React Native components
77 lines • 2.27 kB
TypeScript
import type { UNAddress, UNFullName, UNLimits, UNRelationship, UNTags } from './types';
export type UNCardData = UNIndividualDebitCard | UNBusinessDebitCard;
type UNCardStatus = 'Active' | 'Inactive' | 'Stolen' | 'Lost' | 'Frozen' | 'ClosedByCustomer' | 'SuspectedFraud';
export type UNIndividualDebitCard = {
id: string;
type: 'individualDebitCard' | 'individualVirtualDebitCard';
attributes: {
createdAt: string;
last4Digits: string;
expirationDate: string;
status: UNCardStatus;
shippingAddress?: UNAddress;
updatedAt?: string;
design?: string;
additionalEmbossedText?: string;
idempotencyKey?: string;
tags?: UNTags;
limits?: UNLimits;
printOnlyBusinessName?: boolean;
};
relationships: {
account: UNRelationship;
customer: UNRelationship;
};
};
export type UNBusinessDebitCard = {
id: string;
type: 'businessDebitCard' | 'businessVirtualDebitCard';
attributes: {
fullName: UNFullName;
dateOfBirth: string;
address: UNAddress;
shippingAddress?: UNAddress;
phone: string;
email: string;
createdAt: string;
last4Digits: string;
expirationDate: string;
status: UNCardStatus;
updatedAt?: string;
ssn?: string;
passport?: string;
nationality?: string;
design?: string;
additionalEmbossedText?: string;
idempotencyKey?: string;
tags?: Record<string, string>;
limits?: UNLimits;
printOnlyBusinessName?: boolean;
};
relationships: {
account: UNRelationship;
customer: UNRelationship;
};
};
export declare enum UNCardMenuAction {
Freeze = "Freeze",
ManagePin = "ManagePin",
Replace = "Replace",
Report = "Report",
Close = "Close",
Activate = "Activate",
Unfreeze = "Unfreeze",
ChangePin = "ChangePin",
SetPin = "SetPin",
AddToWallet = "AddToWallet"
}
export declare enum UNCardMenuItem {
freeze = "freeze",
addToWallet = "addToWallet",
managePin = "managePin",
replace = "replace",
report = "report",
close = "close"
}
export {};
//# sourceMappingURL=card.types.d.ts.map