Sha256: 618f251f892467a266c3b80e0c29641564ef7332844f2bd9df86144a71fd90f3

Contents?: true

Size: 356 Bytes

Versions: 5

Compression:

Stored size: 356 Bytes

Contents

module Spree
  class Calculator::PAC < Calculator::CorreiosBaseCalculator
    def self.description
      "PAC"
    end
    
    def shipping_method
      if has_contract?
        :pac_com_contrato
      else
        :pac
      end
    end
    
    def shipping_code
      if has_contract?
        41068
      else
        41106
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_correios-1.0.4 app/models/spree/calculator/pac.rb
spree_correios-1.0.3 app/models/spree/calculator/pac.rb
spree_correios-1.0.2 app/models/spree/calculator/pac.rb
spree_correios-1.0.1 app/models/spree/calculator/pac.rb
spree_correios-1.0.0 app/models/spree/calculator/pac.rb