Class: Shipworks::AmazonOrder

Inherits:
ShipworksRecord show all
Defined in:
app/models/shipworks/amazon_order.rb

Constant Summary collapse

FULFILLMENT_CHANNEL_MAPPING =
{
  0 => 'Unavailable',
  1 => 'Amazon',
  2 => 'Merchant'
}

Instance Method Summary collapse

Methods inherited from ShipworksRecord

table_name

Instance Method Details

#FulfillmentChannelNameObject



11
12
13
# File 'app/models/shipworks/amazon_order.rb', line 11

def FulfillmentChannelName
  FULFILLMENT_CHANNEL_MAPPING[self.FulfillmentChannel] || FulfillmentChannel
end