-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link for group orders to the founder order Sender name Delivered at Recipient object
- Loading branch information
Omri Mosseri
committed
Dec 30, 2015
1 parent
e49ee40
commit c2c8f81
Showing
4 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: "[email protected]"), | ||
}; | ||
|
||
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: "[email protected]", | ||
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 [] {"[email protected]","[email protected]"}, | ||
chargeFreePaymentDetails: chargeFreePayments, | ||
clientDetails: clientDetails); | ||
clientDetails: clientDetails, | ||
groupInitiatorOrderID: "2222", | ||
recipient: recipient); | ||
|
||
return order; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters