quaderno 1.15.2 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +38 -1
- data/changelog.md +6 -0
- data/lib/quaderno-ruby.rb +1 -1
- data/lib/quaderno-ruby/checkout_session.rb +4 -0
- data/lib/quaderno-ruby/version.rb +1 -1
- data/quaderno.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c06a424989f613db0191cce31b7acd854b4ba01f
|
4
|
+
data.tar.gz: 3075394c13a2add9a27ef1a9e969d0cf4c820100
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e6f8fe0b4bfb388386c2e5eaf5bb4d14af6099a868ea9f3db2309024c7896af5eae823d63adde5c7818cb6ba46d38376f63cac3c26c7a5b8cffeea5a3d91eac
|
7
|
+
data.tar.gz: 4b66fcebba6da2b411b9f249a2bffd809a5857ea16ed4c5ea261028de7f219ad672d787b64a90cb1a84f175c3b8935969246cc72d8fe3432b314d94bfdb883c5
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Quaderno-ruby is a ruby wrapper for [Quaderno API] (https://github.com/quaderno/quaderno-api).
|
4
4
|
|
5
|
-
Current version is 1.
|
5
|
+
Current version is 1.16.0 See the changelog [here](https://github.com/quaderno/quaderno-ruby/blob/master/changelog.md)
|
6
6
|
|
7
7
|
## Installation & Configuration
|
8
8
|
|
@@ -565,6 +565,43 @@ will validate the vat number for the passed country.
|
|
565
565
|
|
566
566
|
will create an evidence based on the data pased as parameters.
|
567
567
|
|
568
|
+
## Checkout Sessions
|
569
|
+
|
570
|
+
### Getting checkout sessions
|
571
|
+
```ruby
|
572
|
+
Quaderno::CheckoutSession.all() #=> Array
|
573
|
+
```
|
574
|
+
|
575
|
+
will return an array with all the checkout sessions in your account.
|
576
|
+
|
577
|
+
### Finding a checkout session
|
578
|
+
```ruby
|
579
|
+
Quaderno::CheckoutSession.find(id) #=> Quaderno::CheckoutSession
|
580
|
+
```
|
581
|
+
|
582
|
+
will return the checkout session with the id passed as parameter.
|
583
|
+
|
584
|
+
### Creating a new checkout session
|
585
|
+
```ruby
|
586
|
+
Quaderno::CheckoutSession.create(params) #=> Quaderno::CheckoutSession
|
587
|
+
```
|
588
|
+
|
589
|
+
will create a checkout session using the information of the hash passed as parameter and return an instance of Quaderno::CheckoutSession with the created checout session.
|
590
|
+
|
591
|
+
### Updating an existing checkout session
|
592
|
+
```ruby
|
593
|
+
Quaderno::CheckoutSession.update(id, params) #=> Quaderno::CheckoutSession
|
594
|
+
```
|
595
|
+
|
596
|
+
will update the specified checkout session with the data of the hash passed as second parameter.
|
597
|
+
|
598
|
+
### Deleting a checkout session
|
599
|
+
```ruby
|
600
|
+
Quaderno::CheckoutSession.delete(id) #=> Boolean
|
601
|
+
```
|
602
|
+
will delete the checkout session with the id passed as parameter.
|
603
|
+
|
604
|
+
|
568
605
|
## Exceptions
|
569
606
|
Quaderno-ruby exceptions raise depending on the type of error:
|
570
607
|
|
data/changelog.md
CHANGED
data/lib/quaderno-ruby.rb
CHANGED
@@ -8,4 +8,4 @@ require 'quaderno-ruby/helpers/authentication'
|
|
8
8
|
require 'quaderno-ruby/collection'
|
9
9
|
|
10
10
|
%w(block crud deliver payment retrieve).each { |filename| require "quaderno-ruby/behavior/#{filename}" }
|
11
|
-
%w(base contact item invoice receipt credit income estimate expense recurring document_item report evidence payment webhook tax).each { |filename| require "quaderno-ruby/#{ filename }" }
|
11
|
+
%w(base contact item invoice receipt credit income estimate expense recurring document_item report evidence payment webhook tax checkout_session).each { |filename| require "quaderno-ruby/#{ filename }" }
|
data/quaderno.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.bindir = "exe"
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = %w(lib)
|
21
|
-
spec.date = "
|
21
|
+
spec.date = "2018-05-07"
|
22
22
|
spec.extra_rdoc_files = %w(LICENSE.txt README.md)
|
23
23
|
|
24
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quaderno
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recrea
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -146,6 +146,7 @@ files:
|
|
146
146
|
- lib/quaderno-ruby/behavior/deliver.rb
|
147
147
|
- lib/quaderno-ruby/behavior/payment.rb
|
148
148
|
- lib/quaderno-ruby/behavior/retrieve.rb
|
149
|
+
- lib/quaderno-ruby/checkout_session.rb
|
149
150
|
- lib/quaderno-ruby/collection.rb
|
150
151
|
- lib/quaderno-ruby/contact.rb
|
151
152
|
- lib/quaderno-ruby/credit.rb
|