ace.centralize.models.finance

Finance models for Centralize

Models for finance transactions, statements, payment accounts, and payment requests.

Based on the Finance GraphQL schema (CreateTransactionInput, UpdateTransactionInput, CreateStatementInput, UpdateStatementInput, etc.)

class ace.centralize.models.finance.CreateFinanceTransactionObject(amount: float, amount_type_id: int, basis_amount: float, currency_id: int, rate: float, shared_percent: float, status_id: int, transaction_date: date, transaction_type_guid: UUID, description: str | None = None, party_id: int | None = None, reference_entity_id: int | None = None, reference_entity_type_id: str | None = None, statement_id: int | None = None)[source]

Bases: ModelBase

Maps to CreateTransactionInput

__init__(amount: float, amount_type_id: int, basis_amount: float, currency_id: int, rate: float, shared_percent: float, status_id: int, transaction_date: date, transaction_type_guid: UUID, description: str | None = None, party_id: int | None = None, reference_entity_id: int | None = None, reference_entity_type_id: str | None = None, statement_id: int | None = None)[source]
as_dict()
class ace.centralize.models.finance.UpdateFinanceTransactionObject(transaction_detail_id: int, amount: float | None = None, amount_type_id: int | None = None, basis_amount: float | None = None, description: str | None = None, party_id: int | None = None, rate: float | None = None, reference_entity_id: int | None = None, reference_entity_type_id: str | None = None, shared_percent: float | None = None, statement_id: int | None = None, status_id: int | None = None, transaction_date: date | None = None)[source]

Bases: ModelBase

Maps to UpdateTransactionInput

__init__(transaction_detail_id: int, amount: float | None = None, amount_type_id: int | None = None, basis_amount: float | None = None, description: str | None = None, party_id: int | None = None, rate: float | None = None, reference_entity_id: int | None = None, reference_entity_type_id: str | None = None, shared_percent: float | None = None, statement_id: int | None = None, status_id: int | None = None, transaction_date: date | None = None)[source]
as_dict()
class ace.centralize.models.finance.CreateFinanceStatementObject(currency_id: int, issuer_party_id: int, period_end_date: date, period_start_date: date, recipient_party_id: int, statement_type_guid: str, status_id: int, total_amount: float, description: str | None = None, reference_number: str | None = None, transaction_ids: List[int] | None = None)[source]

Bases: ModelBase

Maps to CreateStatementInput

__init__(currency_id: int, issuer_party_id: int, period_end_date: date, period_start_date: date, recipient_party_id: int, statement_type_guid: str, status_id: int, total_amount: float, description: str | None = None, reference_number: str | None = None, transaction_ids: List[int] | None = None)[source]
as_dict()
class ace.centralize.models.finance.UpdateFinanceStatementObject(statement_id: int, description: str | None = None, period_end_date: date | None = None, period_start_date: date | None = None, reference_number: str | None = None, status_id: int | None = None, total_amount: float | None = None)[source]

Bases: ModelBase

Maps to UpdateStatementInput

__init__(statement_id: int, description: str | None = None, period_end_date: date | None = None, period_start_date: date | None = None, reference_number: str | None = None, status_id: int | None = None, total_amount: float | None = None)[source]
as_dict()
class ace.centralize.models.finance.GatewayAccountParamInput(name: str, value: str)[source]

Bases: ModelBase

Maps to GatewayAccountParamInput in GraphQL schema.

__init__(name: str, value: str)[source]
as_dict()
ace.centralize.models.finance.GatewayAccountObject

alias of GatewayAccountParamInput

class ace.centralize.models.finance.PayableEntityInput(entity_id: int, entity_type_id: str)[source]

Bases: ModelBase

Maps to PayableEntityInput in GraphQL schema.

__init__(entity_id: int, entity_type_id: str)[source]
as_dict()
ace.centralize.models.finance.PayableEntityObject

alias of PayableEntityInput

