Class CardGetEmbedUrlParams.CardGetEmbedUrlBody.Builder
-
- All Implemented Interfaces:
public final class CardGetEmbedUrlParams.CardGetEmbedUrlBody.Builder
-
-
Constructor Summary
Constructors Constructor Description CardGetEmbedUrlParams.CardGetEmbedUrlBody.Builder()
-
Method Summary
-
-
Method Detail
-
token
final CardGetEmbedUrlParams.CardGetEmbedUrlBody.Builder token(String token)
Globally unique identifier for the card to be displayed.
-
css
final CardGetEmbedUrlParams.CardGetEmbedUrlBody.Builder css(String css)
A publicly available URI, so the white-labeled card element can be styled with the client's branding.
-
expiration
final CardGetEmbedUrlParams.CardGetEmbedUrlBody.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 CardGetEmbedUrlParams.CardGetEmbedUrlBody.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 CardGetEmbedUrlParams.CardGetEmbedUrlBody.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CardGetEmbedUrlParams.CardGetEmbedUrlBody.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CardGetEmbedUrlParams.CardGetEmbedUrlBody.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
build
final CardGetEmbedUrlParams.CardGetEmbedUrlBody build()
-
-
-
-