billfixers-partner 1.0.0 → 1.1.4

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: bcdd58bc96c5b5dc10a45b98ac41711551c37408924b4a893708d8c9a90e5fc9
4
- data.tar.gz: 3a372b539781ed326342a8e7ba0a02dfa98320fabf70d2e066b261a657c960ef
3
+ metadata.gz: 7e455d6938fcdbad9ead03ea10b45ea55a2ab1bbe20dc9122b836460c251c6a4
4
+ data.tar.gz: fa3f60dd073845c7b9c706dd05301128e1da7bd824faee43b6485befbd42771b
5
5
  SHA512:
6
- metadata.gz: 381f81260b220bf52c916c021e3fdbb27379a8b1ed251095d451e6cea4ba58c5d664ef43344e1ed98bd1b1880df0976b43403fc230b924cf47bc8e66317a2357
7
- data.tar.gz: ee5dc4794443830f81b5dfd29bc364b1400f0a7a9d616f75699977e89c6818b88157c24cbeb9fa3af15b9662c3dcc77d207bf63062dda6b39fc782de3257c701
6
+ metadata.gz: 60b851af21aeb5467fddc4ece69267b7b213f656a069d3fac39caecb39c60004b44b5f12af1e8ba8168b88d9a5487d3f346843f8d72e8ff660cfd49a18faa826
7
+ data.tar.gz: ecf5f6c8bced4f53abf5dd47212447d0cda834a1f9f57d8de07e166c1d95fdc6597630a999cf7f6502d270824a4ae4a868cc5fb97dafd5de4f8f818593504da0
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ .byebug_history
data/Gemfile CHANGED
@@ -9,4 +9,4 @@ gem 'activesupport'
9
9
  gem 'graphlient'
10
10
  gem 'minitest', '~> 5.0'
11
11
  gem 'rake', '~> 12.0'
12
- gem 'webmock'
12
+ gem 'webmock'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- billfixers-partner (1.0.0)
4
+ billfixers-partner (1.1.3)
5
5
  activesupport
6
6
  graphlient
7
7
 
