killbill-client 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10268e4d9404712f0572d159b8919240a46a061a
4
- data.tar.gz: 2232446598249d9e78a705a440680efa854d86ce
3
+ metadata.gz: 819aaea84a56ac9c47cde389a7a31370c15fff54
4
+ data.tar.gz: 7b2e3861bad56ae984fc38f3c955ef68b119a6eb
5
5
  SHA512:
6
- metadata.gz: 04f61d6037581aab7f21eab45ea581523e2c307cac12dd17cf86dd2801b760a8a82891b77034d31c105ab0e4223bc2bf2c46de501cdc77b12e2b0ddb48cc2e79
7
- data.tar.gz: e0e068fb0fcd6d3962336abb69ef25fd925ec1faa57a9c1bebe20c033924b8b293c40f2fc90602c119a93f8c416f37b7013be0fdcccd808608c5d4803377698e
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
  {},
@@ -1,7 +1,7 @@
1
1
  module KillBillClient
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 6
4
+ MINOR = 7
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.6.0
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-02 00:00:00.000000000 Z
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