Skip to content

Commit

Permalink
drop Spree_services/customer
Browse files Browse the repository at this point in the history
  • Loading branch information
huoxito committed Oct 27, 2014
1 parent 08deed2 commit e96afde
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 24 deletions.
8 changes: 0 additions & 8 deletions lib/Spree_services/customer.rb

This file was deleted.

1 change: 0 additions & 1 deletion lib/salesforce_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

require 'Spree_services/base'
require 'Spree_services/order'
require 'Spree_services/customer'
require 'Spree_services/line_item'
require 'Spree_services/payment'
require 'Spree_services/return'
Expand Down
5 changes: 2 additions & 3 deletions salesforce_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ class SalesforceEndpoint < EndpointBase::Sinatra::Base
['/add_customer', '/update_customer'].each do |path|
post path do
begin
SpreeService::Customer.new(@payload, @config).upsert_contact_with_account!
set_summary "Contact for #{@payload["customer"]["email"]} updated (or created) in Salesforce"
result 200
Integration::ContactAccount.new(@config, @payload[:customer]).upsert!
result 200, "Contact for #{@payload[:customer][:email]} updated in Salesforce"
rescue Exception => e
log_exception(e)
result 500, e.message
Expand Down
12 changes: 0 additions & 12 deletions spec/lib/Spree_services/customer_spec.rb

This file was deleted.

0 comments on commit e96afde

Please sign in to comment.