openpay_flutter 0.0.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • new41

openpay_flutter #

A new Flutter package project.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.

[0.0.2] - TODO: Add release date.

add methods for card operations.

[0.0.3] - TODO: Add release date.

change exceptions to json format

Use this package as a library

1. Depend on it

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


dependencies:
  openpay_flutter: ^0.0.3

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:openpay_flutter/openpay_flutter.dart';
  
Version Uploaded Documentation Archive
0.0.3 Apr 19, 2019 Go to the documentation of openpay_flutter 0.0.3 Download openpay_flutter 0.0.3 archive
0.0.2 Apr 19, 2019 Go to the documentation of openpay_flutter 0.0.2 Download openpay_flutter 0.0.2 archive
0.0.1 Apr 16, 2019 Go to the documentation of openpay_flutter 0.0.1 Download openpay_flutter 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
38
Health:
Code health derived from static analysis. [more]
41
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
41
Learn more about scoring.

We analyzed this package on Apr 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-0.68 points)

452 out of 457 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.

Fix lib/model/card.dart. (-12.66 points)

Analysis of lib/model/card.dart reported 27 hints, including:

line 11 col 13: Name non-constant identifiers using lowerCamelCase.

line 12 col 12: Name non-constant identifiers using lowerCamelCase.

line 13 col 12: Name non-constant identifiers using lowerCamelCase.

line 14 col 12: Name non-constant identifiers using lowerCamelCase.

line 15 col 12: Name non-constant identifiers using lowerCamelCase.

Fix lib/model/payment_method.dart. (-9.54 points)

Analysis of lib/model/payment_method.dart reported 20 hints, including:

line 10 col 12: Name non-constant identifiers using lowerCamelCase.

line 14 col 12: Name non-constant identifiers using lowerCamelCase.

line 15 col 12: Name non-constant identifiers using lowerCamelCase.

line 16 col 12: Name non-constant identifiers using lowerCamelCase.

line 17 col 12: Name non-constant identifiers using lowerCamelCase.

Fix lib/model/transaction.dart. (-9.08 points)

Analysis of lib/model/transaction.dart reported 19 hints, including:

line 14 col 13: Name non-constant identifiers using lowerCamelCase.

line 18 col 12: Name non-constant identifiers using lowerCamelCase.

line 19 col 12: Name non-constant identifiers using lowerCamelCase.

line 21 col 12: Name non-constant identifiers using lowerCamelCase.

line 23 col 12: Name non-constant identifiers using lowerCamelCase.

Fix additional 21 files with analysis or formatting issues. (-54.42 points)

Additional issues in the following files:

  • lib/model/subscription.dart (18 hints)
  • lib/model/open_pay_fees_summary.dart (12 hints)
  • lib/model/plan.dart (12 hints)
  • lib/model/customer.dart (10 hints)
  • lib/model/bank_account.dart (8 hints)
  • lib/services/open_pay_base_service.dart (7 hints)
  • lib/model/payout_summary.dart (6 hints)
  • lib/model/points_balance.dart (6 hints)
  • lib/utils/openpay_client.dart (6 hints)
  • lib/model/address.dart (4 hints)
  • lib/model/exchange_rate.dart (4 hints)
  • lib/model/merchant.dart (4 hints)
  • lib/model/card_points.dart (3 hints)
  • lib/model/affiliation.dart (2 hints)
  • lib/model/store.dart (2 hints)
  • lib/model/web_hook.dart (2 hints)
  • lib/services/card_service.dart (2 hints)
  • lib/services/customer_service.dart (2 hints)
  • lib/openpay_flutter.dart (1 hint)
  • lib/model/deferral_payments.dart (Run flutter format to format lib/model/deferral_payments.dart.)
  • lib/model/open_pay_base_model.dart (Run flutter format to format lib/model/open_pay_base_model.dart.)

Maintenance issues and suggestions

Homepage URL isn't helpful. (-10 points)

Update the homepage field from pubspec.yaml: link to a website about the package or use the source repository URL.

The package description is too short. (-20 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.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and openpay_flutter.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
dio ^2.1.2 2.1.2
flutter 0.0.0
json_annotation ^2.2.0 2.2.0
Transitive dependencies
collection 1.14.11
cookie_jar 1.0.0
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
build_runner ^1.3.1
flutter_test
json_serializable ^2.2.0