Class Payment
Namespace: Payment.Domain.Aggregates.Payment
Assembly: Payment.Domain.dll
Inheritance
object ← Entity ← Payment
Implements
Inherited Members
Entity.Id, Entity.CreatedAt, Entity.UpdatedAt, Entity.DomainEvents, object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
Payment\(\)
Properties
Amount
The amount of the Payment.Domain.Aggregates.Payment.Payment.
Property Value
Currency
The currency of the Payment.Domain.Aggregates.Payment.Payment.
Property Value
CustomerId
The id of the billed customer.
Property Value
IsRestaurantCredit
Bool that indicate if the Payment.Domain.Aggregates.Payment.Payment is initiated by the restaurant for any reason.
Property Value
OrdersIds
List of order ids contained in a Payment.Domain.Aggregates.Payment.Payment.
Property Value
IEnumerable < Guid \>
PaymentLink
Link to make the Payment.Domain.Aggregates.Payment.Payment.
Property Value
PaymentMode
The Payment.Domain.Aggregates.Payment.PaymentPayment.Domain.Aggregates.Payment.Payment.PaymentMode.
Property Value
PaymentSessionId
Id of the stripe session that permits the Payment.Domain.Aggregates.Payment.Payment.
Property Value
ProductsIds
List of product ids contained in a Payment.Domain.Aggregates.Payment.Payment.
Property Value
IEnumerable < Guid \>
Status
The current status of the Payment.Domain.Aggregates.Payment.Payment.
Property Value
TableId
The id of the table.
Property Value
Guid?
TipAmount
The Payment.Domain.Aggregates.Payment.Payment tip amount.
Property Value
Methods
Create\(double, double, bool, Guid, Guid, string, string\)
Method that create a Payment.Domain.Aggregates.Payment.Payment.
Parameters
amount double
Payment.Domain.Aggregates.Payment.Payment.Amount of the Payment.Domain.Aggregates.Payment.Payment.
tipAmount double
Payment.Domain.Aggregates.Payment.Payment.TipAmount of the Payment.Domain.Aggregates.Payment.Payment.
isRestaurantCredit bool
isRestaurantCredit of the Payment.Domain.Aggregates.Payment.Payment.
customerId Guid
Payment.Domain.Aggregates.Payment.Payment.CustomerId of the Payment.Domain.Aggregates.Payment.Payment.
tableId Guid
Payment.Domain.Aggregates.Payment.Payment.TableId of the Payment.Domain.Aggregates.Payment.Payment.
paymentLink string
Payment.Domain.Aggregates.Payment.Payment.PaymentLink of the Payment.Domain.Aggregates.Payment.Payment.
paymentSessionId string
Payment.Domain.Aggregates.Payment.Payment.PaymentSessionId of the Payment.Domain.Aggregates.Payment.Payment
Returns
Payment
The created Payment.Domain.Aggregates.Payment.Payment.
Expire\(\)
Method that sets the Payment.Domain.Aggregates.Payment.Payment to expired.
RemoveFromTable\(\)
Method that remove a payment from a table.
ValidateSuccess\(\)
Method that sets the Payment.Domain.Aggregates.Payment.Payment to successful.