AfterSalesCouponDto class

A coupon that the customer gets after the checkout.

Inheritance

Constructors

AfterSalesCouponDto({required String id, String? title, String? description, required AfterSalesCouponCodeType codeType, String? code, DateTime? redeemStartDate, DateTime? redeemEndDate})
AfterSalesCouponDto.fromJson(Map<String, dynamic> json)
factory

Properties

code String?
The code used to redeem the coupon.
read / write
codeType AfterSalesCouponCodeType
read / write
description String?
Additional description for the coupon. E.g. how to redeem the coupon or why the coupon was given etc.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
id String
Id of the Anybill.AppApi.Models.DTO.V3.Bill.Misc.AfterSalesCoupon.AfterSalesCouponDto.
read / write
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-onlyoverride
redeemEndDate DateTime?
The end date of when the coupon can be redeemed.
read / write
redeemStartDate DateTime?
The start date of when the coupon can be redeemed.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
read-onlyinherited
title String?
Title of the coupon.
read / write

Methods

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