diff --git a/snippets/dart_snippets/lib/list_payments.dart b/snippets/dart_snippets/lib/list_payments.dart index 85f641c..c34ce2b 100644 --- a/snippets/dart_snippets/lib/list_payments.dart +++ b/snippets/dart_snippets/lib/list_payments.dart @@ -3,7 +3,7 @@ import 'package:breez_sdk/bridge_generated.dart'; Future> listPayments() async { // ANCHOR: list-payments - ListPaymentsRequest req = ListPaymentsRequest(filter: PaymentTypeFilter.All); + ListPaymentsRequest req = ListPaymentsRequest(); List paymentsList = await BreezSDK().listPayments(req: req); print(paymentsList); // ANCHOR_END: list-payments @@ -22,7 +22,7 @@ Future> listPaymentsFiltered({ int fromTimestamp = DateTime.now().subtract(const Duration(minutes: 30)).millisecondsSinceEpoch ~/ 1000; ListPaymentsRequest req = ListPaymentsRequest( - filter: PaymentTypeFilter.Sent, + filters: [PaymentTypeFilter.Sent], fromTimestamp: fromTimestamp, toTimestamp: toTimestamp, includeFailures: includeFailures, diff --git a/snippets/dart_snippets/pubspec.lock b/snippets/dart_snippets/pubspec.lock index 62ae970..9ab37dc 100644 --- a/snippets/dart_snippets/pubspec.lock +++ b/snippets/dart_snippets/pubspec.lock @@ -57,7 +57,7 @@ packages: resolved-ref: "9629def110a9dd03413850a05e9709d3c9794b0d" url: "https://github.com/breez/breez-sdk-flutter" source: git - version: "0.2.7" + version: "0.2.9" build: dependency: transitive description: