Files
eatvio_app/test/fixtures/chat/chat_room_with_plan_response.json

70 lines
1.6 KiB
JSON

{
"id": "chat-1",
"chat_room_setting": {
"room_name": "Test Chat Room",
"state": "active"
},
"users": {
"from_chat_user": {
"id": 1,
"name": "User 1",
"slug": "user-1",
"profile_photo_url": "https://example.com/user1.jpg"
},
"to_chat_user": {
"id": 2,
"name": "User 2",
"slug": "user-2",
"profile_photo_url": "https://example.com/user2.jpg"
}
},
"chosen_plan_id": 1,
"chosen_plan": {
"id": 1,
"option_type": "1",
"start_date": "2024-01-01T00:00:00Z",
"last_state": "active",
"chat_id": "chat-1",
"consultant_id": 1,
"plan": {
"id": 1,
"slug": "test-plan",
"name": "Test Plan",
"image": "https://example.com/plan.jpg",
"duration": 30,
"state": "active",
"type": {
"fit": true,
"slim": false,
"behavior": false,
"wellness": false
},
"description_md": "Plan description",
"packets_count": 1,
"packet1_options": {
"items": ["Item 1", "Item 2"],
"price": 1500.0,
"short": "Option 1",
"description": "Description",
"has_personal_diet": false
},
"packet2_options": null,
"packet3_options": null,
"author": {
"author_slug": "author-1",
"author_name": "Author Name",
"author_profile_icon": "https://example.com/author.jpg",
"author_is_me": false
},
"total_likes": 10,
"total_views": 100,
"total_comments": 5,
"is_favorite": false,
"min_price_of_options": 1000.0,
"max_price_of_options": 2000.0,
"was_liked_by_me": false
}
}
}