NextAction.displayOxxoDetails constructor

  1. @JsonSerializable(explicitToJson: true)
  2. @FreezedUnionValue('oxxoVoucher')
const NextAction.displayOxxoDetails({
  1. int? expiration,
  2. String? voucherURL,
  3. String? voucherNumber,
})

Contains details necessary for the customer to complete the payment.

Implementation

@JsonSerializable(explicitToJson: true)
@FreezedUnionValue('oxxoVoucher')
const factory NextAction.displayOxxoDetails({
  /// expiration date of the voucher in UTC
  int? expiration,

  /// The URL for the hosted OXXO voucher page, which allows customers to view and print an OXXO voucher.
  String? voucherURL,

  /// Oxxo reference number
  String? voucherNumber,
}) = _NextActionOxxo;