New prices: a forecast in the single package, cheaper Páros, Család and add-ons
- Egy elemzés: 2 000 Ft, now with a yearly forecast. - Páros 5 000 Ft, Család 7 000 Ft, +1 kapcsolati and +1 előrejelzés 1 500 Ft. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -15,9 +15,8 @@ use crate::error::ApiError;
|
||||
|
||||
/// List prices of the single items, for showing what a package saves.
|
||||
const NATAL_PRICE: i64 = 2_000;
|
||||
const SYNASTRY_PRICE: i64 = 2_500;
|
||||
/// A yearly forecast bought alone costs more than one in a package.
|
||||
const FORECAST_PRICE: i64 = 2_500;
|
||||
const SYNASTRY_PRICE: i64 = 1_500;
|
||||
const FORECAST_PRICE: i64 = 1_500;
|
||||
const PERSON_PRICE: i64 = 300; // 1 500 Ft for five
|
||||
/// Questions every package of the main ladder comes with (not counted in the
|
||||
/// "bought one by one" price: they are a bonus).
|
||||
@@ -55,12 +54,12 @@ pub const CATALOG: [Package; 8] = [
|
||||
Package {
|
||||
id: "single",
|
||||
name: "Egy elemzés",
|
||||
tagline: "Egy részletes képletelemzés: neked vagy egy felvett személynek.",
|
||||
tagline: "Egy részletes képletelemzés és egy éves előrejelzés: neked vagy egy felvett személynek.",
|
||||
tier: Tier::Main,
|
||||
price_huf: 2_000,
|
||||
natal: 1,
|
||||
synastry: 0,
|
||||
forecast: 0,
|
||||
forecast: 1,
|
||||
persons: 0,
|
||||
questions: QUESTIONS_INCLUDED,
|
||||
tarot: 2,
|
||||
@@ -71,7 +70,7 @@ pub const CATALOG: [Package; 8] = [
|
||||
name: "Páros",
|
||||
tagline: "Te és ő: mindkettőtök képlete, éves előrejelzése és a kapcsolati elemzés.",
|
||||
tier: Tier::Main,
|
||||
price_huf: 6_000,
|
||||
price_huf: 5_000,
|
||||
natal: 2,
|
||||
synastry: 1,
|
||||
forecast: 2,
|
||||
@@ -85,7 +84,7 @@ pub const CATALOG: [Package; 8] = [
|
||||
name: "Család",
|
||||
tagline: "Az egész család: öt személy, mindenki képlete és éves előrejelzése, és öt kapcsolat.",
|
||||
tier: Tier::Main,
|
||||
price_huf: 11_000,
|
||||
price_huf: 7_000,
|
||||
natal: 6,
|
||||
synastry: 5,
|
||||
forecast: 6,
|
||||
@@ -99,7 +98,7 @@ pub const CATALOG: [Package; 8] = [
|
||||
name: "+1 kapcsolati elemzés",
|
||||
tagline: "Egy újabb összevetés részletes elemzése.",
|
||||
tier: Tier::Addon,
|
||||
price_huf: 2_500,
|
||||
price_huf: SYNASTRY_PRICE,
|
||||
natal: 0,
|
||||
synastry: 1,
|
||||
forecast: 0,
|
||||
@@ -416,12 +415,10 @@ mod tests {
|
||||
#[test]
|
||||
fn bigger_packages_are_cheaper_per_analysis() {
|
||||
let per = |id: &str| find(id).unwrap().view()["per_analysis_huf"].as_i64().unwrap();
|
||||
assert!(per("single") > per("couple") && per("couple") > per("family"));
|
||||
assert_eq!(find("family").unwrap().view()["savings_percent"], 73);
|
||||
assert_eq!(find("couple").unwrap().view()["savings_percent"], 49);
|
||||
// Alone a forecast costs more than a natal analysis.
|
||||
assert!(find("addon_forecast").unwrap().price_huf > find("single").unwrap().price_huf);
|
||||
assert!(find("single").unwrap().view()["savings_percent"].is_null());
|
||||
assert!(per("single") >= per("couple") && per("couple") > per("family"));
|
||||
assert_eq!(find("family").unwrap().view()["savings_percent"], 77);
|
||||
assert_eq!(find("couple").unwrap().view()["savings_percent"], 43);
|
||||
assert_eq!(find("single").unwrap().view()["savings_percent"], 43);
|
||||
assert!(find("unlimited").is_none());
|
||||
assert!(CATALOG.iter().all(|p| find(p.id).is_some()));
|
||||
// Every package of the ladder comes with questions; more can be bought.
|
||||
|
||||
Reference in New Issue
Block a user