PriceCustomUnitAmount constructor

const PriceCustomUnitAmount({
  1. required bool enabled,
  2. int? maximum,
  3. int? minimum,
  4. int? preset,
})

custom_unit_amount

When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.

Implementation

const PriceCustomUnitAmount({
  required this.enabled,
  this.maximum,
  this.minimum,
  this.preset,
});