DocumentContent
data class DocumentContent(amountDue: DocumentTaxableAmount?, barcodes: List<DocumentContent.Barcode>?, countryCode: CountryCode?, currencyCode: CurrencyCodeEnum?, customer: DocumentContent.Customer?, discounts: List<DocumentContent.Discount>?, documentNumber: String?, dueDate: LocalDate?, documentDate: LocalDate?, documentTime: LocalTime?, fees: List<DocumentContent.Fee>?, items: List<DocumentContent.Item>?, languageCode: String?, merchant: DocumentContent.Merchant?, savings: BigDecimal?, deliveries: List<DocumentContent.Delivery>?, loyaltyRewards: DocumentContent.LoyaltyRewards?, payments: List<DocumentContent.Payment>?, tipAmount: BigDecimal?, total: DocumentTaxableAmount?, totalBeforeTips: DocumentTaxableAmount?, totalBeforeDiscountsFeesTips: DocumentTaxableAmount?)
Content copied to clipboard
Note: CurrencyCodeEnum and CountryCode enums taken from generated dto's
See also
Constructors
DocumentContent
Link copied to clipboard
fun DocumentContent(amountDue: DocumentTaxableAmount? = null, barcodes: List<DocumentContent.Barcode>? = null, countryCode: CountryCode? = null, currencyCode: CurrencyCodeEnum? = null, customer: DocumentContent.Customer? = null, discounts: List<DocumentContent.Discount>? = null, documentNumber: String? = null, dueDate: LocalDate? = null, documentDate: LocalDate? = null, documentTime: LocalTime? = null, fees: List<DocumentContent.Fee>? = null, items: List<DocumentContent.Item>? = null, languageCode: String? = null, merchant: DocumentContent.Merchant? = null, savings: BigDecimal? = null, deliveries: List<DocumentContent.Delivery>? = null, loyaltyRewards: DocumentContent.LoyaltyRewards? = null, payments: List<DocumentContent.Payment>? = null, tipAmount: BigDecimal? = null, total: DocumentTaxableAmount? = null, totalBeforeTips: DocumentTaxableAmount? = null, totalBeforeDiscountsFeesTips: DocumentTaxableAmount? = null)
Content copied to clipboard
Types
Delivery
Link copied to clipboard
data class Delivery(addressLines: List<String>?, courier: DocumentContent.Delivery.Courier?, deliveryType: DocumentContent.Delivery.DeliveryType?, expectedShipmentDate: LocalDate?, name: String?, telephoneNumber: String?, trackingNumber: String?)
Content copied to clipboard
Discount
Link copied to clipboard
data class Discount(taxes: List<DocumentTax>?, beforeTax: BigDecimal?, afterTax: BigDecimal?, description: String?, methodCode: String?, percent: BigDecimal?, type: DiscountTypesEnum?)
Content copied to clipboard
Fee
Link copied to clipboard
data class Fee(taxes: List<DocumentTax>?, beforeTax: BigDecimal?, afterTax: BigDecimal?, description: String?, type: FeeTypesEnum?)
Content copied to clipboard
Item
Link copied to clipboard
data class Item(description: String?, brand: String?, buyLink: String?, discounts: List<DocumentContent.Discount>?, fees: List<DocumentContent.Fee>?, imageUrl: String?, itemIds: List<String>?, listPrice: DocumentTaxableAmount?, loyaltyRewards: DocumentContent.LoyaltyRewards?, name: String?, price: DocumentTaxableAmount?, priceBeforeDiscountsFees: DocumentTaxableAmount?, properties: List<DocumentContent.Item.Property>?, serialNumbers: List<String>?, sku: String?, unitListPrice: DocumentTaxableAmount?, unitOfMeasure: String?, unitPrice: DocumentTaxableAmount?, unitQuantity: BigDecimal?)
Content copied to clipboard
LoyaltyRewards
Link copied to clipboard
data class LoyaltyRewards(accountNumber: String?, currentBalance: BigDecimal?, nextRewardLevel: BigDecimal?, pointsAwarded: BigDecimal?, programName: String?)
Content copied to clipboard
Merchant
Link copied to clipboard
data class Merchant(addressLines: List<String>?, merchantId: String?, merchantName: String?, email: String?, geoLocation: String?, storeName: String?, storeId: String?, telephone: String?, channel: DocumentContent.Merchant.OrderChannelType?, categoryCode: String?, taxIdNumber: String?, url: String?)
Content copied to clipboard
Payment
Link copied to clipboard
data class Payment(afterTax: BigDecimal?, cashBack: BigDecimal?, changeAdjustment: BigDecimal?, changeDue: BigDecimal?, changeIssued: BigDecimal?, currencyCode: CurrencyCodeEnum?, maskedCardNumber: String?, type: TenderTypesEnum?)
Content copied to clipboard
Properties
amountDue
Link copied to clipboard
barcodes
Link copied to clipboard
countryCode
Link copied to clipboard
currencyCode
Link copied to clipboard
customer
Link copied to clipboard
deliveries
Link copied to clipboard
discounts
Link copied to clipboard
documentDate
Link copied to clipboard
documentNumber
Link copied to clipboard
documentTime
Link copied to clipboard
fees
Link copied to clipboard
items
Link copied to clipboard
languageCode
Link copied to clipboard
loyaltyRewards
Link copied to clipboard
merchant
Link copied to clipboard
payments
Link copied to clipboard
savings
Link copied to clipboard
tipAmount
Link copied to clipboard
total
Link copied to clipboard
totalBeforeDiscountsFeesTips
Link copied to clipboard
totalBeforeTips
Link copied to clipboard