// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation

public struct DiscountOfferSchema: Codable, Equatable {
    /// Only one of percent_off or amount_off should be set
    public var amountOff: Int?
    public var durationMonths: Int
    /// Only one of percent_off or amount_off should be set
    public var percentOff: Int?
    public var stripeCouponId: String

    public init(amountOff: Int? = nil, durationMonths: Int, percentOff: Int? = nil, stripeCouponId: String) {
        self.amountOff = amountOff
        self.durationMonths = durationMonths
        self.percentOff = percentOff
        self.stripeCouponId = stripeCouponId
    }
}
