killbill-client 0.7.4 → 0.8.0
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 +13 -5
- data/killbill_client.gemspec +1 -1
- data/lib/killbill_client/api/net_http_adapter.rb +35 -1
- data/lib/killbill_client/models/gen/account_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/account_email_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/account_timeline_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/audit_log_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/billing_exception_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/bundle_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/bundle_timeline_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/catalog_attributes_simple.rb +19 -18
- data/lib/killbill_client/models/gen/credit_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/custom_field_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/deleted_event_subscription_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/event_subscription_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/gateway_notification_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/hosted_payment_page_billing_address_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/hosted_payment_page_customer_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/hosted_payment_page_fields_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/hosted_payment_page_form_descriptor_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/invoice_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/invoice_email_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/invoice_item_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/invoice_payment_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/invoice_payment_transaction_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/new_event_subscription_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/notification_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/overdue_state_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/payment_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/payment_method_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/payment_method_plugin_detail_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/payment_transaction_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/phase_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/plan_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/plan_detail_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/plugin_property_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/price_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/product_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/{direct_payment_attributes.rb → profiling_data_attributes.rb} +21 -32
- data/lib/killbill_client/models/gen/profiling_data_attributes_item.rb +37 -0
- data/lib/killbill_client/models/gen/require_gen.rb +26 -19
- data/lib/killbill_client/models/gen/{usage_attributes.rb → rolled_up_unit_attributes.rb} +20 -22
- data/lib/killbill_client/models/gen/rolled_up_usage_attributes.rb +37 -0
- data/lib/killbill_client/models/gen/session_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/stack_trace_element_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/subject_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/subscription_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/subscription_usage_record_attributes.rb +35 -0
- data/lib/killbill_client/models/gen/tag_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/tag_definition_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/tenant_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/tenant_key_attributes.rb +19 -18
- data/lib/killbill_client/models/gen/unit_usage_record_attributes.rb +35 -0
- data/lib/killbill_client/models/gen/{direct_transaction_attributes.rb → usage_record_attributes.rb} +21 -33
- data/lib/killbill_client/models/models.rb +2 -1
- data/lib/killbill_client/models/resource.rb +1 -0
- data/lib/killbill_client/models/rolled_up_usage.rb +30 -0
- data/lib/killbill_client/models/{usage.rb → usage_record.rb} +9 -5
- data/lib/killbill_client/version.rb +2 -2
- data/spec/killbill_client/remote/model_spec.rb +1 -1
- metadata +25 -20
@@ -1,21 +1,22 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# Copyright 2010-2013 Ning, Inc.
|
4
|
-
# Copyright 2014
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
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
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
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
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
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
|
#
|
@@ -0,0 +1,35 @@
|
|
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 SubscriptionUsageRecordAttributes < Resource
|
31
|
+
attribute :subscription_id
|
32
|
+
attribute :unit_usage_records
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -1,21 +1,22 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# Copyright 2010-2013 Ning, Inc.
|
4
|
-
# Copyright 2014
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
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
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
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
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
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
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
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
|
#
|
@@ -0,0 +1,35 @@
|
|
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 UnitUsageRecordAttributes < Resource
|
31
|
+
attribute :unit_type
|
32
|
+
attribute :usage_records
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/killbill_client/models/gen/{direct_transaction_attributes.rb → usage_record_attributes.rb}
RENAMED
@@ -1,21 +1,22 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# Copyright 2010-2013 Ning, Inc.
|
4
|
-
# Copyright 2014
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
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
|
#
|
@@ -26,22 +27,9 @@
|
|
26
27
|
|
27
28
|
module KillBillClient
|
28
29
|
module Model
|
29
|
-
class
|
30
|
-
attribute :
|
31
|
-
attribute :transaction_external_key
|
32
|
-
attribute :payment_id
|
33
|
-
attribute :payment_external_key
|
34
|
-
attribute :transaction_type
|
30
|
+
class UsageRecordAttributes < Resource
|
31
|
+
attribute :record_date
|
35
32
|
attribute :amount
|
36
|
-
attribute :currency
|
37
|
-
attribute :effective_date
|
38
|
-
attribute :status
|
39
|
-
attribute :gateway_error_code
|
40
|
-
attribute :gateway_error_msg
|
41
|
-
attribute :first_payment_reference_id
|
42
|
-
attribute :second_payment_reference_id
|
43
|
-
attribute :properties
|
44
|
-
attribute :audit_logs
|
45
33
|
end
|
46
34
|
end
|
47
35
|
end
|
@@ -28,7 +28,8 @@ require 'killbill_client/models/security'
|
|
28
28
|
require 'killbill_client/models/tag'
|
29
29
|
require 'killbill_client/models/tag_definition'
|
30
30
|
require 'killbill_client/models/tenant'
|
31
|
-
require 'killbill_client/models/
|
31
|
+
require 'killbill_client/models/usage_record'
|
32
|
+
require 'killbill_client/models/rolled_up_usage'
|
32
33
|
require 'killbill_client/models/account_timeline'
|
33
34
|
|
34
35
|
module KillBillClient
|