Ejemplo n.º 1
0
 static void FixLegacy(JObject jObj, PayoutLabel payoutLabel)
 {
     if (payoutLabel.PayoutId is null)
     {
         payoutLabel.PayoutId = jObj["id"].Value <string>();
     }
     FixLegacy(jObj, (Label)payoutLabel);
 }
Ejemplo n.º 2
0
 static void FixLegacy(JObject jObj, PayoutLabel payoutLabel)
 {
     if (jObj.ContainsKey("id") && payoutLabel.PullPaymentPayouts.Count is 0)
     {
         var pullPaymentId = jObj["pullPaymentId"]?.Value <string>() ?? string.Empty;
         payoutLabel.PullPaymentPayouts.Add(pullPaymentId, new List <string>()
         {
             jObj["id"].Value <string>()
         });
     }
     FixLegacy(jObj, (Label)payoutLabel);
 }