killbill-client 0.7.4 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +13 -5
  2. data/killbill_client.gemspec +1 -1
  3. data/lib/killbill_client/api/net_http_adapter.rb +35 -1
  4. data/lib/killbill_client/models/gen/account_attributes.rb +19 -18
  5. data/lib/killbill_client/models/gen/account_email_attributes.rb +19 -18
  6. data/lib/killbill_client/models/gen/account_timeline_attributes.rb +19 -18
  7. data/lib/killbill_client/models/gen/audit_log_attributes.rb +19 -18
  8. data/lib/killbill_client/models/gen/billing_exception_attributes.rb +19 -18
  9. data/lib/killbill_client/models/gen/bundle_attributes.rb +19 -18
  10. data/lib/killbill_client/models/gen/bundle_timeline_attributes.rb +19 -18
  11. data/lib/killbill_client/models/gen/catalog_attributes_simple.rb +19 -18
  12. data/lib/killbill_client/models/gen/credit_attributes.rb +19 -18
  13. data/lib/killbill_client/models/gen/custom_field_attributes.rb +19 -18
  14. data/lib/killbill_client/models/gen/deleted_event_subscription_attributes.rb +19 -18
  15. data/lib/killbill_client/models/gen/event_subscription_attributes.rb +19 -18
  16. data/lib/killbill_client/models/gen/gateway_notification_attributes.rb +19 -18
  17. data/lib/killbill_client/models/gen/hosted_payment_page_billing_address_attributes.rb +19 -18
  18. data/lib/killbill_client/models/gen/hosted_payment_page_customer_attributes.rb +19 -18
  19. data/lib/killbill_client/models/gen/hosted_payment_page_fields_attributes.rb +19 -18
  20. data/lib/killbill_client/models/gen/hosted_payment_page_form_descriptor_attributes.rb +19 -18
  21. data/lib/killbill_client/models/gen/invoice_attributes.rb +19 -18
  22. data/lib/killbill_client/models/gen/invoice_email_attributes.rb +19 -18
  23. data/lib/killbill_client/models/gen/invoice_item_attributes.rb +19 -18
  24. data/lib/killbill_client/models/gen/invoice_payment_attributes.rb +19 -18
  25. data/lib/killbill_client/models/gen/invoice_payment_transaction_attributes.rb +19 -18
  26. data/lib/killbill_client/models/gen/new_event_subscription_attributes.rb +19 -18
  27. data/lib/killbill_client/models/gen/notification_attributes.rb +19 -18
  28. data/lib/killbill_client/models/gen/overdue_state_attributes.rb +19 -18
  29. data/lib/killbill_client/models/gen/payment_attributes.rb +19 -18
  30. data/lib/killbill_client/models/gen/payment_method_attributes.rb +19 -18
  31. data/lib/killbill_client/models/gen/payment_method_plugin_detail_attributes.rb +19 -18
  32. data/lib/killbill_client/models/gen/payment_transaction_attributes.rb +19 -18
  33. data/lib/killbill_client/models/gen/phase_attributes.rb +19 -18
  34. data/lib/killbill_client/models/gen/plan_attributes.rb +19 -18
  35. data/lib/killbill_client/models/gen/plan_detail_attributes.rb +19 -18
  36. data/lib/killbill_client/models/gen/plugin_property_attributes.rb +19 -18
  37. data/lib/killbill_client/models/gen/price_attributes.rb +19 -18
  38. data/lib/killbill_client/models/gen/product_attributes.rb +19 -18
  39. data/lib/killbill_client/models/gen/{direct_payment_attributes.rb → profiling_data_attributes.rb} +21 -32
  40. data/lib/killbill_client/models/gen/profiling_data_attributes_item.rb +37 -0
  41. data/lib/killbill_client/models/gen/require_gen.rb +26 -19
  42. data/lib/killbill_client/models/gen/{usage_attributes.rb → rolled_up_unit_attributes.rb} +20 -22
  43. data/lib/killbill_client/models/gen/rolled_up_usage_attributes.rb +37 -0
  44. data/lib/killbill_client/models/gen/session_attributes.rb +19 -18
  45. data/lib/killbill_client/models/gen/stack_trace_element_attributes.rb +19 -18
  46. data/lib/killbill_client/models/gen/subject_attributes.rb +19 -18
  47. data/lib/killbill_client/models/gen/subscription_attributes.rb +19 -18
  48. data/lib/killbill_client/models/gen/subscription_usage_record_attributes.rb +35 -0
  49. data/lib/killbill_client/models/gen/tag_attributes.rb +19 -18
  50. data/lib/killbill_client/models/gen/tag_definition_attributes.rb +19 -18
  51. data/lib/killbill_client/models/gen/tenant_attributes.rb +19 -18
  52. data/lib/killbill_client/models/gen/tenant_key_attributes.rb +19 -18
  53. data/lib/killbill_client/models/gen/unit_usage_record_attributes.rb +35 -0
  54. data/lib/killbill_client/models/gen/{direct_transaction_attributes.rb → usage_record_attributes.rb} +21 -33
  55. data/lib/killbill_client/models/models.rb +2 -1
  56. data/lib/killbill_client/models/resource.rb +1 -0
  57. data/lib/killbill_client/models/rolled_up_usage.rb +30 -0
  58. data/lib/killbill_client/models/{usage.rb → usage_record.rb} +9 -5
  59. data/lib/killbill_client/version.rb +2 -2
  60. data/spec/killbill_client/remote/model_spec.rb +1 -1
  61. metadata +25 -20
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0992b02dde1e9d525fbd5584adba2f7fe5dbdf65
4
- data.tar.gz: 9d0977048feb669160128bca8656a9b78aaba3f8
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NDZjN2ZkNDg3MzM2ZTU0NThjZDVmMzliZDJkMDIxNTQ3ZmNkNDk1OA==
5
+ data.tar.gz: !binary |-
6
+ NzE5Y2Y5ZWU1YjZhZTBiMTUyMTMzMjRjOGFlMDkyNDQ2MzYwYWJjNA==
5
7
  SHA512:
