Class CardGetEmbedHtmlParams.CardGetEmbedHtmlBody.Builder
-
- All Implemented Interfaces:
public final class CardGetEmbedHtmlParams.CardGetEmbedHtmlBody.Builder
-
-
Constructor Summary
Constructors Constructor Description CardGetEmbedHtmlParams.CardGetEmbedHtmlBody.Builder()
-
Method Summary
-
-
Method Detail
-
token
final CardGetEmbedHtmlParams.CardGetEmbedHtmlBody.Builder token(String token)
Globally unique identifier for the card to be displayed.
-
css
final CardGetEmbedHtmlParams.CardGetEmbedHtmlBody.Builder css(String css)
A publicly available URI, so the white-labeled card element can be styled with the client's branding.
-
expiration
final CardGetEmbedHtmlParams.CardGetEmbedHtmlBody.Builder expiration(OffsetDateTime expiration)
An RFC 3339 timestamp for when the request should expire. UTC time zone.
If no timezone is specified, UTC will be used. If payload does not contain an expiration, the request will never expire.
Using an
expirationreduces the risk of a replay attack. Without supplying theexpiration, in the event that a malicious user gets a copy of your request in transit, they will be able to obtain the response data indefinitely.
-
targetOrigin
final CardGetEmbedHtmlParams.CardGetEmbedHtmlBody.Builder targetOrigin(String targetOrigin)
Required if you want to post the element clicked to the parent iframe.
If you supply this param, you can also capture click events in the parent iframe by adding an event listener.
-
additionalProperties
final CardGetEmbedHtmlParams.CardGetEmbedHtmlBody.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CardGetEmbedHtmlParams.CardGetEmbedHtmlBody.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CardGetEmbedHtmlParams.CardGetEmbedHtmlBody.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
build
final CardGetEmbedHtmlParams.CardGetEmbedHtmlBody build()
-
-
-
-