lib/hackerone/client/program.rb in hackerone-client-0.20.0 vs lib/hackerone/client/program.rb in hackerone-client-0.20.1
- old
+ new
@@ -74,9 +74,16 @@
params: { page: { number: page_number, size: page_size } }
)
response_body.map { |r| Swag.new(r, self) }
end
+ def balance
+ response_body = make_get_request(
+ "programs/#{id}/billing/balance"
+ )
+ BillingBalance.new(response_body).balance
+ end
+
private
def members
@members ||= relationships.members[:data].map { |member_data| Member.new(member_data) }
end