Skip to content

Entities

AccountTransferId module-attribute

AccountTransferId = NewType('AccountTransferId', UUID)

BankTransferId module-attribute

BankTransferId = NewType('BankTransferId', UUID)

CardTransferId module-attribute

CardTransferId = NewType('CardTransferId', UUID)

InternalTransferId module-attribute

InternalTransferId = NewType('InternalTransferId', UUID)

PaymentRequestId module-attribute

PaymentRequestId = NewType('PaymentRequestId', UUID)

Transfer module-attribute

Transfer = (
    CardTransfer
    | BankTransfer
    | AccountTransfer
    | InternalTransfer
)

TransferEventId module-attribute

TransferEventId = NewType('TransferEventId', UUID)

TransferHistoryId module-attribute

TransferHistoryId = NewType('TransferHistoryId', UUID)

TransferId module-attribute

TransferId = (
    CardTransferId
    | BankTransferId
    | AccountTransferId
    | InternalTransferId
)

TransferUpdateId module-attribute

TransferUpdateId = NewType('TransferUpdateId', UUID)

AccountTransfer dataclass

AccountTransfer(
    id,
    workspace_key,
    external_id,
    direction,
    reference,
    effective_date,
    account_id,
    transfer_history_id,
    updates,
    events,
    raw,
)

account_id instance-attribute

account_id

direction instance-attribute

direction

effective_date instance-attribute

effective_date

events instance-attribute

events

external_id instance-attribute

external_id

id instance-attribute

id

raw instance-attribute

raw

reference instance-attribute

reference

transfer_history_id instance-attribute

transfer_history_id

updates instance-attribute

updates

workspace_key instance-attribute

workspace_key

__post_init__

__post_init__()

Ensure datetimes are timezone-aware.

Source code in components/payment_gateway/subcomponents/transfers/protected/entities.py
def __post_init__(self) -> None:
    """Ensure datetimes are timezone-aware."""
    self.effective_date = sanitize_tz(self.effective_date)

BalanceInformation dataclass

BalanceInformation(received, reserved, balance)

balance instance-attribute

balance

received instance-attribute

received

reserved instance-attribute

reserved

BankTransfer dataclass

BankTransfer(
    id,
    workspace_key,
    external_id,
    direction,
    effective_date,
    account_id,
    transfer_history_id,
    updates,
    events,
    sepa_mandate_id,
    sepa_beneficiary_id,
    raw,
)

account_id instance-attribute

account_id

direction instance-attribute

direction

effective_date instance-attribute

effective_date

events instance-attribute

events

external_id instance-attribute

external_id

id instance-attribute

id

raw instance-attribute

raw

sepa_beneficiary_id instance-attribute

sepa_beneficiary_id

sepa_mandate_id instance-attribute

sepa_mandate_id

transfer_history_id instance-attribute

transfer_history_id

updates instance-attribute

updates

workspace_key instance-attribute

workspace_key

__post_init__

__post_init__()

Ensure datetimes are timezone-aware.

Source code in components/payment_gateway/subcomponents/transfers/protected/entities.py
def __post_init__(self) -> None:
    """Ensure datetimes are timezone-aware."""
    self.effective_date = sanitize_tz(self.effective_date)

CardPaymentMerchant dataclass

CardPaymentMerchant(
    merchant_id, name, mcc, postal_code, city, country_code
)

city instance-attribute

city

country_code instance-attribute

country_code

ISO 3166-1 alpha-3 country code

mcc instance-attribute

mcc

merchant_id instance-attribute

merchant_id

name instance-attribute

name

postal_code instance-attribute

postal_code

CardTransfer dataclass

CardTransfer(
    id,
    workspace_key,
    external_id,
    effective_date,
    merchant,
    card_id,
    account_id,
    updates,
    events,
    raw,
    transfer_history_id,
)

account_id instance-attribute

account_id

card_id instance-attribute

card_id

effective_date instance-attribute

effective_date

events instance-attribute

events

external_id instance-attribute

external_id

id instance-attribute

id

merchant instance-attribute

merchant

raw instance-attribute

raw

transfer_history_id instance-attribute

transfer_history_id

updates instance-attribute

updates

workspace_key instance-attribute

workspace_key

__post_init__

__post_init__()

Ensure datetimes are timezone-aware.

Source code in components/payment_gateway/subcomponents/transfers/protected/entities.py
def __post_init__(self) -> None:
    """Ensure datetimes are timezone-aware."""
    self.effective_date = sanitize_tz(self.effective_date)

InternalTransfer dataclass

InternalTransfer(
    id,
    effective_date,
    amount,
    description,
    reference,
    transfer_history_id,
)

amount instance-attribute

amount

description instance-attribute

description

effective_date instance-attribute

effective_date

id instance-attribute

id

reference instance-attribute

reference

transfer_history_id instance-attribute

transfer_history_id

__post_init__

__post_init__()

Ensure datetimes are timezone-aware.

Source code in components/payment_gateway/subcomponents/transfers/protected/entities.py
def __post_init__(self) -> None:
    """Ensure datetimes are timezone-aware."""
    self.effective_date = sanitize_tz(self.effective_date)

TransferEvent dataclass

TransferEvent(
    id,
    workspace_key,
    external_id,
    effective_date,
    received,
    reserved,
    balance,
    status,
    raw,
)

balance instance-attribute

balance

effective_date instance-attribute

effective_date

external_id instance-attribute

external_id

id instance-attribute

id

raw instance-attribute

raw

received instance-attribute

received

reserved instance-attribute

reserved

status instance-attribute

status

workspace_key instance-attribute

workspace_key

__post_init__

__post_init__()

Ensure datetimes are timezone-aware.

Source code in components/payment_gateway/subcomponents/transfers/protected/entities.py
def __post_init__(self) -> None:
    """Ensure datetimes are timezone-aware."""
    self.effective_date = sanitize_tz(self.effective_date)

TransferHistory dataclass

TransferHistory(id, private_type, private_ref, created_at)

created_at instance-attribute

created_at

id instance-attribute

id

private_ref instance-attribute

private_ref

private_type instance-attribute

private_type

TransferUpdate dataclass

TransferUpdate(
    id,
    workspace_key,
    external_transfer_id,
    sequence_number,
    transfer_id,
    transfer_type,
    direction,
    occurred_at,
    amount,
    currency,
    status,
    external_transaction_id=None,
    raw=None,
)

amount instance-attribute

amount

currency instance-attribute

currency

direction instance-attribute

direction

external_transaction_id class-attribute instance-attribute

external_transaction_id = None

external_transfer_id instance-attribute

external_transfer_id

id instance-attribute

id

occurred_at instance-attribute

occurred_at

raw class-attribute instance-attribute

raw = None

sequence_number instance-attribute

sequence_number

status instance-attribute

status

transfer_id instance-attribute

transfer_id

transfer_type instance-attribute

transfer_type

workspace_key instance-attribute

workspace_key

__post_init__

__post_init__()

Ensure datetimes are timezone-aware.

Source code in components/payment_gateway/subcomponents/transfers/protected/entities.py
def __post_init__(self) -> None:
    """Ensure datetimes are timezone-aware."""
    self.occurred_at = sanitize_tz(self.occurred_at)