Panly API docsstaging

Screens / Order receipt

Order receipt

Receipt for a completed order (from All orders or the end of a split): lines, subtotal, each charge by its receipt label, total, and for a split each paid part with its method. Item names come from the catalog.

App routes
/orders/all/:orderId/receipt
Access
orders.view
Screen code
lib/screens/order_receipt/order_receipt_page.dart
lib/screens/order_receipt/order_receipt_controller.dart
lib/screens/order_receipt/receipt_data.dart
lib/screens/order_receipt/widgets/receipt_card.dart
Source
elmermj/panly-app @ pre-staging-test (72aaffd)

API calls (2)

CallWhy the screen makes itWhere in the app code
GET /v1/orders/{orderId}
Get order with items and balance
The order with its charges and paid_at lib/screens/order_receipt/order_receipt_controller.dart:40
lib/domain/usecases/orders/orders_usecase.dart:15
lib/data/repositories/orders_repository.dart:30
lib/data/datasources/orders_remote.dart:34
GET /v1/orders/{orderId}/split
Current split with its parts (PAN-135)
The paid parts of a split order lib/screens/order_receipt/order_receipt_controller.dart:44
lib/domain/usecases/splits/split_usecase.dart:19
lib/data/repositories/split_repository.dart:22

Each call links to its operation in the API reference. Code locations are file:line in panly-app at 72aaffd, listed from the screen down to the line that sends the request.