erp_commerce 3.0.9 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/app/models/accepted_credit_card.rb +2 -0
  2. data/app/models/bank_account.rb +2 -0
  3. data/app/models/bank_account_type.rb +2 -0
  4. data/app/models/credit_card.rb +2 -1
  5. data/app/models/credit_card_account.rb +2 -0
  6. data/app/models/credit_card_account_party_role.rb +2 -0
  7. data/app/models/credit_card_account_purpose.rb +5 -3
  8. data/app/models/fee.rb +1 -0
  9. data/app/models/fee_type.rb +2 -0
  10. data/app/models/payment.rb +2 -0
  11. data/app/models/payment_gateway.rb +4 -2
  12. data/app/models/payment_gateway_action.rb +1 -0
  13. data/app/models/price.rb +2 -1
  14. data/app/models/price_component.rb +2 -1
  15. data/app/models/price_component_type.rb +2 -0
  16. data/app/models/pricing_plan.rb +1 -0
  17. data/app/models/pricing_plan_assignment.rb +2 -1
  18. data/app/models/pricing_plan_component.rb +1 -0
  19. data/app/models/valid_price_plan_component.rb +1 -0
  20. data/db/migrate/20100823174238_erp_commerce_base.rb +243 -1
  21. data/lib/erp_commerce/version.rb +2 -2
  22. data/lib/erp_commerce.rb +7 -1
  23. data/spec/dummy/config/application.rb +6 -0
  24. data/spec/dummy/config/environments/spec.rb +3 -0
  25. data/spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb +28 -0
  26. data/spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb +16 -0
  27. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +15 -0
  28. data/spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb +24 -0
  29. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +12 -0
  30. data/spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb +27 -0
  31. data/spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb +24 -0
  32. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +19 -0
  33. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +252 -0
  34. data/spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb +26 -0
  35. data/spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb +26 -0
  36. data/spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb +15 -0
  37. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +53 -0
  38. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +16 -0
  39. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +21 -0
  40. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +32 -0
  41. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +12 -0
  42. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +23 -0
  43. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +42 -0
  44. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +22 -0
  45. data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +14 -0
  46. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +29 -0
  47. data/spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb +29 -0
  48. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +11 -0
  49. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +19 -0
  50. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +23 -0
  51. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +20 -0
  52. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +16 -0
  53. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +24 -0
  54. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +23 -0
  55. data/spec/dummy/db/migrate/20130107214952_base_erp_services.erp_base_erp_svcs.rb +461 -0
  56. data/spec/dummy/db/migrate/20130107214953_base_tech_services.erp_tech_svcs.rb +271 -0
  57. data/spec/dummy/db/migrate/20130107214954_create_has_attribute_tables.erp_tech_svcs.rb +39 -0
  58. data/spec/dummy/db/migrate/20130107214955_create_groups.erp_tech_svcs.rb +19 -0
  59. data/spec/dummy/db/migrate/20130107214956_upgrade_security.erp_tech_svcs.rb +54 -0
  60. data/spec/dummy/db/migrate/20130107214957_upgrade_security2.erp_tech_svcs.rb +270 -0
  61. data/spec/dummy/db/migrate/20130107214958_base_app_framework.erp_app.rb +276 -0
  62. data/spec/dummy/db/migrate/20130107214959_base_txns_and_accts.erp_txns_and_accts.rb +364 -0
  63. data/spec/dummy/db/migrate/20130107214960_agreements_services.erp_agreements.rb +160 -0
  64. data/spec/dummy/db/migrate/20130107214961_agreements_services_indexes.erp_agreements.rb +52 -0
  65. data/spec/dummy/db/migrate/20130107214962_base_products.erp_products.rb +234 -0
  66. data/spec/dummy/db/migrate/20130107214963_base_products_indexes.erp_products.rb +59 -0
  67. data/spec/dummy/db/migrate/20130107214964_base_orders.erp_orders.rb +178 -0
  68. data/spec/dummy/db/migrate/20130107214965_erp_commerce_base.erp_commerce.rb +442 -0
  69. data/spec/dummy/db/schema.rb +1821 -0
  70. data/spec/dummy/db/spec.sqlite3 +0 -0
  71. data/spec/dummy/log/spec.log +16021 -0
  72. data/spec/models/credit_card_spec.rb +7 -1
  73. data/spec/spec_helper.rb +12 -3
  74. metadata +110 -37
  75. data/db/data_migrations/20130408200643_add_credit_card_biz_txn_acct_types.rb +0 -57
  76. data/db/migrate/20100913154134_setup_payments.rb +0 -57
  77. data/db/migrate/20101103132342_pricing_migrations.rb +0 -169
  78. data/db/migrate/20110921150854_create_fees.rb +0 -50
  79. data/db/migrate/20120308220606_add_external_identifier_to_payments.rb +0 -5
  80. data/db/migrate/20120618144337_create_accepted_credit_cards.rb +0 -11
  81. data/db/migrate/upgrade/20120117170037_add_bank_account.rb +0 -34
  82. data/db/migrate/upgrade/20120117190924_add_credit_card_to_account_roles.rb +0 -7
  83. data/lib/erp_commerce/active_merchant_wrappers/bank_wrapper.rb +0 -17
  84. data/lib/erp_commerce/active_merchant_wrappers/prismpay_wrapper.rb +0 -106
  85. data/public/javascripts/extensions/compass_ae/erp_app/desktop/applications/product_manager/product_pricing_panel.js +0 -329
@@ -6,6 +6,12 @@ describe CreditCard do
6
6
  end
7
7
 
8
8
  it "can be saved successfully" do
9
- CreditCard.create().should be_persisted
9
+ CreditCard.create(
10
+ :first_name_on_card => 'John',
11
+ :last_name_on_card => 'Doe',
12
+ :expiration_month => '12',
13
+ :expiration_year => '2020',
14
+ :crypted_private_card_number => '4444333322221111'
15
+ ).should be_persisted
10
16
  end
11
17
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  require 'spork'
2
2
  require 'rake'
3
+ require 'factory_girl'
4
+ require 'rails/generators'
3
5
 
4
6
  Spork.prefork do
5
7
  # Loading more in this block will cause your tests to run faster. However,
@@ -31,6 +33,7 @@ Spork.prefork do
31
33
 
32
34
  RSpec.configure do |config|
33
35
  config.use_transactional_fixtures = true
36
+ config.include FactoryGirl::Syntax::Methods
34
37
  config.include Sorcery::TestHelpers::Rails
35
38
  config.include ErpDevSvcs
36
39
  config.include ErpDevSvcs::ControllerSupport, :type => :controller
@@ -40,12 +43,17 @@ end
40
43
  Spork.each_run do
41
44
  #We have to execute the migrations from dummy app directory
42
45
  Dir.chdir DUMMY_APP_ROOT
43
- `rake db:drop`
46
+ `rake db:drop RAILS_ENV=spec`
44
47
  Dir.chdir ENGINE_RAILS_ROOT
45
48
 
46
- #We have to execute the migrations from dummy app directory
49
+ #We have to execute the migratiapp:compass_ae:install:data_migrationsons from dummy app directory
47
50
  Dir.chdir DUMMY_APP_ROOT
48
- `rake db:migrate`
51
+
52
+
53
+ `rake compass_ae:install:migrations RAILS_ENV=spec`
54
+ `rake compass_ae:install:data_migrations RAILS_ENV=spec`
55
+ `rake db:migrate RAILS_ENV=spec`
56
+ `rake db:migrate_data RAILS_ENV=spec`
49
57
  Dir.chdir ENGINE_RAILS_ROOT
50
58
 
51
59
  ErpDevSvcs::FactorySupport.load_engine_factories
@@ -57,4 +65,5 @@ Spork.each_run do
57
65
  #Need to explictly load the files in lib/ until we figure out how to
