| POST | /warranty/equipment | Create Equipment Warranty | Create Equipment Warranty API |
|---|
namespace Richemont.Booster2.PublicApi.Sellout.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type CreateEquipmentWarrantyResponse() =
///<summary>
///Equipment number
///</summary>
[<ApiMember(Description="Equipment number", IsRequired=true)>]
member val equipment:String = null with get,set
///<summary>
///Warranty type
///</summary>
[<ApiMember(Description="Warranty type", IsRequired=true)>]
member val warrantyType:String = null with get,set
///<summary>
///Master warranty
///</summary>
[<ApiMember(Description="Master warranty", IsRequired=true)>]
member val masterWarranty:String = null with get,set
///<summary>
///Warranty start date
///</summary>
[<ApiMember(Description="Warranty start date", IsRequired=true)>]
member val warrantyStartDate:String = null with get,set
///<summary>
///Warranty end date
///</summary>
[<ApiMember(Description="Warranty end date")>]
member val warrantyEndDate:String = null with get,set
///<summary>
///Warranty creation date
///</summary>
[<ApiMember(Description="Warranty creation date", IsRequired=true)>]
member val warrantyCreationDate:String = null with get,set
///<summary>
///Warranty creation time
///</summary>
[<ApiMember(Description="Warranty creation time", IsRequired=true)>]
member val warrantyCreationTime:String = null with get,set
///<summary>
///Object number (ERP)
///</summary>
[<ApiMember(Description="Object number (ERP)", IsRequired=true)>]
member val objectNumber:String = null with get,set
[<AllowNullLiteral>]
type CreateEquipmentWarranty() =
///<summary>
///Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided
///</summary>
[<ApiMember(Description="Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided")>]
member val brand:String = null with get,set
///<summary>
///Richemont POS code
///</summary>
[<ApiMember(Description="Richemont POS code", IsRequired=true)>]
member val posCode:String = null with get,set
///<summary>
///Equipment
///</summary>
[<ApiMember(Description="Equipment", IsRequired=true)>]
member val equipment:String = null with get,set
///<summary>
///Warranty type
///</summary>
[<ApiMember(Description="Warranty type", IsRequired=true)>]
member val warrantyType:String = null with get,set
///<summary>
///Date of the warranty start date e.g. 2025-06-01
///</summary>
[<ApiMember(Description="Date of the warranty start date e.g. 2025-06-01", IsRequired=true)>]
member val warrantyStartDate:DateTime = new DateTime() with get,set
F# CreateEquipmentWarranty DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /warranty/equipment HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"brand":"String","posCode":"String","equipment":"String","warrantyType":"String","warrantyStartDate":"\/Date(-62135596800000-0000)\/"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"equipment":"String","warrantyType":"String","masterWarranty":"String","warrantyStartDate":"String","warrantyEndDate":"String","warrantyCreationDate":"String","warrantyCreationTime":"String","objectNumber":"String"}