/* Options: Date: 2024-11-29 14:43:55 Version: 8.12 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://taxfiling.staging.pwc.de //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RetrieveAllProducts.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* /** * Represents a service request to retrieve all products. */ @Route(Path="/sync/products", Verbs="GET") @Api(Description="Represents a service request to retrieve all products.") open class RetrieveAllProducts : RetrieveAllProductsBase(), IReturn { /** * Should the related orders of the account be included in the retrieved products? */ @ApiMember(Description="Should the related orders of the account be included in the retrieved products?") var includeOrders:Boolean? = null /** * Specifies the number of orders to skip per product. Applicable only when 'IncludeOrders' is true. */ @ApiMember(Description="Specifies the number of orders to skip per product. Applicable only when 'IncludeOrders' is true. ") var skipOrders:Int? = null /** * Specifies the number of orders to include per product. Applicable only when 'IncludeOrders' is true. */ @ApiMember(Description="Specifies the number of orders to include per product. Applicable only when 'IncludeOrders' is true. ") var takeOrders:Int? = null /** * The number of query results to skip. */ @ApiMember(Description="The number of query results to skip.") var skip:Int? = null /** * The number of query results to include. */ @ApiMember(Description="The number of query results to include.") var take:Int? = null companion object { private val responseType = ProductQueryResponse::class.java } override fun getResponseType(): Any? = RetrieveAllProducts.responseType } /** * Represents a query response that contains a structured error information and encapsulates products. */ @Api(Description="Represents a query response that contains a structured error information and encapsulates products.") open class ProductQueryResponse : QueryResponse() { /** * The dictionary of orders associated with each found product. */ @ApiMember(Description="The dictionary of orders associated with each found product.") var ordersMap:HashMap> = HashMap>() @DataMember(Order=1) var offset:Int? = null @DataMember(Order=2) var total:Int? = null @DataMember(Order=3) var results:ArrayList = ArrayList() @DataMember(Order=4) var meta:HashMap = HashMap() @DataMember(Order=5) var responseStatus:ResponseStatus? = null } open interface IPaginate { var skip:Int? var take:Int? } /** * Specifies a service to retrieve all products. */ @Api(Description="Specifies a service to retrieve all products.") open class RetrieveAllProductsBase : PaginationBase(), IGet { /** * Should the related orders of the account be included in the retrieved products? */ @ApiMember(Description="Should the related orders of the account be included in the retrieved products?") var includeOrders:Boolean? = null /** * Specifies the number of orders to skip per product. Applicable only when 'IncludeOrders' is true. */ @ApiMember(Description="Specifies the number of orders to skip per product. Applicable only when 'IncludeOrders' is true. ") var skipOrders:Int? = null /** * Specifies the number of orders to include per product. Applicable only when 'IncludeOrders' is true. */ @ApiMember(Description="Specifies the number of orders to include per product. Applicable only when 'IncludeOrders' is true. ") var takeOrders:Int? = null /** * The number of query results to skip. */ @ApiMember(Description="The number of query results to skip.") var skip:Int? = null /** * The number of query results to include. */ @ApiMember(Description="The number of query results to include.") var take:Int? = null } /** * Represents a product. */ @Api(Description="Represents a product.") open class Product : IHasName { /** * The unique identifier of the product. */ @ApiMember(Description="The unique identifier of the product.", IsRequired=true) var id:Int? = null /** * The position of this instance in a collection of 'Product' instances */ @ApiMember(Description="The position of this instance in a collection of 'Product' instances", IsRequired=true) var index:Int? = null /** * The name of the product. */ @ApiMember(Description="The name of the product.", IsRequired=true) @Validate(Validator="NotEmpty") var name:String? = null /** * The version of the product. */ @ApiMember(Description="The version of the product.", IsRequired=true) @Validate(Validator="NotEmpty") var version:String? = null /** * The version of the product. */ @ApiMember(Description="The version of the product.") var description:String? = null /** * Tags associated with the product. */ @ApiMember(Description="Tags associated with the product.") var tags:ArrayList = ArrayList() } @DataContract open class QueryResponse { @DataMember(Order=1) var offset:Int? = null @DataMember(Order=2) var total:Int? = null @DataMember(Order=3) var results:ArrayList = ArrayList() @DataMember(Order=4) var meta:HashMap = HashMap() @DataMember(Order=5) var responseStatus:ResponseStatus? = null } /** * The number of query results to skip. */ @Api(Description="The number of query results to skip.") open class PaginationBase : IPaginate { /** * The number of query results to skip. */ @ApiMember(Description="The number of query results to skip.") var skip:Int? = null /** * The number of query results to include. */ @ApiMember(Description="The number of query results to include.") var take:Int? = null } /** * Specifies that a data type should have a 'Name' property. */ open interface IHasName { /** * The 'Name' property. */ var name:String? }