removeCodes method

Future<List<EncryptedInvoice>> removeCodes(
  1. String sdkId,
  2. String userId,
  3. String serviceId,
  4. String secretFKeys,
  5. List<String> tarificationIds,
)

Implementation

Future<List<EncryptedInvoice>> removeCodes(String sdkId, String userId, String serviceId, String secretFKeys, List<String> tarificationIds) async {
	final res = await _methodChannel.invokeMethod<String>(
		'InvoiceApi.encrypted.removeCodes',
		{
			"sdkId": sdkId,
			"userId": jsonEncode(userId),
			"serviceId": jsonEncode(serviceId),
			"secretFKeys": jsonEncode(secretFKeys),
			"tarificationIds": jsonEncode(tarificationIds.map((x0) => x0).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method removeCodes");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => EncryptedInvoice.fromJSON(x1) ).toList();
}