data/README.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # Billfixers::Partner
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/billfixers/partner`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
3
  ## Installation
8
4
 
9
5
  Add this line to your application's Gemfile:
@@ -22,15 +18,14 @@ Or install it yourself as:
22
18
 
23
19
  ## Usage
24
20
 
25
- TODO: Write usage instructions here
21
+ Please visit <https://partner.billfixers.com> to see our documentation.
26
22
 
27
- ## Development
23
+ <!-- ## Development
28
24
 
29
25
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
26
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). -->
34
28
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/billfixers-partner.
29
+ <!-- ## Contributing
36
30
 
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/billfixers-partner. -->
@@ -103,8 +103,9 @@ module Billfixers
103
103
  result.customer
104
104
  end
105
105
 
106
- def create_bill(params)
106
+ def create_bill(customer_id, params)
107
107
  response = @gql.query(CREATE_BILL_MUTATION, {
108
+ customer_id: customer_id,
108
109
  bill: camelize(params)
109
110
  })
110
111
 
@@ -114,10 +115,20 @@ module Billfixers
114
115
  result.bill
115
116
  end
116
117
 
117
- def cancel_bill(bill_id)
118
- response = @gql.query(CANCEL_BILL_MUTATION, { id: bill_id })
118
+ def renegotiate_bill(bill_id)
119
+ response = @gql.query(RENEGOTIATE_BILL_MUTATION, { id: bill_id })
120
+
121
+ response.data.renegotiate_bill
122
+ end
123
+
124
+ def stop_negotiating(bill_id)
125
+ response = @gql.query(STOP_NEGOTIATING_MUTATION, { id: bill_id })
119
126
 
120
- response.data.cancel_bill.success
127
+ result = response.data.stop_negotiating
128
+
129
+ raise Error, result.errors.join(' ') unless result.success
130
+
131
+ result.success
121
132
  end
122
133
 
123
134
  def accept_offer(offer_id)
@@ -133,11 +144,39 @@ module Billfixers
133
144
  response = @gql.query(REJECT_OFFER_MUTATION, { id: offer_id })
134
145
 
135
146
  result = response.data.reject_offer
147
+ # binding.pry
136
148
  raise Error, result.errors.join(' ') unless result.success
137
149
 
138
150
  result.offer
139
151
  end
140
152
 
153
+ def respond_to_information_request(information_request_id, params)
154
+ response = @gql.query(
155
+ RESPOND_TO_INFORMATION_REQUEST,
156
+ {
157
+ id: information_request_id,
158
+ information_request: camelize(params)
159
+ }
160
+ )
161
+
162
+ result = response.data.respond_to_information_request
163
+ raise Error, result.errors.join(' ') unless result.success
164
+
165
+ result.information_request
166
+ end
167
+
168
+ def calculate_savings_estimate(provider_id, current_monthly_payment)
169
+ response = @gql.query(
170
+ CALCULATE_SAVINGS_ESTIMATE,
171
+ {
172
+ provider_id: provider_id,
173
+ current_monthly_amount: current_monthly_payment
174
+ }
175
+ )
176
+
177
+ response.data.calculate_savings_estimate
178
+ end
179
+
141
180
  private
142
181
 
143
182
  def camelize(hsh)
@@ -7,6 +7,11 @@ module Billfixers
7
7
  name
8
8
  services
9
9
  billFields
10
+ logo {
11
+ thumbnailUrl
12
+ smallUrl
13
+ mediumUrl
14
+ }
10
15
  )
11
16
 
12
17
  CUSTOMER_FRAGMENT = %(
@@ -60,6 +65,7 @@ module Billfixers
60
65
  status
61
66
  content
62
67
  contentHtml
68
+ daysUntilExpiration
63
69
  createdAt
64
70
  updatedAt
65
71
  acceptedAt
@@ -203,8 +209,8 @@ module Billfixers
203
209
  )
204
210
 
205
211
  CREATE_BILL_MUTATION = %(
206
- mutation($bill: BillAttributes!) {
207
- CreateBill(input: { bill: $bill }) {
212
+ mutation($customer_id: ID!, $bill: BillAttributes!) {
213
+ CreateBill(input: { customerId: $customer_id, bill: $bill }) {
208
214
  success
209
215
  errors
210
216
  bill {
@@ -214,10 +220,26 @@ module Billfixers
214
220
  }
215
221
  )
216
222
 
217
- CANCEL_BILL_MUTATION = %(
223
+ STOP_NEGOTIATING_MUTATION = %(
218
224
  mutation($id: ID!) {
219
- CancelBill(input: { id: $id }) {
225
+ StopNegotiating(input: { id: $id }) {
220
226
  success
227
+ errors
228
+ bill {
229
+ #{BILL_FRAGMENT}
230
+ }
231
+ }
232
+ }
233
+ )
234
+
235
+ RENEGOTIATE_BILL_MUTATION = %(
236
+ mutation($id: ID!) {
237
+ RenegotiateBill(input: { id: $id }) {
238
+ success
239
+ errors
240
+ bill {
241
+ #{BILL_FRAGMENT}
242
+ }
221
243
  }
222
244
  }
223
245
  )
@@ -245,5 +267,42 @@ module Billfixers
245
267
  }
246
268
  }
247
269
  )
270
+
271
+ RESPOND_TO_INFORMATION_REQUEST = %(
272
+ mutation($id: ID!, $ir: InformationRequestAttributes!) {
273
+ RespondToInformationRequest(input: {
274
+ id: $id,
275
+ informationRequest: $ir
276
+ }) {
277
+ success
278
+ errors
279
+ informationRequest {
280
+ #{INFORMATION_REQUEST_FRAGMENT}
281
+ }
282
+ }
283
+ }
284
+ )
285
+
286
+ CALCULATE_SAVINGS_ESTIMATE = %(
287
+ query(
288
+ $providerId: ID!
289
+ $currentMonthlyAmount: Float!
290
+ ) {
291
+ CalculateSavingsEstimate {
292
+ estimatedAnnualSavings(
293
+ providerId: $providerId
294
+ currentMonthlyAmount: $currentMonthlyAmount
295
+ )
296
+ estimatedMonthlySavings(
297
+ providerId: $providerId
298
+ currentMonthlyAmount: $currentMonthlyAmount
299
+ )
300
+ percentageSavings(
301
+ providerId: $providerId
302
+ currentMonthlyAmount: $currentMonthlyAmount
303
+ )
304
+ }
305
+ }
306
+ )
248
307
  end
249
308
  end
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Billfixers
2
4
  module Partner
3
- VERSION = '1.0.0'.freeze
5
+ VERSION = '1.1.4'
4
6
  end
5
7
  end
data/partner_schema.json CHANGED
@@ -124,6 +124,50 @@
124
124
  "name": "Bill",
125
125
  "description": null,
126
126
  "fields": [
127
+ {
128
+ "name": "allowsContract",
129
+ "description": "",
130
+ "args": [],
131
+ "type": {
132
+ "kind": "NON_NULL",
133
+ "name": null,
134
+ "ofType": {
135
+ "kind": "SCALAR",
136
+ "name": "Boolean",
137
+ "ofType": null
138
+ }
139
+ },
140
+ "isDeprecated": false,
141
+ "deprecationReason": null
142
+ },
143
+ {
144
+ "name": "autoRenegotiate",
145
+ "description": "",
146
+ "args": [],
147
+ "type": {
148
+ "kind": "NON_NULL",
149
+ "name": null,
150
+ "ofType": {
151
+ "kind": "SCALAR",
152
+ "name": "Boolean",
153
+ "ofType": null
154
+ }
155
+ },
156
+ "isDeprecated": false,
157
+ "deprecationReason": null
158
+ },
159
+ {
160
+ "name": "cancelledAt",
161
+ "description": "The date the bill negotiations were cancelled, if present",
162
+ "args": [],
163
+ "type": {
164
+ "kind": "SCALAR",
165
+ "name": "DateTime",
166
+ "ofType": null
167
+ },
168
+ "isDeprecated": false,
169
+ "deprecationReason": null
170
+ },
127
171
  {
128
172
  "name": "createdAt",
129
173
  "description": "The date the record was created",
@@ -156,6 +200,22 @@
156
200
  "isDeprecated": false,
157
201
  "deprecationReason": null
158
202
  },
203
+ {
204
+ "name": "customerId",
205
+ "description": "Billfixer's alpha-numeric Customer ID",
206
+ "args": [],
207
+ "type": {
208
+ "kind": "NON_NULL",
209
+ "name": null,
210
+ "ofType": {
211
+ "kind": "SCALAR",
212
+ "name": "ID",
213
+ "ofType": null
214
+ }
215
+ },
216
+ "isDeprecated": false,
217
+ "deprecationReason": null
218
+ },
159
219
  {
160
220
  "name": "id",
161
221
  "description": "Alpha-numeric unique identifier",
@@ -401,16 +461,12 @@
401
461
  "defaultValue": null
402
462
  },
403
463
  {
404
- "name": "customer",
464
+ "name": "createdVia",
405
465
  "description": null,
406
466
  "type": {
407
- "kind": "NON_NULL",
408
- "name": null,
409
- "ofType": {
410
- "kind": "INPUT_OBJECT",
411
- "name": "CustomerAttributes",
412
- "ofType": null
413
- }
467
+ "kind": "SCALAR",
468
+ "name": "String",
469
+ "ofType": null
414
470
  },
415
471
  "defaultValue": null
416
472
  }
@@ -577,84 +633,24 @@
577
633
  },
578
634
  {
579
635
  "kind": "INPUT_OBJECT",
580
- "name": "CancelBillInput",
581
- "description": "Autogenerated input type of CancelBill",
636
+ "name": "CreateBillInput",
637
+ "description": "Autogenerated input type of CreateBill",
582
638
  "fields": null,
583
639
  "inputFields": [
584
640
  {
585
- "name": "id",
641
+ "name": "customerId",
586
642
  "description": null,
587
643
  "type": {
588
644
  "kind": "NON_NULL",
589
645
  "name": null,
590
646
  "ofType": {
591
647
  "kind": "SCALAR",
592
- "name": "String",
648
+ "name": "ID",
593
649
  "ofType": null
594
650
  }
595
651
  },
596
652
  "defaultValue": null
597
653
  },
598
- {
599
- "name": "clientMutationId",
600
- "description": "A unique identifier for the client performing the mutation.",
601
- "type": {
602
- "kind": "SCALAR",
603
- "name": "String",
604
- "ofType": null
605
- },
606
- "defaultValue": null
607
- }
608
- ],
609
- "interfaces": null,
610
- "enumValues": null,
611
- "possibleTypes": null
612
- },
613
- {
614
- "kind": "OBJECT",
615
- "name": "CancelBillPayload",
616
- "description": "Autogenerated return type of CancelBill",
617
- "fields": [
618
- {
619
- "name": "clientMutationId",
620
- "description": "A unique identifier for the client performing the mutation.",
621
- "args": [],
622
- "type": {
623
- "kind": "SCALAR",
624
- "name": "String",
625
- "ofType": null
626
- },
627
- "isDeprecated": false,
628
- "deprecationReason": null
629
- },
630
- {
631
- "name": "success",
632
- "description": null,
633
- "args": [],
634
- "type": {
635
- "kind": "NON_NULL",
636
- "name": null,
637
- "ofType": {
638
- "kind": "SCALAR",
639
- "name": "Boolean",
640
- "ofType": null
641
- }
642
- },
643
- "isDeprecated": false,
644
- "deprecationReason": null
645
- }
646
- ],
647
- "inputFields": null,
648
- "interfaces": [],
649
- "enumValues": null,
650
- "possibleTypes": null
651
- },
652
- {
653
- "kind": "INPUT_OBJECT",
654
- "name": "CreateBillInput",
655
- "description": "Autogenerated input type of CreateBill",
656
- "fields": null,
657
- "inputFields": [
658
654
  {
659
655
  "name": "bill",
660
656
  "description": null,
@@ -1435,6 +1431,16 @@
1435
1431
  "enumValues": null,
1436
1432
  "possibleTypes": null
1437
1433
  },
1434
+ {
1435
+ "kind": "SCALAR",
1436
+ "name": "Float",
1437
+ "description": "Represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",
1438
+ "fields": null,
1439
+ "inputFields": null,
1440
+ "interfaces": null,
1441
+ "enumValues": null,
1442
+ "possibleTypes": null
1443
+ },
1438
1444
  {
1439
1445
  "kind": "SCALAR",
1440
1446
  "name": "ID",
@@ -2203,6 +2209,22 @@
2203
2209
  "isDeprecated": false,
2204
2210
  "deprecationReason": null
2205
2211
  },
2212
+ {
2213
+ "name": "type",
2214
+ "description": "The type of item",
2215
+ "args": [],
2216
+ "type": {
2217
+ "kind": "NON_NULL",
2218
+ "name": null,
2219
+ "ofType": {
2220
+ "kind": "SCALAR",
2221
+ "name": "String",
2222
+ "ofType": null
2223
+ }
2224
+ },
2225
+ "isDeprecated": false,
2226
+ "deprecationReason": null
2227
+ },
2206
2228
  {
2207
2229
  "name": "underContract",
2208
2230
  "description": "Indicates the item is under contract",
@@ -2262,7 +2284,7 @@
2262
2284
  "args": [
2263
2285
  {
2264
2286
  "name": "input",
2265
- "description": null,
2287
+ "description": "Parameters for AcceptOffer",
2266
2288
  "type": {
2267
2289
  "kind": "NON_NULL",
2268
2290
  "name": null,
@@ -2284,18 +2306,18 @@
2284
2306
  "deprecationReason": null
2285
2307
  },
2286
2308
  {
2287
- "name": "CancelBill",
2309
+ "name": "CreateBill",
2288
2310
  "description": null,
2289
2311
  "args": [
2290
2312
  {
2291
2313
  "name": "input",
2292
- "description": null,
2314
+ "description": "Parameters for CreateBill",
2293
2315
  "type": {
2294
2316
  "kind": "NON_NULL",
2295
2317
  "name": null,
2296
2318
  "ofType": {
2297
2319
  "kind": "INPUT_OBJECT",
2298
- "name": "CancelBillInput",
2320
+ "name": "CreateBillInput",
2299
2321
  "ofType": null
2300
2322
  }
2301
2323
  },
@@ -2304,25 +2326,25 @@
2304
2326
  ],
2305
2327
  "type": {
2306
2328
  "kind": "OBJECT",
2307
- "name": "CancelBillPayload",
2329
+ "name": "CreateBillPayload",
2308
2330
  "ofType": null
2309
2331
  },
2310
2332
  "isDeprecated": false,
2311
2333
  "deprecationReason": null
2312
2334
  },
2313
2335
  {
2314
- "name": "CreateBill",
2336
+ "name": "CreateCustomer",
2315
2337
  "description": null,
2316
2338
  "args": [
2317
2339
  {
2318
2340
  "name": "input",
2319
- "description": null,
2341
+ "description": "Parameters for CreateCustomer",
2320
2342
  "type": {
2321
2343
  "kind": "NON_NULL",
2322
2344
  "name": null,
2323
2345
  "ofType": {
2324
2346
  "kind": "INPUT_OBJECT",
2325
- "name": "CreateBillInput",
2347
+ "name": "CreateCustomerInput",
2326
2348
  "ofType": null
2327
2349
  }
2328
2350
  },
@@ -2331,25 +2353,25 @@
2331
2353
  ],
2332
2354
  "type": {
2333
2355
  "kind": "OBJECT",
2334
- "name": "CreateBillPayload",
2356
+ "name": "CreateCustomerPayload",
2335
2357
  "ofType": null
2336
2358
  },
2337
2359
  "isDeprecated": false,
2338
2360
  "deprecationReason": null
2339
2361
  },
2340
2362
  {
2341
- "name": "CreateCustomer",
2342
- "description": null,
2363
+ "name": "RejectOffer",
2364
+ "description": "Reject an offer",
2343
2365
  "args": [
2344
2366
  {
2345
2367
  "name": "input",
2346
- "description": null,
2368
+ "description": "Parameters for RejectOffer",
2347
2369
  "type": {
2348
2370
  "kind": "NON_NULL",
2349
2371
  "name": null,
2350
2372
  "ofType": {
2351
2373
  "kind": "INPUT_OBJECT",
2352
- "name": "CreateCustomerInput",
2374
+ "name": "RejectOfferInput",
2353
2375
  "ofType": null
2354
2376
  }
2355
2377
  },
@@ -2358,25 +2380,25 @@
2358
2380
  ],
2359
2381
  "type": {
2360
2382
  "kind": "OBJECT",
2361
- "name": "CreateCustomerPayload",
2383
+ "name": "RejectOfferPayload",
2362
2384
  "ofType": null
2363
2385
  },
2364
2386
  "isDeprecated": false,
2365
2387
  "deprecationReason": null
2366
2388
  },
2367
2389
  {
2368
- "name": "RejectOffer",
2369
- "description": "Reject an offer",
2390
+ "name": "RenegotiateBill",
2391
+ "description": null,
2370
2392
  "args": [
2371
2393
  {
2372
2394
  "name": "input",
2373
- "description": null,
2395
+ "description": "Parameters for RenegotiateBill",
2374
2396
  "type": {
2375
2397
  "kind": "NON_NULL",
2376
2398
  "name": null,
2377
2399
  "ofType": {
2378
2400
  "kind": "INPUT_OBJECT",
2379
- "name": "RejectOfferInput",
2401
+ "name": "RenegotiateBillInput",
2380
2402
  "ofType": null
2381
2403
  }
2382
2404
  },
@@ -2385,7 +2407,7 @@
2385
2407
  ],
2386
2408
  "type": {
2387
2409
  "kind": "OBJECT",
2388
- "name": "RejectOfferPayload",
2410
+ "name": "RenegotiateBillPayload",
2389
2411
  "ofType": null
2390
2412
  },
2391
2413
  "isDeprecated": false,
@@ -2397,7 +2419,7 @@
2397
2419
  "args": [
2398
2420
  {
2399
2421
  "name": "input",
2400
- "description": null,
2422
+ "description": "Parameters for RespondToInformationRequest",
2401
2423
  "type": {
2402
2424
  "kind": "NON_NULL",
2403
2425
  "name": null,
@@ -2418,13 +2440,40 @@
2418
2440
  "isDeprecated": false,
2419
2441
  "deprecationReason": null
2420
2442
  },
2443
+ {
2444
+ "name": "StopNegotiating",
2445
+ "description": null,
2446
+ "args": [
2447
+ {
2448
+ "name": "input",
2449
+ "description": "Parameters for StopNegotiating",
2450
+ "type": {
2451
+ "kind": "NON_NULL",
2452
+ "name": null,
2453
+ "ofType": {
2454
+ "kind": "INPUT_OBJECT",
2455
+ "name": "StopNegotiatingInput",
2456
+ "ofType": null
2457
+ }
2458
+ },
2459
+ "defaultValue": null
2460
+ }
2461
+ ],
2462
+ "type": {
2463
+ "kind": "OBJECT",
2464
+ "name": "StopNegotiatingPayload",
2465
+ "ofType": null
2466
+ },
2467
+ "isDeprecated": false,
2468
+ "deprecationReason": null
2469
+ },
2421
2470
  {
2422
2471
  "name": "UpdateCustomer",
2423
2472
  "description": null,
2424
2473
  "args": [
2425
2474
  {
2426
2475
  "name": "input",
2427
- "description": null,
2476
+ "description": "Parameters for UpdateCustomer",
2428
2477
  "type": {
2429
2478
  "kind": "NON_NULL",
2430
2479
  "name": null,
@@ -2444,6 +2493,33 @@
2444
2493
  },
2445
2494
  "isDeprecated": false,
2446
2495
  "deprecationReason": null
2496
+ },
2497
+ {
2498
+ "name": "UpdateWebhookUrls",
2499
+ "description": null,
2500
+ "args": [
2501
+ {
2502
+ "name": "input",
2503
+ "description": "Parameters for UpdateWebhookUrls",
2504
+ "type": {
2505
+ "kind": "NON_NULL",
2506
+ "name": null,
2507
+ "ofType": {
2508
+ "kind": "INPUT_OBJECT",
2509
+ "name": "UpdateWebhookUrlsInput",
2510
+ "ofType": null
2511
+ }
2512
+ },
2513
+ "defaultValue": null
2514
+ }
2515
+ ],
2516
+ "type": {
2517
+ "kind": "OBJECT",
2518
+ "name": "UpdateWebhookUrlsPayload",
2519
+ "ofType": null
2520
+ },
2521
+ "isDeprecated": false,
2522
+ "deprecationReason": null
2447
2523
  }
2448
2524
  ],
2449
2525
  "inputFields": null,
@@ -2899,6 +2975,22 @@
2899
2975
  "isDeprecated": false,
2900
2976
  "deprecationReason": null
2901
2977
  },
2978
+ {
2979
+ "name": "daysUntilExpiration",
2980
+ "description": null,
2981
+ "args": [],
2982
+ "type": {
2983
+ "kind": "NON_NULL",
2984
+ "name": null,
2985
+ "ofType": {
2986
+ "kind": "SCALAR",
2987
+ "name": "Int",
2988
+ "ofType": null
2989
+ }
2990
+ },
2991
+ "isDeprecated": false,
2992
+ "deprecationReason": null
2993
+ },
2902
2994
  {
2903
2995
  "name": "id",
2904
2996
  "description": "Alpha-numeric unique identifier",
@@ -3164,28 +3256,155 @@
3164
3256
  },
3165
3257
  {
3166
3258
  "kind": "OBJECT",
3167
- "name": "Provider",
3259
+ "name": "Partner",
3168
3260
  "description": null,
3169
3261
  "fields": [
3170
3262
  {
3171
- "name": "billFields",
3263
+ "name": "createdAt",
3172
3264
  "description": null,
3173
3265
  "args": [],
3174
3266
  "type": {
3175
3267
  "kind": "NON_NULL",
3176
3268
  "name": null,
3177
3269
  "ofType": {
3178
- "kind": "LIST",
3179
- "name": null,
3180
- "ofType": {
3181
- "kind": "NON_NULL",
3182
- "name": null,
3183
- "ofType": {
3184
- "kind": "SCALAR",
3185
- "name": "String",
3186
- "ofType": null
3187
- }
3188
- }
3270
+ "kind": "SCALAR",
3271
+ "name": "DateTime",
3272
+ "ofType": null
3273
+ }
3274
+ },
3275
+ "isDeprecated": false,
3276
+ "deprecationReason": null
3277
+ },
3278
+ {
3279
+ "name": "id",
3280
+ "description": "Alpha-numeric unique identifier",
3281
+ "args": [],
3282
+ "type": {
3283
+ "kind": "NON_NULL",
3284
+ "name": null,
3285
+ "ofType": {
3286
+ "kind": "SCALAR",
3287
+ "name": "String",
3288
+ "ofType": null
3289
+ }
3290
+ },
3291
+ "isDeprecated": false,
3292
+ "deprecationReason": null
3293
+ },
3294
+ {
3295
+ "name": "liveWebhookUrl",
3296
+ "description": "Webhook URL for live/production requests",
3297
+ "args": [],
3298
+ "type": {
3299
+ "kind": "SCALAR",
3300
+ "name": "String",
3301
+ "ofType": null
3302
+ },
3303
+ "isDeprecated": false,
3304
+ "deprecationReason": null
3305
+ },
3306
+ {
3307
+ "name": "name",
3308
+ "description": "Name of the partner",
3309
+ "args": [],
3310
+ "type": {
3311
+ "kind": "NON_NULL",
3312
+ "name": null,
3313
+ "ofType": {
3314
+ "kind": "SCALAR",
3315
+ "name": "String",
3316
+ "ofType": null
3317
+ }
3318
+ },
3319
+ "isDeprecated": false,
3320
+ "deprecationReason": null
3321
+ },
3322
+ {
3323
+ "name": "referralCode",
3324
+ "description": "The partner's referral code",
3325
+ "args": [],
3326
+ "type": {
3327
+ "kind": "SCALAR",
3328
+ "name": "String",
3329
+ "ofType": null
3330
+ },
3331
+ "isDeprecated": false,
3332
+ "deprecationReason": null
3333
+ },
3334
+ {
3335
+ "name": "referralLink",
3336
+ "description": "The partner's referral link",
3337
+ "args": [],
3338
+ "type": {
3339
+ "kind": "NON_NULL",
3340
+ "name": null,
3341
+ "ofType": {
3342
+ "kind": "SCALAR",
3343
+ "name": "String",
3344
+ "ofType": null
3345
+ }
3346
+ },
3347
+ "isDeprecated": false,
3348
+ "deprecationReason": null
3349
+ },
3350
+ {
3351
+ "name": "testWebhookUrl",
3352
+ "description": "Webhook URL for test/development requests",
3353
+ "args": [],
3354
+ "type": {
3355
+ "kind": "SCALAR",
3356
+ "name": "String",
3357
+ "ofType": null
3358
+ },
3359
+ "isDeprecated": false,
3360
+ "deprecationReason": null
3361
+ },
3362
+ {
3363
+ "name": "updatedAt",
3364
+ "description": null,
3365
+ "args": [],
3366
+ "type": {
3367
+ "kind": "NON_NULL",
3368
+ "name": null,
3369
+ "ofType": {
3370
+ "kind": "SCALAR",
3371
+ "name": "DateTime",
3372
+ "ofType": null
3373
+ }
3374
+ },
3375
+ "isDeprecated": false,
3376
+ "deprecationReason": null
3377
+ }
3378
+ ],
3379
+ "inputFields": null,
3380
+ "interfaces": [],
3381
+ "enumValues": null,
3382
+ "possibleTypes": null
3383
+ },
3384
+ {
3385
+ "kind": "OBJECT",
3386
+ "name": "Provider",
3387
+ "description": null,
3388
+ "fields": [
3389
+ {
3390
+ "name": "billFields",
3391
+ "description": null,
3392
+ "args": [],
3393
+ "type": {
3394
+ "kind": "NON_NULL",
3395
+ "name": null,
3396
+ "ofType": {
3397
+ "kind": "LIST",
3398
+ "name": null,
3399
+ "ofType": {
3400
+ "kind": "NON_NULL",
3401
+ "name": null,
3402
+ "ofType": {
3403
+ "kind": "SCALAR",
3404
+ "name": "String",
3405
+ "ofType": null
3406
+ }
3407
+ }
3189
3408
  }
3190
3409
  },
3191
3410
  "isDeprecated": false,
@@ -3302,6 +3521,22 @@
3302
3521
  "name": "Query",
3303
3522
  "description": null,
3304
3523
  "fields": [
3524
+ {
3525
+ "name": "CalculateSavingsEstimate",
3526
+ "description": null,
3527
+ "args": [],
3528
+ "type": {
3529
+ "kind": "NON_NULL",
3530
+ "name": null,
3531
+ "ofType": {
3532
+ "kind": "OBJECT",
3533
+ "name": "SavingsEstimate",
3534
+ "ofType": null
3535
+ }
3536
+ },
3537
+ "isDeprecated": false,
3538
+ "deprecationReason": null
3539
+ },
3305
3540
  {
3306
3541
  "name": "FindBill",
3307
3542
  "description": null,
@@ -3329,6 +3564,22 @@
3329
3564
  "isDeprecated": false,
3330
3565
  "deprecationReason": null
3331
3566
  },
3567
+ {
3568
+ "name": "FindCurrentPartner",
3569
+ "description": null,
3570
+ "args": [],
3571
+ "type": {
3572
+ "kind": "NON_NULL",
3573
+ "name": null,
3574
+ "ofType": {
3575
+ "kind": "OBJECT",
3576
+ "name": "Partner",
3577
+ "ofType": null
3578
+ }
3579
+ },
3580
+ "isDeprecated": false,
3581
+ "deprecationReason": null
3582
+ },
3332
3583
  {
3333
3584
  "name": "FindCustomer",
3334
3585
  "description": null,
@@ -3847,37 +4098,551 @@
3847
4098
  "kind": "NON_NULL",
3848
4099
  "name": null,
3849
4100
  "ofType": {
3850
- "kind": "OBJECT",
3851
- "name": "OfferConnection",
4101
+ "kind": "OBJECT",
4102
+ "name": "OfferConnection",
4103
+ "ofType": null
4104
+ }
4105
+ },
4106
+ "isDeprecated": false,
4107
+ "deprecationReason": null
4108
+ },
4109
+ {
4110
+ "name": "ListProviders",
4111
+ "description": null,
4112
+ "args": [],
4113
+ "type": {
4114
+ "kind": "NON_NULL",
4115
+ "name": null,
4116
+ "ofType": {
4117
+ "kind": "LIST",
4118
+ "name": null,
4119
+ "ofType": {
4120
+ "kind": "NON_NULL",
4121
+ "name": null,
4122
+ "ofType": {
4123
+ "kind": "OBJECT",
4124
+ "name": "Provider",
4125
+ "ofType": null
4126
+ }
4127
+ }
4128
+ }
4129
+ },
4130
+ "isDeprecated": false,
4131
+ "deprecationReason": null
4132
+ }
4133
+ ],
4134
+ "inputFields": null,
4135
+ "interfaces": [],
4136
+ "enumValues": null,
4137
+ "possibleTypes": null
4138
+ },
4139
+ {
4140
+ "kind": "INPUT_OBJECT",
4141
+ "name": "RejectOfferInput",
4142
+ "description": "Autogenerated input type of RejectOffer",
4143
+ "fields": null,
4144
+ "inputFields": [
4145
+ {
4146
+ "name": "id",
4147
+ "description": null,
4148
+ "type": {
4149
+ "kind": "NON_NULL",
4150
+ "name": null,
4151
+ "ofType": {
4152
+ "kind": "SCALAR",
4153
+ "name": "ID",
4154
+ "ofType": null
4155
+ }
4156
+ },
4157
+ "defaultValue": null
4158
+ },
4159
+ {
4160
+ "name": "clientMutationId",
4161
+ "description": "A unique identifier for the client performing the mutation.",
4162
+ "type": {
4163
+ "kind": "SCALAR",
4164
+ "name": "String",
4165
+ "ofType": null
4166
+ },
4167
+ "defaultValue": null
4168
+ }
4169
+ ],
4170
+ "interfaces": null,
4171
+ "enumValues": null,
4172
+ "possibleTypes": null
4173
+ },
4174
+ {
4175
+ "kind": "OBJECT",
4176
+ "name": "RejectOfferPayload",
4177
+ "description": "Autogenerated return type of RejectOffer",
4178
+ "fields": [
4179
+ {
4180
+ "name": "clientMutationId",
4181
+ "description": "A unique identifier for the client performing the mutation.",
4182
+ "args": [],
4183
+ "type": {
4184
+ "kind": "SCALAR",
4185
+ "name": "String",
4186
+ "ofType": null
4187
+ },
4188
+ "isDeprecated": false,
4189
+ "deprecationReason": null
4190
+ },
4191
+ {
4192
+ "name": "errors",
4193
+ "description": null,
4194
+ "args": [],
4195
+ "type": {
4196
+ "kind": "NON_NULL",
4197
+ "name": null,
4198
+ "ofType": {
4199
+ "kind": "LIST",
4200
+ "name": null,
4201
+ "ofType": {
4202
+ "kind": "NON_NULL",
4203
+ "name": null,
4204
+ "ofType": {
4205
+ "kind": "SCALAR",
4206
+ "name": "String",
4207
+ "ofType": null
4208
+ }
4209
+ }
4210
+ }
4211
+ },
4212
+ "isDeprecated": false,
4213
+ "deprecationReason": null
4214
+ },
4215
+ {
4216
+ "name": "offer",
4217
+ "description": null,
4218
+ "args": [],
4219
+ "type": {
4220
+ "kind": "OBJECT",
4221
+ "name": "Offer",
4222
+ "ofType": null
4223
+ },
4224
+ "isDeprecated": false,
4225
+ "deprecationReason": null
4226
+ },
4227
+ {
4228
+ "name": "success",
4229
+ "description": null,
4230
+ "args": [],
4231
+ "type": {
4232
+ "kind": "NON_NULL",
4233
+ "name": null,
4234
+ "ofType": {
4235
+ "kind": "SCALAR",
4236
+ "name": "Boolean",
4237
+ "ofType": null
4238
+ }
4239
+ },
4240
+ "isDeprecated": false,
4241
+ "deprecationReason": null
4242
+ }
4243
+ ],
4244
+ "inputFields": null,
4245
+ "interfaces": [],
4246
+ "enumValues": null,
4247
+ "possibleTypes": null
4248
+ },
4249
+ {
4250
+ "kind": "INPUT_OBJECT",
4251
+ "name": "RenegotiateBillInput",
4252
+ "description": "Autogenerated input type of RenegotiateBill",
4253
+ "fields": null,
4254
+ "inputFields": [
4255
+ {
4256
+ "name": "id",
4257
+ "description": "Id of the bill that should be renegotiated",
4258
+ "type": {
4259
+ "kind": "NON_NULL",
4260
+ "name": null,
4261
+ "ofType": {
4262
+ "kind": "SCALAR",
4263
+ "name": "ID",
4264
+ "ofType": null
4265
+ }
4266
+ },
4267
+ "defaultValue": null
4268
+ },
4269
+ {
4270
+ "name": "clientMutationId",
4271
+ "description": "A unique identifier for the client performing the mutation.",
4272
+ "type": {
4273
+ "kind": "SCALAR",
4274
+ "name": "String",
4275
+ "ofType": null
4276
+ },
4277
+ "defaultValue": null
4278
+ }
4279
+ ],
4280
+ "interfaces": null,
4281
+ "enumValues": null,
4282
+ "possibleTypes": null
4283
+ },
4284
+ {
4285
+ "kind": "OBJECT",
4286
+ "name": "RenegotiateBillPayload",
4287
+ "description": "Autogenerated return type of RenegotiateBill",
4288
+ "fields": [
4289
+ {
4290
+ "name": "bill",
4291
+ "description": null,
4292
+ "args": [],
4293
+ "type": {
4294
+ "kind": "OBJECT",
4295
+ "name": "Bill",
4296
+ "ofType": null
4297
+ },
4298
+ "isDeprecated": false,
4299
+ "deprecationReason": null
4300
+ },
4301
+ {
4302
+ "name": "clientMutationId",
4303
+ "description": "A unique identifier for the client performing the mutation.",
4304
+ "args": [],
4305
+ "type": {
4306
+ "kind": "SCALAR",
4307
+ "name": "String",
4308
+ "ofType": null
4309
+ },
4310
+ "isDeprecated": false,
4311
+ "deprecationReason": null
4312
+ },
4313
+ {
4314
+ "name": "errors",
4315
+ "description": null,
4316
+ "args": [],
4317
+ "type": {
4318
+ "kind": "NON_NULL",
4319
+ "name": null,
4320
+ "ofType": {
4321
+ "kind": "LIST",
4322
+ "name": null,
4323
+ "ofType": {
4324
+ "kind": "NON_NULL",
4325
+ "name": null,
4326
+ "ofType": {
4327
+ "kind": "SCALAR",
4328
+ "name": "String",
4329
+ "ofType": null
4330
+ }
4331
+ }
4332
+ }
4333
+ },
4334
+ "isDeprecated": false,
4335
+ "deprecationReason": null
4336
+ },
4337
+ {
4338
+ "name": "success",
4339
+ "description": null,
4340
+ "args": [],
4341
+ "type": {
4342
+ "kind": "NON_NULL",
4343
+ "name": null,
4344
+ "ofType": {
4345
+ "kind": "SCALAR",
4346
+ "name": "Boolean",
4347
+ "ofType": null
4348
+ }
4349
+ },
4350
+ "isDeprecated": false,
4351
+ "deprecationReason": null
4352
+ }
4353
+ ],
4354
+ "inputFields": null,
4355
+ "interfaces": [],
4356
+ "enumValues": null,
4357
+ "possibleTypes": null
4358
+ },
4359
+ {
4360
+ "kind": "INPUT_OBJECT",
4361
+ "name": "RespondToInformationRequestInput",
4362
+ "description": "Autogenerated input type of RespondToInformationRequest",
4363
+ "fields": null,
4364
+ "inputFields": [
4365
+ {
4366
+ "name": "id",
4367
+ "description": "Id of the information request",
4368
+ "type": {
4369
+ "kind": "NON_NULL",
4370
+ "name": null,
4371
+ "ofType": {
4372
+ "kind": "SCALAR",
4373
+ "name": "ID",
4374
+ "ofType": null
4375
+ }
4376
+ },
4377
+ "defaultValue": null
4378
+ },
4379
+ {
4380
+ "name": "informationRequest",
4381
+ "description": null,
4382
+ "type": {
4383
+ "kind": "NON_NULL",
4384
+ "name": null,
4385
+ "ofType": {
4386
+ "kind": "INPUT_OBJECT",
4387
+ "name": "InformationRequestAttributes",
4388
+ "ofType": null
4389
+ }
4390
+ },
4391
+ "defaultValue": null
4392
+ },
4393
+ {
4394
+ "name": "clientMutationId",
4395
+ "description": "A unique identifier for the client performing the mutation.",
4396
+ "type": {
4397
+ "kind": "SCALAR",
4398
+ "name": "String",
4399
+ "ofType": null
4400
+ },
4401
+ "defaultValue": null
4402
+ }
4403
+ ],
4404
+ "interfaces": null,
4405
+ "enumValues": null,
4406
+ "possibleTypes": null
4407
+ },
4408
+ {
4409
+ "kind": "OBJECT",
4410
+ "name": "RespondToInformationRequestPayload",
4411
+ "description": "Autogenerated return type of RespondToInformationRequest",
4412
+ "fields": [
4413
+ {
4414
+ "name": "bill",
4415
+ "description": null,
4416
+ "args": [],
4417
+ "type": {
4418
+ "kind": "OBJECT",
4419
+ "name": "Bill",
4420
+ "ofType": null
4421
+ },
4422
+ "isDeprecated": false,
4423
+ "deprecationReason": null
4424
+ },
4425
+ {
4426
+ "name": "clientMutationId",
4427
+ "description": "A unique identifier for the client performing the mutation.",
4428
+ "args": [],
4429
+ "type": {
4430
+ "kind": "SCALAR",
4431
+ "name": "String",
4432
+ "ofType": null
4433
+ },
4434
+ "isDeprecated": false,
4435
+ "deprecationReason": null
4436
+ },
4437
+ {
4438
+ "name": "errors",
4439
+ "description": null,
4440
+ "args": [],
4441
+ "type": {
4442
+ "kind": "NON_NULL",
4443
+ "name": null,
4444
+ "ofType": {
4445
+ "kind": "LIST",
4446
+ "name": null,
4447
+ "ofType": {
4448
+ "kind": "NON_NULL",
4449
+ "name": null,
4450
+ "ofType": {
4451
+ "kind": "SCALAR",
4452
+ "name": "String",
4453
+ "ofType": null
4454
+ }
4455
+ }
4456
+ }
4457
+ },
4458
+ "isDeprecated": false,
4459
+ "deprecationReason": null
4460
+ },
4461
+ {
4462
+ "name": "informationRequest",
4463
+ "description": null,
4464
+ "args": [],
4465
+ "type": {
4466
+ "kind": "OBJECT",
4467
+ "name": "InformationRequest",
4468
+ "ofType": null
4469
+ },
4470
+ "isDeprecated": false,
4471
+ "deprecationReason": null
4472
+ },
4473
+ {
4474
+ "name": "negotiation",
4475
+ "description": null,
4476
+ "args": [],
4477
+ "type": {
4478
+ "kind": "OBJECT",
4479
+ "name": "Negotiation",
4480
+ "ofType": null
4481
+ },
4482
+ "isDeprecated": false,
4483
+ "deprecationReason": null
4484
+ },
4485
+ {
4486
+ "name": "success",
4487
+ "description": null,
4488
+ "args": [],
4489
+ "type": {
4490
+ "kind": "NON_NULL",
4491
+ "name": null,
4492
+ "ofType": {
4493
+ "kind": "SCALAR",
4494
+ "name": "Boolean",
4495
+ "ofType": null
4496
+ }
4497
+ },
4498
+ "isDeprecated": false,
4499
+ "deprecationReason": null
4500
+ }
4501
+ ],
4502
+ "inputFields": null,
4503
+ "interfaces": [],
4504
+ "enumValues": null,
4505
+ "possibleTypes": null
4506
+ },
4507
+ {
4508
+ "kind": "OBJECT",
4509
+ "name": "SavingsEstimate",
4510
+ "description": null,
4511
+ "fields": [
4512
+ {
4513
+ "name": "estimatedAnnualSavings",
4514
+ "description": null,
4515
+ "args": [
4516
+ {
4517
+ "name": "providerId",
4518
+ "description": null,
4519
+ "type": {
4520
+ "kind": "NON_NULL",
4521
+ "name": null,
4522
+ "ofType": {
4523
+ "kind": "SCALAR",
4524
+ "name": "ID",
4525
+ "ofType": null
4526
+ }
4527
+ },
4528
+ "defaultValue": null
4529
+ },
4530
+ {
4531
+ "name": "currentMonthlyAmount",
4532
+ "description": null,
4533
+ "type": {
4534
+ "kind": "NON_NULL",
4535
+ "name": null,
4536
+ "ofType": {
4537
+ "kind": "SCALAR",
4538
+ "name": "Float",
4539
+ "ofType": null
4540
+ }
4541
+ },
4542
+ "defaultValue": null
4543
+ }
4544
+ ],
4545
+ "type": {
4546
+ "kind": "NON_NULL",
4547
+ "name": null,
4548
+ "ofType": {
4549
+ "kind": "SCALAR",
4550
+ "name": "Money",
4551
+ "ofType": null
4552
+ }
4553
+ },
4554
+ "isDeprecated": false,
4555
+ "deprecationReason": null
4556
+ },
4557
+ {
4558
+ "name": "estimatedMonthlySavings",
4559
+ "description": null,
4560
+ "args": [
4561
+ {
4562
+ "name": "providerId",
4563
+ "description": null,
4564
+ "type": {
4565
+ "kind": "NON_NULL",
4566
+ "name": null,
4567
+ "ofType": {
4568
+ "kind": "SCALAR",
4569
+ "name": "ID",
4570
+ "ofType": null
4571
+ }
4572
+ },
4573
+ "defaultValue": null
4574
+ },
4575
+ {
4576
+ "name": "currentMonthlyAmount",
4577
+ "description": null,
4578
+ "type": {
4579
+ "kind": "NON_NULL",
4580
+ "name": null,
4581
+ "ofType": {
4582
+ "kind": "SCALAR",
4583
+ "name": "Float",
4584
+ "ofType": null
4585
+ }
4586
+ },
4587
+ "defaultValue": null
4588
+ }
4589
+ ],
4590
+ "type": {
4591
+ "kind": "NON_NULL",
4592
+ "name": null,
4593
+ "ofType": {
4594
+ "kind": "SCALAR",
4595
+ "name": "Money",
4596
+ "ofType": null
4597
+ }
4598
+ },
4599
+ "isDeprecated": false,
4600
+ "deprecationReason": null
4601
+ },
4602
+ {
4603
+ "name": "percentageSavings",
4604
+ "description": null,
4605
+ "args": [
4606
+ {
4607
+ "name": "providerId",
4608
+ "description": null,
4609
+ "type": {
4610
+ "kind": "NON_NULL",
4611
+ "name": null,
4612
+ "ofType": {
4613
+ "kind": "SCALAR",
4614
+ "name": "ID",
4615
+ "ofType": null
4616
+ }
4617
+ },
4618
+ "defaultValue": null
4619
+ },
4620
+ {
4621
+ "name": "currentMonthlyAmount",
4622
+ "description": null,
4623
+ "type": {
4624
+ "kind": "NON_NULL",
4625
+ "name": null,
4626
+ "ofType": {
4627
+ "kind": "SCALAR",
4628
+ "name": "Float",
4629
+ "ofType": null
4630
+ }
4631
+ },
4632
+ "defaultValue": null
4633
+ }
4634
+ ],
4635
+ "type": {
4636
+ "kind": "NON_NULL",
4637
+ "name": null,
4638
+ "ofType": {
4639
+ "kind": "SCALAR",
4640
+ "name": "Float",
3852
4641
  "ofType": null
3853
4642
  }
3854
4643
  },
3855
4644
  "isDeprecated": false,
3856
4645
  "deprecationReason": null
3857
- },
3858
- {
3859
- "name": "ListProviders",
3860
- "description": null,
3861
- "args": [],
3862
- "type": {
3863
- "kind": "NON_NULL",
3864
- "name": null,
3865
- "ofType": {
3866
- "kind": "LIST",
3867
- "name": null,
3868
- "ofType": {
3869
- "kind": "NON_NULL",
3870
- "name": null,
3871
- "ofType": {
3872
- "kind": "OBJECT",
3873
- "name": "Provider",
3874
- "ofType": null
3875
- }
3876
- }
3877
- }
3878
- },
3879
- "isDeprecated": false,
3880
- "deprecationReason": null
3881
4646
  }
3882
4647
  ],
3883
4648
  "inputFields": null,
@@ -3887,8 +4652,8 @@
3887
4652
  },
3888
4653
  {
3889
4654
  "kind": "INPUT_OBJECT",
3890
- "name": "RejectOfferInput",
3891
- "description": "Autogenerated input type of RejectOffer",
4655
+ "name": "StopNegotiatingInput",
4656
+ "description": "Autogenerated input type of StopNegotiating",
3892
4657
  "fields": null,
3893
4658
  "inputFields": [
3894
4659
  {
@@ -3922,9 +4687,21 @@
3922
4687
  },
3923
4688
  {
3924
4689
  "kind": "OBJECT",
3925
- "name": "RejectOfferPayload",
3926
- "description": "Autogenerated return type of RejectOffer",
4690
+ "name": "StopNegotiatingPayload",
4691
+ "description": "Autogenerated return type of StopNegotiating",
3927
4692
  "fields": [
4693
+ {
4694
+ "name": "bill",
4695
+ "description": null,
4696
+ "args": [],
4697
+ "type": {
4698
+ "kind": "OBJECT",
4699
+ "name": "Bill",
4700
+ "ofType": null
4701
+ },
4702
+ "isDeprecated": false,
4703
+ "deprecationReason": null
4704
+ },
3928
4705
  {
3929
4706
  "name": "clientMutationId",
3930
4707
  "description": "A unique identifier for the client performing the mutation.",
@@ -3961,18 +4738,6 @@
3961
4738
  "isDeprecated": false,
3962
4739
  "deprecationReason": null
3963
4740
  },
3964
- {
3965
- "name": "offer",
3966
- "description": null,
3967
- "args": [],
3968
- "type": {
3969
- "kind": "OBJECT",
3970
- "name": "Offer",
3971
- "ofType": null
3972
- },
3973
- "isDeprecated": false,
3974
- "deprecationReason": null
3975
- },
3976
4741
  {
3977
4742
  "name": "success",
3978
4743
  "description": null,
@@ -3995,15 +4760,25 @@
3995
4760
  "enumValues": null,
3996
4761
  "possibleTypes": null
3997
4762
  },
4763
+ {
4764
+ "kind": "SCALAR",
4765
+ "name": "String",
4766
+ "description": "Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.",
4767
+ "fields": null,
4768
+ "inputFields": null,
4769
+ "interfaces": null,
4770
+ "enumValues": null,
4771
+ "possibleTypes": null
4772
+ },
3998
4773
  {
3999
4774
  "kind": "INPUT_OBJECT",
4000
- "name": "RespondToInformationRequestInput",
4001
- "description": "Autogenerated input type of RespondToInformationRequest",
4775
+ "name": "UpdateCustomerInput",
4776
+ "description": "Autogenerated input type of UpdateCustomer",
4002
4777
  "fields": null,
4003
4778
  "inputFields": [
4004
4779
  {
4005
4780
  "name": "id",
4006
- "description": "Id of the information request",
4781
+ "description": null,
4007
4782
  "type": {
4008
4783
  "kind": "NON_NULL",
4009
4784
  "name": null,
@@ -4016,14 +4791,14 @@
4016
4791
  "defaultValue": null
4017
4792
  },
4018
4793
  {
4019
- "name": "informationRequest",
4794
+ "name": "customer",
4020
4795
  "description": null,
4021
4796
  "type": {
4022
4797
  "kind": "NON_NULL",
4023
4798
  "name": null,
4024
4799
  "ofType": {
4025
4800
  "kind": "INPUT_OBJECT",
4026
- "name": "InformationRequestAttributes",
4801
+ "name": "CustomerAttributes",
4027
4802
  "ofType": null
4028
4803
  }
4029
4804
  },
@@ -4046,28 +4821,28 @@
4046
4821
  },
4047
4822
  {
4048
4823
  "kind": "OBJECT",
4049
- "name": "RespondToInformationRequestPayload",
4050
- "description": "Autogenerated return type of RespondToInformationRequest",
4824
+ "name": "UpdateCustomerPayload",
4825
+ "description": "Autogenerated return type of UpdateCustomer",
4051
4826
  "fields": [
4052
4827
  {
4053
- "name": "bill",
4054
- "description": null,
4828
+ "name": "clientMutationId",
4829
+ "description": "A unique identifier for the client performing the mutation.",
4055
4830
  "args": [],
4056
4831
  "type": {
4057
- "kind": "OBJECT",
4058
- "name": "Bill",
4832
+ "kind": "SCALAR",
4833
+ "name": "String",
4059
4834
  "ofType": null
4060
4835
  },
4061
4836
  "isDeprecated": false,
4062
4837
  "deprecationReason": null
4063
4838
  },
4064
4839
  {
4065
- "name": "clientMutationId",
4066
- "description": "A unique identifier for the client performing the mutation.",
4840
+ "name": "customer",
4841
+ "description": null,
4067
4842
  "args": [],
4068
4843
  "type": {
4069
- "kind": "SCALAR",
4070
- "name": "String",
4844
+ "kind": "OBJECT",
4845
+ "name": "Customer",
4071
4846
  "ofType": null
4072
4847
  },
4073
4848
  "isDeprecated": false,
@@ -4098,25 +4873,17 @@
4098
4873
  "deprecationReason": null
4099
4874
  },
4100
4875
  {
4101
- "name": "informationRequest",
4102
- "description": null,
4103
- "args": [],
4104
- "type": {
4105
- "kind": "OBJECT",
4106
- "name": "InformationRequest",
4107
- "ofType": null
4108
- },
4109
- "isDeprecated": false,
4110
- "deprecationReason": null
4111
- },
4112
- {
4113
- "name": "negotiation",
4876
+ "name": "success",
4114
4877
  "description": null,
4115
4878
  "args": [],
4116
4879
  "type": {
4117
- "kind": "OBJECT",
4118
- "name": "Negotiation",
4119
- "ofType": null
4880
+ "kind": "NON_NULL",
4881
+ "name": null,
4882
+ "ofType": {
4883
+ "kind": "SCALAR",
4884
+ "name": "Boolean",
4885
+ "ofType": null
4886
+ }
4120
4887
  },
4121
4888
  "isDeprecated": false,
4122
4889
  "deprecationReason": null
@@ -4127,47 +4894,29 @@
4127
4894
  "enumValues": null,
4128
4895
  "possibleTypes": null
4129
4896
  },
4130
- {
4131
- "kind": "SCALAR",
4132
- "name": "String",
4133
- "description": "Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.",
4134
- "fields": null,
4135
- "inputFields": null,
4136
- "interfaces": null,
4137
- "enumValues": null,
4138
- "possibleTypes": null
4139
- },
4140
4897
  {
4141
4898
  "kind": "INPUT_OBJECT",
4142
- "name": "UpdateCustomerInput",
4143
- "description": "Autogenerated input type of UpdateCustomer",
4899
+ "name": "UpdateWebhookUrlsInput",
4900
+ "description": "Autogenerated input type of UpdateWebhookUrls",
4144
4901
  "fields": null,
4145
4902
  "inputFields": [
4146
4903
  {
4147
- "name": "id",
4904
+ "name": "liveWebhookUrl",
4148
4905
  "description": null,
4149
4906
  "type": {
4150
- "kind": "NON_NULL",
4151
- "name": null,
4152
- "ofType": {
4153
- "kind": "SCALAR",
4154
- "name": "ID",
4155
- "ofType": null
4156
- }
4907
+ "kind": "SCALAR",
4908
+ "name": "String",
4909
+ "ofType": null
4157
4910
  },
4158
4911
  "defaultValue": null
4159
4912
  },
4160
4913
  {
4161
- "name": "customer",
4914
+ "name": "testWebhookUrl",
4162
4915
  "description": null,
4163
4916
  "type": {
4164
- "kind": "NON_NULL",
4165
- "name": null,
4166
- "ofType": {
4167
- "kind": "INPUT_OBJECT",
4168
- "name": "CustomerAttributes",
4169
- "ofType": null
4170
- }
4917
+ "kind": "SCALAR",
4918
+ "name": "String",
4919
+ "ofType": null
4171
4920
  },
4172
4921
  "defaultValue": null
4173
4922
  },
@@ -4188,8 +4937,8 @@
4188
4937
  },
4189
4938
  {
4190
4939
  "kind": "OBJECT",
4191
- "name": "UpdateCustomerPayload",
4192
- "description": "Autogenerated return type of UpdateCustomer",
4940
+ "name": "UpdateWebhookUrlsPayload",
4941
+ "description": "Autogenerated return type of UpdateWebhookUrls",
4193
4942
  "fields": [
4194
4943
  {
4195
4944
  "name": "clientMutationId",
@@ -4203,18 +4952,6 @@
4203
4952
  "isDeprecated": false,
4204
4953
  "deprecationReason": null
4205
4954
  },
4206
- {
4207
- "name": "customer",
4208
- "description": null,
4209
- "args": [],
4210
- "type": {
4211
- "kind": "OBJECT",
4212
- "name": "Customer",
4213
- "ofType": null
4214
- },
4215
- "isDeprecated": false,
4216
- "deprecationReason": null
4217
- },
4218
4955
  {
4219
4956
  "name": "errors",
4220
4957
  "description": null,
@@ -4239,6 +4976,22 @@
4239
4976
  "isDeprecated": false,
4240
4977
  "deprecationReason": null
4241
4978
  },
4979
+ {
4980
+ "name": "partner",
4981
+ "description": null,
4982
+ "args": [],
4983
+ "type": {
4984
+ "kind": "NON_NULL",
4985
+ "name": null,
4986
+ "ofType": {
4987
+ "kind": "OBJECT",
4988
+ "name": "Partner",
4989
+ "ofType": null
4990
+ }
4991
+ },
4992
+ "isDeprecated": false,
4993
+ "deprecationReason": null
4994
+ },
4242
4995
  {
4243
4996
  "name": "success",
4244
4997
  "description": null,
@@ -4269,7 +5022,18 @@
4269
5022
  {
4270
5023
  "name": "args",
4271
5024
  "description": null,
4272
- "args": [],
5025
+ "args": [
5026
+ {
5027
+ "name": "includeDeprecated",
5028
+ "description": null,
5029
+ "type": {
5030
+ "kind": "SCALAR",
5031
+ "name": "Boolean",
5032
+ "ofType": null
5033
+ },
5034
+ "defaultValue": "false"
5035
+ }
5036
+ ],
4273
5037
  "type": {
4274
5038
  "kind": "NON_NULL",
4275
5039
  "name": null,
@@ -4590,7 +5354,18 @@
4590
5354
  {
4591
5355
  "name": "args",
4592
5356
  "description": null,
4593
- "args": [],
5357
+ "args": [
5358
+ {
5359
+ "name": "includeDeprecated",
5360
+ "description": null,
5361
+ "type": {
5362
+ "kind": "SCALAR",
5363
+ "name": "Boolean",
5364
+ "ofType": null
5365
+ },
5366
+ "defaultValue": "false"
5367
+ }
5368
+ ],
4594
5369
  "type": {
4595
5370
  "kind": "NON_NULL",
4596
5371
  "name": null,
@@ -4706,6 +5481,18 @@
4706
5481
  "isDeprecated": false,
4707
5482
  "deprecationReason": null
4708
5483
  },
5484
+ {
5485
+ "name": "deprecationReason",
5486
+ "description": null,
5487
+ "args": [],
5488
+ "type": {
5489
+ "kind": "SCALAR",
5490
+ "name": "String",
5491
+ "ofType": null
5492
+ },
5493
+ "isDeprecated": false,
5494
+ "deprecationReason": null
5495
+ },
4709
5496
  {
4710
5497
  "name": "description",
4711
5498
  "description": null,
@@ -4718,6 +5505,22 @@
4718
5505
  "isDeprecated": false,
4719
5506
  "deprecationReason": null
4720
5507
  },
5508
+ {
5509
+ "name": "isDeprecated",
5510
+ "description": null,
5511
+ "args": [],
5512
+ "type": {
5513
+ "kind": "NON_NULL",
5514
+ "name": null,
5515
+ "ofType": {
5516
+ "kind": "SCALAR",
5517
+ "name": "Boolean",
5518
+ "ofType": null
5519
+ }
5520
+ },
5521
+ "isDeprecated": false,
5522
+ "deprecationReason": null
5523
+ },
4721
5524
  {
4722
5525
  "name": "name",
4723
5526
  "description": null,
@@ -4937,7 +5740,18 @@
4937
5740
  {
4938
5741
  "name": "inputFields",
4939
5742
  "description": null,
4940
- "args": [],
5743
+ "args": [
5744
+ {
5745
+ "name": "includeDeprecated",
5746
+ "description": null,
5747
+ "type": {
5748
+ "kind": "SCALAR",
5749
+ "name": "Boolean",
5750
+ "ofType": null
5751
+ },
5752
+ "defaultValue": "false"
5753
+ }
5754
+ ],
4941
5755
  "type": {
4942
5756
  "kind": "LIST",
4943
5757
  "name": null,
@@ -5104,7 +5918,11 @@
5104
5918
  {
5105
5919
  "name": "include",
5106
5920
  "description": "Directs the executor to include this field or fragment only when the `if` argument is true.",
5107
- "locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"],
5921
+ "locations": [
5922
+ "FIELD",
5923
+ "FRAGMENT_SPREAD",
5924
+ "INLINE_FRAGMENT"
5925
+ ],
5108
5926
  "args": [
5109
5927
  {
5110
5928
  "name": "if",
@@ -5125,7 +5943,11 @@
5125
5943
  {
5126
5944
  "name": "skip",
5127
5945
  "description": "Directs the executor to skip this field or fragment when the `if` argument is true.",
5128
- "locations": ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"],
5946
+ "locations": [
5947
+ "FIELD",
5948
+ "FRAGMENT_SPREAD",
5949
+ "INLINE_FRAGMENT"
5950
+ ],
5129
5951
  "args": [
5130
5952
  {
5131
5953
  "name": "if",
@@ -5146,7 +5968,12 @@
5146
5968
  {
5147
5969
  "name": "deprecated",
5148
5970
  "description": "Marks an element of a GraphQL schema as no longer supported.",
5149
- "locations": ["FIELD_DEFINITION", "ENUM_VALUE"],
5971
+ "locations": [
5972
+ "FIELD_DEFINITION",
5973
+ "ENUM_VALUE",
5974
+ "ARGUMENT_DEFINITION",
5975
+ "INPUT_FIELD_DEFINITION"
5976
+ ],
5150
5977
  "args": [
5151
5978
  {
5152
5979
  "name": "reason",
@@ -5163,4 +5990,4 @@
5163
5990
  ]
5164
5991
  }
5165
5992
  }
5166
- }
5993
+ }