/* Options: Date: 2024-11-21 11:50:44 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: CompanyBillingInformation.* //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.Db; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Db { public partial class BaseModel { } public partial class BillingInformation : BaseModel { public virtual BillingMethod BillingMethod { get; set; } [Required] public virtual int BillingMethodId { get; set; } [Required] public virtual string Name { get; set; } public virtual string Attention { get; set; } public virtual string Street1 { get; set; } public virtual string Street2 { get; set; } public virtual string ZipCode { get; set; } public virtual string City { get; set; } public virtual string Email { get; set; } public virtual string CreditCard { get; set; } public virtual string CreditCardHolder { get; set; } public virtual string CreditCardNumber { get; set; } public virtual short? ValidToYear { get; set; } public virtual short? ValidToMonth { get; set; } public virtual string CSV { get; set; } [Required] public virtual DateTime Updated { get; set; } [Required] public virtual DateTime Created { get; set; } [Required] public virtual string CountryId { get; set; } [Required] public virtual int PaymentTermsDays { get; set; } public virtual string VATRegistrationNumber { get; set; } public virtual string GLN { get; set; } public virtual string ReferenceLine1 { get; set; } public virtual string ReferenceLine2 { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } [Required] public virtual Guid Id { get; set; } } public partial class BillingMethod : BaseModel { public BillingMethod() { BillingMethodCountriesRelation = new List{}; } public virtual List BillingMethodCountriesRelation { get; set; } [Required] public virtual string Name { get; set; } [Required] public virtual string Description { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } public virtual int Id { get; set; } } public partial class BillingMethodCountriesRelation : BaseModel { [Required] public virtual int BillingMethodId { get; set; } [Required] public virtual string CountryId { get; set; } public virtual DateTimeOffset? ModifiedDate { get; set; } } } namespace BokaMera.API.ServiceModel.Dtos { public partial class BillingMethodQueryResponse { public BillingMethodQueryResponse() { Countries = new List{}; } /// ///The billing method id /// [ApiMember(Description="The billing method id")] public virtual int Id { get; set; } /// ///The billing method name /// [ApiMember(Description="The billing method name")] public virtual string Name { get; set; } /// ///The billing method description /// [ApiMember(Description="The billing method description")] public virtual string Description { get; set; } /// ///The billing method is valid for the following countries /// [ApiMember(Description="The billing method is valid for the following countries")] public virtual List Countries { get; set; } } [Route("/billing/company", "GET")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class CompanyBillingInformation : QueryDb, IReturn> { /// ///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 the billing methods to select from /// [ApiMember(DataType="boolean", Description="If you want to include the billing methods to select from", ParameterType="query")] public virtual bool IncludeBillingMethodOptions { get; set; } } }