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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d88e283d2865f257d6d5c3ce29eb4d9fe2f0e749
4
- data.tar.gz: 11cb11199deb03cd17b9178eccc15bf3dd5bb432
3
+ metadata.gz: c06a424989f613db0191cce31b7acd854b4ba01f
4
+ data.tar.gz: 3075394c13a2add9a27ef1a9e969d0cf4c820100
5
5
  SHA512:
6
- metadata.gz: 30ea0846d2cebbd5e7e89a1627f5d6b7ad09306653ed002e35e1a65aeb1cda704011e13c9fd20d68206e0e6c5bb4213b217442fa6b9e4123705e207e74af63c1
7
- data.tar.gz: 24baa78f3ea03595912cce861676edd2f139733d6ac4835d266baf23dc8eae6fe287c8045a3116c7fdb0e9c43dfd34020d4c31f5389b9b4af89231e3ca152eb3
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.15.2 See the changelog [here](https://github.com/quaderno/quaderno-ruby/blob/master/changelog.md)
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
@@ -1,4 +1,10 @@
1
1
  #Changelog
2
+ ##1.16.0
3
+ * Added `Quaderno::CheckoutSession`
4
+
5
+ ##1.15.2
6
+ * Relax `httparty` version requirement.
7
+
2
8
  ##1.15.1
3
9
  * Fix `Quaderno` load order.
4
10
 
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 }" }
@@ -0,0 +1,4 @@
1
+ class Quaderno::CheckoutSession < Quaderno::Base
2
+ api_model Quaderno::CheckoutSession
3
+ api_path 'checkout/sessions'
4
+ end
@@ -1,3 +1,3 @@
1
1
  class Quaderno
2
- VERSION = "1.15.2"
2
+ VERSION = "1.16.0"
3
3
  end
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 = "2017-12-21"
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.15.2
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: 2017-12-21 00:00:00.000000000 Z
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