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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Billing {
    public var purchaseCredits: PurchaseCredits {
        PurchaseCredits(path: path + "/purchase-credits")
    }

    public struct PurchaseCredits {
        /// Path: `/api/billing/purchase-credits`
        public let path: String

        /// Purchase Credits
        public func post(_ body: GenAPI.PurchaseSpec) -> Request<GenAPI.CreditPurchaseSchemaResponse> {
            Request(path: path, method: "POST", body: body, id: "studio_api_bots_billing_api_purchase_credits")
        }
    }
}
