AmountBreakdown class

Amount breakdown.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

AmountBreakdown({Money? itemTotal, Money? shipping, Money? handling, Money? taxTotal, Money? insurance, Money? shippingDiscount, Money? discount})
const
AmountBreakdown.fromJson(Map<String, dynamic> json)
factory

Properties

discount Money?
The discount for all items within a given purchase_unit. discount.value can not be a negative number.
final
handling Money?
The handling fee for all items within a given purchase_unit. handling.value can not be a negative number.
final
hashCode int
The hash code for this object.
no setterinherited
insurance Money?
The insurance fee for all items within a given purchase_unit. insurance.value can not be a negative number.
final
itemTotal Money?
The subtotal for all items. Required if the request includes purchase_units[].items[].unit_amount. Must equal the sum of (items[].unit_amount * items[].quantity) for all items. item_total.value can not be a negative number.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shipping Money?
The shipping fee for all items within a given purchase_unit. shipping.value can not be a negative number.
final
shippingDiscount Money?
The shipping discount for all items within a given purchase_unit. shipping_discount.value can not be a negative number.
final
taxTotal Money?
The total tax for all items. Required if the request includes purchase_units.items.tax. Must equal the sum of (items[].tax * items[].quantity) for all items. tax_total.value can not be a negative number.
final

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.
override

Operators

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