/* Options: Date: 2026-02-05 12:34:06 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CompanyBillingInformation.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* @Route(Path="/billing/company", Verbs="GET") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open 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.") open var CompanyId:UUID? = null /** * 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") open var IncludeBillingMethodOptions:Boolean? = null companion object { private val responseType = object : TypeToken>(){}.type } override fun getResponseType(): Any? = CompanyBillingInformation.responseType } @DataContract open class QueryResponse { @DataMember(Order=1) open var Offset:Int? = null @DataMember(Order=2) open var Total:Int? = null @DataMember(Order=3) open var Results:ArrayList = ArrayList() @DataMember(Order=4) open var Meta:HashMap? = null @DataMember(Order=5) open var ResponseStatus:ResponseStatus? = null } open class QueryDb : QueryBase() { } open class BillingMethod : BaseModel() { open var BillingMethodCountriesRelation:ArrayList = ArrayList() @Required() open var Name:String? = null @Required() open var Description:String? = null open var ModifiedDate:Date? = null open var Id:Int? = null } open class BillingMethodQueryResponse { /** * The billing method id */ @ApiMember(Description="The billing method id") open var Id:Int? = null /** * The billing method name */ @ApiMember(Description="The billing method name") open var Name:String? = null /** * The billing method description */ @ApiMember(Description="The billing method description") open var Description:String? = null /** * The billing method is valid for the following countries */ @ApiMember(Description="The billing method is valid for the following countries") open var Countries:ArrayList = ArrayList() } open class BillingInformation : BaseModel(), IBaseModelCreated, IBaseModelUpdated { open var BillingMethod:BillingMethod? = null @Required() open var BillingMethodId:Int? = null @Required() open var Name:String? = null open var FirstName:String? = null open var LastName:String? = null open var PhoneNumber:String? = null open var Attention:String? = null open var Street1:String? = null open var Street2:String? = null open var ZipCode:String? = null open var City:String? = null open var Email:String? = null open var CreditCard:String? = null open var CreditCardHolder:String? = null open var CreditCardNumber:String? = null open var ValidToYear:Short? = null open var ValidToMonth:Short? = null open var CSV:String? = null @Required() override var UpdatedDate:Date? = null @Required() override var CreatedDate:Date? = null @Required() open var CountryId:String? = null @Required() open var PaymentTermsDays:Int? = null open var VatRegistrationNumber:String? = null open var LicensePlanId:Int? = null open var GLN:String? = null open var ReferenceLine1:String? = null open var ReferenceLine2:String? = null open var ModifiedDate:Date? = null @Required() open var Id:UUID? = null } @DataContract open class QueryBase { @DataMember(Order=1) open var Skip:Int? = null @DataMember(Order=2) open var Take:Int? = null @DataMember(Order=3) open var OrderBy:String? = null @DataMember(Order=4) open var OrderByDesc:String? = null @DataMember(Order=5) open var Include:String? = null @DataMember(Order=6) open var Fields:String? = null @DataMember(Order=7) open var Meta:HashMap? = null } open class BaseModel { } interface IBaseModelCreated { var CreatedDate:Date? } interface IBaseModelUpdated { var UpdatedDate:Date? } open class BillingMethodCountriesRelation : BaseModel() { @Required() open var BillingMethodId:Int? = null @Required() open var CountryId:String? = null open var ModifiedDate:Date? = null }