killbill-client 0.10.3 → 0.10.4

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,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c5e31c846bfcfc343419c5680facd9adc19dc2c1
4
- data.tar.gz: 147dc1933c078b486f22074e9908fc41c762679d
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDFmOWUyNWJkMzQ1YTk1NDA2ZTRiZWRlMmQ0MTc1MGNlZDI2YzQ5OQ==
5
+ data.tar.gz: !binary |-
6
+ ZDNmNWQyNDQwNTNjYjc4MTIyMzRiODljMzBlMTQ0ZDg2YjM0OTI2Nw==
5
7
  SHA512:
6
- metadata.gz: ea04c58ee2ee1368d19938bcf6fb9a792cc5f42d5bc8ee0eccc4b69986bbc3210582cdcc70ce145641e7010c733650eb45fb7e925405aaafe02dccea7cb62a9c
7
- data.tar.gz: af9067830cf106237d05fe3ab864847c4d7ff6430bbef52655ba129424c53d74c7f6cba0956db5bd2b918871f06111df782f2091955da74f18ba964c8203ed7f
8
+ metadata.gz: !binary |-
9
+ YjM1MzY3YjNkZDZmMDNmNDAwN2VmZTlmODA0Zjc0NDQ0OTg4YmNlZjI3OGRk
10
+ NDI5MTdjMTMyZWQ0NmYyYzkxZjQ1YjQ0Y2E1ZjM3MmM0MzA1MjNlMTUxNGQw
11
+ NGUxZDI1NGRkMTQ1ZTdmYzQxN2VmOWQwMDc1NmJkODMwMWYxODI=
12
+ data.tar.gz: !binary |-
13
+ M2UzODhkNDU1ZDc3ODZkMDEyOTRhZTkxYjM3Njg4MDFkODU4Njg5OWFhNThk
14
+ ODE4ODI1YjI2NWIxODI0MzRjNTFhYzMwNmI2ZGY3ZjlmNDg1Y2I5OGI0OGQ5
15
+ M2NlNTM5M2U0OTdkMjhmNmNmNmZkNzIzNTRjZjQ0NTY0MjQxMmE=
data/README.md CHANGED
@@ -40,3 +40,6 @@ rake test:remote:spec
40
40
 
41
41
  You need to set in spec/spec_helper.rb the url of your instance, e.g. `KillBillClient.url = 'http://127.0.0.1:8080'` and the username and password to authenticate the API, e.g. `KillBillClient.username = 'admin'` and `KillBillClient.password = 'password'`
42
42
 
