diff --git a/Riskified.SDK.Sample/OrderTransmissionExample.cs b/Riskified.SDK.Sample/OrderTransmissionExample.cs
index 9ab5dac..397a4ff 100644
--- a/Riskified.SDK.Sample/OrderTransmissionExample.cs
+++ b/Riskified.SDK.Sample/OrderTransmissionExample.cs
@@ -234,7 +234,7 @@ private static OrderCheckout GenerateOrderCheckout(string orderNum)
var items = new[]
{
- new LineItem(title: "Bag",price: 55.44,quantityPurchased: 1,productId: 48484,sku: "1272727"),
+ new LineItem(title: "Bag",price: 55.44,quantityPurchased: 1,productId: "48484",sku: "1272727"),
new LineItem(title: "Monster", price: 22.3, quantityPurchased: 3)
};
@@ -342,7 +342,8 @@ private static Order GenerateOrder(int orderNum)
cvvResultCode: "n",
creditCardBin: "124580",
creditCardCompany: "Visa",
- creditCardNumber: "XXXX-XXXX-XXXX-4242");
+ creditCardNumber: "XXXX-XXXX-XXXX-4242",
+ creditCardToken: "2233445566778899");
var noChargeAmount = new NoChargeDetails(
refundId: "123444",
@@ -370,7 +371,7 @@ private static Order GenerateOrder(int orderNum)
var items = new[]
{
- new LineItem(title: "Bag",price: 55.44,quantityPurchased: 1,productId: 48484,sku: "1272727",deliveredTo: DeliveredToType.StorePickup, delivered_at:new DateTime(2016, 12, 8, 14, 12, 12, DateTimeKind.Local)),
+ new LineItem(title: "Bag",price: 55.44,quantityPurchased: 1,productId: "48484", sku: "1272727",deliveredTo: DeliveredToType.StorePickup, delivered_at:new DateTime(2016, 12, 8, 14, 12, 12, DateTimeKind.Local)),
new LineItem(title: "Monster", price: 22.3, quantityPurchased: 3, seller: new Seller(customer: customer,correspondence: 1, priceNegotiated: true, startingPrice: 120)),
// Events Tickets Industry
new LineItem(title: "Concert",
@@ -502,7 +503,7 @@ private static Order PayPalGenerateOrder(int orderNum)
var items = new[]
{
- new LineItem(title: "Bag",price: 55.44,quantityPurchased: 1,productId: 48484,sku: "1272727"),
+ new LineItem(title: "Bag",price: 55.44,quantityPurchased: 1,productId: "48484", sku: "1272727"),
new LineItem(title: "Monster", price: 22.3, quantityPurchased: 3)
};
diff --git a/Riskified.SDK/Model/OrderElements/CreditCardPaymentDetails.cs b/Riskified.SDK/Model/OrderElements/CreditCardPaymentDetails.cs
index eae47c1..8ee6cf2 100644
--- a/Riskified.SDK/Model/OrderElements/CreditCardPaymentDetails.cs
+++ b/Riskified.SDK/Model/OrderElements/CreditCardPaymentDetails.cs
@@ -14,13 +14,19 @@ public class CreditCardPaymentDetails : IPaymentDetails
/// The issuer identification number (IIN), formerly known as bank identification number (BIN) ] of the customer's credit card. This is made up of the first few digits of the credit card number
/// The name of the company who issued the customer's credit card
/// The 4 last digits of the customer's credit card number, with most of the leading digits redacted with Xs
- public CreditCardPaymentDetails(string avsResultCode, string cvvResultCode, string creditCardBin, string creditCardCompany, string creditCardNumber)
+ public CreditCardPaymentDetails(string avsResultCode,
+ string cvvResultCode,
+ string creditCardBin,
+ string creditCardCompany,
+ string creditCardNumber,
+ string creditCardToken = null)
{
AvsResultCode = avsResultCode;
CvvResultCode = cvvResultCode;
CreditCardBin = creditCardBin;
CreditCardCompany = creditCardCompany;
CreditCardNumber = creditCardNumber;
+ CreditCardToken = creditCardToken;
}
///
diff --git a/Riskified.SDK/Model/OrderElements/LineItem.cs b/Riskified.SDK/Model/OrderElements/LineItem.cs
index 1c0c3f0..d14e3da 100644
--- a/Riskified.SDK/Model/OrderElements/LineItem.cs
+++ b/Riskified.SDK/Model/OrderElements/LineItem.cs
@@ -20,7 +20,7 @@ public LineItem(string title,
int quantityPurchased,
//optional
- int? productId = null,
+ string productId = null,
string sku = null,
string condition = null,
bool? requiresShipping = null,
@@ -106,9 +106,9 @@ public void Validate(Validations validationType = Validations.Weak)
InputValidators.ValidatePositiveValue(QuantityPurchased.Value, "Quantity Purchased");
// optional fields validations
- if(ProductId.HasValue)
+ if(ProductId != null)
{
- InputValidators.ValidateZeroOrPositiveValue(ProductId.Value, "Product Id");
+ InputValidators.ValidateValuedString(ProductId, "Product Id");
}
if(Seller != null)
@@ -133,7 +133,7 @@ public void Validate(Validations validationType = Validations.Weak)
/// The Product ID number
///
[JsonProperty(PropertyName = "product_id")]
- public int? ProductId { get; set; }
+ public string ProductId { get; set; }
///
/// Quantity of the item that was purchased
diff --git a/Riskified.SDK/Properties/AssemblyInfo.cs b/Riskified.SDK/Properties/AssemblyInfo.cs
index f039708..c21f12b 100644
--- a/Riskified.SDK/Properties/AssemblyInfo.cs
+++ b/Riskified.SDK/Properties/AssemblyInfo.cs
@@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.0.4.9")]
-[assembly: AssemblyFileVersion("2.0.4.9")]
+[assembly: AssemblyVersion("2.0.5.0")]
+[assembly: AssemblyFileVersion("2.0.5.0")]