58
66
  #get rails to autoload them for spec like it used to...
59
67
  Dir[File.join(ENGINE_RAILS_ROOT, "lib/**/*.rb")].each {|f| load f}
68
+ Dir[File.join(ENGINE_RAILS_ROOT, "app/models/extensions/**/*.rb")].each {|f| load f}
60
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_commerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.9
4
+ version: 3.1.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-04-10 00:00:00.000000000 Z
12
+ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.3.1
21
+ version: 3.0.14
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.3.1
29
+ version: 3.0.14
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: activemerchant
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: 1.20.4
37
+ version: 1.29.3
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: 1.20.4
45
+ version: 1.29.3
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: erp_orders
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: '3.0'
53
+ version: '3.1'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,23 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
62
- - !ruby/object:Gem::Dependency
63
- name: prismpay
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :runtime
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
61
+ version: '3.1'
78
62
  - !ruby/object:Gem::Dependency
79
63
  name: erp_dev_svcs
80
64
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +66,7 @@ dependencies:
82
66
  requirements:
83
67
  - - ~>
84
68
  - !ruby/object:Gem::Version
85
- version: '3.0'
69
+ version: '3.1'
86
70
  type: :development
87
71
  prerelease: false
88
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +74,7 @@ dependencies:
90
74
  requirements:
91
75
  - - ~>
92
76
  - !ruby/object:Gem::Version
93
- version: '3.0'
77
+ version: '3.1'
94
78
  description: The CompassAE Commerce Engine uses the engines that implement Parties,
95
79
  Products and Orders, and adds the ability to conduct commerce. It implements a pricing
96
80
  engine, fees, payment gateways.
@@ -153,19 +137,9 @@ files:
153
137
  - app/widgets/shopping_cart/views/price_summary.html.erb
154
138
  - config/routes.rb
155
139
  - db/data_migrations/20101011152441_payment_gateway_actions.rb
156
- - db/data_migrations/20130408200643_add_credit_card_biz_txn_acct_types.rb
157
140
  - db/migrate/20100823174238_erp_commerce_base.rb
158
- - db/migrate/20100913154134_setup_payments.rb
159
- - db/migrate/20101103132342_pricing_migrations.rb
160
- - db/migrate/20110921150854_create_fees.rb
161
- - db/migrate/20120308220606_add_external_identifier_to_payments.rb
162
- - db/migrate/20120618144337_create_accepted_credit_cards.rb
163
- - db/migrate/upgrade/20120117170037_add_bank_account.rb
164
- - db/migrate/upgrade/20120117190924_add_credit_card_to_account_roles.rb
165
- - lib/erp_commerce/active_merchant_wrappers/bank_wrapper.rb
166
141
  - lib/erp_commerce/active_merchant_wrappers/brain_tree_gateway_wrapper.rb
167
142
  - lib/erp_commerce/active_merchant_wrappers/credit_card_validation.rb
168
- - lib/erp_commerce/active_merchant_wrappers/prismpay_wrapper.rb
169
143
  - lib/erp_commerce/active_merchant_wrappers.rb
170
144
  - lib/erp_commerce/config.rb
171
145
  - lib/erp_commerce/engine.rb
@@ -177,7 +151,6 @@ files:
177
151
  - lib/erp_commerce/version.rb
178
152
  - lib/erp_commerce.rb
179
153
  - lib/tasks/erp_commerce_tasks.rake
180
- - public/javascripts/extensions/compass_ae/erp_app/desktop/applications/product_manager/product_pricing_panel.js
181
154
  - GPL-3-LICENSE
182
155
  - Rakefile
183
156
  - README.md
@@ -200,6 +173,53 @@ files:
200
173
  - spec/dummy/config/locales/en.yml
201
174
  - spec/dummy/config/routes.rb
202
175
  - spec/dummy/config.ru
176
+ - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
177
+ - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
178
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
179
+ - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
180
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
181
+ - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
182
+ - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
183
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
184
+ - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
185
+ - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
186
+ - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
187
+ - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
188
+ - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
189
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
190
+ - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
191
+ - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
192
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
193
+ - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
194
+ - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
195
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
196
+ - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
197
+ - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
198
+ - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
199
+ - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
200
+ - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
201
+ - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
202
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
203
+ - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
204
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
205
+ - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
206
+ - spec/dummy/db/migrate/20130107214952_base_erp_services.erp_base_erp_svcs.rb
207
+ - spec/dummy/db/migrate/20130107214953_base_tech_services.erp_tech_svcs.rb
208
+ - spec/dummy/db/migrate/20130107214954_create_has_attribute_tables.erp_tech_svcs.rb
209
+ - spec/dummy/db/migrate/20130107214955_create_groups.erp_tech_svcs.rb
210
+ - spec/dummy/db/migrate/20130107214956_upgrade_security.erp_tech_svcs.rb
211
+ - spec/dummy/db/migrate/20130107214957_upgrade_security2.erp_tech_svcs.rb
212
+ - spec/dummy/db/migrate/20130107214958_base_app_framework.erp_app.rb
213
+ - spec/dummy/db/migrate/20130107214959_base_txns_and_accts.erp_txns_and_accts.rb
214
+ - spec/dummy/db/migrate/20130107214960_agreements_services.erp_agreements.rb
215
+ - spec/dummy/db/migrate/20130107214961_agreements_services_indexes.erp_agreements.rb
216
+ - spec/dummy/db/migrate/20130107214962_base_products.erp_products.rb
217
+ - spec/dummy/db/migrate/20130107214963_base_products_indexes.erp_products.rb
218
+ - spec/dummy/db/migrate/20130107214964_base_orders.erp_orders.rb
219
+ - spec/dummy/db/migrate/20130107214965_erp_commerce_base.erp_commerce.rb
220
+ - spec/dummy/db/schema.rb
221
+ - spec/dummy/db/spec.sqlite3
222
+ - spec/dummy/log/spec.log
203
223
  - spec/dummy/public/404.html
204
224
  - spec/dummy/public/422.html
205
225
  - spec/dummy/public/500.html
@@ -236,12 +256,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
236
256
  - - ! '>='
237
257
  - !ruby/object:Gem::Version
238
258
  version: '0'
259
+ segments:
260
+ - 0
261
+ hash: -2772235375728567952
239
262
  required_rubygems_version: !ruby/object:Gem::Requirement
240
263
  none: false
241
264
  requirements:
242
265
  - - ! '>='
243
266
  - !ruby/object:Gem::Version
244
267
  version: '0'
268
+ segments:
269
+ - 0
270
+ hash: -2772235375728567952
245
271
  requirements: []
246
272
  rubyforge_project:
247
273
  rubygems_version: 1.8.24
@@ -269,6 +295,53 @@ test_files:
269
295
  - spec/dummy/config/locales/en.yml
270
296
  - spec/dummy/config/routes.rb
271
297
  - spec/dummy/config.ru
