@zeniai/client-epic-state 5.2.69 → 5.2.70

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.
Files changed (161) hide show
  1. package/lib/entity/actualMatching/actualMatchingReducer.d.ts +1 -3
  2. package/lib/entity/actualMatching/actualMatchingReducer.js +2 -11
  3. package/lib/entity/aiCfo/aiCfoState.d.ts +2 -2
  4. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +2 -2
  5. package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +1 -1
  6. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  7. package/lib/entity/invoicing/plan/planPayload.d.ts +40 -0
  8. package/lib/entity/invoicing/plan/planPayload.js +51 -0
  9. package/lib/entity/invoicing/plan/planReducer.d.ts +14 -0
  10. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogReducer.js → plan/planReducer.js} +21 -20
  11. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogSelector.d.ts → plan/planSelector.d.ts} +6 -5
  12. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogSelector.js → plan/planSelector.js} +12 -12
  13. package/lib/entity/invoicing/plan/planState.d.ts +43 -0
  14. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogPayload.d.ts → product/productPayload.d.ts} +6 -44
  15. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogPayload.js → product/productPayload.js} +6 -50
  16. package/lib/entity/invoicing/product/productReducer.d.ts +9 -0
  17. package/lib/entity/invoicing/product/productReducer.js +50 -0
  18. package/lib/entity/invoicing/product/productSelector.d.ts +4 -0
  19. package/lib/entity/invoicing/product/productSelector.js +17 -0
  20. package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogState.d.ts → product/productState.d.ts} +6 -42
  21. package/lib/entity/invoicing/product/productState.js +2 -0
  22. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +0 -1
  23. package/lib/entity/jeSchedules/jeSchedulesPayload.js +0 -1
  24. package/lib/entity/jeSchedules/jeSchedulesState.d.ts +0 -1
  25. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +4 -4
  26. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  27. package/lib/entity/snackbar/snackbarTypes.js +0 -3
  28. package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +10 -2
  29. package/lib/epic.d.ts +2 -4
  30. package/lib/epic.js +1 -5
  31. package/lib/esm/entity/actualMatching/actualMatchingReducer.js +1 -9
  32. package/lib/esm/entity/invoicing/plan/planPayload.js +47 -0
  33. package/lib/esm/entity/invoicing/{invoicingCatalog/invoicingCatalogReducer.js → plan/planReducer.js} +20 -19
  34. package/lib/esm/entity/invoicing/{invoicingCatalog/invoicingCatalogSelector.js → plan/planSelector.js} +8 -8
  35. package/lib/esm/entity/invoicing/{invoicingCatalog/invoicingCatalogPayload.js → product/productPayload.js} +3 -46
  36. package/lib/esm/entity/invoicing/product/productReducer.js +43 -0
  37. package/lib/esm/entity/invoicing/product/productSelector.js +10 -0
  38. package/lib/esm/entity/invoicing/product/productState.js +1 -0
  39. package/lib/esm/entity/jeSchedules/jeSchedulesPayload.js +0 -1
  40. package/lib/esm/entity/snackbar/snackbarTypes.js +0 -3
  41. package/lib/esm/entity/transaction/payloadTypes/transactionLinePayload.js +10 -2
  42. package/lib/esm/epic.js +1 -5
  43. package/lib/esm/index.js +11 -9
  44. package/lib/esm/reducer.js +7 -4
  45. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/fetchActualMatchingMatchEpic.js +2 -4
  46. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/matchAndReverseAccrualsEpic.js +13 -26
  47. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/searchMatchTransactionsEpic.js +23 -2
  48. package/lib/esm/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -1
  49. package/lib/esm/view/expenseAutomationView/reducers/actualMatchingViewReducer.js +38 -89
  50. package/lib/esm/view/expenseAutomationView/selectors/actualMatchingViewSelector.js +64 -66
  51. package/lib/esm/view/expenseAutomationView/types/actualMatchingViewState.js +0 -15
  52. package/lib/esm/view/invoicing/createInvoice/createInvoiceEpic.js +1 -9
  53. package/lib/esm/view/invoicing/createInvoice/createInvoiceSelector.js +1 -1
  54. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +3 -5
  55. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +2 -2
  56. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic.js +2 -2
  57. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic.js +4 -4
  58. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +7 -3
  59. package/lib/esm/view/invoicing/editInvoicingCatalogItemDetailView/seedInvoicingCatalogItemFormDraftEpic.js +2 -2
  60. package/lib/esm/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +1 -5
  61. package/lib/esm/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +1 -5
  62. package/lib/esm/view/invoicing/invoiceList/invoiceListReducer.js +1 -8
  63. package/lib/esm/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.js +2 -2
  64. package/lib/esm/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.js +2 -2
  65. package/lib/esm/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +4 -4
  66. package/lib/esm/view/invoicing/settingsView/settingsViewSelector.js +9 -18
  67. package/lib/esm/view/invoicing/settingsView/submitInvoicingBrandingFormEpic.js +2 -11
  68. package/lib/esm/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +11 -31
  69. package/lib/esm/view/onboardingView/customerView/onboardingCustomerViewReducer.js +1 -2
  70. package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +30 -4
  71. package/lib/esm/view/spendManagement/commonSetup/setupViewReducer.js +1 -21
  72. package/lib/esm/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
  73. package/lib/index.d.ts +16 -13
  74. package/lib/index.js +60 -65
  75. package/lib/reducer.d.ts +2 -1
  76. package/lib/reducer.js +7 -4
  77. package/lib/rootStateTypes.d.ts +5 -3
  78. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/fetchActualMatchingMatchEpic.d.ts +2 -2
  79. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/fetchActualMatchingMatchEpic.js +1 -3
  80. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/matchAndReverseAccrualsEpic.js +11 -24
  81. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/searchMatchTransactionsEpic.js +22 -1
  82. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  83. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.js +2 -1
  84. package/lib/view/expenseAutomationView/payload/actualMatchingPayload.d.ts +1 -12
  85. package/lib/view/expenseAutomationView/reducers/actualMatchingViewReducer.d.ts +8 -19
  86. package/lib/view/expenseAutomationView/reducers/actualMatchingViewReducer.js +39 -90
  87. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.d.ts +2 -2
  88. package/lib/view/expenseAutomationView/selectorTypes/actualMatchingViewSelectorTypes.d.ts +8 -20
  89. package/lib/view/expenseAutomationView/selectors/actualMatchingViewSelector.d.ts +4 -7
  90. package/lib/view/expenseAutomationView/selectors/actualMatchingViewSelector.js +64 -69
  91. package/lib/view/expenseAutomationView/types/actualMatchingViewState.d.ts +4 -20
  92. package/lib/view/expenseAutomationView/types/actualMatchingViewState.js +1 -18
  93. package/lib/view/invoicing/createInvoice/createInvoiceEpic.d.ts +2 -3
  94. package/lib/view/invoicing/createInvoice/createInvoiceEpic.js +0 -8
  95. package/lib/view/invoicing/createInvoice/createInvoiceSelector.d.ts +2 -2
  96. package/lib/view/invoicing/createInvoice/createInvoiceSelector.js +2 -2
  97. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewPayload.d.ts +9 -8
  98. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.d.ts +2 -2
  99. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/editInvoicingCatalogItemDetailViewSelector.js +3 -5
  100. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.d.ts +2 -2
  101. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/fetchInvoicingCatalogItemDetailEpic.js +2 -2
  102. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/invoicingCatalogItemFormHelper.d.ts +4 -3
  103. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic.d.ts +2 -2
  104. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogPlanActionEpic.js +2 -2
  105. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic.d.ts +3 -2
  106. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/runInvoicingCatalogProductActionEpic.js +4 -4
  107. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.d.ts +3 -2
  108. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/saveInvoicingCatalogItemEpic.js +7 -3
  109. package/lib/view/invoicing/editInvoicingCatalogItemDetailView/seedInvoicingCatalogItemFormDraftEpic.js +2 -2
  110. package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.d.ts +1 -3
  111. package/lib/view/invoicing/editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer.js +2 -6
  112. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/editInvoicingSubscriptionDetailViewSelector.d.ts +2 -2
  113. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.d.ts +1 -3
  114. package/lib/view/invoicing/editInvoicingSubscriptionDetailView/saveInvoicingSubscriptionEpic.js +1 -5
  115. package/lib/view/invoicing/invoiceList/invoiceListReducer.d.ts +1 -3
  116. package/lib/view/invoicing/invoiceList/invoiceListReducer.js +2 -9
  117. package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogListPageEpic.d.ts +2 -2
  118. package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.d.ts +2 -2
  119. package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogPlanListEpic.js +2 -2
  120. package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.d.ts +2 -2
  121. package/lib/view/invoicing/invoicingCatalogListView/epics/fetchInvoicingCatalogProductListEpic.js +2 -2
  122. package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewPayload.d.ts +3 -3
  123. package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.d.ts +5 -4
  124. package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewSelector.js +4 -4
  125. package/lib/view/invoicing/invoicingCatalogListView/invoicingCatalogListViewState.d.ts +1 -1
  126. package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewReducer.d.ts +1 -1
  127. package/lib/view/invoicing/invoicingDunningCaseListView/invoicingDunningCaseListViewState.d.ts +1 -1
  128. package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewReducer.d.ts +1 -1
  129. package/lib/view/invoicing/invoicingSubscriptionListView/invoicingSubscriptionListViewState.d.ts +1 -1
  130. package/lib/view/invoicing/settingsView/settingsViewSelector.d.ts +3 -12
  131. package/lib/view/invoicing/settingsView/settingsViewSelector.js +8 -17
  132. package/lib/view/invoicing/settingsView/submitInvoicingBrandingFormEpic.js +2 -11
  133. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +11 -31
  134. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.d.ts +2 -3
  135. package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +1 -2
  136. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +0 -4
  137. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  138. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +5 -5
  139. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  140. package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +2 -2
  141. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +1 -1
  142. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +30 -4
  143. package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +1 -1
  144. package/lib/view/spendManagement/commonSetup/setupViewReducer.js +2 -22
  145. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +0 -1
  146. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
  147. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -1
  148. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +1 -2
  149. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewReducer.d.ts +2 -2
  150. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +5 -5
  151. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +2 -2
  152. package/package.json +1 -1
  153. package/lib/entity/invoicing/invoicingCatalog/invoicingCatalogReducer.d.ts +0 -12
  154. package/lib/esm/view/expenseAutomationView/epics/jeSchedule/actualMatching/ignoreActualMatchingSuggestionEpic.js +0 -50
  155. package/lib/esm/view/spendManagement/commonSetup/epic/setup/resetKycKybEpic.js +0 -37
  156. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/ignoreActualMatchingSuggestionEpic.d.ts +0 -10
  157. package/lib/view/expenseAutomationView/epics/jeSchedule/actualMatching/ignoreActualMatchingSuggestionEpic.js +0 -54
  158. package/lib/view/spendManagement/commonSetup/epic/setup/resetKycKybEpic.d.ts +0 -8
  159. package/lib/view/spendManagement/commonSetup/epic/setup/resetKycKybEpic.js +0 -41
  160. /package/lib/entity/invoicing/{invoicingCatalog/invoicingCatalogState.js → plan/planState.js} +0 -0
  161. /package/lib/esm/entity/invoicing/{invoicingCatalog/invoicingCatalogState.js → plan/planState.js} +0 -0
