/* Options: Date: 2024-11-24 14:55:29 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //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: CalculatePaymentPlanRequest.* //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 ClubReady.Web.Api; using ClubReady.Core.Api.Models; using ClubReady.Web.Api.Sales.Model; namespace ClubReady.Core.Api.Models { public partial class ApiDtoBase { public virtual string ApiKey { get; set; } public virtual int? StoreId { get; set; } public virtual int? ChainId { get; set; } } public partial class CalculatePaymentPlanRequestDto : ApiDtoBase { public virtual int InstallmentPlanId { get; set; } public virtual int PackageId { get; set; } public virtual DateTime? StartDate { get; set; } public virtual string PromoCode { get; set; } } public partial class CalculatePaymentPlanResultDto { public CalculatePaymentPlanResultDto() { Payments = new List{}; Fees = new List{}; } public virtual string PlanTotal { get; set; } public virtual string SubTotal { get; set; } public virtual float? TaxRate { get; set; } public virtual string EnhancementFee { get; set; } public virtual string EnhancementFeeTaxAmount { get; set; } public virtual bool TaxEnhFee { get; set; } public virtual string Tax { get; set; } public virtual string TotalDueToday { get; set; } public virtual List Payments { get; set; } public virtual List Fees { get; set; } public virtual bool IsEvergreen { get; set; } public virtual bool RequirePaymentProfile { get; set; } } public partial class PaymentPlanInstallment { public virtual bool PayToday { get; set; } public virtual decimal Amount { get; set; } public virtual bool Taxed { get; set; } public virtual float? TaxRate { get; set; } public virtual decimal? TaxAmount { get; set; } public virtual string FeeName { get; set; } public virtual DateTime DueDate { get; set; } public virtual string Total { get; set; } public virtual int? SetupFeeId { get; set; } } } namespace ClubReady.Web.Api { public partial interface IApiKeyEndpoint { string ApiKey { get; set; } } public partial interface IRestrictedApiRequest : IApiKeyEndpoint { int? RestrictedId { get; set; } RestrictedResourceType RestrictedResourceType { get; set; } } public enum RestrictedResourceType { Store, Chain, User, Undefined, } } namespace ClubReady.Web.Api.Sales.Model { [Route("/sales/packages/{PackageId}/installments/calculate/{InstallmentPlanId}", "GET")] public partial class CalculatePaymentPlanRequest : CalculatePaymentPlanRequestDto, IReturn, IRestrictedApiRequest { /// ///Api Key - grants access to resources /// [ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query")] public virtual string ApiKey { get; set; } /// ///ID # of store to calculate plan for /// [ApiMember(DataType="integer", Description="ID # of store to calculate plan for", IsRequired=true, Name="StoreId", ParameterType="query")] public virtual int? StoreId { get; set; } /// ///Installment Plan to calculate a scheduel for /// [ApiMember(DataType="integer", Description="Installment Plan to calculate a scheduel for", IsRequired=true, Name="InstallmentPlanId", ParameterType="path")] public virtual int InstallmentPlanId { get; set; } /// ///The package to calculate for /// [ApiMember(DataType="integer", Description="The package to calculate for", IsRequired=true, Name="PackageId", ParameterType="path")] public virtual int PackageId { get; set; } /// ///Date to calculate schedule from. If not provided, will use today. /// [ApiMember(DataType="datetime", Description="Date to calculate schedule from. If not provided, will use today.", Name="StartDate", ParameterType="query")] public virtual DateTime? StartDate { get; set; } /// ///Promo code to apply a discount. /// [ApiMember(DataType="string", Description="Promo code to apply a discount.", Name="PromoCode", ParameterType="query")] public virtual string PromoCode { get; set; } public virtual int? RestrictedId { get; set; } public virtual RestrictedResourceType RestrictedResourceType { get; set; } } }