Pix class

A class representing a PIX payment.

This class contains information aboute a payment made through PIX.

The PIX class has a constructor that requires the following parameters:

  • valor the value of payment.

  • horario the date and time when payment was made.

  • nomePagador the name of the payer.

  • pagador: a Pagador object representing the payer.

  • infoPagador additional information about the payer.

  • devolucoes List of values ​​returned from the transaction, and starting with an empty list

  • The endToEndId and txid parameters are optional, and can be set to null.

Constructors

Pix({String? endToEndId, String? txid, required String valor, required String horario, required String nomePagador, required Pagador pagador, required List devolucoes, required String? infoPagador})
Pix.fromJson(String source)
a factory method for creating a PIX object from a JSON object
factory
Pix.fromMap(Map<String, dynamic> map)
A factory method for creating a PIX object from a MAP object.
factory

Properties

devolucoes List
List of values ​​returned from the transaction, and starting with an empty list
getter/setter pair
endToEndId String?
A unique identifier for the payment.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
horario String
The date and time when the payment was made.
final
infoPagador String?
Additional information about the payer.
final
nomePagador String
Additional information about the payer.
final
pagador Pagador
A Map<String, dynamic> object representing the payer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
txid String?
A transaction ID for the payment.
getter/setter pair
valor String
The value of payment.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
This method serializing the PIX object to JSON string
toMap() Map<String, dynamic>
Serializes the PIX object to a MAP object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited