Sha256: 06a9bedfba1ffc80d95b542a057e0eef52720113b90b8995cb8850c383cd1dfd
Contents?: true
Size: 930 Bytes
Versions: 1
Compression:
Stored size: 930 Bytes
Contents
module Spree module Calculator::Shipping module Usps class FirstClassMailInternationalLargeEnvelope < Spree::Calculator::Shipping::Usps::Base WEIGHT_LIMITS = { "US" => 64 } def self.geo_group :international end def self.service_code "#{SERVICE_CODE_PREFIX[geo_group]}:14" #First-Class MailĀ® International Large Envelope end def self.description I18n.t("usps.first_class_mail_international_large_envelope") end protected # weight limit in ounces or zero (if there is no limit) def max_weight_for_country(country) # if weight in ounces > 64, then First Class Mail International Large Envelope is not available for the order # https://www.usps.com/ship/first-class-package-international-service.htm? return WEIGHT_LIMITS[country.iso] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_active_shipping-1.0.0 | app/models/spree/calculator/shipping/usps/first_class_mail_international_large_envelope.rb |