lib/revo/loans_api/client.rb in revo-loans_api-0.0.41 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.42
- old
+ new
@@ -249,12 +249,16 @@
def billing_shift_info(client_id:)
make_request(:get, "clients/#{client_id}/billing_shift/info")
end
- def billing_shift_document(client_id:, billing_chain:)
- make_request(:get, "clients/#{client_id}/billing_shift/agreement",
- params: { billing_chain: billing_chain })
+ def billing_shift_document(client_id:, billing_chain: nil, billing_shift_id: nil)
+ if billing_shift_id
+ make_request(:get, "clients/#{client_id}/billing_shift/#{billing_shift_id}")
+ else
+ make_request(:get, "clients/#{client_id}/billing_shift/agreement",
+ params: { billing_chain: billing_chain })
+ end
end
def send_restructuring_confirmation_code(client_id:, product:)
make_request(:post, "clients/#{client_id}/restructuring/#{product}")
end