Skip to content

Commit

Permalink
0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sominemo committed Oct 19, 2020
1 parent 392399e commit 93a6594
Show file tree
Hide file tree
Showing 20 changed files with 129 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.3.0
- Breaking change: /mcc/mcc.dart removed
- Docs fixes
## 1.2.2
- Fixed CurrencyInfo integer parsing error

Expand Down
9 changes: 9 additions & 0 deletions lib/currency/extensions/currency_countries.dart
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/// Currency countries pack
///
/// Adds reference information about in which countries
/// currencies are being used
///
/// {@category Extensions}
/// {@subCategory Currency}
library currency_countries;

export '../../src/currency/extensions/countries.dart';
8 changes: 8 additions & 0 deletions lib/currency/extensions/currency_names.dart
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
/// Currency names pack
///
/// Adds reference information about how currencies are called
///
/// {@category Extensions}
/// {@subCategory Currency}
library currency_names;

export '../../src/currency/extensions/names.dart';
8 changes: 8 additions & 0 deletions lib/data/currency/currency_countries_dataset.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/// Currency countries dataset
///
/// Contains info about possible countries some currencies are being used in
///
/// {@category Datasets}
/// {@subCategory Currency}
library currency_countries_dataset;

const Map<String, List<String>> Iso4217Countries = {
'8': ['Albania'],
'12': ['Algeria'],
Expand Down
8 changes: 8 additions & 0 deletions lib/data/currency/currency_names_dataset.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/// Currency names dataset
///
/// Contains info about possible names of some currencies
///
/// {@category Datasets}
/// {@subCategory Currency}
library currency_names_dataset;

const Map<String, String> Iso4217Names = {
'8': 'Lek',
'12': 'Algerian Dinar',
Expand Down
8 changes: 8 additions & 0 deletions lib/data/currency/iso4217_dataset.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/// ISO-4217 dataset
///
/// Describes currencies: their number, code and digits
///
/// {@category Datasets}
/// {@subCategory Currency}
library iso4217_dataset;

const List<Map<String, dynamic>> Iso4217 = [
{'code': 'AED', 'number': 784, 'digits': 2},
{'code': 'AFN', 'number': 971, 'digits': 2},
Expand Down
8 changes: 8 additions & 0 deletions lib/data/mcc/mcc_emoji_dataset.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/// MCC emoji dataset
///
/// Emoji representations for some MCCs
///
/// {@category Datasets}
/// {@subCategory MCC}
library mcc_emoji_dataset;

const Map<String, List<int>> MCCEmojiDataset = {
'\uD83D\uDC15': [742, 5995],
'\uD83D\uDE9C': [763],
Expand Down
8 changes: 8 additions & 0 deletions lib/data/mcc/mcc_english_dataset.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/// MCC English dataset
///
/// English names for MCCs
///
/// {@category Datasets}
/// {@subCategory MCC}
library mcc_english_dataset;

const Map<String, String> MCCEnglishDataset = {
'1520': 'General Contractors',
'1711': 'Heating, Plumbing, A/C',
Expand Down
8 changes: 8 additions & 0 deletions lib/data/mcc/mcc_russian_dataset.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/// MCC Russian dataset
///
/// Russian names for MCCs
///
/// {@category Datasets}
/// {@subCategory MCC}
library mcc_russian_dataset;

const Map<String, String> MCCRussianDataset = {
'1520': 'Строительство. Подрядчики',
'1711': 'Кондиционеры. Установка',
Expand Down
8 changes: 8 additions & 0 deletions lib/data/mcc/mcc_ukrainian_dataset.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/// MCC Ukrainian dataset
///
/// Ukrainian names for MCCs
///
/// {@category Datasets}
/// {@subCategory MCC}
library mcc_ukrainian_dataset;

const Map<String, String> MCCUkrainianDataset = {
'1520': 'Будівництво. Підрядники',
'1711': 'Кондиціонери. Встановлення',
Expand Down
8 changes: 8 additions & 0 deletions lib/data/mcc/mcc_visuals_dataset.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/// MCC visuals dataset
///
/// Visuals (color, material icon name) for MCCs
///
/// {@category Datasets}
/// {@subCategory MCC}
library mcc__dataset;

const Map<String, Map<String, String>> MCCVisualsDataset = {
'🐕': {'icon': 'pets', 'color': '#ff9800'},
'🐶': {'icon': 'pets', 'color': '#ff9800'},
Expand Down
8 changes: 8 additions & 0 deletions lib/mcc/extensions/mcc_emoji.dart
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
/// Emoji dataset for MCC
///
/// Adds emojis for different MCC categories
///
/// {@category Extensions}
/// {@subCategory MCC}
library mcc_emoji;

export '../../src/mcc/extensions/emoji.dart';
8 changes: 8 additions & 0 deletions lib/mcc/extensions/mcc_english.dart
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
/// English pack for MCC
///
/// Descriptions of MCC codes in English
///
/// {@category Extensions}
/// {@subCategory MCC}
library mcc_english;

export '../../src/mcc/extensions/english.dart';
8 changes: 8 additions & 0 deletions lib/mcc/extensions/mcc_russian.dart
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
/// Russian pack for MCC
///
/// Descriptions of MCC codes in Russian
///
/// {@category Extensions}
/// {@subCategory MCC}
library mcc_russian;

export '../../src/mcc/extensions/russian.dart';
8 changes: 8 additions & 0 deletions lib/mcc/extensions/mcc_ukrainian.dart
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
/// Ukrainian pack for MCC
///
/// Descriptions of MCC codes in Ukrainian
///
/// {@category Extensions}
/// {@subCategory MCC}
library mcc_ukrainian;

export '../../src/mcc/extensions/ukrainian.dart';
9 changes: 9 additions & 0 deletions lib/mcc/extensions/mcc_visuals.dart
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/// Visuals pack for MCC
///
/// Adds getters with visual assets related to the MCC code
/// (emoji, Material icon name, color)
///
/// {@category Extensions}
/// {@subCategory MCC}
library mcc_visuals;

export '../../src/mcc/extensions/visuals.dart';
1 change: 0 additions & 1 deletion lib/mcc/mcc.dart

This file was deleted.

4 changes: 2 additions & 2 deletions lib/src/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,15 @@ class API {
/// No authenication Root path
///
/// Is being used instead of [API.domain] when [API.token] is
/// not present or [APIRequst.useAuth] == `false`.
/// not present or [APIRequest.useAuth] == `false`.
///
/// Defaults to [API.domain]
final Uri noAuthDomain;

/// Request credential
///
/// Is being appended in [API.authAttacher] when
/// [APIRequst.useAuth] == `true`.
/// [APIRequest.useAuth] == `true`.
final String token;

/// Minimal timeout between all requests
Expand Down
2 changes: 1 addition & 1 deletion lib/src/mono.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:monobank_api/mcc/mcc.dart';
import 'package:monobank_api/mcc.dart';
import 'package:monobank_api/monobank_api.dart';

/// Default library domain that's being used
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: >
Supports getting currencies and grabbing statement
version: 1.2.2
version: 1.3.0
homepage: https://github.com/Sominemo/monobank_api

environment:
Expand Down

0 comments on commit 93a6594

Please sign in to comment.