/* Options: Date: 2025-09-13 22:51:24 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateCompanyCreditCard.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/billing/company/creditcard", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class CreateCompanyCreditCard : IReturn, ICompany { /** * The company id, if empty will use the company id for the user you are logged in with. */ @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") override var CompanyId:UUID? = null /** * The credit card name */ @ApiMember(Description="The credit card name") open var Name:String? = null /** * The credit card type. In example Mastercard, Visa */ @ApiMember(Description="The credit card type. In example Mastercard, Visa") open var Type:String? = null /** * The credit card expiration Year */ @ApiMember(Description="The credit card expiration Year") open var ExpYear:String? = null /** * The credit card expiration month */ @ApiMember(Description="The credit card expiration month") open var ExpMonth:String? = null /** * The credit card ticket name. This is secret information and won't be displayed */ @ApiMember(Description="The credit card ticket name. This is secret information and won't be displayed") open var TicketId:String? = null companion object { private val responseType = CompanyCreditCardQueryResponse::class.java } override fun getResponseType(): Any? = CreateCompanyCreditCard.responseType } open class CompanyCreditCardQueryResponse { /** * The credit card id */ @ApiMember(Description="The credit card id") open var Id:Int? = null /** * The credit card name */ @ApiMember(Description="The credit card name") open var Name:String? = null /** * If the credit card is active */ @ApiMember(Description="If the credit card is active") open var Active:Boolean? = null /** * If the credit card is valid (active and not expired) */ @ApiMember(Description="If the credit card is valid (active and not expired)") open var IsValid:Boolean? = null /** * The credit card type */ @ApiMember(Description="The credit card type") open var Type:String? = null /** * The credit card expiration Year */ @ApiMember(Description="The credit card expiration Year") open var ExpYear:String? = null /** * The credit card expiration month */ @ApiMember(Description="The credit card expiration month") open var ExpMonth:String? = null /** * The credit card ticket name. This is secret information and won't be displayed */ @ApiMember(Description="The credit card ticket name. This is secret information and won't be displayed") open var TicketId:String? = null /** * The date when the credit card was saved. */ @ApiMember(Description="The date when the credit card was saved.") open var Created:Date? = null /** * The date when the credit card was updated. */ @ApiMember(Description="The date when the credit card was updated.") open var Updated:Date? = null } interface ICompany { var CompanyId:UUID? }