CustomerDiscount class final

Describes the current discount active on the customer, if there is one.

Constructors

CustomerDiscount({String? checkoutSession, required Coupon coupon, BankAccountCustomerOrId? customer, DateTime? end, required String id, String? invoice, String? invoiceItem, PromotionCodeOrId? promotionCode, required DateTime start, String? subscription})
Describes the current discount active on the customer, if there is one.
const
CustomerDiscount.fromJson(Object? json)
factory

Properties

checkoutSession → String?
final
coupon → Coupon
final
customer → BankAccountCustomerOrId?
final
end → DateTime?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
invoice → String?
final
invoiceItem → String?
final
object → String
final
promotionCode → PromotionCodeOrId?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → DateTime
final
subscription → String?
final

Methods

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

Operators

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

Static Methods

encode<V>(CustomerDiscount instance, Encoder<V> encoder) → V