File tree Expand file tree Collapse file tree 5 files changed +21
-5
lines changed
main/java/com/siftscience/model
test/java/com/siftscience Expand file tree Collapse file tree 5 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 1+ 3.4.0 (2020-05-05)
2+ =================
3+ - Add support for ` $decline_category ` field to ` $transaction ` event
4+
153.3.0 (2020-02-19)
26=================
37- Add support for ` $client_language ` field to ` $app ` complex field
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ Java 1.7 or later.
1313<dependency >
1414 <groupId >com.siftscience</groupId >
1515 <artifactId >sift-java</artifactId >
16- <version >3.3 .0</version >
16+ <version >3.4 .0</version >
1717</dependency >
1818```
1919### Gradle
2020```
2121dependencies {
22- compile 'com.siftscience:sift-java:3.3 .0'
22+ compile 'com.siftscience:sift-java:3.4 .0'
2323}
2424```
2525### Other
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ apply plugin: 'signing'
55apply plugin : ' java-library-distribution'
66
77group = ' com.siftscience'
8- version = ' 3.3 .0'
8+ version = ' 3.4 .0'
99
1010repositories {
1111 mavenCentral()
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ public class TransactionFieldSet extends BaseAppBrowserSiteBrandFieldSet<Transac
1717 @ Expose @ SerializedName ("$seller_user_id" ) private String sellerUserId ;
1818 @ Expose @ SerializedName ("$transfer_recipient_user_id" ) private String transferRecipientUserId ;
1919 @ Expose @ SerializedName ("$ordered_from" ) private OrderedFrom orderedFrom ;
20+ @ Expose @ SerializedName ("$decline_category" ) private String declineCategory ;
2021
2122 @ Override
2223 public String getEventType () {
@@ -143,4 +144,13 @@ public TransactionFieldSet setOrderedFrom(OrderedFrom orderedFrom) {
143144 this .orderedFrom = orderedFrom ;
144145 return this ;
145146 }
147+
148+ public String getDeclineCategory () {
149+ return declineCategory ;
150+ }
151+
152+ public TransactionFieldSet setDeclineCategory (String declineCategory ) {
153+ this .declineCategory = declineCategory ;
154+ return this ;
155+ }
146156}
Original file line number Diff line number Diff line change @@ -23,9 +23,10 @@ public void testTransactionEvent() throws Exception {
2323 "\n " +
2424 " \" $user_email\" : \" bill@gmail.com\" ,\n " +
2525 " \" $transaction_type\" : \" $sale\" ,\n " +
26- " \" $transaction_status\" : \" $success \" ,\n " +
26+ " \" $transaction_status\" : \" $failure \" ,\n " +
2727 " \" $order_id\" : \" ORDER-123124124\" ,\n " +
2828 " \" $transaction_id\" : \" 719637215\" ,\n " +
29+ " \" $decline_category\" : \" $lost\" ,\n " +
2930 " \" $site_country\" : \" US\" ,\n " +
3031 " \" $site_domain\" : \" sift.com\" ,\n " +
3132 " \" $brand_name\" : \" sift\" ,\n " +
@@ -105,7 +106,8 @@ public void testTransactionEvent() throws Exception {
105106 .setCurrencyCode ("USD" )
106107 .setUserEmail ("bill@gmail.com" )
107108 .setTransactionType ("$sale" )
108- .setTransactionStatus ("$success" )
109+ .setTransactionStatus ("$failure" )
110+ .setDeclineCategory ("$lost" )
109111 .setSiteCountry ("US" )
110112 .setSiteDomain ("sift.com" )
111113 .setBrandName ("sift" )
You can’t perform that action at this time.
0 commit comments