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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2997575ae530a9c521267d45b2d616d15bd7124a7556508889632cab5f4a8b1a
4
- data.tar.gz: 9e183366218221c4ab8089638bd62d34b07ff15fd8becd0c626bb514fcda3e6e
3
+ metadata.gz: 7b509d49f37ff470441313bf66829d988bb9bb4e4a4c20a0c2971261c411a770
4
+ data.tar.gz: 7c7edc83c99f1a7fbcf8fdc4cf1071316e3249e37f07e59d118478c43111b8f3
5
5
  SHA512:
6
- metadata.gz: 0fc08388526dd7935c7c0d10c641d5a4fb874c2c9a4736f26c90417d93d02900e377284f8caf8bdf1df02426f09ee264bcec9f8f358d8ca2a0c2960528d157a7
7
- data.tar.gz: f4260a94d65309281322191b9ce1575fb98639b8f5ef06bdf4412bf77a95ad5f47bba7d15806a2e8b5efa03b98cb4723564b88060c7a903e3fcef4f61661f92d
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
@@ -19,4 +19,9 @@ class Lockstep::Payment < Lockstep::ApiRecord
19
19
  result = post_result(resp)
20
20
  end
21
21
  end
22
+
23
+ def download_pdf
24
+ response = resource.get "#{id}/pdf"
25
+ response.body
26
+ end
22
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LockstepRails
4
- VERSION = '0.3.82'
4
+ VERSION = '0.3.83'
5
5
  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.82
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-04-30 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails