spree 0.9.4 → 0.10.0.beta
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree might be problematic. Click here for more details.
- data/CHANGELOG +185 -0
- data/CONTRIBUTORS +93 -66
- data/LICENSE +1 -1
- data/Rakefile +19 -16
- data/app/controllers/admin/adjustments_controller.rb +32 -0
- data/app/controllers/admin/base_controller.rb +33 -18
- data/app/controllers/admin/checkouts_controller.rb +41 -0
- data/app/controllers/admin/coupons_controller.rb +2 -1
- data/app/controllers/admin/images_controller.rb +28 -19
- data/app/controllers/admin/line_items_controller.rb +55 -0
- data/app/controllers/admin/option_types_controller.rb +7 -4
- data/app/controllers/admin/orders_controller.rb +29 -15
- data/app/controllers/admin/payment_methods_controller.rb +31 -0
- data/app/controllers/admin/payments_controller.rb +99 -0
- data/app/controllers/admin/product_groups_controller.rb +42 -0
- data/app/controllers/admin/product_properties_controller.rb +7 -0
- data/app/controllers/admin/product_scopes_controller.rb +18 -0
- data/app/controllers/admin/products_controller.rb +74 -36
- data/app/controllers/admin/properties_controller.rb +2 -0
- data/app/controllers/admin/prototypes_controller.rb +3 -1
- data/app/controllers/admin/reports_controller.rb +2 -2
- data/app/controllers/admin/return_authorizations_controller.rb +36 -0
- data/app/controllers/admin/shipments_controller.rb +55 -24
- data/app/controllers/admin/shipping_categories_controller.rb +2 -1
- data/app/controllers/admin/shipping_methods_controller.rb +9 -7
- data/app/controllers/admin/shipping_rates_controller.rb +2 -1
- data/app/controllers/admin/states_controller.rb +1 -1
- data/app/controllers/admin/tax_categories_controller.rb +3 -1
- data/app/controllers/admin/tax_rates_controller.rb +12 -8
- data/app/controllers/admin/taxonomies_controller.rb +4 -13
- data/app/controllers/admin/taxons_controller.rb +86 -46
- data/app/controllers/admin/trackers_controller.rb +7 -0
- data/app/controllers/admin/users_controller.rb +29 -19
- data/app/controllers/admin/variants_controller.rb +12 -7
- data/app/controllers/admin/zones_controller.rb +3 -1
- data/app/controllers/application_controller.rb +4 -0
- data/app/controllers/checkouts_controller.rb +195 -131
- data/app/controllers/line_items_controller.rb +11 -6
- data/app/controllers/orders_controller.rb +35 -31
- data/app/controllers/password_resets_controller.rb +6 -1
- data/app/controllers/products_controller.rb +22 -31
- data/app/controllers/spree/base_controller.rb +144 -29
- data/app/controllers/taxons_controller.rb +8 -10
- data/app/controllers/user_sessions_controller.rb +69 -19
- data/app/controllers/users_controller.rb +42 -20
- data/app/helpers/admin/adjustments_helper.rb +2 -0
- data/app/helpers/admin/base_helper.rb +57 -105
- data/app/helpers/admin/checkouts_helper.rb +2 -0
- data/app/helpers/admin/line_items_helper.rb +2 -0
- data/app/helpers/admin/navigation_helper.rb +127 -0
- data/app/helpers/admin/orders_helper.rb +22 -7
- data/app/helpers/admin/payments_helper.rb +7 -0
- data/app/helpers/admin/return_authorizations_helper.rb +2 -0
- data/app/helpers/application_helper.rb +2 -8
- data/app/helpers/checkouts_helper.rb +32 -4
- data/app/helpers/hook_helper.rb +21 -0
- data/app/helpers/products_helper.rb +28 -10
- data/app/helpers/spree/base_helper.rb +43 -43
- data/app/helpers/taxons_helper.rb +3 -3
- data/app/helpers/trackers_helper.rb +2 -0
- data/app/helpers/users_helper.rb +13 -0
- data/app/metal/create_admin_user.rb +1 -1
- data/app/metal/redirect_legacy_product_url.rb +10 -0
- data/app/metal/seo_assist.rb +38 -0
- data/app/models/address.rb +28 -2
- data/app/models/adjustment.rb +57 -18
- data/app/models/app_configuration.rb +8 -3
- data/app/models/billing_integration.rb +23 -0
- data/app/models/calculator.rb +8 -3
- data/app/models/calculator/flat_percent_item_total.rb +6 -5
- data/app/models/calculator/per_item.rb +2 -2
- data/app/models/charge.rb +14 -32
- data/app/models/checkout.rb +118 -26
- data/app/models/coupon.rb +6 -4
- data/app/models/coupon_credit.rb +25 -0
- data/app/models/credit.rb +14 -22
- data/app/models/creditcard.rb +38 -110
- data/app/models/creditcard_txn.rb +7 -4
- data/app/models/inventory_unit.rb +50 -33
- data/app/models/line_item.rb +11 -5
- data/app/models/option_type.rb +2 -1
- data/app/models/order.rb +189 -64
- data/app/models/order_mailer.rb +5 -1
- data/app/models/payment.rb +99 -8
- data/app/models/payment_method.rb +45 -0
- data/app/models/payment_method/check.rb +2 -0
- data/app/models/product.rb +103 -38
- data/app/models/product_group.rb +201 -0
- data/app/models/product_scope.rb +56 -0
- data/app/models/return_authorization.rb +70 -0
- data/app/models/return_authorization_credit.rb +3 -0
- data/app/models/shipment.rb +79 -20
- data/app/models/shipping_charge.rb +23 -0
- data/app/models/shipping_method.rb +17 -8
- data/app/models/state_event.rb +1 -1
- data/app/models/state_monitor.rb +25 -0
- data/app/models/tax_charge.rb +23 -0
- data/app/models/taxon.rb +24 -16
- data/app/models/taxonomy.rb +10 -0
- data/app/models/tracker.rb +5 -0
- data/app/models/transaction.rb +6 -0
- data/app/models/user.rb +32 -6
- data/app/models/user_session.rb +1 -1
- data/app/models/variant.rb +36 -25
- data/app/models/zone.rb +19 -16
- data/bin/spree +3 -5
- data/config/boot.rb +7 -3
- data/config/database.yml +24 -25
- data/config/environment.rb +34 -28
- data/config/environments/staging.rb +13 -8
- data/config/environments/test.rb +2 -6
- data/config/initializers/locales.rb +1 -1
- data/config/initializers/spree.rb +4 -1
- data/config/initializers/touch.rb +9 -0
- data/config/initializers/workarounds_for_ruby19.rb +102 -0
- data/config/locales/cs-CZ.yml +914 -0
- data/config/locales/cs-CZ_rails.yml +202 -0
- data/config/locales/da.yml +305 -5
- data/config/locales/de-CH.yml +305 -5
- data/config/locales/de.yml +479 -179
- data/config/locales/en-AU.yml +914 -0
- data/config/locales/en-AU_rails.yml +202 -0
- data/config/locales/en-GB.yml +306 -6
- data/config/locales/en-US.yml +390 -90
- data/config/locales/en-US_rails.yml +11 -6
- data/config/locales/es.yml +378 -78
- data/config/locales/fi.yml +380 -80
- data/config/locales/fr-FR.yml +489 -189
- data/config/locales/il.yml +306 -6
- data/config/locales/it.yml +306 -6
- data/config/locales/jp.yml +306 -6
- data/config/locales/mx.yml +305 -5
- data/config/locales/nb-NO.yml +305 -5
- data/config/locales/nl-BE.yml +314 -14
- data/config/locales/nl-NL.yml +317 -17
- data/config/locales/nl-NL_rails.yml +45 -45
- data/config/locales/pl.yml +306 -6
- data/config/locales/pt-BR.yml +305 -5
- data/config/locales/pt-PT.yml +305 -5
- data/config/locales/ru-RU.yml +361 -61
- data/config/locales/ru-RU_rails.yml +6 -0
- data/config/locales/th.yml +306 -6
- data/config/locales/vn.yml +914 -0
- data/config/locales/vn_rails.yml +202 -0
- data/config/routes.rb +41 -24
- data/config/spree_permissions.yml +3 -3
- data/db/migrate/20090823005402_spree_zero_nine_zero.rb +452 -0
- data/db/migrate/20090904192342_create_indexes_for_inventory_units.rb +12 -0
- data/db/migrate/20090923100315_add_count_on_hand_to_variants_and_products.rb +30 -0
- data/db/migrate/20091007134354_change_taxons_to_nested_set.rb +40 -0
- data/db/migrate/20091012120519_product_groups_and_scopes.rb +25 -0
- data/db/migrate/20091015110842_add_open_id_authentication_tables.rb +20 -0
- data/db/migrate/20091015153048_add_openid_field_to_users.rb +19 -0
- data/db/migrate/20091016174634_change_preference_value_type.rb +9 -0
- data/db/migrate/20091017175558_create_billing_integrations.rb +16 -0
- data/db/migrate/20091021133257_charge_refactoring.rb +32 -0
- data/db/migrate/20091104151730_add_some_indexes.rb +21 -0
- data/db/migrate/20091126190904_checkout_state_machine.rb +13 -0
- data/db/migrate/20091209153045_state_for_shipments.rb +9 -0
- data/db/migrate/20091209202200_make_state_events_polymorphic.rb +12 -0
- data/db/migrate/20091211203813_ship_address_id_for_checkouts.rb +9 -0
- data/db/migrate/20091212161118_shipping_method_id_for_checkouts.rb +9 -0
- data/db/migrate/20091213222815_creditcard_last_four_digits.rb +19 -0
- data/db/migrate/20091214183826_populate_legacy_shipment_state.rb +19 -0
- data/db/migrate/20100105090147_add_cost_price.rb +9 -0
- data/db/migrate/20100105132138_shipment_id_for_inventory_units.rb +17 -0
- data/db/migrate/20100111205525_cim_fields_for_creditcards.rb +11 -0
- data/db/migrate/20100112151511_create_return_authorizations.rb +16 -0
- data/db/migrate/20100113090919_add_return_authorization_to_inventory_units.rb +9 -0
- data/db/migrate/20100113203104_create_trackers.rb +14 -0
- data/db/migrate/20100121160010_creditcard_id_for_creditcard_txns.rb +9 -0
- data/db/migrate/20100121183934_original_creditcard_txn_id_for_creditcard_txns.rb +9 -0
- data/db/migrate/20100125145351_add_test_mode_to_billing_integration.rb +11 -0
- data/db/migrate/20100126103714_create_products_product_groups.rb +12 -0
- data/db/migrate/20100209025806_create_payment_methods.rb +20 -0
- data/db/migrate/20100209144531_polymorphic_payments.rb +29 -0
- data/db/migrate/20100213103131_change_payments_payment_method_to_belongs_to.rb +11 -0
- data/db/migrate/20100214212536_assign_creditcard_txns_to_payment.rb +16 -0
- data/db/migrate/20100223170312_sti_for_transactions.rb +14 -0
- data/db/migrate/20100223183812_drop_billing_integrations.rb +16 -0
- data/db/migrate/20100224153127_deleted_at_for_payment_methods.rb +13 -0
- data/db/migrate/20100301163454_add_adjustments_index.rb +10 -0
- data/db/migrate/20100306153445_fix_by_popularity.rb +8 -0
- data/db/sample/addresses.yml +21 -18
- data/db/sample/adjustments.yml +8 -10
- data/db/sample/checkouts.yml +11 -5
- data/db/sample/inventory_units.rb +4 -0
- data/db/sample/line_items.yml +26 -11
- data/db/sample/orders.yml +15 -6
- data/db/sample/payment_methods.yml +23 -0
- data/db/sample/payments.rb +25 -0
- data/db/sample/product_groups.yml +9 -0
- data/db/sample/product_scopes.yml +35 -0
- data/db/sample/products.rb +24 -0
- data/db/sample/products.yml +8 -0
- data/db/sample/shipments.yml +4 -3
- data/db/sample/taxons.rb +3 -0
- data/db/sample/taxons.yml +22 -2
- data/db/sample/users.rb +58 -0
- data/db/sample/users.yml +12 -4
- data/db/sample/variants.yml +43 -5
- data/db/schema.rb +87 -47
- data/db/seeds.rb +8 -14
- data/lib/commands/extension.rb +4 -4
- data/lib/custom_fixtures.rb +1 -1
- data/lib/generators/extension/extension_generator.rb +3 -1
- data/lib/generators/extension/templates/RSpecRakefile +18 -1
- data/lib/generators/extension/templates/Rakefile +16 -0
- data/lib/generators/extension/templates/extension.rb +0 -16
- data/lib/generators/extension/templates/extension_hooks.rb +43 -0
- data/lib/generators/extension/templates/seeds.rb +2 -0
- data/lib/generators/extension/templates/tasks.rake +0 -11
- data/lib/generators/extension/templates/test_helper.rb +3 -15
- data/lib/generators/extension_controller/templates/controller.rb +1 -1
- data/lib/generators/extension_controller/templates/functional_test.rb +1 -6
- data/lib/generators/instance/instance_generator.rb +1 -1
- data/lib/generators/instance/templates/instance_rakefile +1 -0
- data/lib/generators/theme/templates/README.markdown +5 -0
- data/lib/generators/theme/theme_generator.rb +56 -0
- data/lib/scopes.rb +68 -0
- data/lib/scopes/dynamic.rb +38 -0
- data/lib/scopes/product.rb +246 -0
- data/lib/scopes/variant.rb +9 -0
- data/lib/spree.rb +5 -3
- data/lib/spree/checkout/action_options.rb +18 -0
- data/lib/spree/checkout/hooks.rb +27 -0
- data/lib/spree/config.rb +13 -2
- data/lib/spree/extension.rb +11 -1
- data/lib/spree/extension_loader.rb +10 -3
- data/lib/spree/extensions.rb +26 -0
- data/lib/spree/file_utilz.rb +3 -1
- data/lib/spree/initializer.rb +15 -17
- data/lib/spree/preferences/mail_settings.rb +1 -1
- data/lib/spree/preferences/model_hooks.rb +6 -1
- data/lib/spree/search.rb +46 -0
- data/lib/spree/search/base.rb +22 -0
- data/lib/spree/support/core_extensions/string.rb +1 -1
- data/lib/spree/theme_support.rb +4 -0
- data/lib/spree/theme_support/hook.rb +51 -0
- data/lib/spree/theme_support/hook_listener.rb +68 -0
- data/lib/spree/theme_support/hook_modifier.rb +35 -0
- data/lib/spree/theme_support/more_patches.rb +117 -0
- data/lib/tasks/database.rake +61 -21
- data/lib/tasks/extensions.rake +105 -9
- data/lib/tasks/rspec.rake +30 -30
- data/lib/tasks/themes.rake +32 -0
- data/lib/tasks/translation.rake +31 -0
- data/lib/tasks/upgrade.rake +1 -1
- data/lib/validation_group.rb +145 -0
- data/public/images/datepicker/backstripes.gif +0 -0
- data/public/images/datepicker/bg_header.jpg +0 -0
- data/public/images/datepicker/bullet1.gif +0 -0
- data/public/images/datepicker/bullet2.gif +0 -0
- data/public/images/datepicker/cal.gif +0 -0
- data/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
- data/public/images/step-progress/completed-completed.gif +0 -0
- data/public/images/step-progress/completed-current.gif +0 -0
- data/public/images/step-progress/completed-first.gif +0 -0
- data/public/images/step-progress/current-first.gif +0 -0
- data/public/images/step-progress/current-incomplete.gif +0 -0
- data/public/images/step-progress/current-right.gif +0 -0
- data/public/images/step-progress/incomplete-incomplete.gif +0 -0
- data/public/images/step-progress/incomplete-right.gif +0 -0
- data/public/javascripts/additional-methods.js +236 -0
- data/public/javascripts/admin/address_states.js +25 -0
- data/public/javascripts/admin/checkouts/edit.js +79 -0
- data/public/javascripts/admin/orders/edit.js +96 -0
- data/public/javascripts/admin/orders/edit_form.js +17 -0
- data/public/javascripts/admin/payments/new.js +9 -0
- data/public/javascripts/admin/unobtrusive_handlers.js +15 -0
- data/public/javascripts/checkout.js +48 -520
- data/public/javascripts/dashboard.js +143 -0
- data/public/javascripts/datepicker.js +1445 -0
- data/public/javascripts/gateway.js +13 -0
- data/public/javascripts/jqPlot/excanvas.min.js +1 -0
- data/public/javascripts/jqPlot/jquery.jqplot.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +14 -0
- data/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +14 -0
- data/public/javascripts/jquery-and-plugins.js +36 -0
- data/public/javascripts/jquery-ui.js +188 -0
- data/public/javascripts/jquery.autocomplete.min.js +13 -0
- data/public/javascripts/jquery.js +19 -0
- data/public/javascripts/jquery.suggest.js +276 -0
- data/public/javascripts/jquery.template.js +255 -0
- data/public/javascripts/jquery.validate.min.js +4 -4
- data/public/javascripts/jrails.autocomplete.js +274 -0
- data/public/javascripts/jrails.js +1 -0
- data/public/javascripts/jsTree/jquery.tree.js +2058 -0
- data/public/javascripts/jsTree/plugins/jquery.tree.contextmenu.js +129 -0
- data/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
- data/public/javascripts/jsTree/{source/themes/default/dot.gif → themes/apple/dot_for_ie.gif} +0 -0
- data/public/javascripts/jsTree/themes/apple/icons.png +0 -0
- data/public/javascripts/jsTree/themes/apple/style.css +34 -0
- data/public/javascripts/jsTree/{source/themes/default → themes/apple}/throbber.gif +0 -0
- data/public/javascripts/lang/af.js +40 -0
- data/public/javascripts/lang/ar.js +50 -0
- data/public/javascripts/lang/de.js +40 -0
- data/public/javascripts/lang/du.js +40 -0
- data/public/javascripts/lang/en.js +42 -0
- data/public/javascripts/lang/es.js +41 -0
- data/public/javascripts/lang/fi.js +40 -0
- data/public/javascripts/lang/fr.js +44 -0
- data/public/javascripts/lang/gr.js +40 -0
- data/public/javascripts/lang/he.js +49 -0
- data/public/javascripts/lang/it.js +13 -0
- data/public/javascripts/lang/nl.js +40 -0
- data/public/javascripts/lang/no.js +40 -0
- data/public/javascripts/lang/pt.js +50 -0
- data/public/javascripts/lang/ro.js +40 -0
- data/public/javascripts/lang/ru.js +40 -0
- data/public/javascripts/lang/sp.js +40 -0
- data/public/javascripts/lang/sv.js +41 -0
- data/public/javascripts/lang/ua.js +40 -0
- data/public/javascripts/localization/messages_cn.js +24 -0
- data/public/javascripts/localization/messages_cs.js +23 -0
- data/public/javascripts/localization/messages_da.js +21 -0
- data/public/javascripts/localization/messages_de.js +21 -0
- data/public/javascripts/localization/messages_es.js +24 -0
- data/public/javascripts/localization/messages_fr.js +23 -0
- data/public/javascripts/localization/messages_hu.js +21 -0
- data/public/javascripts/localization/messages_it.js +26 -0
- data/public/javascripts/localization/messages_kk.js +23 -0
- data/public/javascripts/localization/messages_nl.js +23 -0
- data/public/javascripts/localization/messages_no.js +23 -0
- data/public/javascripts/localization/messages_pl.js +23 -0
- data/public/javascripts/localization/messages_ptbr.js +30 -0
- data/public/javascripts/localization/messages_ro.js +24 -0
- data/public/javascripts/localization/messages_ru.js +23 -0
- data/public/javascripts/localization/messages_se.js +23 -0
- data/public/javascripts/localization/messages_sk.js +21 -0
- data/public/javascripts/localization/messages_tr.js +24 -0
- data/public/javascripts/localization/messages_tw.js +24 -0
- data/public/javascripts/localization/messages_ua.js +24 -0
- data/public/javascripts/open_id.js +15 -0
- data/public/javascripts/product.js +49 -0
- data/public/javascripts/spree.js +37 -2
- data/public/javascripts/taxonomy.js +138 -144
- data/public/javascripts/zone.js +0 -8
- data/public/robots.txt +10 -1
- data/public/stylesheets/admin/admin-tables.css +1 -1
- data/public/stylesheets/admin/admin.css +147 -50
- data/public/stylesheets/admin/dashboard.css +143 -0
- data/public/stylesheets/admin/edit-checkouts.css +57 -0
- data/public/stylesheets/admin/edit_checkouts.css +57 -0
- data/public/stylesheets/admin/edit_orders.css +65 -0
- data/public/stylesheets/bundle_admin.css +484 -0
- data/public/stylesheets/bundle_calendar_date_select.css +137 -0
- data/public/stylesheets/bundle_compiled.css +459 -0
- data/public/stylesheets/compiled/screen.css +1 -19
- data/public/stylesheets/datepicker.css +263 -0
- data/public/stylesheets/jquery.autocomplete.css +48 -0
- data/public/stylesheets/screen.css +1181 -0
- data/spec/controllers/products_controller_spec.rb +1 -11
- data/spec/fixtures/gateways.yml +8 -3
- data/spec/models/property_spec.rb +2 -3
- data/spec/models/prototype_spec.rb +1 -1
- data/spec/spec_helper.rb +10 -11
- data/test/factories/address_factory.rb +3 -3
- data/test/factories/adjustments_factory.rb +6 -11
- data/test/factories/checkout_factory.rb +4 -4
- data/test/factories/creditcard_factory.rb +6 -7
- data/test/factories/inventory_unit_factory.rb +1 -0
- data/test/factories/line_item_factory.rb +2 -2
- data/test/factories/order_factory.rb +4 -2
- data/test/factories/payment_factory.rb +26 -0
- data/test/factories/product_factory.rb +2 -1
- data/test/factories/product_group_factory.rb +10 -0
- data/test/factories/role_factory.rb +6 -2
- data/test/factories/user_factory.rb +9 -1
- data/test/factories/variant_factory.rb +3 -2
- data/test/factories/zone_factory.rb +8 -0
- data/test/fixtures/payment_methods.yml +18 -0
- data/test/functional/admin/adjustments_controller_test.rb +165 -0
- data/test/functional/admin/checkouts_controller_test.rb +86 -0
- data/test/functional/admin/configurations_controller_test.rb +41 -0
- data/test/functional/admin/line_items_controller_test.rb +177 -0
- data/test/functional/admin/payments_controller_test.rb +120 -0
- data/test/functional/admin/product_groups_controller_test.rb +41 -0
- data/test/functional/admin/products_controller_test.rb +166 -0
- data/test/functional/admin/reports_controller_test.rb +28 -0
- data/test/functional/admin/return_authorizations_controller_test.rb +8 -0
- data/test/functional/admin/shipments_controller_test.rb +61 -0
- data/test/functional/checkouts_controller_test.rb +110 -62
- data/test/functional/line_items_controller_test.rb +26 -0
- data/test/functional/products_controller_test.rb +0 -1
- data/test/integration/searching_test.rb +175 -0
- data/test/shoulda_macros/should_redirect.rb +15 -0
- data/test/test_helper.rb +51 -7
- data/test/unit/address_test.rb +22 -2
- data/test/unit/adjustment_test.rb +96 -0
- data/test/unit/charge_test.rb +28 -4
- data/test/unit/checkout_test.rb +99 -3
- data/test/unit/credit_test.rb +2 -3
- data/test/unit/creditcard_payment_test.rb +2 -20
- data/test/unit/creditcard_test.rb +104 -16
- data/test/unit/factories_test.rb +1 -1
- data/test/unit/flat_percent_item_total_test.rb +3 -2
- data/test/unit/helpers/admin/adjustments_helper_test.rb +4 -0
- data/test/unit/helpers/admin/credits_helper_test.rb +4 -0
- data/test/unit/helpers/admin/return_authorizations_helper_test.rb +4 -0
- data/test/unit/inventory_unit_test.rb +4 -6
- data/test/unit/line_item_test.rb +1 -1
- data/test/unit/order_mailer_test.rb +48 -0
- data/test/unit/order_state_test.rb +191 -0
- data/test/unit/order_test.rb +91 -11
- data/test/unit/payment_test.rb +54 -0
- data/test/unit/preference_definition_test.rb +192 -0
- data/test/unit/product_group_test.rb +260 -0
- data/test/unit/product_scope_test.rb +62 -0
- data/test/unit/product_test.rb +20 -11
- data/test/unit/return_authorization_test.rb +104 -0
- data/test/unit/shipment_test.rb +175 -0
- data/test/unit/shipping_method_test.rb +4 -4
- data/test/unit/state_event_test.rb +17 -6
- data/test/unit/tax_rate_test.rb +1 -1
- data/test/unit/variant_test.rb +25 -12
- data/vendor/extensions/api/README.markdown +5 -0
- data/vendor/extensions/api/Rakefile +137 -0
- data/vendor/extensions/api/api_extension.rb +75 -0
- data/vendor/extensions/api/api_hooks.rb +3 -0
- data/vendor/extensions/api/app/controllers/api/base_controller.rb +90 -0
- data/vendor/extensions/api/app/controllers/api/inventory_units_controller.rb +12 -0
- data/vendor/extensions/api/app/controllers/api/line_items_controller.rb +16 -0
- data/vendor/extensions/api/app/controllers/api/orders_controller.rb +17 -0
- data/vendor/extensions/api/app/controllers/api/products_controller.rb +10 -0
- data/vendor/extensions/api/app/controllers/api/shipments_controller.rb +35 -0
- data/vendor/extensions/api/app/helpers/api/shipments_helper.rb +2 -0
- data/vendor/extensions/api/app/views/admin/users/_api_fields.html.erb +16 -0
- data/vendor/extensions/api/config/locales/en-US.yml +16 -0
- data/vendor/extensions/api/config/locales/ru-RU.yml +16 -0
- data/vendor/extensions/api/config/routes.rb +15 -0
- data/vendor/extensions/api/db/migrate/20100107141738_add_api_key_to_users.rb +9 -0
- data/vendor/extensions/api/db/seeds.rb +2 -0
- data/vendor/extensions/api/lib/tasks/api_extension_tasks.rake +17 -0
- data/vendor/extensions/api/test/functional/admin/users_controller_test.rb +32 -0
- data/vendor/extensions/api/test/integration/inventory_units_api_test.rb +36 -0
- data/vendor/extensions/api/test/integration/orders_api_test.rb +125 -0
- data/vendor/extensions/api/test/integration/shipments_api_test.rb +117 -0
- data/vendor/extensions/api/test/test_helper.rb +53 -0
- data/vendor/extensions/api/test/unit/user_test.rb +21 -0
- data/vendor/extensions/localization/app/controllers/locale_controller.rb +5 -3
- data/vendor/extensions/localization/localization_extension.rb +1 -1
- data/vendor/extensions/overview_dashboard/README.markdown +3 -0
- data/vendor/extensions/overview_dashboard/Rakefile +137 -0
- data/vendor/extensions/overview_dashboard/app/controllers/admin/overview_controller.rb +142 -0
- data/vendor/extensions/overview_dashboard/app/views/admin/overview/index.html.erb +174 -0
- data/vendor/extensions/overview_dashboard/config/routes.rb +5 -0
- data/vendor/extensions/overview_dashboard/db/seeds.rb +2 -0
- data/vendor/extensions/overview_dashboard/lib/tasks/overview_dashboard_extension_tasks.rake +28 -0
- data/vendor/extensions/overview_dashboard/overview_dashboard_extension.rb +9 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/dashboard.js +143 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/excanvas.min.js +1 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/jquery.jqplot.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.canvasTextRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.dateAxisRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.highlighter.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/javascripts/jqPlot/plugins/jqplot.pieRenderer.min.js +14 -0
- data/vendor/extensions/overview_dashboard/public/stylesheets/admin/dashboard.css +143 -0
- data/vendor/extensions/overview_dashboard/spec/spec.opts +6 -0
- data/vendor/extensions/overview_dashboard/spec/spec_helper.rb +37 -0
- data/vendor/extensions/payment_gateway/app/models/gateway.rb +47 -2
- data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net.rb +8 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/authorize_net_cim.rb +104 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/beanstream.rb +164 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/bogus.rb +80 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/linkpoint.rb +8 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/pay_pal.rb +11 -0
- data/vendor/extensions/payment_gateway/app/models/gateway/protx.rb +9 -0
- data/vendor/extensions/payment_gateway/config/locales/en-US.yml +6 -0
- data/vendor/extensions/payment_gateway/config/locales/ru-RU.yml +6 -0
- data/vendor/extensions/payment_gateway/config/routes.rb +2 -4
- data/vendor/extensions/payment_gateway/db/migrate/20091008091614_move_to_configurable_gateways.rb +55 -0
- data/vendor/extensions/payment_gateway/lib/active_merchant/billing/authorize_net_cim.rb +869 -0
- data/vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb +161 -57
- data/vendor/extensions/payment_gateway/payment_gateway_extension.rb +22 -4
- data/vendor/extensions/payment_gateway/public/javascripts/gateway.js +13 -0
- data/vendor/extensions/payment_gateway/spec/models/creditcard_spec.rb +1 -10
- data/vendor/extensions/payment_gateway/test/mocks/authorize_net_cim_mock.rb +59 -0
- data/vendor/extensions/payment_gateway/test/test_helper.rb +14 -0
- data/vendor/extensions/payment_gateway/test/unit/authorize_net_cim_test.rb +85 -0
- data/vendor/extensions/payment_gateway/test/unit/creditcard_with_authorize_net_cim_test.rb +117 -0
- data/vendor/extensions/theme_default/HOOKS.markdown +88 -0
- data/vendor/extensions/theme_default/README.markdown +3 -0
- data/vendor/extensions/theme_default/Rakefile +120 -0
- data/vendor/extensions/theme_default/app/stylesheets/_buttons.less +75 -0
- data/vendor/extensions/theme_default/app/stylesheets/_cart.less +24 -0
- data/vendor/extensions/theme_default/app/stylesheets/_checkout.less +69 -0
- data/vendor/extensions/theme_default/app/stylesheets/_checkout_progress.less +62 -0
- data/vendor/extensions/theme_default/app/stylesheets/_colors.less +16 -0
- data/vendor/extensions/theme_default/app/stylesheets/_forms.less +50 -0
- data/vendor/extensions/theme_default/app/stylesheets/_layout.less +72 -0
- data/vendor/extensions/theme_default/app/stylesheets/_messages.less +32 -0
- data/vendor/extensions/theme_default/app/stylesheets/_mixins.less +71 -0
- data/vendor/extensions/theme_default/app/stylesheets/_navigation.less +130 -0
- data/vendor/extensions/theme_default/app/stylesheets/_prices.less +18 -0
- data/vendor/extensions/theme_default/app/stylesheets/_product_details.less +56 -0
- data/vendor/extensions/theme_default/app/stylesheets/_product_lists.less +66 -0
- data/vendor/extensions/theme_default/app/stylesheets/_registration.less +24 -0
- data/vendor/extensions/theme_default/app/stylesheets/_reset.less +69 -0
- data/vendor/extensions/theme_default/app/stylesheets/_typography.less +158 -0
- data/vendor/extensions/theme_default/app/stylesheets/screen.css +11 -0
- data/vendor/extensions/theme_default/app/stylesheets/screen.less +13 -0
- data/{app → vendor/extensions/theme_default/app}/views/account/login.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/adjustments/_form.html.erb +21 -0
- data/vendor/extensions/theme_default/app/views/admin/adjustments/edit.html.erb +13 -0
- data/vendor/extensions/theme_default/app/views/admin/adjustments/index.html.erb +36 -0
- data/vendor/extensions/theme_default/app/views/admin/adjustments/new.html.erb +13 -0
- data/vendor/extensions/theme_default/app/views/admin/checkouts/_form.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/admin/checkouts/edit.html.erb +21 -0
- data/vendor/extensions/theme_default/app/views/admin/checkouts/show.html.erb +120 -0
- data/vendor/extensions/theme_default/app/views/admin/configurations/index.html.erb +74 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/configurations/new.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/coupons/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/coupons/edit.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/coupons/index.html.erb +40 -0
- data/vendor/extensions/theme_default/app/views/admin/coupons/new.html.erb +7 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/extensions/index.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/general_settings/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/general_settings/show.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/images/_form.html.erb +12 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/images/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/images/index.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/images/new.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/inventory_settings/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/inventory_settings/show.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/inventory_units/adjust.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/mail_settings/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/mail_settings/show.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/option_types/_form.html.erb +33 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/option_types/_option_value.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/option_types/available.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/option_types/edit.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/option_types/index.html.erb +37 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/option_types/new.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/option_types/selected.html.erb +38 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/_add_product.html.erb +24 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/_form.html.erb +70 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/_line_item.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/edit.html.erb +25 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/history.html.erb +25 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/index.html.erb +96 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/new.html.erb +19 -0
- data/vendor/extensions/theme_default/app/views/admin/orders/show.html.erb +45 -0
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/_form.html.erb +45 -0
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/edit.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/index.html.erb +36 -0
- data/vendor/extensions/theme_default/app/views/admin/payment_methods/new.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/_bill_address_form.html.erb +9 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/_card_form.html.erb +49 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/_form.html.erb +15 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/_list.html.erb +24 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/_transaction_list.html.erb +24 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/credit.html.erb +14 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/index.html.erb +27 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/new.html.erb +19 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/show.html.erb +10 -0
- data/{app/views/admin/shared/_order_sub_menu.html.erb → vendor/extensions/theme_default/app/views/admin/payments/source_forms/_check.html.erb} +0 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/source_forms/_gateway.html.erb +43 -0
- data/vendor/{plugins/paperclip/test/fixtures/text.txt → extensions/theme_default/app/views/admin/payments/source_views/_check.html.erb} +0 -0
- data/vendor/extensions/theme_default/app/views/admin/payments/source_views/_gateway.html.erb +35 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/_preview.html.erb +34 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/_product_scope.html.erb +24 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/edit.html.erb +56 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/index.html.erb +35 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/new.html.erb +12 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/show.html.erb +32 -0
- data/vendor/extensions/theme_default/app/views/admin/product_groups/update.js.erb +7 -0
- data/vendor/extensions/theme_default/app/views/admin/product_properties/_product_property.html.erb +17 -0
- data/vendor/extensions/theme_default/app/views/admin/product_properties/index.html.erb +59 -0
- data/vendor/extensions/theme_default/app/views/admin/product_scopes/create.js.erb +3 -0
- data/vendor/extensions/theme_default/app/views/admin/product_scopes/destroy.js.erb +2 -0
- data/vendor/extensions/theme_default/app/views/admin/product_scopes/new.html.erb +1 -0
- data/vendor/extensions/theme_default/app/views/admin/products/_form.html.erb +104 -0
- data/vendor/extensions/theme_default/app/views/admin/products/_option_types.html.erb +40 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/products/_properties_form.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/products/edit.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/products/index.html.erb +85 -0
- data/vendor/extensions/theme_default/app/views/admin/products/new.html.erb +53 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/products/show.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/properties/_form.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/properties/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/properties/filtered.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/properties/index.html.erb +43 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/properties/new.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/prototypes/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/prototypes/available.html.erb +22 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/prototypes/edit.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/prototypes/index.html.erb +40 -0
- data/vendor/extensions/theme_default/app/views/admin/prototypes/new.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/admin/prototypes/select.rjs +7 -0
- data/vendor/extensions/theme_default/app/views/admin/reports/index.html.erb +19 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/reports/sales_total.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/return_authorizations/_form.html.erb +64 -0
- data/vendor/extensions/theme_default/app/views/admin/return_authorizations/edit.html.erb +27 -0
- data/vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb +43 -0
- data/vendor/extensions/theme_default/app/views/admin/return_authorizations/new.html.erb +13 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_additional_field.html.erb +5 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_address.html.erb +5 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_address_form.html.erb +67 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_calculator_fields.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_configuration_menu.html.erb +22 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shared/_edit_resource_links.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shared/_new_resource_links.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shared/_order_details.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_order_sub_menu.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_order_tabs.html.erb +52 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_product_sub_menu.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_product_tabs.html.erb +44 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_report_criteria.html.erb +15 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shared/_show_resource_links.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/shared/_tabs.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/shipments/_form.html.erb +76 -0
- data/vendor/extensions/theme_default/app/views/admin/shipments/edit.html.erb +40 -0
- data/vendor/extensions/theme_default/app/views/admin/shipments/index.html.erb +44 -0
- data/vendor/extensions/theme_default/app/views/admin/shipments/new.html.erb +18 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shipping_categories/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_categories/edit.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_categories/index.html.erb +29 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_categories/new.html.erb +8 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/_form.html.erb +19 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/edit.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/index.html.erb +46 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_methods/new.html.erb +17 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/shipping_rates/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_rates/edit.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_rates/index.html.erb +32 -0
- data/vendor/extensions/theme_default/app/views/admin/shipping_rates/new.html.erb +8 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/states/_form.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/states/_state_list.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/states/edit.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/admin/states/index.html.erb +25 -0
- data/vendor/extensions/theme_default/app/views/admin/states/new.html.erb +10 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/tax_categories/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/edit.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/index.html.erb +37 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_categories/new.html.erb +10 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/tax_categories/show.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/tax_rates/_form.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_rates/edit.html.erb +6 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_rates/index.html.erb +34 -0
- data/vendor/extensions/theme_default/app/views/admin/tax_rates/new.html.erb +8 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/tax_settings/edit.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/tax_settings/show.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_form.html.erb +7 -0
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/_js_head.html.erb +11 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/_list.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/_manage_products.rhtml +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/_success.rhtml +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/_taxon.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/edit.html.erb +49 -0
- data/vendor/extensions/theme_default/app/views/admin/taxonomies/get_children.json.erb +9 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/index.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxonomies/new.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/taxons/_form.html.erb +13 -0
- data/vendor/extensions/theme_default/app/views/admin/taxons/_taxon_table.html.erb +28 -0
- data/vendor/extensions/theme_default/app/views/admin/taxons/available.js.erb +36 -0
- data/vendor/extensions/theme_default/app/views/admin/taxons/edit.html.erb +11 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxons/remove.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/taxons/select.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/taxons/selected.html.erb +42 -0
- data/vendor/extensions/theme_default/app/views/admin/trackers/_form.html.erb +26 -0
- data/vendor/extensions/theme_default/app/views/admin/trackers/edit.html.erb +8 -0
- data/vendor/extensions/theme_default/app/views/admin/trackers/index.html.erb +41 -0
- data/vendor/extensions/theme_default/app/views/admin/trackers/new.html.erb +9 -0
- data/vendor/extensions/theme_default/app/views/admin/users/_form.html.erb +36 -0
- data/vendor/extensions/theme_default/app/views/admin/users/edit.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/admin/users/index.html.erb +62 -0
- data/vendor/extensions/theme_default/app/views/admin/users/new.html.erb +16 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/users/show.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/variants/_form.html.erb +38 -0
- data/vendor/extensions/theme_default/app/views/admin/variants/edit.html.erb +13 -0
- data/vendor/extensions/theme_default/app/views/admin/variants/index.html.erb +54 -0
- data/vendor/extensions/theme_default/app/views/admin/variants/new.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/_country_member.html.erb +5 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/_form.html.erb +29 -0
- data/{app → vendor/extensions/theme_default/app}/views/admin/zones/_member_type.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/_state_member.html.erb +5 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/_zone_member.html.erb +5 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/edit.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/index.html.erb +40 -0
- data/vendor/extensions/theme_default/app/views/admin/zones/new.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_address.html.erb +163 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_confirm.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_delivery.html.erb +33 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_guest_checkout.html.erb +9 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_payment.html.erb +33 -0
- data/vendor/extensions/theme_default/app/views/checkouts/_summary.html.erb +36 -0
- data/vendor/extensions/theme_default/app/views/checkouts/edit.html.erb +20 -0
- data/vendor/extensions/theme_default/app/views/checkouts/payment/_check.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/checkouts/payment/_gateway.html.erb +31 -0
- data/vendor/extensions/theme_default/app/views/checkouts/register.html.erb +13 -0
- data/{app → vendor/extensions/theme_default/app}/views/content/cvv.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/countries/index.js.erb +0 -0
- data/vendor/extensions/theme_default/app/views/layouts/admin.html.erb +77 -0
- data/vendor/extensions/theme_default/app/views/layouts/spree_application.html.erb +48 -0
- data/{app → vendor/extensions/theme_default/app}/views/order_mailer/cancel.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/order_mailer/confirm.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/orders/_form.html.erb +25 -0
- data/vendor/extensions/theme_default/app/views/orders/_line_item.html.erb +43 -0
- data/vendor/extensions/theme_default/app/views/orders/edit.html.erb +29 -0
- data/{app → vendor/extensions/theme_default/app}/views/orders/new.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/orders/show.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/password_resets/edit.html.erb +12 -0
- data/vendor/extensions/theme_default/app/views/password_resets/new.html.erb +12 -0
- data/vendor/extensions/theme_default/app/views/products/_cart_form.html.erb +54 -0
- data/{app → vendor/extensions/theme_default/app}/views/products/_image.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/products/_properties.html.erb +8 -0
- data/vendor/extensions/theme_default/app/views/products/_taxons.html.erb +16 -0
- data/vendor/extensions/theme_default/app/views/products/_thumbnails.html.erb +40 -0
- data/vendor/extensions/theme_default/app/views/products/index.html.erb +31 -0
- data/vendor/extensions/theme_default/app/views/products/show.html.erb +29 -0
- data/vendor/extensions/theme_default/app/views/shared/_additional_field.html.erb +7 -0
- data/vendor/extensions/theme_default/app/views/shared/_admin_head.html.erb +21 -0
- data/{app → vendor/extensions/theme_default/app}/views/shared/_edit_resource_links.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/shared/_filters.html.erb +52 -0
- data/vendor/extensions/theme_default/app/views/shared/_footer.html.erb +11 -0
- data/vendor/extensions/theme_default/app/views/shared/_google_analytics.html.erb +39 -0
- data/vendor/extensions/theme_default/app/views/shared/_head.html.erb +9 -0
- data/vendor/extensions/theme_default/app/views/shared/_login.html.erb +37 -0
- data/{app → vendor/extensions/theme_default/app}/views/shared/_login_bar.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/shared/_nav_bar.html.erb +5 -0
- data/{app → vendor/extensions/theme_default/app}/views/shared/_new_resource_links.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/shared/_order_details.html.erb +60 -0
- data/vendor/extensions/theme_default/app/views/shared/_products.html.erb +33 -0
- data/vendor/extensions/theme_default/app/views/shared/_search.html.erb +9 -0
- data/{app → vendor/extensions/theme_default/app}/views/shared/_show_resource_links.html.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/shared/_store_menu.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/shared/_taxonomies.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/shared/_test_hook.html.erb +1 -0
- data/vendor/extensions/theme_default/app/views/shared/_user_form.html.erb +32 -0
- data/{app → vendor/extensions/theme_default/app}/views/states/index.js.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/taxons/_taxon.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/taxons/show.html.erb +17 -0
- data/{app → vendor/extensions/theme_default/app}/views/user_mailer/password_reset_instructions.erb +0 -0
- data/{app → vendor/extensions/theme_default/app}/views/user_sessions/authorization_failure.html.erb +0 -0
- data/vendor/extensions/theme_default/app/views/user_sessions/new.html.erb +8 -0
- data/vendor/extensions/theme_default/app/views/users/_openid_identifier.html.erb +10 -0
- data/vendor/extensions/theme_default/app/views/users/edit.html.erb +9 -0
- data/vendor/extensions/theme_default/app/views/users/new.html.erb +22 -0
- data/vendor/extensions/theme_default/app/views/users/show.html.erb +46 -0
- data/vendor/extensions/theme_default/lib/tasks/theme_default_extension_tasks.rake +28 -0
- data/vendor/extensions/theme_default/public/images/add-to-cart.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/active-tab.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/admin_tab_back.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/admin_tab_selected_back.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/content-back-blue.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/content-back-green.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/content-back.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/flash-error.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/flash-notice.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/green-stripes.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/green-stripes.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/grid_header_back.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/grid_header_back_green.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/header-bg.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/header_bg.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/menu-current.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/red-stripes.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/red-stripes.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/spree_50.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/subnav-divider.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/subnav.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/bg/tab-back.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/blue/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/blue/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/drag-handle-green.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/green/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/green/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/left_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/orange/left_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/orange/right_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/buttons/right_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/1.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/10.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/2.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/3.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/4.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/5.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/6.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/7.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/8.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/16x16/9.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/1.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/10.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/11.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/2.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/3.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/4.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/5.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/6.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/7.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/8.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/32x32/9.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/accept.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/add.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/add.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/arrow-down.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/cross.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/delete.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/delete.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/drag.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/edit.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/edit.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/email.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/error.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/exclamation.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/feed.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/pdf.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/reorder.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/search.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/send-email.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/stop.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/tick.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/up.gif +0 -0
- data/vendor/extensions/theme_default/public/images/admin/icons/xls.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/tabs/off-left.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/tabs/off-right.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/tabs/on-left.png +0 -0
- data/vendor/extensions/theme_default/public/images/admin/tabs/on-right.png +0 -0
- data/vendor/extensions/theme_default/public/images/ajax_loader.gif +0 -0
- data/vendor/extensions/theme_default/public/images/amex_cid.gif +0 -0
- data/vendor/extensions/theme_default/public/images/bg-button-hover.png +0 -0
- data/vendor/extensions/theme_default/public/images/bg-button-pressed.png +0 -0
- data/vendor/extensions/theme_default/public/images/bg-button.gif +0 -0
- data/vendor/extensions/theme_default/public/images/bg-button.png +0 -0
- data/vendor/extensions/theme_default/public/images/blue/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/blue/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/body-back.png +0 -0
- data/vendor/extensions/theme_default/public/images/bottom_shine.png +0 -0
- data/vendor/extensions/theme_default/public/images/breadcrumb.gif +0 -0
- data/vendor/extensions/theme_default/public/images/button-dark-hover.png +0 -0
- data/vendor/extensions/theme_default/public/images/button-dark.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/bg-button-hover.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/bg-button-pressed.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/bg-button.gif +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/bg-button.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/blue/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/blue/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/button-dark-hover.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/button-dark.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/drag-handle-green.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/green/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/green/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/left_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/orange/left_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/orange/right_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/right_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/sxsw-ribbon-v1.png +0 -0
- data/vendor/extensions/theme_default/public/images/buttons/top-shine.png +0 -0
- data/vendor/extensions/theme_default/public/images/calendar_date_select/calendar.gif +0 -0
- data/vendor/extensions/theme_default/public/images/cart-empty.png +0 -0
- data/vendor/extensions/theme_default/public/images/cart-empty_x32.png +0 -0
- data/vendor/extensions/theme_default/public/images/cart-full.png +0 -0
- data/vendor/extensions/theme_default/public/images/cart-full_x32.png +0 -0
- data/vendor/extensions/theme_default/public/images/checkout.png +0 -0
- data/vendor/extensions/theme_default/public/images/creditcard.gif +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/backstripes.gif +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/bg_header.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/bullet1.gif +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/bullet2.gif +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/cal.gif +0 -0
- data/vendor/extensions/theme_default/public/images/datepicker/gradient-e5e5e5-ffffff.gif +0 -0
- data/vendor/extensions/theme_default/public/images/discover_cid.gif +0 -0
- data/vendor/extensions/theme_default/public/images/drag-handle-green.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ad.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ae.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/af.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ag.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ai.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/al.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/am.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/an.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ao.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ar.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/as.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/at.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/au.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/aw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ax.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/az.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ba.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bb.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bd.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/be.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bi.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bj.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bo.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/br.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bs.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/by.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/bz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ca.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/catalonia.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cd.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ch.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ci.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ck.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/co.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cs.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cx.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cy.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/cz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/da.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/de.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/de_CH.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/dj.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/dm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/do.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/dz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ec.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ee.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/eg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/eh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/england.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/er.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/es.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/et.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/europeanunion.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fam.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fi.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fj.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fo.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/fr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ga.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gb.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gd.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ge.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gi.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gp.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gq.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gs.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/gy.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/hk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/hm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/hn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/hr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ht.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/hu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/id.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ie.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/il.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/in.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/io.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/iq.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ir.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/is.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/it.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/jm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/jo.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/jp.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ke.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ki.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/km.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kp.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ky.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/kz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/la.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lb.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/li.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ls.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/lv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ly.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ma.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/md.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/me.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ml.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mo.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mp.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mq.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ms.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mx.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/my.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/mz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/na.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ne.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ng.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ni.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/no.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/np.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/nz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/om.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pa.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pe.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ph.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ps.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/pw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/py.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/qa.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/re.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ro.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/rs.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ru.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/rw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sa.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sb.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/scotland.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sd.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/se.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sh.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/si.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sj.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/so.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/st.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sy.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/sz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/td.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/th.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tj.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tk.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tl.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/to.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tr.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tv.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tw.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/tz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ua.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ug.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/um.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/us.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/uy.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/uz.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/va.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/vc.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ve.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/vg.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/vi.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/vn.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/vu.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/wales.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/wf.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ws.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/ye.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/yt.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/za.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/zm.png +0 -0
- data/vendor/extensions/theme_default/public/images/flags/zw.png +0 -0
- data/vendor/extensions/theme_default/public/images/green/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/green/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/grid.png +0 -0
- data/vendor/extensions/theme_default/public/images/left_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/left_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/master_cid.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/menu-current.png +0 -0
- data/vendor/extensions/theme_default/public/images/menu-hover.png +0 -0
- data/vendor/extensions/theme_default/public/images/noimage/mini.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/noimage/product.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/noimage/small.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/openid-inputicon.gif +0 -0
- data/vendor/extensions/theme_default/public/images/orange/left_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/orange/right_03.png +0 -0
- data/vendor/extensions/theme_default/public/images/progress.gif +0 -0
- data/vendor/extensions/theme_default/public/images/rails.png +0 -0
- data/vendor/extensions/theme_default/public/images/right_01.png +0 -0
- data/vendor/extensions/theme_default/public/images/right_01_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/separator.png +0 -0
- data/vendor/extensions/theme_default/public/images/shadow-top.png +0 -0
- data/vendor/extensions/theme_default/public/images/shadow_top.png +0 -0
- data/vendor/extensions/theme_default/public/images/spinner.gif +0 -0
- data/vendor/extensions/theme_default/public/images/spree.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/spree/progress.gif +0 -0
- data/vendor/extensions/theme_default/public/images/spree/spinner.gif +0 -0
- data/vendor/extensions/theme_default/public/images/spree/spree.jpg +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/completed-completed.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/completed-current.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/completed-first.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/current-first.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/current-incomplete.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/current-right.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/incomplete-incomplete.gif +0 -0
- data/vendor/extensions/theme_default/public/images/step-progress/incomplete-right.gif +0 -0
- data/vendor/extensions/theme_default/public/images/steps/1.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/1_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/2.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/2_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/3.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/3_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/4.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/4_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/5.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/5_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/6.png +0 -0
- data/vendor/extensions/theme_default/public/images/steps/6_small.png +0 -0
- data/vendor/extensions/theme_default/public/images/sxsw-ribbon-v1.png +0 -0
- data/vendor/extensions/theme_default/public/images/tab_bottom.gif +0 -0
- data/vendor/extensions/theme_default/public/images/top-shine.png +0 -0
- data/vendor/extensions/theme_default/public/images/tree-nav-icons/bullet.gif +0 -0
- data/vendor/extensions/theme_default/public/images/tree-nav-icons/minus.gif +0 -0
- data/vendor/extensions/theme_default/public/images/tree-nav-icons/plus.gif +0 -0
- data/vendor/extensions/theme_default/public/images/tree-nav-icons/treeview-loading.gif +0 -0
- data/vendor/extensions/theme_default/public/images/tree-nav-icons/treeview-sprite.gif +0 -0
- data/vendor/extensions/theme_default/public/images/update.png +0 -0
- data/vendor/extensions/theme_default/public/images/visa_cid.gif +0 -0
- data/vendor/extensions/theme_default/public/images/wrapper-back-2.png +0 -0
- data/vendor/extensions/theme_default/public/images/wrapper-back.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menubaritem_submenuindicator.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menuitem_checkbox.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menuitem_checkbox_disabled.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menuitem_submenuindicator.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/extensions/theme_default/public/images/yui-sprite.png +0 -0
- data/vendor/extensions/theme_default/public/javascripts/additional-methods.js +236 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/address_states.js +25 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/checkouts/edit.js +79 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/orders/edit.js +96 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/orders/edit_form.js +17 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/payments/new.js +9 -0
- data/vendor/extensions/theme_default/public/javascripts/admin/unobtrusive_handlers.js +15 -0
- data/vendor/extensions/theme_default/public/javascripts/calculator.js +13 -0
- data/vendor/extensions/theme_default/public/javascripts/checkout.js +65 -0
- data/vendor/extensions/theme_default/public/javascripts/datepicker.js +1445 -0
- data/vendor/extensions/theme_default/public/javascripts/gateway.js +13 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery-1.3.2.min.js +19 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery-and-plugins.js +36 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery-ui.js +188 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/images/help.gif +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/images/important.gif +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/images/info.gif +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/images/title.gif +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/jquery.alerts.css +57 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/jquery.alerts.js +235 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.alerts/jquery.alerts.spree.css +30 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.autocomplete.min.js +13 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.js +19 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.suggest.js +276 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.template.js +255 -0
- data/vendor/extensions/theme_default/public/javascripts/jquery.validate.min.js +16 -0
- data/vendor/extensions/theme_default/public/javascripts/jrails.autocomplete.js +274 -0
- data/vendor/extensions/theme_default/public/javascripts/jrails.js +1 -0
- data/vendor/extensions/theme_default/public/javascripts/jsTree/jquery.tree.js +2058 -0
- data/vendor/extensions/theme_default/public/javascripts/jsTree/plugins/jquery.tree.contextmenu.js +129 -0
- data/vendor/extensions/theme_default/public/javascripts/jsTree/themes/apple/bg.jpg +0 -0
- data/{public/javascripts/jsTree/source/themes/spree/dot.gif → vendor/extensions/theme_default/public/javascripts/jsTree/themes/apple/dot_for_ie.gif} +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jsTree/themes/apple/icons.png +0 -0
- data/vendor/extensions/theme_default/public/javascripts/jsTree/themes/apple/style.css +34 -0
- data/{public/javascripts/jsTree/source/themes/spree → vendor/extensions/theme_default/public/javascripts/jsTree/themes/apple}/throbber.gif +0 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/af.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/ar.js +50 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/de.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/du.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/en.js +42 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/es.js +41 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/fi.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/fr.js +44 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/gr.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/he.js +49 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/it.js +13 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/nl.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/no.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/pt.js +50 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/ro.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/ru.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/sp.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/sv.js +41 -0
- data/vendor/extensions/theme_default/public/javascripts/lang/ua.js +40 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_cn.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_cs.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_da.js +21 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_de.js +21 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_es.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_fr.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_hu.js +21 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_it.js +26 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_kk.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_nl.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_no.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_pl.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_ptbr.js +30 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_ro.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_ru.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_se.js +23 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_sk.js +21 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_tr.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_tw.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/localization/messages_ua.js +24 -0
- data/vendor/extensions/theme_default/public/javascripts/nested-attribute.js +25 -0
- data/vendor/extensions/theme_default/public/javascripts/open_id.js +15 -0
- data/vendor/extensions/theme_default/public/javascripts/product.js +49 -0
- data/vendor/extensions/theme_default/public/javascripts/spree.js +53 -0
- data/vendor/extensions/theme_default/public/javascripts/taxonomy.js +196 -0
- data/vendor/extensions/theme_default/public/javascripts/zone.js +40 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-forms.css +159 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-reset.css +67 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-tables.css +31 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin-typography.css +117 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/admin.css +556 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/edit_checkouts.css +57 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/edit_orders.css +65 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/grids.css +314 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/reset-fonts-grids-2-6-0.css +7 -0
- data/vendor/extensions/theme_default/public/stylesheets/admin/yui-includes.css +14 -0
- data/vendor/extensions/theme_default/public/stylesheets/datepicker.css +263 -0
- data/vendor/extensions/theme_default/public/stylesheets/jquery.autocomplete.css +48 -0
- data/vendor/extensions/theme_default/public/stylesheets/scaffold.css +54 -0
- data/vendor/extensions/theme_default/public/stylesheets/screen.css +1181 -0
- data/vendor/extensions/theme_default/spec/spec.opts +6 -0
- data/vendor/extensions/theme_default/spec/spec_helper.rb +37 -0
- data/vendor/extensions/theme_default/theme_default_extension.rb +39 -0
- data/vendor/extensions/theme_default/theme_default_hooks.rb +2 -0
- data/vendor/plugins/attribute_fu/init.rb +10 -2
- data/vendor/plugins/attribute_fu/javascripts/jquery.template.js +255 -0
- data/vendor/plugins/attribute_fu/lib/attribute_fu/associated_form_helper.rb +12 -19
- data/vendor/plugins/attribute_fu/test/associated_form_helper_test.rb +48 -50
- data/vendor/plugins/awesome_nested_set/MIT-LICENSE +20 -0
- data/vendor/plugins/awesome_nested_set/README.rdoc +79 -0
- data/vendor/plugins/awesome_nested_set/Rakefile +54 -0
- data/vendor/plugins/awesome_nested_set/VERSION +1 -0
- data/vendor/plugins/awesome_nested_set/awesome_nested_set.gemspec +68 -0
- data/vendor/plugins/awesome_nested_set/init.rb +1 -0
- data/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb +592 -0
- data/vendor/plugins/awesome_nested_set/lib/awesome_nested_set/helper.rb +40 -0
- data/vendor/plugins/awesome_nested_set/rails/init.rb +12 -0
- data/vendor/plugins/awesome_nested_set/test/application.rb +1 -0
- data/vendor/plugins/awesome_nested_set/test/awesome_nested_set/helper_test.rb +41 -0
- data/vendor/plugins/awesome_nested_set/test/awesome_nested_set_test.rb +758 -0
- data/vendor/plugins/awesome_nested_set/test/db/database.yml +18 -0
- data/vendor/plugins/awesome_nested_set/test/db/schema.rb +30 -0
- data/vendor/plugins/awesome_nested_set/test/fixtures/categories.yml +34 -0
- data/vendor/plugins/awesome_nested_set/test/fixtures/category.rb +15 -0
- data/vendor/plugins/awesome_nested_set/test/fixtures/departments.yml +3 -0
- data/vendor/plugins/awesome_nested_set/test/fixtures/notes.yml +38 -0
- data/vendor/plugins/awesome_nested_set/test/test_helper.rb +29 -0
- data/vendor/plugins/has_calculator/lib/has_calculator.rb +2 -2
- data/vendor/plugins/jrails/CHANGELOG +43 -0
- data/vendor/plugins/jrails/LICENSE +18 -0
- data/vendor/plugins/jrails/README.rdoc +21 -0
- data/vendor/plugins/jrails/Rakefile +18 -0
- data/vendor/plugins/jrails/VERSION.yml +4 -0
- data/vendor/plugins/jrails/bin/jrails +30 -0
- data/vendor/plugins/jrails/init.rb +1 -0
- data/vendor/plugins/jrails/install.rb +9 -0
- data/vendor/plugins/jrails/javascripts/jquery-ui.js +188 -0
- data/vendor/plugins/jrails/javascripts/jquery.js +19 -0
- data/vendor/plugins/jrails/javascripts/jrails.js +1 -0
- data/vendor/plugins/jrails/javascripts/sources/jrails.js +197 -0
- data/vendor/plugins/jrails/jrails.gemspec +50 -0
- data/vendor/plugins/jrails/lib/jrails.rb +421 -0
- data/vendor/plugins/jrails/rails/init.rb +15 -0
- data/vendor/plugins/jrails/tasks/jrails.rake +25 -0
- data/vendor/plugins/{acts_as_adjacency_list → jrails_auto_complete}/MIT-LICENSE +0 -0
- data/vendor/plugins/jrails_auto_complete/README +23 -0
- data/vendor/plugins/jrails_auto_complete/Rakefile +22 -0
- data/vendor/plugins/jrails_auto_complete/init.rb +2 -0
- data/vendor/plugins/jrails_auto_complete/install.rb +8 -0
- data/vendor/plugins/jrails_auto_complete/javascripts/jquery.suggest.js +276 -0
- data/vendor/plugins/jrails_auto_complete/javascripts/jrails.autocomplete.js +274 -0
- data/vendor/plugins/jrails_auto_complete/lib/form_helpers.rb +22 -0
- data/vendor/plugins/jrails_auto_complete/lib/jrails_auto_complete.rb +20 -0
- data/vendor/plugins/jrails_auto_complete/lib/jrails_auto_complete_macro_helper.rb +103 -0
- data/vendor/plugins/jrails_auto_complete/tasks/jrails_auto_complete_tasks.rake +4 -0
- data/vendor/plugins/jrails_auto_complete/test/jrails_auto_complete_test.rb +8 -0
- data/vendor/plugins/jrails_auto_complete/uninstall.rb +7 -0
- data/vendor/plugins/open_id_authentication/CHANGELOG +35 -0
- data/vendor/plugins/open_id_authentication/README +231 -0
- data/vendor/plugins/open_id_authentication/Rakefile +22 -0
- data/vendor/plugins/open_id_authentication/generators/open_id_authentication_tables/open_id_authentication_tables_generator.rb +11 -0
- data/vendor/plugins/open_id_authentication/generators/open_id_authentication_tables/templates/migration.rb +20 -0
- data/vendor/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/templates/migration.rb +26 -0
- data/vendor/plugins/open_id_authentication/generators/upgrade_open_id_authentication_tables/upgrade_open_id_authentication_tables_generator.rb +11 -0
- data/vendor/plugins/open_id_authentication/init.rb +18 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication.rb +240 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication/association.rb +9 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb +55 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication/nonce.rb +5 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication/request.rb +23 -0
- data/vendor/plugins/open_id_authentication/lib/open_id_authentication/timeout_fixes.rb +20 -0
- data/vendor/plugins/open_id_authentication/tasks/open_id_authentication_tasks.rake +30 -0
- data/vendor/plugins/open_id_authentication/test/normalize_test.rb +32 -0
- data/vendor/plugins/open_id_authentication/test/open_id_authentication_test.rb +46 -0
- data/vendor/plugins/open_id_authentication/test/status_test.rb +14 -0
- data/vendor/plugins/open_id_authentication/test/test_helper.rb +17 -0
- data/vendor/plugins/resource_controller/lib/resource_controller/actions.rb +4 -4
- data/vendor/plugins/resource_controller/lib/resource_controller/controller.rb +17 -17
- data/vendor/plugins/resource_controller/lib/resource_controller/helpers/current_objects.rb +1 -1
- data/vendor/plugins/stump/License.txt +20 -0
- data/vendor/plugins/stump/README.rdoc +118 -0
- data/vendor/plugins/stump/init.rb +6 -0
- data/vendor/plugins/stump/lib/stump.rb +11 -0
- data/vendor/plugins/stump/lib/stump/core_ext/test_case.rb +21 -0
- data/vendor/plugins/stump/lib/stump/metaid.rb +17 -0
- data/vendor/plugins/stump/lib/stump/mock.rb +51 -0
- data/vendor/plugins/stump/lib/stump/mocks.rb +23 -0
- data/vendor/plugins/stump/lib/stump/proxy.rb +103 -0
- data/vendor/plugins/stump/lib/stump/stub.rb +34 -0
- data/vendor/plugins/stump/lib/stump/version.rb +9 -0
- data/vendor/plugins/unobtrusive_date_picker/MIT-LICENSE +19 -0
- data/vendor/plugins/unobtrusive_date_picker/README.rdoc +165 -0
- data/vendor/plugins/unobtrusive_date_picker/Rakefile +18 -0
- data/vendor/plugins/unobtrusive_date_picker/about.yml +7 -0
- data/vendor/plugins/unobtrusive_date_picker/init.rb +8 -0
- data/vendor/plugins/unobtrusive_date_picker/install.rb +14 -0
- data/vendor/plugins/unobtrusive_date_picker/lib/12_hour_time.rb +102 -0
- data/vendor/plugins/unobtrusive_date_picker/lib/unobtrusive_date_picker.rb +409 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/backstripes.gif +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/bg_header.jpg +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/bullet1.gif +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/bullet2.gif +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/cal.gif +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/images/gradient-e5e5e5-ffffff.gif +0 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/datepicker.js +1445 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/af.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/ar.js +50 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/de.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/du.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/en.js +42 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/es.js +41 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/fi.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/fr.js +44 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/gr.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/he.js +49 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/it.js +13 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/nl.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/no.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/pt.js +50 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/ro.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/ru.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/sp.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/sv.js +41 -0
- data/vendor/plugins/unobtrusive_date_picker/public/javascripts/lang/ua.js +40 -0
- data/vendor/plugins/unobtrusive_date_picker/public/stylesheets/datepicker.css +263 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/date_picker_tag_spec.rb +122 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/date_picker_text_field_spec.rb +54 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/datepicker_html_class_options_spec.rb +281 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/spec.opts +12 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/spec_helper.rb +52 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/tag_matcher.rb +142 -0
- data/vendor/plugins/unobtrusive_date_picker/spec/unobtrusive_date_picker_spec.rb +129 -0
- data/vendor/plugins/unobtrusive_date_picker/tasks/datepicker_tasks.rake +17 -0
- data/vendor/plugins/unobtrusive_date_picker/uninstall.rb +12 -0
- metadata +1441 -633
- data/app/controllers/admin/creditcard_payments_controller.rb +0 -49
- data/app/controllers/application.rb +0 -94
- data/app/helpers/admin/calculators_helper.rb +0 -2
- data/app/helpers/admin/configurations_helper.rb +0 -2
- data/app/helpers/admin/extensions_helper.rb +0 -2
- data/app/helpers/admin/mail_settings_helper.rb +0 -2
- data/app/helpers/admin/option_values_helper.rb +0 -2
- data/app/helpers/admin/shipping_categories_helper.rb +0 -2
- data/app/helpers/admin/shipping_methods_helper.rb +0 -2
- data/app/helpers/admin/tax_rates_helper.rb +0 -2
- data/app/helpers/admin/taxonomies_helper.rb +0 -3
- data/app/helpers/admin/variants_helper.rb +0 -2
- data/app/models/creditcard_payment.rb +0 -26
- data/app/models/order_observer.rb +0 -15
- data/app/views/admin/configurations/index.html.erb +0 -62
- data/app/views/admin/coupons/edit.html.erb +0 -8
- data/app/views/admin/coupons/index.html.erb +0 -38
- data/app/views/admin/coupons/new.html.erb +0 -9
- data/app/views/admin/creditcard_payments/edit.html.erb +0 -38
- data/app/views/admin/creditcard_payments/new.html.erb +0 -15
- data/app/views/admin/images/_form.html.erb +0 -12
- data/app/views/admin/option_types/_form.html.erb +0 -33
- data/app/views/admin/option_types/index.html.erb +0 -39
- data/app/views/admin/option_types/selected.html.erb +0 -38
- data/app/views/admin/orders/index.html.erb +0 -80
- data/app/views/admin/orders/show.html.erb +0 -70
- data/app/views/admin/overview/index.html.erb +0 -3
- data/app/views/admin/payments/index.html.erb +0 -30
- data/app/views/admin/product_properties/_product_property.html.erb +0 -25
- data/app/views/admin/product_properties/index.html.erb +0 -44
- data/app/views/admin/products/_form.html.erb +0 -92
- data/app/views/admin/products/_option_types.html.erb +0 -42
- data/app/views/admin/products/index.html.erb +0 -74
- data/app/views/admin/products/new.html.erb +0 -53
- data/app/views/admin/properties/index.html.erb +0 -45
- data/app/views/admin/prototypes/available.html.erb +0 -27
- data/app/views/admin/prototypes/index.html.erb +0 -42
- data/app/views/admin/prototypes/new.html.erb +0 -11
- data/app/views/admin/prototypes/select.rjs +0 -7
- data/app/views/admin/reports/index.html.erb +0 -23
- data/app/views/admin/shared/_additional_field.html.erb +0 -5
- data/app/views/admin/shared/_address.html.erb +0 -15
- data/app/views/admin/shared/_calculator_fields.html.erb +0 -15
- data/app/views/admin/shared/_configuration_menu.html.erb +0 -18
- data/app/views/admin/shared/_form_address.html.erb +0 -56
- data/app/views/admin/shared/_order_tabs.html.erb +0 -27
- data/app/views/admin/shared/_product_sub_menu.html.erb +0 -8
- data/app/views/admin/shared/_product_tabs.html.erb +0 -48
- data/app/views/admin/shared/_report_criteria.html.erb +0 -19
- data/app/views/admin/shipments/_details.html.erb +0 -19
- data/app/views/admin/shipments/_form.html.erb +0 -31
- data/app/views/admin/shipments/edit.html.erb +0 -12
- data/app/views/admin/shipments/index.html.erb +0 -22
- data/app/views/admin/shipments/new.html.erb +0 -14
- data/app/views/admin/shipping_categories/edit.html.erb +0 -8
- data/app/views/admin/shipping_categories/index.html.erb +0 -27
- data/app/views/admin/shipping_categories/new.html.erb +0 -10
- data/app/views/admin/shipping_methods/_form.html.erb +0 -12
- data/app/views/admin/shipping_methods/edit.html.erb +0 -8
- data/app/views/admin/shipping_methods/index.html.erb +0 -34
- data/app/views/admin/shipping_methods/new.html.erb +0 -10
- data/app/views/admin/shipping_rates/edit.html.erb +0 -8
- data/app/views/admin/shipping_rates/index.html.erb +0 -30
- data/app/views/admin/shipping_rates/new.html.erb +0 -10
- data/app/views/admin/states/edit.html.erb +0 -12
- data/app/views/admin/states/index.html.erb +0 -25
- data/app/views/admin/states/new.html.erb +0 -12
- data/app/views/admin/tax_categories/edit.html.erb +0 -12
- data/app/views/admin/tax_categories/index.html.erb +0 -37
- data/app/views/admin/tax_categories/new.html.erb +0 -12
- data/app/views/admin/tax_rates/edit.html.erb +0 -8
- data/app/views/admin/tax_rates/index.html.erb +0 -32
- data/app/views/admin/tax_rates/new.html.erb +0 -10
- data/app/views/admin/taxonomies/_form.html.erb +0 -5
- data/app/views/admin/taxonomies/_js_head.html.erb +0 -13
- data/app/views/admin/taxonomies/edit.html.erb +0 -30
- data/app/views/admin/taxons/_taxon_table.html.erb +0 -28
- data/app/views/admin/taxons/available.js.erb +0 -36
- data/app/views/admin/taxons/selected.html.erb +0 -25
- data/app/views/admin/users/_form.html.erb +0 -35
- data/app/views/admin/users/edit.html.erb +0 -9
- data/app/views/admin/users/index.html.erb +0 -48
- data/app/views/admin/users/new.html.erb +0 -11
- data/app/views/admin/variants/_form.html.erb +0 -40
- data/app/views/admin/variants/edit.html.erb +0 -10
- data/app/views/admin/variants/index.html.erb +0 -56
- data/app/views/admin/variants/new.html.erb +0 -8
- data/app/views/admin/zones/_country_member.html.erb +0 -5
- data/app/views/admin/zones/_form.html.erb +0 -29
- data/app/views/admin/zones/_state_member.html.erb +0 -5
- data/app/views/admin/zones/_zone_member.html.erb +0 -5
- data/app/views/admin/zones/edit.html.erb +0 -12
- data/app/views/admin/zones/index.html.erb +0 -40
- data/app/views/admin/zones/new.html.erb +0 -12
- data/app/views/checkouts/_billing.html.erb +0 -66
- data/app/views/checkouts/_confirmation.html.erb +0 -11
- data/app/views/checkouts/_form.html.erb +0 -20
- data/app/views/checkouts/_payment.html.erb +0 -45
- data/app/views/checkouts/_registration.html.erb +0 -60
- data/app/views/checkouts/_shipping.html.erb +0 -68
- data/app/views/checkouts/_shipping_method.html.erb +0 -19
- data/app/views/checkouts/_summary.html.erb +0 -36
- data/app/views/checkouts/edit.html.erb +0 -13
- data/app/views/checkouts/new.html.erb +0 -13
- data/app/views/layouts/admin.html.erb +0 -91
- data/app/views/layouts/application.html.erb +0 -47
- data/app/views/layouts/checkouts.html.erb +0 -17
- data/app/views/line_items/index.html.erb +0 -1
- data/app/views/orders/_form.html.erb +0 -19
- data/app/views/orders/_google_order.html.erb +0 -24
- data/app/views/orders/_line_item.html.erb +0 -23
- data/app/views/orders/edit.html.erb +0 -22
- data/app/views/orders/show.html.erb +0 -19
- data/app/views/password_resets/edit.html.erb +0 -12
- data/app/views/password_resets/new.html.erb +0 -11
- data/app/views/products/_cart_form.html.erb +0 -77
- data/app/views/products/_products.html.erb +0 -14
- data/app/views/products/_properties.html.erb +0 -8
- data/app/views/products/_thumbnails.html.erb +0 -58
- data/app/views/products/index.html.erb +0 -11
- data/app/views/products/show.html.erb +0 -24
- data/app/views/shared/_additional_field.html.erb +0 -7
- data/app/views/shared/_filters.html.erb +0 -52
- data/app/views/shared/_footer.html.erb +0 -21
- data/app/views/shared/_head.html.erb +0 -6
- data/app/views/shared/_login.html.erb +0 -18
- data/app/views/shared/_order_details.html.erb +0 -46
- data/app/views/shared/_order_tabs.html.erb +0 -32
- data/app/views/shared/_product_sub_menu.html.erb +0 -10
- data/app/views/shared/_product_tabs.html.erb +0 -39
- data/app/views/shared/_products.html.erb +0 -22
- data/app/views/shared/_report_criteria.html.erb +0 -33
- data/app/views/shared/_taxonomies.html.erb +0 -10
- data/app/views/taxons/show.html.erb +0 -12
- data/app/views/user_sessions/new.html.erb +0 -6
- data/app/views/users/_form.html.erb +0 -16
- data/app/views/users/edit.html.erb +0 -9
- data/app/views/users/new.html.erb +0 -12
- data/app/views/users/show.html.erb +0 -39
- data/config/environments/demo.rb +0 -22
- data/config/initializers/compass.rb +0 -8
- data/db/migrate/001_create_addresses.rb +0 -20
- data/db/migrate/002_create_cart_items.rb +0 -13
- data/db/migrate/003_create_carts.rb +0 -12
- data/db/migrate/004_create_categories.rb +0 -15
- data/db/migrate/005_create_categories_products.rb +0 -12
- data/db/migrate/006_create_line_items.rb +0 -15
- data/db/migrate/007_create_option_values.rb +0 -15
- data/db/migrate/008_create_orders.rb +0 -23
- data/db/migrate/009_create_products.rb +0 -16
- data/db/migrate/010_create_txns.rb +0 -18
- data/db/migrate/011_create_variants.rb +0 -13
- data/db/migrate/012_create_tax_treatments.rb +0 -24
- data/db/migrate/013_create_countries.rb +0 -11
- data/db/migrate/014_create_states.rb +0 -13
- data/db/migrate/015_create_option_types.rb +0 -13
- data/db/migrate/016_create_product_option_types.rb +0 -14
- data/db/migrate/017_create_option_values_variants.rb +0 -12
- data/db/migrate/018_create_images.rb +0 -20
- data/db/migrate/019_create_credit_cards.rb +0 -20
- data/db/migrate/020_create_order_operations.rb +0 -14
- data/db/migrate/021_create_inventory_units.rb +0 -15
- data/db/migrate/022_create_users.rb +0 -17
- data/db/migrate/023_create_roles.rb +0 -20
- data/db/migrate/024_create_extension_meta.rb +0 -13
- data/db/migrate/025_drop_tax_treatments.rb +0 -11
- data/db/migrate/026_add_user_to_address.rb +0 -9
- data/db/migrate/20080620100001_create_tax_rates.rb +0 -13
- data/db/migrate/20080620113300_create_taxonomies.rb +0 -13
- data/db/migrate/20080620113400_create_taxons.rb +0 -16
- data/db/migrate/20080622173128_drop_extension_meta.rb +0 -13
- data/db/migrate/20080622194800_create_prototypes.rb +0 -13
- data/db/migrate/20080622194830_create_properties.rb +0 -13
- data/db/migrate/20080622195000_create_properties_prototypes.rb +0 -12
- data/db/migrate/20080622195100_create_property_values.rb +0 -14
- data/db/migrate/20080630003326_create_zones.rb +0 -13
- data/db/migrate/20080630150630_create_preferences.rb +0 -19
- data/db/migrate/20080630152702_add_iso_country_information.rb +0 -19
- data/db/migrate/20080630154400_create_countries_zones.rb +0 -12
- data/db/migrate/20080630215310_create_zone_members.rb +0 -13
- data/db/migrate/20080703184654_update_country_rename_name.rb +0 -15
- data/db/migrate/20080704181428_create_app_configurations.rb +0 -12
- data/db/migrate/20080704190355_add_permalink_and_published_to_products.rb +0 -15
- data/db/migrate/20080704192456_update_tax_rates_add_zones_etc.rb +0 -17
- data/db/migrate/20080707002329_create_tax_categories.rb +0 -21
- data/db/migrate/20080708170103_remove_login.rb +0 -9
- data/db/migrate/20080715014028_add_optimistic_locking_to_cart.rb +0 -13
- data/db/migrate/20080716155613_products_taxons.rb +0 -12
- data/db/migrate/20080720190623_rename_txn_table.rb +0 -9
- data/db/migrate/20080729213052_drop_categories.rb +0 -8
- data/db/migrate/20080803010846_remove_prototype_presentation.rb +0 -13
- data/db/migrate/20080807214829_create_product_property.rb +0 -15
- data/db/migrate/20080815173251_remove_cart.rb +0 -10
- data/db/migrate/20080830173354_add_checkout_state_to_order.rb +0 -13
- data/db/migrate/20080901002711_address_refactor.rb +0 -14
- data/db/migrate/20080902001408_create_creditcard_payments.rb +0 -17
- data/db/migrate/20080904150723_refactor_order_state.rb +0 -33
- data/db/migrate/20080904234457_create_state_events.rb +0 -15
- data/db/migrate/20080905012833_add_inventory_state.rb +0 -13
- data/db/migrate/20080906174748_change_inventory_state_type.rb +0 -8
- data/db/migrate/20080909100504_add_state_name_to_address.rb +0 -9
- data/db/migrate/20080915211650_remove_user_address.rb +0 -10
- data/db/migrate/20080918083321_remove_presentation_from_taxonomy.rb +0 -11
- data/db/migrate/20080918140438_rename_app_configuration.rb +0 -16
- data/db/migrate/20081003211336_create_shipping_methods.rb +0 -14
- data/db/migrate/20081003233427_create_shipping_categories.rb +0 -15
- data/db/migrate/20081015001711_create_shipments.rb +0 -14
- data/db/migrate/20081016002224_remove_defunct_order_fields.rb +0 -10
- data/db/migrate/20081016162924_drop_category_id_from_products.rb +0 -9
- data/db/migrate/20081018125019_refactor_images_for_paperclip.rb +0 -40
- data/db/migrate/20081023134446_add_product_dimensions.rb +0 -19
- data/db/migrate/20081120184215_add_permalink_to_taxons.rb +0 -24
- data/db/migrate/20081121192045_additional_paperclip_refactor.rb +0 -37
- data/db/migrate/20081205155619_add_shipped_at_property.rb +0 -17
- data/db/migrate/20081208143817_create_creditcards.rb +0 -20
- data/db/migrate/20081208150007_create_payments_table.rb +0 -42
- data/db/migrate/20081209103127_add_deleted_at_to_products.rb +0 -11
- data/db/migrate/20081212015915_convert_credticard_number_to_text.rb +0 -11
- data/db/migrate/20081219091142_create_indexes.rb +0 -23
- data/db/migrate/20081221201510_create_shipping_addresses.rb +0 -16
- data/db/migrate/20090105152846_add_previous_state_to_events.rb +0 -13
- data/db/migrate/20090204200045_add_order_permalink.rb +0 -13
- data/db/migrate/20090225231119_add_more_needed_keys_items_and_conf.rb +0 -19
- data/db/migrate/20090302221152_give_all_users_user_role.rb +0 -14
- data/db/migrate/20090320113300_authlogic_changes.rb +0 -24
- data/db/migrate/20090324164010_create_option_types_prototypes.rb +0 -12
- data/db/migrate/20090401120636_meta_data_fields_for_products.rb +0 -11
- data/db/migrate/20090401203712_remove_hmp_stuff_in_zones.rb +0 -12
- data/db/migrate/20090401223217_create_eu_vat_zone_again.rb +0 -24
- data/db/migrate/20090402002244_add_user_login.rb +0 -17
- data/db/migrate/20090402161055_add_order_token.rb +0 -13
- data/db/migrate/20090402200317_add_email_to_order.rb +0 -19
- data/db/migrate/20090404192723_add_maestro_fields.rb +0 -12
- data/db/migrate/20090406091357_add_alternative_phone.rb +0 -9
- data/db/migrate/20090406174645_refactor_addresses.rb +0 -53
- data/db/migrate/20090420021303_remove_viewable_id_from_products.rb +0 -10
- data/db/migrate/20090427000000_upgrade_taxons.rb +0 -14
- data/db/migrate/20090525000325_remove_address_orphans.rb +0 -15
- data/db/migrate/20090603153927_create_checkouts.rb +0 -71
- data/db/migrate/20090617181106_change_txn_type_to_int.rb +0 -18
- data/db/migrate/20090618203233_create_charges.rb +0 -61
- data/db/migrate/20090626235303_create_credits.rb +0 -22
- data/db/migrate/20090705101511_add_image_dimensions.rb +0 -12
- data/db/migrate/20090708175306_create_coupons.rb +0 -16
- data/db/migrate/20090708175317_create_discounts.rb +0 -14
- data/db/migrate/20090714094201_add_default_addresses_to_user.rb +0 -11
- data/db/migrate/20090715172345_create_calculators.rb +0 -22
- data/db/migrate/20090731085008_add_charge_source_to_charge.rb +0 -11
- data/db/migrate/20090803072025_create_shipping_rates.rb +0 -12
- data/db/migrate/20090804090559_create_calculators_for_tax_rates.rb +0 -16
- data/db/migrate/20090805131937_drop_credits_and_discounts.rb +0 -9
- data/db/migrate/20090805185015_remove_tax_type.rb +0 -13
- data/db/migrate/20090806063212_rename_charges_to_adjustments.rb +0 -24
- data/db/migrate/20090806160214_rename_base_to_source.rb +0 -11
- data/db/migrate/20090809170304_remove_checkout_shipping_address_and_method.rb +0 -15
- data/db/migrate/20090809193131_add_is_master_to_variants.rb +0 -43
- data/db/migrate/20090809201209_drop_master_price_from_products.rb +0 -13
- data/db/migrate/20090809231957_update_legacy_calculators.rb +0 -9
- data/db/migrate/20090823005402_coupon_starts_at.rb +0 -13
- data/db/migrate/20090828114732_add_queued_mail.rb +0 -12
- data/db/migrate/20090908141056_adjust_percent_calc_settings.rb +0 -9
- data/db/migrate/migrate/20080620100001_create_tax_rates.rb +0 -13
- data/db/migrate/migrate/20080704192456_update_tax_rates_add_zones_etc.rb +0 -17
- data/db/sample/creditcard_txns.yml +0 -7
- data/db/sample/creditcards.yml +0 -10
- data/db/sample/inventory_units.yml +0 -93
- data/db/sample/payments.yml +0 -7
- data/lib/product_scopes.rb +0 -76
- data/lib/spree/setup.rb +0 -148
- data/public/javascripts/application.js +0 -36
- data/public/javascripts/calendar_date_select/calendar_date_select.js +0 -439
- data/public/javascripts/calendar_date_select/format_american.js +0 -34
- data/public/javascripts/calendar_date_select/format_db.js +0 -27
- data/public/javascripts/calendar_date_select/format_euro_24hr.js +0 -7
- data/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +0 -7
- data/public/javascripts/calendar_date_select/format_finnish.js +0 -24
- data/public/javascripts/calendar_date_select/format_hyphen_ampm.js +0 -36
- data/public/javascripts/calendar_date_select/format_iso_date.js +0 -46
- data/public/javascripts/calendar_date_select/format_italian.js +0 -24
- data/public/javascripts/calendar_date_select/locale/de.js +0 -11
- data/public/javascripts/calendar_date_select/locale/fi.js +0 -10
- data/public/javascripts/calendar_date_select/locale/fr.js +0 -10
- data/public/javascripts/calendar_date_select/locale/pl.js +0 -10
- data/public/javascripts/calendar_date_select/locale/pt.js +0 -11
- data/public/javascripts/calendar_date_select/locale/ru.js +0 -10
- data/public/javascripts/controls.js +0 -963
- data/public/javascripts/dragdrop.js +0 -972
- data/public/javascripts/effects.js +0 -1120
- data/public/javascripts/jsTree/source/_lib.js +0 -126
- data/public/javascripts/jsTree/source/themes/default/context.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/create.png +0 -0
- data/public/javascripts/jsTree/source/themes/default/f.png +0 -0
- data/public/javascripts/jsTree/source/themes/default/fminus.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/fminus_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/fplus.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/fplus_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/lastli.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/lastli_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/li.gif +0 -0
- data/public/javascripts/jsTree/source/themes/default/remove.png +0 -0
- data/public/javascripts/jsTree/source/themes/default/rename.png +0 -0
- data/public/javascripts/jsTree/source/themes/default/style.css +0 -44
- data/public/javascripts/jsTree/source/themes/marker.gif +0 -0
- data/public/javascripts/jsTree/source/themes/marker_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/plus.gif +0 -0
- data/public/javascripts/jsTree/source/themes/remove.png +0 -0
- data/public/javascripts/jsTree/source/themes/spree/context.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/create.png +0 -0
- data/public/javascripts/jsTree/source/themes/spree/f.png +0 -0
- data/public/javascripts/jsTree/source/themes/spree/fminus.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/fminus_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/fplus.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/fplus_rtl.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/lastli.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/li.gif +0 -0
- data/public/javascripts/jsTree/source/themes/spree/remove.png +0 -0
- data/public/javascripts/jsTree/source/themes/spree/rename.png +0 -0
- data/public/javascripts/jsTree/source/themes/spree/style.css +0 -39
- data/public/javascripts/jsTree/source/tree_component.css +0 -62
- data/public/javascripts/jsTree/source/tree_component.js +0 -2315
- data/public/javascripts/jsTree/source/tree_component.min.js +0 -14
- data/public/javascripts/prototype.js +0 -4225
- data/public/stylesheets/application.css +0 -7
- data/public/stylesheets/calendar_date_select/blue.css +0 -130
- data/public/stylesheets/calendar_date_select/default.css +0 -135
- data/public/stylesheets/calendar_date_select/plain.css +0 -128
- data/public/stylesheets/calendar_date_select/red.css +0 -135
- data/public/stylesheets/calendar_date_select/silver.css +0 -133
- data/public/stylesheets/sass/_buttons.sass +0 -59
- data/public/stylesheets/sass/_cart.sass +0 -21
- data/public/stylesheets/sass/_checkout.sass +0 -173
- data/public/stylesheets/sass/_colors.sass +0 -11
- data/public/stylesheets/sass/_layout.sass +0 -63
- data/public/stylesheets/sass/_messages.sass +0 -28
- data/public/stylesheets/sass/_mixins.sass +0 -17
- data/public/stylesheets/sass/_navigation.sass +0 -97
- data/public/stylesheets/sass/_prices.sass +0 -13
- data/public/stylesheets/sass/_product_detail.sass +0 -27
- data/public/stylesheets/sass/_product_thumbnail.sass +0 -58
- data/public/stylesheets/sass/_registration.sass +0 -18
- data/public/stylesheets/sass/ie.sass +0 -3
- data/public/stylesheets/sass/print.sass +0 -3
- data/public/stylesheets/sass/screen.sass +0 -22
- data/spec/fixtures/gateway_configurations.yml +0 -3
- data/spec/models/preference_definition_spec.rb +0 -184
- data/spec/preference_factory.rb +0 -58
- data/spec/views/admin/configurations/index.html.erb_spec.rb +0 -37
- data/test/factories/creditcard_payment_factory.rb +0 -11
- data/test/fixtures/gateway_configurations.yml +0 -2
- data/test/fixtures/gateways.yml +0 -4
- data/test/unit/helpers/checkouts_helper_test.rb +0 -26
- data/test/unit/incomplete_checkout_test.rb +0 -68
- data/vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb +0 -26
- data/vendor/extensions/payment_gateway/app/controllers/admin/gateway_option_values_controller.rb +0 -24
- data/vendor/extensions/payment_gateway/app/controllers/admin/gateways_controller.rb +0 -9
- data/vendor/extensions/payment_gateway/app/models/gateway_configuration.rb +0 -4
- data/vendor/extensions/payment_gateway/app/models/gateway_option.rb +0 -4
- data/vendor/extensions/payment_gateway/app/models/gateway_option_value.rb +0 -4
- data/vendor/extensions/payment_gateway/app/views/admin/gateway_configurations/_form.html.erb +0 -21
- data/vendor/extensions/payment_gateway/app/views/admin/gateway_configurations/edit.html.erb +0 -10
- data/vendor/extensions/payment_gateway/app/views/admin/gateway_option_values/_options.html.erb +0 -28
- data/vendor/extensions/payment_gateway/db/migrate/20080620120002_create_gateway_configurations.rb +0 -12
- data/vendor/extensions/payment_gateway/db/migrate/20080620120003_create_gateways.rb +0 -15
- data/vendor/extensions/payment_gateway/db/migrate/20080620120004_create_gateway_options.rb +0 -15
- data/vendor/extensions/payment_gateway/db/migrate/20080620120005_create_gateway_option_values.rb +0 -14
- data/vendor/extensions/payment_gateway/db/migrate/20080620120006_create_bogus_gateway.rb +0 -14
- data/vendor/extensions/payment_gateway/db/migrate/20080620120007_create_linkpoint_gateway.rb +0 -18
- data/vendor/extensions/payment_gateway/db/migrate/20080703120008_create_paypal_gateway.rb +0 -19
- data/vendor/extensions/payment_gateway/db/migrate/20081119210419_create_authorizenet_gateway.rb +0 -18
- data/vendor/extensions/payment_gateway/db/migrate/20081120144549_remove_authorizenet_test.rb +0 -10
- data/vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb +0 -18
- data/vendor/extensions/payment_gateway/db/migrate/20090517173727_add_currency_code_option_to_paypal_gateway.rb +0 -13
- data/vendor/extensions/payment_gateway/lib/gateway_config.rb +0 -7
- data/vendor/extensions/payment_gateway/lib/spree/bogus_gateway.rb +0 -68
- data/vendor/extensions/payment_gateway/lib/spree/gateway/config.rb +0 -22
- data/vendor/extensions/payment_gateway/spec/models/gateway_configuration_spec.rb +0 -11
- data/vendor/extensions/payment_gateway/spec/models/gateway_option_spec.rb +0 -11
- data/vendor/extensions/payment_gateway/spec/models/gateway_option_value_spec.rb +0 -11
- data/vendor/plugins/acts_as_adjacency_list/README +0 -13
- data/vendor/plugins/acts_as_adjacency_list/Rakefile +0 -22
- data/vendor/plugins/acts_as_adjacency_list/init.rb +0 -9
- data/vendor/plugins/acts_as_adjacency_list/install.rb +0 -1
- data/vendor/plugins/acts_as_adjacency_list/lib/active_record/acts/adjacency_list.rb +0 -230
- data/vendor/plugins/acts_as_adjacency_list/tasks/acts_as_adjacency_list_tasks.rake +0 -4
- data/vendor/plugins/acts_as_adjacency_list/test/acts_as_adjacency_list_test.rb +0 -293
- data/vendor/plugins/acts_as_adjacency_list/uninstall.rb +0 -1
- data/vendor/plugins/paperclip/LICENSE +0 -26
- data/vendor/plugins/paperclip/README.rdoc +0 -174
- data/vendor/plugins/paperclip/Rakefile +0 -99
- data/vendor/plugins/paperclip/generators/paperclip/USAGE +0 -5
- data/vendor/plugins/paperclip/generators/paperclip/paperclip_generator.rb +0 -27
- data/vendor/plugins/paperclip/generators/paperclip/templates/paperclip_migration.rb.erb +0 -19
- data/vendor/plugins/paperclip/init.rb +0 -1
- data/vendor/plugins/paperclip/lib/paperclip.rb +0 -350
- data/vendor/plugins/paperclip/lib/paperclip/attachment.rb +0 -413
- data/vendor/plugins/paperclip/lib/paperclip/callback_compatability.rb +0 -33
- data/vendor/plugins/paperclip/lib/paperclip/geometry.rb +0 -115
- data/vendor/plugins/paperclip/lib/paperclip/interpolations.rb +0 -105
- data/vendor/plugins/paperclip/lib/paperclip/iostream.rb +0 -58
- data/vendor/plugins/paperclip/lib/paperclip/matchers.rb +0 -4
- data/vendor/plugins/paperclip/lib/paperclip/matchers/have_attached_file_matcher.rb +0 -49
- data/vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +0 -66
- data/vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb +0 -48
- data/vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_size_matcher.rb +0 -83
- data/vendor/plugins/paperclip/lib/paperclip/processor.rb +0 -49
- data/vendor/plugins/paperclip/lib/paperclip/storage.rb +0 -236
- data/vendor/plugins/paperclip/lib/paperclip/thumbnail.rb +0 -70
- data/vendor/plugins/paperclip/lib/paperclip/upfile.rb +0 -48
- data/vendor/plugins/paperclip/paperclip.gemspec +0 -37
- data/vendor/plugins/paperclip/shoulda_macros/paperclip.rb +0 -68
- data/vendor/plugins/paperclip/tasks/paperclip_tasks.rake +0 -79
- data/vendor/plugins/paperclip/test/attachment_test.rb +0 -768
- data/vendor/plugins/paperclip/test/database.yml +0 -4
- data/vendor/plugins/paperclip/test/fixtures/12k.png +0 -0
- data/vendor/plugins/paperclip/test/fixtures/50x50.png +0 -0
- data/vendor/plugins/paperclip/test/fixtures/5k.png +0 -0
- data/vendor/plugins/paperclip/test/fixtures/bad.png +0 -1
- data/vendor/plugins/paperclip/test/fixtures/s3.yml +0 -4
- data/vendor/plugins/paperclip/test/fixtures/twopage.pdf +0 -0
- data/vendor/plugins/paperclip/test/geometry_test.rb +0 -177
- data/vendor/plugins/paperclip/test/helper.rb +0 -100
- data/vendor/plugins/paperclip/test/integration_test.rb +0 -481
- data/vendor/plugins/paperclip/test/interpolations_test.rb +0 -120
- data/vendor/plugins/paperclip/test/iostream_test.rb +0 -71
- data/vendor/plugins/paperclip/test/matchers/have_attached_file_matcher_test.rb +0 -21
- data/vendor/plugins/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb +0 -30
- data/vendor/plugins/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb +0 -21
- data/vendor/plugins/paperclip/test/matchers/validate_attachment_size_matcher_test.rb +0 -50
- data/vendor/plugins/paperclip/test/paperclip_test.rb +0 -291
- data/vendor/plugins/paperclip/test/processor_test.rb +0 -10
- data/vendor/plugins/paperclip/test/storage_test.rb +0 -282
- data/vendor/plugins/paperclip/test/thumbnail_test.rb +0 -177
- data/vendor/plugins/state_machine/CHANGELOG.rdoc +0 -97
- data/vendor/plugins/state_machine/LICENSE +0 -20
- data/vendor/plugins/state_machine/README.rdoc +0 -182
- data/vendor/plugins/state_machine/Rakefile +0 -88
- data/vendor/plugins/state_machine/init.rb +0 -1
- data/vendor/plugins/state_machine/lib/state_machine.rb +0 -129
- data/vendor/plugins/state_machine/lib/state_machine/event.rb +0 -116
- data/vendor/plugins/state_machine/lib/state_machine/machine.rb +0 -412
- data/vendor/plugins/state_machine/lib/state_machine/transition.rb +0 -227
- data/vendor/plugins/state_machine/test/app_root/app/models/auto_shop.rb +0 -34
- data/vendor/plugins/state_machine/test/app_root/app/models/car.rb +0 -19
- data/vendor/plugins/state_machine/test/app_root/app/models/highway.rb +0 -3
- data/vendor/plugins/state_machine/test/app_root/app/models/motorcycle.rb +0 -3
- data/vendor/plugins/state_machine/test/app_root/app/models/switch.rb +0 -23
- data/vendor/plugins/state_machine/test/app_root/app/models/switch_observer.rb +0 -20
- data/vendor/plugins/state_machine/test/app_root/app/models/toggle_switch.rb +0 -2
- data/vendor/plugins/state_machine/test/app_root/app/models/vehicle.rb +0 -78
- data/vendor/plugins/state_machine/test/app_root/config/environment.rb +0 -7
- data/vendor/plugins/state_machine/test/app_root/db/migrate/001_create_switches.rb +0 -12
- data/vendor/plugins/state_machine/test/app_root/db/migrate/002_create_auto_shops.rb +0 -13
- data/vendor/plugins/state_machine/test/app_root/db/migrate/003_create_highways.rb +0 -11
- data/vendor/plugins/state_machine/test/app_root/db/migrate/004_create_vehicles.rb +0 -16
- data/vendor/plugins/state_machine/test/factory.rb +0 -73
- data/vendor/plugins/state_machine/test/functional/state_machine_test.rb +0 -499
- data/vendor/plugins/state_machine/test/test_helper.rb +0 -13
- data/vendor/plugins/state_machine/test/unit/event_test.rb +0 -235
- data/vendor/plugins/state_machine/test/unit/invalid_transition_test.rb +0 -7
- data/vendor/plugins/state_machine/test/unit/machine_test.rb +0 -306
- data/vendor/plugins/state_machine/test/unit/state_machine_test.rb +0 -130
- data/vendor/plugins/state_machine/test/unit/transition_test.rb +0 -633
data/vendor/extensions/payment_gateway/db/migrate/20091008091614_move_to_configurable_gateways.rb
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
class MoveToConfigurableGateways < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
drop_table :gateways
|
4
|
+
drop_table :gateway_options
|
5
|
+
drop_table :gateway_option_values
|
6
|
+
drop_table :gateway_configurations
|
7
|
+
|
8
|
+
create_table :gateways, :force => true do |t|
|
9
|
+
t.string :type
|
10
|
+
t.string :name
|
11
|
+
t.text :description
|
12
|
+
t.boolean :active, :default => true
|
13
|
+
t.string :environment, :default => "development"
|
14
|
+
t.string :server, :default => "test"
|
15
|
+
t.boolean :test_mode, :default => true
|
16
|
+
t.timestamps
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.down
|
21
|
+
drop_table :gateways
|
22
|
+
create_table "gateway_configurations", :force => true do |t|
|
23
|
+
t.integer "gateway_id"
|
24
|
+
t.datetime "created_at"
|
25
|
+
t.datetime "updated_at"
|
26
|
+
end
|
27
|
+
|
28
|
+
create_table "gateway_option_values", :force => true do |t|
|
29
|
+
t.integer "gateway_configuration_id"
|
30
|
+
t.integer "gateway_option_id"
|
31
|
+
t.text "value"
|
32
|
+
t.datetime "created_at"
|
33
|
+
t.datetime "updated_at"
|
34
|
+
end
|
35
|
+
|
36
|
+
create_table "gateway_options", :force => true do |t|
|
37
|
+
t.string "name"
|
38
|
+
t.text "description"
|
39
|
+
t.integer "gateway_id"
|
40
|
+
t.boolean "textarea", :default => false
|
41
|
+
t.datetime "created_at"
|
42
|
+
t.datetime "updated_at"
|
43
|
+
end
|
44
|
+
|
45
|
+
create_table "gateways", :force => true do |t|
|
46
|
+
t.string "clazz"
|
47
|
+
t.string "name"
|
48
|
+
t.text "description"
|
49
|
+
t.boolean "active"
|
50
|
+
t.datetime "created_at"
|
51
|
+
t.datetime "updated_at"
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,869 @@
|
|
1
|
+
module ActiveMerchant #:nodoc:
|
2
|
+
module Billing #:nodoc:
|
3
|
+
# ==== Customer Information Manager (CIM)
|
4
|
+
#
|
5
|
+
# The Authorize.Net Customer Information Manager (CIM) is an optional additional service that allows you to store sensitive payment information on
|
6
|
+
# Authorize.Net's servers, simplifying payments for returning customers and recurring transactions. It can also help with Payment Card Industry (PCI)
|
7
|
+
# Data Security Standard compliance, since customer data is no longer stored locally.
|
8
|
+
#
|
9
|
+
# To use the AuthorizeNetCimGateway CIM must be enabled for your account.
|
10
|
+
#
|
11
|
+
# Information about CIM is available on the {Authorize.Net website}[http://www.authorize.net/solutions/merchantsolutions/merchantservices/cim/].
|
12
|
+
# Information about the CIM API is available at the {Authorize.Net Integration Center}[http://developer.authorize.net/]
|
13
|
+
#
|
14
|
+
# ==== Login and Password
|
15
|
+
#
|
16
|
+
# The login and password are not the username and password you use to
|
17
|
+
# login to the Authorize.Net Merchant Interface. Instead, you will
|
18
|
+
# use the API Login ID as the login and Transaction Key as the
|
19
|
+
# password.
|
20
|
+
#
|
21
|
+
# ==== How to Get Your API Login ID and Transaction Key
|
22
|
+
#
|
23
|
+
# 1. Log into the Merchant Interface
|
24
|
+
# 2. Select Settings from the Main Menu
|
25
|
+
# 3. Click on API Login ID and Transaction Key in the Security section
|
26
|
+
# 4. Type in the answer to the secret question configured on setup
|
27
|
+
# 5. Click Submit
|
28
|
+
class AuthorizeNetCimGateway < Gateway
|
29
|
+
|
30
|
+
class_inheritable_accessor :test_url, :live_url
|
31
|
+
|
32
|
+
self.test_url = 'https://apitest.authorize.net/xml/v1/request.api'
|
33
|
+
self.live_url = 'https://api.authorize.net/xml/v1/request.api'
|
34
|
+
|
35
|
+
AUTHORIZE_NET_CIM_NAMESPACE = 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'
|
36
|
+
|
37
|
+
CIM_ACTIONS = {
|
38
|
+
:create_customer_profile => 'createCustomerProfile',
|
39
|
+
:create_customer_payment_profile => 'createCustomerPaymentProfile',
|
40
|
+
:create_customer_shipping_address => 'createCustomerShippingAddress',
|
41
|
+
:get_customer_profile => 'getCustomerProfile',
|
42
|
+
:get_customer_payment_profile => 'getCustomerPaymentProfile',
|
43
|
+
:get_customer_shipping_address => 'getCustomerShippingAddress',
|
44
|
+
:delete_customer_profile => 'deleteCustomerProfile',
|
45
|
+
:delete_customer_payment_profile => 'deleteCustomerPaymentProfile',
|
46
|
+
:delete_customer_shipping_address => 'deleteCustomerShippingAddress',
|
47
|
+
:update_customer_profile => 'updateCustomerProfile',
|
48
|
+
:update_customer_payment_profile => 'updateCustomerPaymentProfile',
|
49
|
+
:update_customer_shipping_address => 'updateCustomerShippingAddress',
|
50
|
+
:create_customer_profile_transaction => 'createCustomerProfileTransaction',
|
51
|
+
:validate_customer_payment_profile => 'validateCustomerPaymentProfile'
|
52
|
+
}
|
53
|
+
|
54
|
+
CIM_TRANSACTION_TYPES = {
|
55
|
+
:auth_capture => 'profileTransAuthCapture',
|
56
|
+
:auth_only => 'profileTransAuthOnly',
|
57
|
+
:capture_only => 'profileTransCaptureOnly',
|
58
|
+
:prior_auth_capture => 'profileTransPriorAuthCapture',
|
59
|
+
:refund => 'profileTransRefund',
|
60
|
+
:void => 'profileTransVoid'
|
61
|
+
}
|
62
|
+
|
63
|
+
CIM_VALIDATION_MODES = {
|
64
|
+
:none => 'none',
|
65
|
+
:test => 'testMode',
|
66
|
+
:live => 'liveMode'
|
67
|
+
}
|
68
|
+
|
69
|
+
BANK_ACCOUNT_TYPES = {
|
70
|
+
:checking => 'checking',
|
71
|
+
:savings => 'savings',
|
72
|
+
:business_checking => 'businessChecking'
|
73
|
+
}
|
74
|
+
|
75
|
+
ECHECK_TYPES = {
|
76
|
+
:ccd => 'CCD',
|
77
|
+
:ppd => 'PPD'
|
78
|
+
}
|
79
|
+
|
80
|
+
self.homepage_url = 'http://www.authorize.net/'
|
81
|
+
self.display_name = 'Authorize.Net CIM'
|
82
|
+
self.supported_countries = ['US']
|
83
|
+
self.supported_cardtypes = [:visa, :master, :american_express, :discover]
|
84
|
+
|
85
|
+
# Creates a new AuthorizeNetCimGateway
|
86
|
+
#
|
87
|
+
# The gateway requires that a valid API Login ID and Transaction Key be passed
|
88
|
+
# in the +options+ hash.
|
89
|
+
#
|
90
|
+
# ==== Options
|
91
|
+
#
|
92
|
+
# * <tt>:login</tt> -- The Authorize.Net API Login ID (REQUIRED)
|
93
|
+
# * <tt>:password</tt> -- The Authorize.Net Transaction Key. (REQUIRED)
|
94
|
+
# * <tt>:test</tt> -- +true+ or +false+. If true, perform transactions against the test server.
|
95
|
+
# Otherwise, perform transactions against the production server.
|
96
|
+
def initialize(options = {})
|
97
|
+
requires!(options, :login, :password)
|
98
|
+
@options = options
|
99
|
+
super
|
100
|
+
end
|
101
|
+
|
102
|
+
# Creates a new customer profile along with any customer payment profiles and customer shipping addresses
|
103
|
+
# for the customer profile.
|
104
|
+
#
|
105
|
+
# Returns a Response with the Customer Profile ID of the new customer profile in the authorization field.
|
106
|
+
# It is *CRITICAL* that you save this ID. There is no way to retrieve this through the API. You will not
|
107
|
+
# be able to create another Customer Profile with the same information.
|
108
|
+
#
|
109
|
+
# ==== Options
|
110
|
+
#
|
111
|
+
# TODO
|
112
|
+
def create_customer_profile(options)
|
113
|
+
# TODO Add requires
|
114
|
+
request = build_request(:create_customer_profile, options)
|
115
|
+
commit(:create_customer_profile, request)
|
116
|
+
end
|
117
|
+
|
118
|
+
# Creates a new customer payment profile for an existing customer profile.
|
119
|
+
#
|
120
|
+
# ==== Options
|
121
|
+
#
|
122
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer the payment profile will be added to. (REQUIRED)
|
123
|
+
# * <tt>:payment_profile</tt> -- A hash containing the elements of the new payment profile (REQUIRED)
|
124
|
+
#
|
125
|
+
# ==== Payment Profile
|
126
|
+
#
|
127
|
+
# * <tt>:payment</tt> -- A hash containing information on payment. Either :credit_card or :bank_account (REQUIRED)
|
128
|
+
def create_customer_payment_profile(options)
|
129
|
+
requires!(options, :customer_profile_id)
|
130
|
+
requires!(options, :payment_profile)
|
131
|
+
requires!(options[:payment_profile], :payment)
|
132
|
+
|
133
|
+
request = build_request(:create_customer_payment_profile, options)
|
134
|
+
commit(:create_customer_payment_profile, request)
|
135
|
+
end
|
136
|
+
|
137
|
+
# Creates a new customer shipping address for an existing customer profile.
|
138
|
+
#
|
139
|
+
# ==== Options
|
140
|
+
#
|
141
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer the payment profile will be added to. (REQUIRED)
|
142
|
+
# * <tt>:address</tt> -- A hash containing the elements of the shipping address (REQUIRED)
|
143
|
+
def create_customer_shipping_address(options)
|
144
|
+
requires!(options, :customer_profile_id)
|
145
|
+
requires!(options, :address)
|
146
|
+
|
147
|
+
request = build_request(:create_customer_shipping_address, options)
|
148
|
+
commit(:create_customer_shipping_address, request)
|
149
|
+
end
|
150
|
+
|
151
|
+
# Deletes an existing customer profile along with all associated customer payment profiles and customer shipping addresses.
|
152
|
+
#
|
153
|
+
# ==== Options
|
154
|
+
#
|
155
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer to be deleted. (REQUIRED)
|
156
|
+
def delete_customer_profile(options)
|
157
|
+
requires!(options, :customer_profile_id)
|
158
|
+
|
159
|
+
request = build_request(:delete_customer_profile, options)
|
160
|
+
commit(:delete_customer_profile, request)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Deletes a customer payment profile from an existing customer profile.
|
164
|
+
#
|
165
|
+
# ==== Options
|
166
|
+
#
|
167
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer with the payment profile to be deleted. (REQUIRED)
|
168
|
+
# * <tt>:customer_payment_profile_id</tt> -- The Payment Profile ID of the payment profile to be deleted. (REQUIRED)
|
169
|
+
def delete_customer_payment_profile(options)
|
170
|
+
requires!(options, :customer_profile_id)
|
171
|
+
requires!(options, :customer_payment_profile_id)
|
172
|
+
|
173
|
+
request = build_request(:delete_customer_payment_profile, options)
|
174
|
+
commit(:delete_customer_payment_profile, request)
|
175
|
+
end
|
176
|
+
|
177
|
+
# Deletes a customer shipping address from an existing customer profile.
|
178
|
+
#
|
179
|
+
# ==== Options
|
180
|
+
#
|
181
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer with the payment profile to be deleted. (REQUIRED)
|
182
|
+
# * <tt>:customer_address_id</tt> -- The Shipping Address ID of the shipping address to be deleted. (REQUIRED)
|
183
|
+
def delete_customer_shipping_address(options)
|
184
|
+
requires!(options, :customer_profile_id)
|
185
|
+
requires!(options, :customer_address_id)
|
186
|
+
|
187
|
+
request = build_request(:delete_customer_shipping_address, options)
|
188
|
+
commit(:delete_customer_shipping_address, request)
|
189
|
+
end
|
190
|
+
|
191
|
+
# Retrieves an existing customer profile along with all the associated customer payment profiles and customer shipping addresses.
|
192
|
+
#
|
193
|
+
# Returns a Response whose params hash contains all the profile information.
|
194
|
+
#
|
195
|
+
# ==== Options
|
196
|
+
#
|
197
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer to retrieve. (REQUIRED)
|
198
|
+
def get_customer_profile(options)
|
199
|
+
requires!(options, :customer_profile_id)
|
200
|
+
|
201
|
+
request = build_request(:get_customer_profile, options)
|
202
|
+
commit(:get_customer_profile, request)
|
203
|
+
end
|
204
|
+
|
205
|
+
# Retrieve a customer payment profile for an existing customer profile.
|
206
|
+
#
|
207
|
+
# Returns a Response whose params hash contains all the payment profile information. Sensitive information such as credit card
|
208
|
+
# numbers will be masked.
|
209
|
+
#
|
210
|
+
# ==== Options
|
211
|
+
#
|
212
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer with the payment profile to be retrieved. (REQUIRED)
|
213
|
+
# * <tt>:customer_payment_profile_id</tt> -- The Payment Profile ID of the payment profile to be retrieved. (REQUIRED)
|
214
|
+
def get_customer_payment_profile(options)
|
215
|
+
requires!(options, :customer_profile_id)
|
216
|
+
requires!(options, :customer_payment_profile_id)
|
217
|
+
|
218
|
+
request = build_request(:get_customer_payment_profile, options)
|
219
|
+
commit(:get_customer_payment_profile, request)
|
220
|
+
end
|
221
|
+
|
222
|
+
# Retrieve a customer shipping address for an existing customer profile.
|
223
|
+
#
|
224
|
+
# Returns a Response whose params hash contains all the shipping address information.
|
225
|
+
#
|
226
|
+
# ==== Options
|
227
|
+
#
|
228
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer with the payment profile to be retrieved. (REQUIRED)
|
229
|
+
# * <tt>:customer_address_id</tt> -- The Shipping Address ID of the shipping address to be retrieved. (REQUIRED)
|
230
|
+
def get_customer_shipping_address(options)
|
231
|
+
requires!(options, :customer_profile_id)
|
232
|
+
requires!(options, :customer_address_id)
|
233
|
+
|
234
|
+
request = build_request(:get_customer_shipping_address, options)
|
235
|
+
commit(:get_customer_shipping_address, request)
|
236
|
+
end
|
237
|
+
|
238
|
+
# Updates an existing customer profile.
|
239
|
+
#
|
240
|
+
# Warning: if you do not provide a parameter in the <tt>:payment_profile</tt> hash, it is automatically set to nil at
|
241
|
+
# Authorize.Net. You will most likely want to first get the profile hash using get_customer_profile and then only change the
|
242
|
+
# elements you wish to change.
|
243
|
+
#
|
244
|
+
# ==== Options
|
245
|
+
#
|
246
|
+
# * <tt>:profile</tt> -- A hash containing the values the Customer Profile should be updated to. (REQUIRED)
|
247
|
+
#
|
248
|
+
# ==== Profile
|
249
|
+
#
|
250
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer profile to update. (REQUIRED)
|
251
|
+
def update_customer_profile(options)
|
252
|
+
requires!(options, :profile)
|
253
|
+
requires!(options[:profile], :customer_profile_id)
|
254
|
+
|
255
|
+
request = build_request(:update_customer_profile, options)
|
256
|
+
commit(:update_customer_profile, request)
|
257
|
+
end
|
258
|
+
|
259
|
+
# Updates a customer payment profile for an existing customer profile.
|
260
|
+
#
|
261
|
+
# Warning: if you do not provide a parameter in the <tt>:payment_profile</tt> hash, it is automatically set to nil at
|
262
|
+
# Authorize.Net. You will most likely want to first get the profile hash using get_customer_payment_profile and then only
|
263
|
+
# change the elements you wish to change.
|
264
|
+
#
|
265
|
+
# ==== Options
|
266
|
+
#
|
267
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer with the payment profile to be updated. (REQUIRED)
|
268
|
+
# * <tt>:payment_profile</tt> -- A hash containing the values the Customer Payment Profile should be updated to. (REQUIRED)
|
269
|
+
#
|
270
|
+
# ==== Payment Profile
|
271
|
+
#
|
272
|
+
# * <tt>:customer_payment_profile_id</tt> -- The Customer Payment Profile ID of the Customer Payment Profile to update. (REQUIRED)
|
273
|
+
def update_customer_payment_profile(options)
|
274
|
+
requires!(options, :customer_profile_id, :payment_profile)
|
275
|
+
requires!(options[:payment_profile], :customer_payment_profile_id)
|
276
|
+
|
277
|
+
request = build_request(:update_customer_payment_profile, options)
|
278
|
+
commit(:update_customer_payment_profile, request)
|
279
|
+
end
|
280
|
+
|
281
|
+
# Updates a customer shipping address for an existing customer profile.
|
282
|
+
#
|
283
|
+
# Warning: if you do not provide a parameter in the <tt>:address</tt> hash, it is automatically set to nil at
|
284
|
+
# Authorize.Net. You will most likely want to first get the profile hash using get_customer_shipping_address and then only
|
285
|
+
# change the elements you wish to change.
|
286
|
+
#
|
287
|
+
# ==== Options
|
288
|
+
#
|
289
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer with the payment profile to be updated. (REQUIRED)
|
290
|
+
# * <tt>:address</tt> -- A hash containing the values the Customer Shipping Address should be updated to. (REQUIRED)
|
291
|
+
#
|
292
|
+
# ==== Address
|
293
|
+
#
|
294
|
+
# * <tt>:customer_address_id</tt> -- The Customer Address ID of the Customer Payment Profile to update. (REQUIRED)
|
295
|
+
def update_customer_shipping_address(options)
|
296
|
+
requires!(options, :customer_profile_id, :address)
|
297
|
+
requires!(options[:address], :customer_address_id)
|
298
|
+
|
299
|
+
request = build_request(:update_customer_shipping_address, options)
|
300
|
+
commit(:update_customer_shipping_address, request)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Creates a new payment transaction from an existing customer profile
|
304
|
+
#
|
305
|
+
# This is what is used to charge a customer whose information you have stored in a Customer Profile.
|
306
|
+
#
|
307
|
+
# Returns a Response object that contains the result of the transaction in <tt>params['direct_response']</tt>
|
308
|
+
#
|
309
|
+
# ==== Options
|
310
|
+
#
|
311
|
+
# * <tt>:transaction</tt> -- A hash containing information on the transaction that is being requested. (REQUIRED)
|
312
|
+
#
|
313
|
+
# ==== Transaction
|
314
|
+
#
|
315
|
+
# * <tt>:type</tt> -- The type of transaction. Can be either <tt>:auth_only</tt>, <tt>:capture_only</tt>, <tt>:auth_capture</tt>, <tt>:prior_auth_capture</tt>, <tt>:refund</tt> or <tt>:void</tt>. (REQUIRED)
|
316
|
+
# * <tt>:amount</tt> -- The amount for the tranaction. Formatted with a decimal. For example "4.95" (CONDITIONAL)
|
317
|
+
# - :type == :void (NOT USED)
|
318
|
+
# - :type == (:refund, :auth_only, :capture_only, :auth_capture, :prior_auth_capture) (REQUIRED)
|
319
|
+
#
|
320
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer to use in this transaction. (CONDITIONAL)
|
321
|
+
# - :type == (:void, :prior_auth_capture) (OPTIONAL)
|
322
|
+
# - :type == :refund (CONDITIONAL - required if masked information is not being submitted [see below])
|
323
|
+
# - :type == (:auth_only, :capture_only, :auth_capture) (REQUIRED)
|
324
|
+
#
|
325
|
+
# * <tt>:customer_payment_profile_id</tt> -- The Customer Payment Profile ID of the Customer Payment Profile to use in this transaction. (CONDITIONAL)
|
326
|
+
# - :type == (:void, :prior_auth_capture) (OPTIONAL)
|
327
|
+
# - :type == :refund (CONDITIONAL - required if masked information is not being submitted [see below])
|
328
|
+
# - :type == (:auth_only, :capture_only, :auth_capture) (REQUIRED)
|
329
|
+
#
|
330
|
+
# * <tt>:trans_id</tt> -- The payment gateway assigned transaction ID of the original transaction (CONDITIONAL):
|
331
|
+
# - :type = (:void, :refund, :prior_auth_capture) (REQUIRED)
|
332
|
+
# - :type = (:auth_only, :capture_only, :auth_capture) (NOT USED)
|
333
|
+
#
|
334
|
+
# * <tt>customer_shipping_address_id</tt> -- Payment gateway assigned ID associated with the customer shipping address (CONDITIONAL)
|
335
|
+
# - :type = (:void, :refund) (OPTIONAL)
|
336
|
+
# - :type = (:auth_only, :capture_only, :auth_capture) (NOT USED)
|
337
|
+
# - :type = (:prior_auth_capture) (OPTIONAL)
|
338
|
+
#
|
339
|
+
# ==== For :type == :refund only
|
340
|
+
# * <tt>:credit_card_number_masked</tt> -- (CONDITIONAL - requied for credit card refunds is :customer_profile_id AND :customer_payment_profile_id are missing)
|
341
|
+
# * <tt>:bank_routing_number_masked && :bank_account_number_masked</tt> -- (CONDITIONAL - requied for electronic check refunds is :customer_profile_id AND :customer_payment_profile_id are missing) (NOT ABLE TO TEST - I keep getting "ACH transactions are not accepted by this merchant." when trying to make a payment and, until that's possible I can't refund (wiseleyb@gmail.com))
|
342
|
+
def create_customer_profile_transaction(options)
|
343
|
+
requires!(options, :transaction)
|
344
|
+
requires!(options[:transaction], :type)
|
345
|
+
case options[:transaction][:type]
|
346
|
+
when :void
|
347
|
+
requires!(options[:transaction], :trans_id)
|
348
|
+
when :refund
|
349
|
+
requires!(options[:transaction], :trans_id) &&
|
350
|
+
(
|
351
|
+
(options[:transaction][:customer_profile_id] && options[:transaction][:customer_payment_profile_id]) ||
|
352
|
+
options[:transaction][:credit_card_number_masked] ||
|
353
|
+
(options[:transaction][:bank_routing_number_masked] && options[:transaction][:bank_account_number_masked])
|
354
|
+
)
|
355
|
+
when :prior_auth_capture
|
356
|
+
requires!(options[:transaction], :amount, :trans_id)
|
357
|
+
else
|
358
|
+
requires!(options[:transaction], :amount, :customer_profile_id, :customer_payment_profile_id)
|
359
|
+
end
|
360
|
+
request = build_request(:create_customer_profile_transaction, options)
|
361
|
+
commit(:create_customer_profile_transaction, request)
|
362
|
+
end
|
363
|
+
|
364
|
+
# Creates a new payment transaction for refund from an existing customer profile
|
365
|
+
#
|
366
|
+
# This is what is used to refund a transaction you have stored in a Customer Profile.
|
367
|
+
#
|
368
|
+
# Returns a Response object that contains the result of the transaction in <tt>params['direct_response']</tt>
|
369
|
+
#
|
370
|
+
# ==== Options
|
371
|
+
#
|
372
|
+
# * <tt>:transaction</tt> -- A hash containing information on the transaction that is being requested. (REQUIRED)
|
373
|
+
#
|
374
|
+
# ==== Transaction
|
375
|
+
#
|
376
|
+
# * <tt>:amount</tt> -- The total amount to be refunded (REQUIRED)
|
377
|
+
#
|
378
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer to use in this transaction. (CONDITIONAL :customer_payment_profile_id must be included if used)
|
379
|
+
# * <tt>:customer_payment_profile_id</tt> -- The Customer Payment Profile ID of the Customer Payment Profile to use in this transaction. (CONDITIONAL :customer_profile_id must be included if used)
|
380
|
+
#
|
381
|
+
# * <tt>:credit_card_number_masked</tt> -- Four Xs follwed by the last four digits of the credit card (CONDITIONAL - used if customer_profile_id and customer_payment_profile_id aren't given)
|
382
|
+
#
|
383
|
+
# * <tt>:bank_routing_number_masked</tt> -- The last four gidits of the routing number to be refunded (CONDITIONAL - must be used with :bank_account_number_masked)
|
384
|
+
# * <tt>:bank_account_number_masked</tt> -- The last four digis of the bank account number to be refunded, Ex. XXXX1234 (CONDITIONAL - must be used with :bank_routing_number_masked)
|
385
|
+
def create_customer_profile_transaction_for_refund(options)
|
386
|
+
requires!(options, :transaction)
|
387
|
+
options[:transaction][:type] = :refund
|
388
|
+
requires!(options[:transaction], :trans_id)
|
389
|
+
requires!(options[:transaction], :amount)
|
390
|
+
request = build_request(:create_customer_profile_transaction, options)
|
391
|
+
commit(:create_customer_profile_transaction, request)
|
392
|
+
end
|
393
|
+
|
394
|
+
# Creates a new payment transaction for void from an existing customer profile
|
395
|
+
#
|
396
|
+
# This is what is used to void a transaction you have stored in a Customer Profile.
|
397
|
+
#
|
398
|
+
# Returns a Response object that contains the result of the transaction in <tt>params['direct_response']</tt>
|
399
|
+
#
|
400
|
+
# ==== Options
|
401
|
+
#
|
402
|
+
# * <tt>:transaction</tt> -- A hash containing information on the transaction that is being requested. (REQUIRED)
|
403
|
+
#
|
404
|
+
# ==== Transaction
|
405
|
+
#
|
406
|
+
# * <tt>:trans_id</tt> -- The payment gateway assigned transaction id of the original transaction. (REQUIRED)
|
407
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer to use in this transaction.
|
408
|
+
# * <tt>:customer_payment_profile_id</tt> -- The Customer Payment Profile ID of the Customer Payment Profile to use in this transaction.
|
409
|
+
# * <tt>:customer_shipping_address_id</tt> -- Payment gateway assigned ID associated with the customer shipping address.
|
410
|
+
def create_customer_profile_transaction_for_void(options)
|
411
|
+
requires!(options, :transaction)
|
412
|
+
options[:transaction][:type] = :void
|
413
|
+
requires!(options[:transaction], :trans_id)
|
414
|
+
request = build_request(:create_customer_profile_transaction, options)
|
415
|
+
commit(:create_customer_profile_transaction, request)
|
416
|
+
end
|
417
|
+
|
418
|
+
# Verifies an existing customer payment profile by generating a test transaction
|
419
|
+
#
|
420
|
+
# Returns a Response object that contains the result of the transaction in <tt>params['direct_response']</tt>
|
421
|
+
#
|
422
|
+
# ==== Options
|
423
|
+
#
|
424
|
+
# * <tt>:customer_profile_id</tt> -- The Customer Profile ID of the customer to use in this transaction. (REQUIRED)
|
425
|
+
# * <tt>:customer_payment_profile_id</tt> -- The Customer Payment Profile ID of the Customer Payment Profile to be verified. (REQUIRED)
|
426
|
+
# * <tt>:customer_address_id</tt> -- The Customer Address ID of the Customer Shipping Address to be verified.
|
427
|
+
# * <tt>:validation_mode</tt> -- <tt>:live</tt> or <tt>:test</tt> In Test Mode, only field validation is performed.
|
428
|
+
# In Live Mode, a transaction is generated and submitted to the processor with the amount of $0.01. If successful, the transaction is immediately voided. (REQUIRED)
|
429
|
+
def validate_customer_payment_profile(options)
|
430
|
+
requires!(options, :customer_profile_id, :customer_payment_profile_id, :validation_mode)
|
431
|
+
|
432
|
+
request = build_request(:validate_customer_payment_profile, options)
|
433
|
+
commit(:validate_customer_payment_profile, request)
|
434
|
+
end
|
435
|
+
|
436
|
+
private
|
437
|
+
|
438
|
+
def expdate(credit_card)
|
439
|
+
sprintf('%04d-%02d', credit_card.year, credit_card.month)
|
440
|
+
end
|
441
|
+
|
442
|
+
def build_request(action, options = {})
|
443
|
+
unless CIM_ACTIONS.include?(action)
|
444
|
+
raise StandardError, "Invalid Customer Information Manager Action: #{action}"
|
445
|
+
end
|
446
|
+
|
447
|
+
xml = Builder::XmlMarkup.new(:indent => 2)
|
448
|
+
xml.instruct!(:xml, :version => '1.0', :encoding => 'utf-8')
|
449
|
+
xml.tag!("#{CIM_ACTIONS[action]}Request", :xmlns => AUTHORIZE_NET_CIM_NAMESPACE) do
|
450
|
+
add_merchant_authentication(xml)
|
451
|
+
# Merchant-assigned reference ID for the request
|
452
|
+
xml.tag!('refId', options[:ref_id]) if options[:ref_id]
|
453
|
+
send("build_#{action}_request", xml, options)
|
454
|
+
end
|
455
|
+
end
|
456
|
+
|
457
|
+
# Contains the merchant’s payment gateway account authentication information
|
458
|
+
def add_merchant_authentication(xml)
|
459
|
+
xml.tag!('merchantAuthentication') do
|
460
|
+
xml.tag!('name', @options[:login])
|
461
|
+
xml.tag!('transactionKey', @options[:password])
|
462
|
+
end
|
463
|
+
end
|
464
|
+
|
465
|
+
def build_create_customer_profile_request(xml, options)
|
466
|
+
add_profile(xml, options[:profile])
|
467
|
+
|
468
|
+
xml.target!
|
469
|
+
end
|
470
|
+
|
471
|
+
def build_create_customer_payment_profile_request(xml, options)
|
472
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
473
|
+
|
474
|
+
xml.tag!('paymentProfile') do
|
475
|
+
add_payment_profile(xml, options[:payment_profile])
|
476
|
+
end
|
477
|
+
|
478
|
+
xml.tag!('validationMode', CIM_VALIDATION_MODES[options[:validation_mode]]) if options[:validation_mode]
|
479
|
+
|
480
|
+
xml.target!
|
481
|
+
end
|
482
|
+
|
483
|
+
def build_create_customer_shipping_address_request(xml, options)
|
484
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
485
|
+
|
486
|
+
xml.tag!('address') do
|
487
|
+
add_address(xml, options[:address])
|
488
|
+
end
|
489
|
+
|
490
|
+
xml.target!
|
491
|
+
end
|
492
|
+
|
493
|
+
def build_delete_customer_profile_request(xml, options)
|
494
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
495
|
+
xml.target!
|
496
|
+
end
|
497
|
+
|
498
|
+
def build_delete_customer_payment_profile_request(xml, options)
|
499
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
500
|
+
xml.tag!('customerPaymentProfileId', options[:customer_payment_profile_id])
|
501
|
+
xml.target!
|
502
|
+
end
|
503
|
+
|
504
|
+
def build_delete_customer_shipping_address_request(xml, options)
|
505
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
506
|
+
xml.tag!('customerAddressId', options[:customer_address_id])
|
507
|
+
xml.target!
|
508
|
+
end
|
509
|
+
|
510
|
+
def build_get_customer_profile_request(xml, options)
|
511
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
512
|
+
xml.target!
|
513
|
+
end
|
514
|
+
|
515
|
+
def build_get_customer_payment_profile_request(xml, options)
|
516
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
517
|
+
xml.tag!('customerPaymentProfileId', options[:customer_payment_profile_id])
|
518
|
+
xml.target!
|
519
|
+
end
|
520
|
+
|
521
|
+
def build_get_customer_shipping_address_request(xml, options)
|
522
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
523
|
+
xml.tag!('customerAddressId', options[:customer_address_id])
|
524
|
+
xml.target!
|
525
|
+
end
|
526
|
+
|
527
|
+
def build_update_customer_profile_request(xml, options)
|
528
|
+
add_profile(xml, options[:profile], true)
|
529
|
+
|
530
|
+
xml.target!
|
531
|
+
end
|
532
|
+
|
533
|
+
def build_update_customer_payment_profile_request(xml, options)
|
534
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
535
|
+
|
536
|
+
xml.tag!('paymentProfile') do
|
537
|
+
add_payment_profile(xml, options[:payment_profile])
|
538
|
+
end
|
539
|
+
|
540
|
+
xml.target!
|
541
|
+
end
|
542
|
+
|
543
|
+
def build_update_customer_shipping_address_request(xml, options)
|
544
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
545
|
+
|
546
|
+
xml.tag!('address') do
|
547
|
+
add_address(xml, options[:address])
|
548
|
+
end
|
549
|
+
|
550
|
+
xml.target!
|
551
|
+
end
|
552
|
+
|
553
|
+
def build_create_customer_profile_transaction_request(xml, options)
|
554
|
+
add_transaction(xml, options[:transaction])
|
555
|
+
xml.tag!('extraOptions', "x_test_request=TRUE") if @options[:test]
|
556
|
+
|
557
|
+
xml.target!
|
558
|
+
end
|
559
|
+
|
560
|
+
def build_validate_customer_payment_profile_request(xml, options)
|
561
|
+
xml.tag!('customerProfileId', options[:customer_profile_id])
|
562
|
+
xml.tag!('customerPaymentProfileId', options[:customer_payment_profile_id])
|
563
|
+
xml.tag!('customerShippingAddressId', options[:customer_address_id]) if options[:customer_address_id]
|
564
|
+
xml.tag!('validationMode', CIM_VALIDATION_MODES[options[:validation_mode]]) if options[:validation_mode]
|
565
|
+
|
566
|
+
xml.target!
|
567
|
+
end
|
568
|
+
|
569
|
+
# :merchant_customer_id (Optional)
|
570
|
+
# :description (Optional)
|
571
|
+
# :email (Optional)
|
572
|
+
# :payment_profiles (Optional)
|
573
|
+
def add_profile(xml, profile, update = false)
|
574
|
+
xml.tag!('profile') do
|
575
|
+
# Merchant assigned ID for the customer. Up to 20 characters. (optional)
|
576
|
+
xml.tag!('merchantCustomerId', profile[:merchant_customer_id]) if profile[:merchant_customer_id]
|
577
|
+
# Description of the customer. Up to 255 Characters (optional)
|
578
|
+
xml.tag!('description', profile[:description]) if profile[:description]
|
579
|
+
# Email Address for the customer. Up to 255 Characters (optional)
|
580
|
+
xml.tag!('email', profile[:email]) if profile[:email]
|
581
|
+
|
582
|
+
if update
|
583
|
+
xml.tag!('customerProfileId', profile[:customer_profile_id])
|
584
|
+
else
|
585
|
+
add_payment_profiles(xml, profile[:payment_profiles]) if profile[:payment_profiles]
|
586
|
+
add_ship_to_list(xml, profile[:ship_to_list]) if profile[:ship_to_list]
|
587
|
+
end
|
588
|
+
end
|
589
|
+
end
|
590
|
+
|
591
|
+
def add_transaction(xml, transaction)
|
592
|
+
unless CIM_TRANSACTION_TYPES.include?(transaction[:type])
|
593
|
+
raise StandardError, "Invalid Customer Information Manager Transaction Type: #{transaction[:type]}"
|
594
|
+
end
|
595
|
+
|
596
|
+
xml.tag!('transaction') do
|
597
|
+
xml.tag!(CIM_TRANSACTION_TYPES[transaction[:type]]) do
|
598
|
+
# The amount to be billed to the customer
|
599
|
+
case transaction[:type]
|
600
|
+
when :void
|
601
|
+
tag_unless_blank(xml,'customerProfileId', transaction[:customer_profile_id])
|
602
|
+
tag_unless_blank(xml,'customerPaymentProfileId', transaction[:customer_payment_profile_id])
|
603
|
+
tag_unless_blank(xml,'customerShippingAddressId', transaction[:customer_shipping_address_id])
|
604
|
+
xml.tag!('transId', transaction[:trans_id])
|
605
|
+
when :refund
|
606
|
+
#TODO - add support for all the other options fields
|
607
|
+
xml.tag!('amount', transaction[:amount])
|
608
|
+
tag_unless_blank(xml, 'customerProfileId', transaction[:customer_profile_id])
|
609
|
+
tag_unless_blank(xml, 'customerPaymentProfileId', transaction[:customer_payment_profile_id])
|
610
|
+
tag_unless_blank(xml, 'customerShippingAddressId', transaction[:customer_shipping_address_id])
|
611
|
+
tag_unless_blank(xml, 'creditCardNumberMasked', transaction[:credit_card_number_masked])
|
612
|
+
tag_unless_blank(xml, 'bankRoutingNumberMasked', transaction[:bank_routing_number_masked])
|
613
|
+
tag_unless_blank(xml, 'bankAccountNumberMasked', transaction[:bank_account_number_masked])
|
614
|
+
xml.tag!('transId', transaction[:trans_id])
|
615
|
+
when :prior_auth_capture
|
616
|
+
xml.tag!('amount', transaction[:amount])
|
617
|
+
xml.tag!('transId', transaction[:trans_id])
|
618
|
+
else
|
619
|
+
xml.tag!('amount', transaction[:amount])
|
620
|
+
xml.tag!('customerProfileId', transaction[:customer_profile_id])
|
621
|
+
xml.tag!('customerPaymentProfileId', transaction[:customer_payment_profile_id])
|
622
|
+
xml.tag!('approvalCode', transaction[:approval_code]) if transaction[:type] == :capture_only
|
623
|
+
end
|
624
|
+
add_order(xml, transaction[:order]) if transaction[:order]
|
625
|
+
end
|
626
|
+
end
|
627
|
+
end
|
628
|
+
|
629
|
+
def add_order(xml, order)
|
630
|
+
xml.tag!('order') do
|
631
|
+
xml.tag!('invoiceNumber', order[:invoice_number]) if order[:invoice_number]
|
632
|
+
xml.tag!('description', order[:description]) if order[:description]
|
633
|
+
xml.tag!('purchaseOrderNumber', order[:purchase_order_number]) if order[:purchase_order_number]
|
634
|
+
end
|
635
|
+
end
|
636
|
+
|
637
|
+
def add_payment_profiles(xml, payment_profiles)
|
638
|
+
xml.tag!('paymentProfiles') do
|
639
|
+
add_payment_profile(xml, payment_profiles)
|
640
|
+
end
|
641
|
+
end
|
642
|
+
|
643
|
+
# :customer_type => 'individual or business', # Optional
|
644
|
+
# :bill_to => @address,
|
645
|
+
# :payment => @payment
|
646
|
+
def add_payment_profile(xml, payment_profile)
|
647
|
+
# 'individual' or 'business' (optional)
|
648
|
+
xml.tag!('customerType', payment_profile[:customer_type]) if payment_profile[:customer_type]
|
649
|
+
|
650
|
+
if payment_profile[:bill_to]
|
651
|
+
xml.tag!('billTo') do
|
652
|
+
add_address(xml, payment_profile[:bill_to])
|
653
|
+
end
|
654
|
+
end
|
655
|
+
|
656
|
+
if payment_profile[:payment]
|
657
|
+
xml.tag!('payment') do
|
658
|
+
add_credit_card(xml, payment_profile[:payment][:credit_card]) if payment_profile[:payment].has_key?(:credit_card)
|
659
|
+
add_bank_account(xml, payment_profile[:payment][:bank_account]) if payment_profile[:payment].has_key?(:bank_account)
|
660
|
+
add_drivers_license(xml, payment_profile[:payment][:drivers_license]) if payment_profile[:payment].has_key?(:drivers_license)
|
661
|
+
# This element is only required for Wells Fargo SecureSource eCheck.Net merchants
|
662
|
+
# The customer's Social Security Number or Tax ID
|
663
|
+
xml.tag!('taxId', payment_profile[:payment]) if payment_profile[:payment].has_key?(:tax_id)
|
664
|
+
end
|
665
|
+
end
|
666
|
+
|
667
|
+
xml.tag!('customerPaymentProfileId', payment_profile[:customer_payment_profile_id]) if payment_profile[:customer_payment_profile_id]
|
668
|
+
end
|
669
|
+
|
670
|
+
def add_ship_to_list(xml, ship_to_list)
|
671
|
+
xml.tag!('shipToList') do
|
672
|
+
add_address(xml, ship_to_list)
|
673
|
+
end
|
674
|
+
end
|
675
|
+
|
676
|
+
def add_address(xml, address)
|
677
|
+
xml.tag!('firstName', address[:first_name])
|
678
|
+
xml.tag!('lastName', address[:last_name])
|
679
|
+
xml.tag!('company', address[:company])
|
680
|
+
xml.tag!('address', address[:address1]) if address[:address1]
|
681
|
+
xml.tag!('address', address[:address]) if address[:address]
|
682
|
+
xml.tag!('city', address[:city])
|
683
|
+
xml.tag!('state', address[:state])
|
684
|
+
xml.tag!('zip', address[:zip])
|
685
|
+
xml.tag!('country', address[:country])
|
686
|
+
xml.tag!('phoneNumber', address[:phone_number]) if address[:phone_number]
|
687
|
+
xml.tag!('faxNumber', address[:fax_number]) if address[:fax_number]
|
688
|
+
|
689
|
+
xml.tag!('customerAddressId', address[:customer_address_id]) if address[:customer_address_id]
|
690
|
+
end
|
691
|
+
|
692
|
+
# Adds customer’s credit card information
|
693
|
+
# Note: This element should only be included
|
694
|
+
# when the payment method is credit card.
|
695
|
+
def add_credit_card(xml, credit_card)
|
696
|
+
return unless credit_card
|
697
|
+
xml.tag!('creditCard') do
|
698
|
+
# The credit card number used for payment of the subscription
|
699
|
+
xml.tag!('cardNumber', credit_card.number)
|
700
|
+
# The expiration date of the credit card used for the subscription
|
701
|
+
xml.tag!('expirationDate', expdate(credit_card))
|
702
|
+
xml.tag!('cardCode', credit_card.verification_value) if credit_card.verification_value?
|
703
|
+
end
|
704
|
+
end
|
705
|
+
|
706
|
+
# Adds customer’s bank account information
|
707
|
+
# Note: This element should only be included
|
708
|
+
# when the payment method is bank account.
|
709
|
+
def add_bank_account(xml, bank_account)
|
710
|
+
raise StandardError, "Invalid Bank Account Type: #{bank_account[:account_type]}" unless BANK_ACCOUNT_TYPES.include?(bank_account[:account_type])
|
711
|
+
raise StandardError, "Invalid eCheck Type: #{bank_account[:echeck_type]}" unless ECHECK_TYPES.include?(bank_account[:echeck_type])
|
712
|
+
|
713
|
+
xml.tag!('bankAccount') do
|
714
|
+
# The type of bank account
|
715
|
+
xml.tag!('accountType', BANK_ACCOUNT_TYPES[bank_account[:account_type]])
|
716
|
+
# The routing number of the customer’s bank
|
717
|
+
xml.tag!('routingNumber', bank_account[:routing_number])
|
718
|
+
# The bank account number
|
719
|
+
xml.tag!('accountNumber', bank_account[:account_number])
|
720
|
+
# The full name of the individual associated
|
721
|
+
# with the bank account number
|
722
|
+
xml.tag!('nameOnAccount', bank_account[:name_on_account])
|
723
|
+
# The type of electronic check transaction
|
724
|
+
xml.tag!('echeckType', ECHECK_TYPES[bank_account[:echeck_type]])
|
725
|
+
# The full name of the individual associated
|
726
|
+
# with the bank account number (optional)
|
727
|
+
xml.tag!('bankName', bank_account[:bank_name]) if bank_account[:bank_name]
|
728
|
+
end
|
729
|
+
end
|
730
|
+
|
731
|
+
# Adds customer’s driver's license information
|
732
|
+
# Note: This element is only required for
|
733
|
+
# Wells Fargo SecureSource eCheck.Net merchants
|
734
|
+
def add_drivers_license(xml, drivers_license)
|
735
|
+
xml.tag!('driversLicense') do
|
736
|
+
# The state of the customer's driver's license
|
737
|
+
# A valid two character state code
|
738
|
+
xml.tag!('state', drivers_license[:state])
|
739
|
+
# The customer’s driver's license number
|
740
|
+
xml.tag!('number', drivers_license[:number])
|
741
|
+
# The date of birth listed on the customer's driver's license
|
742
|
+
# YYYY-MM-DD
|
743
|
+
xml.tag!('dateOfBirth', drivers_license[:date_of_birth])
|
744
|
+
end
|
745
|
+
end
|
746
|
+
|
747
|
+
def commit(action, request)
|
748
|
+
url = test? ? test_url : live_url
|
749
|
+
xml = ssl_post(url, request, "Content-Type" => "text/xml")
|
750
|
+
response_params = parse(action, xml)
|
751
|
+
message = response_params['messages']['message']
|
752
|
+
|
753
|
+
if message.class.is_a? Array
|
754
|
+
text = "#{message[0]['code']} - #{message[0]['text']}"
|
755
|
+
else
|
756
|
+
text = "#{message['code']} - #{message['text']}"
|
757
|
+
end
|
758
|
+
test_mode = test? || text =~ /Test Mode/
|
759
|
+
success = response_params['messages']['result_code'] == 'Ok'
|
760
|
+
|
761
|
+
Rails.logger.error("Gateway Error: #{text}") unless success
|
762
|
+
|
763
|
+
direct_response_params = parse_direct_response(response_params['direct_response'])
|
764
|
+
|
765
|
+
response = Response.new(success, text, response_params,
|
766
|
+
:test => test_mode,
|
767
|
+
:authorization => response_params['customer_profile_id'] || (response_params['profile'] ? response_params['profile']['customer_profile_id'] : direct_response_params['transaction_id']),
|
768
|
+
:avs_result => {:code => direct_response_params['avs_response']}
|
769
|
+
)
|
770
|
+
response.params['direct_response'] = direct_response_params
|
771
|
+
|
772
|
+
# transaction_id from direct response should be used for the authorization option on response
|
773
|
+
if response.authorization.nil? and response.params['direct_response']
|
774
|
+
if !response.params['direct_response']['transaction_id'].blank? and response.params['direct_response']['transaction_id'] != '0'
|
775
|
+
response.authorization = response.params['direct_response']['transaction_id']
|
776
|
+
end
|
777
|
+
end
|
778
|
+
|
779
|
+
response
|
780
|
+
end
|
781
|
+
|
782
|
+
def tag_unless_blank(xml, tag_name, data)
|
783
|
+
xml.tag!(tag_name, data) unless data.blank? || data.nil?
|
784
|
+
end
|
785
|
+
|
786
|
+
def parse_direct_response(raw)
|
787
|
+
return {} if raw.blank?
|
788
|
+
direct_response_fields = raw.split(',')
|
789
|
+
{
|
790
|
+
'raw' => raw,
|
791
|
+
'response_code' => direct_response_fields[0],
|
792
|
+
'response_subcode' => direct_response_fields[1],
|
793
|
+
'response_reason_code' => direct_response_fields[2],
|
794
|
+
'message' => direct_response_fields[3],
|
795
|
+
'approval_code' => direct_response_fields[4],
|
796
|
+
'avs_response' => direct_response_fields[5],
|
797
|
+
'transaction_id' => direct_response_fields[6],
|
798
|
+
'invoice_number' => direct_response_fields[7],
|
799
|
+
'order_description' => direct_response_fields[8],
|
800
|
+
'amount' => direct_response_fields[9],
|
801
|
+
'method' => direct_response_fields[10],
|
802
|
+
'transaction_type' => direct_response_fields[11],
|
803
|
+
'customer_id' => direct_response_fields[12],
|
804
|
+
'first_name' => direct_response_fields[13],
|
805
|
+
'last_name' => direct_response_fields[14],
|
806
|
+
'company' => direct_response_fields[15],
|
807
|
+
'address' => direct_response_fields[16],
|
808
|
+
'city' => direct_response_fields[17],
|
809
|
+
'state' => direct_response_fields[18],
|
810
|
+
'zip_code' => direct_response_fields[19],
|
811
|
+
'country' => direct_response_fields[20],
|
812
|
+
'phone' => direct_response_fields[21],
|
813
|
+
'fax' => direct_response_fields[22],
|
814
|
+
'email_address' => direct_response_fields[23],
|
815
|
+
'ship_to_first_name' => direct_response_fields[24],
|
816
|
+
'ship_to_last_name' => direct_response_fields[25],
|
817
|
+
'ship_to_company' => direct_response_fields[26],
|
818
|
+
'ship_to_address' => direct_response_fields[27],
|
819
|
+
'ship_to_city' => direct_response_fields[28],
|
820
|
+
'ship_to_state' => direct_response_fields[29],
|
821
|
+
'ship_to_zip_code' => direct_response_fields[30],
|
822
|
+
'ship_to_country' => direct_response_fields[31],
|
823
|
+
'tax' => direct_response_fields[32],
|
824
|
+
'duty' => direct_response_fields[33],
|
825
|
+
'freight' => direct_response_fields[34],
|
826
|
+
'tax_exempt' => direct_response_fields[35],
|
827
|
+
'purchase_order_number' => direct_response_fields[36],
|
828
|
+
'md5_hash' => direct_response_fields[37],
|
829
|
+
'card_code' => direct_response_fields[38],
|
830
|
+
'cardholder_authentication_verification_response' => direct_response_fields[39]
|
831
|
+
}
|
832
|
+
end
|
833
|
+
|
834
|
+
def parse(action, xml)
|
835
|
+
xml = REXML::Document.new(xml)
|
836
|
+
root = REXML::XPath.first(xml, "//#{CIM_ACTIONS[action]}Response") ||
|
837
|
+
REXML::XPath.first(xml, "//ErrorResponse")
|
838
|
+
if root
|
839
|
+
response = parse_element(root)
|
840
|
+
end
|
841
|
+
|
842
|
+
response
|
843
|
+
end
|
844
|
+
|
845
|
+
def parse_element(node)
|
846
|
+
if node.has_elements?
|
847
|
+
response = {}
|
848
|
+
node.elements.each{ |e|
|
849
|
+
key = e.name.underscore
|
850
|
+
value = parse_element(e)
|
851
|
+
if response.has_key?(key)
|
852
|
+
if response[key].is_a?(Array)
|
853
|
+
response[key].push(value)
|
854
|
+
else
|
855
|
+
response[key] = [response[key], value]
|
856
|
+
end
|
857
|
+
else
|
858
|
+
response[key] = parse_element(e)
|
859
|
+
end
|
860
|
+
}
|
861
|
+
else
|
862
|
+
response = node.text
|
863
|
+
end
|
864
|
+
|
865
|
+
response
|
866
|
+
end
|
867
|
+
end
|
868
|
+
end
|
869
|
+
end
|