RechnungApi class

Constructors

RechnungApi({required String apiKey, String? baseUrl, Client? httpClient, Duration? timeout})
RechnungApi.mitTransport(RechnungTransport transport)
Mit einem bereits gebauten Transport (Tests, eigene Adresse).

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelInvoice({required String idempotencyKey, required String invoiceId, required String reason, String? note}) Future<CancelResult>
Vollstorno: Gutschrift über alle Positionen, das Original wird storniert.
createCreditNote(CreditNoteRequest anfrage) Future<CreditNoteResult>
Teilgutschrift; höchstens bis zum Brutto des Originals je USt-Satz.
createCustomer(CustomerInput customer, {String? idempotencyKey}) Future<Customer>
getCustomer({String? customerId, String? externalId}) Future<Customer>
getInvoice({String? invoiceId, String? number}) Future<Invoice>
getInvoicePdf(String invoiceId, {String? language}) Future<Uint8List>
Das PDF, bei ausreichenden Angaben mit eingebetteter Factur-X-Datei.
getInvoiceSetupStatus() Future<InvoiceSetupStatus>
Darf dieses Konto ausstellen, und was fehlt noch? Antwortet auch ohne Freigabe und vor der Live-Freischaltung.
getInvoiceXml(String invoiceId, {String format = 'ubl'}) Future<String>
Die E-Rechnung als XML-Text; format ubl (Peppol) oder cii.
issueInvoice(IssueInvoiceRequest anfrage) Future<IssueResult>
listBrands() Future<List<Brand>>
Die Marken des Kontos; id geht als brandId in issueInvoice.
listInvoices({String? from, String? to, String? status, String? docType, String? customerId, int? limit, String? cursor}) Future<InvoicePage>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previewInvoice(IssueInvoiceRequest anfrage) Future<PreviewResult>
Probelauf von issueInvoice: dieselbe Anfrage wird geprüft und gerechnet wie beim Ausstellen, aber nichts festgeschrieben — keine Nummer, kein Dokument, keine Zahlung. Die Antwort nennt Summen, Steuerfall samt Grund, Sprache, Marke, E-Rechnung und die Hinweise — oder scheitert mit demselben Fehlercode, mit dem das Ausstellen scheitern würde.
recordInvoicePayment(RecordPaymentRequest anfrage) Future<RecordPaymentResult>
Eine Zahlung nachtragen, die nach dem Ausstellen eingetroffen ist.
searchCustomers({String? externalId, String? vatId, String? email, String? name, int? limit, String? cursor}) Future<CustomerPage>
Mindestens einer von externalId, vatId, email oder name (Namensanfang).
toString() String
A string representation of this object.
inherited
updateCustomer(String customerId, Map<String, dynamic> patch) Future<Customer>
Nur die übergebenen Felder ändern sich (Feldnamen wie in CustomerInput.toJson).

Operators

operator ==(Object other) bool
The equality operator.
inherited