Table of Contents

Class CouponResponse

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

Detailed information about a coupon, including all properties and current status.

public class CouponResponse : IAdditionalDataHolder, IParsable
Inheritance
CouponResponse
Implements
IAdditionalDataHolder
IParsable
Inherited Members

Constructors

CouponResponse()

Instantiates a new CouponResponse and sets the default values.

public CouponResponse()

Properties

AcquisitionCondition

The acquisitionCondition property

public AcquisitionConditionResponse? AcquisitionCondition { get; set; }

Property Value

AcquisitionConditionResponse

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.

public string? CouponCode { get; set; }

Property Value

string

CouponId

Unique identifier of the coupon.

public string? CouponId { get; set; }

Property Value

string

CreatedTimestamp

Created timestamp (seconds) of the coupon.

public long? CreatedTimestamp { get; set; }

Property Value

long?

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

MaxAcquireCount

Maximum number of coupons that can be issued in total.

public long? MaxAcquireCount { get; set; }

Property Value

long?

MaxTicketPerUser

Maximum number of coupon tickets a single user can acquire.

public long? MaxTicketPerUser { get; set; }

Property Value

long?

MaxUseCountPerTicket

Maximum number of times a single coupon ticket can be used.

public int? MaxUseCountPerTicket { get; set; }

Property Value

int?

Reward

The reward property

public CouponRewardResponse? Reward { get; set; }

Property Value

CouponRewardResponse

StartTimestamp

Coupon start time (epoch seconds). Coupon can be used from this time.

public long? StartTimestamp { get; set; }

Property Value

long?

Status

Current status of the coupon.

public CouponResponse_status? Status { get; set; }

Property Value

CouponResponse_status?

Timezone

Timezone for interpreting start and end timestamps.

public CouponResponse_timezone? Timezone { get; set; }

Property Value

CouponResponse_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 CouponResponse_visibility? Visibility { get; set; }

Property Value

CouponResponse_visibility?

Methods

CreateFromDiscriminatorValue(IParseNode)

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

public static CouponResponse CreateFromDiscriminatorValue(IParseNode parseNode)

Parameters

parseNode IParseNode

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

Returns

CouponResponse

A CouponResponse

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