Skip to content

DiscountRedemption_Attributes

mauryaratan edited this page Mar 27, 2023 · 1 revision

DiscountRedemption.Attributes

An object representing the resources data.

public struct Attributes: Codable 

Inheritance

Codable

Properties

discountId

The ID of the discount this redemption belongs to.

public let discountId: Int

orderId

The ID of the order this redemption belongs to.

public let orderId: Int

discountName

The name of the discount.

public let discountName: String

discountCode

The discount code that was used at checkout.

public let discountCode: String

discountAmount

The amount of the discount. Either a fixed amount in cents or a percentage depending on the value of discount_amount_type.

public let discountAmount: Int

discountAmountType

The type of the discount_amount. Either percent or fixed.

public let discountAmountType: String

amount

A positive integer in cents representing the amount of the discount that was applied to the order (in the order currency).

public let amount: Int

createdAt

An ISO-8601 formatted date-time string indicating when the object was created.

public let createdAt: String

updatedAt

An ISO-8601 formatted date-time string indicating when the object was last updated.

public let updatedAt: String
Types
Global Functions
Clone this wiki locally