Part of stoqlib.domain.payment.method View In Hierarchy
| Instance Variables | name | |
| description | ||
| is_active | ||
| daily_penalty | ||
| interest | a value for the interest. It must always be in the format: 0 <= interest <= 100 | |
| payment_day | which day in the month is the credit provider going to pay the store? Usually they pay in the same day every month. | |
| closing_day | which day the credit provider stoq counting sales to pay in the payment_day? Sales after this day will be paid only in the next month. | |
| destination | the payment destination or None |
| Method | inactivate | Undocumented |
| Method | activate | Undocumented |
| Method | get_status_string | Undocumented |
| Method | get_description | Undocumented |
| Method | operation | Get the operation for this method. |
| Method | _check_installments_number | Undocumented |
| Method | _check_interest_value | Undocumented |
| Method | _calculate_payment_value | Undocumented |
| Method | create_payment | Creates a new payment according to a payment method interface |
| Method | create_payments | Creates new payments according to a payment method interface. |
| Method | describe_payment | Returns a string describing payment, in the following |
| Method | create_inpayment | Creates a new inpayment |
| Method | create_outpayment | Creates a new outpayment |
| Method | create_inpayments | Creates a list of new inpayments, the values of the individual |
| Method | create_outpayments | Creates a list of new outpayments, the values of the individual |
| Class Method | get_active_methods | Returns a list of payment method interfaces tied with the |
| Class Method | get_by_name | Returns the Payment method associated by the nmae |
| Method | selectable | Finds out if the method is selectable, eg |
Inherited from Domain:
| Method | __init__ | Undocumented |
| Method | _create | Undocumented |
| Method | user | Undocumented |
| Class Method | iselect | Like select, but search on the adapter implementing the interface iface |
| Class Method | iselectBy | Like selectBy, but search on the adapter implementing the interface iface |
| Class Method | iselectOne | Like selectOne, but search on the adapter implementing the interface iface |
| Class Method | iselectOneBy | Like selectOneBy, but search on the adapter implementing the interface iface |
| Class Method | iget | Like get, but gets on the adapter implementing the interface iface |
Inherited from AbstractModel (via Domain, BaseDomain):
| Method | __ne__ | Undocumented |
| Method | __eq__ | Undocumented |
| Method | _SO_setValue | Undocumented |
| Method | clone | Get a persistent copy of an existent object. Remember that we can |
| Method | get_connection | Undocumented |
Inherited from AdaptableORMObject (via Domain):
| Class Method | registerFacet | Registers a facet for class cls. |
Inherited from Adaptable (via Domain, AdaptableORMObject):
| Class Method | getFacetType | Fetches a facet type associated with an interface, or raise |
| Class Method | getFacetTypes | Returns facet classes for this object |
| Method | addFacet | Adds a facet implementing iface for the current object |
| Method | removeFacet | Removes a facet from the current object |
| Method | getFacets | Gets a list of facets assoicated with the current object. |
| Returns | the operation associated with the method (type: object implementing IPaymentOperation ) | |
| Parameters | iface | a payment method interface eg IOutPayment
or IInPayment
|
| payment_group | a PaymentGroup
subclass
| |
| value | value of payment | |
| due_date | optional, due date of payment | |
| details | optional | |
| description | optional, description of the payment | |
| base_value | optional | |
| till | optional | |
| Returns | a PaymentAdaptToOutPayment
or PaymentAdaptToInPayment
| |
| Parameters | iface | a payment method interface eg IOutPayment
or IInPayment
|
| payment_group | a PaymentGroup
subclass
| |
| value | value of payment | |
| due_dates | a list of datetime objects | |
| Returns | a list of PaymentAdaptToOutPayment
or PaymentAdaptToInPayment
| |
| Parameters | payment_group | a PaymentGroup
|
| installment | current installment | |
| installments | total installments | |
| Returns | a payment description | |
| Parameters | payment_group | a PaymentGroup
subclass
|
| value | value of payment | |
| due_date | optional, due date of payment | |
| description | optional, description of the payment | |
| base_value | optional | |
| till | optional | |
| Returns | a PaymentAdaptToInPayment
| |
| Parameters | payment_group | a PaymentGroup
subclass
|
| value | value of payment | |
| due_date | optional, due date of payment | |
| description | optional, description of the payment | |
| base_value | optional | |
| till | optional | |
| Returns | a PaymentAdaptToOutPayment
| |
| Parameters | payment_group | a PaymentGroup
subclass
|
| value | total value of all payments | |
| due_dates | a list of datetime objects | |
| Returns | a list of PaymentAdaptToInPayment
| |
| Parameters | payment_group | a PaymentGroup
subclass
|
| value | total value of all payments | |
| due_dates | a list of datetime objects | |
| Returns | a list of PaymentAdaptToOutPayment
| |
| Parameters | name | name of a payment method |
| Returns | the payment method class
(type: PaymentMethod
instance
) | |