@@ -95,10 +95,6 @@ const editInvoicingCustomerDetailView = createSlice({
95
95
  error: undefined,
96
96
  };
97
97
  },
98
- // Makes the page epic refetch a record that changed server-side (e.g. a new subscription).
99
- invalidateInvoicingCustomerDetail(draft, action) {
100
- delete draft.recordStateById[action.payload.id];
101
- },
102
98
  fetchInvoicingCustomerDetail(draft, action) {
103
99
  draft.recordStateById[action.payload.id] = {
104
100
  fetchState: 'In-Progress',
@@ -202,5 +198,5 @@ const editInvoicingCustomerDetailView = createSlice({
202
198
  });
203
199
  },
204
200
  });
205
- export const { fetchInvoicingPaymentLinkEmailPreview, fetchInvoicingPaymentLinkEmailPreviewPage, updateInvoicingPaymentLinkEmailPreview, updateInvoicingPaymentLinkEmailPreviewFailure, addPromotionalCreditsFailure, addPromotionalCreditsSuccess, fetchInvoicingCustomerDetail, fetchInvoicingCustomerDetailPage, invalidateInvoicingCustomerDetail, seedInvoicingCustomerFormDraft, updateInvoicingCustomerDetail, resetPromotionalCreditAction, submitAddPromotionalCredits, updateInvoicingCustomerDetailFailure, updateInvoicingCustomerFormDraft, submitInvoicingCustomerForm, submitInvoicingCustomerFormSuccess, submitInvoicingCustomerFormFailure, resetEditInvoicingCustomerDetailView, initializeInvoicingCustomerAddress, claimInvoicingCustomerBillingAddress, } = editInvoicingCustomerDetailView.actions;
201
+ export const { fetchInvoicingPaymentLinkEmailPreview, fetchInvoicingPaymentLinkEmailPreviewPage, updateInvoicingPaymentLinkEmailPreview, updateInvoicingPaymentLinkEmailPreviewFailure, addPromotionalCreditsFailure, addPromotionalCreditsSuccess, fetchInvoicingCustomerDetail, fetchInvoicingCustomerDetailPage, seedInvoicingCustomerFormDraft, updateInvoicingCustomerDetail, resetPromotionalCreditAction, submitAddPromotionalCredits, updateInvoicingCustomerDetailFailure, updateInvoicingCustomerFormDraft, submitInvoicingCustomerForm, submitInvoicingCustomerFormSuccess, submitInvoicingCustomerFormFailure, resetEditInvoicingCustomerDetailView, initializeInvoicingCustomerAddress, claimInvoicingCustomerBillingAddress, } = editInvoicingCustomerDetailView.actions;
206
202
  export default editInvoicingCustomerDetailView.reducer;
