@tap-payments/auth-jsconnect 2.4.85-test → 2.4.86-test
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.
|
@@ -472,6 +472,7 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
472
472
|
brand: {
|
|
473
473
|
id: (selectedBrandItem === null || selectedBrandItem === void 0 ? void 0 : selectedBrandItem.id) || ''
|
|
474
474
|
},
|
|
475
|
+
terms_conditions_accepted: termAndConditionChecked,
|
|
475
476
|
id: (responseBody === null || responseBody === void 0 ? void 0 : responseBody.lead_id) || '',
|
|
476
477
|
step_name: CONNECT_STEP_NAMES.UPDATE_LEAD_BRAND
|
|
477
478
|
};
|
|
@@ -526,6 +527,7 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
526
527
|
};
|
|
527
528
|
payload = {
|
|
528
529
|
brand: brandNameBody,
|
|
530
|
+
terms_conditions_accepted: termAndConditionChecked,
|
|
529
531
|
id: (responseBody === null || responseBody === void 0 ? void 0 : responseBody.lead_id) || '',
|
|
530
532
|
step_name: CONNECT_STEP_NAMES.UPDATE_LEAD_BRAND,
|
|
531
533
|
encryption_contract: ['brand.name.en', 'brand.name.ar', 'brand.name.zh']
|
|
@@ -923,7 +925,7 @@ export var connectSlice = createSlice({
|
|
|
923
925
|
state.loading = false;
|
|
924
926
|
state.error = null;
|
|
925
927
|
var _d = action.payload, formData = _d.formData, leadResponse = _d.leadResponse;
|
|
926
|
-
var brand = leadResponse.brand, rest = __rest(leadResponse, ["brand"]);
|
|
928
|
+
var brand = leadResponse.brand, terms_conditions_accepted = leadResponse.terms_conditions_accepted, rest = __rest(leadResponse, ["brand", "terms_conditions_accepted"]);
|
|
927
929
|
if (brand) {
|
|
928
930
|
var channel_services = brand.channel_services, terms = brand.terms;
|
|
929
931
|
state.data.brandData.salesChannels = channel_services || [];
|
|
@@ -931,7 +933,7 @@ export var connectSlice = createSlice({
|
|
|
931
933
|
var term = _a.term, agree = _a.agree;
|
|
932
934
|
return term === 'general' && agree === true;
|
|
933
935
|
});
|
|
934
|
-
state.data.brandData.termAndConditionChecked = !!termAndCondition;
|
|
936
|
+
state.data.brandData.termAndConditionChecked = !!termAndCondition || terms_conditions_accepted;
|
|
935
937
|
}
|
|
936
938
|
var selectedBrand = ((_b = (_a = state.data.brandData) === null || _a === void 0 ? void 0 : _a.responseBody) === null || _b === void 0 ? void 0 : _b.brand_list[0]) || leadResponse.brand;
|
|
937
939
|
state.data.brandData.brandName = (_c = selectedBrand === null || selectedBrand === void 0 ? void 0 : selectedBrand.name) === null || _c === void 0 ? void 0 : _c.en;
|