class ace.centralize.models.finance.EntityChargeInput(amount: float, entity_id: int, entity_type_id: str, amount_type_guid: str | None = None, amount_type_id: int | None = None, description: str | None = None)[source]

Bases: ModelBase

Maps to EntityChargeInput in GraphQL schema.

__init__(amount: float, entity_id: int, entity_type_id: str, amount_type_guid: str | None = None, amount_type_id: int | None = None, description: str | None = None)[source]
as_dict()
ace.centralize.models.finance.PayableChargeObject

alias of EntityChargeInput

class ace.centralize.models.finance.PayableEntityRequestInput(entity_id: int, entity_type_id: str, charges: List[EntityChargeInput] | None = None, description: str | None = None)[source]

Bases: ModelBase

Maps to PayableEntityRequestInput in GraphQL schema.

__init__(entity_id: int, entity_type_id: str, charges: List[EntityChargeInput] | None = None, description: str | None = None)[source]
as_dict()
ace.centralize.models.finance.PayableEntityRequestObject

alias of PayableEntityRequestInput

class ace.centralize.models.finance.BillingAccountEntityCreateParamsInput(id: int | None = None, default_currency_id: int | None = None, gateway_account_params: List[GatewayAccountParamInput] | None = None, party_id: int | None = None, payment_gateway_id: int | None = None)[source]

Bases: ModelBase

Maps to BillingAccountEntityCreateParamsInput in GraphQL schema (nested in policy create/update).

__init__(id: int | None = None, default_currency_id: int | None = None, gateway_account_params: List[GatewayAccountParamInput] | None = None, party_id: int | None = None, payment_gateway_id: int | None = None)[source]
as_dict()
class ace.centralize.models.finance.CreatePaymentAccountObject[source]

Bases: ModelBase

Convenience wrappers for creating Stripe payment accounts.

class StripeCreditCard(account_id: int | None = None, default_currency_id: int | None = None, payment_gateway_id: int | None = None, customer_id: str = None, payment_method_id: str = None)[source]

Bases: object

__init__(account_id: int | None = None, default_currency_id: int | None = None, payment_gateway_id: int | None = None, customer_id: str = None, payment_method_id: str = None)[source]
class StripeEFT(account_id: int | None = None, default_currency_id: int | None = None, payment_gateway_id: int | None = None, customer_id: str = None, payment_method_id: str = None, mandate_id: str = None)[source]

Bases: object

__init__(account_id: int | None = None, default_currency_id: int | None = None, payment_gateway_id: int | None = None, customer_id: str = None, payment_method_id: str = None, mandate_id: str = None)[source]
as_dict()
class ace.centralize.models.finance.BillingAccountCreateParamsInput(gateway_account_params: List[GatewayAccountParamInput], default_currency_id: int | None = None, party_id: int | None = None, payable_entities: List[PayableEntityInput] | None = None, payment_gateway_id: int | None = None)[source]

Bases: ModelBase

Maps to BillingAccountCreateParamsInput in GraphQL schema (standalone create).

__init__(gateway_account_params: List[GatewayAccountParamInput], default_currency_id: int | None = None, party_id: int | None = None, payable_entities: List[PayableEntityInput] | None = None, payment_gateway_id: int | None = None)[source]
as_dict()
ace.centralize.models.finance.CreateAccountObject

alias of BillingAccountCreateParamsInput

class ace.centralize.models.finance.PaymentRequestParamsInput(entities: List[PayableEntityRequestInput], request_id: str, account_id: int | None = None, currency_id: int | None = None, description: str | None = None, payment_request_datetime_utc: datetime | None = None)[source]

Bases: ModelBase

Maps to PaymentRequestParamsInput in GraphQL schema.

__init__(entities: List[PayableEntityRequestInput], request_id: str, account_id: int | None = None, currency_id: int | None = None, description: str | None = None, payment_request_datetime_utc: datetime | None = None)[source]
as_dict()
ace.centralize.models.finance.CreatePaymentRequestObject

alias of PaymentRequestParamsInput