Sha256: 013588230817d6c339c5d6b072d6d663a928a5dcf3b85b72919aa849e596059b
Contents?: true
Size: 375 Bytes
Versions: 3
Compression:
Stored size: 375 Bytes
Contents
module ShiprocketAPI class ReturnOrder::Awb < Base self.prefix += "/courier/assign/awb" self.element_name= "" DEFAULT_ATTRS = { shipment_id: 0, courier_id: 0, is_return: 1 } def generate_label return false unless self.attributes.shipment_id != 0 self.label= ::ShiprocketAPI::Label.create([shipment_id]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems