Package com.blockchyp.client.dto
Class BrandingAsset
java.lang.Object
com.blockchyp.client.dto.BrandingAsset
- All Implemented Interfaces:
IAbstractAcknowledgement,ITimeoutRequest
Models the priority and display settings for terminal media.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDaysOfWeek(Weekday value) Adds a an array of days of the week during which a branding asset should be enabled.Gets the type of branding asset.Gets an array of days of the week during which a branding asset should be enabled.Gets the end date if this asset should be displayed based on a schedule.Gets the end date if this asset should be displayed based on a schedule.getError()Gets the error, if an error occurred.getId()Gets id used to track a branding asset.Gets the time and date this asset was last modified.Gets the media id associated with this branding asset, if any.Gets the merchant id associated with this branding asset.Gets a compact narrative string explaining the display period for a branding asset.Gets a compact narrative string explaining the effective date and time rules for a branding asset.getNotes()Gets a field for notes related to a branding asset.intGets the ordinal number marking the position of this asset within the branding stack.Gets the organization id associated with this branding asset.Gets the id owner of the tenant who owns the branding asset.Gets the name of the tenant or entity that owns the branding asset.Gets the type of user or tenant that owns this asset.Gets a recommended caption for displaying the owner.Gets the partner id associated with this branding asset.Gets the recommended image to be displayed when rendering a preview of this branding asset.Gets a narrative description of the transaction result.Gets the slide show associated with this branding asset, if any.Gets the start date if this asset should be displayed based on a schedule.Gets the start date if this asset should be displayed based on a schedule.Gets the terminal group id if this branding asset is specific to a terminal group.Gets the terminal id if this branding asset is specific to a single terminal.Gets the fully qualified URL of the thumbnail image for this branding asset.intGets the request timeout in seconds.Gets id of the user who created this branding asset, if applicable.Gets name of the user who created this branding asset, if applicable.booleanGets if true, the API credentials used to retrieve the branding asset record can be used to update it.booleanGets enables the asset for display.booleanisPadded()Gets applies standard margins to images displayed on terminals.booleanGets if true, the asset will be displayed in the merchant portal, but not on merchant terminal hardware.booleanGets whether or not the request succeeded.booleanisTest()Gets whether or not to route transaction to the test gateway.voidsetAssetType(String value) Sets the type of branding asset.voidsetDaysOfWeek(Collection<Weekday> value) Sets an array of days of the week during which a branding asset should be enabled.voidsetEditable(boolean value) Sets if true, the API credentials used to retrieve the branding asset record can be used to update it.voidsetEnabled(boolean value) Sets enables the asset for display.voidsetEndDate(String value) Sets the end date if this asset should be displayed based on a schedule.voidsetEndTime(String value) Sets the end date if this asset should be displayed based on a schedule.voidSets the error, if an error occurred.voidSets id used to track a branding asset.voidsetLastModified(String value) Sets the time and date this asset was last modified.voidsetMediaId(String value) Sets the media id associated with this branding asset, if any.voidsetMerchantId(String value) Sets the merchant id associated with this branding asset.voidsetNarrativeDisplayPeriod(String value) Sets a compact narrative string explaining the display period for a branding asset.voidsetNarrativeEffectiveDates(String value) Sets a compact narrative string explaining the effective date and time rules for a branding asset.voidSets a field for notes related to a branding asset.voidsetOrdinal(int value) Sets the ordinal number marking the position of this asset within the branding stack.voidsetOrganizationId(String value) Sets the organization id associated with this branding asset.voidsetOwnerId(String value) Sets the id owner of the tenant who owns the branding asset.voidsetOwnerName(String value) Sets the name of the tenant or entity that owns the branding asset.voidsetOwnerType(String value) Sets the type of user or tenant that owns this asset.voidsetOwnerTypeCaption(String value) Sets a recommended caption for displaying the owner.voidsetPadded(boolean value) Sets applies standard margins to images displayed on terminals.voidsetPartnerId(String value) Sets the partner id associated with this branding asset.voidsetPreview(boolean value) Sets if true, the asset will be displayed in the merchant portal, but not on merchant terminal hardware.voidsetPreviewImage(String value) Sets the recommended image to be displayed when rendering a preview of this branding asset.voidsetResponseDescription(String value) Sets a narrative description of the transaction result.voidsetSlideShowId(String value) Sets the slide show associated with this branding asset, if any.voidsetStartDate(String value) Sets the start date if this asset should be displayed based on a schedule.voidsetStartTime(String value) Sets the start date if this asset should be displayed based on a schedule.voidsetSuccess(boolean value) Sets whether or not the request succeeded.voidsetTerminalGroupId(String value) Sets the terminal group id if this branding asset is specific to a terminal group.voidsetTerminalId(String value) Sets the terminal id if this branding asset is specific to a single terminal.voidsetTest(boolean value) Sets whether or not to route transaction to the test gateway.voidsetThumbnail(String value) Sets the fully qualified URL of the thumbnail image for this branding asset.voidsetTimeout(int value) Sets the request timeout in seconds.voidSets id of the user who created this branding asset, if applicable.voidsetUserName(String value) Sets name of the user who created this branding asset, if applicable.
-
Constructor Details
-
BrandingAsset
public BrandingAsset()
-
-
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.
-
setSuccess
public void setSuccess(boolean value) Sets whether or not the request succeeded.- Parameters:
value- whether or not the request succeeded.
-
isSuccess
public boolean isSuccess()Gets whether or not the request succeeded.- Specified by:
isSuccessin interfaceIAbstractAcknowledgement- Returns:
- whether or not the request succeeded.
-
setError
Sets the error, if an error occurred.- Parameters:
value- the error, if an error occurred.
-
getError
Gets the error, if an error occurred.- Specified by:
getErrorin interfaceIAbstractAcknowledgement- Returns:
- the error, if an error occurred.
-
setResponseDescription
Sets a narrative description of the transaction result.- Parameters:
value- a narrative description of the transaction result.
-
getResponseDescription
Gets a narrative description of the transaction result.- Specified by:
getResponseDescriptionin interfaceIAbstractAcknowledgement- Returns:
- a narrative description of the transaction result.
-
setId
Sets id used to track a branding asset.- Parameters:
value- id used to track a branding asset.
-
getId
Gets id used to track a branding asset.- Returns:
- id used to track a branding asset.
-
setOwnerId
Sets the id owner of the tenant who owns the branding asset.- Parameters:
value- the id owner of the tenant who owns the branding asset.
-
getOwnerId
Gets the id owner of the tenant who owns the branding asset.- Returns:
- the id owner of the tenant who owns the branding asset.
-
setTerminalId
Sets the terminal id if this branding asset is specific to a single terminal.- Parameters:
value- the terminal id if this branding asset is specific to a single terminal.
-
getTerminalId
Gets the terminal id if this branding asset is specific to a single terminal.- Returns:
- the terminal id if this branding asset is specific to a single terminal.
-
setTerminalGroupId
Sets the terminal group id if this branding asset is specific to a terminal group.- Parameters:
value- the terminal group id if this branding asset is specific to a terminal group.
-
getTerminalGroupId
Gets the terminal group id if this branding asset is specific to a terminal group.- Returns:
- the terminal group id if this branding asset is specific to a terminal group.
-
setMerchantId
Sets the merchant id associated with this branding asset.- Parameters:
value- the merchant id associated with this branding asset.
-
getMerchantId
Gets the merchant id associated with this branding asset.- Returns:
- the merchant id associated with this branding asset.
-
setOrganizationId
Sets the organization id associated with this branding asset.- Parameters:
value- the organization id associated with this branding asset.
-
getOrganizationId
Gets the organization id associated with this branding asset.- Returns:
- the organization id associated with this branding asset.
-
setPartnerId
Sets the partner id associated with this branding asset.- Parameters:
value- the partner id associated with this branding asset.
-
getPartnerId
Gets the partner id associated with this branding asset.- Returns:
- the partner id associated with this branding asset.
-
setSlideShowId
Sets the slide show associated with this branding asset, if any.- Parameters:
value- the slide show associated with this branding asset, if any. A branding asset can reference a slide show or media asset, but not both.
-
getSlideShowId
Gets the slide show associated with this branding asset, if any.- Returns:
- the slide show associated with this branding asset, if any. A branding asset can reference a slide show or media asset, but not both.
-
setMediaId
Sets the media id associated with this branding asset, if any.- Parameters:
value- the media id associated with this branding asset, if any. A branding asset can reference a slide show or media asset, but not both.
-
getMediaId
Gets the media id associated with this branding asset, if any.- Returns:
- the media id associated with this branding asset, if any. A branding asset can reference a slide show or media asset, but not both.
-
setPadded
public void setPadded(boolean value) Sets applies standard margins to images displayed on terminals.- Parameters:
value- applies standard margins to images displayed on terminals. Usually the best option for logos.
-
isPadded
public boolean isPadded()Gets applies standard margins to images displayed on terminals.- Returns:
- applies standard margins to images displayed on terminals. Usually the best option for logos.
-
setStartDate
Sets the start date if this asset should be displayed based on a schedule.- Parameters:
value- the start date if this asset should be displayed based on a schedule. Format: MM/DD/YYYY.
-
getStartDate
Gets the start date if this asset should be displayed based on a schedule.- Returns:
- the start date if this asset should be displayed based on a schedule. Format: MM/DD/YYYY.
-
setEndDate
Sets the end date if this asset should be displayed based on a schedule.- Parameters:
value- the end date if this asset should be displayed based on a schedule. Format: MM/DD/YYYY.
-
getEndDate
Gets the end date if this asset should be displayed based on a schedule.- Returns:
- the end date if this asset should be displayed based on a schedule. Format: MM/DD/YYYY.
-
setDaysOfWeek
Sets an array of days of the week during which a branding asset should be enabled.- Parameters:
value- an array of days of the week during which a branding asset should be enabled. Days of the week are coded as integers starting with Sunday (0) and ending with Saturday (6).
-
getDaysOfWeek
Gets an array of days of the week during which a branding asset should be enabled.- Returns:
- an array of days of the week during which a branding asset should be enabled. Days of the week are coded as integers starting with Sunday (0) and ending with Saturday (6).
-
setStartTime
Sets the start date if this asset should be displayed based on a schedule.- Parameters:
value- the start date if this asset should be displayed based on a schedule. Format: MM/DD/YYYY.
-
getStartTime
Gets the start date if this asset should be displayed based on a schedule.- Returns:
- the start date if this asset should be displayed based on a schedule. Format: MM/DD/YYYY.
-
setEndTime
Sets the end date if this asset should be displayed based on a schedule.- Parameters:
value- the end date if this asset should be displayed based on a schedule. Format: MM/DD/YYYY.
-
getEndTime
Gets the end date if this asset should be displayed based on a schedule.- Returns:
- the end date if this asset should be displayed based on a schedule. Format: MM/DD/YYYY.
-
setOrdinal
public void setOrdinal(int value) Sets the ordinal number marking the position of this asset within the branding stack.- Parameters:
value- the ordinal number marking the position of this asset within the branding stack.
-
getOrdinal
public int getOrdinal()Gets the ordinal number marking the position of this asset within the branding stack.- Returns:
- the ordinal number marking the position of this asset within the branding stack.
-
setEnabled
public void setEnabled(boolean value) Sets enables the asset for display.- Parameters:
value- enables the asset for display.
-
isEnabled
public boolean isEnabled()Gets enables the asset for display.- Returns:
- enables the asset for display.
-
setPreview
public void setPreview(boolean value) Sets if true, the asset will be displayed in the merchant portal, but not on merchant terminal hardware.- Parameters:
value- if true, the asset will be displayed in the merchant portal, but not on merchant terminal hardware. Developers will usually want this to always be false.
-
isPreview
public boolean isPreview()Gets if true, the asset will be displayed in the merchant portal, but not on merchant terminal hardware.- Returns:
- if true, the asset will be displayed in the merchant portal, but not on merchant terminal hardware. Developers will usually want this to always be false.
-
setUserId
Sets id of the user who created this branding asset, if applicable.- Parameters:
value- id of the user who created this branding asset, if applicable.
-
getUserId
Gets id of the user who created this branding asset, if applicable.- Returns:
- id of the user who created this branding asset, if applicable.
-
setUserName
Sets name of the user who created this branding asset, if applicable.- Parameters:
value- name of the user who created this branding asset, if applicable.
-
getUserName
Gets name of the user who created this branding asset, if applicable.- Returns:
- name of the user who created this branding asset, if applicable.
-
setThumbnail
Sets the fully qualified URL of the thumbnail image for this branding asset.- Parameters:
value- the fully qualified URL of the thumbnail image for this branding asset.
-
getThumbnail
Gets the fully qualified URL of the thumbnail image for this branding asset.- Returns:
- the fully qualified URL of the thumbnail image for this branding asset.
-
setLastModified
Sets the time and date this asset was last modified.- Parameters:
value- the time and date this asset was last modified.
-
getLastModified
Gets the time and date this asset was last modified.- Returns:
- the time and date this asset was last modified.
-
setNotes
Sets a field for notes related to a branding asset.- Parameters:
value- a field for notes related to a branding asset.
-
getNotes
Gets a field for notes related to a branding asset.- Returns:
- a field for notes related to a branding asset.
-
setEditable
public void setEditable(boolean value) Sets if true, the API credentials used to retrieve the branding asset record can be used to update it.- Parameters:
value- if true, the API credentials used to retrieve the branding asset record can be used to update it.
-
isEditable
public boolean isEditable()Gets if true, the API credentials used to retrieve the branding asset record can be used to update it.- Returns:
- if true, the API credentials used to retrieve the branding asset record can be used to update it.
-
setAssetType
Sets the type of branding asset.- Parameters:
value- the type of branding asset.
-
getAssetType
Gets the type of branding asset.- Returns:
- the type of branding asset.
-
setOwnerType
Sets the type of user or tenant that owns this asset.- Parameters:
value- the type of user or tenant that owns this asset.
-
getOwnerType
Gets the type of user or tenant that owns this asset.- Returns:
- the type of user or tenant that owns this asset.
-
setOwnerTypeCaption
Sets a recommended caption for displaying the owner.- Parameters:
value- a recommended caption for displaying the owner. Takes into account multiple organization types.
-
getOwnerTypeCaption
Gets a recommended caption for displaying the owner.- Returns:
- a recommended caption for displaying the owner. Takes into account multiple organization types.
-
setOwnerName
Sets the name of the tenant or entity that owns the branding asset.- Parameters:
value- the name of the tenant or entity that owns the branding asset.
-
getOwnerName
Gets the name of the tenant or entity that owns the branding asset.- Returns:
- the name of the tenant or entity that owns the branding asset.
-
setPreviewImage
Sets the recommended image to be displayed when rendering a preview of this branding asset.- Parameters:
value- the recommended image to be displayed when rendering a preview of this branding asset.
-
getPreviewImage
Gets the recommended image to be displayed when rendering a preview of this branding asset.- Returns:
- the recommended image to be displayed when rendering a preview of this branding asset.
-
setNarrativeEffectiveDates
Sets a compact narrative string explaining the effective date and time rules for a branding asset.- Parameters:
value- a compact narrative string explaining the effective date and time rules for a branding asset.
-
getNarrativeEffectiveDates
Gets a compact narrative string explaining the effective date and time rules for a branding asset.- Returns:
- a compact narrative string explaining the effective date and time rules for a branding asset.
-
setNarrativeDisplayPeriod
Sets a compact narrative string explaining the display period for a branding asset.- Parameters:
value- a compact narrative string explaining the display period for a branding asset.
-
getNarrativeDisplayPeriod
Gets a compact narrative string explaining the display period for a branding asset.- Returns:
- a compact narrative string explaining the display period for a branding asset.
-
addDaysOfWeek
Adds a an array of days of the week during which a branding asset should be enabled.- Parameters:
value- an array of days of the week during which a branding asset should be enabled. Days of the week are coded as integers starting with Sunday (0) and ending with Saturday (6).
-