Skip to content

Commit d68d3a4

Browse files
sipsorceryCopilot
andauthored
Payout model reference comments (#649)
* Add their reference and your reference comments for payout models. * Update src/NoFrixion.MoneyMoov/Models/Payouts/PayoutsValidator.cs Co-authored-by: Copilot <[email protected]> * Spelling mistakes. * Spelling mistakes. --------- Co-authored-by: Copilot <[email protected]>
1 parent e127984 commit d68d3a4

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed

src/NoFrixion.MoneyMoov/Models/Payouts/PayoutCreate.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,26 @@ public class PayoutCreate
4848
public decimal? Amount { get; set; }
4949

5050
/// <summary>
51-
/// Gets or Sets the your reference property.
51+
/// The Your reference field is an optional field that gets set locally on the payer's transaction record. It does not get
52+
/// sent out through the payment network. The maximum length for the field is 256 characters. An empty value is also supported.
53+
/// Supported chracters:
54+
/// a b c d e f g h i j k l m n o p q r s t u v w x y z
55+
/// A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
56+
/// 0 1 2 3 4 5 6 7 8 9
57+
/// / - ? : ( ) . , ' + Space
58+
/// In addition the field cannot start with a : or - character.
5259
/// </summary>
5360
public string? YourReference { get; set; }
5461

62+
/// <summary>
63+
/// The Their reference field gets sent to the payee and appears on their transaction record.
64+
/// The maximum length for the field varies depending on the payment network. For SEPA (Euro) it is 140 characters. For Faster Payments (GBP) it is 18 characters.
65+
/// a b c d e f g h i j k l m n o p q r s t u v w x y z
66+
/// A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
67+
/// 0 1 2 3 4 5 6 7 8 9
68+
/// / - ? : ( ) . , ' + Space
69+
/// In addition the field cannot start with a : or - character.
70+
/// </summary>
5571
public string? TheirReference { get; set; }
5672

5773
[Obsolete("Please use Destination.")]

src/NoFrixion.MoneyMoov/Models/Payouts/PayoutUpdate.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,30 @@ public class PayoutUpdate
3131

3232
public CurrencyTypeEnum? Currency { get; set; }
3333

34-
[Range(0.01, double.MaxValue, ErrorMessage = "Minimum value of 0.01 is required for Amount.")]
34+
[Range(0.0001, double.MaxValue, ErrorMessage = "Minimum value of 0.0001 is required for Amount.")]
3535
public decimal? Amount { get; set; }
3636

37+
/// <summary>
38+
/// The Your reference field is an optional field that gets set locally on the payer's transaction record. It does not get
39+
/// sent out through the payment network. The maximum length for the field is 256 characters. An empty value is also supported.
40+
/// Supported characters:
41+
/// a b c d e f g h i j k l m n o p q r s t u v w x y z
42+
/// A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
43+
/// 0 1 2 3 4 5 6 7 8 9
44+
/// / - ? : ( ) . , ' + Space
45+
/// In addition the field cannot start with a : or - character.
46+
/// </summary>
3747
public string? YourReference { get; set; }
3848

49+
/// <summary>
50+
/// The Their reference field gets sent to the payee and appears on their transaction record.
51+
/// The maximum length for the field varies depending on the payment network. For SEPA (Euro) it is 140 characters. For Faster Payments (GBP) it is 18 characters.
52+
/// a b c d e f g h i j k l m n o p q r s t u v w x y z
53+
/// A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
54+
/// 0 1 2 3 4 5 6 7 8 9
55+
/// / - ? : ( ) . , ' + Space
56+
/// In addition the field cannot start with a : or - character.
57+
/// </summary>
3958
public string? TheirReference { get; set; }
4059

4160
[Obsolete("Please use Destination.")]

src/NoFrixion.MoneyMoov/Models/Payouts/PayoutsValidator.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,14 @@ public static class PayoutsValidator
8989
public const string FALLBACK_THEIR_REFERENCE = "NFXN {0}";
9090

9191
/// <summary>
92-
/// Validation reqex for the Name amd Reference (Your and Their) fields with Banking Cirlce. It must
92+
/// Validation regex for the Name and Reference (Your and Their) fields with Banking Circle. It must
9393
/// have at least one non space character. Total of all characters must be 140 or less.
9494
/// Banking Circle supported chars see https://docs.bankingcircleconnect.com/docs/initiate-payments:
9595
/// a b c d e f g h i j k l m n o p q r s t u v w x y z
9696
/// A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
9797
/// 0 1 2 3 4 5 6 7 8 9
98-
/// / - ? : ( ) . , ' +
98+
/// / - ? : ( ) . , ' + Space
9999
/// In addition the field cannot start with a : or - character and must have one none space char.
100-
/// Space
101100
/// </summary>
102101
public const string BANKING_CIRCLE_ALLOWED_CHARS_REGEX = @"^(?![\:\-])[a-zA-Z0-9\s\/\-\.\+\(\)\?\:\,']*$";
103102

0 commit comments

Comments
 (0)