| 1 | using System;
|
|---|
| 2 | using adMoto.Payments.Core.Interfaces;
|
|---|
| 3 |
|
|---|
| 4 | namespace adMoto.Payments.Core.Data
|
|---|
| 5 | {
|
|---|
| 6 | public partial class PotwierdzeniaEcard : IIdentifiable
|
|---|
| 7 | {
|
|---|
| 8 | public int Id
|
|---|
| 9 | {
|
|---|
| 10 | get { return id; }
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | // ReSharper disable InconsistentNaming
|
|---|
| 14 | partial void OnVALIDATIONCODEChanging(string value)
|
|---|
| 15 | // ReSharper restore InconsistentNaming
|
|---|
| 16 | {
|
|---|
| 17 | if (string.IsNullOrEmpty(value)) return;
|
|---|
| 18 |
|
|---|
| 19 | if (value.Length > 3) throw new ArgumentException("VALIDATIONCODE must be max 3 characters long.");
|
|---|
| 20 | }
|
|---|
| 21 | partial void OnBINChanging(string value)
|
|---|
| 22 | {
|
|---|
| 23 | if (string.IsNullOrEmpty(value)) return;
|
|---|
| 24 |
|
|---|
| 25 | if (value.Length > 6) throw new ArgumentException("BIN must be max 6 characters long.");
|
|---|
| 26 | }
|
|---|
| 27 | partial void OnMERCHANTNUMBERChanging(string value)
|
|---|
| 28 | {
|
|---|
| 29 | if (string.IsNullOrEmpty(value)) return;
|
|---|
| 30 |
|
|---|
| 31 | if (value.Length > 50) throw new ArgumentException("MERCHANTNUMBER must be 50 characters long.");
|
|---|
| 32 | }
|
|---|
| 33 | partial void OnCOMMTYPEChanging(string value)
|
|---|
| 34 | {
|
|---|
| 35 | if (string.IsNullOrEmpty(value)) return;
|
|---|
| 36 |
|
|---|
| 37 | if (value.Length > 50) throw new ArgumentException("COMMTYPE must be 50 characters long.");
|
|---|
| 38 | }
|
|---|
| 39 | partial void OnCURRENTSTATEChanging(string value)
|
|---|
| 40 | {
|
|---|
| 41 | if (string.IsNullOrEmpty(value)) return;
|
|---|
| 42 |
|
|---|
| 43 | if (value.Length > 50) throw new ArgumentException("CURRENTSTATE must be 50 characters long.");
|
|---|
| 44 | }
|
|---|
| 45 | partial void OnPREVIOUSSTATEChanging(string value)
|
|---|
| 46 | {
|
|---|
| 47 | if (string.IsNullOrEmpty(value)) return;
|
|---|
| 48 |
|
|---|
| 49 | if (value.Length > 50) throw new ArgumentException("PREVIOUSSTATE must be 50 characters long.");
|
|---|
| 50 | }
|
|---|
| 51 | partial void OnAPPROVALCODEChanging(string value)
|
|---|
| 52 | {
|
|---|
| 53 | if (string.IsNullOrEmpty(value)) return;
|
|---|
| 54 |
|
|---|
| 55 | if (value.Length > 50) throw new ArgumentException("APPROVALCODE must be 50 characters long.");
|
|---|
| 56 | }
|
|---|
| 57 | partial void OnTYPEChanging(string value)
|
|---|
| 58 | {
|
|---|
| 59 | if (string.IsNullOrEmpty(value)) return;
|
|---|
| 60 |
|
|---|
| 61 | if (value.Length > 2) throw new ArgumentException("TYPE must be 2 characters long.");
|
|---|
| 62 | }
|
|---|
| 63 | partial void OnWITHCVCChanging(string value)
|
|---|
| 64 | {
|
|---|
| 65 | if (string.IsNullOrEmpty(value)) return;
|
|---|
| 66 |
|
|---|
| 67 | if (value.Length > 3) throw new ArgumentException("WITHCVC must be 4 characters long.");
|
|---|
| 68 | }
|
|---|
| 69 |
|
|---|
| 70 | }
|
|---|
| 71 | } |
|---|