| GET | /warranty | Get a list of Sale Details | Get a list of Sale Details based on the search parameters submitted |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class GetSaleDetails : IPagedRequest
{
/**
* Richemont Brand ID
*/
@ApiMember(Description="Richemont Brand ID", IsRequired=true)
open var brand:String? = null
/**
* Richemont POS code
*/
@ApiMember(Description="Richemont POS code", IsRequired=true)
open var posCode:String? = null
/**
* Receipt or Invoice Number
*/
@ApiMember(Description="Receipt or Invoice Number")
open var documentNumber:String? = null
/**
* Date of the Sell-out Start
*/
@ApiMember(Description="Date of the Sell-out Start ")
open var documentDateFrom:Date? = null
/**
* Date of the Sell-out End
*/
@ApiMember(Description="Date of the Sell-out End")
open var documentDateTo:Date? = null
/**
* Richemont Reference Code of the item
*/
@ApiMember(Description="Richemont Reference Code of the item")
open var articleCode:String? = null
/**
* Serial Number of the item
*/
@ApiMember(Description="Serial Number of the item")
open var serialNumber:String? = null
/**
* Unique Identifier of the Sell-out created in Booster
*/
@ApiMember(Description="Unique Identifier of the Sell-out created in Booster")
open var saleDetailId:Int? = null
/**
* Unique Identifier of the Sell-out created in Booster
*/
@ApiMember(Description="Unique Identifier of the Sell-out created in Booster")
open var saleId:Int? = null
/**
* Booster Customer Id
*/
@ApiMember(Description="Booster Customer Id")
open var boosterCustomerId:Int? = null
/**
* Possible warranty extention status IDs, 1 (Activated), 2 (Requested), 3 (Refused), 4 (Error), 5 (Action Required), 6 (Pending)
*/
@ApiMember(Description="Possible warranty extention status IDs, 1 (Activated), 2 (Requested), 3 (Refused), 4 (Error), 5 (Action Required), 6 (Pending)")
open var warrantyExtensionStatusIds:ArrayList<Int>? = null
/**
* Product Categories
*/
@ApiMember(Description="Product Categories")
open var productCategories:ArrayList<ProductCategory>? = null
/**
* Index of the result set returned
*/
@ApiMember(Description="Index of the result set returned", IsRequired=true)
override var page:Int? = null
/**
* Size of the result set returned
*/
@ApiMember(Description="Size of the result set returned", IsRequired=true)
override var items:Int? = null
/**
* Omit precise record count - save on performance
*/
@ApiMember(Description="Omit precise record count - save on performance")
override var noCount:Boolean? = null
/**
* Sort Expression, Possible values: 'SaleDetailIdDESC', 'DocumentDate'.
*/
@ApiMember(Description="Sort Expression, Possible values: 'SaleDetailIdDESC', 'DocumentDate'.")
override var sortBy:String? = null
}
open class ProductCategory
{
/**
* Brand Category ID
*/
@ApiMember(Description="Brand Category ID")
open var brandCategoryId:String? = null
/**
* Grand Category ID
*/
@ApiMember(Description="Grand Category ID", IsRequired=true)
open var grandCategoryId:String? = null
/**
* Master Category ID
*/
@ApiMember(Description="Master Category ID")
open var masterCategoryId:String? = null
/**
* Category ID
*/
@ApiMember(Description="Category ID")
open var categoryId:String? = null
/**
* Sub Category ID
*/
@ApiMember(Description="Sub Category ID")
open var subCategoryId:String? = null
}
open class GetSaleDetailsResponse
{
/**
* Index of the result set returnedr
*/
@ApiMember(Description="Index of the result set returnedr", IsRequired=true)
open var page:Int? = null
/**
* Size of the result set returned
*/
@ApiMember(Description="Size of the result set returned", IsRequired=true)
open var items:Int? = null
/**
* Total amount of pages / result sets
*/
@ApiMember(Description="Total amount of pages / result sets", IsRequired=true)
open var totalPages:Int? = null
/**
* Total amount of results
*/
@ApiMember(Description="Total amount of results", IsRequired=true)
open var totalResults:Int? = null
/**
* List of Sale Details
*/
@ApiMember(Description="List of Sale Details", IsRequired=true)
open var elements:ArrayList<SaleDetail>? = null
}
open class SaleDetail
{
/**
* Unique Identifier of the Sell-out created in Booster
*/
@ApiMember(Description="Unique Identifier of the Sell-out created in Booster", IsRequired=true)
open var saleId:Int? = null
/**
* Unique Identifier of the Sell-out created in Booster
*/
@ApiMember(Description="Unique Identifier of the Sell-out created in Booster", IsRequired=true)
open var saleDetailId:Int? = null
/**
* Booster Customer Id
*/
@ApiMember(Description="Booster Customer Id")
open var boosterCustomerId:Int? = null
/**
* Richemont POS code
*/
@ApiMember(Description="Richemont POS code", IsRequired=true)
open var posCode:String? = null
/**
* Receipt or Invoice Number
*/
@ApiMember(Description="Receipt or Invoice Number")
open var documentNumber:String? = null
/**
* Date of the Sell-out
*/
@ApiMember(Description="Date of the Sell-out", IsRequired=true)
open var documentDate:String? = null
/**
* Position Number
*/
@ApiMember(Description="Position Number")
open var documentLineNumber:Int? = null
/**
* Richemont Reference Code of the item
*/
@ApiMember(Description="Richemont Reference Code of the item", IsRequired=true)
open var articleCode:String? = null
/**
* Serial Number of the item
*/
@ApiMember(Description="Serial Number of the item")
open var serialNumber:String? = null
/**
* Use positive for standard Sell-out and negative quantity for return
*/
@ApiMember(Description="Use positive for standard Sell-out and negative quantity for return", IsRequired=true)
open var quantity:Int? = null
/**
* Retail Price
*/
@ApiMember(Description="Retail Price")
open var retailPrice:BigDecimal? = null
/**
* Sold Price
*/
@ApiMember(Description="Sold Price")
open var unitPrice:BigDecimal? = null
/**
* Currency of the sold price
*/
@ApiMember(Description="Currency of the sold price")
open var currencyCode:String? = null
/**
* CCP Status Code
*/
@ApiMember(Description="CCP Status Code")
open var ccpStatusCode:String? = null
/**
* CCP Status Description
*/
@ApiMember(Description="CCP Status Description")
open var ccpStatusDescription:String? = null
/**
* CCP Retrigger enable
*/
@ApiMember(Description="CCP Retrigger enable")
open var retriggerEnabled:Boolean? = null
/**
* Warranty Extention Status
*/
@ApiMember(Description="Warranty Extention Status")
open var warrantyExtentionStatusId:Int? = null
/**
* Warranty Extention Status
*/
@ApiMember(Description="Warranty Extention Status")
open var warrantyExtentionStatusDescription:String? = null
/**
* Sale Representative Email
*/
@ApiMember(Description="Sale Representative Email")
open var saleRepresentativeEmails:ArrayList<String>? = null
/**
* Promoter Type IDs, possible values are: DAI, FIT, GRT
*/
@ApiMember(Description="Promoter Type IDs, possible values are: DAI, FIT, GRT")
open var promoterTypeId:String? = null
/**
* Sellout Type, possible values are: 'standard' or 'consigned'
*/
@ApiMember(Description="Sellout Type, possible values are: 'standard' or 'consigned'", IsRequired=true)
@SerializedName("type") open var Type:String? = null
/**
* Original Sale Detail Id
*/
@ApiMember(Description="Original Sale Detail Id")
open var originalSaleDetailId:Int? = null
/**
* Sale Reason Id: 'NEW' or 'CPO'
*/
@ApiMember(Description="Sale Reason Id: 'NEW' or 'CPO'", IsRequired=true)
open var saleReasonId:String? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /warranty HTTP/1.1 Host: dev-api-booster.richemont.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
page: 0,
items: 0,
totalPages: 0,
totalResults: 0
}