@zeniai/client-epic-state 4.18.89 → 4.18.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonStateTypes/animations.d.ts +1 -1
- package/lib/commonStateTypes/animations.js +0 -4
- package/lib/commonStateTypes/classesView/getNestedClassIDHierarchyForReport.js +0 -2
- package/lib/commonStateTypes/classesView/nestedClassID.d.ts +0 -1
- package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
- package/lib/commonStateTypes/viewAndReport/viewAndReport.js +0 -1
- package/lib/entity/account/accountState.d.ts +1 -1
- package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
- package/lib/entity/chargeCard/chargeCard.d.ts +1 -2
- package/lib/entity/chargeCard/chargeCard.js +0 -2
- package/lib/entity/chargeCard/chargeCardPayload.d.ts +1 -2
- package/lib/entity/chargeCard/chargeCardPayload.js +9 -10
- package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
- package/lib/entity/chargeCardTransaction/chargeCardTransactionPayload.d.ts +2 -1
- package/lib/entity/class/classPayload.d.ts +0 -1
- package/lib/entity/class/classPayload.js +9 -9
- package/lib/entity/class/classReducer.d.ts +4 -4
- package/lib/entity/class/classState.d.ts +1 -2
- package/lib/entity/forecast/forecastState.d.ts +1 -1
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.d.ts +0 -8
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksPayload.js +0 -14
- package/lib/entity/monthEndCloseChecks/monthEndCloseChecksState.d.ts +0 -8
- package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
- package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -12
- package/lib/entity/tenant/tenantPayload.d.ts +0 -1
- package/lib/entity/tenant/tenantReducer.d.ts +1 -1
- package/lib/entity/tenant/tenantReducer.js +2 -8
- package/lib/entity/tenant/tenantState.d.ts +0 -1
- package/lib/epic.d.ts +1 -13
- package/lib/epic.js +1 -13
- package/lib/index.d.ts +12 -14
- package/lib/index.js +30 -53
- package/lib/init.d.ts +1 -2
- package/lib/init.js +2 -3
- package/lib/responsePayload.d.ts +0 -3
- package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +1 -1
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +1 -1
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
- package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
- package/lib/view/classList/classListReducer.d.ts +1 -3
- package/lib/view/classList/classListReducer.js +3 -8
- package/lib/view/classList/fetchClassListEpic.js +2 -6
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.d.ts +1 -2
- package/lib/view/companyMonthEndReportView/companyMonthEndReportViewReducer.js +2 -10
- package/lib/view/companyMonthEndReportView/epics/fetchCompanyMonthEndReportViewEpic.js +4 -2
- package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
- package/lib/view/dashboard/dashboardSelector.d.ts +1 -2
- package/lib/view/dashboard/dashboardSelector.js +6 -14
- package/lib/view/dashboardLayout/dashboardLayoutReducer.js +0 -1
- package/lib/view/dashboardLayout/fetchDashboardLayoutEpic.js +1 -14
- package/lib/view/expenseAutomationView/epics/common/refreshExpenseAutomationCurrentTabEpic.js +1 -1
- package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
- package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthEndCloseChecksEpic.js +1 -1
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewPayload.d.ts +0 -8
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.d.ts +1 -11
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewReducer.js +3 -47
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.d.ts +0 -3
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewSelector.js +13 -18
- package/lib/view/monthEndCloseChecksView/monthEndCloseChecksViewState.d.ts +1 -7
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
- package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +4 -3
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +2 -17
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +3 -38
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +1 -11
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +4 -40
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +26 -189
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +1 -19
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +12 -87
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchDepositAccountLimitEpic.js +4 -4
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListPayload.d.ts +0 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +4 -34
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +3 -142
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +0 -46
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +4 -198
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.d.ts +1 -3
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.js +0 -18
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.d.ts +1 -1
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewReducer.js +2 -24
- package/lib/view/spendManagement/treasury/treasurySetUp/treasurySetupViewState.d.ts +0 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
- package/lib/view/topEx/topExSelector.d.ts +1 -1
- package/lib/zeniAPI.d.ts +1 -12
- package/lib/zeniAPI.js +6 -33
- package/package.json +1 -1
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthClosePerformanceTrendEpic.d.ts +0 -7
- package/lib/view/monthEndCloseChecksView/epics/fetchMonthClosePerformanceTrendEpic.js +0 -47
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/closeChargeCardEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/closeChargeCardEpic.js +0 -71
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardsRecurringExpensesEpic.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardsRecurringExpensesEpic.js +0 -44
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/lockChargeCardEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/lockChargeCardEpic.js +0 -78
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/unlockChargeCardEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/unlockChargeCardEpic.js +0 -75
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardNameEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardNameEpic.js +0 -83
- package/lib/view/spendManagement/chargeCards/chargeCardList/closeChargeCardsEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/chargeCardList/closeChargeCardsEpic.js +0 -69
- package/lib/view/spendManagement/chargeCards/chargeCardList/lockChargeCardsEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/chargeCardList/lockChargeCardsEpic.js +0 -69
- package/lib/view/spendManagement/chargeCards/chargeCardList/revokeChargeCardsInviteEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/chargeCardList/revokeChargeCardsInviteEpic.js +0 -71
- package/lib/view/spendManagement/chargeCards/chargeCardList/unlockChargeCardsEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/chargeCardList/unlockChargeCardsEpic.js +0 -68
- package/lib/view/spendManagement/chargeCards/chargeCardList/updateChargeCardsLimitEpic.d.ts +0 -9
- package/lib/view/spendManagement/chargeCards/chargeCardList/updateChargeCardsLimitEpic.js +0 -76
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.d.ts +0 -8
- package/lib/view/spendManagement/treasury/treasurySetUp/epic/updateTreasuryVideoViewedEpic.js +0 -22
|
@@ -1,36 +1,22 @@
|
|
|
1
|
-
import { Amount } from '../../../../commonStateTypes/amount';
|
|
2
1
|
import { FetchStateAndError, FetchedState, ID } from '../../../../commonStateTypes/common';
|
|
3
2
|
import { SortOrder } from '../../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
4
3
|
import { PageToken } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
5
|
-
import { ChargeCardMerchant } from '../../../../entity/chargeCardTransaction/chargeCardTransaction';
|
|
6
4
|
import { Attachment } from '../../../../entity/transaction/stateTypes/attachment';
|
|
7
|
-
import {
|
|
8
|
-
import { ChargeCardTransactionStatisticsPayload, RecurringExpensePayload } from './chargeCardDetailPayload';
|
|
5
|
+
import { ChargeCardTransactionStatisticsPayload } from './chargeCardDetailPayload';
|
|
9
6
|
export declare const VISA_EOD_CORRECTION_TRANSACTION_TYPE_NAME = "Card Transaction";
|
|
10
7
|
export interface ChargeCardDetailState {
|
|
11
|
-
depositAccountLimitFetchStateByDepositAccountId: Record<ID, FetchStateAndError>;
|
|
12
8
|
detailById: Record<ID, ChargeCardDetail>;
|
|
13
|
-
recurringExpensesByChargeCardId: Record<ID, RecurringExpense[]>;
|
|
14
|
-
recurringExpensesFetchState: FetchStateAndError;
|
|
15
|
-
}
|
|
16
|
-
export interface RecurringExpense {
|
|
17
|
-
amount: Amount;
|
|
18
|
-
merchant: ChargeCardMerchant;
|
|
19
|
-
nextPaymentDate: ZeniDate;
|
|
20
9
|
}
|
|
21
10
|
interface ChargeCardDetail extends FetchedState {
|
|
22
|
-
closeChargeCardFetchState: FetchStateAndError;
|
|
23
11
|
cvvActivationWaitStatus: FetchStateAndError;
|
|
24
12
|
debitCardSetPinWaitStatus: FetchStateAndError;
|
|
13
|
+
depositAccountLimitFetchState: FetchStateAndError;
|
|
25
14
|
id: ID;
|
|
26
15
|
isRefreshingViewInBackground: boolean;
|
|
27
|
-
lockChargeCardFetchState: FetchStateAndError;
|
|
28
16
|
transactionList: ChargeCardDetailTransactionList;
|
|
29
17
|
transactionStatistics: TransactionStatistics;
|
|
30
18
|
twoFAState: TwoFAState;
|
|
31
|
-
unlockChargeCardFetchState: FetchStateAndError;
|
|
32
19
|
updateChargeCardLimitFetchState: FetchStateAndError;
|
|
33
|
-
updateChargeCardNameFetchState: FetchStateAndError;
|
|
34
20
|
updateDebitCardPinAttemptFetchState: FetchStateAndError;
|
|
35
21
|
updatePhysicalChargeCardAttemptFetchState: FetchStateAndError;
|
|
36
22
|
updateStatus: FetchStateAndError;
|
|
@@ -82,5 +68,4 @@ export interface ChargeCardTransactionStatistics {
|
|
|
82
68
|
totalNumberOfTransactionsWithReceipts: number;
|
|
83
69
|
}
|
|
84
70
|
export declare const mapChargeCardTransactionStatisticsPayloadToChargeCardTransactionStatistics: (statistics: ChargeCardTransactionStatisticsPayload) => ChargeCardTransactionStatistics;
|
|
85
|
-
export declare const mapRecurringExpensePayloadToRecurringExpense: (recurringExpense: RecurringExpensePayload) => RecurringExpense;
|
|
86
71
|
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const urlPayload_1 = require("../../../../commonPayloadTypes/urlPayload");
|
|
5
|
-
const amount_1 = require("../../../../commonStateTypes/amount");
|
|
3
|
+
exports.mapChargeCardTransactionStatisticsPayloadToChargeCardTransactionStatistics = exports.emptyChargeCardDetail = exports.initialTransactionStatistics = exports.initialTransactionAttachments = exports.toChargeCardTransactionSortKeyType = exports.VISA_EOD_CORRECTION_TRANSACTION_TYPE_NAME = void 0;
|
|
6
4
|
const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
|
|
7
|
-
const zeniDayJS_1 = require("../../../../zeniDayJS");
|
|
8
5
|
exports.VISA_EOD_CORRECTION_TRANSACTION_TYPE_NAME = 'Card Transaction';
|
|
9
6
|
const ALL_CHARGE_CARD_TRANSACTION_SORT_KEYS = [
|
|
10
7
|
'merchant',
|
|
@@ -51,20 +48,12 @@ exports.emptyChargeCardDetail = {
|
|
|
51
48
|
otpChallenge: undefined,
|
|
52
49
|
},
|
|
53
50
|
isRefreshingViewInBackground: false,
|
|
54
|
-
|
|
55
|
-
updateChargeCardNameFetchState: {
|
|
56
|
-
fetchState: 'Not-Started',
|
|
57
|
-
error: undefined,
|
|
58
|
-
},
|
|
59
|
-
lockChargeCardFetchState: {
|
|
51
|
+
depositAccountLimitFetchState: {
|
|
60
52
|
fetchState: 'Not-Started',
|
|
61
53
|
error: undefined,
|
|
62
54
|
},
|
|
55
|
+
id: '',
|
|
63
56
|
fetchState: 'Not-Started',
|
|
64
|
-
closeChargeCardFetchState: {
|
|
65
|
-
fetchState: 'Not-Started',
|
|
66
|
-
error: undefined,
|
|
67
|
-
},
|
|
68
57
|
cvvActivationWaitStatus: {
|
|
69
58
|
fetchState: 'Not-Started',
|
|
70
59
|
error: undefined,
|
|
@@ -111,10 +100,6 @@ exports.emptyChargeCardDetail = {
|
|
|
111
100
|
error: undefined,
|
|
112
101
|
},
|
|
113
102
|
transactionStatistics: exports.initialTransactionStatistics,
|
|
114
|
-
unlockChargeCardFetchState: {
|
|
115
|
-
fetchState: 'Not-Started',
|
|
116
|
-
error: undefined,
|
|
117
|
-
},
|
|
118
103
|
};
|
|
119
104
|
const mapChargeCardTransactionStatisticsPayloadToChargeCardTransactionStatistics = (statistics) => {
|
|
120
105
|
return {
|
|
@@ -131,23 +116,3 @@ const mapChargeCardTransactionStatisticsPayloadToChargeCardTransactionStatistics
|
|
|
131
116
|
};
|
|
132
117
|
};
|
|
133
118
|
exports.mapChargeCardTransactionStatisticsPayloadToChargeCardTransactionStatistics = mapChargeCardTransactionStatisticsPayloadToChargeCardTransactionStatistics;
|
|
134
|
-
const mapRecurringExpensePayloadToRecurringExpense = (recurringExpense) => {
|
|
135
|
-
var _a;
|
|
136
|
-
return {
|
|
137
|
-
amount: (0, amount_1.toAmount)(recurringExpense.amount, recurringExpense.currency_code, recurringExpense.currency_symbol),
|
|
138
|
-
nextPaymentDate: (0, zeniDayJS_1.date)(recurringExpense.next_payment_date),
|
|
139
|
-
merchant: {
|
|
140
|
-
name: recurringExpense.merchant.name,
|
|
141
|
-
brandName: recurringExpense.merchant.brand_name != null
|
|
142
|
-
? recurringExpense.merchant.brand_name
|
|
143
|
-
: undefined,
|
|
144
|
-
logo: recurringExpense.merchant.logo != null
|
|
145
|
-
? {
|
|
146
|
-
url: (0, urlPayload_1.toURL)(recurringExpense.merchant.logo),
|
|
147
|
-
base64: (_a = recurringExpense.merchant.logo.base64) !== null && _a !== void 0 ? _a : undefined,
|
|
148
|
-
}
|
|
149
|
-
: undefined,
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
exports.mapRecurringExpensePayloadToRecurringExpense = mapRecurringExpensePayloadToRecurringExpense;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { AddressPayload } from '../../../../entity/address/addressPayload';
|
|
2
2
|
import { ChargeCardPayload } from '../../../../entity/chargeCard/chargeCardPayload';
|
|
3
|
-
import {
|
|
3
|
+
import { ChargeCardTransactionPayload } from '../../../../entity/chargeCardTransaction/chargeCardTransactionPayload';
|
|
4
4
|
import { ConnectedAccountPayload } from '../../../../entity/connectedAccount/connectedAccountPayload';
|
|
5
|
-
import { AmountPayload } from '../../../../entity/reimbursement/reimbursementPayload';
|
|
6
5
|
import { AttachmentPayload } from '../../../../entity/transaction/payloadTypes/attachmentPayload';
|
|
7
6
|
import { UserPayload } from '../../../../entity/user/userPayload';
|
|
8
7
|
import { UserRolePayload } from '../../../../entity/userRole/userRolePayload';
|
|
@@ -46,13 +45,4 @@ export interface ChargeCardTransactionStatisticsPayload {
|
|
|
46
45
|
total_number_of_paid_transactions: number;
|
|
47
46
|
total_number_of_transactions_with_receipts: number;
|
|
48
47
|
}
|
|
49
|
-
export interface RecurringExpensePayload extends AmountPayload {
|
|
50
|
-
merchant: ChargeCardMerchantPayload;
|
|
51
|
-
next_payment_date: string;
|
|
52
|
-
}
|
|
53
|
-
interface ChargeCardRecurringExpensePayload {
|
|
54
|
-
card_id: string;
|
|
55
|
-
expenses: RecurringExpensePayload[];
|
|
56
|
-
}
|
|
57
|
-
export type FetchChargeCardRecurringExpensesResponse = ZeniAPIResponse<ChargeCardRecurringExpensePayload[]>;
|
|
58
48
|
export {};
|
|
@@ -3,7 +3,7 @@ import { FetchState, ID } from '../../../../commonStateTypes/common';
|
|
|
3
3
|
import { PageToken } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
4
|
import { AttachmentPayload } from '../../../../entity/transaction/payloadTypes/attachmentPayload';
|
|
5
5
|
import { ZeniAPIStatus } from '../../../../responsePayload';
|
|
6
|
-
import { ChargeCardDetailState, ChargeCardDetailUiState
|
|
6
|
+
import { ChargeCardDetailState, ChargeCardDetailUiState } from './chargeCardDetail';
|
|
7
7
|
import { ChargeCardTransactionListPayload, ChargeCardTransactionStatisticsPayload } from './chargeCardDetailPayload';
|
|
8
8
|
export declare const initialState: ChargeCardDetailState;
|
|
9
9
|
export declare const fetchChargeCardDetailPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chargeCardId: string, doFetchCreditAccounts: boolean, isCreditCardEnabled: boolean, cacheOverride?: any], {
|
|
@@ -97,40 +97,11 @@ export declare const fetchChargeCardDetailPage: import("@reduxjs/toolkit").Actio
|
|
|
97
97
|
chargeCardId: ID;
|
|
98
98
|
fetchState: FetchState;
|
|
99
99
|
error?: ZeniAPIStatus;
|
|
100
|
-
}, "chargeCardDetail/updateChargeCardSpendLimitSuccessOrFailure">,
|
|
101
|
-
isChargeCardAdmin: boolean;
|
|
102
|
-
chargeCardId: string;
|
|
103
|
-
name: string;
|
|
104
|
-
}, "chargeCardDetail/updateChargeCardName", never, never>, updateChargeCardNameSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
105
|
-
chargeCardId: ID;
|
|
106
|
-
fetchState: FetchState;
|
|
107
|
-
error?: ZeniAPIStatus;
|
|
108
|
-
}, "chargeCardDetail/updateChargeCardNameSuccessOrFailure">, lockChargeCard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isChargeCardAdmin: boolean, chargeCardId: string, reason?: string | undefined], {
|
|
109
|
-
isChargeCardAdmin: boolean;
|
|
110
|
-
chargeCardId: string;
|
|
111
|
-
reason: string | undefined;
|
|
112
|
-
}, "chargeCardDetail/lockChargeCard", never, never>, lockChargeCardSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
100
|
+
}, "chargeCardDetail/updateChargeCardSpendLimitSuccessOrFailure">, fetchDepositAccountLimit: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
113
101
|
chargeCardId: ID;
|
|
114
|
-
fetchState: FetchState;
|
|
115
|
-
error?: ZeniAPIStatus;
|
|
116
|
-
}, "chargeCardDetail/lockChargeCardSuccessOrFailure">, unlockChargeCard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isChargeCardAdmin: boolean, chargeCardId: string], {
|
|
117
|
-
chargeCardId: string;
|
|
118
|
-
isChargeCardAdmin: boolean;
|
|
119
|
-
}, "chargeCardDetail/unlockChargeCard", never, never>, unlockChargeCardSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
120
|
-
chargeCardId: ID;
|
|
121
|
-
fetchState: FetchState;
|
|
122
|
-
error?: ZeniAPIStatus;
|
|
123
|
-
}, "chargeCardDetail/unlockChargeCardSuccessOrFailure">, closeChargeCard: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[chargeCardId: string, reason?: string | undefined], {
|
|
124
|
-
chargeCardId: string;
|
|
125
|
-
reason: string | undefined;
|
|
126
|
-
}, "chargeCardDetail/closeChargeCard", never, never>, closeChargeCardSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
127
|
-
chargeCardId: ID;
|
|
128
|
-
fetchState: FetchState;
|
|
129
|
-
error?: ZeniAPIStatus;
|
|
130
|
-
}, "chargeCardDetail/closeChargeCardSuccessOrFailure">, fetchDepositAccountLimit: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
131
102
|
depositAccountId: ID;
|
|
132
103
|
}, "chargeCardDetail/fetchDepositAccountLimit">, updateDepositAccountLimitFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
133
|
-
|
|
104
|
+
chargeCardId: ID;
|
|
134
105
|
fetchState: FetchState;
|
|
135
106
|
error?: ZeniAPIStatus;
|
|
136
107
|
}, "chargeCardDetail/updateDepositAccountLimitFetchStatus">, fetchChargeCardTransactionStatistics: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -142,14 +113,7 @@ export declare const fetchChargeCardDetailPage: import("@reduxjs/toolkit").Actio
|
|
|
142
113
|
chargeCardId: ID;
|
|
143
114
|
fetchState: FetchState;
|
|
144
115
|
error?: ZeniAPIStatus;
|
|
145
|
-
}, "chargeCardDetail/updateChargeCardTransactionStatisticsFetchState">,
|
|
146
|
-
cardIds: string[];
|
|
147
|
-
}, "chargeCardDetail/fetchChargeCardsRecurringExpenses", never, never>, updateChargeCardsRecurringExpenses: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
148
|
-
recurringExpensesByChargeCardId: Record<ID, RecurringExpense[]>;
|
|
149
|
-
}, "chargeCardDetail/updateChargeCardsRecurringExpenses">, updateChargeCardsRecurringExpensesFetchState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
150
|
-
fetchState: FetchState;
|
|
151
|
-
error?: ZeniAPIStatus;
|
|
152
|
-
}, "chargeCardDetail/updateChargeCardsRecurringExpensesFetchState">, sendOtpCardHolder: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
116
|
+
}, "chargeCardDetail/updateChargeCardTransactionStatisticsFetchState">, sendOtpCardHolder: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
153
117
|
chargeCardId: ID;
|
|
154
118
|
phone: string;
|
|
155
119
|
}, "chargeCardDetail/sendOtpCardHolder">, resendOtpCardHolder: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearChargeCardDetail = exports.verifyOtpCardHolderFailure = exports.verifyOtpCardHolderSuccess = exports.verifyOtpCardHolder = exports.sendOtpCardHolderFailure = exports.sendOtpCardHolderSuccess = exports.resendOtpCardHolder = exports.sendOtpCardHolder = exports.
|
|
4
|
+
exports.clearChargeCardDetail = exports.verifyOtpCardHolderFailure = exports.verifyOtpCardHolderSuccess = exports.verifyOtpCardHolder = exports.sendOtpCardHolderFailure = exports.sendOtpCardHolderSuccess = exports.resendOtpCardHolder = exports.sendOtpCardHolder = exports.updateChargeCardTransactionStatisticsFetchState = exports.updateChargeCardTransactionStatistics = exports.fetchChargeCardTransactionStatistics = exports.updateDepositAccountLimitFetchStatus = exports.fetchDepositAccountLimit = exports.updateChargeCardSpendLimitSuccessOrFailure = exports.updateChargeCardSpendLimit = exports.updateChargeCardDetailUpdateStatus = exports.completeDebitCardSetPinWait = exports.startDebitCardSetPinWait = exports.completeCVVActivationWait = exports.startCVVActivationWait = exports.updateChargeCardDetail = exports.updateChargeCardTransactionListFailure = exports.updateChargeCardTransactionAttachmentsInCardDetail = exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = exports.updateDebitCardPinAttemptSuccessOrFailure = exports.updateDebitCardPinAttempt = exports.updatePhysicalChargeCardAttempt = exports.updatePhysicalChargeCardAttemptSuccessOrFailure = exports.updateChargeCardTransactionAttachmentsFailure = exports.updateChargeCardTransactionIsViewReceiptClicked = exports.fetchChargeCardTransactionAttachments = exports.updateChargeCardTransactionUploadReceiptsFetchStatus = exports.updateChargeCardTransactionList = exports.updateChargeCardDetailUIState = exports.fetchChargeCardTransactionList = exports.updateChargeCardDetailFetchState = exports.fetchChargeCardDetail = exports.fetchChargeCardDetailPage = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const sortOrderPayload_1 = require("../../../../commonPayloadTypes/sortOrderPayload");
|
|
7
7
|
const attachmentPayload_1 = require("../../../../entity/transaction/payloadTypes/attachmentPayload");
|
|
8
8
|
const chargeCardDetail_1 = require("./chargeCardDetail");
|
|
9
9
|
exports.initialState = {
|
|
10
10
|
detailById: {},
|
|
11
|
-
recurringExpensesByChargeCardId: {},
|
|
12
|
-
depositAccountLimitFetchStateByDepositAccountId: {},
|
|
13
|
-
recurringExpensesFetchState: {
|
|
14
|
-
fetchState: 'Not-Started',
|
|
15
|
-
error: undefined,
|
|
16
|
-
},
|
|
17
11
|
};
|
|
18
12
|
const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
19
13
|
name: 'chargeCardDetail',
|
|
@@ -51,9 +45,8 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
51
45
|
},
|
|
52
46
|
},
|
|
53
47
|
updateChargeCardDetailFetchState(draft, action) {
|
|
54
|
-
var _a;
|
|
55
48
|
const { chargeCardId, fetchState, error, isRefreshingViewInBackground } = action.payload;
|
|
56
|
-
const existingCardDetail =
|
|
49
|
+
const existingCardDetail = draft.detailById[chargeCardId];
|
|
57
50
|
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { fetchState,
|
|
58
51
|
error,
|
|
59
52
|
isRefreshingViewInBackground });
|
|
@@ -114,9 +107,8 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
114
107
|
},
|
|
115
108
|
updatePhysicalChargeCardAttempt: {
|
|
116
109
|
reducer(draft, action) {
|
|
117
|
-
var _a;
|
|
118
110
|
const { chargeCardId } = action.payload;
|
|
119
|
-
const existingCardDetail =
|
|
111
|
+
const existingCardDetail = draft.detailById[chargeCardId];
|
|
120
112
|
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updatePhysicalChargeCardAttemptFetchState: {
|
|
121
113
|
fetchState: 'In-Progress',
|
|
122
114
|
error: undefined,
|
|
@@ -129,9 +121,8 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
129
121
|
},
|
|
130
122
|
},
|
|
131
123
|
updatePhysicalChargeCardAttemptSuccessOrFailure(draft, action) {
|
|
132
|
-
var _a;
|
|
133
124
|
const { chargeCardId, fetchState, error } = action.payload;
|
|
134
|
-
const existingCardDetail =
|
|
125
|
+
const existingCardDetail = draft.detailById[chargeCardId];
|
|
135
126
|
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updatePhysicalChargeCardAttemptFetchState: {
|
|
136
127
|
fetchState,
|
|
137
128
|
error,
|
|
@@ -139,9 +130,8 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
139
130
|
},
|
|
140
131
|
updateDebitCardPinAttempt: {
|
|
141
132
|
reducer(draft, action) {
|
|
142
|
-
var _a;
|
|
143
133
|
const { chargeCardId } = action.payload;
|
|
144
|
-
const existingCardDetail =
|
|
134
|
+
const existingCardDetail = draft.detailById[chargeCardId];
|
|
145
135
|
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updateDebitCardPinAttemptFetchState: {
|
|
146
136
|
fetchState: 'In-Progress',
|
|
147
137
|
error: undefined,
|
|
@@ -154,9 +144,8 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
154
144
|
},
|
|
155
145
|
},
|
|
156
146
|
updateDebitCardPinAttemptSuccessOrFailure(draft, action) {
|
|
157
|
-
var _a;
|
|
158
147
|
const { chargeCardId, fetchState, error } = action.payload;
|
|
159
|
-
const existingCardDetail =
|
|
148
|
+
const existingCardDetail = draft.detailById[chargeCardId];
|
|
160
149
|
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updateDebitCardPinAttemptFetchState: {
|
|
161
150
|
fetchState,
|
|
162
151
|
error,
|
|
@@ -164,9 +153,8 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
164
153
|
},
|
|
165
154
|
updateChargeCardDetail: {
|
|
166
155
|
reducer(draft, action) {
|
|
167
|
-
var _a;
|
|
168
156
|
const { chargeCardId } = action.payload;
|
|
169
|
-
const existingCardDetail =
|
|
157
|
+
const existingCardDetail = draft.detailById[chargeCardId];
|
|
170
158
|
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updateStatus: {
|
|
171
159
|
fetchState: 'In-Progress',
|
|
172
160
|
error: undefined,
|
|
@@ -179,9 +167,8 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
179
167
|
},
|
|
180
168
|
},
|
|
181
169
|
updateChargeCardDetailUpdateStatus(draft, action) {
|
|
182
|
-
var _a;
|
|
183
170
|
const { chargeCardId, fetchState, error } = action.payload;
|
|
184
|
-
const existingCardDetail =
|
|
171
|
+
const existingCardDetail = draft.detailById[chargeCardId];
|
|
185
172
|
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updateStatus: {
|
|
186
173
|
fetchState,
|
|
187
174
|
error,
|
|
@@ -260,9 +247,8 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
260
247
|
},
|
|
261
248
|
updateChargeCardSpendLimit: {
|
|
262
249
|
reducer(draft, action) {
|
|
263
|
-
var _a;
|
|
264
250
|
const { chargeCardId } = action.payload;
|
|
265
|
-
const existingCardDetail =
|
|
251
|
+
const existingCardDetail = draft.detailById[chargeCardId];
|
|
266
252
|
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updateChargeCardLimitFetchState: {
|
|
267
253
|
fetchState: 'In-Progress',
|
|
268
254
|
error: undefined,
|
|
@@ -280,189 +266,40 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
280
266
|
},
|
|
281
267
|
},
|
|
282
268
|
updateChargeCardSpendLimitSuccessOrFailure(draft, action) {
|
|
283
|
-
var _a;
|
|
284
269
|
const { chargeCardId, fetchState, error } = action.payload;
|
|
285
|
-
const existingCardDetail =
|
|
270
|
+
const existingCardDetail = draft.detailById[chargeCardId];
|
|
286
271
|
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updateChargeCardLimitFetchState: {
|
|
287
272
|
fetchState,
|
|
288
273
|
error,
|
|
289
274
|
} });
|
|
290
275
|
},
|
|
291
|
-
updateChargeCardName: {
|
|
292
|
-
reducer(draft, action) {
|
|
293
|
-
var _a;
|
|
294
|
-
const { chargeCardId } = action.payload;
|
|
295
|
-
const existingCardDetail = (_a = draft.detailById[chargeCardId]) !== null && _a !== void 0 ? _a : chargeCardDetail_1.emptyChargeCardDetail;
|
|
296
|
-
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updateChargeCardNameFetchState: {
|
|
297
|
-
fetchState: 'In-Progress',
|
|
298
|
-
error: undefined,
|
|
299
|
-
} });
|
|
300
|
-
},
|
|
301
|
-
prepare(isChargeCardAdmin, chargeCardId, name) {
|
|
302
|
-
return {
|
|
303
|
-
payload: {
|
|
304
|
-
isChargeCardAdmin,
|
|
305
|
-
chargeCardId,
|
|
306
|
-
name,
|
|
307
|
-
},
|
|
308
|
-
};
|
|
309
|
-
},
|
|
310
|
-
},
|
|
311
|
-
updateChargeCardNameSuccessOrFailure(draft, action) {
|
|
312
|
-
var _a;
|
|
313
|
-
const { chargeCardId, fetchState, error } = action.payload;
|
|
314
|
-
const existingCardDetail = (_a = draft.detailById[chargeCardId]) !== null && _a !== void 0 ? _a : chargeCardDetail_1.emptyChargeCardDetail;
|
|
315
|
-
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { updateChargeCardNameFetchState: {
|
|
316
|
-
fetchState,
|
|
317
|
-
error,
|
|
318
|
-
} });
|
|
319
|
-
},
|
|
320
|
-
lockChargeCard: {
|
|
321
|
-
reducer(draft, action) {
|
|
322
|
-
var _a;
|
|
323
|
-
const { chargeCardId } = action.payload;
|
|
324
|
-
const existingCardDetail = (_a = draft.detailById[chargeCardId]) !== null && _a !== void 0 ? _a : chargeCardDetail_1.emptyChargeCardDetail;
|
|
325
|
-
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { lockChargeCardFetchState: {
|
|
326
|
-
fetchState: 'In-Progress',
|
|
327
|
-
error: undefined,
|
|
328
|
-
} });
|
|
329
|
-
},
|
|
330
|
-
prepare(isChargeCardAdmin, chargeCardId, reason) {
|
|
331
|
-
return {
|
|
332
|
-
payload: {
|
|
333
|
-
isChargeCardAdmin,
|
|
334
|
-
chargeCardId,
|
|
335
|
-
reason,
|
|
336
|
-
},
|
|
337
|
-
};
|
|
338
|
-
},
|
|
339
|
-
},
|
|
340
|
-
lockChargeCardSuccessOrFailure(draft, action) {
|
|
341
|
-
var _a;
|
|
342
|
-
const { chargeCardId, fetchState, error } = action.payload;
|
|
343
|
-
const existingCardDetail = (_a = draft.detailById[chargeCardId]) !== null && _a !== void 0 ? _a : chargeCardDetail_1.emptyChargeCardDetail;
|
|
344
|
-
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { lockChargeCardFetchState: {
|
|
345
|
-
fetchState,
|
|
346
|
-
error,
|
|
347
|
-
} });
|
|
348
|
-
},
|
|
349
|
-
unlockChargeCard: {
|
|
350
|
-
reducer(draft, action) {
|
|
351
|
-
var _a;
|
|
352
|
-
const { chargeCardId } = action.payload;
|
|
353
|
-
const existingCardDetail = (_a = draft.detailById[chargeCardId]) !== null && _a !== void 0 ? _a : chargeCardDetail_1.emptyChargeCardDetail;
|
|
354
|
-
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { unlockChargeCardFetchState: {
|
|
355
|
-
fetchState: 'In-Progress',
|
|
356
|
-
error: undefined,
|
|
357
|
-
} });
|
|
358
|
-
},
|
|
359
|
-
prepare(isChargeCardAdmin, chargeCardId) {
|
|
360
|
-
return {
|
|
361
|
-
payload: {
|
|
362
|
-
chargeCardId,
|
|
363
|
-
isChargeCardAdmin,
|
|
364
|
-
},
|
|
365
|
-
};
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
unlockChargeCardSuccessOrFailure(draft, action) {
|
|
369
|
-
var _a;
|
|
370
|
-
const { chargeCardId, fetchState, error } = action.payload;
|
|
371
|
-
const existingCardDetail = (_a = draft.detailById[chargeCardId]) !== null && _a !== void 0 ? _a : chargeCardDetail_1.emptyChargeCardDetail;
|
|
372
|
-
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { unlockChargeCardFetchState: {
|
|
373
|
-
fetchState,
|
|
374
|
-
error,
|
|
375
|
-
} });
|
|
376
|
-
},
|
|
377
|
-
closeChargeCard: {
|
|
378
|
-
reducer(draft, action) {
|
|
379
|
-
var _a;
|
|
380
|
-
const { chargeCardId } = action.payload;
|
|
381
|
-
const existingCardDetail = (_a = draft.detailById[chargeCardId]) !== null && _a !== void 0 ? _a : chargeCardDetail_1.emptyChargeCardDetail;
|
|
382
|
-
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { closeChargeCardFetchState: {
|
|
383
|
-
fetchState: 'In-Progress',
|
|
384
|
-
error: undefined,
|
|
385
|
-
} });
|
|
386
|
-
},
|
|
387
|
-
prepare(chargeCardId, reason) {
|
|
388
|
-
return {
|
|
389
|
-
payload: {
|
|
390
|
-
chargeCardId,
|
|
391
|
-
reason,
|
|
392
|
-
},
|
|
393
|
-
};
|
|
394
|
-
},
|
|
395
|
-
},
|
|
396
|
-
closeChargeCardSuccessOrFailure(draft, action) {
|
|
397
|
-
var _a;
|
|
398
|
-
const { chargeCardId, fetchState, error } = action.payload;
|
|
399
|
-
const existingCardDetail = (_a = draft.detailById[chargeCardId]) !== null && _a !== void 0 ? _a : chargeCardDetail_1.emptyChargeCardDetail;
|
|
400
|
-
draft.detailById[chargeCardId] = Object.assign(Object.assign({}, existingCardDetail), { closeChargeCardFetchState: {
|
|
401
|
-
fetchState,
|
|
402
|
-
error,
|
|
403
|
-
} });
|
|
404
|
-
},
|
|
405
276
|
fetchChargeCardTransactionStatistics(draft, action) {
|
|
406
|
-
var _a;
|
|
407
277
|
const { chargeCardId } = action.payload;
|
|
408
|
-
|
|
409
|
-
|
|
278
|
+
draft.detailById[chargeCardId].transactionStatistics.fetchState =
|
|
279
|
+
'In-Progress';
|
|
410
280
|
},
|
|
411
281
|
updateChargeCardTransactionStatistics(draft, action) {
|
|
412
|
-
var _a;
|
|
413
282
|
const { chargeCardId, statistics } = action.payload;
|
|
414
|
-
|
|
415
|
-
|
|
283
|
+
draft.detailById[chargeCardId].transactionStatistics.statistics =
|
|
284
|
+
(0, chargeCardDetail_1.mapChargeCardTransactionStatisticsPayloadToChargeCardTransactionStatistics)(statistics);
|
|
416
285
|
},
|
|
417
286
|
updateChargeCardTransactionStatisticsFetchState(draft, action) {
|
|
418
|
-
var _a;
|
|
419
287
|
const { chargeCardId, fetchState, error } = action.payload;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
},
|
|
424
|
-
fetchChargeCardsRecurringExpenses: {
|
|
425
|
-
reducer(draft) {
|
|
426
|
-
draft.recurringExpensesFetchState.fetchState = 'In-Progress';
|
|
427
|
-
draft.recurringExpensesFetchState.error = undefined;
|
|
428
|
-
},
|
|
429
|
-
prepare(cardIds) {
|
|
430
|
-
return {
|
|
431
|
-
payload: {
|
|
432
|
-
cardIds,
|
|
433
|
-
},
|
|
434
|
-
};
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
updateChargeCardsRecurringExpenses(draft, action) {
|
|
438
|
-
const { recurringExpensesByChargeCardId } = action.payload;
|
|
439
|
-
draft.recurringExpensesByChargeCardId = recurringExpensesByChargeCardId;
|
|
440
|
-
},
|
|
441
|
-
updateChargeCardsRecurringExpensesFetchState(draft, action) {
|
|
442
|
-
const { fetchState, error } = action.payload;
|
|
443
|
-
draft.recurringExpensesFetchState.fetchState = fetchState;
|
|
444
|
-
draft.recurringExpensesFetchState.error = error;
|
|
288
|
+
draft.detailById[chargeCardId].transactionStatistics.fetchState =
|
|
289
|
+
fetchState;
|
|
290
|
+
draft.detailById[chargeCardId].transactionStatistics.error = error;
|
|
445
291
|
},
|
|
446
292
|
fetchDepositAccountLimit(draft, action) {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
.depositAccountLimitFetchStateByDepositAccountId[depositAccountId]) !== null && _a !== void 0 ? _a : {
|
|
451
|
-
fetchState: 'Not-Started',
|
|
452
|
-
error: undefined,
|
|
453
|
-
};
|
|
454
|
-
draft.depositAccountLimitFetchStateByDepositAccountId[depositAccountId] = Object.assign(Object.assign({}, existingFetchState), { fetchState: 'In-Progress', error: undefined });
|
|
293
|
+
const { chargeCardId } = action.payload;
|
|
294
|
+
draft.detailById[chargeCardId].depositAccountLimitFetchState.fetchState =
|
|
295
|
+
'In-Progress';
|
|
455
296
|
},
|
|
456
297
|
updateDepositAccountLimitFetchStatus(draft, action) {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
error: undefined,
|
|
463
|
-
};
|
|
464
|
-
draft.depositAccountLimitFetchStateByDepositAccountId[depositAccountId] = Object.assign(Object.assign({}, existingFetchState), { fetchState,
|
|
465
|
-
error });
|
|
298
|
+
const { chargeCardId, fetchState, error } = action.payload;
|
|
299
|
+
draft.detailById[chargeCardId].depositAccountLimitFetchState.fetchState =
|
|
300
|
+
fetchState;
|
|
301
|
+
draft.detailById[chargeCardId].depositAccountLimitFetchState.error =
|
|
302
|
+
error;
|
|
466
303
|
},
|
|
467
304
|
sendOtpCardHolder(draft, action) {
|
|
468
305
|
const { chargeCardId, phone } = action.payload;
|
|
@@ -520,5 +357,5 @@ const chargeCardDetail = (0, toolkit_1.createSlice)({
|
|
|
520
357
|
},
|
|
521
358
|
},
|
|
522
359
|
});
|
|
523
|
-
_a = chargeCardDetail.actions, exports.fetchChargeCardDetailPage = _a.fetchChargeCardDetailPage, exports.fetchChargeCardDetail = _a.fetchChargeCardDetail, exports.updateChargeCardDetailFetchState = _a.updateChargeCardDetailFetchState, exports.fetchChargeCardTransactionList = _a.fetchChargeCardTransactionList, exports.updateChargeCardDetailUIState = _a.updateChargeCardDetailUIState, exports.updateChargeCardTransactionList = _a.updateChargeCardTransactionList, exports.updateChargeCardTransactionUploadReceiptsFetchStatus = _a.updateChargeCardTransactionUploadReceiptsFetchStatus, exports.fetchChargeCardTransactionAttachments = _a.fetchChargeCardTransactionAttachments, exports.updateChargeCardTransactionIsViewReceiptClicked = _a.updateChargeCardTransactionIsViewReceiptClicked, exports.updateChargeCardTransactionAttachmentsFailure = _a.updateChargeCardTransactionAttachmentsFailure, exports.updatePhysicalChargeCardAttemptSuccessOrFailure = _a.updatePhysicalChargeCardAttemptSuccessOrFailure, exports.updatePhysicalChargeCardAttempt = _a.updatePhysicalChargeCardAttempt, exports.updateDebitCardPinAttempt = _a.updateDebitCardPinAttempt, exports.updateDebitCardPinAttemptSuccessOrFailure = _a.updateDebitCardPinAttemptSuccessOrFailure, exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = _a.updateChargeCardTransactionReceiptsShowTickFetchStatus, exports.updateChargeCardTransactionAttachmentsInCardDetail = _a.updateChargeCardTransactionAttachmentsInCardDetail, exports.updateChargeCardTransactionListFailure = _a.updateChargeCardTransactionListFailure, exports.updateChargeCardDetail = _a.updateChargeCardDetail, exports.startCVVActivationWait = _a.startCVVActivationWait, exports.completeCVVActivationWait = _a.completeCVVActivationWait, exports.startDebitCardSetPinWait = _a.startDebitCardSetPinWait, exports.completeDebitCardSetPinWait = _a.completeDebitCardSetPinWait, exports.updateChargeCardDetailUpdateStatus = _a.updateChargeCardDetailUpdateStatus, exports.updateChargeCardSpendLimit = _a.updateChargeCardSpendLimit, exports.updateChargeCardSpendLimitSuccessOrFailure = _a.updateChargeCardSpendLimitSuccessOrFailure, exports.
|
|
360
|
+
_a = chargeCardDetail.actions, exports.fetchChargeCardDetailPage = _a.fetchChargeCardDetailPage, exports.fetchChargeCardDetail = _a.fetchChargeCardDetail, exports.updateChargeCardDetailFetchState = _a.updateChargeCardDetailFetchState, exports.fetchChargeCardTransactionList = _a.fetchChargeCardTransactionList, exports.updateChargeCardDetailUIState = _a.updateChargeCardDetailUIState, exports.updateChargeCardTransactionList = _a.updateChargeCardTransactionList, exports.updateChargeCardTransactionUploadReceiptsFetchStatus = _a.updateChargeCardTransactionUploadReceiptsFetchStatus, exports.fetchChargeCardTransactionAttachments = _a.fetchChargeCardTransactionAttachments, exports.updateChargeCardTransactionIsViewReceiptClicked = _a.updateChargeCardTransactionIsViewReceiptClicked, exports.updateChargeCardTransactionAttachmentsFailure = _a.updateChargeCardTransactionAttachmentsFailure, exports.updatePhysicalChargeCardAttemptSuccessOrFailure = _a.updatePhysicalChargeCardAttemptSuccessOrFailure, exports.updatePhysicalChargeCardAttempt = _a.updatePhysicalChargeCardAttempt, exports.updateDebitCardPinAttempt = _a.updateDebitCardPinAttempt, exports.updateDebitCardPinAttemptSuccessOrFailure = _a.updateDebitCardPinAttemptSuccessOrFailure, exports.updateChargeCardTransactionReceiptsShowTickFetchStatus = _a.updateChargeCardTransactionReceiptsShowTickFetchStatus, exports.updateChargeCardTransactionAttachmentsInCardDetail = _a.updateChargeCardTransactionAttachmentsInCardDetail, exports.updateChargeCardTransactionListFailure = _a.updateChargeCardTransactionListFailure, exports.updateChargeCardDetail = _a.updateChargeCardDetail, exports.startCVVActivationWait = _a.startCVVActivationWait, exports.completeCVVActivationWait = _a.completeCVVActivationWait, exports.startDebitCardSetPinWait = _a.startDebitCardSetPinWait, exports.completeDebitCardSetPinWait = _a.completeDebitCardSetPinWait, exports.updateChargeCardDetailUpdateStatus = _a.updateChargeCardDetailUpdateStatus, exports.updateChargeCardSpendLimit = _a.updateChargeCardSpendLimit, exports.updateChargeCardSpendLimitSuccessOrFailure = _a.updateChargeCardSpendLimitSuccessOrFailure, exports.fetchDepositAccountLimit = _a.fetchDepositAccountLimit, exports.updateDepositAccountLimitFetchStatus = _a.updateDepositAccountLimitFetchStatus, exports.fetchChargeCardTransactionStatistics = _a.fetchChargeCardTransactionStatistics, exports.updateChargeCardTransactionStatistics = _a.updateChargeCardTransactionStatistics, exports.updateChargeCardTransactionStatisticsFetchState = _a.updateChargeCardTransactionStatisticsFetchState, exports.sendOtpCardHolder = _a.sendOtpCardHolder, exports.resendOtpCardHolder = _a.resendOtpCardHolder, exports.sendOtpCardHolderSuccess = _a.sendOtpCardHolderSuccess, exports.sendOtpCardHolderFailure = _a.sendOtpCardHolderFailure, exports.verifyOtpCardHolder = _a.verifyOtpCardHolder, exports.verifyOtpCardHolderSuccess = _a.verifyOtpCardHolderSuccess, exports.verifyOtpCardHolderFailure = _a.verifyOtpCardHolderFailure, exports.clearChargeCardDetail = _a.clearChargeCardDetail;
|
|
524
361
|
exports.default = chargeCardDetail.reducer;
|
|
@@ -10,25 +10,21 @@ import { TwoFactorAuthenticationView } from '../../../twoFactorAuthentication/tw
|
|
|
10
10
|
import { ChargeCardConfigState } from '../chargeCardConfig/chargeCardConfigState';
|
|
11
11
|
import { CreditAccount, CreditAccountRepayment } from '../chargeCardList/chargeCardList';
|
|
12
12
|
import { ChargeCardWithUser } from '../chargeCardList/chargeCardListSelector';
|
|
13
|
-
import { ChargeCardDetailUiState,
|
|
13
|
+
import { ChargeCardDetailUiState, TransactionStatistics } from './chargeCardDetail';
|
|
14
14
|
export interface ChargeCardDetailSelectorView extends SelectorView {
|
|
15
15
|
chargeCardConfig: ChargeCardConfigState;
|
|
16
|
-
closeChargeCardsFetchState: FetchStateAndError;
|
|
17
16
|
creditAccount: CreditAccount;
|
|
18
17
|
creditAccountRepayment: CreditAccountRepayment;
|
|
19
18
|
depositAccountLimitFetchState: FetchStateAndError;
|
|
20
19
|
isRefreshingViewInBackground: boolean;
|
|
21
20
|
isViewReceiptClickedImmediatelyAfterUploadTransactionId: Record<ID, boolean>;
|
|
22
|
-
lockChargeCardsFetchState: FetchStateAndError;
|
|
23
21
|
loggedInUserPhone: string;
|
|
24
22
|
transactionListFetchState: FetchStateAndError;
|
|
25
23
|
transactions: ChargeCardTransaction[];
|
|
26
24
|
transactionStatistics: TransactionStatistics;
|
|
27
25
|
twoFAView: TwoFactorAuthenticationView;
|
|
28
26
|
uiState: ChargeCardDetailUiState;
|
|
29
|
-
unlockChargeCardsFetchState: FetchStateAndError;
|
|
30
27
|
updateChargeCardLimitFetchState: FetchStateAndError;
|
|
31
|
-
updateChargeCardNameFetchState: FetchStateAndError;
|
|
32
28
|
updateFetchState: FetchStateAndError;
|
|
33
29
|
updatePhysicalChargeCardAttemptFetchState: FetchStateAndError;
|
|
34
30
|
uploadReceiptsFetchStateByTransactionId: Record<ID, FetchStateAndError>;
|
|
@@ -38,16 +34,6 @@ export interface ChargeCardDetailSelectorView extends SelectorView {
|
|
|
38
34
|
depositAccountLimit?: DepositAccountWithLimit;
|
|
39
35
|
}
|
|
40
36
|
export declare const getChargeCardDetailView: (state: RootState, chargeCardId: ID, includeCreditAccountInfo: boolean, isCreditCardEnabled: boolean) => ChargeCardDetailSelectorView;
|
|
41
|
-
export declare const getDepositAccountLimitFetchStateByDepositAccountId: (state: RootState, depositAccountId: ID) => FetchStateAndError;
|
|
42
|
-
export interface ChargeCardControlDetailView {
|
|
43
|
-
closeChargeCardsFetchState: FetchStateAndError;
|
|
44
|
-
lockChargeCardsFetchState: FetchStateAndError;
|
|
45
|
-
revokeChargeCardFetchState: FetchStateAndError;
|
|
46
|
-
unlockChargeCardsFetchState: FetchStateAndError;
|
|
47
|
-
updateChargeCardLimitFetchState: FetchStateAndError;
|
|
48
|
-
updateChargeCardNameFetchState: FetchStateAndError;
|
|
49
|
-
}
|
|
50
|
-
export declare const getChargeCardControlDetailView: (state: RootState, chargeCardId: ID) => ChargeCardControlDetailView;
|
|
51
37
|
export interface DebitCardPinSetSelectorView extends SelectorView {
|
|
52
38
|
isRefreshingViewInBackground: boolean;
|
|
53
39
|
updateDebitCardPinAttemptFetchState: FetchStateAndError;
|
|
@@ -67,7 +53,3 @@ export interface ChargeCardTransactionAttachmentView {
|
|
|
67
53
|
transactionAttachments: Attachment[];
|
|
68
54
|
}
|
|
69
55
|
export declare const getChargeCardTransactionAttachmentView: (state: RootState, cardId: ID, transactionId: ID) => ChargeCardTransactionAttachmentView | undefined;
|
|
70
|
-
export interface ChargeCardRecurringExpenses extends FetchStateAndError {
|
|
71
|
-
recurringExpenses: RecurringExpense[];
|
|
72
|
-
}
|
|
73
|
-
export declare const getChargeCardRecurringExpensesView: (state: RootState, chargeCardId: ID) => ChargeCardRecurringExpenses;
|