Class TierRate (1.0.0)

TierRate(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The price rate indicating starting usage and its corresponding price.

Attributes

NameDescription
start_usage_amount float
Usage is priced at this rate only after this amount. Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units.
unit_price .money.Money
The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.

Methods

__delattr__

__delattr__(key)

Delete the value on the given field.

This is generally equivalent to setting a falsy value.

__eq__

__eq__(other)

Return True if the messages are equal, False otherwise.

__ne__

__ne__(other)

Return True if the messages are unequal, False otherwise.

__setattr__

__setattr__(key, value)

Set the value on the given field.

For well-known protocol buffer types which are marshalled, either the protocol buffer object or the Python equivalent is accepted.