GoPayResponse class
Modèle de réponse unifié pour les opérations GoPAY.
Constructors
-
GoPayResponse({required bool success, required Map<
String, dynamic> raw, String? transactionStatus, String? transId, String? url, String? state, String? message, String? amount, String? currency, String? source, String? date, String? errorCode, double? balance}) -
Crée une instance de GoPayResponse.
const
-
GoPayResponse.fromJson(Map<
String, dynamic> json) -
Construit un GoPayResponse à partir d'un objet JSON décodé.
factory
Properties
- amount → String?
-
Montant de la transaction sous forme de chaîne de caractères.
final
- balance → double?
-
Solde disponible du compte Payout.
final
- currency → String?
-
Devise de la transaction ('CDF' ou 'USD').
final
- date → String?
-
Horodatage de la transaction.
final
- errorCode → String?
-
Code d'erreur officiel en cas d'échec.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
Message textuel renvoyé par la passerelle.
final
-
raw
→ Map<
String, dynamic> -
Données JSON brutes retournées par l'API.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String?
-
Source émettrice de la transaction.
final
- state → String?
-
État actuel de l'opération.
final
- success → bool
-
Indique si la requête API a été traitée avec succès.
final
- transactionStatus → String?
-
Statut de la transaction (ex: 'success', 'pending', 'failed').
final
- transId → String?
-
Identifiant unique de la transaction généré par GoPAY.
final
- url → String?
-
URL de redirection éventuelle pour le paiement.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited