killbill-client 0.6.0 → 0.6.1
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 +7 -0
- data/lib/killbill_client/models/bundle.rb +18 -0
- data/lib/killbill_client/models/gen/account_attributes.rb +1 -0
- data/lib/killbill_client/models/gen/payment_method_attributes.rb +1 -0
- data/lib/killbill_client/models/gen/require_gen.rb +2 -0
- data/lib/killbill_client/models/gen/session_attributes.rb +36 -0
- data/lib/killbill_client/models/gen/subject_attributes.rb +35 -0
- data/lib/killbill_client/models/invoice.rb +9 -0
- data/lib/killbill_client/models/security.rb +7 -0
- data/lib/killbill_client/version.rb +1 -1
- metadata +19 -28
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8a1ba7df0c11d58bae87d25376041a527fcc6330
|
4
|
+
data.tar.gz: 532f2b61c9e642c351291cde91bdf971ad01d289
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 60498ebffd8895c1ef9a8033b9094769b0f08c5c38b542c8a94e6ceffd73f4713cc463af4f75d894667aedd21254f0d50189987eca435a702655fb41ec2cbf41
|
7
|
+
data.tar.gz: a08247a3e8bea8880ebda71650088ccaf38414bc88688730b4d58e8b4751764bf44653e3667fb37910fda91a6f0ee6096d1d9f03fe738a6a9f10f6d201a2d30c
|
@@ -8,6 +8,24 @@ module KillBillClient
|
|
8
8
|
has_many :audit_logs, KillBillClient::Model::AuditLog
|
9
9
|
|
10
10
|
class << self
|
11
|
+
def find_in_batches(offset = 0, limit = 100, options = {})
|
12
|
+
get "#{KILLBILL_API_BUNDLES_PREFIX}/#{Resource::KILLBILL_API_PAGINATION_PREFIX}",
|
13
|
+
{
|
14
|
+
:offset => offset,
|
15
|
+
:limit => limit
|
16
|
+
},
|
17
|
+
options
|
18
|
+
end
|
19
|
+
|
20
|
+
def find_in_batches_by_search_key(search_key, offset = 0, limit = 100, options = {})
|
21
|
+
get "#{KILLBILL_API_BUNDLES_PREFIX}/search/#{search_key}",
|
22
|
+
{
|
23
|
+
:offset => offset,
|
24
|
+
:limit => limit
|
25
|
+
},
|
26
|
+
options
|
27
|
+
end
|
28
|
+
|
11
29
|
def find_by_id(bundle_id, options = {})
|
12
30
|
get "#{KILLBILL_API_BUNDLES_PREFIX}/#{bundle_id}",
|
13
31
|
{},
|
@@ -50,6 +50,8 @@ require 'killbill_client/models/gen/payment_method_properties'
|
|
50
50
|
require 'killbill_client/models/gen/payment_method_attributes'
|
51
51
|
require 'killbill_client/models/gen/plan_detail_attributes'
|
52
52
|
require 'killbill_client/models/gen/refund_attributes'
|
53
|
+
require 'killbill_client/models/gen/session_attributes'
|
54
|
+
require 'killbill_client/models/gen/subject_attributes'
|
53
55
|
require 'killbill_client/models/gen/event_subscription_attributes'
|
54
56
|
require 'killbill_client/models/gen/deleted_event_subscription_attributes'
|
55
57
|
require 'killbill_client/models/gen/new_event_subscription_attributes'
|
@@ -0,0 +1,36 @@
|
|
1
|
+
###################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# #
|
5
|
+
# Ning licenses this file to you under the Apache License, version 2.0 #
|
6
|
+
# (the "License"); you may not use this file except in compliance with the #
|
7
|
+
# License. You may obtain a copy of the License at: #
|
8
|
+
# #
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
10
|
+
# #
|
11
|
+
# Unless required by applicable law or agreed to in writing, software #
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
13
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
14
|
+
# License for the specific language governing permissions and limitations #
|
15
|
+
# under the License. #
|
16
|
+
# #
|
17
|
+
###################################################################################
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# DO NOT EDIT!!!
|
22
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
23
|
+
#
|
24
|
+
|
25
|
+
|
26
|
+
module KillBillClient
|
27
|
+
module Model
|
28
|
+
class SessionAttributes < Resource
|
29
|
+
attribute :id
|
30
|
+
attribute :start_date
|
31
|
+
attribute :last_access_date
|
32
|
+
attribute :timeout
|
33
|
+
attribute :host
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
###################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# #
|
5
|
+
# Ning licenses this file to you under the Apache License, version 2.0 #
|
6
|
+
# (the "License"); you may not use this file except in compliance with the #
|
7
|
+
# License. You may obtain a copy of the License at: #
|
8
|
+
# #
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
10
|
+
# #
|
11
|
+
# Unless required by applicable law or agreed to in writing, software #
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
13
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
14
|
+
# License for the specific language governing permissions and limitations #
|
15
|
+
# under the License. #
|
16
|
+
# #
|
17
|
+
###################################################################################
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# DO NOT EDIT!!!
|
22
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
23
|
+
#
|
24
|
+
|
25
|
+
|
26
|
+
module KillBillClient
|
27
|
+
module Model
|
28
|
+
class SubjectAttributes < Resource
|
29
|
+
attribute :principal
|
30
|
+
attribute :is_authenticated
|
31
|
+
attribute :is_remembered
|
32
|
+
attribute :session
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -28,6 +28,15 @@ module KillBillClient
|
|
28
28
|
options
|
29
29
|
end
|
30
30
|
|
31
|
+
def find_in_batches_by_search_key(search_key, offset = 0, limit = 100, options = {})
|
32
|
+
get "#{KILLBILL_API_INVOICES_PREFIX}/search/#{search_key}",
|
33
|
+
{
|
34
|
+
:offset => offset,
|
35
|
+
:limit => limit
|
36
|
+
},
|
37
|
+
options
|
38
|
+
end
|
39
|
+
|
31
40
|
def trigger_invoice(account_id, target_date, dry_run, user = nil, reason = nil, comment = nil, options = {})
|
32
41
|
query_map = {:accountId => account_id}
|
33
42
|
query_map[:targetDate] = target_date if !target_date.nil?
|
@@ -9,6 +9,13 @@ module KillBillClient
|
|
9
9
|
{},
|
10
10
|
options
|
11
11
|
end
|
12
|
+
|
13
|
+
def find_subject(options = {})
|
14
|
+
get "#{KILLBILL_API_SECURITY_PREFIX}/subject",
|
15
|
+
{},
|
16
|
+
options,
|
17
|
+
SubjectAttributes # Attribute object as Subject is not a Kill Bill resource
|
18
|
+
end
|
12
19
|
end
|
13
20
|
end
|
14
21
|
end
|
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Killbill core team
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-02-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: json
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.8.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 1.8.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 10.0.0
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 10.0.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rspec
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: 2.12.0
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: 2.12.0
|
62
55
|
description: An API client library for Kill Bill.
|
@@ -65,8 +58,8 @@ executables: []
|
|
65
58
|
extensions: []
|
66
59
|
extra_rdoc_files: []
|
67
60
|
files:
|
68
|
-
- .gitignore
|
69
|
-
- .travis.yml
|
61
|
+
- ".gitignore"
|
62
|
+
- ".travis.yml"
|
70
63
|
- Gemfile
|
71
64
|
- README.md
|
72
65
|
- Rakefile
|
@@ -114,7 +107,9 @@ files:
|
|
114
107
|
- lib/killbill_client/models/gen/product_attributes.rb
|
115
108
|
- lib/killbill_client/models/gen/refund_attributes.rb
|
116
109
|
- lib/killbill_client/models/gen/require_gen.rb
|
110
|
+
- lib/killbill_client/models/gen/session_attributes.rb
|
117
111
|
- lib/killbill_client/models/gen/stack_trace_element_attributes.rb
|
112
|
+
- lib/killbill_client/models/gen/subject_attributes.rb
|
118
113
|
- lib/killbill_client/models/gen/subscription_attributes.rb
|
119
114
|
- lib/killbill_client/models/gen/tag_attributes.rb
|
120
115
|
- lib/killbill_client/models/gen/tag_definition_attributes.rb
|
@@ -145,32 +140,28 @@ files:
|
|
145
140
|
homepage: http://www.killbilling.org
|
146
141
|
licenses:
|
147
142
|
- Apache License (2.0)
|
143
|
+
metadata: {}
|
148
144
|
post_install_message:
|
149
145
|
rdoc_options:
|
150
|
-
- --exclude
|
151
|
-
- .
|
146
|
+
- "--exclude"
|
147
|
+
- "."
|
152
148
|
require_paths:
|
153
149
|
- lib
|
154
150
|
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
-
none: false
|
156
151
|
requirements:
|
157
|
-
- -
|
152
|
+
- - ">="
|
158
153
|
- !ruby/object:Gem::Version
|
159
154
|
version: 1.8.6
|
160
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
156
|
requirements:
|
163
|
-
- -
|
157
|
+
- - ">="
|
164
158
|
- !ruby/object:Gem::Version
|
165
159
|
version: '0'
|
166
|
-
segments:
|
167
|
-
- 0
|
168
|
-
hash: -1019538039368057415
|
169
160
|
requirements: []
|
170
161
|
rubyforge_project:
|
171
|
-
rubygems_version:
|
162
|
+
rubygems_version: 2.2.0
|
172
163
|
signing_key:
|
173
|
-
specification_version:
|
164
|
+
specification_version: 4
|
174
165
|
summary: Kill Bill client library.
|
175
166
|
test_files:
|
176
167
|
- spec/killbill_client/model_relation_spec.rb
|