Package com.blockchyp.client.dto
Class InviteMerchantUserRequest
java.lang.Object
com.blockchyp.client.dto.InviteMerchantUserRequest
- All Implemented Interfaces:
ICoreRequest,ITimeoutRequest
Models a request for adding a new user to a merchant account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a an optional array of role codes that will be assigned to the user.Gets the settlement account for merchants with split settlements.getEmail()Gets the email address of the user.Gets the first name of the new user.Gets the last name of the new user.Gets the merchant id.Gets an identifier from an external point of sale system.getRoles()Gets an optional array of role codes that will be assigned to the user.intGets the request timeout in seconds.Gets a user-assigned reference that can be used to recall or reverse transactions.booleanisAsync()Gets defers the response to the transaction and returns immediately.booleanGets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.booleanisForce()Gets override any in-progress transactions.booleanisQueue()Gets adds the transaction to the queue and returns immediately.booleanisTest()Gets whether or not to route transaction to the test gateway.booleanGets whether or not the request should block until all cards have been removed from the card reader.voidsetAsync(boolean value) Sets defers the response to the transaction and returns immediately.voidsetAutogeneratedRef(boolean value) Sets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.voidsetDestinationAccount(String value) Sets the settlement account for merchants with split settlements.voidSets the email address of the user.voidsetFirstName(String value) Sets the first name of the new user.voidsetForce(boolean value) Sets override any in-progress transactions.voidsetLastName(String value) Sets the last name of the new user.voidsetMerchantId(String value) Sets the merchant id.voidsetOrderRef(String value) Sets an identifier from an external point of sale system.voidsetQueue(boolean value) Sets adds the transaction to the queue and returns immediately.voidsetRoles(Collection<String> value) Sets an optional array of role codes that will be assigned to the user.voidsetTest(boolean value) Sets whether or not to route transaction to the test gateway.voidsetTimeout(int value) Sets the request timeout in seconds.voidsetTransactionRef(String value) Sets a user-assigned reference that can be used to recall or reverse transactions.voidsetWaitForRemovedCard(boolean value) Sets whether or not the request should block until all cards have been removed from the card reader.
-
Constructor Details
-
InviteMerchantUserRequest
public InviteMerchantUserRequest()
-
-
Method Details
-
setTimeout
public void setTimeout(int value) Sets the request timeout in seconds.- Parameters:
value- the request timeout in seconds.
-
getTimeout
public int getTimeout()Gets the request timeout in seconds.- Specified by:
getTimeoutin interfaceITimeoutRequest- Returns:
- the request timeout in seconds.
-
setTest
public void setTest(boolean value) Sets whether or not to route transaction to the test gateway.- Parameters:
value- whether or not to route transaction to the test gateway.
-
isTest
public boolean isTest()Gets whether or not to route transaction to the test gateway.- Specified by:
isTestin interfaceITimeoutRequest- Returns:
- whether or not to route transaction to the test gateway.
-
setTransactionRef
Sets a user-assigned reference that can be used to recall or reverse transactions.- Parameters:
value- a user-assigned reference that can be used to recall or reverse transactions.
-
getTransactionRef
Gets a user-assigned reference that can be used to recall or reverse transactions.- Specified by:
getTransactionRefin interfaceICoreRequest- Returns:
- a user-assigned reference that can be used to recall or reverse transactions.
-
setAutogeneratedRef
public void setAutogeneratedRef(boolean value) Sets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.- Parameters:
value- that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.
-
isAutogeneratedRef
public boolean isAutogeneratedRef()Gets that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.- Specified by:
isAutogeneratedRefin interfaceICoreRequest- Returns:
- that the transaction reference was autogenerated and should be ignored for the purposes of duplicate detection.
-
setAsync
public void setAsync(boolean value) Sets defers the response to the transaction and returns immediately.- Parameters:
value- defers the response to the transaction and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
isAsync
public boolean isAsync()Gets defers the response to the transaction and returns immediately.- Specified by:
isAsyncin interfaceICoreRequest- Returns:
- defers the response to the transaction and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
setQueue
public void setQueue(boolean value) Sets adds the transaction to the queue and returns immediately.- Parameters:
value- adds the transaction to the queue and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
isQueue
public boolean isQueue()Gets adds the transaction to the queue and returns immediately.- Specified by:
isQueuein interfaceICoreRequest- Returns:
- adds the transaction to the queue and returns immediately. Callers should retrive the transaction result using the Transaction Status API.
-
setWaitForRemovedCard
public void setWaitForRemovedCard(boolean value) Sets whether or not the request should block until all cards have been removed from the card reader.- Parameters:
value- whether or not the request should block until all cards have been removed from the card reader.
-
isWaitForRemovedCard
public boolean isWaitForRemovedCard()Gets whether or not the request should block until all cards have been removed from the card reader.- Specified by:
isWaitForRemovedCardin interfaceICoreRequest- Returns:
- whether or not the request should block until all cards have been removed from the card reader.
-
setForce
public void setForce(boolean value) Sets override any in-progress transactions.- Parameters:
value- override any in-progress transactions.
-
isForce
public boolean isForce()Gets override any in-progress transactions.- Specified by:
isForcein interfaceICoreRequest- Returns:
- override any in-progress transactions.
-
setOrderRef
Sets an identifier from an external point of sale system.- Parameters:
value- an identifier from an external point of sale system.
-
getOrderRef
Gets an identifier from an external point of sale system.- Specified by:
getOrderRefin interfaceICoreRequest- Returns:
- an identifier from an external point of sale system.
-
setDestinationAccount
Sets the settlement account for merchants with split settlements.- Parameters:
value- the settlement account for merchants with split settlements.
-
getDestinationAccount
Gets the settlement account for merchants with split settlements.- Specified by:
getDestinationAccountin interfaceICoreRequest- Returns:
- the settlement account for merchants with split settlements.
-
setMerchantId
Sets the merchant id.- Parameters:
value- the merchant id. Optional for merchant scoped requests.
-
getMerchantId
Gets the merchant id.- Returns:
- the merchant id. Optional for merchant scoped requests.
-
setEmail
Sets the email address of the user.- Parameters:
value- the email address of the user.
-
getEmail
Gets the email address of the user.- Returns:
- the email address of the user.
-
setFirstName
Sets the first name of the new user.- Parameters:
value- the first name of the new user.
-
getFirstName
Gets the first name of the new user.- Returns:
- the first name of the new user.
-
setLastName
Sets the last name of the new user.- Parameters:
value- the last name of the new user.
-
getLastName
Gets the last name of the new user.- Returns:
- the last name of the new user.
-
setRoles
Sets an optional array of role codes that will be assigned to the user.- Parameters:
value- an optional array of role codes that will be assigned to the user. If omitted defaults to the default merchant role.
-
getRoles
Gets an optional array of role codes that will be assigned to the user.- Returns:
- an optional array of role codes that will be assigned to the user. If omitted defaults to the default merchant role.
-
addRole
Adds a an optional array of role codes that will be assigned to the user.- Parameters:
value- an optional array of role codes that will be assigned to the user. If omitted defaults to the default merchant role.
-