Class: ActiveMerchant::Shipping::Kunaki

Inherits:
Carrier show all
Defined in:
lib/active_shipping/shipping/carriers/kunaki.rb

Constant Summary collapse

URL =
'https://Kunaki.com/XMLService.ASP'
CARRIERS =
[ "UPS", "USPS", "FedEx", "Royal Mail", "Parcelforce", "Pharos", "Eurotrux", "Canada Post", "DHL" ]
COUNTRIES =
{
  'AR' => 'Argentina',
  'AU' => 'Australia',
  'AT' => 'Austria',
  'BE' => 'Belgium',
  'BR' => 'Brazil',
  'BG' => 'Bulgaria',
  'CA' => 'Canada',
  'CN' => 'China',
  'CY' => 'Cyprus',
  'CZ' => 'Czech Republic',
  'DK' => 'Denmark',
  'EE' => 'Estonia',
  'FI' => 'Finland',
  'FR' => 'France',
  'DE' => 'Germany',
  'GI' => 'Gibraltar',
  'GR' => 'Greece',
  'GL' => 'Greenland',
  'HK' => 'Hong Kong',
  'HU' => 'Hungary',
  'IS' => 'Iceland',
  'IE' => 'Ireland',
  'IL' => 'Israel',
  'IT' => 'Italy',
  'JP' => 'Japan',
  'LV' => 'Latvia',
  'LI' => 'Liechtenstein',
  'LT' => 'Lithuania',
  'LU' => 'Luxembourg',
  'MX' => 'Mexico',
  'NL' => 'Netherlands',
  'NZ' => 'New Zealand',
  'NO' => 'Norway',
  'PL' => 'Poland',
  'PT' => 'Portugal',
  'RO' => 'Romania',
  'RU' => 'Russia',
  'SG' => 'Singapore',
  'SK' => 'Slovakia',
  'SI' => 'Slovenia',
  'ES' => 'Spain',
  'SE' => 'Sweden',
  'CH' => 'Switzerland',
  'TW' => 'Taiwan',
  'TR' => 'Turkey',
  'UA' => 'Ukraine',
  'GB' => 'United Kingdom',
  'US' => 'United States',
  'VA' => 'Vatican City',
  'RS' => 'Yugoslavia',
  'ME' => 'Yugoslavia'
}
@@name =
"Kunaki"

Instance Attribute Summary

Attributes inherited from Carrier

#last_request, #test_mode

Instance Method Summary collapse

Methods inherited from Carrier

#initialize, #maximum_weight, #requirements

Methods included from PostsData

included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request

Methods included from RequiresParameters

#requires!

Constructor Details

This class inherits a constructor from ActiveMerchant::Shipping::Carrier

Instance Method Details

#find_rates(origin, destination, packages, options = {}) ⇒ Object



69
70
71
72
# File 'lib/active_shipping/shipping/carriers/kunaki.rb', line 69

def find_rates(origin, destination, packages, options = {})
  requires!(options, :items)
  commit(origin, destination, options)
end

#valid_credentials?Boolean

Returns:

  • (Boolean)


74
75
76
# File 'lib/active_shipping/shipping/carriers/kunaki.rb', line 74

def valid_credentials?
  true
end