6
- metadata.gz: 04baa8ec89affcfcd53cdf838892b47f58b2724b21ea64bf0a854243ea5dec5206fe25903d155806dd0dcd4199391d01a4dbaf77a4be3fd00ce74ad017484295
7
- data.tar.gz: ebd5845fa75e9ee2325a618b27fe9678d341c3bf366b653130e23013c804bc33c59d89a4cc60b8ac9f292f41e06293b5ed9486cc859432cacc6d794cacdb74d8
8
+ metadata.gz: !binary |-
9
+ OTgxYmM0ZGMzNDkwNjQ1MzNhZTcyMTYzYTUxZjNmNDJkMjg3YWNmOGRmZjdl
10
+ ODk5MTg3NTUwZTg0NGU3M2UzZDUzNTE5YWQxYWI1MmQwNDU4NjEzZGFkMDY0
11
+ NzhmYjk1N2QxMDc2MDUzY2NjOGYwNTAyNmViN2ZkODRmMmU0MTE=
12
+ data.tar.gz: !binary |-
13
+ Mzc0OWI0NDYzZDc0OThiNzYzZjNlYjg5Y2JlMTlhNGVhZjQ3MTkwNGNmMWE2
14
+ NDY5NzhiNjcwMDgwNDYwNzVmNjFmMWYyMTFiYjg1OWQ0OGZmZjhjYzQ2ZDAz
15
+ Yjc1NTBkOTcwYzcxZTQ4OTQyNDNhZjM4NWE1NDYxODhjNTgwNzY=
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
 
40
40
  s.rdoc_options << '--exclude' << '.'
41
41
 
42
- s.add_dependency 'json', '~> 1.8.0'
42
+ s.add_dependency 'json', '>= 1.2.0'
43
43
 
44
44
  s.add_development_dependency 'rake', '>= 10.0.0'
45
45
  s.add_development_dependency 'rspec', '~> 2.12.0'
@@ -1,5 +1,6 @@
1
1
  require 'cgi'
2
2
  require 'net/https'
3
+ require 'json'
3
4
 
4
5
  module KillBillClient
5
6
  class API
@@ -24,6 +25,8 @@ module KillBillClient
24
25
 
25
26
  private
26
27
 
