suisse 0.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 53

A client for Bitcoin Suisse API.

Usage #

A simple usage example:

import 'package:suisse/suisse.dart';

main() {
  var client = Client();

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0.1.1 #

  • Add supported countries

0.1.0 #

  • Initial version


import 'dart:convert';
import 'package:http/http.dart' as http;
import 'package:suisse/suisse.dart';

main(List<String> args) async {
  var client = Client("", args[0]);
  var payment = Payment()
    ..merchantNumber = args[1]
    ..terminalNumber = args[2]
    ..amount = 100
    ..fromCurrency = "CHF"
    ..toCurrency = "BTC";

  http.Response response = await client.createPayementRequest(payment);
  var body = json.decode(response.body);

  response = await client.isChanged(body["Key"]);

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  suisse: ^0.1.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:suisse/suisse.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Health issues and suggestions

Document public APIs. (-0.17 points)

34 out of 35 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Maintenance suggestions

The package description is too short. (-8 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
crypto ^2.0.6 2.1.4
http ^0.12.0 0.12.0+4
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
http_parser 3.1.3
meta 1.1.8
path 1.6.4
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
mock_web_server ^4.0.0
pedantic ^1.0.0 1.9.0
test ^1.0.0