lockstep_rails 0.3.81 → 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: e4a0a8fcfeb52dc83211161d2fe71d5ce53561390768b31c67b2abf08cb8e0df
4
- data.tar.gz: fd36e3e0141fbbdedc6af98c3ffe2d4458bdb0a20d464588248a9fc8f19debdb
3
+ metadata.gz: 7b509d49f37ff470441313bf66829d988bb9bb4e4a4c20a0c2971261c411a770
4
+ data.tar.gz: 7c7edc83c99f1a7fbcf8fdc4cf1071316e3249e37f07e59d118478c43111b8f3
5
5
  SHA512:
6
- metadata.gz: d7f2ca3ba51099fa9af80990bd466fd972a32c121bcfec419b4e2646c7a66e39197a9a863783b86647e1a536f4045144b84cbaf831c178e3bdd9992f15d0deab
7
- data.tar.gz: f9954834dd6626637f7f8de5ca50cff82d39a17b4e7116d16004bcf8b9879d490fe7011323dacd008ceb14ac4281f974a88b83a14ade15b7302a519027171051
6
+ metadata.gz: 7ed56598c4c9d148ca475165bb95f862d60adfe1d62e2f757f8cad4de32ae19361c2691c43cb8357f90e0d99517e1002c7f39aca3410d3d04c749c358cd68213
7
+ data.tar.gz: 82f7bf1a292f56084dbbf2bc3221b173e728731428f05a841f43292bebea425fc9810dbf65165ac4b2185f4f78dc313b24f6911bb2f0c42ec5d97faef115306b
@@ -9,4 +9,9 @@ class Lockstep::Attachment < Lockstep::ApiRecord
9
9
  response = resource.get "#{id}/download-url"
10
10
  JSON.parse(response.body)['downloadLink']
11
11
  end
12
+
13
+ def download_file
14
+ response = resource.get "#{id}/download-file"
15
+ response.body
16
+ end
12
17
  end
@@ -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.81'
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.81
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-18 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