Package com.adyen.model.management
Class TerminalReassignmentRequest
- java.lang.Object
-
- com.adyen.model.management.TerminalReassignmentRequest
-
public class TerminalReassignmentRequest extends Object
TerminalReassignmentRequest
-
-
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 TerminalReassignmentRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalReassignmentRequestcompanyId(String companyId)booleanequals(Object o)Return true if this TerminalReassignmentRequest object is equal to o.static TerminalReassignmentRequestfromJson(String jsonString)Create an instance of TerminalReassignmentRequest given an JSON stringStringgetCompanyId()The unique identifier of the company account to which the terminal is reassigned.BooleangetInventory()Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions.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()TerminalReassignmentRequestinventory(Boolean inventory)TerminalReassignmentRequestmerchantId(String merchantId)voidsetCompanyId(String companyId)The unique identifier of the company account to which the terminal is reassigned.voidsetInventory(Boolean inventory)Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions.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.TerminalReassignmentRequeststoreId(String storeId)StringtoJson()Convert an instance of TerminalReassignmentRequest 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 TerminalReassignmentRequest 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 TerminalReassignmentRequest inventory(Boolean inventory)
-
getInventory
public Boolean getInventory()
Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions.- Returns:
- inventory
-
setInventory
public void setInventory(Boolean inventory)
Must be specified when reassigning terminals to a merchant account: - If set to **true**, reassigns terminals to the inventory of the merchant account and the terminals cannot process transactions. - If set to **false**, reassigns terminals directly to the merchant account and the terminals can process transactions.- Parameters:
inventory-
-
merchantId
public TerminalReassignmentRequest merchantId(String merchantId)
-
getMerchantId
public String getMerchantId()
The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field.- Returns:
- merchantId
-
setMerchantId
public void setMerchantId(String merchantId)
The unique identifier of the merchant account to which the terminal is reassigned. When reassigning terminals to a merchant account, you must specify the `inventory` field.- Parameters:
merchantId-
-
storeId
public TerminalReassignmentRequest 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 TerminalReassignmentRequest object is equal to o.
-
fromJson
public static TerminalReassignmentRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TerminalReassignmentRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TerminalReassignmentRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TerminalReassignmentRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TerminalReassignmentRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-