killbill-client 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NjJmNTA0NTAyODdjZWExOWQ5Yjg4YTE4ZmNlMTg1MzBjMTNjODhhYQ==
5
- data.tar.gz: !binary |-
6
- OGYzYzY1NzcyZjU3MjFmYzg4NmI2MWFiZDNhNWY2OWUwYjk3ZDMwOA==
2
+ SHA1:
3
+ metadata.gz: 96cc71d303e68611682238a7598d2bf64bae239c
4
+ data.tar.gz: 9b332dde08744a67b6ac58e08627ce07c4f60a6b
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YzY4NzQwOTU5M2QwMTFjNmY4ZmJjNjlkZDJlY2I1MTQ4NGQ2NmYyNmJjMjE1
10
- NTM4M2YwZTNkMjQzYzZmMTg5ZjJlNjBlZGFkMjJmMzA1MGIyOTRmOTE1ODIw
11
- OGU2OWVmOTlhOGJhNzllOWEzODU3N2Y3ODg3ZjRjNmI2NThiNjU=
12
- data.tar.gz: !binary |-
13
- YzU4OTI4NWVlYzllYmM1MWM3ODQ3MzAzZjBmNmVmZGYyMmY2MjRhOTZmNWM0
14
- OTcwNDY0MWU0ZTA1NTA5MGNiNTE3MjY2ODgwMTk5YzRjZjc4MTA4Njk2OTcw
15
- Mzc4NmM3NDhiZmFmYzcwZGZkODU2YmZhM2UwNDcwZTNjNjVmMDc=
6
+ metadata.gz: 14b8eb15f87a37a3002c084ee3fcf0320aac6468aca087984408567f87158a352a13a1aba6a12b755bcd43812a63a4cafead20aa23df00d800b7ffa3cb7116e1
7
+ data.tar.gz: 039f902f30852e7ad03d91075534cc22c011fbca6d5f8006e09f14a979a216d8c09585f28fd717cf0f25549858ff1ebdc8930aa31854c93f0e7915a037ac0324
@@ -105,12 +105,20 @@ module KillBillClient
105
105
  add_tag_from_definition_id(AUTO_PAY_OFF_ID, user, reason, comment, options)
106
106
  end
107
107
 
108
- def auto_invoicing?(options = {})
109
- control_tag_off?(AUTO_INVOICING_ID, options)
108
+ def remove_auto_pay_off(user = nil, reason = nil, comment = nil, options = {})
109
+ remove_tag_from_definition_id(AUTO_PAY_OFF_ID.id, user, reason, comment, options)
110
110
  end
111
111
 
112
- def set_auto_invoicing(user = nil, reason = nil, comment = nil, options = {})
113
- add_tag_from_definition_id(AUTO_INVOICING_ID, user, reason, comment, options)
112
+ def auto_invoicing_off?(options = {})
113
+ control_tag_off?(AUTO_INVOICING_OFF_ID, options)
114
+ end
115
+
116
+ def set_auto_invoicing_off(user = nil, reason = nil, comment = nil, options = {})
117
+ add_tag_from_definition_id(AUTO_INVOICING_OFF_ID, user, reason, comment, options)
118
+ end
119
+
120
+ def remove_auto_invoicing_off(user = nil, reason = nil, comment = nil, options = {})
121
+ remove_tag_from_definition_id(AUTO_INVOICING_OFF_ID, user, reason, comment, options)
114
122
  end
115
123
 
116
124
  def overdue_enforcement_off?(options = {})
@@ -121,6 +129,10 @@ module KillBillClient
121
129
  add_tag_from_definition_id(OVERDUE_ENFORCEMENT_OFF_ID, user, reason, comment, options)
122
130
  end
123
131
 
132
+ def remove_overdue_enforcement_off(user = nil, reason = nil, comment = nil, options = {})
133
+ remove_tag_from_definition_id(OVERDUE_ENFORCEMENT_OFF_ID, user, reason, comment, options)
134
+ end
135
+
124
136
  def written_off?(options = {})
125
137
  control_tag_off?(WRITTEN_OFF_ID, options)
126
138
  end
@@ -129,6 +141,10 @@ module KillBillClient
129
141
  add_tag_from_definition_id(WRITTEN_OFF_ID, user, reason, comment, options)
130
142
  end
131
143
 
144
+ def remove_written_off(user = nil, reason = nil, comment = nil, options = {})
145
+ remove_tag_from_definition_id(WRITTEN_OFF_ID, user, reason, comment, options)
146
+ end
147
+
132
148
  def manual_pay?(options = {})
133
149
  control_tag_off?(MANUAL_PAY_ID, options)
134
150
  end
@@ -137,6 +153,10 @@ module KillBillClient
137
153
  add_tag_from_definition_id(MANUAL_PAY_ID, user, reason, comment, options)
138
154
  end
139
155
 
156
+ def remove_manual_pay(user = nil, reason = nil, comment = nil, options = {})
157
+ remove_tag_from_definition_id(MANUAL_PAY_ID, user, reason, comment, options)
158
+ end
159
+
140
160
  def test?(options = {})
141
161
  control_tag_off?(TEST_ID, options)
142
162
  end
@@ -145,6 +165,10 @@ module KillBillClient
145
165
  add_tag_from_definition_id(TEST_ID, user, reason, comment, options)
146
166
  end
147
167
 
168
+ def remove_test(user = nil, reason = nil, comment = nil, options = {})
169
+ remove_tag_from_definition_id(TEST_ID, user, reason, comment, options)
170
+ end
171
+
148
172
  def add_email(email, user = nil, reason = nil, comment = nil, options = {})
149
173
  self.class.post "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/emails",
150
174
  {
@@ -3,7 +3,7 @@ module KillBillClient
3
3
  module TagHelper
4
4
 
5
5
  AUTO_PAY_OFF_ID = '00000000-0000-0000-0000-000000000001'
6
- AUTO_INVOICING_ID = '00000000-0000-0000-0000-000000000002'
6
+ AUTO_INVOICING_OFF_ID = '00000000-0000-0000-0000-000000000002'
7
7
  OVERDUE_ENFORCEMENT_OFF_ID = '00000000-0000-0000-0000-000000000003'
8
8
  WRITTEN_OFF_ID = '00000000-0000-0000-0000-000000000004'
9
9
  MANUAL_PAY_ID = '00000000-0000-0000-0000-000000000005'
@@ -1,8 +1,8 @@
1
1
  module KillBillClient
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 8
5
- PATCH = 1
4
+ MINOR = 9
5
+ PATCH = 0
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.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: 2014-10-22 00:00:00.000000000 Z
11
+ date: 2014-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 10.0.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 10.0.0
41
41
  - !ruby/object:Gem::Dependency
@@ -173,17 +173,17 @@ require_paths:
173
173
  - lib
174
174
  required_ruby_version: !ruby/object:Gem::Requirement
175
175
  requirements:
176
- - - ! '>='
176
+ - - '>='
177
177
  - !ruby/object:Gem::Version
178
178
  version: 1.8.6
179
179
  required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  requirements:
181
- - - ! '>='
181
+ - - '>='
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.2.2
186
+ rubygems_version: 2.0.3
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: Kill Bill client library.