bursar.CommerceRuntimeOptions
class bursar.CommerceRuntimeOptions(*, providers, default_provider=None, checkout_intent_ttl_ms=86400000, preference_defaults=, logger=None)
Bases: _CommerceOptionsBase
Commerce options whose tenant and provider environment come from the runtime.
- Parameters:
- providers (Annotated *[*dict *[*str , Callable [ [CommerceProviderFactoryContext ] , PaymentProvider | Awaitable *[*PaymentProvider ] ] ] , MinLen *(*min_length=1 ) ])
- default_provider (Annotated *[*str , FieldInfo *(*annotation=NoneType , required=True , metadata= *[*MinLen *(*min_length=1 ) ] ) ] | None)
- checkout_intent_ttl_ms (Annotated *[*int , Strict *(*strict=True ) , Ge *(*ge=1 ) , Le *(*le=9007199254740991 ) ])
- preference_defaults (PreferencePatch)
- logger (Annotated *[*Logger , SkipValidation ( ) ] | None)
model_config = {'arbitrary_types_allowed': True, 'extra': 'forbid'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].