Skip to content

Commit

Permalink
[BILL-111] adds vertex_transaction_type to plan
Browse files Browse the repository at this point in the history
  • Loading branch information
epagerecurly committed Oct 29, 2024
1 parent a5c20c6 commit 36dd984
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Library/Plan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public enum IntervalUnit
public string SuccessUrl { get; set; }
public string CancelUrl { get; set; }

/// <summary>
/// VertexTransactionType is one of rental,sale,lease
/// Requires feature flag and vertex integration to use
/// </summary>
public string VertexTransactionType { get; set; }

public bool? DisplayDonationAmounts { get; set; }
public bool? DisplayQuantity { get; set; }
public bool? DisplayPhoneNumber { get; set; }
Expand Down Expand Up @@ -320,6 +326,10 @@ internal override void ReadXml(XmlTextReader reader)
CancelUrl = reader.ReadElementContentAsString();
break;

case "vertex_transaction_type":
VertexTransactionType = reader.ReadElementContentAsString();
break;

case "display_donation_amounts":
DisplayDonationAmounts = reader.ReadElementContentAsBoolean();
break;
Expand Down Expand Up @@ -474,6 +484,7 @@ internal override void WriteXml(XmlTextWriter xmlWriter)
xmlWriter.WriteStringIfValid("description", Description);
xmlWriter.WriteStringIfValid("accounting_code", AccountingCode);
xmlWriter.WriteStringIfValid("setup_fee_accounting_code", SetupFeeAccountingCode);
xmlWriter.WriteStringIfValid("vertex_transaction_type", VertexTransactionType);

// product revrec features (and setup fee revrec features)
WriteRevRecNodes(xmlWriter);
Expand Down

0 comments on commit 36dd984

Please sign in to comment.