DiscountedInvoiceItem

This object contains discount information like discount amount, signature ...

NameTypeDescription
invoiceItemIDUUIDThe invoice item id.
discountCodeObjectContains the information from discountCode such as discount code type and etc.
totalPriceFloatTotal price without discount.
totalPriceAfterDiscountFloatTotal price after the discount is applied.
discountedAmountFloatDiscount amount of total price.
onchainDiscountInfoObjectif a discount is applicable for on-chain purchases it will return the discount information onchainDiscountInfo such as signature signer and etc.