DocumentDiscountDto

data class DocumentDiscountDto(taxes: List<DocumentTaxDto>?, beforeTax: BigDecimal?, afterTax: BigDecimal?, description: String?, methodCode: String?, percent: BigDecimal?, type: DiscountTypesEnum?)

Contains info about one applied discount.

Parameters

taxes
  • @param beforeTax * @param afterTax * @param description A user-presentable description of this discount.

methodCode

A code used by the merchant to identify this discount

percent

May be set if this discount is percent based, where a value of N represents an N% discount.

type

Constructors

DocumentDiscountDto
Link copied to clipboard
fun DocumentDiscountDto(taxes: List<DocumentTaxDto>? = null, beforeTax: BigDecimal? = null, afterTax: BigDecimal? = null, description: String? = null, methodCode: String? = null, percent: BigDecimal? = null, type: DiscountTypesEnum? = null)
  • @param beforeTax * @param afterTax * @param description A user-presentable description of this discount.

Properties

afterTax
Link copied to clipboard
@SerializedName(value = afterTax)
val afterTax: BigDecimal? = null
beforeTax
Link copied to clipboard
@SerializedName(value = beforeTax)
val beforeTax: BigDecimal? = null
description
Link copied to clipboard
@SerializedName(value = description)
val description: String? = null
methodCode
Link copied to clipboard
@SerializedName(value = methodCode)
val methodCode: String? = null
A code used by the merchant to identify this discount
percent
Link copied to clipboard
@SerializedName(value = percent)
val percent: BigDecimal? = null
May be set if this discount is percent based, where a value of N represents an N% discount.
taxes
Link copied to clipboard
@SerializedName(value = taxes)
val taxes: List<DocumentTaxDto>? = null
  • @param beforeTax * @param afterTax * @param description A user-presentable description of this discount.

type
Link copied to clipboard
@SerializedName(value = type)
val type: DiscountTypesEnum? = null