ChargingManager
Index
Methods
calculate_max_event_charge_count_within_limit
{"content": ["Calculate how many instances of an event can be charged before we reach the configured limit.\n", {"
Parameters
event_name: str
Returns int | None
calculate_total_charged_amount
{"content": ["Calculate the total amount of money charged for pay-per-event events so far."]}
Returns Decimal
charge
{"content": ["Charge for a specified number of events - sub-operations of the Actor.\n\nThis is relevant only for the pay-per-event pricing model.\n", {"
Parameters
event_name: str
count: int = 1
Returns ChargeResult
get_pricing_info
{"content": ["Retrieve detailed information about the effective pricing of the current Actor run.\n\nThis can be used for instance when your code needs to support multiple pricing models in transition periods."]}
Returns ActorPricingInfo
{"content": ["Provides fine-grained access to pay-per-event functionality."]}