EditDocumentUserMetadataPeriodDto

data class EditDocumentUserMetadataPeriodDto(val unit: String? = null, val duration: Int? = null)

The details about the document's warranty or return period. This can only be edited if the document date is populated. If either unit or duration is unset, the full applicable warrantyPeriod or returnPeriod structure is unset.

Parameters

unit

To unset the value pass an empty string. Otherwise must be a valid PeriodUnitEnum value. Document must have the ''documentDate'' set or it should be supplied as another edit parameter within the same request.

duration

To unset pass null. Positive number of period units which defines the total period duration. This parameter should be used together with the 'unit' parameter. Document must have the ''documentDate'' set or it should be supplied as another edit parameter within the same request.

Constructors

Link copied to clipboard
constructor(unit: String? = null, duration: Int? = null)

Properties

Link copied to clipboard
@SerializedName(value = "duration")
val duration: Int? = null
Link copied to clipboard
@SerializedName(value = "unit")
val unit: String? = null