LoginCredentials

public class LoginCredentials

Credentials used by loginWithCredentials.

Methods

create

public static LoginCredentials create()

Creates an instance of Credentials

createWith

public static LoginCredentials createWith(CommerceListener listener, String userId, String password, String shiftNumber, String merchantId)

Deprecated on 2020-06-01. Please use createWith2.

createWith2

public static LoginCredentials createWith2(String userId, String password, String shiftNumber, String merchantId)

getListener

public CommerceListener getListener()

Gets the Listener from the credentials Deprecated on 2020-06-01.

getMerchantId

public String getMerchantId()

Gets the merchant id from the credentials

getOperatorLocale

public String getOperatorLocale()

Gets the operator locale from the credentials

Return:

optional Operator Locale

getPassword

public String getPassword()

Gets the the password from the credentials

getShiftNumber

public String getShiftNumber()

Gets the the shift number from the credentials

getUserId

public String getUserId()

Gets the the user id from the credentials

setListener

public void setListener(CommerceListener listener)

Sets the listener to the credentials Deprecated on 2020-06-01.

setMerchantId

public void setMerchantId(String merchantId)

Sets the merchant id to the credentials

setOperatorLocale

public void setOperatorLocale(String operatorLocale)

Sets the operator locale to the credentials

Parameters:
  • operatorLocale – optional

setPassword

public void setPassword(String password)

Sets the password to the credentials

setShiftNumber

public void setShiftNumber(String shiftNumber)

Sets the shift number to the credentials

setUserId

public void setUserId(String userId)

Sets the user id to the credentials