v 0.15 OBT: hard income/outcome
Задача на аналитику:
Задача на разработку:
SPRW-24134
-
Analytics: Hard in resource movement
Verified
Основная таблица в Google Spreadsheets
В таблице может быть удобнее смотреть изменения.
Смотреть лист res_movement, в блоке соответствующей версии.
Добавить
transaction_type = buy_hard --- покупка харды в магазине за реал
| event_id | soft_context_rm | hard_context_rm | movement | transaction_type | transaction | transaction_id | resource_type | resource | resource_amount |
|---|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | income | buy_hard | {offer_id} | {transaction_id} | hard | hard | 50 |
transaction_type = buy_battlepass -- покупка баттлпасса за харду
| event_id | soft_context_rm | hard_context_rm | movement | transaction_type | transaction | resource_type | resource | resource_amount |
|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | outcome | buy_battlepass | {battlepass_season} | hard | hard | 50 |
transaction_type = buy_battlepass_level -- покупка за харду уровню баттлпасса, в transaction -- уровень БП, который был куплен
| event_id | soft_context_rm | hard_context_rm | movement | transaction_type | transaction | resource_type | resource | resource_amount |
|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | outcome | buy_battlepass_level | {level} | hard | hard | 50 |
transaction_type = buy_daily_deal_all -- покупка всех daily deal -предметов за харду, трекать надо каждый предмет отдельно. Пилот дан для примера.
| event_id | soft_context_rm | hard_context_rm | movement | transaction_type | transaction | resource_type | resource | resource_amount | equip_params |
|---|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | outcome | buy_daily_deal_all | buy_daily_deal_all | hard | hard | 1000 | |
| abcd1234567 | 20000 | 20 | income | buy_daily_deal_all | buy_daily_deal_all | pilot | {pilot_name} | 1 | {"instance_id":"qwerty12", "pilot_name":"Pilot", "level":1, "rarity":"common"} |
transaction_type = reroll_daily_deal -- реролл daily deal за харду
| event_id | soft_context_rm | hard_context_rm | movement | transaction_type | transaction | resource_type | resource | resource_amount |
|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | outcome | reroll_daily_deal | reroll_daily_deal | hard | hard | 10 |
transaction_type = buy_premium -- покупка премиума за харду, в transaction пишем, какой премиум (по длительности) был куплен
| event_id | soft_context_rm | hard_context_rm | movement | transaction_type | transaction | resource_type | resource | resource_amount |
|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | outcome | buy_premium | {premium_id} | hard | hard | 50 |
transaction_type = buy_offer --- покупка оффера в магазине за харду, если пользователь покупает пак в оффере, то пишем в приход все содержимое пака, трекать надо каждый предмет отдельно. Пилот дан для примера.
| event_id | soft_context_rm | hard_context_rm | movement | transaction_type | transaction | resource_type | resource | resource_amount | resource_source | equip_params |
|---|---|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | outcome | shop_offer | {offer_id} | hard | hard | 500 | ||
| abcd1234567 | 20000 | 20 | income | shop_offer | {offer_id} | soft | soft | 2000 | ||
| abcd1234567 | 20000 | 20 | income | shop_offer | {offer_id} | pilot | {pilot_name} | 1 | {"instance_id":"qwerty12", "pilot_name":"Pilot", "level":1, "rarity":"common"} |