Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGES.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGES

## 1.7.0 (2025-12-03)

### Added
- **`$ip`** field support in events
- **`$user_email`** field in `$create_content`, `$update_content` events
- **`$verification_phone_number`** field in `$update_content` event
- **`$reviewed_user_id`** field in `$review` complex type

## 1.6.0 (2025-10-18)

### NuGet Package Updates
Expand Down
34 changes: 20 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@

The official Sift .NET client, supporting .NET Standard 2.0+

## Latest Release (v1.6.0)

- Full Sift API v205 compliance with multi-currency support (`$exchange_rate`), enhanced payment validation (`$card_bin_metadata`), and account promotions tracking
- **Breaking:** `$iata_carrier_code` moved from `Booking` to `Segment` complex type
- iGaming API enhancements with `$wager`, `$deposit`, and `$withdrawal` transaction support
## Latest Release (v1.7.0)

See [CHANGES.MD](CHANGES.MD) for full release history.

Expand Down Expand Up @@ -150,7 +146,8 @@ var booking = new Booking
site_country = "US",
site_domain = "sift.com",
user_email = "billjones1@example.com",
verification_phone_number = "+123456789012"
verification_phone_number = "+123456789012",
ip = "1.2.3.4"
};

EventRequest eventRequest = new EventRequest()
Expand Down Expand Up @@ -208,7 +205,8 @@ var booking = new Booking
site_country = "US",
site_domain = "sift.com",
user_email = "billjones1@example.com",
verification_phone_number = "+123456789012"
verification_phone_number = "+123456789012",
ip = "1.2.3.4"
};

EventRequest eventRequest = new EventRequest()
Expand Down Expand Up @@ -242,7 +240,8 @@ var booking = new Booking
site_country = "US",
site_domain = "sift.com",
user_email = "billjones1@example.com",
verification_phone_number = "+123456789012"
verification_phone_number = "+123456789012",
ip = "1.2.3.4"
};

EventRequest eventRequest = new EventRequest()
Expand Down Expand Up @@ -274,7 +273,8 @@ var booking = new Booking
accept_language = "en-US",
content_language = "en-GB"
},
verification_phone_number = "+123456789012"
verification_phone_number = "+123456789012",
ip = "1.2.3.4"
};

EventRequest eventRequest = new EventRequest()
Expand Down Expand Up @@ -322,7 +322,8 @@ var booking = new Booking
site_country = "US",
site_domain = "sift.com",
user_email = "billjones1@example.com",
verification_phone_number = "+123456789012"
verification_phone_number = "+123456789012",
ip = "1.2.3.4"
};

EventRequest eventRequest = new EventRequest()
Expand Down Expand Up @@ -453,7 +454,8 @@ var booking = new Booking
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
accept_language = "en-US",
content_language = "en-GB"
}
},
ip = "1.2.3.4"
};

EventRequest eventRequest = new EventRequest()
Expand Down Expand Up @@ -601,7 +603,8 @@ var booking = new Booking
zipcode = "03257"

}
}
},
ip = "1.2.3.4"
};

EventRequest eventRequest = new EventRequest()
Expand Down Expand Up @@ -688,7 +691,8 @@ var booking = new Booking
reason = "$user_setting",
brand_name = "xyz",
site_country = "AU",
site_domain = "somehost.example.com"
site_domain = "somehost.example.com",
ip = "1.2.3.4"
};
var sift = new Client("API_KEY");

Expand Down Expand Up @@ -720,6 +724,7 @@ var booking = new Booking
},
user_email = "billjones1@example.com",
verification_phone_number = "+123456789012",
ip = "1.2.3.4",
transaction_type = "$sale",
transaction_status = "$failure",
decline_category = "$bank_decline",
Expand Down Expand Up @@ -882,7 +887,8 @@ var booking = new Booking
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
accept_language = "en-US",
content_language = "en-GB"
}
},
ip = "1.2.3.4"
};

EventRequest eventRequest = new EventRequest()
Expand Down
3 changes: 3 additions & 0 deletions Sift/Schema/ComplexTypes/review.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"$reviewed_content_id": {
"type": [ "string", "null" ]
},
"$reviewed_user_id": {
"type": [ "string", "null" ]
},
"$rating": {
"type": [ "number", "null" ]
},
Expand Down
3 changes: 3 additions & 0 deletions Sift/Schema/add_item_to_cart.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
},
"$verification_phone_number": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
3 changes: 3 additions & 0 deletions Sift/Schema/add_promotion.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
},
"$verification_phone_number": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
3 changes: 3 additions & 0 deletions Sift/Schema/chargeback.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
},
"$ach_return_code": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
4 changes: 3 additions & 1 deletion Sift/Schema/content_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@
"$user_email": {
"type": [ "string", "null" ]
},

