killbill-client 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/killbill_client/models/account.rb +18 -0
- data/lib/killbill_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 819aaea84a56ac9c47cde389a7a31370c15fff54
|
4
|
+
data.tar.gz: 7b2e3861bad56ae984fc38f3c955ef68b119a6eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81e7ee389303f02b9112c99c34a8b45ca60427eb71e97cc7f498c6b4bd0101e98e10bf97a0a9013041b4ad162252585b55f5afe35e19f55e3433edc08c345427
|
7
|
+
data.tar.gz: 40d096db6f30a5922dddda046388482c71d76df687c24158e01c1cf7bb7a194190da4850d6fffdeeff55bcfc7471f70fb862cfd1c40cfd69a4fd6dd5acc05014
|
@@ -84,6 +84,24 @@ module KillBillClient
|
|
84
84
|
end
|
85
85
|
|
86
86
|
|
87
|
+
def close(cancel_subscriptions, writeoff_unpaid_invoices, item_adjust_unpaid_invoices, user = nil, reason = nil, comment = nil, options = {})
|
88
|
+
created_account = self.class.delete "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}",
|
89
|
+
{},
|
90
|
+
{
|
91
|
+
:cancelAllSubscriptions => cancel_subscriptions,
|
92
|
+
:writeOffUnpaidInvoices => writeoff_unpaid_invoices,
|
93
|
+
:itemAdjustUnpaidInvoices => item_adjust_unpaid_invoices
|
94
|
+
},
|
95
|
+
{
|
96
|
+
:user => user,
|
97
|
+
:reason => reason,
|
98
|
+
:comment => comment,
|
99
|
+
}.merge(options)
|
100
|
+
created_account.refresh(options)
|
101
|
+
end
|
102
|
+
|
103
|
+
|
104
|
+
|
87
105
|
def transfer_child_credit(user = nil, reason = nil, comment = nil, options = {})
|
88
106
|
self.class.post "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/transferCredit",
|
89
107
|
{},
|
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.
|
4
|
+
version: 1.7.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-05-
|
11
|
+
date: 2017-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|