Checkout class abstract

The checkout

Available extensions
Annotations
  • @freezed

Constructors

Checkout({required String id, required bool ready, required AvailableShippingRates? availableShippingRates, required String createdAt, required String currencyCode, required PriceV2 totalTaxV2, required PriceV2 totalPriceV2, required bool taxesIncluded, required bool taxExempt, required PriceV2 subtotalPriceV2, required bool requiresShipping, @Default.new([]) List<AppliedGiftCards> appliedGiftCards, @JsonKey.new(fromJson: JsonHelper.lineItems) required List<LineItem> lineItems, Order? order, String? orderStatusUrl, String? shopifyPaymentsAccountId, MailingAddress? shippingAddress, ShippingRates? shippingLine, String? email, String? completedAt, String? note, String? webUrl, String? updatedAt})
The checkout constructor
const
factory
Checkout.fromJson(Map<String, dynamic> json)
The checkout from json
factory

Properties

appliedGiftCards List<AppliedGiftCards>
no setterinherited
availableShippingRates AvailableShippingRates?
no setterinherited
completedAt String?
no setterinherited
copyWith → $CheckoutCopyWith<Checkout>
Create a copy of Checkout with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt String
no setterinherited
currencyCode String
no setterinherited
email String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
lineItems List<LineItem>
no setterinherited
note String?
no setterinherited
order Order?
no setterinherited
orderStatusUrl String?
no setterinherited
ready bool
no setterinherited
requiresShipping bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shippingAddress MailingAddress?
no setterinherited
shippingLine ShippingRates?
no setterinherited
shopifyPaymentsAccountId String?
no setterinherited
subtotalPriceV2 PriceV2
no setterinherited
taxesIncluded bool
no setterinherited
taxExempt bool
no setterinherited
totalPriceV2 PriceV2
no setterinherited
totalTaxV2 PriceV2
no setterinherited
updatedAt String?
no setterinherited
webUrl String?
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_Checkout value)) → TResult

Available on Checkout, provided by the CheckoutPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_Checkout value)?) → TResult?

Available on Checkout, provided by the CheckoutPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_Checkout value)?, {required TResult orElse()}) → TResult

Available on Checkout, provided by the CheckoutPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String id, bool ready, AvailableShippingRates? availableShippingRates, String createdAt, String currencyCode, PriceV2 totalTaxV2, PriceV2 totalPriceV2, bool taxesIncluded, bool taxExempt, PriceV2 subtotalPriceV2, bool requiresShipping, List<AppliedGiftCards> appliedGiftCards, List<LineItem> lineItems, Order? order, String? orderStatusUrl, String? shopifyPaymentsAccountId, MailingAddress? shippingAddress, ShippingRates? shippingLine, String? email, String? completedAt, String? note, String? webUrl, String? updatedAt)?, {required TResult orElse()}) → TResult

Available on Checkout, provided by the CheckoutPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this Checkout to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String id, bool ready, AvailableShippingRates? availableShippingRates, String createdAt, String currencyCode, PriceV2 totalTaxV2, PriceV2 totalPriceV2, bool taxesIncluded, bool taxExempt, PriceV2 subtotalPriceV2, bool requiresShipping, List<AppliedGiftCards> appliedGiftCards, List<LineItem> lineItems, Order? order, String? orderStatusUrl, String? shopifyPaymentsAccountId, MailingAddress? shippingAddress, ShippingRates? shippingLine, String? email, String? completedAt, String? note, String? webUrl, String? updatedAt)) → TResult

Available on Checkout, provided by the CheckoutPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String id, bool ready, AvailableShippingRates? availableShippingRates, String createdAt, String currencyCode, PriceV2 totalTaxV2, PriceV2 totalPriceV2, bool taxesIncluded, bool taxExempt, PriceV2 subtotalPriceV2, bool requiresShipping, List<AppliedGiftCards> appliedGiftCards, List<LineItem> lineItems, Order? order, String? orderStatusUrl, String? shopifyPaymentsAccountId, MailingAddress? shippingAddress, ShippingRates? shippingLine, String? email, String? completedAt, String? note, String? webUrl, String? updatedAt)?) → TResult?

Available on Checkout, provided by the CheckoutPatterns extension

A variant of when that fallback to returning null

Operators

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