PromotionCodeCreateOptions class final

Constructors

PromotionCodeCreateOptions({bool? active, String? code, required String coupon, String? customer, List<String>? expand, DateTime? expiresAt, int? maxRedemptions, Map<String, String>? metadata, PromotionCodeRestrictions? restrictions})
const
PromotionCodeCreateOptions.fromJson(Object? json)
factory

Properties

active bool?
final
code String?
final
coupon String
final
customer String?
final
expand List<String>?
final
expiresAt DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
maxRedemptions int?
final
metadata Map<String, String>?
final
restrictions PromotionCodeRestrictions?
restrictions_params
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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>(PromotionCodeCreateOptions instance, Encoder<V> encoder) → V