"$verification_phone_number": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
3 changes: 3 additions & 0 deletions Sift/Schema/create_account.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
},
"$verification_phone_number": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
3 changes: 3 additions & 0 deletions Sift/Schema/create_content.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
"$site_domain": {
"type": [ "string", "null" ]
},
"$user_email": {
"type": [ "string", "null" ]
},
"$verification_phone_number": {
"type": [ "string", "null" ]
}
Expand Down
3 changes: 3 additions & 0 deletions Sift/Schema/create_order.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
"$shipping_tracking_numbers": {
"type": [ "array", "null" ],
"items": { "type": "string" }
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
3 changes: 3 additions & 0 deletions Sift/Schema/flag_content.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
},
"$verification_phone_number": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
3 changes: 3 additions & 0 deletions Sift/Schema/link_session_to_user.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
{ "$ref": "ComplexTypes/browser.json" },
{ "type": "null" }
]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
3 changes: 3 additions & 0 deletions Sift/Schema/logout.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
},
"$site_domain": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
3 changes: 3 additions & 0 deletions Sift/Schema/order_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
},
"$site_domain": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
4 changes: 3 additions & 1 deletion Sift/Schema/remove_item_from_cart.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@
"$user_email": {
"type": [ "string", "null" ]
},

"$verification_phone_number": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
3 changes: 3 additions & 0 deletions Sift/Schema/security_notification.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
},
"$site_domain": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
3 changes: 3 additions & 0 deletions Sift/Schema/transaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@
"$verification_phone_number": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
},
"$minimum_deposit_amount": {
"type": [ "integer", "null" ],
"format": "long"
Expand Down
3 changes: 3 additions & 0 deletions Sift/Schema/update_account.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
"$promotions": {
"type": [ "array", "null" ],
"items": { "$ref": "ComplexTypes/promotion.json" }
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
6 changes: 6 additions & 0 deletions Sift/Schema/update_content.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
},
"$site_domain": {
"type": [ "string", "null" ]
},
"$user_email": {
"type": [ "string", "null" ]
},
"$verification_phone_number": {
"type": [ "string", "null" ]
}
}
}
4 changes: 3 additions & 1 deletion Sift/Schema/update_order.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@
{ "$ref": "ComplexTypes/merchant_profile.json" },
{ "type": "null" }
]
},
"$ip": {
"type": [ "string", "null" ]
}

}

}
3 changes: 3 additions & 0 deletions Sift/Schema/verification.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
},
"$site_domain": {
"type": [ "string", "null" ]
},
"$ip": {
"type": [ "string", "null" ]
}
}
}
4 changes: 2 additions & 2 deletions Sift/Sift.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<Authors>Sift</Authors>
<AssemblyTitle>Sift</AssemblyTitle>
<AssemblyName>Sift</AssemblyName>
<VersionPrefix>1.6.0</VersionPrefix>
<PackageReleaseNotes>Release 1.6.0</PackageReleaseNotes>
<VersionPrefix>1.7.0</VersionPrefix>
<PackageReleaseNotes>Release 1.7.0</PackageReleaseNotes>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>Sift</PackageId>
<PackageTags>sift;siftscience;client;api;client;async</PackageTags>
Expand Down
6 changes: 4 additions & 2 deletions Test.Integration.Net/EventsAPI/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public void CreateAccount()
zipcode = "03257"

}
}
},
ip = "1.2.3.4"
};
EventRequest eventRequest = new EventRequest()
{
Expand Down Expand Up @@ -217,7 +218,8 @@ public void UpdateAccount()
zipcode = "03257"

}
}
},
ip = "1.2.3.4"
};
EventRequest eventRequest = new EventRequest()
{
Expand Down
6 changes: 4 additions & 2 deletions Test.Integration.Net/EventsAPI/Cart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public void AddItemToCartEvent()
brand_name = "sift",
site_country = "US",
site_domain = "sift.com",
verification_phone_number = "+123456789012"
verification_phone_number = "+123456789012",
ip = "1.2.3.4"
};

EventRequest eventRequest = new EventRequest()
Expand Down Expand Up @@ -99,7 +100,8 @@ public void RemoveItemFromCart()
brand_name = "sift",
site_country = "US",
site_domain = "sift.com",
verification_phone_number = "+123456789012"
verification_phone_number = "+123456789012",
ip = "1.2.3.4"
};

EventRequest eventRequest = new EventRequest()
Expand Down
3 changes: 2 additions & 1 deletion Test.Integration.Net/EventsAPI/Chargebacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public void ChargebackTest()
zipcode = "03257"

}
}
},
ip = "1.2.3.4"
};
EventRequest eventRequest = new EventRequest()
{
Expand Down
Loading
Loading