298
+ - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
299
+ - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
300
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
301
+ - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
302
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
303
+ - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
304
+ - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
305
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
306
+ - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
307
+ - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
308
+ - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
309
+ - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
310
+ - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
311
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
312
+ - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
313
+ - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
314
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
315
+ - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
316
+ - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
317
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
318
+ - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
319
+ - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
320
+ - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
321
+ - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
322
+ - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
323
+ - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
324
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
325
+ - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
326
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
327
+ - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
328
+ - spec/dummy/db/migrate/20130107214952_base_erp_services.erp_base_erp_svcs.rb
329
+ - spec/dummy/db/migrate/20130107214953_base_tech_services.erp_tech_svcs.rb
330
+ - spec/dummy/db/migrate/20130107214954_create_has_attribute_tables.erp_tech_svcs.rb
331
+ - spec/dummy/db/migrate/20130107214955_create_groups.erp_tech_svcs.rb
332
+ - spec/dummy/db/migrate/20130107214956_upgrade_security.erp_tech_svcs.rb
333
+ - spec/dummy/db/migrate/20130107214957_upgrade_security2.erp_tech_svcs.rb
334
+ - spec/dummy/db/migrate/20130107214958_base_app_framework.erp_app.rb
335
+ - spec/dummy/db/migrate/20130107214959_base_txns_and_accts.erp_txns_and_accts.rb
336
+ - spec/dummy/db/migrate/20130107214960_agreements_services.erp_agreements.rb
337
+ - spec/dummy/db/migrate/20130107214961_agreements_services_indexes.erp_agreements.rb
338
+ - spec/dummy/db/migrate/20130107214962_base_products.erp_products.rb
339
+ - spec/dummy/db/migrate/20130107214963_base_products_indexes.erp_products.rb
340
+ - spec/dummy/db/migrate/20130107214964_base_orders.erp_orders.rb
341
+ - spec/dummy/db/migrate/20130107214965_erp_commerce_base.erp_commerce.rb
342
+ - spec/dummy/db/schema.rb
343
+ - spec/dummy/db/spec.sqlite3
344
+ - spec/dummy/log/spec.log
272
345
  - spec/dummy/public/404.html
273
346
  - spec/dummy/public/422.html
274
347
  - spec/dummy/public/500.html