@@ -7,8 +7,6 @@ import { apiErrorSnackbarVariables } from '../../../entity/snackbar/snackbarApiE
7
7
  import { openSnackbar } from '../../../entity/snackbar/snackbarReducer';
8
8
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
9
9
  import { resetNewAddressDataInLocalStore } from '../../addressView/addressViewReducer';
10
- import { invalidateInvoicingCustomerDetail } from '../editInvoicingCustomerDetailView/editInvoicingCustomerDetailViewReducer';
11
- import { invalidateInvoiceListForCustomer } from '../invoiceList/invoiceListReducer';
12
10
  import { addInvoicingSubscriptionToList } from '../invoicingSubscriptionListView/invoicingSubscriptionListViewReducer';
13
11
  import { localDataToSaveInvoicingSubscriptionPayload, } from './editInvoicingSubscriptionDetailViewPayload';
14
12
  import { submitInvoicingSubscriptionForm, submitInvoicingSubscriptionFormFailure, submitInvoicingSubscriptionFormSuccess, syncInvoicingSubscriptionCoupons, } from './editInvoicingSubscriptionDetailViewReducer';
@@ -88,9 +86,7 @@ export const saveInvoicingSubscriptionEpic = (actions$, state$, zeniAPI) => acti
88
86
  resultActions.push(addInvoicingSubscriptionToList({
89
87
  id: saved.id,
90
88
  status: saved.status,
91
- }),
92
- // The service may bill the first invoice on create.
93
- invalidateInvoicingCustomerDetail({ id: saved.customer_id }), invalidateInvoiceListForCustomer({ customerId: saved.customer_id }));
89
+ }));
94
90
  }
95
91
  resultActions.push(openSnackbar({
96
92
  messageSection: 'invoicing_subscription_saved',
@@ -124,13 +124,6 @@ const invoiceList = createSlice({
124
124
  draft.kpisFetchState.fetchState = 'Error';
125
125
  draft.kpisFetchState.error = action.payload;
126
126
  },
127
- // Counts are fetched under the same customer filter, so they go stale with the tabs.
128
- invalidateInvoiceListForCustomer(draft, action) {
129
- if (draft.filters.customerId === action.payload.customerId) {
130
- draft.invoiceByTab = makeInvoiceByTab();
131
- draft.countsFetchState = { fetchState: 'Not-Started', error: undefined };
132
- }
133
- },
134
127
  updateInvoiceListFilters(draft, action) {
135
128
  draft.filters = action.payload;
136
129
  },
@@ -173,5 +166,5 @@ const invoiceList = createSlice({
173
166
  });
174
167
  },
175
168
  });
176
- export const { fetchInvoiceList, fetchInvoiceListPage, updateInvoiceList, updateInvoiceListFailure, fetchInvoiceCounts, updateInvoiceCounts, updateInvoiceCountsFailure, fetchInvoiceKPIs, updateInvoiceKPIs, updateInvoiceKPIsFailure, updateInvoiceListFilters, setInvoiceActiveTab, addInvoiceToList, invalidateInvoiceListForCustomer, } = invoiceList.actions;
169
+ export const { fetchInvoiceList, fetchInvoiceListPage, updateInvoiceList, updateInvoiceListFailure, fetchInvoiceCounts, updateInvoiceCounts, updateInvoiceCountsFailure, fetchInvoiceKPIs, updateInvoiceKPIs, updateInvoiceKPIsFailure, updateInvoiceListFilters, setInvoiceActiveTab, addInvoiceToList, } = invoiceList.actions;
177
170
  export default invoiceList.reducer;
@@ -1,6 +1,6 @@
1
1
  import { of } from 'rxjs';
2
2
  import { catchError, filter, switchMap } from 'rxjs/operators';
3
- import { updateInvoicingCatalogItems } from '../../../../entity/invoicing/invoicingCatalog/invoicingCatalogReducer';
3
+ import { updateInvoicingPlans } from '../../../../entity/invoicing/plan/planReducer';
4
4
  import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
5
5
  import { INVOICING_LIST_PAGE_SIZE, applyListSortParams, withQuery, } from '../../invoicingApiHelper';
6
6
  import { fetchInvoicingCatalogPlanList, updateInvoicingCatalogPlanList, updateInvoicingCatalogPlanListFailure, } from '../invoicingCatalogListViewReducer';
@@ -29,7 +29,7 @@ export const fetchInvoicingCatalogPlanListEpic = (actions$, _state$, zeniAPI) =>
29
29
  if (isSuccessResponse(response)) {
30
30
  const items = response.data?.items ?? [];
31
31
  return [
32
- updateInvoicingCatalogItems(items, 'merge'),
32
+ updateInvoicingPlans(items, 'merge'),
33
33
  updateInvoicingCatalogPlanList({
34
34
  ids: items.map((item) => item.id),
35
35
  nextCursor: response.data?.next_cursor ?? null,
@@ -1,6 +1,6 @@
1
1
  import { of } from 'rxjs';
2
2
  import { catchError, filter, switchMap } from 'rxjs/operators';
3
- import { updateInvoicingCatalogItems } from '../../../../entity/invoicing/invoicingCatalog/invoicingCatalogReducer';
3
+ import { updateInvoicingPlans } from '../../../../entity/invoicing/plan/planReducer';
4
4
  import { createZeniAPIStatus, isSuccessResponse, } from '../../../../responsePayload';
5
5
  import { INVOICING_LIST_PAGE_SIZE, applyListSortParams, withQuery, } from '../../invoicingApiHelper';
6
6
  import { fetchInvoicingCatalogProductList, updateInvoicingCatalogProductList, updateInvoicingCatalogProductListFailure, } from '../invoicingCatalogListViewReducer';
@@ -29,7 +29,7 @@ export const fetchInvoicingCatalogProductListEpic = (actions$, _state$, zeniAPI)
29
29
  if (isSuccessResponse(response)) {
30
30
  const items = response.data?.items ?? [];
31
31
  return [
32
- updateInvoicingCatalogItems(items, 'merge'),
32
+ updateInvoicingPlans(items, 'merge'),
33
33
  updateInvoicingCatalogProductList({
34
34
  ids: items.map((item) => item.id),
35
35
  nextCursor: response.data?.next_cursor ?? null,
@@ -1,5 +1,5 @@
1
1
  import { createSelector } from '@reduxjs/toolkit';
2
- import { getInvoicingCatalogItemsByIds } from '../../../entity/invoicing/invoicingCatalog/invoicingCatalogSelector';
2
+ import { getInvoicingPlansByIds } from '../../../entity/invoicing/plan/planSelector';
3
3
  import { runningInvoicingActionId } from '../runningInvoicingActionId';
4
4
  import { INVOICING_PRODUCT_COLUMNS, } from './invoicingCatalogListViewState';
5
5
  /**
@@ -28,13 +28,13 @@ export const getInvoicingCatalogPrices = (items) => items.flatMap((item) => (ite
28
28
  * denormalized arrays keep referential identity. The base `fetchState`/`error`
29
29
  * track the plan list; the product list has its own `productFetchState`.
30
30
  */
31
- export const getInvoicingCatalogListView = createSelector((state) => state.invoicingCatalogState, (state) => state.invoicingCatalogListViewState, (state) => state.invoicingConfigViewState.catalogItemLifecycleActionOptions, (state) => state.editInvoicingCatalogItemDetailViewState.actionStateById, (catalogState, listViewState, catalogItemLifecycleActionOptions, actionStateById) => ({
31
+ export const getInvoicingCatalogListView = createSelector((state) => state.invoicingPlanState, (state) => state.invoicingCatalogListViewState, (state) => state.invoicingConfigViewState.catalogItemLifecycleActionOptions, (state) => state.editInvoicingCatalogItemDetailViewState.actionStateById, (planState, listViewState, catalogItemLifecycleActionOptions, actionStateById) => ({
32
32
  catalogItemLifecycleActionOptions,
33
33
  runningActionId: runningInvoicingActionId(actionStateById),
34
- plans: getInvoicingCatalogItemsByIds(catalogState, listViewState.planIds),
34
+ plans: getInvoicingPlansByIds(planState, listViewState.planIds),
35
35
  planSort: listViewState.planSort,
36
36
  productColumns: INVOICING_PRODUCT_COLUMNS,
37
- products: getInvoicingCatalogItemsByIds(catalogState, listViewState.productIds),
37
+ products: getInvoicingPlansByIds(planState, listViewState.productIds),
38
38
  productSort: listViewState.productSort,
39
39
  count: listViewState.counts,
40
40
  countsFetchState: listViewState.countsFetchState,
@@ -1,11 +1,10 @@
1
1
  import { getInvoicingQboAccountMappingId, } from '../../../entity/invoicing/invoicingCommonPayload';
2
- import { getAddressByAddressId } from '../../../entity/address/addressSelector';
3
2
  import { getFileByFileId } from '../../../entity/file/fileSelector';
4
3
  import { getFormattedAddress } from '../../addressView/addressViewSelector';
5
4
  import { getInvoicingConfigView, invoicingFieldHelpForGroup, } from '../invoicingConfigView/invoicingConfigViewSelector';
6
5
  import { getInvoicingQboView, isInvoicingAccountingPickerDataLoading, } from '../invoicingQboView/invoicingQboViewSelector';
7
6
  import { INVOICING_BUSINESS_ADDRESS_TYPE, entityToInvoicingBrandingFormLocalData, } from './invoicingBrandingFormConfig';
8
- import { entityToInvoicingQboSettingsLocalData, initialInvoicingQboSettingsLocalData, } from './invoicingQboSettingsFormConfig';
7
+ import { initialInvoicingQboSettingsLocalData, } from './invoicingQboSettingsFormConfig';
9
8
  /**
10
9
  * Shared primitive: the raw invoicing settings. Consumed internally by other
11
10
  * CES selectors (create-invoice, customer-detail, overview) and by non-settings
@@ -119,7 +118,6 @@ export const getInvoicingQboSettingsFormView = (state) => {
119
118
  fieldHelp: invoicingFieldHelpForGroup(state, 'settings'),
120
119
  accountMappingKindOptions: qboAccountMappingKindOptions,
121
120
  accounts: qboView.accounts,
122
- savedLocalData: entityToInvoicingQboSettingsLocalData(settings?.qbo),
123
121
  backfillState: qboView.backfillState,
124
122
  connection: qboView.connection,
125
123
  configFetchState,
@@ -145,27 +143,20 @@ export const getInvoicingQboSettingsFormView = (state) => {
145
143
  };
146
144
  /**
147
145
  * Bundled view for the branding settings form: the draft `localData` (seeded
148
- * from the existing settings until the user edits), the business address, the
149
- * raw settings (for the logo/preview), the backend date-format choices and the
146
+ * from the existing settings until the user edits), the business-address label
147
+ * (from the shared Address screen, seeded on load from `address_id`), the raw
148
+ * settings (for the logo/preview), the backend date-format choices and the
150
149
  * save fetch state.
151
- *
152
- * The address is resolved here rather than read from the Address screen's
153
- * staging store alone: that store is only seeded when settings are fetched, and
154
- * returning to this page does not refetch, so a saved address would otherwise
155
- * have no way to reach the screen.
156
150
  */
157
151
  export const getInvoicingBrandingFormView = (state) => {
158
152
  const { brandingDraft, saveFetchState, settings } = state.invoicingSettingsViewState;
159
- const savedAddressId = settings?.address?.address_id;
160
- const address = state.addressViewState.newAddressState?.[INVOICING_BUSINESS_ADDRESS_TYPE]
161
- ?.addressToCreate ??
162
- (savedAddressId != null
163
- ? getAddressByAddressId(state.addressState, savedAddressId)
164
- : undefined);
153
+ const newAddress = state.addressViewState.newAddressState?.[INVOICING_BUSINESS_ADDRESS_TYPE];
154
+ const addressLabel = newAddress?.addressToCreate != null
155
+ ? getFormattedAddress(newAddress.addressToCreate)
156
+ : undefined;
165
157
  return {
166
158
  fieldHelp: invoicingFieldHelpForGroup(state, 'settings'),
167
- address,
168
- addressLabel: address != null ? getFormattedAddress(address) : undefined,
159
+ addressLabel,
169
160
  dateFormatOptions: getInvoicingConfigView(state).dateFormatOptions,
170
161
  localData: brandingDraft ?? entityToInvoicingBrandingFormLocalData(settings),
171
162
  saveState: saveFetchState,
@@ -1,7 +1,6 @@
1
1
  import { of } from 'rxjs';
2
2
  import { catchError, filter, mergeMap } from 'rxjs/operators';
3
3
  import { updateAddresses } from '../../../entity/address/addressReducer';
4
- import { getAddressByAddressId } from '../../../entity/address/addressSelector';
5
4
  import { updateFiles } from '../../../entity/file/fileReducer';
6
5
  import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload';
7
6
  import { resetNewAddressDataInLocalStore } from '../../addressView/addressViewReducer';
@@ -17,11 +16,7 @@ export const submitInvoicingBrandingFormEpic = (actions$, state$, zeniAPI) => ac
17
16
  const state = state$.value;
18
17
  const { brandingDraft, settings } = state.invoicingSettingsViewState;
19
18
  const localData = brandingDraft ?? entityToInvoicingBrandingFormLocalData(settings);
20
- const savedAddressId = settings?.address?.address_id;
21
- const address = state.addressViewState.newAddressState?.[INVOICING_BUSINESS_ADDRESS_TYPE]?.addressToCreate ??
22
- (savedAddressId != null
23
- ? getAddressByAddressId(state.addressState, savedAddressId)
24
- : undefined);
19
+ const address = state.addressViewState.newAddressState?.[INVOICING_BUSINESS_ADDRESS_TYPE]?.addressToCreate;
25
20
  const data = brandingLocalDataToSettingsPayload(localData, address);
26
21
  const apiUrl = `${zeniAPI.apiEndPoints.invoicingMicroServiceBaseUrl}/1.0/settings`;
27
22
  return zeniAPI
@@ -42,11 +37,7 @@ export const submitInvoicingBrandingFormEpic = (actions$, state$, zeniAPI) => ac
42
37
  ? [updateFiles({ files: [savedLogoFile] })]
43
38
  : []),
44
39
  saveInvoicingSettingsSuccess(response.data),
45
- ...(savedAddress == null
46
- ? [
47
- resetNewAddressDataInLocalStore(INVOICING_BUSINESS_ADDRESS_TYPE),
48
- ]
49
- : []),
40
+ resetNewAddressDataInLocalStore(INVOICING_BUSINESS_ADDRESS_TYPE),
50
41
  ];
51
42
  }
52
43
  return of(saveInvoicingSettingsFailure(response.status));
@@ -16,7 +16,7 @@ import { toBusinessVerificationCompanyDataPayload, toBusinessVerificationOfficer
16
16
  import { updateCurrentStep, updateOnboardingCustomerView, updateOnboardingCustomerViewFailure, updateOnboardingCustomerViewLocalStoreData, updateOnboardingCustomerViewSuccess, } from '../../onboardingCustomerViewReducer';
17
17
  import { getOnboardingCustomerView } from '../../onboardingCustomerViewSelector';
18
18
  export const updateOnboardingCustomerViewEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(updateOnboardingCustomerView.match), mergeMap((action) => {
19
- const { companyId, officerType, sendForVerification, reCalculateCurrentStep = false, isBillingAddressUpdate, businessProfile, } = action.payload;
19
+ const { companyId, officerType, sendForVerification, reCalculateCurrentStep = false, isBillingAddressUpdate, } = action.payload;
20
20
  const { onboardingCustomerViewState } = state$.value;
21
21
  const { companyDetails, primaryContactDetails, companyOfficerUpdateStatus, currentStep, currentSubStep, } = onboardingCustomerViewState;
22
22
  const companyLocalData = companyDetails.localData;
@@ -28,17 +28,12 @@ export const updateOnboardingCustomerViewEpic = (actions$, state$, zeniAPI) => a
28
28
  }
29
29
  const { newAddressState } = state$.value.addressViewState;
30
30
  let payload = {};
31
- const isSetupBillingSave = isBillingAddressUpdate === true || businessProfile != null;
32
31
  if (companyLocalData != null) {
33
- const companyView = getCompanyView(state$.value, companyId, []);
34
- const billingAddressToCreate = isBillingAddressUpdate === true
35
- ? newAddressState?.subscription_billing_address.addressToCreate
36
- : undefined;
37
- if (billingAddressToCreate != null || businessProfile != null) {
38
- payload = prepareEditBillingAddressPayload(companyLocalData, billingAddressToCreate, businessProfile != null
39
- ? toBusinessProfilePayload(businessProfile, companyView?.company.company.incInfo)
40
- : {});
32
+ if (isBillingAddressUpdate === true &&
33
+ newAddressState?.subscription_billing_address.addressToCreate != null) {
34
+ payload = prepareEditBillingAddressPayload(companyLocalData, newAddressState.subscription_billing_address.addressToCreate);
41
35
  }
36
+ const companyView = getCompanyView(state$.value, companyId, []);
42
37
  const companyAddressToCreate = newAddressState?.company_address?.addressToCreate;
43
38
  const registeredAddressToCreate = newAddressState?.company_registered_address?.addressToCreate;
44
39
  const addressType = officerType
@@ -61,7 +56,7 @@ export const updateOnboardingCustomerViewEpic = (actions$, state$, zeniAPI) => a
61
56
  // different payloads — currentSubStep is the source of truth here.
62
57
  const isOfficerSave = currentStep === 'verification' &&
63
58
  currentSubStep === 'company_officer';
64
- if (isBillingAddressUpdate === false && businessProfile == null) {
59
+ if (isBillingAddressUpdate === false) {
65
60
  if (isOfficerSave) {
66
61
  payload = {
67
62
  company: toBusinessVerificationMinimalCompanyDataPayload(companyLocalData),
@@ -75,7 +70,7 @@ export const updateOnboardingCustomerViewEpic = (actions$, state$, zeniAPI) => a
75
70
  };
76
71
  }
77
72
  }
78
- const section = isSetupBillingSave
73
+ const section = isBillingAddressUpdate === true
79
74
  ? 'setup_billing'
80
75
  : isOfficerSave
81
76
  ? 'company_officer'
@@ -95,7 +90,7 @@ export const updateOnboardingCustomerViewEpic = (actions$, state$, zeniAPI) => a
95
90
  },
96
91
  };
97
92
  let messageSection;
98
- if (isSetupBillingSave) {
93
+ if (isBillingAddressUpdate === true) {
99
94
  messageSection = messageSectionMapper[section].save;
100
95
  }
101
96
  else if (sendForVerification === true) {
@@ -178,28 +173,13 @@ const toBusinessVerificationMinimalCompanyDataPayload = (companyLocalData) => {
178
173
  }
179
174
  return company;
180
175
  };
181
- const toBusinessProfilePayload = (businessProfile, persistedIncInfo) => {
182
- const isIndustryTypeChanged = businessProfile.companyIndustryType !==
183
- persistedIncInfo?.companyIndustryType;
184
- return {
185
- company_business_model: businessProfile.companyBusinessModel,
186
- company_industry_type: businessProfile.companyIndustryType,
187
- // A sub-industry kept from the old industry would fail the backend subtype check on the next KYB save.
188
- ...(isIndustryTypeChanged &&
189
- persistedIncInfo?.companySubIndustry != null && {
190
- company_industry_sub_type: null,
191
- }),
192
- };
193
- };
194
- const prepareEditBillingAddressPayload = (companyDetailsLocalData, address, businessProfilePayload) => {
176
+ const prepareEditBillingAddressPayload = (companyDetailsLocalData, address) => {
195
177
  const { syncToken } = companyDetailsLocalData;
178
+ const addressPayload = toAddressUpdatableInfoPayload(address);
196
179
  return {
197
180
  company: {
198
181
  sync_token: syncToken,
199
- ...(address != null && {
200
- subscription_billing_address: toAddressUpdatableInfoPayload(address),
201
- }),
202
- ...businessProfilePayload,
182
+ subscription_billing_address: addressPayload,
203
183
  },
204
184
  };
205
185
  };
@@ -523,7 +523,7 @@ const onboardingCustomerView = createSlice({
523
523
  reducer(draft) {
524
524
  draft.saveStatus = { fetchState: 'In-Progress', error: undefined };
525
525
  },
526
- prepare(companyId, sendForVerification, reCalculateCurrentStep, isBillingAddressUpdate, officerType, businessProfile) {
526
+ prepare(companyId, sendForVerification, reCalculateCurrentStep, isBillingAddressUpdate, officerType) {
527
527
  return {
528
528
  payload: {
529
529
  companyId,
@@ -531,7 +531,6 @@ const onboardingCustomerView = createSlice({
531
531
  reCalculateCurrentStep,
532
532
  isBillingAddressUpdate,
533
533
  officerType,
534
- businessProfile,
535
534
  },
536
535
  };
537
536
  },
@@ -625,7 +625,7 @@ export const getDueDate = (billStageCode, dueDate, invoiceDate, bookCloseDate) =
625
625
  }
626
626
  };
627
627
  export const getWithdrawFrom = (state, fromAccountId, fromAccountType, companyId, lastSelectedFromAccount) => {
628
- const { paymentAccountState, depositAccountState, paymentAccountListState } = state;
628
+ const { paymentAccountState, depositAccountState, depositAccountListState, paymentAccountListState, } = state;
629
629
  if (fromAccountId != null) {
630
630
  const withdrawFromAsDepositAcc = getDepositAccountByDepositAccountId(depositAccountState, fromAccountId);
631
631
  const withdrawFromAsPaymentAcc = getPaymentAccountByPaymentAccountId(paymentAccountState, fromAccountId);
@@ -639,15 +639,41 @@ export const getWithdrawFrom = (state, fromAccountId, fromAccountType, companyId
639
639
  }
640
640
  }
641
641
  else {
642
- return getDefaultWithdrawFromAccount(state, companyId ?? '', lastSelectedFromAccount);
642
+ return getDefaultWithdrawFromAccount(state, depositAccountListState.accountIds, companyId ?? '', lastSelectedFromAccount);
643
643
  }
644
644
  return undefined;
645
645
  };
646
- export const getDefaultWithdrawFromAccount = (state, companyId, lastSelectedFromAccount) => {
646
+ export const getDefaultWithdrawFromAccount = (state, depositAccounts, companyId, lastSelectedFromAccount) => {
647
647
  const { depositAccountState, paymentAccountState, paymentAccountListState } = state;
648
648
  const companyView = getCompanyView(state, companyId, []);
649
649
  const primaryAccount = companyView?.company.company.companyBillPayInfo.primaryFundingAccount;
650
- const defaultAccount = primaryAccount ?? lastSelectedFromAccount;
650
+ let defaultAccount = undefined;
651
+ // User paying bill for first time or previously paid with external account
652
+ if (lastSelectedFromAccount == null ||
653
+ lastSelectedFromAccount?.accountType === 'paymentAccount') {
654
+ if (depositAccounts.length === 0) {
655
+ defaultAccount = primaryAccount;
656
+ }
657
+ else {
658
+ if (primaryAccount?.accountType === 'depositAccount') {
659
+ defaultAccount = primaryAccount;
660
+ }
661
+ }
662
+ }
663
+ else {
664
+ // User paid with Zeni account previously
665
+ if (depositAccounts.length === 1) {
666
+ defaultAccount = lastSelectedFromAccount;
667
+ }
668
+ else {
669
+ if (primaryAccount?.accountType === 'depositAccount') {
670
+ defaultAccount = primaryAccount;
671
+ }
672
+ else {
673
+ defaultAccount = lastSelectedFromAccount;
674
+ }
675
+ }
676
+ }
651
677
  if (defaultAccount != null) {
652
678
  const defaultAccAsDepositAcc = getDepositAccountByDepositAccountId(depositAccountState, defaultAccount?.accountId);
653
679
  const defaultAccAsPaymentAcc = getPaymentAccountByPaymentAccountId(paymentAccountState, defaultAccount?.accountId);
@@ -13,7 +13,6 @@ const emptyOfficerSlot = {
13
13
  };
14
14
  export const initialState = {
15
15
  updateStatus: { fetchState: 'Not-Started', error: undefined },
16
- kycKybResetStatus: { fetchState: 'Not-Started', error: undefined },
17
16
  parsingDocumentFileIds: [],
18
17
  companyDetails: { autoFilledFields: [] },
19
18
  companyOfficerUpdateStatus: {
@@ -85,25 +84,6 @@ const setupView = createSlice({
85
84
  };
86
85
  },
87
86
  },
88
- resetKycKyb(draft) {
89
- draft.kycKybResetStatus = { fetchState: 'In-Progress', error: undefined };
90
- },
91
- resetKycKybSuccess(draft) {
92
- draft.kycKybResetStatus = { fetchState: 'Completed', error: undefined };
93
- },
94
- resetKycKybFailure: {
95
- reducer(draft, action) {
96
- draft.kycKybResetStatus = { fetchState: 'Error', error: action.payload };
97
- },
98
- prepare(error) {
99
- return {
100
- payload: error,
101
- };
102
- },
103
- },
104
- clearKycKybResetStatus(draft) {
105
- draft.kycKybResetStatus = { fetchState: 'Not-Started', error: undefined };
106
- },
107
87
  updateSelectedCompanyOfficer: {
108
88
  reducer(draft, action) {
109
89
  const { selectedOfficerType } = action.payload;
@@ -379,5 +359,5 @@ const setupView = createSlice({
379
359
  });
380
360
  },
381
361
  });
382
- export const { enableSetup, enableSetupSuccess, enableSetupFailure, updateBusinessVerificationDetails, updateBusinessVerificationDetailsSuccess, updateBusinessVerificationDetailsFailure, resetKycKyb, resetKycKybSuccess, resetKycKybFailure, clearKycKybResetStatus, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, sendOtp: sendOtpSpendManagementSetUp, resendOtp: resendOtpSpendManagementSetUp, sendOtpSuccess: sendOtpSuccessSpendManagementSetUp, sendOtpFailure: sendOtpFailureSpendManagementSetUp, verifyOtp: verifyOtpSpendManagementSetUp, verifyOtpSuccess: verifyOtpSuccessSpendManagementSetUp, verifyOtpFailure: verifyOtpFailureSpendManagementSetUp, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, applyKycDocumentAutofillForSetup, applyKybDocumentAutofillForSetup, clearKycKybAutofillForSetup, } = setupView.actions;
362
+ export const { enableSetup, enableSetupSuccess, enableSetupFailure, updateBusinessVerificationDetails, updateBusinessVerificationDetailsSuccess, updateBusinessVerificationDetailsFailure, updateSelectedCompanyOfficer, updateSetupViewLocalStoreData, saveSetupViewDataInLocalStore, saveCompnayOfficerPhoneInLocalStore, saveCompnayOfficerAdditionalDocumentsInLocalStore, saveTreasuryAdditionalDocumentsInLocalStore, sendOtp: sendOtpSpendManagementSetUp, resendOtp: resendOtpSpendManagementSetUp, sendOtpSuccess: sendOtpSuccessSpendManagementSetUp, sendOtpFailure: sendOtpFailureSpendManagementSetUp, verifyOtp: verifyOtpSpendManagementSetUp, verifyOtpSuccess: verifyOtpSuccessSpendManagementSetUp, verifyOtpFailure: verifyOtpFailureSpendManagementSetUp, saveIndustryAndIncDateInLocalStore, clearSetupViewDataInLocalStore, applyKycDocumentAutofillForSetup, applyKybDocumentAutofillForSetup, clearKycKybAutofillForSetup, } = setupView.actions;
383
363
  export default setupView.reducer;
@@ -85,7 +85,7 @@ function getPrimaryAccountForTheProduct(state, companyId, setupViewType) {
85
85
  }
86
86
  export function getBusinessVerificationDetails(state, companyId) {
87
87
  const { setupViewState, countryListState } = state;
88
- const { companyDetails, companyOfficerUpdateStatus, kycKybResetStatus, primaryContactDetails, updateStatus, } = setupViewState;
88
+ const { companyDetails, companyOfficerUpdateStatus, primaryContactDetails, updateStatus, } = setupViewState;
89
89
  const companyView = getCompanyView(state, companyId, []);
90
90
  const { companyDetailsLocalData, companyOfficerLocalData, parsingDocumentFileIds, } = getCompanyAndIdentityDetails(state, companyId, {
91
91
  companyDetails,
@@ -100,7 +100,6 @@ export function getBusinessVerificationDetails(state, companyId) {
100
100
  parsingDocumentFileIds,
101
101
  companyView,
102
102
  updateStatus,
103
- kycKybResetStatus,
104
103
  allNationalityCountries,
105
104
  };
106
105
  }