DocumentContentDto

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

Parameters

currencyCode
amountDue
barcodes

A list of barcodes available on the document.

countryCode
customer
discounts
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
items
languageCode

The language the original document is in.

merchant
savings

Sum total of all savings found on the document.

deliveries
loyaltyRewards
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
totalBeforeTips
totalBeforeDiscountsFeesTips

Constructors

Link copied to clipboard
constructor(currencyCode: CurrencyCodeEnum?, amountDue: DocumentTaxableAmountDto? = null, barcodes: List<DocumentContentBarcodeDto>? = null, countryCode: CountryCode? = 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)

Properties

Link copied to clipboard
@SerializedName(value = "amountDue")
val amountDue: DocumentTaxableAmountDto? = null
Link copied to clipboard
@SerializedName(value = "barcodes")
val barcodes: List<DocumentContentBarcodeDto>? = null
Link copied to clipboard
@SerializedName(value = "countryCode")
val countryCode: CountryCode? = null
Link copied to clipboard
@SerializedName(value = "currencyCode")
val currencyCode: CurrencyCodeEnum?
Link copied to clipboard
@SerializedName(value = "customer")
val customer: DocumentContentCustomerDto? = null
Link copied to clipboard
@SerializedName(value = "deliveries")
val deliveries: List<DeliveryDto>? = null
Link copied to clipboard
@SerializedName(value = "discounts")
val discounts: List<DocumentDiscountDto>? = null
Link copied to clipboard
@SerializedName(value = "documentDate")
val documentDate: LocalDate? = null
Link copied to clipboard
@SerializedName(value = "documentNumber")
val documentNumber: String? = null
Link copied to clipboard
@SerializedName(value = "documentTime")
val documentTime: String? = null
Link copied to clipboard
@SerializedName(value = "dueDate")
val dueDate: LocalDate? = null
Link copied to clipboard
@SerializedName(value = "fees")
val fees: List<DocumentFeeDto>? = null
Link copied to clipboard
@SerializedName(value = "items")
val items: List<DocumentItemDto>? = null
Link copied to clipboard
@SerializedName(value = "languageCode")
val languageCode: String? = null
Link copied to clipboard
@SerializedName(value = "loyaltyRewards")
val loyaltyRewards: DocumentLoyaltyRewardsDto? = null
Link copied to clipboard
@SerializedName(value = "merchant")
val merchant: DocumentMerchantDto? = null
Link copied to clipboard
@SerializedName(value = "payments")
val payments: List<DocumentPaymentDto>? = null
Link copied to clipboard
@SerializedName(value = "savings")
val savings: BigDecimal? = null
Link copied to clipboard
@SerializedName(value = "tipAmount")
val tipAmount: BigDecimal? = null
Link copied to clipboard
@SerializedName(value = "total")
val total: DocumentTaxableAmountDto? = null
Link copied to clipboard
@SerializedName(value = "totalBeforeDiscountsFeesTips")
val totalBeforeDiscountsFeesTips: DocumentTaxableAmountDto? = null
Link copied to clipboard
@SerializedName(value = "totalBeforeTips")
val totalBeforeTips: DocumentTaxableAmountDto? = null