OrderItemCancellationPreview constructor

OrderItemCancellationPreview({
  1. required Money penaltyAmount,
  2. Money? cancellationFee,
  3. required Money refundAmount,
  4. required bool isRefundable,
  5. List<CancellationPenalty>? appliedPenalties = const [],
  6. DateTime? effectiveCancellationDate,
  7. DateTime? checkInDate,
})

Returns a new OrderItemCancellationPreview instance.

Implementation

OrderItemCancellationPreview({
  required this.penaltyAmount,
  this.cancellationFee,
  required this.refundAmount,
  required this.isRefundable,
  this.appliedPenalties = const [],
  this.effectiveCancellationDate,
  this.checkInDate,
});