pay.models.payment
Classes
Represents a payment done through various means. |
|
A manual payment is a payment without associated payment provider. |
Module Contents
- class pay.models.payment.Payment[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.TimestampMixin
,onegov.core.orm.mixins.ContentMixin
,onegov.core.orm.abstract.associable.Associable
Represents a payment done through various means.
- provider: relationship[PaymentProvider[Self] | None][source]
- property fee: decimal.Decimal[source]
The fee associated with this payment. The payment amount includes the fee. To get the net amount use the net_amount property.
- paid() bool [source]
Our states are essentially one paid and n unpaid states (indicating various ways in which the payment can end up being unpaid).
So this boolean acts as coarse filter to divide payemnts into the two states that really matter.