bill_forward 1.2014.296 → 1.2015.183
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +29 -27
- data/.idea/compiler.xml +23 -23
- data/.idea/copyright/profiles_settings.xml +2 -2
- data/.idea/encodings.xml +5 -5
- data/.idea/inspectionProfiles/Project_Default.xml +10 -10
- data/.idea/inspectionProfiles/profiles_settings.xml +6 -6
- data/.idea/misc.xml +23 -23
- data/.idea/modules.xml +9 -9
- data/.idea/scopes/scope_settings.xml +4 -4
- data/.idea/vcs.xml +7 -7
- data/.rspec +1 -1
- data/Gemfile +13 -9
- data/LICENSE.md +22 -22
- data/README.md +285 -227
- data/Rakefile +73 -73
- data/bill_forward.gemspec +28 -29
- data/bill_forward.iml +28 -28
- data/lib/bill_forward/billing_entity.rb +295 -262
- data/lib/bill_forward/client.rb +350 -355
- data/lib/bill_forward/entities/account.rb +18 -18
- data/lib/bill_forward/entities/amendments/issue_invoice_amendment.rb +10 -0
- data/lib/bill_forward/entities/amendments/product_rate_plan_migration_amendment.rb +18 -0
- data/lib/bill_forward/entities/api_configuration.rb +12 -0
- data/lib/bill_forward/entities/invoice.rb +29 -3
- data/lib/bill_forward/entities/invoice_parts/taxation_link.rb +5 -5
- data/lib/bill_forward/entities/organisation.rb +36 -36
- data/lib/bill_forward/entities/payment_method.rb +4 -4
- data/lib/bill_forward/entities/payment_method_subscription_link.rb +5 -5
- data/lib/bill_forward/entities/pricing_component.rb +21 -21
- data/lib/bill_forward/entities/pricing_component_tier.rb +5 -5
- data/lib/bill_forward/entities/pricing_component_value.rb +5 -5
- data/lib/bill_forward/entities/pricing_component_value_migration_amendment_mapping.rb +31 -0
- data/lib/bill_forward/entities/product.rb +5 -5
- data/lib/bill_forward/entities/product_rate_plan.rb +43 -19
- data/lib/bill_forward/entities/profile.rb +14 -14
- data/lib/bill_forward/entities/refund.rb +5 -0
- data/lib/bill_forward/entities/role.rb +3 -3
- data/lib/bill_forward/entities/stripe_ach_token.rb +9 -0
- data/lib/bill_forward/entities/subscription.rb +83 -53
- data/lib/bill_forward/entities/subscription_charge.rb +14 -0
- data/lib/bill_forward/insertable_entity.rb +21 -31
- data/lib/bill_forward/mutable_entity.rb +26 -46
- data/lib/bill_forward/resource_path.rb +10 -10
- data/lib/bill_forward/type_check.rb +20 -20
- data/lib/bill_forward/version.rb +4 -4
- data/lib/bill_forward.rb +17 -17
- data/scratch/Gemfile +9 -0
- data/scratch/scratch.example.rb +8 -0
- data/spec/component/account_spec.rb +199 -199
- data/spec/component/billing_entity_spec.rb +152 -152
- data/spec/functional/account_spec.rb +24 -24
- data/spec/functional/bad_citizen/account_spec.rb +102 -102
- data/spec/functional/bad_citizen/credit_note_spec.rb +14 -13
- data/spec/functional/bad_citizen/payment_method_spec.rb +1 -1
- data/spec/functional/bad_citizen/product_rate_plan_migration_amendment_spec.rb +379 -0
- data/spec/functional/bad_citizen/product_rate_plan_spec.rb +103 -47
- data/spec/functional/bad_citizen/product_spec.rb +16 -9
- data/spec/functional/bad_citizen/situational/authorize_net_token_spec.rb +4 -0
- data/spec/functional/bad_citizen/situational/malordered_entity_spec.rb +1 -1
- data/spec/functional/bad_citizen/situational/payment_method_spec.rb +6 -1
- data/spec/functional/bad_citizen/situational/subscription_chargeable_spec.rb +96 -65
- data/spec/functional/bad_citizen/subscription_spec.rb +99 -60
- data/spec/functional/bad_citizen/subscription_with_credit_spec.rb +121 -91
- data/spec/functional/bad_citizen/unit_of_measure_spec.rb +14 -7
- data/spec/functional/client_spec.rb +23 -23
- data/spec/functional/organisation_spec.rb +27 -27
- data/spec/setup_test_constants.rb +72 -72
- data/spec/spec_helper.rb +10 -10
- data/spec/syntax/account_spec.rb +23 -23
- data/spec/syntax/billing_entity_spec.rb +92 -92
- data/tools/RSpec hardcoded.sublime-build +16 -0
- data/tools/RSpec.sublime-build +13 -0
- data/tools/Ruby legacy.sublime-build +7 -0
- data/tools/local_bundle_build.sh +8 -0
- data/tools/local_bundle_install.sh +9 -0
- metadata +30 -85
data/spec/syntax/account_spec.rb
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
require File.join(File.expand_path(File.dirname(__FILE__)), "..", "spec_helper")
|
2
|
-
|
3
|
-
describe BillForward::Account do
|
4
|
-
describe '#new' do
|
5
|
-
it "provides access to client" do
|
6
|
-
host="http://localhost:8080/RestAPI/"
|
7
|
-
environment="development"
|
8
|
-
token="6f1f7465-fc16-4b9c-9ea0-f8c208a43ca6"
|
9
|
-
dudclient = BillForward::Client.new(
|
10
|
-
:host => host,
|
11
|
-
:environment => environment,
|
12
|
-
:api_token => token
|
13
|
-
)
|
14
|
-
account = BillForward::Account.new(nil, dudclient)
|
15
|
-
expect(account._client.host).to eq(host)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
describe '::resource_path' do
|
19
|
-
it "points to expected endpoint" do
|
20
|
-
resource_path = BillForward::Account.resource_path
|
21
|
-
expect(resource_path.path).to eq("accounts")
|
22
|
-
end
|
23
|
-
end
|
1
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), "..", "spec_helper")
|
2
|
+
|
3
|
+
describe BillForward::Account do
|
4
|
+
describe '#new' do
|
5
|
+
it "provides access to client" do
|
6
|
+
host="http://localhost:8080/RestAPI/"
|
7
|
+
environment="development"
|
8
|
+
token="6f1f7465-fc16-4b9c-9ea0-f8c208a43ca6"
|
9
|
+
dudclient = BillForward::Client.new(
|
10
|
+
:host => host,
|
11
|
+
:environment => environment,
|
12
|
+
:api_token => token
|
13
|
+
)
|
14
|
+
account = BillForward::Account.new(nil, dudclient)
|
15
|
+
expect(account._client.host).to eq(host)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
describe '::resource_path' do
|
19
|
+
it "points to expected endpoint" do
|
20
|
+
resource_path = BillForward::Account.resource_path
|
21
|
+
expect(resource_path.path).to eq("accounts")
|
22
|
+
end
|
23
|
+
end
|
24
24
|
end
|
@@ -1,93 +1,93 @@
|
|
1
|
-
require File.join(File.expand_path(File.dirname(__FILE__)), "..", "spec_helper")
|
2
|
-
|
3
|
-
describe BillForward::BillingEntity do
|
4
|
-
before :all do
|
5
|
-
@host="http://localhost:8080/RestAPI/"
|
6
|
-
@token1="sometoken1"
|
7
|
-
@token2="sometoken2"
|
8
|
-
@dudclient1 = BillForward::Client.new(
|
9
|
-
:host => @host,
|
10
|
-
:api_token => @token1
|
11
|
-
)
|
12
|
-
@dudclient2 = BillForward::Client.new(
|
13
|
-
:host => @host,
|
14
|
-
:api_token => @token2
|
15
|
-
)
|
16
|
-
end
|
17
|
-
describe '.client' do
|
18
|
-
context 'with differing clients' do
|
19
|
-
it 'differs on each entity' do
|
20
|
-
entity1 = BillForward::Account.new(nil, @dudclient1)
|
21
|
-
entity2 = BillForward::Account.new(nil, @dudclient2)
|
22
|
-
expect(entity1._client.api_token).to eq(@token1)
|
23
|
-
expect(entity2._client.api_token).to eq(@token2)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
context 'before creation of singleton client' do
|
27
|
-
it 'raises error' do
|
28
|
-
BillForward::Client.default_client = nil
|
29
|
-
expect{BillForward::Account.new}.to raise_error(BillForward::ClientInstantiationException)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
context 'with "set" singleton client' do
|
33
|
-
it 'uses default client' do
|
34
|
-
BillForward::Client.default_client = @dudclient1
|
35
|
-
entity = BillForward::Account.new
|
36
|
-
expect(entity._client.api_token).to eq(@token1)
|
37
|
-
end
|
38
|
-
end
|
39
|
-
context 'with "made" singleton client' do
|
40
|
-
it 'uses default client' do
|
41
|
-
dudclient_options = {
|
42
|
-
:host => @host,
|
43
|
-
:api_token => @token2
|
44
|
-
}
|
45
|
-
BillForward::Client.make_default_client(dudclient_options)
|
46
|
-
entity = BillForward::Account.new
|
47
|
-
expect(entity._client.api_token).to eq(@token2)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
context 'despite "set" singleton client' do
|
51
|
-
it 'prefers provided client to default' do
|
52
|
-
BillForward::Client.default_client = @dudclient1
|
53
|
-
entity = BillForward::Account.new(nil, @dudclient2)
|
54
|
-
expect(entity._client.api_token).to eq(@token2)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
context 'with change in singleton client' do
|
58
|
-
context 'per instantiation' do
|
59
|
-
it 'uses creation-time latest client' do
|
60
|
-
BillForward::Client.default_client = @dudclient1
|
61
|
-
entity1 = BillForward::Account.new
|
62
|
-
expect(entity1._client.api_token).to eq(@token1)
|
63
|
-
BillForward::Client.default_client = @dudclient2
|
64
|
-
entity2 = BillForward::Account.new
|
65
|
-
expect(entity2._client.api_token).to eq(@token2)
|
66
|
-
expect(entity1._client.api_token).to eq(@token1)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
context 'before instantiation' do
|
70
|
-
it 'uses same client on each entity' do
|
71
|
-
BillForward::Client.default_client = @dudclient1
|
72
|
-
BillForward::Client.default_client = @dudclient2
|
73
|
-
entity1 = BillForward::Account.new
|
74
|
-
entity2 = BillForward::Account.new
|
75
|
-
expect(entity1._client.api_token).to eq(@token2)
|
76
|
-
expect(entity2._client.api_token).to eq(@token2)
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
describe '::resource_path' do
|
82
|
-
it "points to expected endpoint" do
|
83
|
-
resource_path = BillForward::Account.resource_path
|
84
|
-
expect(resource_path.path).to eq("accounts")
|
85
|
-
end
|
86
|
-
it "supports multiple entities with endpoints" do
|
87
|
-
resource_path1 = BillForward::Account.resource_path
|
88
|
-
expect(resource_path1.path).to eq("accounts")
|
89
|
-
resource_path2 = BillForward::PaymentMethod.resource_path
|
90
|
-
expect(resource_path2.path).to eq("payment-methods")
|
91
|
-
end
|
92
|
-
end
|
1
|
+
require File.join(File.expand_path(File.dirname(__FILE__)), "..", "spec_helper")
|
2
|
+
|
3
|
+
describe BillForward::BillingEntity do
|
4
|
+
before :all do
|
5
|
+
@host="http://localhost:8080/RestAPI/"
|
6
|
+
@token1="sometoken1"
|
7
|
+
@token2="sometoken2"
|
8
|
+
@dudclient1 = BillForward::Client.new(
|
9
|
+
:host => @host,
|
10
|
+
:api_token => @token1
|
11
|
+
)
|
12
|
+
@dudclient2 = BillForward::Client.new(
|
13
|
+
:host => @host,
|
14
|
+
:api_token => @token2
|
15
|
+
)
|
16
|
+
end
|
17
|
+
describe '.client' do
|
18
|
+
context 'with differing clients' do
|
19
|
+
it 'differs on each entity' do
|
20
|
+
entity1 = BillForward::Account.new(nil, @dudclient1)
|
21
|
+
entity2 = BillForward::Account.new(nil, @dudclient2)
|
22
|
+
expect(entity1._client.api_token).to eq(@token1)
|
23
|
+
expect(entity2._client.api_token).to eq(@token2)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
context 'before creation of singleton client' do
|
27
|
+
it 'raises error' do
|
28
|
+
BillForward::Client.default_client = nil
|
29
|
+
expect{BillForward::Account.new}.to raise_error(BillForward::ClientInstantiationException)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
context 'with "set" singleton client' do
|
33
|
+
it 'uses default client' do
|
34
|
+
BillForward::Client.default_client = @dudclient1
|
35
|
+
entity = BillForward::Account.new
|
36
|
+
expect(entity._client.api_token).to eq(@token1)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
context 'with "made" singleton client' do
|
40
|
+
it 'uses default client' do
|
41
|
+
dudclient_options = {
|
42
|
+
:host => @host,
|
43
|
+
:api_token => @token2
|
44
|
+
}
|
45
|
+
BillForward::Client.make_default_client(dudclient_options)
|
46
|
+
entity = BillForward::Account.new
|
47
|
+
expect(entity._client.api_token).to eq(@token2)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
context 'despite "set" singleton client' do
|
51
|
+
it 'prefers provided client to default' do
|
52
|
+
BillForward::Client.default_client = @dudclient1
|
53
|
+
entity = BillForward::Account.new(nil, @dudclient2)
|
54
|
+
expect(entity._client.api_token).to eq(@token2)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
context 'with change in singleton client' do
|
58
|
+
context 'per instantiation' do
|
59
|
+
it 'uses creation-time latest client' do
|
60
|
+
BillForward::Client.default_client = @dudclient1
|
61
|
+
entity1 = BillForward::Account.new
|
62
|
+
expect(entity1._client.api_token).to eq(@token1)
|
63
|
+
BillForward::Client.default_client = @dudclient2
|
64
|
+
entity2 = BillForward::Account.new
|
65
|
+
expect(entity2._client.api_token).to eq(@token2)
|
66
|
+
expect(entity1._client.api_token).to eq(@token1)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
context 'before instantiation' do
|
70
|
+
it 'uses same client on each entity' do
|
71
|
+
BillForward::Client.default_client = @dudclient1
|
72
|
+
BillForward::Client.default_client = @dudclient2
|
73
|
+
entity1 = BillForward::Account.new
|
74
|
+
entity2 = BillForward::Account.new
|
75
|
+
expect(entity1._client.api_token).to eq(@token2)
|
76
|
+
expect(entity2._client.api_token).to eq(@token2)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
describe '::resource_path' do
|
82
|
+
it "points to expected endpoint" do
|
83
|
+
resource_path = BillForward::Account.resource_path
|
84
|
+
expect(resource_path.path).to eq("accounts")
|
85
|
+
end
|
86
|
+
it "supports multiple entities with endpoints" do
|
87
|
+
resource_path1 = BillForward::Account.resource_path
|
88
|
+
expect(resource_path1.path).to eq("accounts")
|
89
|
+
resource_path2 = BillForward::PaymentMethod.resource_path
|
90
|
+
expect(resource_path2.path).to eq("payment-methods")
|
91
|
+
end
|
92
|
+
end
|
93
93
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"env": {
|
3
|
+
"GEM_HOME": "~/.rvm/gems/ruby-1.8.7-head",
|
4
|
+
"GEM_PATH": "~/.rvm/gems/ruby-1.8.7-head:~/.rvm/gems/ruby-1.8.7-head@global",
|
5
|
+
"MY_RUBY_HOME": "~/.rvm/rubies/ruby-1.8.7-head"
|
6
|
+
},
|
7
|
+
"cmd": ["rspec", "$file"],
|
8
|
+
"file_regex": "# ([A-Za-z:0-9_./ ]+rb):([0-9]+)",
|
9
|
+
"working_dir": "${project_path}",
|
10
|
+
"selector": "source.ruby",
|
11
|
+
|
12
|
+
"windows":
|
13
|
+
{
|
14
|
+
"cmd": ["rspec.bat", "-I ${file_path}", "$file"]
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"env": {
|
3
|
+
"PATH":"${HOME}/.rvm/bin:${PATH}"
|
4
|
+
},
|
5
|
+
"cmd": ["rvm-auto-ruby","-S", "bundle", "exec", "rspec", "-I ${file_path}", "$file"],
|
6
|
+
"working_dir": "${project_path}",
|
7
|
+
"selector": "source.ruby",
|
8
|
+
|
9
|
+
"windows":
|
10
|
+
{
|
11
|
+
"cmd": ["rspec.bat", "-I ${file_path}", "$file"]
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# cd to parent dir of this script
|
3
|
+
MYDIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
4
|
+
pushd $MYDIR/..
|
5
|
+
# upon any kind of termination, return to our original directory
|
6
|
+
trap "popd" EXIT SIGHUP SIGINT SIGTERM
|
7
|
+
|
8
|
+
sh $MYDIR/local_bundle_build.sh
|
9
|
+
gem install bill_forward --no-ri --no-rdoc
|
metadata
CHANGED
@@ -1,13 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bill_forward
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 2014
|
9
|
-
- 296
|
10
|
-
version: 1.2014.296
|
4
|
+
version: 1.2015.183
|
11
5
|
platform: ruby
|
12
6
|
authors:
|
13
7
|
- BillForward
|
@@ -15,37 +9,25 @@ autorequire:
|
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
11
|
|
18
|
-
date:
|
12
|
+
date: 2015-07-03 00:00:00 Z
|
19
13
|
dependencies:
|
20
14
|
- !ruby/object:Gem::Dependency
|
21
15
|
name: rest-client
|
22
16
|
prerelease: false
|
23
17
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
18
|
requirements:
|
26
19
|
- - ~>
|
27
20
|
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 6
|
32
|
-
- 8
|
33
|
-
version: 1.6.8
|
21
|
+
version: "1.4"
|
34
22
|
type: :runtime
|
35
23
|
version_requirements: *id001
|
36
24
|
- !ruby/object:Gem::Dependency
|
37
25
|
name: json
|
38
26
|
prerelease: false
|
39
27
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
28
|
requirements:
|
42
29
|
- - ~>
|
43
30
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 53
|
45
|
-
segments:
|
46
|
-
- 1
|
47
|
-
- 8
|
48
|
-
- 1
|
49
31
|
version: 1.8.1
|
50
32
|
type: :runtime
|
51
33
|
version_requirements: *id002
|
@@ -53,79 +35,37 @@ dependencies:
|
|
53
35
|
name: require_all
|
54
36
|
prerelease: false
|
55
37
|
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
38
|
requirements:
|
58
|
-
-
|
39
|
+
- &id005
|
40
|
+
- ">="
|
59
41
|
- !ruby/object:Gem::Version
|
60
|
-
hash: 3
|
61
|
-
segments:
|
62
|
-
- 0
|
63
42
|
version: "0"
|
64
43
|
type: :runtime
|
65
44
|
version_requirements: *id003
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
name: activesupport
|
68
|
-
prerelease: false
|
69
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
|
-
requirements:
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
hash: 3
|
75
|
-
segments:
|
76
|
-
- 3
|
77
|
-
- 1
|
78
|
-
- 0
|
79
|
-
version: 3.1.0
|
80
|
-
- - <
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
hash: 11
|
83
|
-
segments:
|
84
|
-
- 4
|
85
|
-
version: "4"
|
86
|
-
type: :runtime
|
87
|
-
version_requirements: *id004
|
88
45
|
- !ruby/object:Gem::Dependency
|
89
46
|
name: bundler
|
90
47
|
prerelease: false
|
91
|
-
requirement: &
|
92
|
-
none: false
|
48
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
93
49
|
requirements:
|
94
50
|
- - ~>
|
95
51
|
- !ruby/object:Gem::Version
|
96
|
-
hash: 3
|
97
|
-
segments:
|
98
|
-
- 1
|
99
|
-
- 6
|
100
52
|
version: "1.6"
|
101
53
|
type: :development
|
102
|
-
version_requirements: *
|
54
|
+
version_requirements: *id004
|
103
55
|
- !ruby/object:Gem::Dependency
|
104
56
|
name: rspec
|
105
57
|
prerelease: false
|
106
58
|
requirement: &id006 !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
59
|
requirements:
|
109
|
-
-
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
hash: 3
|
112
|
-
segments:
|
113
|
-
- 0
|
114
|
-
version: "0"
|
60
|
+
- *id005
|
115
61
|
type: :development
|
116
62
|
version_requirements: *id006
|
117
63
|
- !ruby/object:Gem::Dependency
|
118
64
|
name: rake
|
119
65
|
prerelease: false
|
120
66
|
requirement: &id007 !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
67
|
requirements:
|
123
|
-
-
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
hash: 3
|
126
|
-
segments:
|
127
|
-
- 0
|
128
|
-
version: "0"
|
68
|
+
- *id005
|
129
69
|
type: :development
|
130
70
|
version_requirements: *id007
|
131
71
|
description: Enables you to call the BillForward API easily using Ruby
|
@@ -165,6 +105,8 @@ files:
|
|
165
105
|
- lib/bill_forward/entities/address.rb
|
166
106
|
- lib/bill_forward/entities/amendments/amendment.rb
|
167
107
|
- lib/bill_forward/entities/amendments/invoice_recalculation_amendment.rb
|
108
|
+
- lib/bill_forward/entities/amendments/issue_invoice_amendment.rb
|
109
|
+
- lib/bill_forward/entities/amendments/product_rate_plan_migration_amendment.rb
|
168
110
|
- lib/bill_forward/entities/api_configuration.rb
|
169
111
|
- lib/bill_forward/entities/authorize_net_token.rb
|
170
112
|
- lib/bill_forward/entities/credit_note.rb
|
@@ -180,17 +122,23 @@ files:
|
|
180
122
|
- lib/bill_forward/entities/pricing_component_tier.rb
|
181
123
|
- lib/bill_forward/entities/pricing_component_value.rb
|
182
124
|
- lib/bill_forward/entities/pricing_component_value_change.rb
|
125
|
+
- lib/bill_forward/entities/pricing_component_value_migration_amendment_mapping.rb
|
183
126
|
- lib/bill_forward/entities/product.rb
|
184
127
|
- lib/bill_forward/entities/product_rate_plan.rb
|
185
128
|
- lib/bill_forward/entities/profile.rb
|
129
|
+
- lib/bill_forward/entities/refund.rb
|
186
130
|
- lib/bill_forward/entities/role.rb
|
131
|
+
- lib/bill_forward/entities/stripe_ach_token.rb
|
187
132
|
- lib/bill_forward/entities/subscription.rb
|
133
|
+
- lib/bill_forward/entities/subscription_charge.rb
|
188
134
|
- lib/bill_forward/entities/unit_of_measure.rb
|
189
135
|
- lib/bill_forward/insertable_entity.rb
|
190
136
|
- lib/bill_forward/mutable_entity.rb
|
191
137
|
- lib/bill_forward/resource_path.rb
|
192
138
|
- lib/bill_forward/type_check.rb
|
193
139
|
- lib/bill_forward/version.rb
|
140
|
+
- scratch/Gemfile
|
141
|
+
- scratch/scratch.example.rb
|
194
142
|
- spec/component/account_spec.rb
|
195
143
|
- spec/component/billing_entity_spec.rb
|
196
144
|
- spec/component/invoice_spec.rb
|
@@ -199,6 +147,7 @@ files:
|
|
199
147
|
- spec/functional/bad_citizen/account_spec.rb
|
200
148
|
- spec/functional/bad_citizen/credit_note_spec.rb
|
201
149
|
- spec/functional/bad_citizen/payment_method_spec.rb
|
150
|
+
- spec/functional/bad_citizen/product_rate_plan_migration_amendment_spec.rb
|
202
151
|
- spec/functional/bad_citizen/product_rate_plan_spec.rb
|
203
152
|
- spec/functional/bad_citizen/product_spec.rb
|
204
153
|
- spec/functional/bad_citizen/situational/authorize_net_token_spec.rb
|
@@ -221,38 +170,33 @@ files:
|
|
221
170
|
- spec/syntax/api_configuration_spec.rb
|
222
171
|
- spec/syntax/billing_entity_spec.rb
|
223
172
|
- spec/syntax/client_spec.rb
|
173
|
+
- tools/RSpec hardcoded.sublime-build
|
174
|
+
- tools/RSpec.sublime-build
|
175
|
+
- tools/Ruby legacy.sublime-build
|
176
|
+
- tools/local_bundle_build.sh
|
177
|
+
- tools/local_bundle_install.sh
|
224
178
|
homepage: http://www.billforward.net
|
225
179
|
licenses:
|
226
180
|
- MIT
|
181
|
+
metadata: {}
|
182
|
+
|
227
183
|
post_install_message:
|
228
184
|
rdoc_options: []
|
229
185
|
|
230
186
|
require_paths:
|
231
187
|
- lib
|
232
188
|
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
-
none: false
|
234
189
|
requirements:
|
235
|
-
-
|
236
|
-
- !ruby/object:Gem::Version
|
237
|
-
hash: 3
|
238
|
-
segments:
|
239
|
-
- 0
|
240
|
-
version: "0"
|
190
|
+
- *id005
|
241
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
|
-
none: false
|
243
192
|
requirements:
|
244
|
-
-
|
245
|
-
- !ruby/object:Gem::Version
|
246
|
-
hash: 3
|
247
|
-
segments:
|
248
|
-
- 0
|
249
|
-
version: "0"
|
193
|
+
- *id005
|
250
194
|
requirements: []
|
251
195
|
|
252
196
|
rubyforge_project:
|
253
|
-
rubygems_version:
|
197
|
+
rubygems_version: 2.0.14
|
254
198
|
signing_key:
|
255
|
-
specification_version:
|
199
|
+
specification_version: 4
|
256
200
|
summary: BillForward Ruby Client Library
|
257
201
|
test_files:
|
258
202
|
- spec/component/account_spec.rb
|
@@ -263,6 +207,7 @@ test_files:
|
|
263
207
|
- spec/functional/bad_citizen/account_spec.rb
|
264
208
|
- spec/functional/bad_citizen/credit_note_spec.rb
|
265
209
|
- spec/functional/bad_citizen/payment_method_spec.rb
|
210
|
+
- spec/functional/bad_citizen/product_rate_plan_migration_amendment_spec.rb
|
266
211
|
- spec/functional/bad_citizen/product_rate_plan_spec.rb
|
267
212
|
- spec/functional/bad_citizen/product_spec.rb
|
268
213
|
- spec/functional/bad_citizen/situational/authorize_net_token_spec.rb
|