killbill-client 0.3.6 → 0.4.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.
- data/lib/killbill_client/models/account.rb +4 -1
- data/lib/killbill_client/models/bundle.rb +2 -2
- data/lib/killbill_client/models/{event.rb → event_subscription.rb} +1 -1
- data/lib/killbill_client/models/gen/account_attributes.rb +2 -0
- data/lib/killbill_client/models/gen/{bundle_attributes_no_subscriptions.rb → bundle_attributes.rb} +2 -2
- data/lib/killbill_client/models/gen/chargeback_attributes.rb +3 -2
- data/lib/killbill_client/models/gen/credit_attributes.rb +0 -2
- data/lib/killbill_client/models/gen/{subscription_deleted_event_attributes.rb → deleted_event_subscription_attributes.rb} +1 -1
- data/lib/killbill_client/models/gen/{subscription_read_event_attributes.rb → event_subscription_attributes.rb} +1 -1
- data/lib/killbill_client/models/gen/{invoice_attributes_with_bundle_keys.rb → invoice_attributes.rb} +2 -1
- data/lib/killbill_client/models/gen/{invoice_item_attributes_simple.rb → invoice_item_attributes.rb} +1 -1
- data/lib/killbill_client/models/gen/{subscription_new_event_attributes.rb → new_event_subscription_attributes.rb} +1 -1
- data/lib/killbill_client/models/gen/{payment_attributes_with_bundle_keys.rb → payment_attributes.rb} +2 -3
- data/lib/killbill_client/models/gen/require_gen.rb +8 -22
- data/lib/killbill_client/models/gen/{subscription_attributes_no_events.rb → subscription_attributes.rb} +5 -2
- data/lib/killbill_client/models/invoice.rb +1 -1
- data/lib/killbill_client/models/invoice_item.rb +1 -1
- data/lib/killbill_client/models/models.rb +2 -6
- data/lib/killbill_client/models/payment.rb +1 -1
- data/lib/killbill_client/models/{entitlement_no_events.rb → subscription.rb} +23 -10
- data/lib/killbill_client/version.rb +2 -2
- data/spec/killbill_client/model_relation_spec.rb +11 -11
- metadata +13 -31
- data/lib/killbill_client/models/gen/account_attributes_simple.rb +0 -33
- data/lib/killbill_client/models/gen/account_attributes_with_balance.rb +0 -52
- data/lib/killbill_client/models/gen/account_attributes_with_balance_and_cba.rb +0 -53
- data/lib/killbill_client/models/gen/analytics_sanity_attributes.rb +0 -36
- data/lib/killbill_client/models/gen/bundle_attributes_simple.rb +0 -34
- data/lib/killbill_client/models/gen/bundle_attributes_with_subscriptions.rb +0 -35
- data/lib/killbill_client/models/gen/chargeback_collection_attributes.rb +0 -33
- data/lib/killbill_client/models/gen/credit_collection_attributes.rb +0 -33
- data/lib/killbill_client/models/gen/entitlement_attributes_no_events.rb +0 -42
- data/lib/killbill_client/models/gen/entitlement_attributes_simple.rb +0 -36
- data/lib/killbill_client/models/gen/invoice_attributes_simple.rb +0 -42
- data/lib/killbill_client/models/gen/invoice_attributes_with_items.rb +0 -43
- data/lib/killbill_client/models/gen/payment_attributes_simple.rb +0 -47
- data/lib/killbill_client/models/gen/subscription_attributes_with_events.rb +0 -39
- data/lib/killbill_client/models/subscription_deleted_event.rb +0 -6
- data/lib/killbill_client/models/subscription_event.rb +0 -9
- data/lib/killbill_client/models/subscription_new_event.rb +0 -6
- data/lib/killbill_client/models/subscription_no_events.rb +0 -26
@@ -1,6 +1,9 @@
|
|
1
1
|
module KillBillClient
|
2
2
|
module Model
|
3
|
-
class Account <
|
3
|
+
class Account < AccountAttributes
|
4
|
+
|
5
|
+
has_many :audit_logs, KillBillClient::Model::AuditLog
|
6
|
+
|
4
7
|
KILLBILL_API_ACCOUNTS_PREFIX = "#{KILLBILL_API_PREFIX}/accounts"
|
5
8
|
|
6
9
|
class << self
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module KillBillClient
|
2
2
|
module Model
|
3
|
-
class Bundle <
|
4
|
-
has_many :subscriptions, KillBillClient::Model::
|
3
|
+
class Bundle < BundleAttributes
|
4
|
+
has_many :subscriptions, KillBillClient::Model::Subscription
|
5
5
|
has_many :audit_logs, KillBillClient::Model::AuditLog
|
6
6
|
end
|
7
7
|
end
|
data/lib/killbill_client/models/gen/{bundle_attributes_no_subscriptions.rb → bundle_attributes.rb}
RENAMED
@@ -25,9 +25,9 @@
|
|
25
25
|
|
26
26
|
module KillBillClient
|
27
27
|
module Model
|
28
|
-
class
|
29
|
-
attribute :bundle_id
|
28
|
+
class BundleAttributes < Resource
|
30
29
|
attribute :account_id
|
30
|
+
attribute :bundle_id
|
31
31
|
attribute :external_key
|
32
32
|
attribute :subscriptions
|
33
33
|
attribute :audit_logs
|
@@ -26,11 +26,12 @@
|
|
26
26
|
module KillBillClient
|
27
27
|
module Model
|
28
28
|
class ChargebackAttributes < Resource
|
29
|
+
attribute :account_id
|
29
30
|
attribute :requested_date
|
30
31
|
attribute :effective_date
|
31
|
-
attribute :
|
32
|
+
attribute :amount
|
32
33
|
attribute :payment_id
|
33
|
-
attribute :
|
34
|
+
attribute :currency
|
34
35
|
attribute :audit_logs
|
35
36
|
end
|
36
37
|
end
|
data/lib/killbill_client/models/gen/{invoice_attributes_with_bundle_keys.rb → invoice_attributes.rb}
RENAMED
@@ -25,7 +25,7 @@
|
|
25
25
|
|
26
26
|
module KillBillClient
|
27
27
|
module Model
|
28
|
-
class
|
28
|
+
class InvoiceAttributes < Resource
|
29
29
|
attribute :amount
|
30
30
|
attribute :currency
|
31
31
|
attribute :credit_adj
|
@@ -38,6 +38,7 @@ module KillBillClient
|
|
38
38
|
attribute :account_id
|
39
39
|
attribute :external_bundle_keys
|
40
40
|
attribute :credits
|
41
|
+
attribute :items
|
41
42
|
attribute :audit_logs
|
42
43
|
end
|
43
44
|
end
|
data/lib/killbill_client/models/gen/{payment_attributes_with_bundle_keys.rb → payment_attributes.rb}
RENAMED
@@ -25,12 +25,13 @@
|
|
25
25
|
|
26
26
|
module KillBillClient
|
27
27
|
module Model
|
28
|
-
class
|
28
|
+
class PaymentAttributes < Resource
|
29
29
|
attribute :amount
|
30
30
|
attribute :paid_amount
|
31
31
|
attribute :account_id
|
32
32
|
attribute :invoice_id
|
33
33
|
attribute :payment_id
|
34
|
+
attribute :payment_number
|
34
35
|
attribute :payment_method_id
|
35
36
|
attribute :requested_date
|
36
37
|
attribute :effective_date
|
@@ -39,8 +40,6 @@ module KillBillClient
|
|
39
40
|
attribute :status
|
40
41
|
attribute :gateway_error_code
|
41
42
|
attribute :gateway_error_msg
|
42
|
-
attribute :ext_first_payment_id_ref
|
43
|
-
attribute :ext_second_payment_id_ref
|
44
43
|
attribute :external_bundle_keys
|
45
44
|
attribute :refunds
|
46
45
|
attribute :chargebacks
|
@@ -25,49 +25,35 @@
|
|
25
25
|
|
26
26
|
require 'killbill_client/models/gen/account_email_attributes'
|
27
27
|
require 'killbill_client/models/gen/account_attributes'
|
28
|
-
require 'killbill_client/models/gen/account_attributes_simple'
|
29
|
-
require 'killbill_client/models/gen/account_attributes_with_balance'
|
30
|
-
require 'killbill_client/models/gen/account_attributes_with_balance_and_cba'
|
31
28
|
require 'killbill_client/models/gen/account_timeline_attributes'
|
32
|
-
require 'killbill_client/models/gen/analytics_sanity_attributes'
|
33
29
|
require 'killbill_client/models/gen/audit_log_attributes'
|
34
30
|
require 'killbill_client/models/gen/stack_trace_element_attributes'
|
35
31
|
require 'killbill_client/models/gen/billing_exception_attributes'
|
36
|
-
require 'killbill_client/models/gen/
|
37
|
-
require 'killbill_client/models/gen/bundle_attributes_simple'
|
38
|
-
require 'killbill_client/models/gen/bundle_attributes_with_subscriptions'
|
32
|
+
require 'killbill_client/models/gen/bundle_attributes'
|
39
33
|
require 'killbill_client/models/gen/bundle_timeline_attributes'
|
40
34
|
require 'killbill_client/models/gen/product_attributes'
|
41
35
|
require 'killbill_client/models/gen/plan_attributes'
|
42
36
|
require 'killbill_client/models/gen/phase_attributes'
|
43
37
|
require 'killbill_client/models/gen/price_attributes'
|
44
38
|
require 'killbill_client/models/gen/catalog_attributes_simple'
|
45
|
-
require 'killbill_client/models/gen/chargeback_collection_attributes'
|
46
39
|
require 'killbill_client/models/gen/chargeback_attributes'
|
47
|
-
require 'killbill_client/models/gen/credit_collection_attributes'
|
48
40
|
require 'killbill_client/models/gen/credit_attributes'
|
49
41
|
require 'killbill_client/models/gen/custom_field_attributes'
|
50
|
-
require 'killbill_client/models/gen/entitlement_attributes_no_events'
|
51
|
-
require 'killbill_client/models/gen/entitlement_attributes_simple'
|
52
42
|
require 'killbill_client/models/gen/invoice_email_attributes'
|
53
|
-
require 'killbill_client/models/gen/
|
54
|
-
require 'killbill_client/models/gen/
|
55
|
-
require 'killbill_client/models/gen/invoice_attributes_with_bundle_keys'
|
56
|
-
require 'killbill_client/models/gen/invoice_attributes_with_items'
|
43
|
+
require 'killbill_client/models/gen/invoice_item_attributes'
|
44
|
+
require 'killbill_client/models/gen/invoice_attributes'
|
57
45
|
require 'killbill_client/models/gen/notification_attributes'
|
58
46
|
require 'killbill_client/models/gen/overdue_state_attributes'
|
59
|
-
require 'killbill_client/models/gen/
|
60
|
-
require 'killbill_client/models/gen/payment_attributes_with_bundle_keys'
|
47
|
+
require 'killbill_client/models/gen/payment_attributes'
|
61
48
|
require 'killbill_client/models/gen/payment_method_plugin_detail_attributes'
|
62
49
|
require 'killbill_client/models/gen/payment_method_properties'
|
63
50
|
require 'killbill_client/models/gen/payment_method_attributes'
|
64
51
|
require 'killbill_client/models/gen/plan_detail_attributes'
|
65
52
|
require 'killbill_client/models/gen/refund_attributes'
|
66
|
-
require 'killbill_client/models/gen/
|
67
|
-
require 'killbill_client/models/gen/
|
68
|
-
require 'killbill_client/models/gen/
|
69
|
-
require 'killbill_client/models/gen/
|
70
|
-
require 'killbill_client/models/gen/subscription_attributes_with_events'
|
53
|
+
require 'killbill_client/models/gen/event_subscription_attributes'
|
54
|
+
require 'killbill_client/models/gen/deleted_event_subscription_attributes'
|
55
|
+
require 'killbill_client/models/gen/new_event_subscription_attributes'
|
56
|
+
require 'killbill_client/models/gen/subscription_attributes'
|
71
57
|
require 'killbill_client/models/gen/tag_definition_attributes'
|
72
58
|
require 'killbill_client/models/gen/tag_attributes'
|
73
59
|
require 'killbill_client/models/gen/tenant_attributes'
|
@@ -25,7 +25,7 @@
|
|
25
25
|
|
26
26
|
module KillBillClient
|
27
27
|
module Model
|
28
|
-
class
|
28
|
+
class SubscriptionAttributes < Resource
|
29
29
|
attribute :account_id
|
30
30
|
attribute :bundle_id
|
31
31
|
attribute :subscription_id
|
@@ -36,10 +36,13 @@ module KillBillClient
|
|
36
36
|
attribute :billing_period
|
37
37
|
attribute :price_list
|
38
38
|
attribute :cancelled_date
|
39
|
-
attribute :audit_logs
|
40
39
|
attribute :charged_through_date
|
41
40
|
attribute :billing_start_date
|
42
41
|
attribute :billing_end_date
|
42
|
+
attribute :events
|
43
|
+
attribute :new_events
|
44
|
+
attribute :deleted_events
|
45
|
+
attribute :audit_logs
|
43
46
|
end
|
44
47
|
end
|
45
48
|
end
|
@@ -4,15 +4,11 @@ require 'killbill_client/models/resources'
|
|
4
4
|
require 'killbill_client/models/gen/require_gen'
|
5
5
|
|
6
6
|
require 'killbill_client/models/audit_log'
|
7
|
-
require 'killbill_client/models/
|
7
|
+
require 'killbill_client/models/event_subscription'
|
8
8
|
require 'killbill_client/models/credit'
|
9
9
|
require 'killbill_client/models/invoice_item'
|
10
|
-
require 'killbill_client/models/subscription_deleted_event'
|
11
|
-
require 'killbill_client/models/subscription_new_event'
|
12
10
|
require 'killbill_client/models/chargeback'
|
13
|
-
require 'killbill_client/models/
|
14
|
-
require 'killbill_client/models/entitlement_no_events'
|
15
|
-
require 'killbill_client/models/subscription_no_events'
|
11
|
+
require 'killbill_client/models/subscription'
|
16
12
|
require 'killbill_client/models/bundle'
|
17
13
|
require 'killbill_client/models/refund'
|
18
14
|
require 'killbill_client/models/account'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module KillBillClient
|
2
2
|
module Model
|
3
|
-
class Payment <
|
3
|
+
class Payment < PaymentAttributes
|
4
4
|
has_many :refunds, KillBillClient::Model::Refund
|
5
5
|
has_many :chargebacks, KillBillClient::Model::Chargeback
|
6
6
|
has_many :audit_logs, KillBillClient::Model::AuditLog
|
@@ -1,12 +1,24 @@
|
|
1
1
|
module KillBillClient
|
2
2
|
module Model
|
3
|
-
class
|
3
|
+
class Subscription < SubscriptionAttributes
|
4
|
+
|
5
|
+
has_many :events, KillBillClient::Model::EventSubscription
|
4
6
|
|
5
7
|
KILLBILL_API_ENTITLEMENT_PREFIX = "#{KILLBILL_API_PREFIX}/entitlements"
|
6
8
|
|
9
|
+
KILLBILL_API_BUNDLE_PREFIX = "#{KILLBILL_API_PREFIX}/bundles"
|
10
|
+
|
7
11
|
class << self
|
8
|
-
|
9
|
-
|
12
|
+
|
13
|
+
|
14
|
+
def find_by_id(subscription_id, options = {})
|
15
|
+
get "#{KILLBILL_API_ENTITLEMENT_PREFIX}/#{subscription_id}",
|
16
|
+
{},
|
17
|
+
options
|
18
|
+
end
|
19
|
+
|
20
|
+
def find_by_bundle_id(bundle_id, options = {})
|
21
|
+
get "#{KILLBILL_API_BUNDLE_PREFIX}/#{bundle_id}/subscriptions",
|
10
22
|
{},
|
11
23
|
options
|
12
24
|
end
|
@@ -36,7 +48,7 @@ module KillBillClient
|
|
36
48
|
# @ call_completion : whether the call should wait for invoice/payment to be completed before calls return
|
37
49
|
#
|
38
50
|
def change_plan(input, user = nil, reason = nil, comment = nil,
|
39
|
-
|
51
|
+
requested_date = nil, billing_policy = nil, call_completion = false,options = {})
|
40
52
|
|
41
53
|
params = {}
|
42
54
|
params[:callCompletion] = call_completion
|
@@ -68,13 +80,14 @@ module KillBillClient
|
|
68
80
|
params[:useRequestedDateForBilling] = use_requested_date_for_billing unless use_requested_date_for_billing.nil?
|
69
81
|
|
70
82
|
return self.class.delete "#{KILLBILL_API_ENTITLEMENT_PREFIX}/#{@subscription_id}",
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
83
|
+
params,
|
84
|
+
{
|
85
|
+
:user => user,
|
86
|
+
:reason => reason,
|
87
|
+
:comment => comment,
|
88
|
+
}.merge(options)
|
77
89
|
end
|
90
|
+
|
78
91
|
end
|
79
92
|
end
|
80
93
|
end
|
@@ -33,39 +33,39 @@ describe KillBillClient::Model::Resource do
|
|
33
33
|
it 'should test has_many property' do
|
34
34
|
#test event has many audit_logs
|
35
35
|
#has_many :audit_logs, KillBillClient::Model::AuditLog
|
36
|
-
#expected {"KillBillClient::Model::
|
36
|
+
#expected {"KillBillClient::Model::SubscriptionEvent"=>{:audit_logs=>{:type=>KillBillClient::Model::AuditLog, :cardinality=>:many}}}
|
37
37
|
|
38
|
-
test_var = KillBillClient::Model::
|
38
|
+
test_var = KillBillClient::Model::EventSubscription.class_variable_defined? class_var_name
|
39
39
|
test_var.should_not be_false
|
40
40
|
|
41
|
-
var = KillBillClient::Model::
|
41
|
+
var = KillBillClient::Model::EventSubscription.class_variable_get class_var_name
|
42
42
|
var.size.should > 0
|
43
|
-
var.should have_key "KillBillClient::Model::
|
44
|
-
var["KillBillClient::Model::
|
43
|
+
var.should have_key "KillBillClient::Model::Subscription"
|
44
|
+
var["KillBillClient::Model::Subscription"].should have_key :events
|
45
45
|
|
46
|
-
attr = var["KillBillClient::Model::
|
46
|
+
attr = var["KillBillClient::Model::Subscription"][:events]
|
47
47
|
|
48
48
|
attr.should have_key :type
|
49
49
|
attr.should have_key :cardinality
|
50
50
|
|
51
|
-
attr[:type].should == KillBillClient::Model::
|
51
|
+
attr[:type].should == KillBillClient::Model::EventSubscription
|
52
52
|
attr[:cardinality].should == :many #has many
|
53
53
|
|
54
54
|
#should also be accessible by attr_accessors
|
55
55
|
|
56
|
-
methods = KillBillClient::Model::
|
56
|
+
methods = KillBillClient::Model::EventSubscription.instance_methods
|
57
57
|
methods.should include :audit_logs # attr_reader
|
58
58
|
methods.should include :audit_logs= #attr_writer
|
59
59
|
end
|
60
60
|
|
61
61
|
it 'should create alias attr accessors' do
|
62
|
-
KillBillClient::Model::
|
62
|
+
KillBillClient::Model::EventSubscription.create_alias :alias_date, :requested_dt
|
63
63
|
|
64
|
-
methods = KillBillClient::Model::
|
64
|
+
methods = KillBillClient::Model::EventSubscription.instance_methods
|
65
65
|
methods.should include :alias_date
|
66
66
|
methods.should include :alias_date=
|
67
67
|
|
68
|
-
evt = KillBillClient::Model::
|
68
|
+
evt = KillBillClient::Model::EventSubscription.new
|
69
69
|
evt.alias_date = "devaroop"
|
70
70
|
evt.requested_dt.should == "devaroop"
|
71
71
|
evt.alias_date.should == "devaroop"
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -65,38 +65,27 @@ files:
|
|
65
65
|
- lib/killbill_client/models/bundle.rb
|
66
66
|
- lib/killbill_client/models/chargeback.rb
|
67
67
|
- lib/killbill_client/models/credit.rb
|
68
|
-
- lib/killbill_client/models/
|
69
|
-
- lib/killbill_client/models/event.rb
|
68
|
+
- lib/killbill_client/models/event_subscription.rb
|
70
69
|
- lib/killbill_client/models/gen/account_attributes.rb
|
71
|
-
- lib/killbill_client/models/gen/account_attributes_simple.rb
|
72
|
-
- lib/killbill_client/models/gen/account_attributes_with_balance.rb
|
73
|
-
- lib/killbill_client/models/gen/account_attributes_with_balance_and_cba.rb
|
74
70
|
- lib/killbill_client/models/gen/account_email_attributes.rb
|
75
71
|
- lib/killbill_client/models/gen/account_timeline_attributes.rb
|
76
|
-
- lib/killbill_client/models/gen/analytics_sanity_attributes.rb
|
77
72
|
- lib/killbill_client/models/gen/audit_log_attributes.rb
|
78
73
|
- lib/killbill_client/models/gen/billing_exception_attributes.rb
|
79
|
-
- lib/killbill_client/models/gen/
|
80
|
-
- lib/killbill_client/models/gen/bundle_attributes_simple.rb
|
81
|
-
- lib/killbill_client/models/gen/bundle_attributes_with_subscriptions.rb
|
74
|
+
- lib/killbill_client/models/gen/bundle_attributes.rb
|
82
75
|
- lib/killbill_client/models/gen/bundle_timeline_attributes.rb
|
83
76
|
- lib/killbill_client/models/gen/catalog_attributes_simple.rb
|
84
77
|
- lib/killbill_client/models/gen/chargeback_attributes.rb
|
85
|
-
- lib/killbill_client/models/gen/chargeback_collection_attributes.rb
|
86
78
|
- lib/killbill_client/models/gen/credit_attributes.rb
|
87
|
-
- lib/killbill_client/models/gen/credit_collection_attributes.rb
|
88
79
|
- lib/killbill_client/models/gen/custom_field_attributes.rb
|
89
|
-
- lib/killbill_client/models/gen/
|
90
|
-
- lib/killbill_client/models/gen/
|
91
|
-
- lib/killbill_client/models/gen/
|
92
|
-
- lib/killbill_client/models/gen/invoice_attributes_with_bundle_keys.rb
|
93
|
-
- lib/killbill_client/models/gen/invoice_attributes_with_items.rb
|
80
|
+
- lib/killbill_client/models/gen/deleted_event_subscription_attributes.rb
|
81
|
+
- lib/killbill_client/models/gen/event_subscription_attributes.rb
|
82
|
+
- lib/killbill_client/models/gen/invoice_attributes.rb
|
94
83
|
- lib/killbill_client/models/gen/invoice_email_attributes.rb
|
95
|
-
- lib/killbill_client/models/gen/
|
84
|
+
- lib/killbill_client/models/gen/invoice_item_attributes.rb
|
85
|
+
- lib/killbill_client/models/gen/new_event_subscription_attributes.rb
|
96
86
|
- lib/killbill_client/models/gen/notification_attributes.rb
|
97
87
|
- lib/killbill_client/models/gen/overdue_state_attributes.rb
|
98
|
-
- lib/killbill_client/models/gen/
|
99
|
-
- lib/killbill_client/models/gen/payment_attributes_with_bundle_keys.rb
|
88
|
+
- lib/killbill_client/models/gen/payment_attributes.rb
|
100
89
|
- lib/killbill_client/models/gen/payment_method_attributes.rb
|
101
90
|
- lib/killbill_client/models/gen/payment_method_plugin_detail_attributes.rb
|
102
91
|
- lib/killbill_client/models/gen/payment_method_properties.rb
|
@@ -108,11 +97,7 @@ files:
|
|
108
97
|
- lib/killbill_client/models/gen/refund_attributes.rb
|
109
98
|
- lib/killbill_client/models/gen/require_gen.rb
|
110
99
|
- lib/killbill_client/models/gen/stack_trace_element_attributes.rb
|
111
|
-
- lib/killbill_client/models/gen/
|
112
|
-
- lib/killbill_client/models/gen/subscription_attributes_with_events.rb
|
113
|
-
- lib/killbill_client/models/gen/subscription_deleted_event_attributes.rb
|
114
|
-
- lib/killbill_client/models/gen/subscription_new_event_attributes.rb
|
115
|
-
- lib/killbill_client/models/gen/subscription_read_event_attributes.rb
|
100
|
+
- lib/killbill_client/models/gen/subscription_attributes.rb
|
116
101
|
- lib/killbill_client/models/gen/tag_attributes.rb
|
117
102
|
- lib/killbill_client/models/gen/tag_definition_attributes.rb
|
118
103
|
- lib/killbill_client/models/gen/tenant_attributes.rb
|
@@ -126,10 +111,7 @@ files:
|
|
126
111
|
- lib/killbill_client/models/resource.rb
|
127
112
|
- lib/killbill_client/models/resources.rb
|
128
113
|
- lib/killbill_client/models/security.rb
|
129
|
-
- lib/killbill_client/models/
|
130
|
-
- lib/killbill_client/models/subscription_event.rb
|
131
|
-
- lib/killbill_client/models/subscription_new_event.rb
|
132
|
-
- lib/killbill_client/models/subscription_no_events.rb
|
114
|
+
- lib/killbill_client/models/subscription.rb
|
133
115
|
- lib/killbill_client/models/tag.rb
|
134
116
|
- lib/killbill_client/models/tag_definition.rb
|
135
117
|
- lib/killbill_client/models/tenant.rb
|
@@ -164,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
146
|
version: '0'
|
165
147
|
segments:
|
166
148
|
- 0
|
167
|
-
hash:
|
149
|
+
hash: 950878455458032705
|
168
150
|
requirements: []
|
169
151
|
rubyforge_project:
|
170
152
|
rubygems_version: 1.8.25
|
@@ -1,33 +0,0 @@
|
|
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 AccountAttributesSimple < Resource
|
29
|
-
attribute :account_id
|
30
|
-
attribute :external_key
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,52 +0,0 @@
|
|
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 AccountAttributesWithBalance < Resource
|
29
|
-
attribute :account_id
|
30
|
-
attribute :name
|
31
|
-
attribute :first_name_length
|
32
|
-
attribute :external_key
|
33
|
-
attribute :email
|
34
|
-
attribute :bill_cycle_day_local
|
35
|
-
attribute :currency
|
36
|
-
attribute :payment_method_id
|
37
|
-
attribute :time_zone
|
38
|
-
attribute :address1
|
39
|
-
attribute :address2
|
40
|
-
attribute :postal_code
|
41
|
-
attribute :company
|
42
|
-
attribute :city
|
43
|
-
attribute :state
|
44
|
-
attribute :country
|
45
|
-
attribute :locale
|
46
|
-
attribute :phone
|
47
|
-
attribute :is_migrated
|
48
|
-
attribute :is_notified_for_invoices
|
49
|
-
attribute :account_balance
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
@@ -1,53 +0,0 @@
|
|
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 AccountAttributesWithBalanceAndCBA < Resource
|
29
|
-
attribute :account_id
|
30
|
-
attribute :name
|
31
|
-
attribute :first_name_length
|
32
|
-
attribute :external_key
|
33
|
-
attribute :email
|
34
|
-
attribute :bill_cycle_day_local
|
35
|
-
attribute :currency
|
36
|
-
attribute :payment_method_id
|
37
|
-
attribute :time_zone
|
38
|
-
attribute :address1
|
39
|
-
attribute :address2
|
40
|
-
attribute :postal_code
|
41
|
-
attribute :company
|
42
|
-
attribute :city
|
43
|
-
attribute :state
|
44
|
-
attribute :country
|
45
|
-
attribute :locale
|
46
|
-
attribute :phone
|
47
|
-
attribute :is_migrated
|
48
|
-
attribute :is_notified_for_invoices
|
49
|
-
attribute :account_balance
|
50
|
-
attribute :account_cba
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,36 +0,0 @@
|
|
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 AnalyticsSanityAttributes < Resource
|
29
|
-
attribute :check_subscription
|
30
|
-
attribute :check_invoice
|
31
|
-
attribute :check_payment
|
32
|
-
attribute :check_tag
|
33
|
-
attribute :check_consistency
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,34 +0,0 @@
|
|
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 BundleAttributesSimple < Resource
|
29
|
-
attribute :bundle_id
|
30
|
-
attribute :external_key
|
31
|
-
attribute :audit_logs
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,35 +0,0 @@
|
|
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 BundleAttributesWithSubscriptions < Resource
|
29
|
-
attribute :bundle_id
|
30
|
-
attribute :external_key
|
31
|
-
attribute :subscriptions
|
32
|
-
attribute :audit_logs
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,33 +0,0 @@
|
|
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 ChargebackCollectionAttributes < Resource
|
29
|
-
attribute :account_id
|
30
|
-
attribute :chargebacks
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,33 +0,0 @@
|
|
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 CreditCollectionAttributes < Resource
|
29
|
-
attribute :account_id
|
30
|
-
attribute :credits
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,42 +0,0 @@
|
|
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 EntitlementAttributesNoEvents < Resource
|
29
|
-
attribute :account_id
|
30
|
-
attribute :bundle_id
|
31
|
-
attribute :subscription_id
|
32
|
-
attribute :external_key
|
33
|
-
attribute :start_date
|
34
|
-
attribute :product_name
|
35
|
-
attribute :product_category
|
36
|
-
attribute :billing_period
|
37
|
-
attribute :price_list
|
38
|
-
attribute :cancelled_date
|
39
|
-
attribute :audit_logs
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -1,36 +0,0 @@
|
|
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 EntitlementAttributesSimple < Resource
|
29
|
-
attribute :account_id
|
30
|
-
attribute :bundle_id
|
31
|
-
attribute :subscription_id
|
32
|
-
attribute :external_key
|
33
|
-
attribute :audit_logs
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,42 +0,0 @@
|
|
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 InvoiceAttributesSimple < Resource
|
29
|
-
attribute :amount
|
30
|
-
attribute :currency
|
31
|
-
attribute :credit_adj
|
32
|
-
attribute :refund_adj
|
33
|
-
attribute :invoice_id
|
34
|
-
attribute :invoice_date
|
35
|
-
attribute :target_date
|
36
|
-
attribute :invoice_number
|
37
|
-
attribute :balance
|
38
|
-
attribute :account_id
|
39
|
-
attribute :audit_logs
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
@@ -1,43 +0,0 @@
|
|
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 InvoiceAttributesWithItems < Resource
|
29
|
-
attribute :amount
|
30
|
-
attribute :currency
|
31
|
-
attribute :credit_adj
|
32
|
-
attribute :refund_adj
|
33
|
-
attribute :invoice_id
|
34
|
-
attribute :invoice_date
|
35
|
-
attribute :target_date
|
36
|
-
attribute :invoice_number
|
37
|
-
attribute :balance
|
38
|
-
attribute :account_id
|
39
|
-
attribute :items
|
40
|
-
attribute :audit_logs
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,47 +0,0 @@
|
|
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 PaymentAttributesSimple < Resource
|
29
|
-
attribute :amount
|
30
|
-
attribute :paid_amount
|
31
|
-
attribute :account_id
|
32
|
-
attribute :invoice_id
|
33
|
-
attribute :payment_id
|
34
|
-
attribute :payment_method_id
|
35
|
-
attribute :requested_date
|
36
|
-
attribute :effective_date
|
37
|
-
attribute :retry_count
|
38
|
-
attribute :currency
|
39
|
-
attribute :status
|
40
|
-
attribute :gateway_error_code
|
41
|
-
attribute :gateway_error_msg
|
42
|
-
attribute :ext_first_payment_id_ref
|
43
|
-
attribute :ext_second_payment_id_ref
|
44
|
-
attribute :audit_logs
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
@@ -1,39 +0,0 @@
|
|
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 SubscriptionAttributesWithEvents < Resource
|
29
|
-
attribute :account_id
|
30
|
-
attribute :bundle_id
|
31
|
-
attribute :entitlement_id
|
32
|
-
attribute :external_key
|
33
|
-
attribute :events
|
34
|
-
attribute :new_events
|
35
|
-
attribute :deleted_events
|
36
|
-
attribute :audit_logs
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,9 +0,0 @@
|
|
1
|
-
module KillBillClient
|
2
|
-
module Model
|
3
|
-
class SubscriptionEvent < SubscriptionAttributesNoEvents
|
4
|
-
has_many :events, KillBillClient::Model::Event
|
5
|
-
has_many :deleted_events, KillBillClient::Model::SubscriptionDeletedEvent
|
6
|
-
has_many :new_events, KillBillClient::Model::SubscriptionNewEvent
|
7
|
-
end
|
8
|
-
end
|
9
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
module KillBillClient
|
2
|
-
module Model
|
3
|
-
class SubscriptionNoEvents < SubscriptionAttributesNoEvents
|
4
|
-
|
5
|
-
KILLBILL_API_SUBSCRIPTIONS_PREFIX = "#{KILLBILL_API_PREFIX}/subscriptions"
|
6
|
-
|
7
|
-
KILLBILL_API_BUNDLE_PREFIX = "#{KILLBILL_API_PREFIX}/bundles"
|
8
|
-
|
9
|
-
class << self
|
10
|
-
def find_by_id(subscription_id, options = {})
|
11
|
-
get "#{KILLBILL_API_SUBSCRIPTIONS_PREFIX}/#{subscription_id}",
|
12
|
-
{},
|
13
|
-
options
|
14
|
-
end
|
15
|
-
|
16
|
-
|
17
|
-
def find_by_bundle_id(bundle_id, options = {})
|
18
|
-
get "#{KILLBILL_API_BUNDLE_PREFIX}/#{bundle_id}/subscriptions",
|
19
|
-
{},
|
20
|
-
options
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|