Class CouponCreateRequest
Request object for creating a coupon. Contains all configurable coupon properties.
public class CouponCreateRequest : IAdditionalDataHolder, IParsable
- Inheritance
-
CouponCreateRequest
- Implements
-
IAdditionalDataHolderIParsable
- Inherited Members
Constructors
CouponCreateRequest()
Instantiates a new CouponCreateRequest and sets the default values.
public CouponCreateRequest()
Properties
AcquisitionCondition
The acquisitionCondition property
public AcquisitionConditionRequest? AcquisitionCondition { get; set; }
Property Value
AdditionalData
Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
public IDictionary<string, object> AdditionalData { get; set; }
Property Value
BarcodeImageUrl
URL of the barcode image associated with the coupon. Used for in-store redemption.
public string? BarcodeImageUrl { get; set; }
Property Value
CouponCode
Unique code to be presented by the user to redeem the coupon. Optional.
public string? CouponCode { get; set; }
Property Value
Description
Detailed description of the coupon. Displayed to users.
public string? Description { get; set; }
Property Value
EndTimestamp
Coupon expiration time (epoch seconds). Coupon cannot be used after this time.
public long? EndTimestamp { get; set; }
Property Value
- long?
ImageUrl
URL of the main image representing the coupon. Displayed in the coupon list.
public string? ImageUrl { get; set; }
Property Value
MaxUseCountPerTicket
Maximum number of times a single coupon ticket can be used. Use -1 to indicate no limit.
public int? MaxUseCountPerTicket { get; set; }
Property Value
- int?
Reward
The reward property
public CouponRewardRequest? Reward { get; set; }
Property Value
StartTimestamp
Coupon start time (epoch seconds). Coupon can be used from this time.
public long? StartTimestamp { get; set; }
Property Value
- long?
Timezone
Timezone for interpreting start and end timestamps.
public CouponCreateRequest_timezone? Timezone { get; set; }
Property Value
Title
Title of the coupon. Displayed in the coupon list.
public string? Title { get; set; }
Property Value
UsageCondition
Conditions for using the coupon. Shown to users.
public string? UsageCondition { get; set; }
Property Value
Visibility
Visibility of the coupon. Determines who can see or acquire the coupon.
public CouponCreateRequest_visibility? Visibility { get; set; }
Property Value
Methods
CreateFromDiscriminatorValue(IParseNode)
Creates a new instance of the appropriate class based on discriminator value
public static CouponCreateRequest CreateFromDiscriminatorValue(IParseNode parseNode)
Parameters
parseNodeIParseNodeThe parse node to use to read the discriminator value and create the object
Returns
GetFieldDeserializers()
The deserialization information for the current model
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
Returns
- IDictionary<string, Action<IParseNode>>
A IDictionary<string, Action<IParseNode>>
Serialize(ISerializationWriter)
Serializes information the current object
public virtual void Serialize(ISerializationWriter writer)
Parameters
writerISerializationWriterSerialization writer to use to serialize this model