Skip to content

Commit

Permalink
Final fix before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhi13man committed May 13, 2021
1 parent dd90e36 commit 06a3aba
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 31 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## [0.0.1] - TODO: Add release date.
# [1.0.0] - 13th May, 2021

* TODO: Describe initial release.
Initial release supporting [Nordigen's Account Information API documentation](https://nordigen.com/en/account_information_documenation/integration/quickstart_guide/) and relevant Data Models required to support it, in the form of Serializable Classes.
54 changes: 28 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,38 +121,40 @@ For more information about the API view [Nordigen's Account Information API docu
import 'package:nordigen_integration/nordigen_integration.dart';

void main() async {
/// Step 1
final NordigenAccountInfoAPI apiInterface = NordigenAccountInfoAPI(
accessToken: 'YOUR_TOKEN',
);

/// Step 2 and then selecting the first ASPSP
final ASPSP firstBank =
(await apiInterface.getBanksForCountry(countryCode: 'gb')).first;

/// Step 4.1
final RequisitionModel requisition = await apiInterface.createRequisition(
endUserID: 'exampleEndUser',
redirect: 'http://www.yourwebpage.com/',
reference: 'exampleReference420',
);

/// Step 4.2
final String redirectLink =
await apiInterface.fetchRedirectLinkForRequisition(
requisition: requisition,
aspsp: firstBank,
);

/// Open and Validate [redirectLink] and proceed with other functionality.
print(redirectLink);
/// Step 1
final NordigenAccountInfoAPI apiInterface = NordigenAccountInfoAPI(
accessToken: 'YOUR_TOKEN',
);

/// Step 2 and then selecting the first ASPSP
final ASPSP firstBank =
(await apiInterface.getBanksForCountry(countryCode: 'gb')).first;

/// Step 4.1
final RequisitionModel requisition = await apiInterface.createRequisition(
endUserID: 'exampleEndUser',
redirect: 'http://www.yourwebpage.com/',
reference: 'exampleReference420',
);

/// Step 4.2
final String redirectLink =
await apiInterface.fetchRedirectLinkForRequisition(
requisition: requisition,
aspsp: firstBank,
);

/// Open and Validate [redirectLink] and proceed with other functionality.
print(redirectLink);
}

----

### Dependencies

[http](https://pub.dev/packages/http) is used for making API calls to the Nordigen Server Endpoints with proper response and error handling.
1. [http](https://pub.dev/packages/http) is used for making API calls to the Nordigen Server Endpoints with proper response and error handling.

2. [meta](https://pub.dev/packages/meta) is used for supporting the `@required` tags to signify required named parameters across the code.

----

Expand Down
2 changes: 1 addition & 1 deletion example/nordigen_integration_widget_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class BankPickerWidget extends StatelessWidget {
requisition: await apiInterface.createRequisition(
endUserID: 'exampleEndUser',
redirect: 'http://www.yourwebpage.com/',
reference: 'exampleReference13110',
reference: 'exampleReference1771',
),
aspsp: banks[index],
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ packages:
source: hosted
version: "0.12.10"
meta:
dependency: transitive
dependency: "direct main"
description:
name: meta
url: "https://pub.dartlang.org"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: nordigen_integration
description: Development of a Flutter Package for Nordigen Integration with relevant Data Models, proper Encapsulation with the exposing of parameters, and succinct documentation for each relevant element.
version: 1.0.0
author: dhi13man
homepage: https://github.com/Dhi13man/nordigen_integration

environment:
Expand All @@ -12,6 +11,7 @@ dependencies:
flutter:
sdk: flutter
http: ^0.13.3
meta: ^1.3.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 06a3aba

Please sign in to comment.