/* Options: Date: 2024-07-03 13:04:30 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateCompanyCreditCard.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* 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.") var CompanyId:UUID? = null /** * The credit card name */ @ApiMember(Description="The credit card name") var Name:String? = null /** * The credit card type. In example Mastercard, Visa */ @ApiMember(Description="The credit card type. In example Mastercard, Visa") var Type:String? = null /** * The credit card expiration Year */ @ApiMember(Description="The credit card expiration Year") var ExpYear:String? = null /** * The credit card expiration month */ @ApiMember(Description="The credit card expiration month") 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") 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") var Id:Int? = null /** * The credit card name */ @ApiMember(Description="The credit card name") var Name:String? = null /** * If the credit card is active */ @ApiMember(Description="If the credit card is active") 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)") var IsValid:Boolean? = null /** * The credit card type */ @ApiMember(Description="The credit card type") var Type:String? = null /** * The credit card expiration Year */ @ApiMember(Description="The credit card expiration Year") var ExpYear:String? = null /** * The credit card expiration month */ @ApiMember(Description="The credit card expiration month") 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") var TicketId:String? = null /** * The date when the credit card was saved. */ @ApiMember(Description="The date when the credit card was saved.") var Created:Date? = null /** * The date when the credit card was updated. */ @ApiMember(Description="The date when the credit card was updated.") var Updated:Date? = null } open interface ICompany { var CompanyId:UUID? }