CancelResponse class Null safety
Ответ от сервера на отмену платежа
- Inheritance
- Object
- AcquiringResponse
- CancelResponse
- Annotations
Constructors
- CancelResponse({Status? status, bool? success, String? errorCode, String? message, String? details, String? terminalKey, String? orderId, String? paymentId, int? originalAmount, int? newAmount})
- Создает экземпляр ответа от сервера на отмену платежа
-
CancelResponse.fromJson(Map<
String, dynamic> json) -
Преобразование json в модель
factory
Properties
- details → String?
-
Подробное описание ошибки
@JsonKey(name: JsonKeys.details), final, inherited
-
equals
→ Map<
String, Object?> -
Объекты для сравнения
read-only, override
- errorCode → String?
-
Код ошибки [...]
@JsonKey(name: JsonKeys.errorCode), final, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- message → String?
-
Краткое описание ошибки
@JsonKey(name: JsonKeys.message), final, inherited
- newAmount → int?
-
Сумма после возврата в копейках
@JsonKey(name: JsonKeys.newAmount), final
- orderId → String?
-
Идентификатор заказа в системе продавца
@JsonKey(name: JsonKeys.orderId), final
- originalAmount → int?
-
Сумма до возврата в копейках
@JsonKey(name: JsonKeys.originalAmount), final
- paymentId → String?
-
Идентификатор платежа в системе банка
@JsonKey(name: JsonKeys.paymentId), final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- status → Status?
-
Статус платежа
@JsonKey(name: JsonKeys.status), final, inherited
- success → bool?
-
Выполнение операции
@JsonKey(name: JsonKeys.success), final, inherited
- terminalKey → String?
-
Идентификатор терминала.
Выдается продавцу банком при заведении терминала
@JsonKey(name: JsonKeys.terminalKey), final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, dynamic> -
Преобразование модели в json
override
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited