@tap-payments/auth-jsconnect 2.0.96-test → 2.0.97-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.
@@ -46,7 +46,9 @@ export declare type UpdateBrandBody = {
46
46
  customer_base?: {
47
47
  id: string;
48
48
  period: string;
49
- locations?: Array<string>;
49
+ locations?: Array<{
50
+ id: string;
51
+ }>;
50
52
  };
51
53
  };
52
54
  term?: Array<string>;
@@ -601,11 +601,10 @@ export var updateCustomersInfo = createAsyncThunk('updateCustomersInfo', functio
601
601
  case 0:
602
602
  _a = thunkApi.getState(), settings = _a.settings, business = _a.business;
603
603
  id = (_c = (_b = business.data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.brand) === null || _c === void 0 ? void 0 : _c.id;
604
- customerLocation = params.customerLocations.map(function (_a) {
605
- var id = _a.id;
606
- return id;
607
- });
608
- customerBase = { id: ((_d = params.expectedCustomer) === null || _d === void 0 ? void 0 : _d.id) || '', period: 'monthly', location: customerLocation };
604
+ customerLocation = params.customerLocations.map(function (location) { return ({
605
+ id: location === null || location === void 0 ? void 0 : location.id
606
+ }); });
607
+ customerBase = { id: ((_d = params.expectedCustomer) === null || _d === void 0 ? void 0 : _d.id) || '', period: 'monthly', locations: customerLocation };
609
608
  sales = { id: ((_e = params.expectedSale) === null || _e === void 0 ? void 0 : _e.id) || '', period: 'monthly' };
610
609
  stepName = BUSINESS_STEP_NAMES.BUSINESS_CUSTOMERS;
611
610
  requestBody = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.0.96-test",
3
+ "version": "2.0.97-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",