This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*globals | |
encode_multipart_message: false | |
setTimeout: false, clearTimeout: false | |
*/ | |
require("./multipart_encode_verification"); | |
var httped = require("./httped"); | |
var events = require("events"); | |
var sys = require("sys"); | |
var user_agent_name = "Node-Agent/4.0.0"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global clearTimeout: false, setTimeout: false | |
*/ | |
var sys = require("sys"); | |
var http = require("http"); | |
var events = require("events"); | |
var user_agent_name = "VSS/4.0.0"; | |
var createRequestWithHeaders = function (request, httpClient, method, path, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Calculator::FedEx::TwoDay < Calculator::FedEx::Base | |
def self.description | |
"FedEx 2 Day" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Calculator::FedEx::Base < Calculator::ActiveShipping | |
def carrier | |
ActiveMerchant::Shipping::FedEx.new(:key =>Spree::ActiveShipping::Config[:fedex_api_key], | |
:password =>Spree::ActiveShipping::Config[:fedex_api_password], | |
:account => Spree::ActiveShipping::Config[:fedex_account_number], | |
:login => Spree::ActiveShipping::Config[:fedex_meter_number]) | |
end | |
def to_s | |
super.gsub("Fed Ex", "FedEx") |
NewerOlder