@@ -1,57 +0,0 @@
1
- class AddCreditCardBizTxnAcctTypes
2
-
3
- def self.up
4
- # add credit card account types as biz txn account types
5
- if (BizTxnAcctType.find_by_internal_identifier('credit_card_account').nil?)
6
- @credit_card_account = BizTxnAcctType.create(
7
- :description => 'Credit Card Account',
8
- :internal_identifier => 'credit_card_account',
9
- )
10
- end
11
-
12
- if (BizTxnAcctType.find_by_internal_identifier('amex').nil?)
13
- @type = BizTxnAcctType.create(
14
- :description => 'American Express',
15
- :internal_identifier => 'amex',
16
- )
17
- @type.move_to_child_of @credit_card_account
18
- end
19
-
20
- if (BizTxnAcctType.find_by_internal_identifier('dinersclub').nil?)
21
- @type = BizTxnAcctType.create(
22
- :description => 'Diners Club',
23
- :internal_identifier => 'dinersclub',
24
- )
25
- @type.move_to_child_of @credit_card_account
26
- end
27
-
28
- if (BizTxnAcctType.find_by_internal_identifier('discover').nil?)
29
- @type = BizTxnAcctType.create(
30
- :description => 'Discover',
31
- :internal_identifier => 'discover',
32
- )
33
- @type.move_to_child_of @credit_card_account
34
- end
35
-
36
- if (BizTxnAcctType.find_by_internal_identifier('mastercard').nil?)
37
- @type = BizTxnAcctType.create(
38
- :description => 'MasterCard',
39
- :internal_identifier => 'mastercard',
40
- )
41
- @type.move_to_child_of @credit_card_account
42
- end
43
-
44
- if (BizTxnAcctType.find_by_internal_identifier('visa').nil?)
45
- @type = BizTxnAcctType.create(
46
- :description => 'Visa',
47
- :internal_identifier => 'visa',
48
- )
49
- @type.move_to_child_of @credit_card_account
50
- end
51
- end
52
-
53
- def self.down
54
- #remove data here
55
- end
56
-
57
- end
@@ -1,57 +0,0 @@
1
- class SetupPayments < ActiveRecord::Migration
2
- def self.up
3
-
4
- unless table_exists?(:payments)
5
- create_table :payments do |t|
6
-
7
- t.column :success, :boolean
8
- t.column :reference_number, :string
9
- t.column :financial_txn_id, :integer
10
- t.column :current_state, :string
11
- t.column :authorization_code, :string
12
-
13
- t.timestamps
14
- end
15
-
16
- add_index :payments, :financial_txn_id
17
- end
18
-
19
- unless table_exists?(:payment_gateways)
20
- create_table :payment_gateways do |t|
21
-
22
- t.column :params, :string
23
- t.column :payment_gateway_action_id, :integer
24
- t.column :payment_id, :integer
25
- t.column :response, :string
26
-
27
- t.timestamps
28
- end
29
- end
30
-
31
- unless table_exists?(:payment_gateway_actions)
32
- create_table :payment_gateway_actions do |t|
33
-
34
- t.column :internal_identifier, :string
35
- t.column :description, :string
36
-
37
- t.timestamps
38
- end
39
- end
40
-
41
- add_index :payment_gateway_actions, :internal_identifier
42
- end
43
-
44
- def self.down
45
- drop_tables = [
46
- :payments,
47
- :payment_gateways,
48
- :payment_gateway_actions
49
- ]
50
- drop_tables.each do |table|
51
- if table_exists?(table)
52
- drop_table table
53
- end
54
- end
55
-
56
- end
57
- end
@@ -1,169 +0,0 @@
1
- class PricingMigrations < ActiveRecord::Migration
2
- def self.up
3
-
4
- #tables
5
- unless table_exists?(:price_component_types)
6
- create_table :price_component_types do |t|
7
-
8
- t.string :description
9
- t.string :internal_identifier
10
- t.string :external_identifier
11
- t.string :external_id_source
12
-
13
- t.timestamps
14
- end
15
- end
16
-
17
- unless table_exists?(:pricing_plans)
18
- create_table :pricing_plans do |t|
19
-
20
- t.string :description
21
- t.string :comments
22
-
23
- t.string :internal_identifier
24
-
25
- t.string :external_identifier
26
- t.string :external_id_source
27
-
28
- t.date :from_date
29
- t.date :thru_date
30
-
31
- #this is here as a placeholder for an 'interpreter' or 'rule' pattern
32
- t.string :matching_rules
33
- #this is here as a placeholder for an 'interpreter' or 'rule' pattern
34
- t.string :pricing_calculation
35
-
36
- #support for simple assignment of a single money amount
37
- t.boolean :is_simple_amount
38
- t.integer :currency_id
39
- t.decimal :money_amount, :precision => 8, :scale => 2
40
-
41
- t.timestamps
42
- end
43
- end
44
-
45
- unless table_exists?(:pricing_plan_components)
46
- create_table :pricing_plan_components do |t|
47
-
48
- t.integer :price_component_type_id
49
- t.string :description
50
- t.string :comments
51
-
52
- t.string :internal_identifier
53
- t.string :external_identifier
54
- t.string :external_id_source
55
-
56
-
57
- #this is here as a placeholder for an 'interpreter' or 'rule' pattern
58
- t.string :matching_rules
59
- #this is here as a placeholder for an 'interpreter' or 'rule' pattern
60
- t.string :pricing_calculation
61
-
62
- #support for simple assignment of a single money amount
63
- t.boolean :is_simple_amount
64
- t.integer :currency_id
65
- t.decimal :money_amount, :precision => 8, :scale => 2
66
-
67
- t.timestamps
68
-
69
- end
70
- add_index :pricing_plan_components, :price_component_type_id
71
- end
72
-
73
- unless table_exists?(:valid_price_plan_components)
74
- create_table :valid_price_plan_components do |t|
75
-
76
- t.references :pricing_plan
77
- t.references :pricing_plan_component
78
-
79
- t.timestamps
80
-
81
- end
82
- add_index :valid_price_plan_components, :pricing_plan_id
83
- add_index :valid_price_plan_components, :pricing_plan_component_id
84
- end
85
-
86
- unless table_exists?(:pricing_plan_assignments)
87
- create_table :pricing_plan_assignments do |t|
88
-
89
- t.references :pricing_plan
90
-
91
- #support a polymorhic interface to the thing we want to price
92
- t.integer :priceable_item_id
93
- t.string :priceable_item_type
94
-
95
- t.integer :priority
96
-
97
- t.timestamps
98
-
99
- end
100
- add_index :pricing_plan_assignments, :pricing_plan_id
101
- add_index :pricing_plan_assignments, [:priceable_item_id,:priceable_item_type], :name => 'priceable_item_idx'
102
- end
103
-
104
- unless table_exists?(:prices)
105
- create_table :prices do |t|
106
-
107
- t.string :description
108
-
109
- #support a polymorhic interface to the thing that HAS BEEN priced
110
- t.integer :priced_item_id
111
- t.string :priced_item_type
112
-
113
- #refer to the pricing plan by which this price was calculated
114
- t.references :pricing_plan
115
-
116
- t.references :money
117
-
118
- t.timestamps
119
-
120
- end
121
- add_index :prices, :money_id
122
- add_index :prices, :pricing_plan_id
123
- add_index :prices, [:priced_item_id,:priced_item_type], :name => 'priced_item_idx'
124
- end
125
-
126
- unless table_exists?(:price_components)
127
- create_table :price_components do |t|
128
-
129
- t.string :description
130
- t.references :pricing_plan_component
131
- t.references :price
132
- t.references :money
133
-
134
- #polymorphic relationship
135
- t.integer :priced_component_id
136
- t.string :priced_component_type
137
-
138
- t.timestamps
139
-
140
- end
141
- add_index :price_components, :money_id
142
- add_index :price_components, :pricing_plan_component_id
143
- add_index :price_components, :price_id
144
- add_index :price_components, [:priced_component_id,:priced_component_type], :name => 'priced_component_idx'
145
- end
146
-
147
- end
148
-
149
-
150
- def self.down
151
-
152
- #tables
153
- drop_tables = [
154
- :pricing_plans,
155
- :pricing_plan_components,
156
- :valid_price_plan_components,
157
- :pricing_plan_assignments,
158
- :prices,
159
- :price_components,
160
- :price_component_types
161
- ]
162
- drop_tables.each do |table|
163
- if table_exists?(table)
164
- drop_table table
165
- end
166
- end
167
-
168
- end
169
- end
@@ -1,50 +0,0 @@
1
- class CreateFees < ActiveRecord::Migration
2
- def up
3
- unless table_exists?(:fees)
4
- create_table :fees do |t|
5
- t.references :fee_record, :polymorphic => true
6
- t.references :money
7
- t.references :fee_type
8
- t.string :description
9
- t.datetime :start_date
10
- t.datetime :end_date
11
- t.string :external_identifier
12
- t.string :external_id_source
13
-
14
- t.timestamps
15
- end
16
-
17
- add_index :fees, [:fee_record_id, :fee_record_type], :name => 'fee_record_idx'
18
- add_index :fees, :fee_type_id
19
- add_index :fees, :money_id
20
- end
21
-
22
- unless table_exists?(:fee_types)
23
- create_table :fee_types do |t|
24
- t.string :internal_identifier
25
- t.string :description
26
- t.string :comments
27
- t.string :external_identifier
28
- t.string :external_id_source
29
-
30
- #these columns are required to support the behavior of the plugin 'awesome_nested_set'
31
- t.integer :parent_id
32
- t.integer :lft
33
- t.integer :rgt
34
-
35
- t.timestamps
36
- end
37
-
38
- end
39
- end
40
-
41
- def down
42
- #tables
43
- drop_tables = [:fees,:fee_types]
44
- drop_tables.each do |table|
45
- if table_exists?(table)
46
- drop_table table
47
- end
48
- end
49
- end
50
- end
@@ -1,5 +0,0 @@
1
- class AddExternalIdentifierToPayments < ActiveRecord::Migration
2
- def change
3
- add_column :payments, :external_identifier, :string
4
- end
5
- end
@@ -1,11 +0,0 @@
1
- class CreateAcceptedCreditCards < ActiveRecord::Migration
2
- def change
3
- create_table :accepted_credit_cards do |t|
4
-
5
- t.references :organization
6
- t.string :card_type
7
-
8
- t.timestamps
9
- end
10
- end
11
- end