diff --git a/packages/dnb-eufemia/src/extensions/payment-card/PaymentCard.d.ts b/packages/dnb-eufemia/src/extensions/payment-card/PaymentCard.d.ts index 79ab4e0cd86..9fa04164971 100644 --- a/packages/dnb-eufemia/src/extensions/payment-card/PaymentCard.d.ts +++ b/packages/dnb-eufemia/src/extensions/payment-card/PaymentCard.d.ts @@ -58,6 +58,18 @@ export interface PaymentCardRawData { productType: ProductType; bankAxept: BankAxeptType; } + +export interface CardDesign { + name: string; + cardStyle: string; + bankLogo: any; + visa: any; + mastercard: any; + bankAxept: any; + saga: any; + privateBanking: any; +} + export type PaymentCardChildren = | string | React.ReactNode @@ -109,6 +121,8 @@ export default class PaymentCard extends React.Component< static defaultProps: object; render(): JSX.Element; } -export const getCardData = (product_code: string) => PaymentCardRawData; +export const getCardData: ( + product_code: string +) => Omit & { cardDesign: CardDesign }; export const formatCardNumber = (cardNumber: string, digits?: number) => string;