Skip to content

Commit

Permalink
Use ReadElementContentAsString not ReadContentAsString
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin eckel committed Oct 27, 2017
1 parent 9b893c7 commit cef02a8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Library/AddOn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ internal override void ReadXml(XmlTextReader reader)
UsageType = reader.ReadElementContentAsString().ParseAsEnum<Usage.Type>();
break;

case "revenue_schedule_type":
RevenueScheduleType = reader.ReadContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
case "revenue_schedule_tye":
RevenueScheduleType = reader.ReadElementContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Library/Adjustment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ internal override void ReadXml(XmlTextReader reader)
State = reader.ReadElementContentAsString().ParseAsEnum<AdjustmentState>();
break;

case "revenue_schedule_type":
RevenueScheduleType = reader.ReadContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
case "revenue_schedule_tye":
RevenueScheduleType = reader.ReadElementContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
break;
}
}
Expand Down
8 changes: 4 additions & 4 deletions Library/Plan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,12 @@ internal override void ReadXml(XmlTextReader reader)
TrialRequiresBillingInfo = b;
break;

case "revenue_schedule_type":
RevenueScheduleType = reader.ReadContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
case "revenue_schedule_tye":
RevenueScheduleType = reader.ReadElementContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
break;

case "setup_fee_revenue_schedule_type":
SetupFeeRevenueScheduleType = reader.ReadContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
case "setup_fee_revenue_schedule_tye":
SetupFeeRevenueScheduleType = reader.ReadElementContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Library/Subscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,8 @@ internal override void ReadXml(XmlTextReader reader)
ImportedTrial = reader.ReadElementContentAsBoolean();
break;

case "revenue_schedule_type":
RevenueScheduleType = reader.ReadContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
case "revenue_schedule_tye":
RevenueScheduleType = reader.ReadElementContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Library/SubscriptionAddOn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ internal override void ReadXml(XmlTextReader reader)
UnitAmountInCents = reader.ReadElementContentAsInt();
break;

case "revenue_schedule_type":
RevenueScheduleType = reader.ReadContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
case "revenue_schedule_tye":
RevenueScheduleType = reader.ReadElementContentAsString().ParseAsEnum<Adjustment.RevenueSchedule>();
break;
}
}
Expand Down

0 comments on commit cef02a8

Please sign in to comment.