Skip to content

Models

components.payment_gateway.subcomponents.merchants.models.helpers

load_all_models

load_all_models()
Source code in components/payment_gateway/subcomponents/merchants/models/helpers.py
4
5
6
7
8
9
def load_all_models() -> list[type[DbModel]]:
    from components.payment_gateway.subcomponents.merchants.models.merchant_info import (
        MerchantInfo,
    )

    return [MerchantInfo]

components.payment_gateway.subcomponents.merchants.models.merchant_info

MerchantInfo

Bases: BaseModel

__table_args__ class-attribute instance-attribute

__table_args__ = {'schema': PAYMENT_GATEWAY_SCHEMA_NAME}

__tablename__ class-attribute instance-attribute

__tablename__ = 'merchant_info'

acquirer_id class-attribute instance-attribute

acquirer_id = mapped_column(String(30), nullable=True)

Provider-specific acquirer ID (Used by Adyen but not Swan)

city class-attribute instance-attribute

city = mapped_column(String(), nullable=True)

City name

country class-attribute instance-attribute

country = mapped_column(String(), nullable=True)

English country name

mcc class-attribute instance-attribute

mcc = mapped_column(String(4), nullable=True)

Merchant Category Code (MCC)

merchant_id class-attribute instance-attribute

merchant_id = mapped_column(
    String(30), index=True, unique=True, nullable=False
)

Merchant ID (acquirer- and provider-specific)

name class-attribute instance-attribute

name = mapped_column(String(), nullable=True)

Merchant name

postal_code class-attribute instance-attribute

postal_code = mapped_column(String(), nullable=True)

Postal code