Table of Contents

Class CouponCreateRequest

Namespace
Line.OpenApi.Messaging.Generated.Api.Models
Assembly
Line.OpenApi.Messaging.dll

Request object for creating a coupon. Contains all configurable coupon properties.

public class CouponCreateRequest : IAdditionalDataHolder, IParsable
Inheritance
CouponCreateRequest
Implements
IAdditionalDataHolder
IParsable
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

AcquisitionConditionRequest

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

IDictionary<string, object>

BarcodeImageUrl

URL of the barcode image associated with the coupon. Used for in-store redemption.

public string? BarcodeImageUrl { get; set; }

Property Value

string

CouponCode

Unique code to be presented by the user to redeem the coupon. Optional.

public string? CouponCode { get; set; }

Property Value

string

Description

Detailed description of the coupon. Displayed to users.

public string? Description { get; set; }

Property Value

string

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

string

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

CouponRewardRequest

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

CouponCreateRequest_timezone?

Title

Title of the coupon. Displayed in the coupon list.

public string? Title { get; set; }

Property Value

string

UsageCondition

Conditions for using the coupon. Shown to users.

public string? UsageCondition { get; set; }

Property Value

string

Visibility

Visibility of the coupon. Determines who can see or acquire the coupon.

public CouponCreateRequest_visibility? Visibility { get; set; }

Property Value

CouponCreateRequest_visibility?

Methods

CreateFromDiscriminatorValue(IParseNode)

Creates a new instance of the appropriate class based on discriminator value

public static CouponCreateRequest CreateFromDiscriminatorValue(IParseNode parseNode)

Parameters

parseNode IParseNode

The parse node to use to read the discriminator value and create the object

Returns

CouponCreateRequest

A CouponCreateRequest

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

writer ISerializationWriter

Serialization writer to use to serialize this model