Entities
ExpenseCategory
dataclass
¶
An Expense Category is a high level concept to categorize expenses (or payments), as its name implies. A given payment can match several categories, for example food expenses, grocery stores, payments made abroad, payments made on Sunday, etc.
Expense Limits are typically in limited number for a given application. They are not linked to a specific card, account, or payment method.
Each payment must belong to at least one Expense Category to be authorized.
LineOfCredit
dataclass
¶
LineOfCredit(
id,
expense_category_id,
owner_type,
owner_ref,
credits_limit,
expensed_credits,
available_credits,
)
A Line of Credit is a high level concept to manage expenses made by a given owner. Each Line of Credit belongs to an Expense Category.
For each Expense Category a payment belongs to, there must be a matching Line of Credit with sufficient credits to cover the payment.
available_credits
instance-attribute
¶
Available credits for the Line of Credit (in minor units).
credits_limit
instance-attribute
¶
Credits limit for the Line of Credit (in minor units).
expense_category_id
instance-attribute
¶
Category of expenses covered by the line of credit
expensed_credits
instance-attribute
¶
Expensed credits for the Line of Credit (in minor units).
owner_ref
instance-attribute
¶
Application-specific reference to the owner of the line of credit.
owner_type
instance-attribute
¶
Application-specific type of owner for the line of credit.
PendingTransaction
dataclass
¶
Information about a transaction to be authorized.
external_id
instance-attribute
¶
ID used by the external payment service provider to identify the transaction.
PendingTransactionMerchantInfo
dataclass
¶
PendingTransactionMerchantInfo(
merchant_id,
acquirer_id,
mcc,
name,
country,
postal_code=None,
city=None,
)
Merchant information for a pending transaction.
Note
All fields are always present during authorization, those which are None might simply be irrelevant for the merchant (e.g. e-commerce platforms may not have a postal code)