diff --git a/Riskified.SDK.Sample/OrderTransmissionExample.cs b/Riskified.SDK.Sample/OrderTransmissionExample.cs
index 5e9803c..727ad44 100644
--- a/Riskified.SDK.Sample/OrderTransmissionExample.cs
+++ b/Riskified.SDK.Sample/OrderTransmissionExample.cs
@@ -359,7 +359,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),
+ 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",
@@ -385,7 +385,8 @@ private static Order GenerateOrder(int orderNum)
message: "Happy Birthday",
greeting_message: "Happy Birthday from John",
card_type: "regular",
- card_sub_type: "birthday"),
+ card_sub_type: "birthday",
+ sender_email: "new_email@bb.com"),
};
var discountCodes = new[] { new DiscountCode(moneyDiscountSum: 7, code: "1") };
@@ -395,15 +396,22 @@ private static Order GenerateOrder(int orderNum)
// This is an example for an order with charge free sums (e.g. gift card payment)
var chargeFreePayments = new ChargeFreePaymentDetails(
gateway: "giftcard",
- amount: 45
- );
+ amount: 45);
// This is an example for client details section
var clientDetails = new ClientDetails(
accept_language: "en-CA",
- user_agent: "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"
- );
+ user_agent: "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)");
+
+ var recipientSocial = new SocialDetails(
+ network: "Facebook",
+ publicUsername:"john.smith",
+ accountUrl:"http://www.facebook.com/john.smith");
+ var recipient = new Recipient(
+ email: "aa@bb.com",
+ phone: "96522444221",
+ social: recipientSocial);
var order = new Order(
merchantOrderId: orderNum.ToString(),
@@ -428,7 +436,9 @@ private static Order GenerateOrder(int orderNum)
vendorName: "domestic",
additionalEmails: new [] {"a@a.com","b@b.com"},
chargeFreePaymentDetails: chargeFreePayments,
- clientDetails: clientDetails);
+ clientDetails: clientDetails,
+ groupInitiatorOrderID: "2222",
+ recipient: recipient);
return order;
}
diff --git a/Riskified.SDK/Model/OrderElements/LineItem.cs b/Riskified.SDK/Model/OrderElements/LineItem.cs
index 8f822de..948408e 100644
--- a/Riskified.SDK/Model/OrderElements/LineItem.cs
+++ b/Riskified.SDK/Model/OrderElements/LineItem.cs
@@ -48,7 +48,9 @@ public LineItem(string title,
string message = null,
string greeting_message = null,
string card_type = null,
- string card_sub_type = null)
+ string card_sub_type = null,
+ DateTime? delivered_at = null,
+ string sender_email = null)
{
Title = title;
@@ -84,6 +86,8 @@ public LineItem(string title,
GreetingMessage = greeting_message;
CardType = card_type;
CardSubtype = card_sub_type;
+ DeliveredAt = delivered_at;
+ SenderEmail = sender_email;
}
///
@@ -224,6 +228,12 @@ public void Validate(Validations validationType = Validations.Weak)
[JsonProperty(PropertyName = "sender_name")]
public string SenderName { get; set; }
+ ///
+ /// The digital good's (giftcard) sender email.
+ ///
+ [JsonProperty(PropertyName = "sender_email")]
+ public string SenderEmail { get; set; }
+
///
/// The digital good's (giftcard) display name.
///
@@ -271,5 +281,11 @@ public void Validate(Validations validationType = Validations.Weak)
///
[JsonProperty(PropertyName = "card_subtype")]
public string CardSubtype { get; set; }
+
+ ///
+ /// The delivery date of the goods (e.g. gift card).
+ ///
+ [JsonProperty(PropertyName = "delivered_at")]
+ public DateTime? DeliveredAt { get; set; }
}
}
diff --git a/Riskified.SDK/Properties/AssemblyInfo.cs b/Riskified.SDK/Properties/AssemblyInfo.cs
index 966ffe2..4ee44d2 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.2")]
-[assembly: AssemblyFileVersion("2.0.4.2")]
+[assembly: AssemblyVersion("2.0.4.3")]
+[assembly: AssemblyFileVersion("2.0.4.3")]
diff --git a/Riskified.SDK/Riskified.SDK.csproj b/Riskified.SDK/Riskified.SDK.csproj
index 391a2ef..fe1a383 100644
--- a/Riskified.SDK/Riskified.SDK.csproj
+++ b/Riskified.SDK/Riskified.SDK.csproj
@@ -68,6 +68,7 @@
+