PricePerBuyer class

Used to specify pricing rules for buyers/advertisers.

Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.

Constructors

PricePerBuyer({List<String>? advertiserIds, Buyer? buyer, Price? price})
PricePerBuyer.fromJson(Map json_)

Properties

advertiserIds List<String>?
The list of advertisers for this price when associated with this buyer.
getter/setter pair
buyer Buyer?
The buyer who will pay this price.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
price Price?
The specified price.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited