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