Skip to content

Commit

Permalink
Add check for ending_on
Browse files Browse the repository at this point in the history
  • Loading branch information
rlew421 committed Jul 17, 2023
1 parent 9a17cde commit ebc4d0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Library/SubscriptionRampInterval.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ internal override void ReadXml(XmlTextReader reader)
break;

case "starting_on":
StartingOn = reader.ReadElementContentAsString();
StartingOn = reader.ReadElementContentAsDateTime();
break;

case "ending_on":
EndingOn = reader.ReadElementContentAsString();
if (!reader.ReadElementContentAsString().IsNullOrEmpty()) {
EndingOn = reader.ReadElementContentAsDateTime();
}
break;

case "remaining_billing_cycles":
Expand Down

0 comments on commit ebc4d0b

Please sign in to comment.