Esempio n. 1
0
 internal ShippingQueryInfo(JObject jsonObject)
 {
     Id              = jsonObject["id"].Value <string>();
     From            = new UserInfo(jsonObject["from"].Value <JObject>());
     InvoicePayload  = jsonObject["invoice_payload"].Value <string>();
     ShippingAddress = new ShippingAddressInfo(jsonObject["shipping_address"].Value <JObject>());
 }
Esempio n. 2
0
 internal OrderInfo(JObject jsonObject)
 {
     if (jsonObject["name"] != null)
     {
         Name = jsonObject["name"].Value <string>();
     }
     if (jsonObject["phone_number"] != null)
     {
         PnoneNumber = jsonObject["phone_number"].Value <string>();
     }
     if (jsonObject["email"] != null)
     {
         Email = jsonObject["email"].Value <string>();
     }
     if (jsonObject["shipping_address"] != null)
     {
         ShippingAddress = new ShippingAddressInfo(jsonObject["shipping_address"].Value <JObject>());
     }
 }