@zeniai/client-epic-state 4.14.96 → 4.14.98
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/externalAPI.d.ts +0 -1
- package/lib/reducer.d.ts +1 -1
- package/lib/reducer.js +1 -1
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +16 -7
- package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +2 -2
- package/package.json +1 -1
package/lib/externalAPI.d.ts
CHANGED
package/lib/reducer.d.ts
CHANGED
|
@@ -158,7 +158,6 @@ import { CheckDepositState } from './view/spendManagement/zeniAccounts/checkDepo
|
|
|
158
158
|
import { DepositAccountDetailState } from './view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailState';
|
|
159
159
|
import { DepositAccountListState } from './view/spendManagement/zeniAccounts/depositAccountList/depositAccountList';
|
|
160
160
|
import { DepositAccountTransactionListState } from './view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListState';
|
|
161
|
-
import { ExpressPayState } from './view/spendManagement/zeniAccounts/expressPay/expressPayState';
|
|
162
161
|
import { PaymentAccountListState } from './view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountList';
|
|
163
162
|
import { TransferDetailState } from './view/spendManagement/zeniAccounts/transferDetail/transferDetailState';
|
|
164
163
|
import { ZeniAccountListState } from './view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState';
|
|
@@ -190,6 +189,7 @@ import { VendorTabViewState } from './view/vendorTabView/vendorTabViewState';
|
|
|
190
189
|
import { VendorTypeListState } from './view/vendorTypeList/vendorTypeListState';
|
|
191
190
|
import { ZeniAccStatementListState } from './view/zeniAccStatementList/zeniAccStatementList';
|
|
192
191
|
import { ZeniAccountsPromoCardState } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardState';
|
|
192
|
+
import { ExpressPayState } from './view/spendManagement/zeniAccounts/expressPay/expressPayState';
|
|
193
193
|
type EntitiesState = {
|
|
194
194
|
accountGroupState: AccountGroupState;
|
|
195
195
|
accountingSummaryState: AccountingSummaryState;
|
package/lib/reducer.js
CHANGED
|
@@ -199,7 +199,6 @@ const checkDepositReducer_1 = __importStar(require("./view/spendManagement/zeniA
|
|
|
199
199
|
const depositAccountDetailReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailReducer"));
|
|
200
200
|
const depositAccountListReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/depositAccountList/depositAccountListReducer"));
|
|
201
201
|
const depositAccountTransactionListReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListReducer"));
|
|
202
|
-
const expressPayReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/expressPay/expressPayReducer"));
|
|
203
202
|
const paymentAccountListReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer"));
|
|
204
203
|
const transferDetailReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/transferDetail/transferDetailReducer"));
|
|
205
204
|
const zeniAccountListReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer"));
|
|
@@ -231,6 +230,7 @@ const vendorTabViewReducer_1 = __importStar(require("./view/vendorTabView/vendor
|
|
|
231
230
|
const vendorTypeListReducer_1 = __importStar(require("./view/vendorTypeList/vendorTypeListReducer"));
|
|
232
231
|
const zeniAccStatementListReducer_1 = __importStar(require("./view/zeniAccStatementList/zeniAccStatementListReducer"));
|
|
233
232
|
const zeniAccountsPromoCardReducer_1 = __importStar(require("./view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer"));
|
|
233
|
+
const expressPayReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/expressPay/expressPayReducer"));
|
|
234
234
|
// Note: Please maintain strict alphabetical order
|
|
235
235
|
const initialEntitiesState = {
|
|
236
236
|
accountGroupState: accountGroupReducer_1.initialState,
|
package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js
CHANGED
|
@@ -185,7 +185,6 @@ const toBusinessVerificationPrimaryContactDataPayload = (primaryContact, isNewPr
|
|
|
185
185
|
};
|
|
186
186
|
exports.toBusinessVerificationPrimaryContactDataPayload = toBusinessVerificationPrimaryContactDataPayload;
|
|
187
187
|
const toBusinessVerificationOfficerDataPayload = (companyOfficer, isSubmittingAdditionalDocuments, companyOfficerAddressData) => {
|
|
188
|
-
var _a;
|
|
189
188
|
const { firstName, lastName, userId, email, syncToken: userSyncToken, ssn, birthday, nationalityCountryCode, phone: userPhone, otpChallenge, isPhoneVerified, titleAtCompany, ownershipInCompany, documentTypeSelectedForVerification, fileIds: userFileIds, additionalSubmittedDocumentsForVerificationFileIds, } = companyOfficer;
|
|
190
189
|
const company_officer = {
|
|
191
190
|
first_name: firstName,
|
|
@@ -214,15 +213,25 @@ const toBusinessVerificationOfficerDataPayload = (companyOfficer, isSubmittingAd
|
|
|
214
213
|
if (ssn != null) {
|
|
215
214
|
company_officer['ssn'] = ssn;
|
|
216
215
|
}
|
|
217
|
-
|
|
216
|
+
if (birthday != null) {
|
|
217
|
+
company_officer['birthday'] = birthday.format('YYYY-MM-DD');
|
|
218
|
+
}
|
|
219
|
+
if (nationalityCountryCode != null) {
|
|
220
|
+
company_officer['nationality_country_code'] = nationalityCountryCode;
|
|
221
|
+
}
|
|
218
222
|
if (userPhone != null) {
|
|
219
223
|
company_officer['phone'] = userPhone;
|
|
220
224
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
if (titleAtCompany != null) {
|
|
226
|
+
company_officer['title_at_company'] = titleAtCompany;
|
|
227
|
+
}
|
|
228
|
+
if (ownershipInCompany != null) {
|
|
229
|
+
company_officer['company_ownership'] = ownershipInCompany;
|
|
230
|
+
}
|
|
231
|
+
if (documentTypeSelectedForVerification != null) {
|
|
232
|
+
company_officer['document_type_for_verification'] =
|
|
233
|
+
documentTypeSelectedForVerification;
|
|
234
|
+
}
|
|
226
235
|
if (companyOfficerAddressPayload != null) {
|
|
227
236
|
company_officer['address'] = companyOfficerAddressPayload;
|
|
228
237
|
}
|
|
@@ -7,10 +7,10 @@ export interface CompanyOfficerVerificationPayload {
|
|
|
7
7
|
phone: string;
|
|
8
8
|
sync_token: string;
|
|
9
9
|
ssn: string;
|
|
10
|
-
birthday: string
|
|
10
|
+
birthday: string;
|
|
11
11
|
nationality_country_code: string;
|
|
12
12
|
title_at_company: string;
|
|
13
|
-
company_ownership: number
|
|
13
|
+
company_ownership: number;
|
|
14
14
|
document_type_for_verification: string;
|
|
15
15
|
are_additional_documents_submitted_for_verification: boolean;
|
|
16
16
|
additional_submitted_documents_for_verification_file_ids: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.98",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|