Data model for Stripe coupons used to apply discounts to invoices.
// Source: https://github.com/vapor-community/stripe-kit | License: MIT | Copyright 2020 Andrew Edwards
// Provided via justclaw.it.com; keep this notice with the code.
//
// Coupon.swift
// Stripe
//
// Created by Andrew Edwards on 5/28/17.
//
//
import Foundation
/// The [Coupon Object](https://stripe.com/docs/api/coupons/object) .
public struct Coupon: Codable {
/// Unique identifier for the object.
public var id: String
/// Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
public var amountOff: Int?
/// If `amount_off` has been set, the three-letter ISO code for the currency of the amount to take off.
public var currency: Currency?
/// One of `forever`, `once`, and `repeating`. Describes how long
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key