From 46c0f6112acd5565aabf1c78b40970602b6a0819 Mon Sep 17 00:00:00 2001 From: Avni BALIKCI Date: Mon, 2 Feb 2026 16:53:50 +0300 Subject: [PATCH 1/2] Add encrypted card to card model --- src/request/dto/Card.ts | 7 ++++++- src/request/dto/EncryptedCard.ts | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/request/dto/EncryptedCard.ts diff --git a/src/request/dto/Card.ts b/src/request/dto/Card.ts index 2f0d792..6eff8f3 100644 --- a/src/request/dto/Card.ts +++ b/src/request/dto/Card.ts @@ -1,5 +1,6 @@ import {Loyalty} from '../../model/Loyalty'; import TokenizedCardType from '../../model/TokenizedCardType'; +import {EncryptedCard} from './EncryptedCard'; export type PaymentCard = { cardAlias?: string; @@ -36,4 +37,8 @@ export type SecureFieldsCard = { secureFieldsToken: string; }; -export type Card = PaymentCard | StoredCard | First6Last4CardWithIdentityNumber | TokenizedCard | SecureFieldsCard; +export type EncryptedCardType = { + encryptedCard: EncryptedCard; +}; + +export type Card = PaymentCard | StoredCard | First6Last4CardWithIdentityNumber | TokenizedCard | SecureFieldsCard | EncryptedCardType; diff --git a/src/request/dto/EncryptedCard.ts b/src/request/dto/EncryptedCard.ts new file mode 100644 index 0000000..a59660b --- /dev/null +++ b/src/request/dto/EncryptedCard.ts @@ -0,0 +1,4 @@ +export type EncryptedCard = { + cardData: string; + type: string; +}; From f22ff21c1a9afb4215eef618f8311555bf998a5a Mon Sep 17 00:00:00 2001 From: Avni BALIKCI Date: Mon, 2 Feb 2026 16:55:31 +0300 Subject: [PATCH 2/2] Add encrypted card to card model --- src/request/dto/Card.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/request/dto/Card.ts b/src/request/dto/Card.ts index 6eff8f3..60e7f4a 100644 --- a/src/request/dto/Card.ts +++ b/src/request/dto/Card.ts @@ -1,5 +1,6 @@ import {Loyalty} from '../../model/Loyalty'; import TokenizedCardType from '../../model/TokenizedCardType'; + import {EncryptedCard} from './EncryptedCard'; export type PaymentCard = {