Class: Calculator::Shipping::Usps::PriorityMailInternationalLargeFlatRateBox

Inherits:
Spree::Calculator::Shipping::Usps::Base
  • Object
show all
Defined in:
app/models/spree/calculator/shipping/usps/priority_mail_international_large_flat_rate_box.rb

Constant Summary collapse

AVAILABLE_COUNTRIES =
[
  "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AR", "AT", "AU", "AW", "AZ", "BA", "BB", "BD", "BE",
  "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BR", "BS", "BT", "BW", "BY", "BZ", "CA", "CD", "CF", "CG", "CH",
  "CI", "CL", "CM", "CN", "CO", "CR", "CV", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG",
  "ER", "ES", "ET", "FI", "FJ", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GH", "GI", "GL", "GM", "GN", "GP",
  "GQ", "GR", "GT", "GW", "GY", "HK", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IN", "IQ", "IR", "IS", "IT",
  "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK",
  "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MD", "ME", "MG", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR",
  "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NG", "NI", "NL", "NO", "NP", "NR", "NZ",
  "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PT", "PY", "QA", "RE", "RO", "RS", "RU", "RW",
  "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SK", "SL", "SM", "SN", "SR", "ST", "SV", "SY", "SZ", "TC",
  "TD", "TG", "TH", "TJ", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UY", "UZ", "VA", "VC",
  "VE", "VG", "VN", "VU", "WF", "WS", "YE", "ZA", "ZM", "ZW"
]

Class Method Summary collapse

Class Method Details

.descriptionObject



29
30
31
# File 'app/models/spree/calculator/shipping/usps/priority_mail_international_large_flat_rate_box.rb', line 29

def self.description
  I18n.t("usps.priority_mail_international_large_flat_rate_box")
end

.geo_groupObject



21
22
23
# File 'app/models/spree/calculator/shipping/usps/priority_mail_international_large_flat_rate_box.rb', line 21

def self.geo_group
  :international
end

.service_codeObject



25
26
27
# File 'app/models/spree/calculator/shipping/usps/priority_mail_international_large_flat_rate_box.rb', line 25

def self.service_code
  "#{SERVICE_CODE_PREFIX[geo_group]}:11" #Priority Mail International® Large Flat Rate Box
end