@tap-payments/auth-jsconnect 2.4.84-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
  };
@@ -521,12 +522,12 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
521
522
  id: '',
522
523
  name: {
523
524
  en: brandName,
524
- ar: brandName,
525
- zh: brandName
525
+ ar: brandName
526
526
  }
527
527
  };
528
528
  payload = {
529
529
  brand: brandNameBody,
530
+ terms_conditions_accepted: termAndConditionChecked,
530
531
  id: (responseBody === null || responseBody === void 0 ? void 0 : responseBody.lead_id) || '',
531
532
  step_name: CONNECT_STEP_NAMES.UPDATE_LEAD_BRAND,
532
533
  encryption_contract: ['brand.name.en', 'brand.name.ar', 'brand.name.zh']
@@ -924,7 +925,7 @@ export var connectSlice = createSlice({
924
925
  state.loading = false;
925
926
  state.error = null;
926
927
  var _d = action.payload, formData = _d.formData, leadResponse = _d.leadResponse;
927
- 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"]);
928
929
  if (brand) {
929
930
  var channel_services = brand.channel_services, terms = brand.terms;
930
931
  state.data.brandData.salesChannels = channel_services || [];
@@ -932,7 +933,7 @@ export var connectSlice = createSlice({
932
933
  var term = _a.term, agree = _a.agree;
933
934
  return term === 'general' && agree === true;
934
935
  });
935
- state.data.brandData.termAndConditionChecked = !!termAndCondition;
936
+ state.data.brandData.termAndConditionChecked = !!termAndCondition || terms_conditions_accepted;
936
937
  }
937
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;
938
939
  state.data.brandData.brandName = (_c = selectedBrand === null || selectedBrand === void 0 ? void 0 : selectedBrand.name) === null || _c === void 0 ? void 0 : _c.en;
@@ -699,8 +699,7 @@ export var updateLeadBusinessDataAsync = createAsyncThunk('updateLeadBusinessDat
699
699
  brandNameBody = {
700
700
  name: {
701
701
  en: brandName,
702
- ar: brandName,
703
- zh: brandName
702
+ ar: brandName
704
703
  }
705
704
  };
706
705
  payload = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.4.84-test",
3
+ "version": "2.4.86-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",