/* Options: Date: 2024-07-03 12:42:25 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateCompanyCreditCard.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export class CompanyCreditCardQueryResponse { /** @description The credit card id */ // @ApiMember(Description="The credit card id") public Id: number; /** @description The credit card name */ // @ApiMember(Description="The credit card name") public Name: string; /** @description If the credit card is active */ // @ApiMember(Description="If the credit card is active") public Active: boolean; /** @description If the credit card is valid (active and not expired) */ // @ApiMember(Description="If the credit card is valid (active and not expired)") public IsValid: boolean; /** @description The credit card type */ // @ApiMember(Description="The credit card type") public Type: string; /** @description The credit card expiration Year */ // @ApiMember(Description="The credit card expiration Year") public ExpYear: string; /** @description The credit card expiration month */ // @ApiMember(Description="The credit card expiration month") public ExpMonth: string; /** @description 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") public TicketId: string; /** @description The date when the credit card was saved. */ // @ApiMember(Description="The date when the credit card was saved.") public Created?: string; /** @description The date when the credit card was updated. */ // @ApiMember(Description="The date when the credit card was updated.") public Updated?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/billing/company/creditcard", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") export class CreateCompanyCreditCard implements IReturn, ICompany { /** @description 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.") public CompanyId?: string; /** @description The credit card name */ // @ApiMember(Description="The credit card name") public Name: string; /** @description The credit card type. In example Mastercard, Visa */ // @ApiMember(Description="The credit card type. In example Mastercard, Visa") public Type: string; /** @description The credit card expiration Year */ // @ApiMember(Description="The credit card expiration Year") public ExpYear: string; /** @description The credit card expiration month */ // @ApiMember(Description="The credit card expiration month") public ExpMonth: string; /** @description 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") public TicketId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CreateCompanyCreditCard'; } public getMethod() { return 'POST'; } public createResponse() { return new CompanyCreditCardQueryResponse(); } }