Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [IOBP-863,IOBP-864] Removed legacy wallet & payments features #6210

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion ts/__mocks__/paymentPayloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import {
IWithinRangeStringTag
} from "@pagopa/ts-commons/lib/strings";

import { paymentVerifica } from "../store/actions/wallet/payment";
import { ImportoEuroCents } from "../../definitions/backend/ImportoEuroCents";
import { myRptId } from "../utils/testFaker";
import { Amount, Transaction } from "../types/pagopa";
import { paymentVerifica } from "../store/actions/legacyWallet";

export const messageId = "abcde-12345";

Expand Down
17 changes: 0 additions & 17 deletions ts/boot/__tests__/__snapshots__/persistedStore.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,6 @@ exports[`Check the addition for new fields to the persisted store. If one of thi
}
`;

exports[`Check the addition for new fields to the persisted store. If one of this test fails, check that exists the migration before updating the snapshot! Freeze 'payments' state 1`] = `
{
"creditCardInsertion": [],
"current": {
"kind": "UNSTARTED",
},
"history": [],
"lastDeleted": null,
}
`;

exports[`Check the addition for new fields to the persisted store. If one of this test fails, check that exists the migration before updating the snapshot! Freeze 'persistedPreferences' state 1`] = `
{
"continueWithRootOrJailbreak": false,
Expand All @@ -124,9 +113,3 @@ exports[`Check the addition for new fields to the persisted store. If one of thi
"kind": "PotNone",
}
`;

exports[`Check the addition for new fields to the persisted store. If one of this test fails, check that exists the migration before updating the snapshot! Freeze 'wallet.wallets.walletById' state 1`] = `
{
"kind": "PotNone",
}
`;
6 changes: 0 additions & 6 deletions ts/boot/__tests__/persistedStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ describe("Check the addition for new fields to the persisted store. If one of th
it("Freeze 'installation' state", () => {
expect(globalState.installation).toMatchSnapshot();
});
it("Freeze 'payments' state", () => {
expect(globalState.payments).toMatchSnapshot();
});
it("Freeze 'content' state", () => {
expect(globalState.content).toMatchSnapshot();
});
Expand All @@ -54,9 +51,6 @@ describe("Check the addition for new fields to the persisted store. If one of th
it("Freeze 'identification' state", () => {
expect(globalState.identification).toMatchSnapshot();
});
it("Freeze 'wallet.wallets.walletById' state", () => {
expect(globalState.wallet.wallets.walletById).toMatchSnapshot();
});

it("Freeze 'installation.appVersionHistory' state", () => {
expect(globalState.installation.appVersionHistory).toMatchSnapshot();
Expand Down
2 changes: 0 additions & 2 deletions ts/boot/configureStoreAndPersistor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ import {
} from "../features/pushNotifications/store/reducers";
import { getInitialState as getInstallationInitialState } from "../features/pushNotifications/store/reducers/installation";
import { GlobalState, PersistedGlobalState } from "../store/reducers/types";
import { walletsPersistConfig } from "../store/reducers/wallet";
import { DateISO8601Transform } from "../store/transforms/dateISO8601Tranform";
import { PotTransform } from "../store/transforms/potTransform";
import { isDevEnv } from "../utils/environment";
Expand Down Expand Up @@ -491,7 +490,6 @@ const persistedReducer: Reducer<PersistedGlobalState, Action> = persistReducer<
createRootReducer([
rootPersistConfig,
authenticationPersistConfig,
walletsPersistConfig,
entitiesPersistConfig
])
);
Expand Down
82 changes: 0 additions & 82 deletions ts/components/__tests__/ContextualInfo.test.tsx

This file was deleted.

50 changes: 0 additions & 50 deletions ts/components/__tests__/PspComponent.test.tsx

This file was deleted.

99 changes: 0 additions & 99 deletions ts/components/wallet/FavoriteMethodSwitch.tsx

This file was deleted.

60 changes: 0 additions & 60 deletions ts/components/wallet/InternationalCircuitIconsBar.tsx

This file was deleted.

Loading
Loading