octobat 2.0.12 → 2.0.14

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
  SHA1:
3
- metadata.gz: d72246756c2a8d5a2c36a6f42ced5208268fece4
4
- data.tar.gz: 9d93b88fb4783507ae73242db3df26eebcaa3e91
3
+ metadata.gz: 18436768c51bf73813f23eebc8fea98955ca697e
4
+ data.tar.gz: 569cd038db8d18a3c19f1fd9f3d1ec9113cb92c8
5
5
  SHA512:
6
- metadata.gz: 06117256cdbc56f8d1cce89259541874ac4ccdbdbd00bbf2b334ac230780a6ea2c3cf623530c410e0863d3a92994eae34c60fc1253a7d4412848408c7f3d51be
7
- data.tar.gz: 2b82815376c80d889d7884ef1afd7be15eef3c69396a70e79421ef8caeb754ff5f3d8e524db36a840595e6a0b4ad2bc32f06f59397a31ddc6c7d89d3ae8e0200
6
+ metadata.gz: 10f3119acd80ba94873a2aadb2f3bf6546d7a624ff3fbc90879bd6cdc2d90175d5c49155c4ed5f896ac1d5a585605bc9d44eef8b62f9a7ab96b93005984866b5
7
+ data.tar.gz: ad9143fc35fceee268647fa2c665f0ff0e00ae738577be9900f12efedeee7204b203241363284ba0f747f0a2f70264ee0ff22212853eef05c464c9c5b96b4305
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ === 2.0.14 2019-07-24
2
+ * 1 minor enhancement:
3
+ * Add Order
4
+
5
+ === 2.0.13 2019-05-20
6
+ * 1 minor enhancement:
7
+ * Add ProformaInvoices
8
+
1
9
  === 2.0.11 2018-04-10
2
10
  * 1 minor enhancement:
3
11
  * Add CSV exports for payouts
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.12
1
+ 2.0.14
@@ -0,0 +1,27 @@
1
+ module Octobat
2
+ class Order < APIResource
3
+ extend Octobat::APIOperations::List
4
+
5
+ def expire
6
+ response, api_key = Octobat.request(:patch, expire_url, @api_key)
7
+ refresh_from(response, api_key)
8
+ end
9
+
10
+ def update_payment_intent_status(payment_intent_status_data = {})
11
+ response, api_key = Octobat.request(:patch, update_payment_intent_status_url, @api_key, payment_intent_status_data)
12
+ refresh_from(response, api_key)
13
+ end
14
+
15
+ private
16
+ def expire_url
17
+ url + '/expire'
18
+ end
19
+
20
+ def update_payment_intent_status_url
21
+ url + '/payment_intent_status'
22
+ end
23
+
24
+ end
25
+
26
+
27
+ end
@@ -0,0 +1,6 @@
1
+ module Octobat
2
+ class ProformaInvoice < APIResource
3
+ extend Octobat::APIOperations::List
4
+ include Octobat::APIOperations::Create
5
+ end
6
+ end
data/lib/octobat/util.rb CHANGED
@@ -54,7 +54,9 @@ module Octobat
54
54
  'document_language' => DocumentLanguage,
55
55
  'checkout' => Checkout,
56
56
  'coupon' => Coupon,
57
+ 'order' => Order,
57
58
  'product' => Product,
59
+ 'proforma_invoice' => ProformaInvoice,
58
60
  'tax_region_setting' => TaxRegionSetting,
59
61
  'transaction' => Transaction,
60
62
  'tax_evidence' => TaxEvidence,
@@ -1,3 +1,3 @@
1
1
  module Octobat
2
- VERSION = '2.0.12'
2
+ VERSION = '2.0.14'
3
3
  end
data/lib/octobat.rb CHANGED
@@ -29,6 +29,7 @@ require 'octobat/item'
29
29
  require 'octobat/document'
30
30
  require 'octobat/invoice'
31
31
  require 'octobat/credit_note'
32
+ require 'octobat/proforma_invoice'
32
33
  require 'octobat/payment_recipient'
33
34
  require 'octobat/payment_recipient_reference'
34
35
  require 'octobat/payment_source'
@@ -40,6 +41,7 @@ require 'octobat/document_template'
40
41
  require 'octobat/document_language'
41
42
  require 'octobat/checkout'
42
43
  require 'octobat/coupon'
44
+ require 'octobat/order'
43
45
  require 'octobat/product'
44
46
  require 'octobat/tax_region_setting'
45
47
  require 'octobat/tax_evidence'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octobat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.12
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaultier Laperche
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-29 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -84,11 +84,13 @@ files:
84
84
  - lib/octobat/item.rb
85
85
  - lib/octobat/list_object.rb
86
86
  - lib/octobat/octobat_object.rb
87
+ - lib/octobat/order.rb
87
88
  - lib/octobat/payment_recipient.rb
88
89
  - lib/octobat/payment_recipient_reference.rb
89
90
  - lib/octobat/payment_source.rb
90
91
  - lib/octobat/payout.rb
91
92
  - lib/octobat/product.rb
93
+ - lib/octobat/proforma_invoice.rb
92
94
  - lib/octobat/singleton_api_resource.rb
93
95
  - lib/octobat/tax_evidence.rb
94
96
  - lib/octobat/tax_evidence_request.rb