@@ -12,11 +12,15 @@ public final class Device extends AbstractModel {
1212 private final InetAddress ipAddress ;
1313 private final String userAgent ;
1414 private final String acceptLanguage ;
15+ private final Double sessionAge ;
16+ private final String sessionId ;
1517
1618 private Device (Device .Builder builder ) {
1719 ipAddress = builder .ipAddress ;
1820 userAgent = builder .userAgent ;
1921 acceptLanguage = builder .acceptLanguage ;
22+ sessionAge = builder .sessionAge ;
23+ sessionId = builder .sessionId ;
2024 }
2125
2226 /**
@@ -27,6 +31,8 @@ public static final class Builder {
2731 InetAddress ipAddress ;
2832 String userAgent ;
2933 String acceptLanguage ;
34+ Double sessionAge ;
35+ String sessionId ;
3036
3137 /**
3238 * The constructor for the {@code Device.Builder} class
@@ -62,6 +68,28 @@ public Device.Builder acceptLanguage(String acceptLanguage) {
6268 return this ;
6369 }
6470
71+ /**
72+ * @param sessionAge The number of seconds between the creation of the
73+ * user's session and the time of the transaction.
74+ * Note that session_age is not the duration of the
75+ * current visit, but the time since the start of the
76+ * first visit.
77+ * @return The builder object.
78+ */
79+ public Device .Builder sessionAge (Double sessionAge ) { this .sessionAge =
80+ sessionAge ; return this ; }
81+
82+ /**
83+ * @param sessionId A string up to 255 characters in length. This is
84+ * an ID which uniquely identifies a visitor's
85+ * session on the site.
86+ * @return The builder object.
87+ */
88+ public Device .Builder sessionId (String sessionId ) {
89+ this .sessionId = sessionId ;
90+ return this ;
91+ }
92+
6593 /**
6694 * @return An instance of {@code Device} created from the
6795 * fields set on this builder.
@@ -87,6 +115,22 @@ public String getAcceptLanguage() {
87115 return acceptLanguage ;
88116 }
89117
118+ /**
119+ * @return The session age.
120+ */
121+ @ JsonProperty ("session_age" )
122+ public Double getSessionAge () {
123+ return sessionAge ;
124+ }
125+
126+ /**
127+ * @return The session id.
128+ */
129+ @ JsonProperty ("session_id" )
130+ public String getSessionId () {
131+ return sessionId ;
132+ }
133+
90134 /**
91135 * @return The IP address used in the transaction.
92136 */
0 commit comments