Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
OnPayment.cs
1using System.Threading.Tasks;
2using System.Xml;
6
8{
12 public abstract class OnPayment : OwnerEventNode
13 {
18
23
28
33
38
43
47 public OnPayment()
48 : base()
49 {
50 }
51
55 [DefaultValueNull]
57 {
58 get => this.amountVariable?.Definition;
59 set => this.amountVariable = new ScriptableStringAttribute(value, this);
60 }
61
65 [DefaultValueNull]
67 {
68 get => this.amountExtraVariable?.Definition;
69 set => this.amountExtraVariable = new ScriptableStringAttribute(value, this);
70 }
71
75 [DefaultValueNull]
77 {
78 get => this.amountTotalVariable?.Definition;
79 set => this.amountTotalVariable = new ScriptableStringAttribute(value, this);
80 }
81
85 [DefaultValueNull]
87 {
88 get => this.currencyVariable?.Definition;
89 set => this.currencyVariable = new ScriptableStringAttribute(value, this);
90 }
91
95 [DefaultValueNull]
97 {
98 get => this.referenceVariable?.Definition;
99 set => this.referenceVariable = new ScriptableStringAttribute(value, this);
100 }
101
105 [DefaultValueNull]
107 {
108 get => this.conditionVariable?.Definition;
109 set => this.conditionVariable = new ScriptableStringAttribute(value, this);
110 }
111
116 public override Task Parse(XmlElement Xml)
117 {
118 this.amountVariable = new ScriptableStringAttribute(XML.Attribute(Xml, "amountVariable"), this);
119 this.amountExtraVariable = new ScriptableStringAttribute(XML.Attribute(Xml, "amountExtraVariable"), this);
120 this.amountTotalVariable = new ScriptableStringAttribute(XML.Attribute(Xml, "amountTotalVariable"), this);
121 this.currencyVariable = new ScriptableStringAttribute(XML.Attribute(Xml, "currencyVariable"), this);
122 this.referenceVariable = new ScriptableStringAttribute(XML.Attribute(Xml, "referenceVariable"), this);
123 this.conditionVariable = new ScriptableStringAttribute(XML.Attribute(Xml, "conditionVariable"), this);
124
125 return base.Parse(Xml);
126 }
127 }
128}
Helps with common XML-related tasks.
Definition: XML.cs:19
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition: XML.cs:914
Abstract base class for payment events.
Definition: OnPayment.cs:13
ScriptableStringAttribute amountTotalVariable
Amount total variable
Definition: OnPayment.cs:27
ScriptableStringAttribute amountExtraVariable
Amount extra variable
Definition: OnPayment.cs:22
string AmountExtraVariableDefinition
Amount Extra Variable definition.
Definition: OnPayment.cs:67
override Task Parse(XmlElement Xml)
Parses the State-machine node.
Definition: OnPayment.cs:116
string AmountVariableDefinition
Amount Variable definition.
Definition: OnPayment.cs:57
string CurrencyVariableDefinition
Currency Variable definition.
Definition: OnPayment.cs:87
ScriptableStringAttribute amountVariable
Amount variable
Definition: OnPayment.cs:17
string ConditionVariableDefinition
Condition Variable definition.
Definition: OnPayment.cs:107
ScriptableStringAttribute currencyVariable
Currency variable
Definition: OnPayment.cs:32
ScriptableStringAttribute conditionVariable
Condition variable
Definition: OnPayment.cs:42
OnPayment()
Abstract base class for payment events.
Definition: OnPayment.cs:47
ScriptableStringAttribute referenceVariable
Reference variable
Definition: OnPayment.cs:37
string ReferenceVariableDefinition
Reference Variable definition.
Definition: OnPayment.cs:97
string AmountTotalVariableDefinition
Amount Total Variable definition.
Definition: OnPayment.cs:77