CancelRequest class

Метод отменяет платеж

В зависимости от статуса платежа переводит его в следующие состояния:

  • NEW -> CANCELED
  • AUTHORIZED -> REVERSED
  • CONFIRMED -> PARTIAL_REFUNDED – если отмена не на полную сумму
  • CONFIRMED -> REFUNDED – если отмена на полную сумму

* в случае отмены статуса NEW поле Amount, даже если оно проставлено, игнорируется. Отмена производится на полную сумму.

** в случае полной отмены структура чека не передается. В случае частичной отмены необходимо передавать те товары, которые нужно отменить.

CancelRequest

Inheritance
Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

CancelRequest({required int paymentId, String? ip, int? amount, Receipt? receipt, List<Shops>? shops, String? qrMemberId, String? signToken})
Создает экземпляр метода по отмене платежа
CancelRequest.fromJson(Map<String, dynamic> json)
Преобразование json в модель
factory

Properties

amount int?
Сумма в копейках
final
apiMethod String
Метод запроса
no setteroverride
apiMethodPath String
Полный путь до метода запроса (версия + метод)
no setterinherited
apiVersion String
Версия метода запроса
no setterinherited
equals Map<String, Object?>
Comparison objects
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
Заголовок метода
no setterinherited
ignoredFields Set<String>
Список игнорируемых полей при создании токена запроса
no setterinherited
ip String?
IP-адрес покупателя
final
paymentId int
Идентификатор платежа в системе банка
final
qrMemberId String?
Код банка в классификации СБП, в который необходимо выполнить возврат
final
receipt Receipt?
Данные чека.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shops List<Shops>?
Массив объектов с данными Маркетплейса
final
signToken String?
Опциональный параметр: готовая подпись запроса
finalinherited

Methods

compareLists<R>(List<R>? list1, List<R>? list2) bool
Determines whether list1 and list2 are equal.
inherited
copyWith({String? signToken, int? paymentId, int? amount, String? ip, Receipt? receipt, List<Shops>? shops}) CancelRequest
Создает экземпляр с заданными параметрами
override
genHash<R>(Iterable<R>? values) int
Returns a hashCode for equals.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Преобразование модели в json
override
toString() String
A string representation of this object.
inherited
validate() → void
Метод проверяет валидность данных
override

Operators

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