feat(import-fifa17): seed unopenedPackIds as Core entitlements
Carry unopenedPackIds through the importer: Profile model -> Report -> ApplyPlan. GenericImportRequest now emits entitlements[] (one definition_id per unopened pack instance, order+duplicates preserved), which Core's import seeds as unconsumed packs rows in the same transaction. Closes the economy import gap so a migrated profile's unopened packs become Core entitlements (feeding purchasegroup/credits/userMassInfo). Idempotency unchanged (import fingerprint). +1 test; 26 pass, clippy -D warnings clean.
This commit is contained in:
@@ -26,6 +26,10 @@ pub struct Profile {
|
||||
pub items: Vec<Item>,
|
||||
#[serde(default)]
|
||||
pub squads: Vec<Squad>,
|
||||
/// Unconsumed pack entitlements (`unopenedPackIds`), seeded into Core as
|
||||
/// generic entitlements on import.
|
||||
#[serde(rename = "unopenedPackIds", default)]
|
||||
pub unopened_pack_ids: Vec<i64>,
|
||||
}
|
||||
|
||||
impl Profile {
|
||||
|
||||
Reference in New Issue
Block a user