Backfill Zuora::Local:: Product Catalog related models
Background
In [Product Catalog] Phase 1: Build Zuora Cache Mo... (&13852) we did the work to allow caching the Product Catalog data locally in CustomersDot DB via this mapping:
Product >> Zuora::Local::Product
ProductRatePlan >> Zuora::Local::ProductRatePlan
ProductRatePlanCharge >> Zuora::Local::ProductRatePlanCharge
ProductRatePlanChargeTier >> Zuora::Local::ProductRatePlanChargeTier
CustomersDot is ready now to store this data in the associated tables and interface via its associated records.
When a change in the Product Catalog happens in Zuora, CustomersDot will get a callout related to it with the ID of the modified object and will sync its attributes to make sure it matches Zuora (SSoT).
Proposal
Create a rake task to backfill Zuora::Local::
Product Catalog related models from Zuora:
Zuora::Local::Product
Zuora::Local::ProductRatePlan
Zuora::Local::ProductRatePlanCharge
Zuora::Local::ProductRatePlanChargeTier
Result
All existing Zuora Products are properly cached locally in the CDot DB.
Edited by Vladlena Shumilo