(* Options: Date: 2025-12-14 02:06:11 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: UpdateVossSubscriptions.* //ExcludeTypes: //InitializeCollections: False //AddNamespaces: *) namespace BokaMera.API.ServiceModel.Dtos open System open System.IO open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations open System.Globalization open ServiceStack.Data open System.Net open System.Net.Http.Headers type PeriodKindEnum = | FixedTime = 0 | AlignedToBindingPeriod = 1 | AlignedToSubscriptionBillingPeriod = 2 type UnitEnum = | Day = 0 | Month = 1 | Year = 2 [] [] type DiscountAgreementTimeLengthRequestDto() = [] member val Unit:UnitEnum = new UnitEnum() with get,set [] member val Value:Int32 = new Int32() with get,set [] [] type SubscriptionDiscountPeriodRequestDto() = [] member val PeriodKind:PeriodKindEnum = new PeriodKindEnum() with get,set [] member val Length:DiscountAgreementTimeLengthRequestDto = null with get,set [] member val PeriodIterationCount:Nullable = new Nullable() with get,set [] [] type SubscriptionDiscountAgreementRequestDto() = [] member val DiscountAgreementId:Guid = new Guid() with get,set [] member val Period:SubscriptionDiscountPeriodRequestDto = null with get,set type DiscountAgreementsChangeTypeEnum = | Prospective = 0 | Retrospective = 1 [] [] [] type UpdateVossSubscriptions() = /// ///The company id. Subscription will be fetched of this company /// [] member val CompanyId:Guid = new Guid() with get,set /// ///Discount agreement data /// [] member val DiscountAgreements:ResizeArray = null with get,set /// /// Discount agreements change type controls how already occured transactions are treated <br />Retrospective - all future and past not invoiced transactions will be recalculated with new discount agreements <br />Prospective - discounts will apply only for future transactions /// [] member val DiscountAgreementsChangeType:DiscountAgreementsChangeTypeEnum = new DiscountAgreementsChangeTypeEnum() with get,set /// ///The company id. Subscription will be fetched of this company /// [] member val CompanyOwnerId:Int32 = new Int32() with get,set