killbill-client 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/README.md +23 -0
- data/gen_config/model.conf +1 -0
- data/lib/killbill_client/models/account.rb +47 -0
- data/lib/killbill_client/models/gen/{account_attributes_with_balance_and_c_b_a.rb → account_attributes_with_balance_and_cba.rb} +1 -1
- data/lib/killbill_client/models/gen/analytics_sanity_attributes.rb +1 -1
- data/lib/killbill_client/models/gen/{business_overdue_status_attributes.rb → billing_exception_attributes.rb} +7 -7
- data/lib/killbill_client/models/gen/{time_series_data_attributes.rb → price_attributes.rb} +3 -3
- data/lib/killbill_client/models/gen/require_gen.rb +4 -11
- data/lib/killbill_client/models/gen/{business_tag_attributes.rb → stack_trace_element_attributes.rb} +6 -4
- data/lib/killbill_client/models/models.rb +1 -0
- data/lib/killbill_client/models/tag.rb +6 -0
- data/lib/killbill_client/models/tag_definition.rb +23 -0
- data/lib/killbill_client/version.rb +1 -1
- data/spec/killbill_client/remote/model_spec.rb +27 -0
- metadata +15 -29
- data/lib/killbill_client/models/gen/business_account_attributes.rb +0 -41
- data/lib/killbill_client/models/gen/business_field_attributes.rb +0 -35
- data/lib/killbill_client/models/gen/business_invoice_attributes.rb +0 -43
- data/lib/killbill_client/models/gen/business_invoice_item_attributes.rb +0 -46
- data/lib/killbill_client/models/gen/business_invoice_payment_attributes.rb +0 -50
- data/lib/killbill_client/models/gen/business_snapshot_attributes.rb +0 -38
- data/lib/killbill_client/models/gen/business_subscription_transition_attributes.rb +0 -64
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1fb152afe9243696fea3189a25c5639ada554316
|
4
|
+
data.tar.gz: 9b0a59633af847621e851625b644e8848a6d7e0d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 919cc47a13b3a8b4cfe9ff8fe4a8bdd17d91b7f09f46a570e2ea20d0a135fabcc7055eb929298a6bd6df12f84b774393e25f13d5a76136f22632a34a3cf92a75
|
7
|
+
data.tar.gz: 29cdf321a9355f641ad1994c3f2e1fd6442c4e025125819d40a5a88b9a15203a104c38f23b05d63fd978cabcabb94e138774b68eb22c9a1dd185e59b08681ac2
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -6,6 +6,29 @@ killbill-client-ruby
|
|
6
6
|
|
7
7
|
Kill Bill ruby library.
|
8
8
|
|
9
|
+
Examples
|
10
|
+
--------
|
11
|
+
|
12
|
+
The following script will tag a list of accounts with OVERDUE_ENFORCEMENT_OFF and AUTO_PAY_OFF:
|
13
|
+
|
14
|
+
```
|
15
|
+
require 'killbill_client'
|
16
|
+
|
17
|
+
KillBillClient.url = 'http://127.0.0.1:8080'
|
18
|
+
|
19
|
+
AUDIT_USER = 'pierre (via ruby script)'
|
20
|
+
|
21
|
+
File.open(File.dirname(__FILE__) + '/accounts.txt').readlines.map(&:chomp).each do |kb_account_id|
|
22
|
+
account = KillBillClient::Model::Account.find_by_id kb_account_id
|
23
|
+
puts "Current tags for #{account.name} (#{account.account_id}): #{account.tags.map(&:tag_definition_name).join(', ')}"
|
24
|
+
|
25
|
+
account.add_tag 'OVERDUE_ENFORCEMENT_OFF', AUDIT_USER
|
26
|
+
account.add_tag 'AUTO_PAY_OFF', AUDIT_USER
|
27
|
+
|
28
|
+
puts "New tags for #{account.name} (#{account.account_id}): #{account.tags.map(&:tag_definition_name).join(', ')}"
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
9
32
|
Tests
|
10
33
|
-----
|
11
34
|
|
@@ -0,0 +1 @@
|
|
1
|
+
java -cp target/killbill-java-parser-0.0.1-SNAPSHOT.jar com.ning.killbill.KillbillParser -i file:///<KILLBILL_REPO>/jaxrs/src/main/java/com/ -o /tmp/output -t RUBY_CLIENT_API -p com.ning.billing.jaxrs.json
|
@@ -31,6 +31,53 @@ module KillBillClient
|
|
31
31
|
{},
|
32
32
|
Payment
|
33
33
|
end
|
34
|
+
|
35
|
+
def tags(audit = 'NONE')
|
36
|
+
self.class.get "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/tags",
|
37
|
+
{
|
38
|
+
:audit => audit
|
39
|
+
},
|
40
|
+
{},
|
41
|
+
Tag
|
42
|
+
end
|
43
|
+
|
44
|
+
def add_tag(tag_name, user = nil, reason = nil, comment = nil)
|
45
|
+
tag_definition = TagDefinition.find_by_name(tag_name)
|
46
|
+
if tag_definition.nil?
|
47
|
+
tag_definition = TagDefinition.new
|
48
|
+
tag_definition.name = tag_name
|
49
|
+
tag_definition.description = "Tag created for account #{@account_id}"
|
50
|
+
tag_definition = TagDefinition.create(user)
|
51
|
+
end
|
52
|
+
|
53
|
+
created_tag = self.class.post "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/tags",
|
54
|
+
{},
|
55
|
+
{
|
56
|
+
:tagList => tag_definition.id
|
57
|
+
},
|
58
|
+
{
|
59
|
+
:user => user,
|
60
|
+
:reason => reason,
|
61
|
+
:comment => comment,
|
62
|
+
},
|
63
|
+
Tag
|
64
|
+
created_tag.refresh
|
65
|
+
end
|
66
|
+
|
67
|
+
def remove_tag(tag_name, user = nil, reason = nil, comment = nil)
|
68
|
+
tag_definition = TagDefinition.find_by_name(tag_name)
|
69
|
+
return nil if tag_definition.nil?
|
70
|
+
|
71
|
+
self.class.delete "#{KILLBILL_API_ACCOUNTS_PREFIX}/#{account_id}/tags",
|
72
|
+
{
|
73
|
+
:tagList => tag_definition.id
|
74
|
+
},
|
75
|
+
{
|
76
|
+
:user => user,
|
77
|
+
:reason => reason,
|
78
|
+
:comment => comment,
|
79
|
+
}
|
80
|
+
end
|
34
81
|
end
|
35
82
|
end
|
36
83
|
end
|
@@ -25,13 +25,13 @@
|
|
25
25
|
|
26
26
|
module KillBillClient
|
27
27
|
module Model
|
28
|
-
class
|
29
|
-
attribute :
|
30
|
-
attribute :
|
31
|
-
attribute :
|
32
|
-
attribute :
|
33
|
-
attribute :
|
34
|
-
attribute :
|
28
|
+
class BillingExceptionAttributes < Resource
|
29
|
+
attribute :class_name
|
30
|
+
attribute :code
|
31
|
+
attribute :message
|
32
|
+
attribute :cause_class_name
|
33
|
+
attribute :cause_message
|
34
|
+
attribute :stack_trace
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -27,26 +27,20 @@ require 'killbill_client/models/gen/account_email_attributes'
|
|
27
27
|
require 'killbill_client/models/gen/account_attributes'
|
28
28
|
require 'killbill_client/models/gen/account_attributes_simple'
|
29
29
|
require 'killbill_client/models/gen/account_attributes_with_balance'
|
30
|
-
require 'killbill_client/models/gen/
|
30
|
+
require 'killbill_client/models/gen/account_attributes_with_balance_and_cba'
|
31
31
|
require 'killbill_client/models/gen/account_timeline_attributes'
|
32
32
|
require 'killbill_client/models/gen/analytics_sanity_attributes'
|
33
33
|
require 'killbill_client/models/gen/audit_log_attributes'
|
34
|
+
require 'killbill_client/models/gen/stack_trace_element_attributes'
|
35
|
+
require 'killbill_client/models/gen/billing_exception_attributes'
|
34
36
|
require 'killbill_client/models/gen/bundle_attributes_no_subscriptions'
|
35
37
|
require 'killbill_client/models/gen/bundle_attributes_simple'
|
36
38
|
require 'killbill_client/models/gen/bundle_attributes_with_subscriptions'
|
37
39
|
require 'killbill_client/models/gen/bundle_timeline_attributes'
|
38
|
-
require 'killbill_client/models/gen/business_account_attributes'
|
39
|
-
require 'killbill_client/models/gen/business_field_attributes'
|
40
|
-
require 'killbill_client/models/gen/business_invoice_item_attributes'
|
41
|
-
require 'killbill_client/models/gen/business_invoice_attributes'
|
42
|
-
require 'killbill_client/models/gen/business_invoice_payment_attributes'
|
43
|
-
require 'killbill_client/models/gen/business_overdue_status_attributes'
|
44
|
-
require 'killbill_client/models/gen/business_snapshot_attributes'
|
45
|
-
require 'killbill_client/models/gen/business_subscription_transition_attributes'
|
46
|
-
require 'killbill_client/models/gen/business_tag_attributes'
|
47
40
|
require 'killbill_client/models/gen/product_attributes'
|
48
41
|
require 'killbill_client/models/gen/plan_attributes'
|
49
42
|
require 'killbill_client/models/gen/phase_attributes'
|
43
|
+
require 'killbill_client/models/gen/price_attributes'
|
50
44
|
require 'killbill_client/models/gen/catalog_attributes_simple'
|
51
45
|
require 'killbill_client/models/gen/chargeback_collection_attributes'
|
52
46
|
require 'killbill_client/models/gen/chargeback_attributes'
|
@@ -77,4 +71,3 @@ require 'killbill_client/models/gen/tag_definition_attributes'
|
|
77
71
|
require 'killbill_client/models/gen/tag_attributes'
|
78
72
|
require 'killbill_client/models/gen/tenant_attributes'
|
79
73
|
require 'killbill_client/models/gen/tenant_key_attributes'
|
80
|
-
require 'killbill_client/models/gen/time_series_data_attributes'
|
data/lib/killbill_client/models/gen/{business_tag_attributes.rb → stack_trace_element_attributes.rb}
RENAMED
@@ -25,10 +25,12 @@
|
|
25
25
|
|
26
26
|
module KillBillClient
|
27
27
|
module Model
|
28
|
-
class
|
29
|
-
attribute :
|
30
|
-
attribute :
|
31
|
-
attribute :
|
28
|
+
class StackTraceElementAttributes < Resource
|
29
|
+
attribute :class_name
|
30
|
+
attribute :file_name
|
31
|
+
attribute :line_number
|
32
|
+
attribute :method_name
|
33
|
+
attribute :native_method
|
32
34
|
end
|
33
35
|
end
|
34
36
|
end
|
@@ -7,6 +7,7 @@ require 'killbill_client/models/invoice'
|
|
7
7
|
require 'killbill_client/models/invoice_item'
|
8
8
|
require 'killbill_client/models/payment'
|
9
9
|
require 'killbill_client/models/payment_method'
|
10
|
+
require 'killbill_client/models/tag'
|
10
11
|
require 'killbill_client/models/tag_definition'
|
11
12
|
|
12
13
|
module KillBillClient
|
@@ -1,6 +1,29 @@
|
|
1
1
|
module KillBillClient
|
2
2
|
module Model
|
3
3
|
class TagDefinition < TagDefinitionAttributes
|
4
|
+
KILLBILL_API_TAG_DEFINITIONS_PREFIX = "#{KILLBILL_API_PREFIX}/tagDefinitions"
|
5
|
+
|
6
|
+
class << self
|
7
|
+
def all
|
8
|
+
get KILLBILL_API_TAG_DEFINITIONS_PREFIX
|
9
|
+
end
|
10
|
+
|
11
|
+
def find_by_name(name)
|
12
|
+
self.all.select { |tag_definition| tag_definition.name == name }.first
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def create(user = nil, reason = nil, comment = nil)
|
17
|
+
created_tag_definition = self.class.post KILLBILL_API_TAG_DEFINITIONS_PREFIX,
|
18
|
+
to_json,
|
19
|
+
{},
|
20
|
+
{
|
21
|
+
:user => user,
|
22
|
+
:reason => reason,
|
23
|
+
:comment => comment,
|
24
|
+
}
|
25
|
+
created_tag_definition.refresh
|
26
|
+
end
|
4
27
|
end
|
5
28
|
end
|
6
29
|
end
|
@@ -31,6 +31,15 @@ describe KillBillClient::Model do
|
|
31
31
|
account.external_key.should == external_key
|
32
32
|
account.payment_method_id.should be_nil
|
33
33
|
|
34
|
+
# Add/Remove a tag
|
35
|
+
account.tags.size.should == 0
|
36
|
+
account.add_tag('TEST', 'KillBill Spec test')
|
37
|
+
tags = account.tags
|
38
|
+
tags.size.should == 1
|
39
|
+
tags.first.tag_definition_name.should == 'TEST'
|
40
|
+
account.remove_tag('TEST', 'KillBill Spec test')
|
41
|
+
account.tags.size.should == 0
|
42
|
+
|
34
43
|
# Add a payment method
|
35
44
|
pm = KillBillClient::Model::PaymentMethod.new
|
36
45
|
pm.account_id = account.account_id
|
@@ -74,4 +83,22 @@ describe KillBillClient::Model do
|
|
74
83
|
account = KillBillClient::Model::Account.find_by_id account.account_id
|
75
84
|
account.payment_method_id.should be_nil
|
76
85
|
end
|
86
|
+
|
87
|
+
it 'should manipulate tag definitions' do
|
88
|
+
KillBillClient::Model::TagDefinition.all.size.should > 0
|
89
|
+
KillBillClient::Model::TagDefinition.find_by_name('TEST').is_control_tag.should be_true
|
90
|
+
|
91
|
+
tag_definition_name = Time.now.to_i.to_s
|
92
|
+
KillBillClient::Model::TagDefinition.find_by_name(tag_definition_name).should be_nil
|
93
|
+
|
94
|
+
tag_definition = KillBillClient::Model::TagDefinition.new
|
95
|
+
tag_definition.name = tag_definition_name
|
96
|
+
tag_definition.description = 'Tag for unit test'
|
97
|
+
tag_definition.create('KillBill Spec test').id.should_not be_nil
|
98
|
+
|
99
|
+
found_tag_definition = KillBillClient::Model::TagDefinition.find_by_name(tag_definition_name)
|
100
|
+
found_tag_definition.name.should == tag_definition_name
|
101
|
+
found_tag_definition.description.should == tag_definition.description
|
102
|
+
found_tag_definition.is_control_tag.should be_false
|
103
|
+
end
|
77
104
|
end
|
metadata
CHANGED
@@ -1,36 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Killbill core team
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-07-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 10.0.0
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 10.0.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -53,6 +48,7 @@ files:
|
|
53
48
|
- Gemfile
|
54
49
|
- README.md
|
55
50
|
- Rakefile
|
51
|
+
- gen_config/model.conf
|
56
52
|
- killbill_client.gemspec
|
57
53
|
- lib/killbill_client.rb
|
58
54
|
- lib/killbill_client/api/api.rb
|
@@ -62,24 +58,16 @@ files:
|
|
62
58
|
- lib/killbill_client/models/gen/account_attributes.rb
|
63
59
|
- lib/killbill_client/models/gen/account_attributes_simple.rb
|
64
60
|
- lib/killbill_client/models/gen/account_attributes_with_balance.rb
|
65
|
-
- lib/killbill_client/models/gen/
|
61
|
+
- lib/killbill_client/models/gen/account_attributes_with_balance_and_cba.rb
|
66
62
|
- lib/killbill_client/models/gen/account_email_attributes.rb
|
67
63
|
- lib/killbill_client/models/gen/account_timeline_attributes.rb
|
68
64
|
- lib/killbill_client/models/gen/analytics_sanity_attributes.rb
|
69
65
|
- lib/killbill_client/models/gen/audit_log_attributes.rb
|
66
|
+
- lib/killbill_client/models/gen/billing_exception_attributes.rb
|
70
67
|
- lib/killbill_client/models/gen/bundle_attributes_no_subscriptions.rb
|
71
68
|
- lib/killbill_client/models/gen/bundle_attributes_simple.rb
|
72
69
|
- lib/killbill_client/models/gen/bundle_attributes_with_subscriptions.rb
|
73
70
|
- lib/killbill_client/models/gen/bundle_timeline_attributes.rb
|
74
|
-
- lib/killbill_client/models/gen/business_account_attributes.rb
|
75
|
-
- lib/killbill_client/models/gen/business_field_attributes.rb
|
76
|
-
- lib/killbill_client/models/gen/business_invoice_attributes.rb
|
77
|
-
- lib/killbill_client/models/gen/business_invoice_item_attributes.rb
|
78
|
-
- lib/killbill_client/models/gen/business_invoice_payment_attributes.rb
|
79
|
-
- lib/killbill_client/models/gen/business_overdue_status_attributes.rb
|
80
|
-
- lib/killbill_client/models/gen/business_snapshot_attributes.rb
|
81
|
-
- lib/killbill_client/models/gen/business_subscription_transition_attributes.rb
|
82
|
-
- lib/killbill_client/models/gen/business_tag_attributes.rb
|
83
71
|
- lib/killbill_client/models/gen/catalog_attributes_simple.rb
|
84
72
|
- lib/killbill_client/models/gen/chargeback_attributes.rb
|
85
73
|
- lib/killbill_client/models/gen/chargeback_collection_attributes.rb
|
@@ -101,9 +89,11 @@ files:
|
|
101
89
|
- lib/killbill_client/models/gen/phase_attributes.rb
|
102
90
|
- lib/killbill_client/models/gen/plan_attributes.rb
|
103
91
|
- lib/killbill_client/models/gen/plan_detail_attributes.rb
|
92
|
+
- lib/killbill_client/models/gen/price_attributes.rb
|
104
93
|
- lib/killbill_client/models/gen/product_attributes.rb
|
105
94
|
- lib/killbill_client/models/gen/refund_attributes.rb
|
106
95
|
- lib/killbill_client/models/gen/require_gen.rb
|
96
|
+
- lib/killbill_client/models/gen/stack_trace_element_attributes.rb
|
107
97
|
- lib/killbill_client/models/gen/subscription_attributes_no_events.rb
|
108
98
|
- lib/killbill_client/models/gen/subscription_attributes_simple.rb
|
109
99
|
- lib/killbill_client/models/gen/subscription_attributes_with_events.rb
|
@@ -114,13 +104,13 @@ files:
|
|
114
104
|
- lib/killbill_client/models/gen/tag_definition_attributes.rb
|
115
105
|
- lib/killbill_client/models/gen/tenant_attributes.rb
|
116
106
|
- lib/killbill_client/models/gen/tenant_key_attributes.rb
|
117
|
-
- lib/killbill_client/models/gen/time_series_data_attributes.rb
|
118
107
|
- lib/killbill_client/models/invoice.rb
|
119
108
|
- lib/killbill_client/models/invoice_item.rb
|
120
109
|
- lib/killbill_client/models/models.rb
|
121
110
|
- lib/killbill_client/models/payment.rb
|
122
111
|
- lib/killbill_client/models/payment_method.rb
|
123
112
|
- lib/killbill_client/models/resource.rb
|
113
|
+
- lib/killbill_client/models/tag.rb
|
124
114
|
- lib/killbill_client/models/tag_definition.rb
|
125
115
|
- lib/killbill_client/utils.rb
|
126
116
|
- lib/killbill_client/version.rb
|
@@ -132,6 +122,7 @@ files:
|
|
132
122
|
homepage: http://www.killbilling.org
|
133
123
|
licenses:
|
134
124
|
- Apache License (2.0)
|
125
|
+
metadata: {}
|
135
126
|
post_install_message:
|
136
127
|
rdoc_options:
|
137
128
|
- --exclude
|
@@ -139,25 +130,20 @@ rdoc_options:
|
|
139
130
|
require_paths:
|
140
131
|
- lib
|
141
132
|
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
-
none: false
|
143
133
|
requirements:
|
144
|
-
- -
|
134
|
+
- - '>='
|
145
135
|
- !ruby/object:Gem::Version
|
146
136
|
version: 1.8.6
|
147
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
138
|
requirements:
|
150
|
-
- -
|
139
|
+
- - '>='
|
151
140
|
- !ruby/object:Gem::Version
|
152
141
|
version: '0'
|
153
|
-
segments:
|
154
|
-
- 0
|
155
|
-
hash: 372625193439478944
|
156
142
|
requirements: []
|
157
143
|
rubyforge_project:
|
158
|
-
rubygems_version:
|
144
|
+
rubygems_version: 2.0.3
|
159
145
|
signing_key:
|
160
|
-
specification_version:
|
146
|
+
specification_version: 4
|
161
147
|
summary: Kill Bill client library.
|
162
148
|
test_files:
|
163
149
|
- spec/killbill_client/remote/api_spec.rb
|
@@ -1,41 +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 BusinessAccountAttributes < Resource
|
29
|
-
attribute :external_key
|
30
|
-
attribute :name
|
31
|
-
attribute :currency
|
32
|
-
attribute :balance
|
33
|
-
attribute :last_invoice_date
|
34
|
-
attribute :total_invoice_balance
|
35
|
-
attribute :last_payment_status
|
36
|
-
attribute :default_payment_method_type
|
37
|
-
attribute :default_credit_card_type
|
38
|
-
attribute :default_billing_address_country
|
39
|
-
end
|
40
|
-
end
|
41
|
-
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 BusinessFieldAttributes < Resource
|
29
|
-
attribute :object_type
|
30
|
-
attribute :id
|
31
|
-
attribute :name
|
32
|
-
attribute :value
|
33
|
-
end
|
34
|
-
end
|
35
|
-
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 BusinessInvoiceAttributes < Resource
|
29
|
-
attribute :invoice_id
|
30
|
-
attribute :invoice_number
|
31
|
-
attribute :account_id
|
32
|
-
attribute :account_key
|
33
|
-
attribute :invoice_date
|
34
|
-
attribute :target_date
|
35
|
-
attribute :currency
|
36
|
-
attribute :balance
|
37
|
-
attribute :amount_paid
|
38
|
-
attribute :amount_charged
|
39
|
-
attribute :amount_credited
|
40
|
-
attribute :invoice_items
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,46 +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 BusinessInvoiceItemAttributes < Resource
|
29
|
-
attribute :item_id
|
30
|
-
attribute :invoice_id
|
31
|
-
attribute :item_type
|
32
|
-
attribute :external_key
|
33
|
-
attribute :product_name
|
34
|
-
attribute :product_type
|
35
|
-
attribute :product_category
|
36
|
-
attribute :slug
|
37
|
-
attribute :phase
|
38
|
-
attribute :billing_period
|
39
|
-
attribute :start_date
|
40
|
-
attribute :end_date
|
41
|
-
attribute :amount
|
42
|
-
attribute :currency
|
43
|
-
attribute :linked_item_id
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
@@ -1,50 +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 BusinessInvoicePaymentAttributes < Resource
|
29
|
-
attribute :payment_id
|
30
|
-
attribute :ext_first_payment_ref_id
|
31
|
-
attribute :ext_second_payment_ref_id
|
32
|
-
attribute :account_key
|
33
|
-
attribute :invoice_id
|
34
|
-
attribute :invoice_number
|
35
|
-
attribute :effective_date
|
36
|
-
attribute :amount
|
37
|
-
attribute :currency
|
38
|
-
attribute :payment_error
|
39
|
-
attribute :processing_status
|
40
|
-
attribute :requested_amount
|
41
|
-
attribute :plugin_name
|
42
|
-
attribute :payment_type
|
43
|
-
attribute :payment_method
|
44
|
-
attribute :card_type
|
45
|
-
attribute :card_country
|
46
|
-
attribute :invoice_payment_type
|
47
|
-
attribute :linked_invoice_payment_id
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,38 +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 BusinessSnapshotAttributes < Resource
|
29
|
-
attribute :business_account
|
30
|
-
attribute :business_subscription_transitions
|
31
|
-
attribute :business_invoices
|
32
|
-
attribute :business_invoice_payments
|
33
|
-
attribute :business_overdue_statuses
|
34
|
-
attribute :business_tags
|
35
|
-
attribute :business_fields
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,64 +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 BusinessSubscriptionTransitionAttributes < Resource
|
29
|
-
attribute :total_ordering
|
30
|
-
attribute :bundle_id
|
31
|
-
attribute :external_key
|
32
|
-
attribute :account_id
|
33
|
-
attribute :account_key
|
34
|
-
attribute :subscription_id
|
35
|
-
attribute :requested_timestamp
|
36
|
-
attribute :event_type
|
37
|
-
attribute :category
|
38
|
-
attribute :prev_product_name
|
39
|
-
attribute :prev_product_type
|
40
|
-
attribute :prev_product_category
|
41
|
-
attribute :prev_slug
|
42
|
-
attribute :prev_phase
|
43
|
-
attribute :prev_billing_period
|
44
|
-
attribute :prev_price
|
45
|
-
attribute :prev_price_list
|
46
|
-
attribute :prev_mrr
|
47
|
-
attribute :prev_currency
|
48
|
-
attribute :prev_start_date
|
49
|
-
attribute :prev_state
|
50
|
-
attribute :next_product_name
|
51
|
-
attribute :next_product_type
|
52
|
-
attribute :next_product_category
|
53
|
-
attribute :next_slug
|
54
|
-
attribute :next_phase
|
55
|
-
attribute :next_billing_period
|
56
|
-
attribute :next_price
|
57
|
-
attribute :next_price_list
|
58
|
-
attribute :next_mrr
|
59
|
-
attribute :next_currency
|
60
|
-
attribute :next_start_date
|
61
|
-
attribute :next_state
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|