MerchantService class
URL: https://developer.squareup.com/reference/square/merchants-api
Use the Merchants API to retrieve information about a Square merchant account.
Constructors
- MerchantService.new({required String baseUrl, required AuthenticationService authenticationService})
Properties
- authenticationService → AuthenticationService
-
final
- baseUrl → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createLocation(
{required Location location, String? authToken}) → Future< Location> - Creates a location.
-
listLocation(
{required String merchantId, String? authToken}) → Future< List< Location> > - Provides details about all of the seller's locations, including those with an inactive status.
-
listMerchants(
{String? cursor, String? authToken}) → Future< MerchantResponse> - Returns Merchant information for a given access token.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readLocation(
{required String locationId, String? authToken}) → Future< Location> - Retrieves details of a single location.
-
readMerchant(
{required String merchantId, String? authToken}) → Future< Merchant> - Retrieve a Merchant object for the given merchant_id.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateLocation(
{required Location location, String? authToken}) → Future< Location> - Updates a location.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited