octobat 2.0.12 → 2.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +8 -0
- data/VERSION +1 -1
- data/lib/octobat/order.rb +27 -0
- data/lib/octobat/proforma_invoice.rb +6 -0
- data/lib/octobat/util.rb +2 -0
- data/lib/octobat/version.rb +1 -1
- data/lib/octobat.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18436768c51bf73813f23eebc8fea98955ca697e
|
4
|
+
data.tar.gz: 569cd038db8d18a3c19f1fd9f3d1ec9113cb92c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10f3119acd80ba94873a2aadb2f3bf6546d7a624ff3fbc90879bd6cdc2d90175d5c49155c4ed5f896ac1d5a585605bc9d44eef8b62f9a7ab96b93005984866b5
|
7
|
+
data.tar.gz: ad9143fc35fceee268647fa2c665f0ff0e00ae738577be9900f12efedeee7204b203241363284ba0f747f0a2f70264ee0ff22212853eef05c464c9c5b96b4305
|
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
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
|
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,
|
data/lib/octobat/version.rb
CHANGED
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.
|
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:
|
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
|