lockstep_rails 0.3.82 → 0.3.83
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/lockstep/invoice.rb +5 -0
- data/app/models/lockstep/payment.rb +5 -0
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b509d49f37ff470441313bf66829d988bb9bb4e4a4c20a0c2971261c411a770
|
4
|
+
data.tar.gz: 7c7edc83c99f1a7fbcf8fdc4cf1071316e3249e37f07e59d118478c43111b8f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ed56598c4c9d148ca475165bb95f862d60adfe1d62e2f757f8cad4de32ae19361c2691c43cb8357f90e0d99517e1002c7f39aca3410d3d04c749c358cd68213
|
7
|
+
data.tar.gz: 82f7bf1a292f56084dbbf2bc3221b173e728731428f05a841f43292bebea425fc9810dbf65165ac4b2185f4f78dc313b24f6911bb2f0c42ec5d97faef115306b
|
@@ -11,4 +11,9 @@ class Lockstep::Invoice < Lockstep::ApiRecord
|
|
11
11
|
scope :einvoices, -> { where(is_e_invoice: true).include_object(:customer, :lines, :attachments) }
|
12
12
|
scope :received_einvoices, -> { einvoices.where(invoice_type_code: 'AP Invoice') }
|
13
13
|
scope :sent_einvoices, -> { einvoices.where(invoice_type_code: 'AR Invoice') }
|
14
|
+
|
15
|
+
def download_pdf
|
16
|
+
response = resource.get "#{id}/pdf"
|
17
|
+
response.body
|
18
|
+
end
|
14
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockstep_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.83
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vivek AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|