Account
Smarter API Account Manifest Constants
Smarter API Manifest - Account.metadata
- class smarter.apps.account.manifest.models.account.metadata.SAMAccountMetadata(*, name: str, description: str | None, version: str | None, tags: List[str] | None = <factory>, annotations: List[dict[str, str | int | float | bool | ~datetime.date | ~datetime.datetime | ~decimal.Decimal | ~uuid.UUID | bytes | list | dict]] | None=<factory>, accountNumber: str | None = None)[source]
Bases:
AbstractSAMMetadataBaseSmarter API Account Manifest - Metadata class.
Smarter API Manifest - Plugin.spec
- class smarter.apps.account.manifest.models.account.spec.SAMAccountSpec(*, config: SAMAccountSpecConfig)[source]
Bases:
AbstractSAMSpecBaseSmarter API Account Manifest Account.spec
- config: SAMAccountSpecConfig
- class smarter.apps.account.manifest.models.account.spec.SAMAccountSpecConfig(*, companyName: str, phoneNumber: str | None = None, address1: str | None = None, address2: str | None = None, city: str | None = None, state: str | None = None, postalCode: str | None = None, country: str = 'US', language: str = 'en-US', timezone: str = 'America/New_York', currency: str = 'USD')[source]
Bases:
AbstractSAMSpecBaseSmarter API Account Manifest Account.spec.config
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Return type:
- Parameters:
self – The BaseModel instance.
context – The context.
Smarter API Manifest - Account.status
- class smarter.apps.account.manifest.models.account.status.SAMAccountStatus(*, recordLocator: str, created: datetime, modified: datetime, adminAccount: str)[source]
Bases:
AbstractSAMStatusBaseSmarter API Account Manifest - Status class.
Smarter API Account Manifest
- class smarter.apps.account.manifest.models.account.model.SAMAccount(*, apiVersion: str, kind: str, metadata: SAMAccountMetadata, spec: SAMAccountSpec, status: SAMAccountStatus | None = None)[source]
Bases:
AbstractSAMBaseSmarter API Manifest - Account
- metadata: SAMAccountMetadata
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'from_attributes': True, 'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)
This function is meant to behave like a BaseModel method to initialize private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- Return type:
- Parameters:
self – The BaseModel instance.
context – The context.
- spec: SAMAccountSpec
- status: SAMAccountStatus | None