Skip to content

Commit

Permalink
Merge pull request #106 from tungleduyxyz/issue_88_add_new_accounts_apis
Browse files Browse the repository at this point in the history
Issue 88 Sync with Killbill Accounts APIs
  • Loading branch information
reshmabidikar authored Apr 5, 2024
2 parents 2858fbd + 3880de8 commit 05fbd96
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/killbill_client/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,27 @@ def blocking_state_audit_logs_with_history(blocking_state_id, options = {})
AuditLog
end

def paginated_bundles(account_id, offset = 0, limit = 100, audit = "NONE", options = {})
get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/bundles/pagination",
{
:offset => offset,
:limit => limit,
:audit => audit
},
options,
Bundle
end

def paginated_invoices(account_id, offset = 0, limit = 100, audit = "NONE", options = {})
get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/invoices/pagination",
{
:offset => offset,
:limit => limit,
:audit => audit
},
options,
Invoice
end
end

def create(user = nil, reason = nil, comment = nil, options = {})
Expand Down

0 comments on commit 05fbd96

Please sign in to comment.