michael_cooper
09/09/2021, 3:49 PMItemStream and a MerchantStream. The ItemStream needs a merchant_id for each merchant but I don’t have a full list of merchant_ids until I run the MerchantStream.edgar_ramirez_mondragon
09/09/2021, 3:55 PM_make_request(self, method, ...) member that devs can use (but should not need to override) and some other helper for chaining requests.visch
09/09/2021, 4:00 PMMerchantStream has a parent of ItemStream
MerchantMerchantStream has a parent of MerchantStreamvisch
09/09/2021, 4:01 PMmichael_cooper
09/09/2021, 4:17 PMvisch
09/09/2021, 4:22 PMedgar_ramirez_mondragon
09/09/2021, 4:23 PMmichael_cooper
09/09/2021, 4:24 PMprepare_request() due to needing to use XML.michael_cooper
09/09/2021, 5:30 PMaaronsteers
09/09/2021, 6:07 PMaaronsteers
09/09/2021, 6:08 PMget_child_context() on the parent - and then that dictionary will be passed to any child class method that contains the context arg.edgar_ramirez_mondragon
09/09/2021, 6:54 PMmerchant_id from the context dict in prepare_request_payload or prepare_requestmichael_cooper
09/09/2021, 9:24 PMget_child_context() work in regards to the child streams? If I make the call to /api/merchants and get a list of merchant records, does the child get a list of `merchant_id`s or does it get just one merchant_id with multiple instances of the child stream?edgar_ramirez_mondragon
09/09/2021, 9:34 PMget_child_context() gets called for every record in the parent stream, so if you output a record for each merchant in the response of /api/merchants and use said record to populate the child context with {"merchant_id": record["merchant_id"]} then the child stream will be synced for each context, so once for every merchant_idedgar_ramirez_mondragon
09/09/2021, 9:35 PM