killbill-client 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 602d87c259fd50b454aeae3f9ccf58859a2c399f
4
- data.tar.gz: 2f2bbf0edca64eb5fbe24ee8f52450160fcb733f
3
+ metadata.gz: f34cbba28821aa7e8fdee247bd18b91f1934b13b
4
+ data.tar.gz: 09ef75444ac99a4bcecdc75bdad1a763ded0e27a
5
5
  SHA512:
6
- metadata.gz: e644ebf18c2142107321826104e34661526b5317a12b2bb34bdbc3ad028af2a7cdd9ba791ac669b960ee79a6e62c297c108a7a0a93cf6fa356649323136090dd
7
- data.tar.gz: 41d3f654ba9d7d484e2acc32c6b0bf52d118ee4e7472de8e979b3e8358974431b30ac6143b55aa80411026725f1dd6eb63f55fd481df05c05922d49806badd6b
6
+ metadata.gz: a963240b1466170b108ba01fc8503c03b35b8c564bac405e35b329ea1a37d8803a3a0a72ddfeb0c25bc94de04438369bcca6dd4379cdfe51dd37e9aa4d236853
7
+ data.tar.gz: 3b07fb964a98abf2bf20c22320567fd9cc426042db68adb2c69cf4162d53dfd313670a7b6d81fc8acddb58f8584084645100b63b18e2ddde9dfa95d4b82c5098
@@ -53,6 +53,16 @@ module KillBillClient
53
53
  },
54
54
  options
55
55
  end
56
+
57
+ def find_children(account_id, with_balance = false, with_balance_and_cba = false, audit='NONE', options = {})
58
+ get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/children",
59
+ {
60
+ :audit => audit,
61
+ :accountWithBalance => with_balance,
62
+ :accountWithBalanceAndCBA => with_balance_and_cba
63
+ },
64
+ options
65
+ end
56
66
  end
57
67
 
58
68
  def create(user = nil, reason = nil, comment = nil, options = {})
@@ -144,6 +154,10 @@ module KillBillClient
144
154
  OverdueStateAttributes
145
155
  end
146
156
 
157
+ def children(with_balance = false, with_balance_and_cba = false, audit='NONE', options = {})
158
+ Account::find_children(self.account_id, with_balance, with_balance_and_cba, audit, options)
159
+ end
160
+
147
161
  def auto_pay_off?(options = {})
148
162
  control_tag?(AUTO_PAY_OFF_ID, options)
149
163
  end
@@ -1,7 +1,7 @@
1
1
  module KillBillClient
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 10
4
+ MINOR = 11
5
5
  PATCH = 0
6
6
  PRE = nil
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Killbill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-04 00:00:00.000000000 Z
11
+ date: 2017-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement