DocumentContentDto

data class DocumentContentDto(amountDue: DocumentTaxableAmountDto?, barcodes: List<DocumentContentBarcodeDto>?, countryCode: CountryCode?, currencyCode: CurrencyCodeEnum?, customer: DocumentContentCustomerDto?, discounts: List<DocumentDiscountDto>?, documentNumber: String?, dueDate: LocalDate?, documentDate: LocalDate?, documentTime: String?, fees: List<DocumentFeeDto>?, items: List<DocumentItemDto>?, languageCode: String?, merchant: DocumentMerchantDto?, savings: BigDecimal?, deliveries: List<DeliveryDto>?, loyaltyRewards: DocumentLoyaltyRewardsDto?, payments: List<DocumentPaymentDto>?, tipAmount: BigDecimal?, total: DocumentTaxableAmountDto?, totalBeforeTips: DocumentTaxableAmountDto?, totalBeforeDiscountsFeesTips: DocumentTaxableAmountDto?)

Parameters

amountDue
  • @param barcodes A list of barcodes available on the document.

countryCode
  • @param currencyCode * @param customer * @param discounts * @param documentNumber The document number that appears on the document. For example this can be invoice number.

dueDate

The date on which the amountDue should be paid. Date is in ISO-8601 format.

documentDate

The date on which this document was generated. This is only the date component of the local time at which the purchase was made, with no explicit timezone information. see: 'documentEmissionTime'. Date is in ISO-8601 format.

documentTime

The time at which this document was generated. This is only the time component of the local time at which the purchase was made, with no explicit timezone information.

fees
  • @param items * @param languageCode The language the original document is in.

merchant
  • @param savings Sum total of all savings found on the document.

deliveries
  • @param loyaltyRewards * @param payments The payments made on this document. This will be an array with the different payments made towards this document.

tipAmount

The tip (gratuity) amount on the document.

total
  • @param totalBeforeTips * @param totalBeforeDiscountsFeesTips

Constructors

DocumentContentDto
Link copied to clipboard
fun DocumentContentDto(amountDue: DocumentTaxableAmountDto? = null, barcodes: List<DocumentContentBarcodeDto>? = null, countryCode: CountryCode? = null, currencyCode: CurrencyCodeEnum? = null, customer: DocumentContentCustomerDto? = null, discounts: List<DocumentDiscountDto>? = null, documentNumber: String? = null, dueDate: LocalDate? = null, documentDate: LocalDate? = null, documentTime: String? = null, fees: List<DocumentFeeDto>? = null, items: List<DocumentItemDto>? = null, languageCode: String? = null, merchant: DocumentMerchantDto? = null, savings: BigDecimal? = null, deliveries: List<DeliveryDto>? = null, loyaltyRewards: DocumentLoyaltyRewardsDto? = null, payments: List<DocumentPaymentDto>? = null, tipAmount: BigDecimal? = null, total: DocumentTaxableAmountDto? = null, totalBeforeTips: DocumentTaxableAmountDto? = null, totalBeforeDiscountsFeesTips: DocumentTaxableAmountDto? = null)
  • @param barcodes A list of barcodes available on the document.

Properties

amountDue
Link copied to clipboard
@SerializedName(value = amountDue)
val amountDue: DocumentTaxableAmountDto? = null
  • @param barcodes A list of barcodes available on the document.

barcodes
Link copied to clipboard
@SerializedName(value = barcodes)
val barcodes: List<DocumentContentBarcodeDto>? = null
countryCode
Link copied to clipboard
@SerializedName(value = countryCode)
val countryCode: CountryCode? = null
  • @param currencyCode * @param customer * @param discounts * @param documentNumber The document number that appears on the document. For example this can be invoice number.

currencyCode
Link copied to clipboard
@SerializedName(value = currencyCode)
val currencyCode: CurrencyCodeEnum? = null
customer
Link copied to clipboard
@SerializedName(value = customer)
val customer: DocumentContentCustomerDto? = null
deliveries
Link copied to clipboard
@SerializedName(value = deliveries)
val deliveries: List<DeliveryDto>? = null
  • @param loyaltyRewards * @param payments The payments made on this document. This will be an array with the different payments made towards this document.

discounts
Link copied to clipboard
@SerializedName(value = discounts)
val discounts: List<DocumentDiscountDto>? = null
documentDate
Link copied to clipboard
@SerializedName(value = documentDate)
val documentDate: LocalDate? = null
The date on which this document was generated.
documentNumber
Link copied to clipboard
@SerializedName(value = documentNumber)
val documentNumber: String? = null
documentTime
Link copied to clipboard
@SerializedName(value = documentTime)
val documentTime: String? = null
The time at which this document was generated.
dueDate
Link copied to clipboard
@SerializedName(value = dueDate)
val dueDate: LocalDate? = null
The date on which the amountDue should be paid.
fees
Link copied to clipboard
@SerializedName(value = fees)
val fees: List<DocumentFeeDto>? = null
  • @param items * @param languageCode The language the original document is in.

items
Link copied to clipboard
@SerializedName(value = items)
val items: List<DocumentItemDto>? = null
languageCode
Link copied to clipboard
@SerializedName(value = languageCode)
val languageCode: String? = null
loyaltyRewards
Link copied to clipboard
@SerializedName(value = loyaltyRewards)
val loyaltyRewards: DocumentLoyaltyRewardsDto? = null
merchant
Link copied to clipboard
@SerializedName(value = merchant)
val merchant: DocumentMerchantDto? = null
  • @param savings Sum total of all savings found on the document.

payments
Link copied to clipboard
@SerializedName(value = payments)
val payments: List<DocumentPaymentDto>? = null
savings
Link copied to clipboard
@SerializedName(value = savings)
val savings: BigDecimal? = null
tipAmount
Link copied to clipboard
@SerializedName(value = tipAmount)
val tipAmount: BigDecimal? = null
The tip (gratuity) amount on the document.
total
Link copied to clipboard
@SerializedName(value = total)
val total: DocumentTaxableAmountDto? = null
  • @param totalBeforeTips * @param totalBeforeDiscountsFeesTips

totalBeforeDiscountsFeesTips
Link copied to clipboard
@SerializedName(value = totalBeforeDiscountsFeesTips)
val totalBeforeDiscountsFeesTips: DocumentTaxableAmountDto? = null
totalBeforeTips
Link copied to clipboard
@SerializedName(value = totalBeforeTips)
val totalBeforeTips: DocumentTaxableAmountDto? = null