43
+ ## License
44
+
45
+ The Kill Bill Ruby client is released under the [Apache license](http://www.apache.org/licenses/LICENSE-2.0).
@@ -32,6 +32,7 @@ module KillBillClient
32
32
  attribute :bundle_id
33
33
  attribute :external_key
34
34
  attribute :subscriptions
35
+ attribute :timeline
35
36
  attribute :audit_logs
36
37
  end
37
38
  end
@@ -28,11 +28,11 @@
28
28
  module KillBillClient
29
29
  module Model
30
30
  class BundleTimelineAttributes < Resource
31
- attribute :view_id
32
- attribute :bundle
33
- attribute :payments
34
- attribute :invoices
35
- attribute :reason_for_change
31
+ attribute :account_id
32
+ attribute :bundle_id
33
+ attribute :external_key
34
+ attribute :events
35
+ attribute :audit_logs
36
36
  end
37
37
  end
38
38
  end
@@ -35,6 +35,10 @@ module KillBillClient
35
35
  attribute :product
36
36
  attribute :price_list
37
37
  attribute :event_type
38
+ attribute :is_blocked_billing
39
+ attribute :is_blocked_entitlement
40
+ attribute :service_name
41
+ attribute :service_state_name
38
42
  attribute :phase
39
43
  attribute :audit_logs
40
44
  end
@@ -66,8 +66,6 @@ require 'killbill_client/models/gen/rolled_up_usage_attributes'
66
66
  require 'killbill_client/models/gen/session_attributes'
67
67
  require 'killbill_client/models/gen/subject_attributes'
68
68
  require 'killbill_client/models/gen/event_subscription_attributes'
69
- require 'killbill_client/models/gen/deleted_event_subscription_attributes'
70
- require 'killbill_client/models/gen/new_event_subscription_attributes'
71
69
  require 'killbill_client/models/gen/subscription_attributes'
72
70
  require 'killbill_client/models/gen/unit_usage_record_attributes'
73
71
  require 'killbill_client/models/gen/usage_record_attributes'
@@ -36,14 +36,15 @@ module KillBillClient
36
36
  attribute :product_name
37
37
  attribute :product_category
38
38
  attribute :billing_period
39
+ attribute :phase_type
39
40
  attribute :price_list
41
+ attribute :state
42
+ attribute :source_type
40
43
  attribute :cancelled_date
41
44
  attribute :charged_through_date
42
45
  attribute :billing_start_date
43
46
  attribute :billing_end_date
44
47
  attribute :events
45
- attribute :new_events
46
- attribute :deleted_events
47
48
  attribute :audit_logs
48
49
  end
49
50
  end
@@ -57,6 +57,8 @@ module KillBillClient
57
57
  # @param response [Net::HTTPResponse]
58
58
  def from_response(resource_class, response)
59
59
  case response['Content-Type']
60
+ when nil
61
+ response.body
60
62
  when %r{application/pdf}
61
63
  response.body
62
64
  when %r{text/html}
@@ -2,7 +2,7 @@ module KillBillClient
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 10
5
- PATCH = 3
5
+ PATCH = 4
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
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.10.3
4
+ version: 0.10.4
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-01-16 00:00:00.000000000 Z
11
+ date: 2015-02-17 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
@@ -87,7 +87,6 @@ files:
87
87
  - lib/killbill_client/models/gen/catalog_attributes_simple.rb
88
88
  - lib/killbill_client/models/gen/credit_attributes.rb
89
89
  - lib/killbill_client/models/gen/custom_field_attributes.rb
90
- - lib/killbill_client/models/gen/deleted_event_subscription_attributes.rb
91
90
  - lib/killbill_client/models/gen/event_subscription_attributes.rb
92
91
  - lib/killbill_client/models/gen/gateway_notification_attributes.rb
93
92
  - lib/killbill_client/models/gen/hosted_payment_page_billing_address_attributes.rb
@@ -100,7 +99,6 @@ files:
100
99
  - lib/killbill_client/models/gen/invoice_item_attributes.rb
101
100
  - lib/killbill_client/models/gen/invoice_payment_attributes.rb
102
101
  - lib/killbill_client/models/gen/invoice_payment_transaction_attributes.rb
103
- - lib/killbill_client/models/gen/new_event_subscription_attributes.rb
104
102
  - lib/killbill_client/models/gen/notification_attributes.rb
105
103
  - lib/killbill_client/models/gen/overdue_state_attributes.rb
106
104
  - lib/killbill_client/models/gen/payment_attributes.rb
@@ -168,18 +166,18 @@ licenses:
168
166
  metadata: {}
169
167
  post_install_message:
170
168
  rdoc_options:
171
- - "--exclude"
172
- - "."
169
+ - --exclude
170
+ - .
173
171
  require_paths:
174
172
  - lib
175
173
  required_ruby_version: !ruby/object:Gem::Requirement
176
174
  requirements:
177
- - - ">="
175
+ - - ! '>='
178
176
  - !ruby/object:Gem::Version
179
177
  version: 1.8.6
180
178
  required_rubygems_version: !ruby/object:Gem::Requirement
181
179
  requirements:
182
- - - ">="
180
+ - - ! '>='
183
181
  - !ruby/object:Gem::Version
184
182
  version: '0'
185
183
  requirements: []
@@ -1,42 +0,0 @@
1
- #############################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 Groupon, Inc. #
5
- # Copyright 2014 The Billing Project, LLC #
6
- # #
7
- # The Billing Project licenses this file to you under the Apache License, version 2.0 #
8
- # (the "License"); you may not use this file except in compliance with the #
9
- # License. You may obtain a copy of the License at: #
10
- # #
11
- # http://www.apache.org/licenses/LICENSE-2.0 #
12
- # #
13
- # Unless required by applicable law or agreed to in writing, software #
14
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
15
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
16
- # License for the specific language governing permissions and limitations #
17
- # under the License. #
18
- # #
19
- #############################################################################################
20
-
21
-
22
- #
23
- # DO NOT EDIT!!!
24
- # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
25
- #
26
-
27
-
28
- module KillBillClient
29
- module Model
30
- class DeletedEventSubscriptionAttributes < Resource
31
- attribute :event_id
32
- attribute :billing_period
33
- attribute :requested_date
34
- attribute :effective_date
35
- attribute :product
36
- attribute :price_list
37
- attribute :event_type
38
- attribute :phase
39
- attribute :audit_logs
40
- end
41
- end
42
- end
@@ -1,40 +0,0 @@
1
- #############################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 Groupon, Inc. #
5
- # Copyright 2014 The Billing Project, LLC #
6
- # #
7
- # The Billing Project licenses this file to you under the Apache License, version 2.0 #
8
- # (the "License"); you may not use this file except in compliance with the #
9
- # License. You may obtain a copy of the License at: #
10
- # #
11
- # http://www.apache.org/licenses/LICENSE-2.0 #
12
- # #
13
- # Unless required by applicable law or agreed to in writing, software #
14
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
15
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
16
- # License for the specific language governing permissions and limitations #
17
- # under the License. #
18
- # #
19
- #############################################################################################
20
-
21
-
22
- #
23
- # DO NOT EDIT!!!
24
- # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
25
- #
26
-
27
-
28
- module KillBillClient
29
- module Model
30
- class NewEventSubscriptionAttributes < Resource
31
- attribute :billing_period
32
- attribute :requested_date
33
- attribute :product
34
- attribute :price_list
35
- attribute :event_type
36
- attribute :phase
37
- attribute :audit_logs
38
- end
39
- end
40
- end