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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Invite.Ios.PromoCode {
    public func promoCode(_ promoCode: String) -> WithPromoCode {
        WithPromoCode(path: "\(path)/\(promoCode)")
    }

    public struct WithPromoCode {
        /// Path: `/api/invite/ios/promo_code/{promo_code}`
        public let path: String

        /// Get Inviter Data From Promo Code
        ///
        /// Get the inviter handle and avatar image URL from the promo code
        /// We use lower case promo codes in the db.
        public var get: Request<GenAPI.IosInviterDataResponse> {
            Request(path: path, method: "GET", id: "studio_api_bots_invite_ios_api_get_inviter_data_from_promo_code")
        }
    }
}
