/* Options: Date: 2024-06-18 15:30:33 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: CompanyCreditCardInformation.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.IO; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Db; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class CreditCard : BaseModel { [Ignore] public virtual bool IsValid { get; set; } [Required] public virtual Guid CompanyId { get; set; } public virtual int Id { get; set; } [Required] public virtual string Name { get; set; } [Required] public virtual bool Active { get; set; } [Required] public virtual string Type { get; set; } [Required] public virtual string ExpYear { get; set; } [Required] public virtual string ExpMonth { get; set; } [Required] public virtual string TicketId { get; set; } public virtual DateTime? Updated { get; set; } public virtual DateTime? Created { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { [Route("/billing/company/creditcard", "GET")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class CompanyCreditCardInformation : QueryDb, 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.")] public virtual Guid? CompanyId { get; set; } /// ///If you want to include only active credit cards /// [ApiMember(DataType="boolean", Description="If you want to include only active credit cards", ParameterType="query")] public virtual bool Active { get; set; } /// ///If you want to include only valid credit cards (not expired and valid) /// [ApiMember(DataType="boolean", Description="If you want to include only valid credit cards (not expired and valid)", ParameterType="query")] public virtual bool IsValid { get; set; } } public partial class CompanyCreditCardQueryResponse { /// ///The credit card id /// [ApiMember(Description="The credit card id")] public virtual int Id { get; set; } /// ///The credit card name /// [ApiMember(Description="The credit card name")] public virtual string Name { get; set; } /// ///If the credit card is active /// [ApiMember(Description="If the credit card is active")] public virtual bool Active { get; set; } /// ///If the credit card is valid (active and not expired) /// [ApiMember(Description="If the credit card is valid (active and not expired)")] public virtual bool IsValid { get; set; } /// ///The credit card type /// [ApiMember(Description="The credit card type")] public virtual string Type { get; set; } /// ///The credit card expiration Year /// [ApiMember(Description="The credit card expiration Year")] public virtual string ExpYear { get; set; } /// ///The credit card expiration month /// [ApiMember(Description="The credit card expiration month")] public virtual string ExpMonth { get; set; } /// ///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 virtual string TicketId { get; set; } /// ///The date when the credit card was saved. /// [ApiMember(Description="The date when the credit card was saved.")] public virtual DateTime? Created { get; set; } /// ///The date when the credit card was updated. /// [ApiMember(Description="The date when the credit card was updated.")] public virtual DateTime? Updated { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }