bursar.BeginBilledOperationOptions
class bursar.BeginBilledOperationOptions(*, estimate, operation_key, operation_type='usage', billing_mode=None, ttl=None, feature=None, metadata=None)
Bases: _CreditsServiceModel
- Parameters:
- estimate (UsageMetrics | Decimal | int | str)
- operation_key (Annotated *[*str , BeforeValidator *(*func=~bursar.shared.idempotency.require_stable_key , json_schema_input_type=PydanticUndefined ) , Strict *(*strict=True ) ])
- operation_type (str)
- billing_mode (Literal [ 'strict' , 'overdraft' ] | None)
- ttl (Annotated *[*int | None , Strict *(*strict=True ) , Ge *(*ge=1 ) ])
- feature (str | None)
- metadata (CreditMetadata | None)
model_config = {'arbitrary_types_allowed': True, 'extra': 'forbid'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].