Class: Peddler::Feeds::OrderFulfillment::Batch

Inherits:
Feed
  • Object
show all
Defined in:
lib/peddler/feeds.rb

Overview

This class contains methods to upload order fulfillment info to Amazon. See sections 7.1 through 7.3 in the API documentation for more detail.

Constant Summary

Constants inherited from Feed

Feed::MAPPED_PARAMS

Instance Attribute Summary

Attributes inherited from Feed

#batch, #completed_processing_at, #download, #file_content, #id, #messages_processed, #messages_successful, #messages_with_errors, #messages_with_warnings, #started_processing_at, #status, #submitted_at, #type

Instance Method Summary collapse

Methods inherited from Feed

#<<, #status!, #upload

Constructor Details

#initialize(transport) ⇒ Batch

Returns a new instance of Batch.



123
124
125
126
127
# File 'lib/peddler/feeds.rb', line 123

def initialize(transport)
  @file_header = "order-id\torder-item-id\tquantity\tship-date\tcarrier-code\tcarrier-name\ttracking-number\tship-method\r\n"
  @type = '_POST_FLAT_FILE_FULFILLMENT_DATA_'
  super(transport)
end