killbill-client 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/killbill_client/models/models.rb +1 -0
- data/lib/killbill_client/models/usage.rb +32 -0
- data/lib/killbill_client/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWJjMTIzOWViMDQ3Zjc3YzdhMzI4ZTM5ZTk2YjJiMzkxNmEyM2QzZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWFjNWM2ODg0Nzc2NzdkY2ZlODlmMjk4Y2NlNjMyOTZhYTgxZmUzZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzczODUxNjM0NzBiZTBmMjZmMWNhY2ZhYmUyZWQ0ZTllMzIxZGIxNGNlZDM1
|
10
|
+
MjFkMDRmMzdlYjhjOTJlODE3NGVmNWFkMzc5NGE1NDA1ZDU1NDAyNzQ2MTEx
|
11
|
+
MWU4ZWY3NDg5YjMwNDAxNDg0NWI3NWEzNjZhMjI2Njk3ZDYxN2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODBjZTdmYzYyY2JlNmJkMGRmNjBlODhhMWNiNDQwZjAyYmNkM2Y3MDMwNWZm
|
14
|
+
YjcwMTRlNjFiNzE2ZTE1ZDQzZTk3YTRhY2U0YjNiODg1MjAwNTgzMmY1Yjc5
|
15
|
+
ZmU5OGZhMGIzZjJhNWMxNDMzYWRhYjNiZmQzMWUwYzkwZDM0MDY=
|
@@ -20,6 +20,7 @@ require 'killbill_client/models/security'
|
|
20
20
|
require 'killbill_client/models/tag'
|
21
21
|
require 'killbill_client/models/tag_definition'
|
22
22
|
require 'killbill_client/models/tenant'
|
23
|
+
require 'killbill_client/models/usage'
|
23
24
|
require 'killbill_client/models/account_timeline'
|
24
25
|
|
25
26
|
module KillBillClient
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module KillBillClient
|
2
|
+
module Model
|
3
|
+
class Usage < UsageAttributes
|
4
|
+
|
5
|
+
has_many :audit_logs, KillBillClient::Model::AuditLog
|
6
|
+
|
7
|
+
|
8
|
+
KILLBILL_API_USAGES_PREFIX = "#{KILLBILL_API_PREFIX}/usages"
|
9
|
+
|
10
|
+
class << self
|
11
|
+
def find_by_subscription_id(subscription_id, options = {})
|
12
|
+
get "#{KILLBILL_API_USAGES_PREFIX}/#{subscription_id}",
|
13
|
+
{
|
14
|
+
},
|
15
|
+
options
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def create(user = nil, reason = nil, comment = nil, options = {})
|
20
|
+
self.class.post KILLBILL_API_USAGES_PREFIX,
|
21
|
+
to_json,
|
22
|
+
{},
|
23
|
+
{
|
24
|
+
:user => user,
|
25
|
+
:reason => reason,
|
26
|
+
:comment => comment,
|
27
|
+
}.merge(options)
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Killbill core team
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- lib/killbill_client/models/tag.rb
|
130
130
|
- lib/killbill_client/models/tag_definition.rb
|
131
131
|
- lib/killbill_client/models/tenant.rb
|
132
|
+
- lib/killbill_client/models/usage.rb
|
132
133
|
- lib/killbill_client/utils.rb
|
133
134
|
- lib/killbill_client/version.rb
|
134
135
|
- lib/rails/generators/killbill_client/config_generator.rb
|