@@ -15,13 +15,16 @@ public final class Subscores {
1515 private final Double country ;
1616 private final Double countryMismatch ;
1717 private final Double cvvResult ;
18+ private final Double device ;
1819 private final Double emailAddress ;
1920 private final Double emailDomain ;
21+ private final Double emailLocalPart ;
2022 private final Double emailTenure ;
2123 private final Double ipTenure ;
2224 private final Double issuerIdNumber ;
2325 private final Double orderAmount ;
2426 private final Double phoneNumber ;
27+ private final Double shippingAddress ;
2528 private final Double shippingAddressDistanceToIpLocation ;
2629 private final Double timeOfDay ;
2730
@@ -34,13 +37,16 @@ public Subscores(
3437 @ JsonProperty ("country" ) Double country ,
3538 @ JsonProperty ("country_mismatch" ) Double countryMismatch ,
3639 @ JsonProperty ("cvv_result" ) Double cvvResult ,
40+ @ JsonProperty ("device" ) Double device ,
3741 @ JsonProperty ("email_address" ) Double emailAddress ,
3842 @ JsonProperty ("email_domain" ) Double emailDomain ,
43+ @ JsonProperty ("email_local_part" ) Double emailLocalPart ,
3944 @ JsonProperty ("email_tenure" ) Double emailTenure ,
4045 @ JsonProperty ("ip_tenure" ) Double ipTenure ,
4146 @ JsonProperty ("issuer_id_number" ) Double issuerIdNumber ,
4247 @ JsonProperty ("order_amount" ) Double orderAmount ,
4348 @ JsonProperty ("phone_number" ) Double phoneNumber ,
49+ @ JsonProperty ("shipping_address" ) Double shippingAddress ,
4450 @ JsonProperty ("shipping_address_distance_to_ip_location" ) Double shippingAddressDistanceToIpLocation ,
4551 @ JsonProperty ("time_of_day" ) Double timeOfDay
4652 ) {
@@ -52,20 +58,50 @@ public Subscores(
5258 this .country = country ;
5359 this .countryMismatch = countryMismatch ;
5460 this .cvvResult = cvvResult ;
61+ this .device = device ;
5562 this .emailAddress = emailAddress ;
5663 this .emailDomain = emailDomain ;
64+ this .emailLocalPart = emailLocalPart ;
5765 this .emailTenure = emailTenure ;
5866 this .ipTenure = ipTenure ;
5967 this .issuerIdNumber = issuerIdNumber ;
6068 this .orderAmount = orderAmount ;
6169 this .phoneNumber = phoneNumber ;
70+ this .shippingAddress = shippingAddress ;
6271 this .shippingAddressDistanceToIpLocation = shippingAddressDistanceToIpLocation ;
6372 this .timeOfDay = timeOfDay ;
6473 }
6574
75+ // This method is for backwards compatibility. We should remove it when we
76+ // do a major release.
77+ public Subscores (
78+ Double avsResult ,
79+ Double billingAddress ,
80+ Double billingAddressDistanceToIpLocation ,
81+ Double browser ,
82+ Double chargeback ,
83+ Double country ,
84+ Double countryMismatch ,
85+ Double cvvResult ,
86+ Double emailAddress ,
87+ Double emailDomain ,
88+ Double emailTenure ,
89+ Double ipTenure ,
90+ Double issuerIdNumber ,
91+ Double orderAmount ,
92+ Double phoneNumber ,
93+ Double shippingAddressDistanceToIpLocation ,
94+ Double timeOfDay
95+ ) {
96+ this (avsResult , billingAddress , billingAddressDistanceToIpLocation , browser , chargeback ,
97+ country , countryMismatch , cvvResult , null , emailAddress , emailDomain , null , emailTenure ,
98+ ipTenure , issuerIdNumber , orderAmount , phoneNumber , null , shippingAddressDistanceToIpLocation ,
99+ timeOfDay );
100+ }
101+
66102 public Subscores () {
67103 this (null , null , null , null , null , null , null , null , null , null , null , null ,
68- null , null , null , null , null );
104+ null , null , null , null , null , null , null , null );
69105 }
70106
71107 /**
@@ -145,6 +181,15 @@ public Double getCvvResult() {
145181 return cvvResult ;
146182 }
147183
184+ /**
185+ * @return The risk associated with the device. If present, this is a value in
186+ * the range 0.01 to 99.
187+ */
188+ @ JsonProperty ("device" )
189+ public Double getDevice () {
190+ return device ;
191+ }
192+
148193 /**
149194 * @return The risk associated with the particular email address. If
150195 * present, this is a value in the range 0.01 to 99.
@@ -163,6 +208,16 @@ public Double getEmailDomain() {
163208 return emailDomain ;
164209 }
165210
211+ /**
212+ * @return The risk associated with the email address local part (the part
213+ * of the email address before the @ symbol). If present, this is a value
214+ * in the range 0.01 to 99.
215+ */
216+ @ JsonProperty ("email_local_part" )
217+ public Double getEmailLocalPart () {
218+ return emailLocalPart ;
219+ }
220+
166221 /**
167222 * @return The risk associated with the issuer ID number on the email
168223 * domain. If present, this is a value in the range 0.01 to 99.
@@ -218,6 +273,15 @@ public Double getPhoneNumber() {
218273 return phoneNumber ;
219274 }
220275
276+ /**
277+ * @return The risk associated with the shipping address. If present, this is
278+ * a value in the range 0.01 to 99.
279+ */
280+ @ JsonProperty ("shipping_address" )
281+ public Double getShippingAddress () {
282+ return shippingAddress ;
283+ }
284+
221285 /**
222286 * @return The risk associated with the distance between the shipping
223287 * address and the IP location for the given IP address. If present, this is
0 commit comments