modifyInvoice method

Future<EncryptedInvoice> modifyInvoice(
  1. String sdkId,
  2. EncryptedInvoice entity
)

Implementation

Future<EncryptedInvoice> modifyInvoice(String sdkId, EncryptedInvoice entity) async {
	final res = await _methodChannel.invokeMethod<String>(
		'InvoiceApi.encrypted.modifyInvoice',
		{
			"sdkId": sdkId,
			"entity": jsonEncode(EncryptedInvoice.encode(entity)),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method modifyInvoice");
	final parsedResJson = jsonDecode(res);
	return EncryptedInvoice.fromJSON(parsedResJson);
}