pay.types

Attributes

PaymentMethod

PaymentState

Classes

PriceDict

dict() -> new empty dictionary

Module Contents

class pay.types.PriceDict[source]

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

amount: float[source]
currency: str | None[source]
fee: float[source]
credit_card_payment: bool[source]
type pay.types.PaymentMethod = Literal['free', 'cc', 'manual'][source]
type pay.types.PaymentState = Literal['open', 'paid', 'failed', 'cancelled', 'invoiced'][source]