Package com.adyen.model.posmobile
Class CreateSessionRequest
- java.lang.Object
-
- com.adyen.model.posmobile.CreateSessionRequest
-
public class CreateSessionRequest extends Object
CreateSessionRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_SETUP_TOKENstatic StringJSON_PROPERTY_STORE
-
Constructor Summary
Constructors Constructor Description CreateSessionRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this CreateSessionRequest object is equal to o.static CreateSessionRequestfromJson(String jsonString)Create an instance of CreateSessionRequest given an JSON stringStringgetMerchantAccount()The unique identifier of your merchant account.StringgetSetupToken()The setup token provided by the POS Mobile SDK.StringgetStore()The unique identifier of the store that you want to process transactions for.inthashCode()CreateSessionRequestmerchantAccount(String merchantAccount)voidsetMerchantAccount(String merchantAccount)The unique identifier of your merchant account.voidsetSetupToken(String setupToken)The setup token provided by the POS Mobile SDK.voidsetStore(String store)The unique identifier of the store that you want to process transactions for.CreateSessionRequestsetupToken(String setupToken)CreateSessionRequeststore(String store)StringtoJson()Convert an instance of CreateSessionRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SETUP_TOKEN
public static final String JSON_PROPERTY_SETUP_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE
public static final String JSON_PROPERTY_STORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
merchantAccount
public CreateSessionRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The unique identifier of your merchant account.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
The unique identifier of your merchant account.- Parameters:
merchantAccount-
-
setupToken
public CreateSessionRequest setupToken(String setupToken)
-
getSetupToken
public String getSetupToken()
The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`.- Returns:
- setupToken
-
setSetupToken
public void setSetupToken(String setupToken)
The setup token provided by the POS Mobile SDK. - When using the Android POS Mobile SDK, obtain the token through the `AuthenticationService.authenticate(setupToken)` callback of `AuthenticationService`. - When using the iOS POS Mobile SDK, obtain the token through the `PaymentServiceDelegate.register(with:)` callback of `PaymentServiceDelegate`.- Parameters:
setupToken-
-
store
public CreateSessionRequest store(String store)
-
getStore
public String getStore()
The unique identifier of the store that you want to process transactions for.- Returns:
- store
-
setStore
public void setStore(String store)
The unique identifier of the store that you want to process transactions for.- Parameters:
store-
-
equals
public boolean equals(Object o)
Return true if this CreateSessionRequest object is equal to o.
-
fromJson
public static CreateSessionRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateSessionRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateSessionRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateSessionRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateSessionRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-