billfixers-partner 1.2.2 → 1.2.3

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: e7d12e56bf129882d6ddef147159b3198c165637d41f0657ff653be42373dfef
4
- data.tar.gz: 1796071a1890cf3f9e62bfc70b34eb8a16592378f242daeed16e5fad69d096f7
3
+ metadata.gz: 4d03fecf53ba94d473db4b3a6ae819f202cf77683a25cd6e4f1205800d5a9a7f
4
+ data.tar.gz: 787115f962172cb98ac18b1b4e19f51c785950ef7ab6703bb7f1521761b23958
5
5
  SHA512:
6
- metadata.gz: 11ee2105e90732d03a1beed6de0d64d2588dfb7fe8c9f15a746c44e7df867f491a091c8f003233b037159857cbb882dc79d1eab4040e26f929e8760c6897dc1d
7
- data.tar.gz: 5cfbc11ea962e112cb9c0eab0c69d264209dcc029b5c5d2afbbc0b3bfc793dd9ee3aacb80f4c344977351ef26a5ba68f756c6a737946f24f6bb17c585dc5ba4f
6
+ metadata.gz: aaeea7b81d2f011b678f8e40060fdd789450a2918a77aac94ab3fc22a7db1242241fd4772f5fd7218f1c8a01c1673dcc049c249a3680908b6eefab78e3295ccc
7
+ data.tar.gz: eb0a3f318572a57b5ee7321052d7196fbf9d38ffa1296c4ac010fbf60b93d26230f66c6df85d28369d25c20dbcc98d18ffe92589ae4a8b830eedbe836d41a300
@@ -191,6 +191,18 @@ module Billfixers
191
191
  response.data.calculate_savings_estimate
192
192
  end
193
193
 
194
+ def provide_documentless_info(bill_id, documentless_info)
195
+ response = @gql.query(
196
+ PROVIDE_DOCUMENTLESS_INFO_MUTATION,
197
+ {
198
+ bill_id: bill_id,
199
+ documentless_info: documentless_info
200
+ }
201
+ )
202
+
203
+ response.data.provide_documentless_info
204
+ end
205
+
194
206
  private
195
207
 
196
208
  def camelize(hsh)
@@ -50,6 +50,7 @@ module Billfixers
50
50
  updatedAt
51
51
  autoRenegotiate
52
52
  allowsContract
53
+ documentlessInfo
53
54
 
54
55
  items {
55
56
  #{BILL_ITEM_FRAGMENT}
@@ -318,5 +319,20 @@ module Billfixers
318
319
  }
319
320
  }
320
321
  )
322
+
323
+ PROVIDE_DOCUMENTLESS_INFO_MUTATION = %(
324
+ mutation($bill_id: ID!, $documentless_info: JSON!) {
325
+ ProvideDocumentlessInfo(input: {
326
+ billId: $bill_id,
327
+ documentlessInfo: $documentless_info
328
+ }) {
329
+ success
330
+ errors
331
+ bill {
332
+ #{BILL_FRAGMENT}
333
+ }
334
+ }
335
+ }
336
+ )
321
337
  end
322
338
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Billfixers
4
4
  module Partner
5
- VERSION = '1.2.2'
5
+ VERSION = '1.2.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billfixers-partner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BillFixers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-10 00:00:00.000000000 Z
11
+ date: 2021-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport