killbill-client 0.18.0 → 0.19.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
- MTJiMDNiZjBkYTg5OGMzNmJjMjY4MGE0YTM4ZDYyN2IyMTEzMTkyOA==
5
- data.tar.gz: !binary |-
6
- MTVjMjVhYjJjNTUyNDlhMDZlNDJlMzVmMjdiOTMyMzZmZWRiNDU3OA==
2
+ SHA1:
3
+ metadata.gz: bf57aa5775c4415be5e62cc63b60827b9fe4bb67
4
+ data.tar.gz: 49a3f91bfaa3bcb203803f839e71c7d687079b23
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NmRjYzEwMWVmOGM2YjAzODZlOTlkZjhhY2I1NTc0NWMyMmU0Yjg5YTRiZDU5
10
- Y2FmZTRhNGZkYzUyMTA3ODI3ODI3NTBjYjc5MzExNjk1OThjNGUwYzJjMDVl
11
- MWY2MGE2YjU3YmI5ZDMxN2ZiZTE0ZDIxMTg1YTUzMmVhNGM1ZGE=
12
- data.tar.gz: !binary |-
13
- ZWZjODRjOGVhODUwZTUxNTlmNWU1YTQ2NzE3YzhkNmU0YTJmYjgzMjY0ZjBi
14
- YzdmM2IwMzY0ZjU0YzhmOWQxODYyNGI4ZDgwYmQ5NDk0MjQ0MGQzMjUwYzg0
15
- NDJmM2IwZDY3MmQ4NGIzYzYxZWEyNDUxNjczM2E5ZGY2NTQ3ZGI=
6
+ metadata.gz: 6c96c331f759ddf337eefab322770ca178a6ec5c9d44ce7f595a421170b55653c6e66a6369a625cc97eb07910561bd24168c10f7d5addf0c1e30ac6c3e410c84
7
+ data.tar.gz: 184ed291a2b810942ba1e555aed2c96c6f380f95b443ce089f958ca6e0ce2a7f0e045371b159cfe3514b1a27576f0668fbcc24402ca4eb6a136cbb1f2f1a5767
@@ -1 +1 @@
1
- java -cp target/killbill-java-parser-0.0.1-SNAPSHOT.jar com.ning.killbill.KillbillParser -i file:///<KILLBILL_REPO>/jaxrs/src/main/java/ -o /tmp/output -t RUBY_CLIENT_API -p org.killbill.billing.jaxrs.json
1
+ java -cp target/killbill-java-parser-0.0.1-SNAPSHOT.jar com.ning.killbill.KillbillParser -i file:///$KILLBILL_REPO/jaxrs/src/main/java/ -o /tmp/output -t RUBY_CLIENT_API -p org.killbill.billing.jaxrs.json
@@ -221,11 +221,23 @@ module KillBillClient
221
221
  to_json,
222
222
  {},
223
223
  {
224
- :user => user,
225
- :reason => reason,
224
+ :user => user,
225
+ :reason => reason,
226
226
  :comment => comment,
227
227
  }.merge(options)
228
228
  end
229
+
230
+ def all_tags(object_type, included_deleted, audit = 'NONE', options = {})
231
+
232
+ params = {}
233
+ params[:objectType] = object_type if object_type
234
+ params[:includedDeleted] = included_deleted if included_deleted
235
+ params[:audit] = audit
236
+ self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/allTags",
237
+ params,
238
+ options,
239
+ Tag
240
+ end
229
241
  end
230
242
  end
231
243
  end
@@ -4,8 +4,10 @@ module KillBillClient
4
4
 
5
5
  def build_form_descriptor(user = nil, reason = nil, comment = nil, options = {})
6
6
  query_map = {
7
- :controlPluginName => options.delete(:controlPluginNames)
8
7
  }
8
+ if options.include? :controlPluginNames
9
+ query_map[:controlPluginName] = options.delete(:controlPluginNames)
10
+ end
9
11
 
10
12
  self.class.post "#{HostedPaymentPage::KILLBILL_API_HPP_PREFIX}/hosted/form",
11
13
  to_json,
@@ -24,8 +24,10 @@ module KillBillClient
24
24
 
25
25
  def combo_payment(user, reason, comment, options)
26
26
  query_map = {
27
- :controlPluginName => options.delete(:controlPluginNames)
28
27
  }
28
+ if options.include? :controlPluginNames
29
+ query_map[:controlPluginName] = options.delete(:controlPluginNames)
30
+ end
29
31
 
30
32
  created_transaction = self.class.post "#{Payment::KILLBILL_API_PAYMENTS_PREFIX}/combo",
31
33
  to_json,
@@ -30,8 +30,8 @@ module KillBillClient
30
30
  class ComboPaymentTransactionAttributes < Resource
31
31
  attribute :account
32
32
  attribute :payment_method
33
- attribute :payment_method_plugin_properties
34
33
  attribute :transaction
34
+ attribute :payment_method_plugin_properties
35
35
  attribute :transaction_plugin_properties
36
36
  attribute :audit_logs
37
37
  end
@@ -30,6 +30,7 @@ module KillBillClient
30
30
  class TagAttributes < Resource
31
31
  attribute :tag_id
32
32
  attribute :object_type
33
+ attribute :object_id
33
34
  attribute :tag_definition_id
34
35
  attribute :tag_definition_name
35
36
  attribute :audit_logs
@@ -1,7 +1,7 @@
1
1
  module KillBillClient
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 18
4
+ MINOR = 19
5
5
  PATCH = 0
6
6
  PRE = nil
7
7
 
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.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: 2015-09-11 00:00:00.000000000 Z
11
+ date: 2015-09-19 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
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 2.12.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 2.12.0
55
55
  description: An API client library for Kill Bill.
@@ -58,8 +58,8 @@ executables: []
58
58
  extensions: []
59
59
  extra_rdoc_files: []
60
60
  files:
61
- - .gitignore
62
- - .travis.yml
61
+ - ".gitignore"
62
+ - ".travis.yml"
63
63
  - Gemfile
64
64
  - README.md
65
65
  - Rakefile
@@ -176,18 +176,18 @@ licenses:
176
176
  metadata: {}
177
177
  post_install_message:
178
178
  rdoc_options:
179
- - --exclude
180
- - .
179
+ - "--exclude"
180
+ - "."
181
181
  require_paths:
182
182
  - lib
183
183
  required_ruby_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ! '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: 1.8.6
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  requirements:
190
- - - ! '>='
190
+ - - ">="
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0'
193
193
  requirements: []