/* Options:
Date: 2024-11-21 12:17:16
Version: 8.23
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.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: CreateCompanyCreditCard.*
//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.Dtos;
namespace BokaMera.API.ServiceModel.Dtos
{
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; }
}
[Route("/billing/company/creditcard", "POST")]
[ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)]
[ValidateRequest("IsAuthenticated")]
public partial 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.")]
public virtual Guid? CompanyId { get; set; }
///
///The credit card name
///
[ApiMember(Description="The credit card name")]
public virtual string Name { get; set; }
///
///The credit card type. In example Mastercard, Visa
///
[ApiMember(Description="The credit card type. In example Mastercard, Visa")]
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; }
}
}
namespace BokaMera.API.ServiceModel.Interfaces
{
public partial interface ICompany
{
Guid? CompanyId { get; set; }
}
}