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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +13 -1
- data/changelog.md +3 -0
- data/lib/superfaktura/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc0f5e524cd0546243844a54b9dd9e0c09577c207403f1e626027e1c86a9d5ea
|
|
4
|
+
data.tar.gz: 83279b4c9cfa9baa0c01d4c79f7b1daf579d118b48ff730df43f61178990b3e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b68f27d6414d96e5a9df48e2a071716dba2c8c9df195539d96658f2c64fa88c0785897584908ac6181a5830ff01e2af48ebf8d7a62241fc7e930d7310a525a3
|
|
7
|
+
data.tar.gz: c721cedc92829d50f23918032c8af05aaee2e70829f85fafdfdf80255b0990cb5f470a7389d20d43fdab07144e53a3f380162042a74e88c06074b6a19b393617
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -37,10 +37,22 @@ Initialize `exponea.rb` with this settings:
|
|
|
37
37
|
|
|
38
38
|
### Create invoice
|
|
39
39
|
```
|
|
40
|
-
Superfaktura::
|
|
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
data/lib/superfaktura/version.rb
CHANGED