Class: Edi::Amazon::PriceMessageSender

Inherits:
FeedMessageSender show all
Defined in:
app/services/edi/amazon/price_message_sender.rb

Overview

Service object: price message sender.

Constant Summary

Constants included from RequestIdentifiable

RequestIdentifiable::REQUEST_ID_HEADERS

Constants included from Edi::AddressAbbreviator

Edi::AddressAbbreviator::MAX_LENGTH

Instance Attribute Summary

Attributes inherited from BaseEdiService

#orchestrator

Attributes inherited from BaseService

#options

Instance Method Summary collapse

Methods inherited from FeedMessageSender

#claim_budget, #create_feed, #defer, #ecl_in_queue, #instantiate_transporter, #process, #submit_feed, #supersede_stale, #upload_feed_document

Methods inherited from BaseEdiService

#amazon_feed_product_type, #duplicate_po_already_notified?, #initialize, #mark_duplicate_po_as_notified, #onboard_ordered_catalog_items, #report_order_creation_issues, #safe_process_edi_communication_log

Methods included from RequestIdentifiable

#partner_request_id

Methods included from Edi::AddressAbbreviator

#abbreviate_street, #collect_street_originals, #record_address_abbreviation_notes

Methods inherited from BaseService

#initialize, #log_debug, #log_error, #log_info, #log_warning, #logger, #process, #tagged_logger

Constructor Details

This class inherits a constructor from Edi::BaseEdiService

Instance Method Details

#feed_categoryObject



10
11
12
# File 'app/services/edi/amazon/price_message_sender.rb', line 10

def feed_category
  'price_advice'
end

#feed_typeObject



6
7
8
# File 'app/services/edi/amazon/price_message_sender.rb', line 6

def feed_type
  'JSON_LISTINGS_FEED'
end

#full_snapshot_feed?Boolean

PriceMessageProcessor#load_catalog_items builds every message from the
partner's full active set (nothing passes use_delta_since_last_message),
so an unsent older message is superseded, never owed.

Returns:

  • (Boolean)


17
18
19
# File 'app/services/edi/amazon/price_message_sender.rb', line 17

def full_snapshot_feed?
  true
end