InappifyCheckoutPrice class

Server-authoritative price attached to a Web checkout.

Annotations

Constructors

InappifyCheckoutPrice({required num originalAmount, required num discountAmount, required num finalAmount, required String currency})
Creates an immutable checkout price.
const
InappifyCheckoutPrice.fromMap(Map<String, dynamic> map)
Decodes the documented checkout price shape.
factory

Properties

currency → String
ISO-style currency code returned by the service.
final
discountAmount → num
Discount applied by the server.
final
finalAmount → num
Final payable amount. Browser code must not recalculate this value.
final
hashCode → int
The hash code for this object.
no setterinherited
originalAmount → num
Price before discounts, in the server-defined currency unit.
final
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
toMap() → Map<String, Object?>
Encodes this price using standard message-codec values.
toString() → String
A string representation of this object.
inherited

Operators

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