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 +4 -4
- data/lib/billfixers/partner/client.rb +12 -0
- data/lib/billfixers/partner/gql.rb +16 -0
- data/lib/billfixers/partner/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: 4d03fecf53ba94d473db4b3a6ae819f202cf77683a25cd6e4f1205800d5a9a7f
|
4
|
+
data.tar.gz: 787115f962172cb98ac18b1b4e19f51c785950ef7ab6703bb7f1521761b23958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2021-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|