Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Payment.cs
1using System;
4
6{
10 [CollectionName("PaiwisePayments")]
11 [TypeName(TypeNameSerialization.None)]
12 [Index("ContractId", "FromLegalId", "ToLegalId")]
13 [Index("Processed", "Created")]
14 [Index("PaymentId")]
15 [Index("ConditionContractId", "Processed", "Created")]
16 [ArchivingTime(3653)] // 10 years
17 public class Payment
18 {
22 public Payment()
23 {
24 this.AmountExtra = null;
25 this.Expires = DateTime.MaxValue;
26 this.Processed = null;
27 this.Reference = null;
28 this.LastError = null;
29 this.NrErrors = 0;
30 }
31
35 [ObjectId]
36 public Guid ObjectId { get; set; }
37
41 public Guid PaymentId { get; set; }
42
46 public CaseInsensitiveString ContractId { get; set; }
47
52
56 public CaseInsensitiveString ToLegalId { get; set; }
57
61 public decimal Amount { get; set; }
62
66 [DefaultValueNull]
67 public decimal? AmountExtra { get; set; }
68
72 public string Currency { get; set; }
73
78
82 public DateTime Created { get; set; }
83
87 [DefaultValueDateTimeMaxValue]
88 public DateTime Expires { get; set; }
89
93 public DateTime? Processed { get; set; }
94
98 [DefaultValueStringEmpty]
99 public string Reference { get; set; }
100
104 public string Uri { get; set; }
105
109 [DefaultValueNull]
110 public string LastError { get; set; }
111
115 [DefaultValue(0)]
116 public int NrErrors { get; set; }
117 }
118}
Represents a case-insensitive string.
Contains information about a payment instruction.
Definition: Payment.cs:18
CaseInsensitiveString ContractId
Contract ID
Definition: Payment.cs:46
CaseInsensitiveString ConditionContractId
Condition contract, for conditional payments.
Definition: Payment.cs:77
DateTime Created
When object was created.
Definition: Payment.cs:82
string Currency
Currency to be paid.
Definition: Payment.cs:72
Guid ObjectId
Object ID of payment
Definition: Payment.cs:36
Payment()
Contains information about a payment instruction.
Definition: Payment.cs:22
decimal Amount
Amount to be paid.
Definition: Payment.cs:61
string Reference
Reference message
Definition: Payment.cs:99
CaseInsensitiveString ToLegalId
Payment is done to this legal ID
Definition: Payment.cs:56
DateTime Expires
When payment expires.
Definition: Payment.cs:88
int NrErrors
Number of times payment has had errors
Definition: Payment.cs:116
string Uri
e-Daler URI used to process payment.
Definition: Payment.cs:104
DateTime? Processed
When object was successfully processed.
Definition: Payment.cs:93
decimal? AmountExtra
Amount extra to be paid.
Definition: Payment.cs:67
CaseInsensitiveString FromLegalId
Payment is done from this legal ID
Definition: Payment.cs:51
string LastError
If an error has occurred
Definition: Payment.cs:110
TypeNameSerialization
How the type name should be serialized.