public final class Location
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Location.Builder
Builder class for constructing Location objects.
|
Modifier and Type | Method and Description |
---|---|
Location.Builder |
buildUpon()
Creates a new Location
Location.Builder , with attributes copied from this instance. |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBusinessName()
The business name associated with the location.
|
CurrencyCode |
getCurrencyCode()
The currency used for all transactions at this location.
|
java.lang.String |
getLocationId()
The unique identifier for the location.
|
Money |
getMaximumCardPaymentAmountMoney()
The maximum credit card payment amount for this location.
|
Money |
getMinimumCardPaymentAmountMoney()
The minimum credit card payment amount for this location.
|
java.lang.String |
getName()
The name of the location (displayed as the location's nickname in Square Dashboard).
|
int |
hashCode() |
boolean |
isCardProcessingActivated()
Indicates whether or not this location is activated for credit card processing.
|
static Location.Builder |
newBuilder(java.lang.String locationId,
CurrencyCode currencyCode)
Creates a new Location builder with default values.
|
java.lang.String |
toString() |
@NonNull public static Location.Builder newBuilder(@NonNull java.lang.String locationId, @NonNull CurrencyCode currencyCode)
Creates a new Location builder with default values.
This method is provided for testing purposes.
@NonNull public java.lang.String getLocationId()
@NonNull public java.lang.String getName()
@NonNull public java.lang.String getBusinessName()
public boolean isCardProcessingActivated()
@NonNull public CurrencyCode getCurrencyCode()
@NonNull public Money getMinimumCardPaymentAmountMoney()
@NonNull public Money getMaximumCardPaymentAmountMoney()
@NonNull public Location.Builder buildUpon()
Creates a new Location Location.Builder
, with attributes copied from this instance.
This method is provided for testing purposes.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object