inttegro.bank_account
Models, requests, and enums for the Inttegro bank account resource.
The primary returned object is inttegro.bank_account.BankAccount. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.
1"""Models, requests, and enums for the Inttegro bank account resource. 2 3The primary returned object is ``inttegro.bank_account.BankAccount``. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.""" 4 5from importlib import import_module 6from typing import TYPE_CHECKING, Any 7 8if TYPE_CHECKING: 9 from .bank_account import BankAccount as BankAccount 10 from .created_bank_account import CreatedBankAccount as CreatedBankAccount 11 from .created_ghana_bank_account import CreatedGhanaBankAccount as CreatedGhanaBankAccount 12 from .created_owner import CreatedOwner as CreatedOwner 13 from .created_owner_address import CreatedOwnerAddress as CreatedOwnerAddress 14 from .ghana_bank_account import GhanaBankAccount as GhanaBankAccount 15 from .ghana_bank_account_params import GhanaBankAccountParams as GhanaBankAccountParams 16 from .owner import Owner as Owner 17 from .owner_address import OwnerAddress as OwnerAddress 18 from .owner_address_params import OwnerAddressParams as OwnerAddressParams 19 from .owner_address_update_params import OwnerAddressUpdateParams as OwnerAddressUpdateParams 20 from .owner_params import OwnerParams as OwnerParams 21 from .owner_update_params import OwnerUpdateParams as OwnerUpdateParams 22 from .params import Params as Params 23 from .type import Type as Type 24 from .updated_bank_account import UpdatedBankAccount as UpdatedBankAccount 25 from .updated_ghana_bank_account import UpdatedGhanaBankAccount as UpdatedGhanaBankAccount 26 from .updated_owner import UpdatedOwner as UpdatedOwner 27 from .updated_owner_address import UpdatedOwnerAddress as UpdatedOwnerAddress 28 29 30_EXPORTS: dict[str, tuple[str, str]] = { 31 "BankAccount": ("inttegro.bank_account.bank_account", "BankAccount"), 32 "CreatedBankAccount": ("inttegro.bank_account.created_bank_account", "CreatedBankAccount"), 33 "CreatedGhanaBankAccount": ("inttegro.bank_account.created_ghana_bank_account", "CreatedGhanaBankAccount"), 34 "CreatedOwner": ("inttegro.bank_account.created_owner", "CreatedOwner"), 35 "CreatedOwnerAddress": ("inttegro.bank_account.created_owner_address", "CreatedOwnerAddress"), 36 "GhanaBankAccount": ("inttegro.bank_account.ghana_bank_account", "GhanaBankAccount"), 37 "GhanaBankAccountParams": ("inttegro.bank_account.ghana_bank_account_params", "GhanaBankAccountParams"), 38 "Owner": ("inttegro.bank_account.owner", "Owner"), 39 "OwnerAddress": ("inttegro.bank_account.owner_address", "OwnerAddress"), 40 "OwnerAddressParams": ("inttegro.bank_account.owner_address_params", "OwnerAddressParams"), 41 "OwnerAddressUpdateParams": ("inttegro.bank_account.owner_address_update_params", "OwnerAddressUpdateParams"), 42 "OwnerParams": ("inttegro.bank_account.owner_params", "OwnerParams"), 43 "OwnerUpdateParams": ("inttegro.bank_account.owner_update_params", "OwnerUpdateParams"), 44 "Params": ("inttegro.bank_account.params", "Params"), 45 "Type": ("inttegro.bank_account.type", "Type"), 46 "UpdatedBankAccount": ("inttegro.bank_account.updated_bank_account", "UpdatedBankAccount"), 47 "UpdatedGhanaBankAccount": ("inttegro.bank_account.updated_ghana_bank_account", "UpdatedGhanaBankAccount"), 48 "UpdatedOwner": ("inttegro.bank_account.updated_owner", "UpdatedOwner"), 49 "UpdatedOwnerAddress": ("inttegro.bank_account.updated_owner_address", "UpdatedOwnerAddress"), 50} 51 52__all__ = [ 53 "BankAccount", 54 "CreatedBankAccount", 55 "CreatedGhanaBankAccount", 56 "CreatedOwner", 57 "CreatedOwnerAddress", 58 "GhanaBankAccount", 59 "GhanaBankAccountParams", 60 "Owner", 61 "OwnerAddress", 62 "OwnerAddressParams", 63 "OwnerAddressUpdateParams", 64 "OwnerParams", 65 "OwnerUpdateParams", 66 "Params", 67 "Type", 68 "UpdatedBankAccount", 69 "UpdatedGhanaBankAccount", 70 "UpdatedOwner", 71 "UpdatedOwnerAddress", 72] 73 74 75def __getattr__(name: str) -> Any: 76 """Load a public resource type on first access.""" 77 try: 78 module_name, attribute_name = _EXPORTS[name] 79 except KeyError: 80 raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None 81 value = getattr(import_module(module_name), attribute_name) 82 globals()[name] = value 83 return value
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class BankAccount(ApiModel): 15 """Typed bank account data in the bank account resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``FinancialAccountBank``. 24 """ 25 type: Literal['ghana_bank_account'] = field(init=False) 26 """Discriminator identifying the bank account type. Required. Python type: ``Literal['ghana_bank_account']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``ghana_bank_account``""" 27 ghana_bank_account: GhanaBankAccount | None = field(init=False) 28 """The ghana bank account associated with this bank account. Required; nullable. Python type: ``GhanaBankAccount | None``; wire name: ``ghana_bank_account``; JSON type: one of the documented JSON shapes"""
Typed bank account data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FinancialAccountBank.
Discriminator identifying the bank account type. Required. Python type: Literal['ghana_bank_account']; wire name: type; JSON type: string. Constraints: allowed values ghana_bank_account
The ghana bank account associated with this bank account. Required; nullable. Python type: GhanaBankAccount | None; wire name: ghana_bank_account; JSON type: one of the documented JSON shapes
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class CreatedBankAccount(ApiModel): 15 """Typed created bank account data in the bank account resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``FinancialAccountBankCreateResponse``. 24 """ 25 id: str = field(init=False) 26 """Empty in the current create response. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 27 type: Literal['ghana_bank_account'] = field(init=False) 28 """Discriminator identifying the created bank account type. Required. Python type: ``Literal['ghana_bank_account']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``ghana_bank_account``""" 29 ghana_bank_account: GhanaBankAccountCreateResponse | None = field(init=False) 30 """The ghana bank account associated with this created bank account. Optional; nullable. Python type: ``GhanaBankAccountCreateResponse | None``; wire name: ``ghana_bank_account``; JSON type: object (GhanaBankAccountCreateResponse)"""
Typed created bank account data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FinancialAccountBankCreateResponse.
Empty in the current create response. Required. Python type: str; wire name: id; JSON type: string
Discriminator identifying the created bank account type. Required. Python type: Literal['ghana_bank_account']; wire name: type; JSON type: string. Constraints: allowed values ghana_bank_account
The ghana bank account associated with this created bank account. Optional; nullable. Python type: GhanaBankAccountCreateResponse | None; wire name: ghana_bank_account; JSON type: object (GhanaBankAccountCreateResponse)
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class CreatedGhanaBankAccount(ApiModel): 14 """Typed created ghana bank account data in the bank account resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``GhanaBankAccountCreateResponse``. 23 """ 24 branch: str | None = field(init=False) 25 """The branch associated with this created ghana bank account. Optional; nullable. Python type: ``str | None``; wire name: ``branch``; JSON type: string""" 26 holder: FinancialAccountOwnerCreateResponse = field(init=False) 27 """The holder associated with this created ghana bank account. Required. Python type: ``FinancialAccountOwnerCreateResponse``; wire name: ``holder``; JSON type: object (FinancialAccountOwnerCreateResponse)""" 28 name: str = field(init=False) 29 """Human-readable name of the created ghana bank account. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 30 number: str = field(init=False) 31 """Human-readable number assigned to the created ghana bank account. Required. Python type: ``str``; wire name: ``number``; JSON type: string""" 32 sort_code: str | None = field(init=False) 33 """The sort code associated with this created ghana bank account. Optional; nullable. Python type: ``str | None``; wire name: ``sort_code``; JSON type: string""" 34 swift_code: str | None = field(init=False) 35 """The swift code associated with this created ghana bank account. Optional; nullable. Python type: ``str | None``; wire name: ``swift_code``; JSON type: string"""
Typed created ghana bank account data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: GhanaBankAccountCreateResponse.
The branch associated with this created ghana bank account. Optional; nullable. Python type: str | None; wire name: branch; JSON type: string
The holder associated with this created ghana bank account. Required. Python type: FinancialAccountOwnerCreateResponse; wire name: holder; JSON type: object (FinancialAccountOwnerCreateResponse)
Human-readable name of the created ghana bank account. Required. Python type: str; wire name: name; JSON type: string
Human-readable number assigned to the created ghana bank account. Required. Python type: str; wire name: number; JSON type: string
The sort code associated with this created ghana bank account. Optional; nullable. Python type: str | None; wire name: sort_code; JSON type: string
The swift code associated with this created ghana bank account. Optional; nullable. Python type: str | None; wire name: swift_code; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class CreatedOwner(ApiModel): 14 """Typed created owner data in the bank account resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FinancialAccountOwnerCreateResponse``. 23 """ 24 address: FinancialAccountAddressCreateResponse = field(init=False) 25 """The address associated with this created owner. Required. Python type: ``FinancialAccountAddressCreateResponse``; wire name: ``address``; JSON type: object (FinancialAccountAddressCreateResponse)""" 26 name: str = field(init=False) 27 """Human-readable name of the created owner. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
Typed created owner data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FinancialAccountOwnerCreateResponse.
The address associated with this created owner. Required. Python type: FinancialAccountAddressCreateResponse; wire name: address; JSON type: object (FinancialAccountAddressCreateResponse)
Human-readable name of the created owner. Required. Python type: str; wire name: name; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class CreatedOwnerAddress(ApiModel): 14 """Typed created owner address data in the bank account resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FinancialAccountAddressCreateResponse``. 23 """ 24 application_id: str = field(init=False) 25 """Identifier of the related application. Required. Python type: ``str``; wire name: ``application_id``; JSON type: string""" 26 city: str = field(init=False) 27 """The city associated with this created owner address. Required. Python type: ``str``; wire name: ``city``; JSON type: string""" 28 country: str = field(init=False) 29 """The country associated with this created owner address. Required. Python type: ``str``; wire name: ``country``; JSON type: string""" 30 id: str = field(init=False) 31 """Empty in the current create response. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 32 line_1: str = field(init=False) 33 """The line 1 associated with this created owner address. Required. Python type: ``str``; wire name: ``line_1``; JSON type: string""" 34 line_2: str | None = field(init=False) 35 """The line 2 associated with this created owner address. Optional; nullable. Python type: ``str | None``; wire name: ``line_2``; JSON type: string""" 36 name: str = field(init=False) 37 """Human-readable name of the created owner address. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 38 phone: str | None = field(init=False) 39 """The phone associated with this created owner address. Optional; nullable. Python type: ``str | None``; wire name: ``phone``; JSON type: string""" 40 post_code: str | None = field(init=False) 41 """The post code associated with this created owner address. Optional; nullable. Python type: ``str | None``; wire name: ``post_code``; JSON type: string""" 42 region: str = field(init=False) 43 """The region associated with this created owner address. Required. Python type: ``str``; wire name: ``region``; JSON type: string"""
Typed created owner address data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FinancialAccountAddressCreateResponse.
Identifier of the related application. Required. Python type: str; wire name: application_id; JSON type: string
The city associated with this created owner address. Required. Python type: str; wire name: city; JSON type: string
The country associated with this created owner address. Required. Python type: str; wire name: country; JSON type: string
Empty in the current create response. Required. Python type: str; wire name: id; JSON type: string
The line 1 associated with this created owner address. Required. Python type: str; wire name: line_1; JSON type: string
The line 2 associated with this created owner address. Optional; nullable. Python type: str | None; wire name: line_2; JSON type: string
Human-readable name of the created owner address. Required. Python type: str; wire name: name; JSON type: string
The phone associated with this created owner address. Optional; nullable. Python type: str | None; wire name: phone; JSON type: string
The post code associated with this created owner address. Optional; nullable. Python type: str | None; wire name: post_code; JSON type: string
The region associated with this created owner address. Required. Python type: str; wire name: region; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class GhanaBankAccount(ApiModel): 14 """Typed ghana bank account data in the bank account resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 """ 22 branch: str | None = field(init=False) 23 """The branch associated with this ghana bank account. Optional; nullable. Python type: ``str | None``; wire name: ``branch``; JSON type: string""" 24 holder: FinancialAccountOwner = field(init=False) 25 """The holder associated with this ghana bank account. Required. Python type: ``FinancialAccountOwner``; wire name: ``holder``; JSON type: object (FinancialAccountOwnerResponse)""" 26 name: str | None = field(init=False) 27 """Human-readable name of the ghana bank account. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string""" 28 number: str = field(init=False) 29 """Human-readable number assigned to the ghana bank account. Required. Python type: ``str``; wire name: ``number``; JSON type: string""" 30 sort_code: str | None = field(init=False) 31 """The sort code associated with this ghana bank account. Optional; nullable. Python type: ``str | None``; wire name: ``sort_code``; JSON type: string""" 32 swift_code: str | None = field(init=False) 33 """The swift code associated with this ghana bank account. Optional; nullable. Python type: ``str | None``; wire name: ``swift_code``; JSON type: string"""
Typed ghana bank account data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
The branch associated with this ghana bank account. Optional; nullable. Python type: str | None; wire name: branch; JSON type: string
The holder associated with this ghana bank account. Required. Python type: FinancialAccountOwner; wire name: holder; JSON type: object (FinancialAccountOwnerResponse)
Human-readable name of the ghana bank account. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
Human-readable number assigned to the ghana bank account. Required. Python type: str; wire name: number; JSON type: string
The sort code associated with this ghana bank account. Optional; nullable. Python type: str | None; wire name: sort_code; JSON type: string
The swift code associated with this ghana bank account. Optional; nullable. Python type: str | None; wire name: swift_code; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class GhanaBankAccountParams(ApiRequest): 14 """Parameters accepted by the ghana bank account params operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``FinancialAccountBankRequestBankAccountGhanaBankAccount``. 21 """ 22 bank_name: str | UnsetType = field(default=UNSET) 23 """The bank name associated with this ghana bank account param. Optional. Python type: ``str``; wire name: ``bank_name``; JSON type: string""" 24 branch: str | UnsetType = field(default=UNSET) 25 """The branch associated with this ghana bank account param. Optional. Python type: ``str``; wire name: ``branch``; JSON type: string""" 26 sort_code: str | UnsetType = field(default=UNSET) 27 """The sort code associated with this ghana bank account param. Optional. Python type: ``str``; wire name: ``sort_code``; JSON type: string. Constraints: minimum length 1""" 28 swift_code: str | UnsetType = field(default=UNSET) 29 """The swift code associated with this ghana bank account param. Optional. Python type: ``str``; wire name: ``swift_code``; JSON type: string. Constraints: minimum length 1""" 30 holder: FinancialAccountOwnerInput | UnsetType = field(default=UNSET) 31 """The holder associated with this ghana bank account param. Optional. Python type: ``FinancialAccountOwnerInput``; wire name: ``holder``; JSON type: object (FinancialAccountOwnerInput)""" 32 number: str 33 """Human-readable number assigned to the ghana bank account param. Required. Python type: ``str``; wire name: ``number``; JSON type: string. Constraints: minimum length 1"""
Parameters accepted by the ghana bank account params operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FinancialAccountBankRequestBankAccountGhanaBankAccount.
The bank name associated with this ghana bank account param. Optional. Python type: str; wire name: bank_name; JSON type: string
The branch associated with this ghana bank account param. Optional. Python type: str; wire name: branch; JSON type: string
The sort code associated with this ghana bank account param. Optional. Python type: str; wire name: sort_code; JSON type: string. Constraints: minimum length 1
The swift code associated with this ghana bank account param. Optional. Python type: str; wire name: swift_code; JSON type: string. Constraints: minimum length 1
The holder associated with this ghana bank account param. Optional. Python type: FinancialAccountOwnerInput; wire name: holder; JSON type: object (FinancialAccountOwnerInput)
Human-readable number assigned to the ghana bank account param. Required. Python type: str; wire name: number; JSON type: string. Constraints: minimum length 1
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class Owner(ApiModel): 14 """Typed owner data in the bank account resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FinancialAccountOwner``. 23 """ 24 address: FinancialAccountAddress = field(init=False) 25 """The address associated with this owner. Required. Python type: ``FinancialAccountAddress``; wire name: ``address``; JSON type: object""" 26 name: str = field(init=False) 27 """Human-readable name of the owner. Required. Python type: ``str``; wire name: ``name``; JSON type: string. Constraints: minimum length 1"""
Typed owner data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FinancialAccountOwner.
The address associated with this owner. Required. Python type: FinancialAccountAddress; wire name: address; JSON type: object
Human-readable name of the owner. Required. Python type: str; wire name: name; JSON type: string. Constraints: minimum length 1
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class OwnerAddress(ApiModel): 14 """Typed owner address data in the bank account resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FinancialAccountAddress``. 23 """ 24 city: str = field(init=False) 25 """The city associated with this owner address. Required. Python type: ``str``; wire name: ``city``; JSON type: string""" 26 country: str = field(init=False) 27 """The country associated with this owner address. Required. Python type: ``str``; wire name: ``country``; JSON type: string""" 28 line_1: str = field(init=False) 29 """The line 1 associated with this owner address. Required. Python type: ``str``; wire name: ``line_1``; JSON type: string""" 30 line_2: str | None = field(init=False) 31 """The line 2 associated with this owner address. Optional; nullable. Python type: ``str | None``; wire name: ``line_2``; JSON type: string""" 32 name: str | None = field(init=False) 33 """Human-readable name of the owner address. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string""" 34 phone: str | None = field(init=False) 35 """The phone associated with this owner address. Optional; nullable. Python type: ``str | None``; wire name: ``phone``; JSON type: string""" 36 post_code: str | None = field(init=False) 37 """The post code associated with this owner address. Optional; nullable. Python type: ``str | None``; wire name: ``post_code``; JSON type: string""" 38 region: str = field(init=False) 39 """The region associated with this owner address. Required. Python type: ``str``; wire name: ``region``; JSON type: string"""
Typed owner address data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FinancialAccountAddress.
The city associated with this owner address. Required. Python type: str; wire name: city; JSON type: string
The country associated with this owner address. Required. Python type: str; wire name: country; JSON type: string
The line 1 associated with this owner address. Required. Python type: str; wire name: line_1; JSON type: string
The line 2 associated with this owner address. Optional; nullable. Python type: str | None; wire name: line_2; JSON type: string
Human-readable name of the owner address. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
The phone associated with this owner address. Optional; nullable. Python type: str | None; wire name: phone; JSON type: string
The post code associated with this owner address. Optional; nullable. Python type: str | None; wire name: post_code; JSON type: string
The region associated with this owner address. Required. Python type: str; wire name: region; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class OwnerAddressParams(ApiRequest): 14 """Parameters accepted by the owner address params operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``FinancialAccountOwnerInputAddress``. 21 """ 22 city: str | UnsetType = field(default=UNSET) 23 """The city associated with this owner address param. Optional. Python type: ``str``; wire name: ``city``; JSON type: string""" 24 line_1: str | UnsetType = field(default=UNSET) 25 """The line 1 associated with this owner address param. Optional. Python type: ``str``; wire name: ``line_1``; JSON type: string""" 26 line_2: str | UnsetType = field(default=UNSET) 27 """The line 2 associated with this owner address param. Optional. Python type: ``str``; wire name: ``line_2``; JSON type: string""" 28 name: str | UnsetType = field(default=UNSET) 29 """Human-readable name of the owner address param. Optional. Python type: ``str``; wire name: ``name``; JSON type: string""" 30 phone: str | UnsetType = field(default=UNSET) 31 """The phone associated with this owner address param. Optional. Python type: ``str``; wire name: ``phone``; JSON type: string""" 32 post_code: str | UnsetType = field(default=UNSET) 33 """The post code associated with this owner address param. Optional. Python type: ``str``; wire name: ``post_code``; JSON type: string""" 34 region: str | UnsetType = field(default=UNSET) 35 """The region associated with this owner address param. Optional. Python type: ``str``; wire name: ``region``; JSON type: string""" 36 country: str 37 """The country associated with this owner address param. Required. Python type: ``str``; wire name: ``country``; JSON type: string. Constraints: minimum length 1"""
Parameters accepted by the owner address params operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FinancialAccountOwnerInputAddress.
The city associated with this owner address param. Optional. Python type: str; wire name: city; JSON type: string
The line 1 associated with this owner address param. Optional. Python type: str; wire name: line_1; JSON type: string
The line 2 associated with this owner address param. Optional. Python type: str; wire name: line_2; JSON type: string
Human-readable name of the owner address param. Optional. Python type: str; wire name: name; JSON type: string
The phone associated with this owner address param. Optional. Python type: str; wire name: phone; JSON type: string
The post code associated with this owner address param. Optional. Python type: str; wire name: post_code; JSON type: string
The region associated with this owner address param. Optional. Python type: str; wire name: region; JSON type: string
The country associated with this owner address param. Required. Python type: str; wire name: country; JSON type: string. Constraints: minimum length 1
12@dataclass(frozen=True, slots=True, kw_only=True) 13class OwnerAddressUpdateParams(ApiRequest): 14 """Parameters accepted by the owner address update params operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``FinancialAccountOwnerUpdateInputAddress``. 21 """ 22 city: str | UnsetType = field(default=UNSET) 23 """The city associated with this owner address update param. Optional. Python type: ``str``; wire name: ``city``; JSON type: string""" 24 country: str | UnsetType = field(default=UNSET) 25 """The country associated with this owner address update param. Optional. Python type: ``str``; wire name: ``country``; JSON type: string""" 26 line_1: str | UnsetType = field(default=UNSET) 27 """The line 1 associated with this owner address update param. Optional. Python type: ``str``; wire name: ``line_1``; JSON type: string""" 28 line_2: str | UnsetType = field(default=UNSET) 29 """The line 2 associated with this owner address update param. Optional. Python type: ``str``; wire name: ``line_2``; JSON type: string""" 30 name: str | UnsetType = field(default=UNSET) 31 """Human-readable name of the owner address update param. Optional. Python type: ``str``; wire name: ``name``; JSON type: string""" 32 phone: str | UnsetType = field(default=UNSET) 33 """The phone associated with this owner address update param. Optional. Python type: ``str``; wire name: ``phone``; JSON type: string""" 34 post_code: str | UnsetType = field(default=UNSET) 35 """The post code associated with this owner address update param. Optional. Python type: ``str``; wire name: ``post_code``; JSON type: string""" 36 region: str | UnsetType = field(default=UNSET) 37 """The region associated with this owner address update param. Optional. Python type: ``str``; wire name: ``region``; JSON type: string"""
Parameters accepted by the owner address update params operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FinancialAccountOwnerUpdateInputAddress.
The city associated with this owner address update param. Optional. Python type: str; wire name: city; JSON type: string
The country associated with this owner address update param. Optional. Python type: str; wire name: country; JSON type: string
The line 1 associated with this owner address update param. Optional. Python type: str; wire name: line_1; JSON type: string
The line 2 associated with this owner address update param. Optional. Python type: str; wire name: line_2; JSON type: string
Human-readable name of the owner address update param. Optional. Python type: str; wire name: name; JSON type: string
The phone associated with this owner address update param. Optional. Python type: str; wire name: phone; JSON type: string
The post code associated with this owner address update param. Optional. Python type: str; wire name: post_code; JSON type: string
The region associated with this owner address update param. Optional. Python type: str; wire name: region; JSON type: string
12@dataclass(frozen=True, slots=True, kw_only=True) 13class OwnerParams(ApiRequest): 14 """Parameters accepted by the owner params operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``FinancialAccountOwnerInput``. 21 """ 22 name: str 23 """Human-readable name of the owner param. Required. Python type: ``str``; wire name: ``name``; JSON type: string. Constraints: minimum length 1""" 24 address: FinancialAccountOwnerInputAddress 25 """The address associated with this owner param. Required. Python type: ``FinancialAccountOwnerInputAddress``; wire name: ``address``; JSON type: object"""
Parameters accepted by the owner params operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FinancialAccountOwnerInput.
Human-readable name of the owner param. Required. Python type: str; wire name: name; JSON type: string. Constraints: minimum length 1
The address associated with this owner param. Required. Python type: FinancialAccountOwnerInputAddress; wire name: address; JSON type: object
12@dataclass(frozen=True, slots=True, kw_only=True) 13class OwnerUpdateParams(ApiRequest): 14 """Parameters accepted by the owner update params operation. 15 16 This is an immutable, keyword-only request object. ``to_dict()`` uses 17 the documented wire names, omits fields left as ``UNSET``, serializes 18 string-backed enums by value, and requires timezone-aware datetimes. 19 20 API contract schema: ``FinancialAccountOwnerUpdateInput``. 21 """ 22 name: str | UnsetType = field(default=UNSET) 23 """Human-readable name of the owner update param. Optional. Python type: ``str``; wire name: ``name``; JSON type: string""" 24 address: FinancialAccountOwnerUpdateInputAddress | UnsetType = field(default=UNSET) 25 """The address associated with this owner update param. Optional. Python type: ``FinancialAccountOwnerUpdateInputAddress``; wire name: ``address``; JSON type: object"""
Parameters accepted by the owner update params operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FinancialAccountOwnerUpdateInput.
Human-readable name of the owner update param. Optional. Python type: str; wire name: name; JSON type: string
The address associated with this owner update param. Optional. Python type: FinancialAccountOwnerUpdateInputAddress; wire name: address; JSON type: object
13@dataclass(frozen=True, slots=True, kw_only=True) 14class Params(ApiRequest): 15 """Parameters accepted by the params operation. 16 17 This is an immutable, keyword-only request object. ``to_dict()`` uses 18 the documented wire names, omits fields left as ``UNSET``, serializes 19 string-backed enums by value, and requires timezone-aware datetimes. 20 21 API contract schema: ``FinancialAccountBankRequestBankAccount``. 22 """ 23 type: Literal['ghana_bank_account', BankAccountType.GHANA_BANK_ACCOUNT] 24 """Discriminator identifying the param type. Required. Python type: ``Literal['ghana_bank_account', BankAccountType.GHANA_BANK_ACCOUNT]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``ghana_bank_account``""" 25 ghana_bank_account: FinancialAccountBankRequestBankAccountGhanaBankAccount 26 """The ghana bank account associated with this param. Required. Python type: ``FinancialAccountBankRequestBankAccountGhanaBankAccount``; wire name: ``ghana_bank_account``; JSON type: one of the documented JSON shapes"""
Parameters accepted by the params operation.
This is an immutable, keyword-only request object. to_dict() uses
the documented wire names, omits fields left as UNSET, serializes
string-backed enums by value, and requires timezone-aware datetimes.
API contract schema: FinancialAccountBankRequestBankAccount.
Discriminator identifying the param type. Required. Python type: Literal['ghana_bank_account', BankAccountType.GHANA_BANK_ACCOUNT]; wire name: type; JSON type: string. Constraints: allowed values ghana_bank_account
The ghana bank account associated with this param. Required. Python type: FinancialAccountBankRequestBankAccountGhanaBankAccount; wire name: ghana_bank_account; JSON type: one of the documented JSON shapes
11class Type(WireEnum): 12 """Typed type data in the bank account resource namespace. 13 14 Members are strings as well as enum values, so they compare naturally 15 with API payloads and serialize to the lowercase wire value shown below. 16 17 API contract schema: ``BankAccountType``. 18 """ 19 GHANA_BANK_ACCOUNT = "ghana_bank_account" 20 """Wire value ``ghana_bank_account`` (ghana bank account)"""
Typed type data in the bank account resource namespace.
Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.
API contract schema: BankAccountType.
Wire value ghana_bank_account (ghana bank account)
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 14class UpdatedBankAccount(ApiModel): 15 """Typed updated bank account data in the bank account resource namespace. 16 17 Instances are immutable API responses. ``from_dict()`` decodes nested 18 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 19 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 20 Fields not returned by the API remain absent and can still be queried 21 through mapping-style access. 22 23 API contract schema: ``FinancialAccountBankUpdateResponse``. 24 """ 25 id: str = field(init=False) 26 """Unique identifier for this updated bank account. Required. Python type: ``str``; wire name: ``id``; JSON type: string""" 27 type: Literal['ghana_bank_account'] = field(init=False) 28 """Discriminator identifying the updated bank account type. Required. Python type: ``Literal['ghana_bank_account']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``ghana_bank_account``""" 29 ghana_bank_account: GhanaBankAccountUpdateResponse | None = field(init=False) 30 """The ghana bank account associated with this updated bank account. Optional; nullable. Python type: ``GhanaBankAccountUpdateResponse | None``; wire name: ``ghana_bank_account``; JSON type: object (GhanaBankAccountUpdateResponse)"""
Typed updated bank account data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FinancialAccountBankUpdateResponse.
Unique identifier for this updated bank account. Required. Python type: str; wire name: id; JSON type: string
Discriminator identifying the updated bank account type. Required. Python type: Literal['ghana_bank_account']; wire name: type; JSON type: string. Constraints: allowed values ghana_bank_account
The ghana bank account associated with this updated bank account. Optional; nullable. Python type: GhanaBankAccountUpdateResponse | None; wire name: ghana_bank_account; JSON type: object (GhanaBankAccountUpdateResponse)
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class UpdatedGhanaBankAccount(ApiModel): 14 """Typed updated ghana bank account data in the bank account resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``GhanaBankAccountUpdateResponse``. 23 """ 24 branch: str | None = field(init=False) 25 """The branch associated with this updated ghana bank account. Optional; nullable. Python type: ``str | None``; wire name: ``branch``; JSON type: string""" 26 holder: FinancialAccountOwner = field(init=False) 27 """The holder associated with this updated ghana bank account. Required. Python type: ``FinancialAccountOwner``; wire name: ``holder``; JSON type: object (FinancialAccountOwnerResponse)""" 28 name: str = field(init=False) 29 """Human-readable name of the updated ghana bank account. Required. Python type: ``str``; wire name: ``name``; JSON type: string""" 30 number: str = field(init=False) 31 """Human-readable number assigned to the updated ghana bank account. Required. Python type: ``str``; wire name: ``number``; JSON type: string""" 32 sort_code: str | None = field(init=False) 33 """The sort code associated with this updated ghana bank account. Optional; nullable. Python type: ``str | None``; wire name: ``sort_code``; JSON type: string""" 34 swift_code: str | None = field(init=False) 35 """The swift code associated with this updated ghana bank account. Optional; nullable. Python type: ``str | None``; wire name: ``swift_code``; JSON type: string"""
Typed updated ghana bank account data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: GhanaBankAccountUpdateResponse.
The branch associated with this updated ghana bank account. Optional; nullable. Python type: str | None; wire name: branch; JSON type: string
The holder associated with this updated ghana bank account. Required. Python type: FinancialAccountOwner; wire name: holder; JSON type: object (FinancialAccountOwnerResponse)
Human-readable name of the updated ghana bank account. Required. Python type: str; wire name: name; JSON type: string
Human-readable number assigned to the updated ghana bank account. Required. Python type: str; wire name: number; JSON type: string
The sort code associated with this updated ghana bank account. Optional; nullable. Python type: str | None; wire name: sort_code; JSON type: string
The swift code associated with this updated ghana bank account. Optional; nullable. Python type: str | None; wire name: swift_code; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class UpdatedOwner(ApiModel): 14 """Typed updated owner data in the bank account resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FinancialAccountOwnerUpdateResponse``. 23 """ 24 address: FinancialAccountAddressUpdateResponse = field(init=False) 25 """The address associated with this updated owner. Required. Python type: ``FinancialAccountAddressUpdateResponse``; wire name: ``address``; JSON type: object (FinancialAccountAddressUpdateResponse)""" 26 name: str = field(init=False) 27 """Human-readable name of the updated owner. Required. Python type: ``str``; wire name: ``name``; JSON type: string"""
Typed updated owner data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FinancialAccountOwnerUpdateResponse.
The address associated with this updated owner. Required. Python type: FinancialAccountAddressUpdateResponse; wire name: address; JSON type: object (FinancialAccountAddressUpdateResponse)
Human-readable name of the updated owner. Required. Python type: str; wire name: name; JSON type: string
12@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False) 13class UpdatedOwnerAddress(ApiModel): 14 """Typed updated owner address data in the bank account resource namespace. 15 16 Instances are immutable API responses. ``from_dict()`` decodes nested 17 objects, string-backed enums, and timezone-aware ISO-8601 timestamps; 18 ``to_dict()`` returns the corresponding JSON-compatible wire shape. 19 Fields not returned by the API remain absent and can still be queried 20 through mapping-style access. 21 22 API contract schema: ``FinancialAccountAddressUpdateResponse``. 23 """ 24 city: str = field(init=False) 25 """The city associated with this updated owner address. Required. Python type: ``str``; wire name: ``city``; JSON type: string""" 26 country: str = field(init=False) 27 """The country associated with this updated owner address. Required. Python type: ``str``; wire name: ``country``; JSON type: string""" 28 id: str | None = field(init=False) 29 """Unique identifier for this updated owner address. Optional; nullable. Python type: ``str | None``; wire name: ``id``; JSON type: string""" 30 line_1: str = field(init=False) 31 """The line 1 associated with this updated owner address. Required. Python type: ``str``; wire name: ``line_1``; JSON type: string""" 32 line_2: str | None = field(init=False) 33 """The line 2 associated with this updated owner address. Optional; nullable. Python type: ``str | None``; wire name: ``line_2``; JSON type: string""" 34 name: str | None = field(init=False) 35 """Human-readable name of the updated owner address. Optional; nullable. Python type: ``str | None``; wire name: ``name``; JSON type: string""" 36 phone: str | None = field(init=False) 37 """The phone associated with this updated owner address. Optional; nullable. Python type: ``str | None``; wire name: ``phone``; JSON type: string""" 38 post_code: str | None = field(init=False) 39 """The post code associated with this updated owner address. Optional; nullable. Python type: ``str | None``; wire name: ``post_code``; JSON type: string""" 40 region: str = field(init=False) 41 """The region associated with this updated owner address. Required. Python type: ``str``; wire name: ``region``; JSON type: string"""
Typed updated owner address data in the bank account resource namespace.
Instances are immutable API responses. from_dict() decodes nested
objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
to_dict() returns the corresponding JSON-compatible wire shape.
Fields not returned by the API remain absent and can still be queried
through mapping-style access.
API contract schema: FinancialAccountAddressUpdateResponse.
The city associated with this updated owner address. Required. Python type: str; wire name: city; JSON type: string
The country associated with this updated owner address. Required. Python type: str; wire name: country; JSON type: string
Unique identifier for this updated owner address. Optional; nullable. Python type: str | None; wire name: id; JSON type: string
The line 1 associated with this updated owner address. Required. Python type: str; wire name: line_1; JSON type: string
The line 2 associated with this updated owner address. Optional; nullable. Python type: str | None; wire name: line_2; JSON type: string
Human-readable name of the updated owner address. Optional; nullable. Python type: str | None; wire name: name; JSON type: string
The phone associated with this updated owner address. Optional; nullable. Python type: str | None; wire name: phone; JSON type: string
The post code associated with this updated owner address. Optional; nullable. Python type: str | None; wire name: post_code; JSON type: string
The region associated with this updated owner address. Required. Python type: str; wire name: region; JSON type: string