@zeniai/client-epic-state 4.13.82 → 4.13.84
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/entity/company/companyPayload.d.ts +1 -0
- package/lib/entity/company/companyPayload.js +1 -0
- package/lib/entity/company/companyStateTypes.d.ts +2 -1
- package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +1 -0
- package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +2 -0
- package/lib/view/commonVendorView/vendorView/epics/saveVendorEpic.js +4 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.js +3 -1
- package/package.json +1 -1
|
@@ -135,6 +135,7 @@ interface CompanyChargeCardInfoDataPayload {
|
|
|
135
135
|
account_id: string | null;
|
|
136
136
|
account_type: string | null;
|
|
137
137
|
};
|
|
138
|
+
charge_cards_credit_account_limit: number;
|
|
138
139
|
}
|
|
139
140
|
interface CompanyBillPayInfoPayload {
|
|
140
141
|
bill_pay_info: CompanyBillPayInfoDataPayload;
|
|
@@ -212,6 +212,7 @@ const toCompanyChargeCardInfo = (payload) => {
|
|
|
212
212
|
accountType: (0, billPayConfigPayload_1.getAccountTypeSubConfigCodeKey)((0, billPayConfigState_1.toAccType)(payload.primary_funding_account.account_type)),
|
|
213
213
|
}
|
|
214
214
|
: undefined,
|
|
215
|
+
chargeCardsCreditAccountLimit: payload.charge_cards_credit_account_limit,
|
|
215
216
|
});
|
|
216
217
|
};
|
|
217
218
|
const toCompanyMileageConfigInfo = (payload) => {
|
|
@@ -208,11 +208,12 @@ interface UserChargeCardInfo {
|
|
|
208
208
|
}
|
|
209
209
|
export interface CompanyChargeCardInfo extends UserChargeCardInfo {
|
|
210
210
|
isChargeCardEnabled: boolean;
|
|
211
|
-
|
|
211
|
+
chargeCardsCreditAccountLimit: number;
|
|
212
212
|
primaryFundingAccount?: {
|
|
213
213
|
accountId: ID;
|
|
214
214
|
accountType: AccountTypeSubConfigCodeKeyType;
|
|
215
215
|
};
|
|
216
|
+
chargeCardTOSAcceptanceUserid?: ID;
|
|
216
217
|
}
|
|
217
218
|
export interface CompanyFeaturesActivationInfo {
|
|
218
219
|
isBillPayFeatureEnabled: boolean;
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
"charge_cards_info": {
|
|
88
|
+
"charge_cards_credit_account_limit": 50000,
|
|
88
89
|
"charge_cards_tos_acceptance_time": "2023-12-18T08:07:26.864486",
|
|
89
90
|
"charge_cards_tos_acceptance_user_id": "u_1c176a71-77f9-428c-bf32-f90396024326",
|
|
90
91
|
"charge_cards_tos_acceptance_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
"deposit_accounts_tos_acceptance_ip": "43.250.156.219"
|
|
78
78
|
},
|
|
79
79
|
"charge_cards_info": {
|
|
80
|
+
"charge_cards_credit_account_limit": 50000,
|
|
80
81
|
"charge_cards_tos_acceptance_time": "2023-12-18T08:07:26.864486",
|
|
81
82
|
"charge_cards_tos_acceptance_user_id": "u_1c176a71-77f9-428c-bf32-f90396024326",
|
|
82
83
|
"charge_cards_tos_acceptance_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
|
|
@@ -167,6 +168,7 @@
|
|
|
167
168
|
}
|
|
168
169
|
},
|
|
169
170
|
"charge_cards_info": {
|
|
171
|
+
"charge_cards_credit_account_limit": 50000,
|
|
170
172
|
"charge_cards_tos_acceptance_time": "2023-12-18T08:07:26.864486",
|
|
171
173
|
"charge_cards_tos_acceptance_user_id": "u_1c176a71-77f9-428c-bf32-f90396024326",
|
|
172
174
|
"charge_cards_tos_acceptance_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
|
|
@@ -85,6 +85,10 @@ const saveVendorEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operator
|
|
|
85
85
|
amount: 0,
|
|
86
86
|
currencyCode: vendorCurrencyCode,
|
|
87
87
|
currencySymbol: vendorCurrencySymbol,
|
|
88
|
+
}, recipientAmount: {
|
|
89
|
+
amount: 0,
|
|
90
|
+
currencyCode: vendorCurrencyCode,
|
|
91
|
+
currencySymbol: vendorCurrencySymbol,
|
|
88
92
|
}, id: '1', lineDescription: '', platformLineDetailType: 'account_based_expense_line_detail', type: 'transaction_with_account_and_class_line', billable: 'not_billable', isCategoryMiscategorized: false, isClassMiscategorized: false }, editBillViewState_1.defaultRecommendationStateObj);
|
|
89
93
|
}
|
|
90
94
|
}
|
package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FetchStateAndError, ID } from '../../../../commonStateTypes/common';
|
|
2
2
|
import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
|
-
import { CompanyChargeCardInfo } from '../../../../entity/company/companyStateTypes';
|
|
3
|
+
import { CompanyChargeCardInfo, CompanyLocaleInfo } from '../../../../entity/company/companyStateTypes';
|
|
4
4
|
import { RootState } from '../../../../reducer';
|
|
5
5
|
import { BusinessVerificationDetails, CompanyOfficersDetails, SetupView } from '../../commonSetup/setupViewSelector';
|
|
6
6
|
export interface ChargeCardSetupView extends SetupView, SelectorView {
|
|
7
7
|
companyChargeCardInfo?: CompanyChargeCardInfo;
|
|
8
|
+
companyLocaleInfo?: CompanyLocaleInfo;
|
|
8
9
|
chargeCardTermsDetails?: {
|
|
9
10
|
fetchStatus: FetchStateAndError;
|
|
10
11
|
};
|
|
@@ -8,6 +8,7 @@ function getChargeCardSetupViewDetails(state, companyId) {
|
|
|
8
8
|
const chargeCardSetupViewDetails = (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'charge_cards', 'charge_card_setup');
|
|
9
9
|
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
|
|
10
10
|
const companyChargeCardInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyChargeCardInfo;
|
|
11
|
+
const companyLocaleInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyLocaleInfo;
|
|
11
12
|
const { chargeCardSetupViewState, setupViewState } = state;
|
|
12
13
|
const { chargeCardTermsDetails, isRefreshingViewInBackground } = chargeCardSetupViewState;
|
|
13
14
|
const { updateStatus } = setupViewState;
|
|
@@ -15,7 +16,8 @@ function getChargeCardSetupViewDetails(state, companyId) {
|
|
|
15
16
|
const businessVerificationDetails = getChargeCardBusinessVerificationDetails(state, companyId);
|
|
16
17
|
const selectedCompanyOfficer = (0, helpers_1.getSelectedCompanyOfficer)(businessVerificationDetails);
|
|
17
18
|
return Object.assign(Object.assign({}, chargeCardSetupViewDetails), { chargeCardTermsDetails,
|
|
18
|
-
companyChargeCardInfo,
|
|
19
|
+
companyChargeCardInfo,
|
|
20
|
+
companyLocaleInfo, version: 1, fetchState,
|
|
19
21
|
error,
|
|
20
22
|
updateStatus,
|
|
21
23
|
selectedCompanyOfficer,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.84",
|
|
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",
|