Skip to content

Commit

Permalink
chore: remove bancomat cards
Browse files Browse the repository at this point in the history
  • Loading branch information
mastro993 committed Apr 11, 2024
1 parent eaccfad commit 82e58bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/features/wallet/persistence/paymentMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { PaymentMethodStatusEnum } from "../../../../generated/definitions/pagop
import { Range } from "../../../../generated/definitions/pagopa/walletv3/Range";
import { WalletInfoDetails } from "../../../../generated/definitions/pagopa/walletv3/WalletInfoDetails";

const generateRandomCardBrand = () =>
faker.helpers.arrayElement(["VISA", "MASTERCARD", "AMEX", "MAESTRO"]);

export const paymentMethodsDB: ReadonlyArray<PaymentMethodResponse> = [
{
id: "1",
Expand Down Expand Up @@ -65,7 +68,7 @@ export const generateWalletDetailsByPaymentMethod = (
type: "CARDS",
lastFourDigits: faker.finance.mask(4, false, false),
expiryDate: format(faker.date.future(3), "yyyyMM"),
brand: "VISA"
brand: generateRandomCardBrand()
};
case 2:
return {
Expand Down
1 change: 0 additions & 1 deletion src/features/wallet/persistence/userWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const generateUserWallet = (
};

const generateWalletData = () => {
generateUserWallet(3);
generateUserWallet(2);
generateUserWallet(1);
generateUserWallet(1, { expiryDate: format(faker.date.past(1), "yyyyMM") });
Expand Down

0 comments on commit 82e58bb

Please sign in to comment.