superfaktura 0.9.4 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 261685ce6159b5b28429bea14331c964048d0edd77aed533877a0ac0c9be596f
4
- data.tar.gz: c7fa6cad59486f90a7aa2f46b93f04a49f604bec6fb47ac2b1b69fa9aad854a8
3
+ metadata.gz: dc0f5e524cd0546243844a54b9dd9e0c09577c207403f1e626027e1c86a9d5ea
4
+ data.tar.gz: 83279b4c9cfa9baa0c01d4c79f7b1daf579d118b48ff730df43f61178990b3e8
5
5
  SHA512:
6
- metadata.gz: bffbe47990c26ce3cbfa39e9f735af1ea8edfcf020419cadd2b069424fe9be4453c952a780344c414c998f6f4cfee8d58cafeff4c9cd4c985fa1edc2c78ea767
7
- data.tar.gz: 80db1fc82a9200e145d5eaa7c99d83f95c1d6d30afef01eecdf61d70e2897b1e09ad5a913b1481d803e688338c140b4932715318da0fe08855e058b2f448c810
6
+ metadata.gz: 7b68f27d6414d96e5a9df48e2a071716dba2c8c9df195539d96658f2c64fa88c0785897584908ac6181a5830ff01e2af48ebf8d7a62241fc7e930d7310a525a3
7
+ data.tar.gz: c721cedc92829d50f23918032c8af05aaee2e70829f85fafdfdf80255b0990cb5f470a7389d20d43fdab07144e53a3f380162042a74e88c06074b6a19b393617
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superfaktura (0.9.4)
4
+ superfaktura (0.9.5)
5
5
  faraday (~> 1)
6
6
  faraday_middleware (~> 1)
7
7
 
data/README.md CHANGED
@@ -37,10 +37,22 @@ Initialize `exponea.rb` with this settings:
37
37
 
38
38
  ### Create invoice
39
39
  ```
40
- Superfaktura::CreateInvoice.call(attributes)
40
+ Superfaktura::Invoices.create(attributes)
41
41
  ```
42
42
  - **attributes**: hash for adding invoice. More info here: https://github.com/superfaktura/docs/blob/master/invoice.md#add-invoice
43
43
 
44
+ ### Download invoice
45
+ ```
46
+ Superfaktura::Invoices.download(id, locale: :en)
47
+ ```
48
+ - **id**: superfaktura id
49
+ - **locale**: locale, iso2. More info in Superfaktura::Locales::LANGUAGES
50
+
51
+ ### Check connection
52
+ ```
53
+ Superfaktura::CheckConnection.call : Boolean
54
+ ```
55
+
44
56
  ## Development
45
57
 
46
58
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
data/changelog.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.5
4
+ Update readme
5
+
3
6
  ## 0.9.4
4
7
  Update readme
5
8
 
@@ -1,3 +1,3 @@
1
1
  module Superfaktura
2
- VERSION = '0.9.4'.freeze
2
+ VERSION = '0.9.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superfaktura
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lubomir Vnenk