CouponCreateOptions class final
Constructors
-
CouponCreateOptions({int? amountOff, CouponAppliesTo? appliesTo, String? currency, Map<
String, CouponCurrencyOption> ? currencyOptions, CouponDuration? duration, int? durationInMonths, List<String> ? expand, String? id, int? maxRedemptions, Map<String, String> ? metadata, String? name, double? percentOff, DateTime? redeemBy}) -
const
- CouponCreateOptions.fromJson(Object? json)
-
factory
Properties
- amountOff → int?
-
final
- appliesTo → CouponAppliesTo?
-
applies_to_params
final
- currency → String?
-
final
-
currencyOptions
→ Map<
String, CouponCurrencyOption> ? -
final
- duration → CouponDuration?
-
final
- durationInMonths → int?
-
final
-
expand
→ List<
String> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
final
- maxRedemptions → int?
-
final
-
metadata
→ Map<
String, String> ? -
final
- name → String?
-
final
- percentOff → double?
-
final
- redeemBy → DateTime?
-
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> (CouponCreateOptions instance, Encoder< V> encoder) → V