Package com.checkout.payments.request
Class Network
- java.lang.Object
-
- com.checkout.payments.request.Network
-
public final class Network extends java.lang.Objectnetwork Details of the device network. Either ipv4 or ipv6 is required field.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetwork.NetworkBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Network.NetworkBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetIpv4()The device's IPV4 address.java.lang.StringgetIpv6()The device's IPV6 address.java.lang.BooleangetProxy()Specifies if a proxy was used in the browser session.java.lang.BooleangetTor()Specifies if the Tor network was used in the browser session.java.lang.BooleangetVpn()Specifies if a virtual private network (VPN) was used in the browser session.inthashCode()voidsetIpv4(java.lang.String ipv4)The device's IPV4 address.voidsetIpv6(java.lang.String ipv6)The device's IPV6 address.voidsetProxy(java.lang.Boolean proxy)Specifies if a proxy was used in the browser session.voidsetTor(java.lang.Boolean tor)Specifies if the Tor network was used in the browser session.voidsetVpn(java.lang.Boolean vpn)Specifies if a virtual private network (VPN) was used in the browser session.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Network
public Network()
-
Network
public Network(java.lang.String ipv4, java.lang.String ipv6, java.lang.Boolean tor, java.lang.Boolean vpn, java.lang.Boolean proxy)Creates a newNetworkinstance.- Parameters:
ipv4- The device's IPV4 address. Not required if you provide the ipv6 field. [Optional]ipv6- The device's IPV6 address. Not required if you provide the ipv4 field. [Optional]tor- Specifies if the Tor network was used in the browser session. [Optional]vpn- Specifies if a virtual private network (VPN) was used in the browser session. [Optional]proxy- Specifies if a proxy was used in the browser session. [Optional]
-
-
Method Detail
-
builder
public static Network.NetworkBuilder builder()
-
getIpv4
public java.lang.String getIpv4()
The device's IPV4 address. Not required if you provide the ipv6 field. [Optional]
-
getIpv6
public java.lang.String getIpv6()
The device's IPV6 address. Not required if you provide the ipv4 field. [Optional]
-
getTor
public java.lang.Boolean getTor()
Specifies if the Tor network was used in the browser session. [Optional]
-
getVpn
public java.lang.Boolean getVpn()
Specifies if a virtual private network (VPN) was used in the browser session. [Optional]
-
getProxy
public java.lang.Boolean getProxy()
Specifies if a proxy was used in the browser session. [Optional]
-
setIpv4
public void setIpv4(java.lang.String ipv4)
The device's IPV4 address. Not required if you provide the ipv6 field. [Optional]
-
setIpv6
public void setIpv6(java.lang.String ipv6)
The device's IPV6 address. Not required if you provide the ipv4 field. [Optional]
-
setTor
public void setTor(java.lang.Boolean tor)
Specifies if the Tor network was used in the browser session. [Optional]
-
setVpn
public void setVpn(java.lang.Boolean vpn)
Specifies if a virtual private network (VPN) was used in the browser session. [Optional]
-
setProxy
public void setProxy(java.lang.Boolean proxy)
Specifies if a proxy was used in the browser session. [Optional]
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-