cancelInvoice abstract method

Future<Invoice> cancelInvoice(
  1. String invoiceNumber
)

Cancel invoice, by its number.

Throw UnauthorizedException when the secret key is invalid. Throw NotFoundException when no match was found with the invoiceNumber. It throws exception TelePayException with any other error.

Implementation

Future<Invoice> cancelInvoice(String invoiceNumber);