/// <summary> /// This method creates part of the json-serialize array of the available shipping options. /// </summary> private static JObject GetJsonObject(LabeledPriceInfo labeledPrice) { dynamic json = new JObject(); json.label = labeledPrice.Label; json.amount = labeledPrice.Amount; return(json); }
/// <summary> /// This method creates part of the json-serialize array of the available shipping options. /// </summary> private static JObject GetJsonObject(ShippingOptionInfo shippingOption) { dynamic json = new JObject(); json.id = shippingOption.Id; json.title = shippingOption.Title; json.prices = LabeledPriceInfo.GetJsonArray(shippingOption.LabelPrice); return(json); }