/* Options: Date: 2025-04-04 19:23:04 SwiftVersion: 5.0 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: UpdateVossInvoiceConfigurations.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/voss/invoiceConfigurations", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) public class UpdateVossInvoiceConfigurations : UpdateInvoiceConfigurationsRequest { required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } public enum IntermediaryPlacementEnum : Int, Codable { case None = 1 case IncludeIn21StColumn = 2 case IncludeIn7ThColumn = 3 } public enum AccrualCodeFormatEnum : Int, Codable { case Default = 1 case Dutch = 2 } // @DataContract(Name="TimeLengthRequestDto") public class TimeLengthRequestDto : Codable { // @DataMember(Name="unit", IsRequired=true) public var unit:UnitEnum // @DataMember(Name="value", IsRequired=true) public var value:Int required public init(){} } // @DataContract(Name="UpdateInvoiceConfigurationsRequest") public class UpdateInvoiceConfigurationsRequest : Codable { // @DataMember(Name="intermediaryPlacement", IsRequired=true) public var intermediaryPlacement:IntermediaryPlacementEnum // @DataMember(Name="accrualCodeFormat", IsRequired=true) public var accrualCodeFormat:AccrualCodeFormatEnum // @DataMember(Name="dateFormat", IsRequired=true) public var dateFormat:String // @DataMember(Name="delimiter", IsRequired=true) public var delimiter:String // @DataMember(Name="decimalSeparator", IsRequired=true) public var decimalSeparator:String // @DataMember(Name="orderCreatorCode", IsRequired=true) public var orderCreatorCode:String // @DataMember(Name="salesPersonId", IsRequired=true) public var salesPersonId:String // @DataMember(Name="salesDepartmentId", IsRequired=true) public var salesDepartmentId:String // @DataMember(Name="includeBillingPeriodDates") public var includeBillingPeriodDates:Bool // @DataMember(Name="trackInvoicePayments") public var trackInvoicePayments:Bool // @DataMember(Name="includeInvoicedCustomerDetails") public var includeInvoicedCustomerDetails:Bool // @DataMember(Name="billingPeriodTextFormat", IsRequired=true) public var billingPeriodTextFormat:String // @DataMember(Name="customerFooterText") public var customerFooterText:String // @DataMember(Name="addEmptyLineBeforeCustomerFooter") public var addEmptyLineBeforeCustomerFooter:Bool // @DataMember(Name="includeOnlyDefaultSalesPersonAndDepartment") public var includeOnlyDefaultSalesPersonAndDepartment:Bool // @DataMember(Name="includeSubscriptionCustomerDetailsIfPayedByAnotherCustomer") public var includeSubscriptionCustomerDetailsIfPayedByAnotherCustomer:Bool // @DataMember(Name="transactionGroup", IsRequired=true) public var transactionGroup:String // @DataMember(Name="invoiceArbitraryNumber", IsRequired=true) public var invoiceArbitraryNumber:String // @DataMember(Name="deliveryMethod", IsRequired=true) public var deliveryMethod:String // @DataMember(Name="deliveryConditions", IsRequired=true) public var deliveryConditions:String // @DataMember(Name="orderType", IsRequired=true) public var orderType:String // @DataMember(Name="invoiceStatus", IsRequired=true) public var invoiceStatus:String // @DataMember(Name="useProductGroupRevenueRecognition") public var useProductGroupRevenueRecognition:Bool // @DataMember(Name="productGroupLineExcludePrint", IsRequired=true) public var productGroupLineExcludePrint:String // @DataMember(Name="productGroupLineEditPreferences", IsRequired=true) public var productGroupLineEditPreferences:String // @DataMember(Name="productLineExcludePrint", IsRequired=true) public var productLineExcludePrint:String // @DataMember(Name="useDiscountedPrices") public var useDiscountedPrices:Bool // @DataMember(Name="terminateUnpaidSubscriptions") public var terminateUnpaidSubscriptions:Bool // @DataMember(Name="allowedUnpaidAmountLimit", EmitDefaultValue=false) public var allowedUnpaidAmountLimit:Double // @DataMember(Name="allowedPaymentOverdue") public var allowedPaymentOverdue:TimeLengthRequestDto // @DataMember(Name="unpaidSubscriptionTerminationReasonId") public var unpaidSubscriptionTerminationReasonId:String? // @DataMember(Name="unpaidSubscriptionTerminationComment") public var unpaidSubscriptionTerminationComment:String // @DataMember(Name="creditInvoiceNumberReferenceTextFormat") public var creditInvoiceNumberReferenceTextFormat:String required public init(){} } public enum UnitEnum : Int, Codable { case Day = 1 case Month = 2 case Year = 3 }