add payment
This commit is contained in:
@@ -33,4 +33,9 @@ class FcsShipmentServiceImp implements FcsShipmentService {
|
||||
Future<void> ship(FcsShipment fcsShipment) {
|
||||
return shipmentDataProvider.ship(fcsShipment);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<String> report(FcsShipment fcsShipment) {
|
||||
return shipmentDataProvider.reportFcsShipment(fcsShipment);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,4 +5,5 @@ abstract class FcsShipmentService {
|
||||
Future<void> updateFcsShipment(FcsShipment fcsShipment);
|
||||
Future<void> deleteFcsShipment(FcsShipment fcsShipment);
|
||||
Future<void> ship(FcsShipment fcsShipment);
|
||||
Future<String> report(FcsShipment fcsShipment);
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:fcs/data/provider/shipment_data_provider.dart';
|
||||
import 'package:fcs/data/services/shipment_service.dart';
|
||||
import 'package:fcs/domain/entities/connectivity.dart';
|
||||
import 'package:fcs/domain/entities/invoice.dart';
|
||||
import 'package:fcs/domain/entities/payment.dart';
|
||||
import 'package:fcs/domain/entities/shipment.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -31,4 +32,14 @@ class InvoiceServiceImp implements InvoiceService {
|
||||
Future<void> updateInvoice(Invoice invoice) {
|
||||
return invoiceDataProvider.updateInvoice(invoice);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> pay(Payment payment) {
|
||||
return invoiceDataProvider.pay(payment);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> updatPaymentStatus(Payment payment) {
|
||||
return invoiceDataProvider.updatPaymentStatus(payment);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import 'package:fcs/domain/entities/invoice.dart';
|
||||
import 'package:fcs/domain/entities/shipment.dart';
|
||||
import 'package:fcs/domain/entities/payment.dart';
|
||||
|
||||
abstract class InvoiceService {
|
||||
Future<void> createInvoice(Invoice invoice);
|
||||
Future<void> updateInvoice(Invoice invoice);
|
||||
Future<void> cancelInvoice(Invoice invoice);
|
||||
Future<void> pay(Payment payment);
|
||||
Future<void> updatPaymentStatus(Payment payment);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user