createLocation method

Future<Location> createLocation({
  1. required Location location,
  2. String? authToken,
})

Creates a location.

Creating new locations allows for separate configuration of receipt layouts, item prices, and sales reports. Developers can use locations to separate sales activity via applications that integrate with Square from sales activity elsewhere in a seller's account. Locations created programmatically with the Locations API will last forever and are visible to the seller for their own management, so ensure that each location has a sensible and unique name.

Implementation

Future<Location> createLocation({
  required Location location,
  String? authToken,
}) async {
  return _merchantService.createLocation(location: location, authToken: authToken);
}