@@ -239,30 +239,34 @@ def get_pricing_info(self) -> ActorPricingInfo:
239
239
@docs_group ('Data structures' )
240
240
@dataclass (frozen = True )
241
241
class ChargeResult :
242
+ """Result of the `ChargingManager.charge` method."""
243
+
242
244
event_charge_limit_reached : bool
243
- """If true, no more events of this type can be charged within the limit"""
245
+ """If true, no more events of this type can be charged within the limit. """
244
246
245
247
charged_count : int
246
- """Total amount of charged events - may be lower than the requested amount"""
248
+ """Total amount of charged events - may be lower than the requested amount. """
247
249
248
250
chargeable_within_limit : dict [str , int | None ]
249
- """How many events of each known type can still be charged within the limit"""
251
+ """How many events of each known type can still be charged within the limit. """
250
252
251
253
252
254
@docs_group ('Data structures' )
253
255
@dataclass
254
256
class ActorPricingInfo :
257
+ """Result of the `ChargingManager.get_pricing_info` method."""
258
+
255
259
pricing_model : PricingModel | None
256
- """The currently effective pricing model"""
260
+ """The currently effective pricing model. """
257
261
258
262
max_total_charge_usd : Decimal
259
263
"""A configured limit for the total charged amount - if you exceed it, you won't receive more money than this."""
260
264
261
265
is_pay_per_event : bool
262
- """A shortcut - true if the Actor runs with the pay-per-event pricing model"""
266
+ """A shortcut - true if the Actor runs with the pay-per-event pricing model. """
263
267
264
268
per_event_prices : dict [str , Decimal ]
265
- """Price of every known event type"""
269
+ """Price of every known event type. """
266
270
267
271
268
272
@dataclass
0 commit comments