Cost

@IviExperimental(reasons = [])
data class Cost(val priceExcludingVat: Float, val vatPercentage: Float, val currency: Currency) : Parcelable

Information about the cost.

Constructors

Link copied to clipboard
constructor(priceExcludingVat: Float, vatPercentage: Float, currency: Currency)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Price currency.

Link copied to clipboard

Price excluding Value-Added Tax (VAT).

Link copied to clipboard
Link copied to clipboard

Percentage value for VAT. A 21% VAT will be represented as 21.0F.

Functions

Link copied to clipboard

Price including VAT, rounded HALF_UP to 2 digits in the fraction portion of a number. When no fraction portion, the value is truncated to the integer part.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)