Class: Ghtk::ShippingFee

Inherits:
Object
  • Object
show all
Defined in:
lib/ghtk/shipping_fee.rb

Class Method Summary collapse

Class Method Details

.check(serializer) ⇒ Object



4
5
6
7
8
# File 'lib/ghtk/shipping_fee.rb', line 4

def self.check(serializer)
  hash = Ghtk::FlexibleParams.new(serializer).hash
  Ghtk::Validations::ShippingFeeValidation.new(hash).validate!
  Ghtk::Request.get('/services/shipment/fee', hash)
end