Skip to content

Commit 05fbd96

Browse files
Merge pull request #106 from tungleduyxyz/issue_88_add_new_accounts_apis
Issue 88 Sync with Killbill Accounts APIs
2 parents 2858fbd + 3880de8 commit 05fbd96

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

lib/killbill_client/models/account.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,27 @@ def blocking_state_audit_logs_with_history(blocking_state_id, options = {})
7373
AuditLog
7474
end
7575

76+
def paginated_bundles(account_id, offset = 0, limit = 100, audit = "NONE", options = {})
77+
get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/bundles/pagination",
78+
{
79+
:offset => offset,
80+
:limit => limit,
81+
:audit => audit
82+
},
83+
options,
84+
Bundle
85+
end
86+
87+
def paginated_invoices(account_id, offset = 0, limit = 100, audit = "NONE", options = {})
88+
get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/invoices/pagination",
89+
{
90+
:offset => offset,
91+
:limit => limit,
92+
:audit => audit
93+
},
94+
options,
95+
Invoice
96+
end
7697
end
7798

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

0 commit comments

Comments
 (0)