Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

53 lines
2.7 KiB
Swift

//
// StandingAPI.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
open class StandingAPI {
/**
Reports what keeping this entity costs every year, itemised.
- parameter upkeepIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: Upkeep
*/
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
open class func postStandingUpkeep(upkeepIn: UpkeepIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) async throws(ErrorResponse) -> Upkeep {
return try await postStandingUpkeepWithRequestBuilder(upkeepIn: upkeepIn, apiConfiguration: apiConfiguration).execute().body
}
/**
Reports what keeping this entity costs every year, itemised.
- POST /v1/standing/upkeep
- Reports what keeping this entity costs every year, itemised. This is the figure that decides where to incorporate, and the one a formation price cannot show: Delaware is cheaper to form than Wyoming for a corporation and dearer to keep, so a founder shown only the formation fee is shown the half that reverses. Each state line carries the authority that publishes it and the date it was checked, and a franchise tax that scales is marked a minimum rather than quoted as final.
- Bearer Token:
- type: http
- name: bearer
- parameter upkeepIn: (body)
- parameter apiConfiguration: The configuration for the http request.
- returns: RequestBuilder<Upkeep>
*/
open class func postStandingUpkeepWithRequestBuilder(upkeepIn: UpkeepIn, apiConfiguration: HanzoAPIConfiguration = HanzoAPIConfiguration.shared) -> RequestBuilder<Upkeep> {
let localVariablePath = "/v1/standing/upkeep"
let localVariableURLString = apiConfiguration.basePath + localVariablePath
let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: upkeepIn, codableHelper: apiConfiguration.codableHelper)
let localVariableUrlComponents = URLComponents(string: localVariableURLString)
let localVariableNillableHeaders: [String: (any Sendable)?] = [
"Content-Type": "application/json",
]
let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders)
let localVariableRequestBuilder: RequestBuilder<Upkeep>.Type = apiConfiguration.requestBuilderFactory.getBuilder()
return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration)
}
}