Package com.adyen.model.management
Class TerminalReassignmentTarget
- java.lang.Object
-
- com.adyen.model.management.TerminalReassignmentTarget
-
public class TerminalReassignmentTarget extends Object
TerminalReassignmentTarget
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_COMPANY_IDstatic StringJSON_PROPERTY_INVENTORYstatic StringJSON_PROPERTY_MERCHANT_IDstatic StringJSON_PROPERTY_STORE_ID
-
Constructor Summary
Constructors Constructor Description TerminalReassignmentTarget()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalReassignmentTargetcompanyId(String companyId)booleanequals(Object o)Return true if this TerminalReassignmentTarget object is equal to o.static TerminalReassignmentTargetfromJson(String jsonString)Create an instance of TerminalReassignmentTarget given an JSON stringStringgetCompanyId()The unique identifier of the company account to which the terminal is reassigned.BooleangetInventory()Indicates if the terminal is reassigned to the inventory of the merchant account.StringgetMerchantId()The unique identifier of the merchant account to which the terminal is reassigned.StringgetStoreId()The unique identifier of the store to which the terminal is reassigned.inthashCode()TerminalReassignmentTargetinventory(Boolean inventory)TerminalReassignmentTargetmerchantId(String merchantId)voidsetCompanyId(String companyId)The unique identifier of the company account to which the terminal is reassigned.voidsetInventory(Boolean inventory)Indicates if the terminal is reassigned to the inventory of the merchant account.voidsetMerchantId(String merchantId)The unique identifier of the merchant account to which the terminal is reassigned.voidsetStoreId(String storeId)The unique identifier of the store to which the terminal is reassigned.TerminalReassignmentTargetstoreId(String storeId)StringtoJson()Convert an instance of TerminalReassignmentTarget 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_INVENTORY
public static final String JSON_PROPERTY_INVENTORY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ID
public static final String JSON_PROPERTY_MERCHANT_ID
- 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 TerminalReassignmentTarget companyId(String companyId)
-
getCompanyId
public String getCompanyId()
The unique identifier of the company account to which the terminal is reassigned.- Returns:
- companyId
-
setCompanyId
public void setCompanyId(String companyId)
The unique identifier of the company account to which the terminal is reassigned.- Parameters:
companyId-
-
inventory
public TerminalReassignmentTarget inventory(Boolean inventory)
-
getInventory
public Boolean getInventory()
Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions.- Returns:
- inventory
-
setInventory
public void setInventory(Boolean inventory)
Indicates if the terminal is reassigned to the inventory of the merchant account. - If **true**, the terminal is in the inventory of the merchant account and cannot process transactions. - If **false**, the terminal is reassigned directly to the merchant account and can process transactions.- Parameters:
inventory-
-
merchantId
public TerminalReassignmentTarget merchantId(String merchantId)
-
getMerchantId
public String getMerchantId()
The unique identifier of the merchant account to which the terminal is reassigned.- Returns:
- merchantId
-
setMerchantId
public void setMerchantId(String merchantId)
The unique identifier of the merchant account to which the terminal is reassigned.- Parameters:
merchantId-
-
storeId
public TerminalReassignmentTarget storeId(String storeId)
-
getStoreId
public String getStoreId()
The unique identifier of the store to which the terminal is reassigned.- Returns:
- storeId
-
setStoreId
public void setStoreId(String storeId)
The unique identifier of the store to which the terminal is reassigned.- Parameters:
storeId-
-
equals
public boolean equals(Object o)
Return true if this TerminalReassignmentTarget object is equal to o.
-
fromJson
public static TerminalReassignmentTarget fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TerminalReassignmentTarget given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TerminalReassignmentTarget
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TerminalReassignmentTarget
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TerminalReassignmentTarget to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-