28
+ RE_PATH = /(\/1.0\/kb(?:\/\w+){1,2}\/)\w+-\w+-\w+-\w+-\w+(\/\w+)*/
29
+
27
30
  METHODS = {
28
31
  :head => ::Net::HTTP::Head,
29
32
  :get => ::Net::HTTP::Get,
@@ -39,11 +42,12 @@ module KillBillClient
39
42
 
40
43
  uri = base_uri + URI.escape(relative_uri)
41
44
 
45
+
42
46
  # Plugin properties are passed in the options but we want to send them as query parameters,
43
47
  # so remove with from global hash and insert them under :params
44
48
  plugin_properties = options.delete :pluginProperty
45
49
  if plugin_properties && plugin_properties.size > 0
46
- options[:params][:pluginProperty] = plugin_properties.map { |p| "#{p.key}=#{p.value}"}
50
+ options[:params][:pluginProperty] = plugin_properties.map { |p| "#{p.key}=#{p.value}" }
47
51
  end
48
52
 
49
53
 
@@ -106,6 +110,18 @@ module KillBillClient
106
110
  request['X-Killbill-Comment'] = options[:comment]
107
111
  end
108
112
 
113
+ #
114
+ # Extract profiling data map if it exists and set X-Killbill-Profiling-Req HTTP header
115
+ # (there will be no synchronization done, so if multiple threads are running they should probably
116
+ # pass a per-tread profiling Map)
117
+ #
118
+ cur_thread_profiling_data = nil
119
+ if options[:profilingData]
120
+ request['X-Killbill-Profiling-Req'] = 'JAXRS'
121
+ cur_thread_profiling_data = options[:profilingData]
122
+ end
123
+
124
+
109
125
  http = ::Net::HTTP.new uri.host, uri.port
110
126
  http.use_ssl = uri.scheme == 'https'
111
127
  net_http.each_pair { |key, value| http.send "#{key}=", value }
@@ -124,6 +140,24 @@ module KillBillClient
124
140
  response = http.start { http.request request }
125
141
  code = response.code.to_i
126
142
 
143
+ # Add profiling data if required
144
+ if cur_thread_profiling_data && response.header['X-Killbill-Profiling-Resp']
145
+ profiling_header = JSON.parse response.header['X-Killbill-Profiling-Resp']
146
+ jaxrs_profiling_header = profiling_header['rawData'][0]
147
+ key = nil
148
+ if RE_PATH.match(uri.path)
149
+ second_arg = $2.nil? ? "" : $2
150
+ key = "#{method}:#{$1}uuid#{second_arg}"
151
+ else
152
+ key = "#{method}:#{uri.path}"
153
+ end
154
+ if cur_thread_profiling_data[key].nil?
155
+ cur_thread_profiling_data[key] = []
156
+ end
157
+ cur_thread_profiling_data[key] << jaxrs_profiling_header['durationUsec']
158
+ end
159
+
160
+
127
161
  if KillBillClient.logger
128
162
  #noinspection RubyScope
129
163
  latency = (Time.now - start_time) * 1_000
@@ -1,21 +1,22 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 The Billing Project, LLC #
5
- # #
6
- # The Billing Project licenses this file to you under the Apache License, #
7
- # version 2.0 (the "License"); you may not use this file except in #
8
- # compliance with the License. You may obtain a copy of the License at: #
9
- # #
10
- # http://www.apache.org/licenses/LICENSE-2.0 #
11
- # #
12
- # Unless required by applicable law or agreed to in writing, software #
13
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
- # License for the specific language governing permissions and limitations #
16
- # under the License. #
17
- # #
18
- ###################################################################################
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
+ #############################################################################################
19
20
 
20
21
 
21
22
  #
@@ -1,21 +1,22 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 The Billing Project, LLC #
5
- # #
6
- # The Billing Project licenses this file to you under the Apache License, #
7
- # version 2.0 (the "License"); you may not use this file except in #
8
- # compliance with the License. You may obtain a copy of the License at: #
9
- # #
10
- # http://www.apache.org/licenses/LICENSE-2.0 #
11
- # #
12
- # Unless required by applicable law or agreed to in writing, software #
13
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
- # License for the specific language governing permissions and limitations #
16
- # under the License. #
17
- # #
18
- ###################################################################################
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
+ #############################################################################################
19
20
 
20
21
 
21
22
  #
@@ -1,21 +1,22 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 The Billing Project, LLC #
5
- # #
6
- # The Billing Project licenses this file to you under the Apache License, #
7
- # version 2.0 (the "License"); you may not use this file except in #
8
- # compliance with the License. You may obtain a copy of the License at: #
9
- # #
10
- # http://www.apache.org/licenses/LICENSE-2.0 #
11
- # #
12
- # Unless required by applicable law or agreed to in writing, software #
13
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
- # License for the specific language governing permissions and limitations #
16
- # under the License. #
17
- # #
18
- ###################################################################################
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
+ #############################################################################################
19
20
 
20
21
 
21
22
  #
@@ -1,21 +1,22 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 The Billing Project, LLC #
5
- # #
6
- # The Billing Project licenses this file to you under the Apache License, #
7
- # version 2.0 (the "License"); you may not use this file except in #
8
- # compliance with the License. You may obtain a copy of the License at: #
9
- # #
10
- # http://www.apache.org/licenses/LICENSE-2.0 #
11
- # #
12
- # Unless required by applicable law or agreed to in writing, software #
13
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
- # License for the specific language governing permissions and limitations #
16
- # under the License. #
17
- # #
18
- ###################################################################################
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
+ #############################################################################################
19
20
 
20
21
 
21
22
  #
@@ -1,21 +1,22 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 The Billing Project, LLC #
5
- # #
6
- # The Billing Project licenses this file to you under the Apache License, #
7
- # version 2.0 (the "License"); you may not use this file except in #
8
- # compliance with the License. You may obtain a copy of the License at: #
9
- # #
10
- # http://www.apache.org/licenses/LICENSE-2.0 #
11
- # #
12
- # Unless required by applicable law or agreed to in writing, software #
13
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
- # License for the specific language governing permissions and limitations #
16
- # under the License. #
17
- # #
18
- ###################################################################################
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
+ #############################################################################################
19
20
 
20
21
 
21
22
  #
@@ -1,21 +1,22 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 The Billing Project, LLC #
5
- # #
6
- # The Billing Project licenses this file to you under the Apache License, #
7
- # version 2.0 (the "License"); you may not use this file except in #
8
- # compliance with the License. You may obtain a copy of the License at: #
9
- # #
10
- # http://www.apache.org/licenses/LICENSE-2.0 #
11
- # #
12
- # Unless required by applicable law or agreed to in writing, software #
13
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
- # License for the specific language governing permissions and limitations #
16
- # under the License. #
17
- # #
18
- ###################################################################################
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
+ #############################################################################################
19
20
 
20
21
 
21
22
  #
@@ -1,21 +1,22 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 The Billing Project, LLC #
5
- # #
6
- # The Billing Project licenses this file to you under the Apache License, #
7
- # version 2.0 (the "License"); you may not use this file except in #
8
- # compliance with the License. You may obtain a copy of the License at: #
9
- # #
10
- # http://www.apache.org/licenses/LICENSE-2.0 #
11
- # #
12
- # Unless required by applicable law or agreed to in writing, software #
13
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
- # License for the specific language governing permissions and limitations #
16
- # under the License. #
17
- # #
18
- ###################################################################################
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
+ #############################################################################################
19
20
 
20
21
 
21
22
  #
@@ -1,21 +1,22 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 The Billing Project, LLC #
5
- # #
6
- # The Billing Project licenses this file to you under the Apache License, #
7
- # version 2.0 (the "License"); you may not use this file except in #
8
- # compliance with the License. You may obtain a copy of the License at: #
9
- # #
10
- # http://www.apache.org/licenses/LICENSE-2.0 #
11
- # #
12
- # Unless required by applicable law or agreed to in writing, software #
13
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
- # License for the specific language governing permissions and limitations #
16
- # under the License. #
17
- # #
18
- ###################################################################################
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
+ #############################################################################################
19
20
 
20
21
 
21
22
  #
@@ -1,21 +1,22 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # Copyright 2014 The Billing Project, LLC #
5
- # #
6
- # The Billing Project licenses this file to you under the Apache License, #
7
- # version 2.0 (the "License"); you may not use this file except in #
8
- # compliance with the License. You may obtain a copy of the License at: #
9
- # #
10
- # http://www.apache.org/licenses/LICENSE-2.0 #
11
- # #
12
- # Unless required by applicable law or agreed to in writing, software #
13
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
14
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
15
- # License for the specific language governing permissions and limitations #
16
- # under the License. #
17
- # #
18
- ###################################################################################
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
+ #############################################################################################
19
20
 
20
21
 
21
22
  #