Order class

Constructors

Order.new({required int amount, required String reference, String? description, List<Item>? items, Map<String, dynamic>? metadata, Shipping? shipping, int? tax})
Creates a new instance of Order.
Order.fromJson(Map<String, dynamic> json)
factory

Properties

amount int
The total amount of the order. The value must be in cents.
final
description String?
A description of the order.
final
hashCode int
The hash code for this object.
no setterinherited
items List<Item>?
A list of items in the order.
final
metadata Map<String, dynamic>?
Additional information that can be sent to the payment gateway.
final
reference String
A identifier for the order.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shipping Shipping?
Shipping information.
final
tax int?
The total tax amount of the order. The value must be in cents.
final

Methods

copyWith({int? amount, String? description, List<Item>? items, Map<String, dynamic>? metadata, String? reference, Shipping? shipping, int? tax}) Order
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