BillingTotals

@Serializable
data class BillingTotals(val subtotal: BillingMoneyAmount, val baseFee: BillingMoneyAmount? = null, val taxTotal: BillingMoneyAmount, val grandTotal: BillingMoneyAmount, val totalDueAfterFreeTrial: BillingMoneyAmount? = null, val credit: BillingMoneyAmount? = null, val credits: BillingCredits? = null, val discounts: BillingDiscounts? = null, val pastDue: BillingMoneyAmount? = null, val totalDueNow: BillingMoneyAmount? = null, val perUnitTotals: List<BillingPerUnitTotal>? = null, val totalsDuePerPeriod: BillingPeriodTotals? = null, val totalDuePerPeriod: BillingMoneyAmount? = null)

A granular breakdown of the total amount that will be charged, either during checkout or at renewal.

Constructors

Link copied to clipboard
constructor(subtotal: BillingMoneyAmount, baseFee: BillingMoneyAmount? = null, taxTotal: BillingMoneyAmount, grandTotal: BillingMoneyAmount, totalDueAfterFreeTrial: BillingMoneyAmount? = null, credit: BillingMoneyAmount? = null, credits: BillingCredits? = null, discounts: BillingDiscounts? = null, pastDue: BillingMoneyAmount? = null, totalDueNow: BillingMoneyAmount? = null, perUnitTotals: List<BillingPerUnitTotal>? = null, totalsDuePerPeriod: BillingPeriodTotals? = null, totalDuePerPeriod: BillingMoneyAmount? = null)

Properties

Link copied to clipboard

Base fee component before per-unit charges and adjustments.

Link copied to clipboard

Legacy credit amount.

Link copied to clipboard

Unified credits breakdown.

Link copied to clipboard

Information about the discounts applied to the payment.

Link copied to clipboard

Grand total amount.

Link copied to clipboard

Past due amount.

Link copied to clipboard

Per-unit total breakdown (for example, seats).

Link copied to clipboard

Subtotal before adjustments.

Link copied to clipboard

Total tax amount.

Link copied to clipboard

Total amount due after a free trial ends.

Link copied to clipboard

Total amount due now.

Link copied to clipboard

The expected total payment for each future billing period.

Link copied to clipboard

Per-period renewal totals.