lib/billfixers/partner/client.rb in billfixers-partner-1.1.2 vs lib/billfixers/partner/client.rb in billfixers-partner-1.1.3

- old
+ new

@@ -113,9 +113,15 @@ raise Error, result.errors.join(' ') unless result.success result.bill end + def renegotiate_bill(bill_id) + response = @gql.query(RENEGOTIATE_BILL_MUTATION, { id: bill_id }) + + response.data.renegotiate_bill + end + def cancel_bill(bill_id) response = @gql.query(CANCEL_BILL_MUTATION, { id: bill_id }) response.data.cancel_bill.success end