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:
OpenFUT Agent
2026-08-13 19:38:04 +00:00
parent 49c5185ae3
commit 96e80ab293
4 changed files with 46 additions and 0 deletions
+4
View File
@@ -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 {