SendClosingReceiptRequest class
Метод позволяет отправить закрывающий чек в кассу.
Условия работы метода:
- Закрывающий чек может быть отправлен если платежная сессия по первому чеку находится в статусе
CONFIRMED
. - В платежной сессии был передан объект
Receipt
. - В объекте
Receipt
был передан хотя бы один объектReceipt.Items.PaymentMethod = "full_prepayment"
или"prepayment"
или"advance"
- Inheritance
-
- Object
- BaseRequest
- AcquiringRequest
- SendClosingReceiptRequest
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
- SendClosingReceiptRequest({required int paymentId, required Receipt receipt, String? signToken})
- Создает экземпляр метода по отправке закрывающего чека в кассу
-
SendClosingReceiptRequest.fromJson(Map<
String, dynamic> json) -
Преобразование json в модель
factory
Properties
- apiMethod → String
-
Метод запроса
no setteroverride
- apiMethodPath → String
-
Полный путь до метода запроса (версия + метод)
no setterinherited
- apiVersion → String
-
Версия метода запроса
no setteroverride
-
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
- paymentId → int
-
Идентификатор платежа в системе банка
final
- receipt → Receipt
-
Данные чека
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signToken → String?
-
Опциональный параметр: готовая подпись запроса
finalinherited
Methods
-
compareLists<
R> (List< R> ? list1, List<R> ? list2) → bool -
Determines whether
list1
andlist2
are equal.inherited -
copyWith(
{String? signToken, int? paymentId, Receipt? receipt}) → SendClosingReceiptRequest -
Создает экземпляр с заданными параметрами
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