Skip to content

Commit 95a0639

Browse files
authored
Removes teh DD mandate amount from the public model. Not currently being used and causes confusion. (#435)
1 parent cae02e9 commit 95a0639

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/NoFrixion.MoneyMoov/Models/Mandates/Mandate.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,14 @@ public class Mandate
112112
/// <summary>
113113
/// Currency of this mandate.
114114
/// </summary>
115-
public CurrencyTypeEnum Currency { get; set; }
116-
115+
public CurrencyTypeEnum Currency { get; set; }
116+
117117
/// <summary>
118-
/// Amount of this mandate.
118+
/// This is an optional field that with mandates created via Account Information Services can be
119+
/// used to do a balance check on the payer's account. We don't currenlty support the AIS workflow.
119120
/// </summary>
121+
[System.Text.Json.Serialization.JsonIgnore]
122+
[Newtonsoft.Json.JsonProperty]
120123
public decimal Amount { get; set; }
121124

122125
/// <summary>

src/NoFrixion.MoneyMoov/Models/Mandates/MandateCreate.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@ public class MandateCreate
124124
public CurrencyTypeEnum Currency { get; set; }
125125

126126
/// <summary>
127-
/// Amount of the mandate.
127+
/// This is an optional field that with mandates created via Account Information Services can be
128+
/// used to do a balance check on the payer's account. We don't currenlty support the AIS workflow.
128129
/// </summary>
129-
[Required(ErrorMessage = "Please, specify an amount.")]
130-
[Range(0.00001, double.MaxValue, ErrorMessage = "Minimum value of 0.00001 is required for Amount")]
130+
[System.Text.Json.Serialization.JsonIgnore]
131+
[Newtonsoft.Json.JsonProperty]
131132
public decimal Amount { get; set; }
132133

133134
/// <summary>

0 commit comments

Comments
 (0)