/* Options: Date: 2024-11-21 11:40:37 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddBillingInformation.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/billing/company/", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class AddBillingInformation : IReturn, ICompany { /** * 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.") var CompanyId:UUID? = null /** * The prefered billing method. */ @ApiMember(Description="The prefered billing method.", IsRequired=true) var BillingMethodId:Int? = null /** * The name that should be printed on the billing information, normally this would be your company name. */ @ApiMember(Description="The name that should be printed on the billing information, normally this would be your company name.") var Name:String? = null /** * If you want to add the attention to the billing address. */ @ApiMember(Description="If you want to add the attention to the billing address.") var Attention:String? = null /** * The street for the billing adress. This is required when having postal invoice as billing method. */ @ApiMember(Description="The street for the billing adress. This is required when having postal invoice as billing method.") var Street1:String? = null /** * The street for the billing adress. */ @ApiMember(Description="The street for the billing adress.") var Street2:String? = null /** * The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method. */ @ApiMember(Description="The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method.") var ZipCode:String? = null /** * The city for the billing adress. This is required when having postal invoice as billing method. */ @ApiMember(Description="The city for the billing adress. This is required when having postal invoice as billing method.") var City:String? = null /** * The country for the billing adress. This is required when having postal invoice as billing method. */ @ApiMember(Description="The country for the billing adress. This is required when having postal invoice as billing method.") var CountryId:String? = null /** * The billing email. This is required when having email invoice as billing method. */ @ApiMember(Description="The billing email. This is required when having email invoice as billing method.") var Email:String? = null /** * The billing payment terms in days. This is default 15 days. */ @ApiMember(Description="The billing payment terms in days. This is default 15 days.") var PaymentTermsDays:Int? = null /** * The company vat registration number. */ @ApiMember(Description="The company vat registration number.") var VatRegistrationNumber:String? = null /** * The company global location number. */ @ApiMember(Description="The company global location number.") var GLN:String? = null /** * You're internal rereference. */ @ApiMember(Description="You're internal rereference.") var ReferenceLine1:String? = null /** * You're internal rereference. */ @ApiMember(Description="You're internal rereference.") var ReferenceLine2:String? = null companion object { private val responseType = BillingInformationResponse::class.java } override fun getResponseType(): Any? = AddBillingInformation.responseType } open class BillingInformationResponse { /** * The company id. */ @ApiMember(Description="The company id.") var CompanyId:UUID? = null /** * The prefered billing method. */ @ApiMember(Description="The prefered billing method.", IsRequired=true) var BillingMethodId:Int? = null /** * The name that should be printed on the billing information, normally this would be your company name. */ @ApiMember(Description="The name that should be printed on the billing information, normally this would be your company name.") var Name:String? = null /** * If you want to add the attention to the billing address. */ @ApiMember(Description="If you want to add the attention to the billing address.") var Attention:String? = null /** * The street for the billing adress. This is required when having postal invoice as billing method. */ @ApiMember(Description="The street for the billing adress. This is required when having postal invoice as billing method.") var Street1:String? = null /** * The street for the billing adress. */ @ApiMember(Description="The street for the billing adress.") var Street2:String? = null /** * The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method. */ @ApiMember(Description="The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method.") var ZipCode:String? = null /** * The city for the billing adress. This is required when having postal invoice as billing method. */ @ApiMember(Description="The city for the billing adress. This is required when having postal invoice as billing method.") var City:String? = null /** * The country for the billing adress. This is required when having postal invoice as billing method. */ @ApiMember(Description="The country for the billing adress. This is required when having postal invoice as billing method.") var CountryId:String? = null /** * The billing email. This is required when having email invoice as billing method. */ @ApiMember(Description="The billing email. This is required when having email invoice as billing method.") var Email:String? = null /** * The company global location number. */ @ApiMember(Description="The company global location number.") var GLN:String? = null /** * You're internal rereference. */ @ApiMember(Description="You're internal rereference.") var ReferenceLine1:String? = null /** * You're internal rereference. */ @ApiMember(Description="You're internal rereference.") var ReferenceLine2:String? = null /** * The billing payment terms in days. This is default 15 days. */ @ApiMember(Description="The billing payment terms in days. This is default 15 days.") var PaymentTermsDays:Int? = null /** * The company vat registration number. */ @ApiMember(Description="The company vat registration number.") var VatRegistrationNumber:String? = null /** * The billing method options to choose from */ @ApiMember(Description="The billing method options to choose from") var BillingMethodOptions:ArrayList = ArrayList() } open interface ICompany { var CompanyId:UUID? } open class BillingMethod : BaseModel() { var BillingMethodCountriesRelation:ArrayList = ArrayList() @Required() var Name:String? = null @Required() var Description:String? = null var ModifiedDate:Date? = null var Id:Int? = null } open class BaseModel { } open class BillingMethodCountriesRelation : BaseModel() { @Required() var BillingMethodId:Int? = null @Required() var CountryId:String? = null var ModifiedDate:Date? = null }