Package com.checkout.payments.request
Class Device.DeviceBuilder
- java.lang.Object
-
- com.checkout.payments.request.Device.DeviceBuilder
-
- Enclosing class:
- Device
public static class Device.DeviceBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Device.DeviceBuilderacceptHeader(java.lang.String acceptHeader)The exact content of the HTTP Accept headers as sent to the 3DS Requestor from the cardholder’s browser.Devicebuild()Device.DeviceBuildercolorDepth(java.lang.String colorDepth)The bit depth of the color palette for displaying images in bits per pixel, as reported by the browser's screen.colorDepth property.Device.DeviceBuilderiframePaymentAllowed(java.lang.Boolean iframePaymentAllowed)Indicates whether the Payments API is enabled for all parent frames.Device.DeviceBuilderincognito(java.lang.Boolean incognito)Specifies if the browser is in incognito mode.Device.DeviceBuilderjailbroken(java.lang.Boolean jailbroken)Specifies if the device is jailbroken.Device.DeviceBuilderjavaEnabled(java.lang.Boolean javaEnabled)Specifies if the browser has the ability to execute Java, as reported by the browser's navigator.javaEnabled property.Device.DeviceBuilderjavascriptEnabled(java.lang.Boolean javascriptEnabled)Specifies if the browser has the ability to execute Javascript, as reported by the browser's navigator.javascriptEnabled property.Device.DeviceBuilderlanguage(java.lang.String language)The browser language, as reported by the browser's navigator.language property.Device.DeviceBuildernetwork(Network network)Details of the device network.Device.DeviceBuilderprovider(Provider provider)Details of the device ID provider.Device.DeviceBuilderrooted(java.lang.Boolean rooted)Specifies if the device is rooted.Device.DeviceBuilderscreenHeight(java.lang.String screenHeight)The total height of the device screen in pixels, as reported by the browser's screen.height property.Device.DeviceBuilderscreenWidth(java.lang.String screenWidth)The total width of the device screen in pixels, as reported by the browser's screen.width property.Device.DeviceBuildertimestamp(java.lang.String timestamp)The UTC date and time the payment was performed as reported by the device.Device.DeviceBuildertimezone(java.lang.String timezone)The time difference between UTC time and the local time reported by the browser, in minutes.java.lang.StringtoString()Device.DeviceBuilderuserAgent(java.lang.String userAgent)The contents of the HTTP User-Agent request header.Device.DeviceBuilderuserAgentClientHint(java.lang.String userAgentClientHint)The raw Sec-CH-UA header value.Device.DeviceBuildervirtualMachine(java.lang.Boolean virtualMachine)Specifies if the device is running in a virtual machine.
-
-
-
Method Detail
-
userAgent
public Device.DeviceBuilder userAgent(java.lang.String userAgent)
The contents of the HTTP User-Agent request header. This field is required to process the device with the risk engine. [Optional] <= 2048- Returns:
this.
-
network
public Device.DeviceBuilder network(Network network)
Details of the device network. Either ipv4 or ipv6 is required field. [Optional]- Returns:
this.
-
provider
public Device.DeviceBuilder provider(Provider provider)
Details of the device ID provider. [Optional]- Returns:
this.
-
timestamp
public Device.DeviceBuilder timestamp(java.lang.String timestamp)
The UTC date and time the payment was performed as reported by the device. Format – ISO 8601 code This field is required to process the device with the risk engine. [Optional]- Returns:
this.
-
timezone
public Device.DeviceBuilder timezone(java.lang.String timezone)
The time difference between UTC time and the local time reported by the browser, in minutes. This field is required to process the device with the risk engine. [Optional] [ 1 .. 5 ] characters- Returns:
this.
-
virtualMachine
public Device.DeviceBuilder virtualMachine(java.lang.Boolean virtualMachine)
Specifies if the device is running in a virtual machine. [Optional]- Returns:
this.
-
incognito
public Device.DeviceBuilder incognito(java.lang.Boolean incognito)
Specifies if the browser is in incognito mode. [Optional]- Returns:
this.
-
jailbroken
public Device.DeviceBuilder jailbroken(java.lang.Boolean jailbroken)
Specifies if the device is jailbroken. [Optional]- Returns:
this.
-
rooted
public Device.DeviceBuilder rooted(java.lang.Boolean rooted)
Specifies if the device is rooted. [Optional]- Returns:
this.
-
javaEnabled
public Device.DeviceBuilder javaEnabled(java.lang.Boolean javaEnabled)
Specifies if the browser has the ability to execute Java, as reported by the browser's navigator.javaEnabled property. [Optional]- Returns:
this.
-
javascriptEnabled
public Device.DeviceBuilder javascriptEnabled(java.lang.Boolean javascriptEnabled)
Specifies if the browser has the ability to execute Javascript, as reported by the browser's navigator.javascriptEnabled property. Only required for 3D Secure authentications processed with 3DS 2.2. If the payment is processed with an older 3DS version, this field is ignored. [Optional]- Returns:
this.
-
language
public Device.DeviceBuilder language(java.lang.String language)
The browser language, as reported by the browser's navigator.language property. Format – IETF BCP47 language tag [Optional] [ 1 .. 12 ] characters- Returns:
this.
-
colorDepth
public Device.DeviceBuilder colorDepth(java.lang.String colorDepth)
The bit depth of the color palette for displaying images in bits per pixel, as reported by the browser's screen.colorDepth property. [Optional] [ 1 .. 2 ] characters- Returns:
this.
-
screenHeight
public Device.DeviceBuilder screenHeight(java.lang.String screenHeight)
The total height of the device screen in pixels, as reported by the browser's screen.height property. [Optional] [ 1 .. 6 ] characters- Returns:
this.
-
screenWidth
public Device.DeviceBuilder screenWidth(java.lang.String screenWidth)
The total width of the device screen in pixels, as reported by the browser's screen.width property. [Optional] [ 1 .. 6 ] characters- Returns:
this.
-
userAgentClientHint
public Device.DeviceBuilder userAgentClientHint(java.lang.String userAgentClientHint)
The raw Sec-CH-UA header value. This field improves Google Single-Page Application (SPA) support, as it provides more accurate information about the customer's browser. [Optional]- Returns:
this.
-
iframePaymentAllowed
public Device.DeviceBuilder iframePaymentAllowed(java.lang.Boolean iframePaymentAllowed)
Indicates whether the Payments API is enabled for all parent frames. [Optional]- Returns:
this.
-
acceptHeader
public Device.DeviceBuilder acceptHeader(java.lang.String acceptHeader)
The exact content of the HTTP Accept headers as sent to the 3DS Requestor from the cardholder’s browser. [Optional] <= 2048- Returns:
this.
-
build
public Device build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-