/* Options: Date: 2026-07-13 12:34:13 Version: 10.05 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: True //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: UpdateVossSubscriptionScheduledChange.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.Net; using System.Net.Http.Headers; using BokaMera.VossIntegration.ApiTools.Model; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/voss/subscriptions/{SubscriptionId}/scheduledChanges/{Id}", "PUT")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] public partial class UpdateVossSubscriptionScheduledChange : IReturn { /// ///The subscription id /// [ApiMember(Description="The subscription id", IsRequired=true)] public virtual Guid SubscriptionId { get; set; } /// ///The subscription scheduled change id /// [ApiMember(Description="The subscription scheduled change id", IsRequired=true)] public virtual Guid Id { get; set; } /// ///Controls when the scheduled change will be executed: <br />AtSubscriptionBillingPeriodEnd - after the currently latest subscription billing period ends <br />AtBindingPeriodEnd - after the currently latest subscription binding period ends /// [ApiMember(Description="Controls when the scheduled change will be executed: <br />AtSubscriptionBillingPeriodEnd - after the currently latest subscription billing period ends <br />AtBindingPeriodEnd - after the currently latest subscription binding period ends", IsRequired=true)] public virtual TypeEnum Type { get; set; } /// ///Optional package version id; if omitted the current version of the subscription package is used /// [ApiMember(Description="Optional package version id; if omitted the current version of the subscription package is used")] public virtual Guid? VersionId { get; set; } /// ///The id of a package which will be active after the scheduled change is executed; if provided the tier id and plan id have to be provided as well /// [ApiMember(Description="The id of a package which will be active after the scheduled change is executed; if provided the tier id and plan id have to be provided as well")] public virtual Guid? PackageId { get; set; } /// ///The id of a tier which will be active after the scheduled change is executed; can be omitted if PlanId is provided instead /// [ApiMember(Description="The id of a tier which will be active after the scheduled change is executed; can be omitted if PlanId is provided instead")] public virtual Guid? TierId { get; set; } /// ///The id of a plan which will be active after the scheduled change is executed; can be omitted if TierId is provided instead /// [ApiMember(Description="The id of a plan which will be active after the scheduled change is executed; can be omitted if TierId is provided instead")] public virtual Guid? PlanId { get; set; } /// ///How many periods (counting from the latest period) must pass before the scheduled change is executed; if omitted the change is executed on the latest period end /// [ApiMember(Description="How many periods (counting from the latest period) must pass before the scheduled change is executed; if omitted the change is executed on the latest period end")] public virtual int? PeriodIterationCount { get; set; } } } namespace BokaMera.VossIntegration.ApiTools.Model { [DataContract(Name="SubscriptionScheduledChangePackageResult")] public partial class SubscriptionScheduledChangePackageResult { [DataMember(Name="id", IsRequired=true)] public virtual Guid Id { get; set; } [DataMember(Name="versionId", IsRequired=true)] public virtual Guid VersionId { get; set; } [DataMember(Name="name", IsRequired=true)] public virtual string Name { get; set; } } [DataContract(Name="SubscriptionScheduledChangePlanResult")] public partial class SubscriptionScheduledChangePlanResult { [DataMember(Name="id", IsRequired=true)] public virtual Guid Id { get; set; } [DataMember(Name="name", IsRequired=true)] public virtual string Name { get; set; } } [DataContract(Name="SubscriptionScheduledChangeResult")] public partial class SubscriptionScheduledChangeResult { [DataMember(Name="type")] public virtual TypeEnum Type { get; set; } [DataMember(Name="status", IsRequired=true)] public virtual StatusEnum Status { get; set; } [DataMember(Name="id", IsRequired=true)] public virtual Guid Id { get; set; } [DataMember(Name="package")] public virtual SubscriptionScheduledChangePackageResult Package { get; set; } [DataMember(Name="tier")] public virtual SubscriptionScheduledChangeTierResult Tier { get; set; } [DataMember(Name="plan")] public virtual SubscriptionScheduledChangePlanResult Plan { get; set; } [DataMember(Name="scheduledDate", IsRequired=true)] public virtual DateTime ScheduledDate { get; set; } [DataMember(Name="salesInformation")] public virtual SubscriptionScheduledChangeSalesInformationResult SalesInformation { get; set; } public enum TypeEnum { AtSubscriptionBillingPeriodEnd, AtBindingPeriodEnd, } public enum StatusEnum { Active, Terminated, } } [DataContract(Name="SubscriptionScheduledChangeSalesInformationResult")] public partial class SubscriptionScheduledChangeSalesInformationResult { [DataMember(Name="salesPersonId")] public virtual string SalesPersonId { get; set; } [DataMember(Name="salesDepartmentId")] public virtual string SalesDepartmentId { get; set; } } [DataContract(Name="SubscriptionScheduledChangeTierResult")] public partial class SubscriptionScheduledChangeTierResult { [DataMember(Name="id", IsRequired=true)] public virtual Guid Id { get; set; } [DataMember(Name="name", IsRequired=true)] public virtual string Name { get; set; } } }