Package com.adyen.model.management
Class TerminalAssignment
- java.lang.Object
-
- com.adyen.model.management.TerminalAssignment
-
public class TerminalAssignment extends Object
TerminalAssignment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTerminalAssignment.StatusEnumThe status of the reassignment.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COMPANY_IDstatic StringJSON_PROPERTY_MERCHANT_IDstatic StringJSON_PROPERTY_REASSIGNMENT_TARGETstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_STORE_ID
-
Constructor Summary
Constructors Constructor Description TerminalAssignment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalAssignmentcompanyId(String companyId)The unique identifier of the company account to which terminal is assigned.booleanequals(Object o)Return true if this TerminalAssignment object is equal to o.static TerminalAssignmentfromJson(String jsonString)Create an instance of TerminalAssignment given an JSON stringStringgetCompanyId()The unique identifier of the company account to which terminal is assigned.StringgetMerchantId()The unique identifier of the merchant account to which terminal is assigned.TerminalReassignmentTargetgetReassignmentTarget()reassignmentTargetTerminalAssignment.StatusEnumgetStatus()The status of the reassignment.StringgetStoreId()The unique identifier of the store to which terminal is assigned.inthashCode()TerminalAssignmentmerchantId(String merchantId)The unique identifier of the merchant account to which terminal is assigned.TerminalAssignmentreassignmentTarget(TerminalReassignmentTarget reassignmentTarget)reassignmentTargetvoidsetCompanyId(String companyId)The unique identifier of the company account to which terminal is assigned.voidsetMerchantId(String merchantId)The unique identifier of the merchant account to which terminal is assigned.voidsetReassignmentTarget(TerminalReassignmentTarget reassignmentTarget)reassignmentTargetvoidsetStatus(TerminalAssignment.StatusEnum status)The status of the reassignment.voidsetStoreId(String storeId)The unique identifier of the store to which terminal is assigned.TerminalAssignmentstatus(TerminalAssignment.StatusEnum status)The status of the reassignment.TerminalAssignmentstoreId(String storeId)The unique identifier of the store to which terminal is assigned.StringtoJson()Convert an instance of TerminalAssignment to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_COMPANY_ID
public static final String JSON_PROPERTY_COMPANY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ID
public static final String JSON_PROPERTY_MERCHANT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASSIGNMENT_TARGET
public static final String JSON_PROPERTY_REASSIGNMENT_TARGET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE_ID
public static final String JSON_PROPERTY_STORE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
companyId
public TerminalAssignment companyId(String companyId)
The unique identifier of the company account to which terminal is assigned.- Parameters:
companyId-- Returns:
- the current
TerminalAssignmentinstance, allowing for method chaining
-
getCompanyId
public String getCompanyId()
The unique identifier of the company account to which terminal is assigned.- Returns:
- companyId
-
setCompanyId
public void setCompanyId(String companyId)
The unique identifier of the company account to which terminal is assigned.- Parameters:
companyId-
-
merchantId
public TerminalAssignment merchantId(String merchantId)
The unique identifier of the merchant account to which terminal is assigned.- Parameters:
merchantId-- Returns:
- the current
TerminalAssignmentinstance, allowing for method chaining
-
getMerchantId
public String getMerchantId()
The unique identifier of the merchant account to which terminal is assigned.- Returns:
- merchantId
-
setMerchantId
public void setMerchantId(String merchantId)
The unique identifier of the merchant account to which terminal is assigned.- Parameters:
merchantId-
-
reassignmentTarget
public TerminalAssignment reassignmentTarget(TerminalReassignmentTarget reassignmentTarget)
reassignmentTarget- Parameters:
reassignmentTarget-- Returns:
- the current
TerminalAssignmentinstance, allowing for method chaining
-
getReassignmentTarget
public TerminalReassignmentTarget getReassignmentTarget()
reassignmentTarget- Returns:
- reassignmentTarget
-
setReassignmentTarget
public void setReassignmentTarget(TerminalReassignmentTarget reassignmentTarget)
reassignmentTarget- Parameters:
reassignmentTarget-
-
status
public TerminalAssignment status(TerminalAssignment.StatusEnum status)
The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions.- Parameters:
status-- Returns:
- the current
TerminalAssignmentinstance, allowing for method chaining
-
getStatus
public TerminalAssignment.StatusEnum getStatus()
The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions.- Returns:
- status
-
setStatus
public void setStatus(TerminalAssignment.StatusEnum status)
The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions.- Parameters:
status-
-
storeId
public TerminalAssignment storeId(String storeId)
The unique identifier of the store to which terminal is assigned.- Parameters:
storeId-- Returns:
- the current
TerminalAssignmentinstance, allowing for method chaining
-
getStoreId
public String getStoreId()
The unique identifier of the store to which terminal is assigned.- Returns:
- storeId
-
setStoreId
public void setStoreId(String storeId)
The unique identifier of the store to which terminal is assigned.- Parameters:
storeId-
-
equals
public boolean equals(Object o)
Return true if this TerminalAssignment object is equal to o.
-
fromJson
public static TerminalAssignment fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TerminalAssignment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TerminalAssignment
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TerminalAssignment
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TerminalAssignment to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-