mirror of
https://gitea.tendokyu.moe/Kayori/MedusaPluginChargeMachine.git
synced 2026-09-25 15:47:56 +03:00
- chargeoptions is the real field gating 2000/5000/10000 yen display - chargeid (not chargenum) carries the actual denomination on charge - getrecentcharge/getlastlog: fixed num mismatch, added missing result section, and added placeholder items for empty result sets
21 lines
730 B
C#
21 lines
730 B
C#
using System.Xml.Serialization;
|
|
|
|
namespace MedusaPluginChargeMachine.Models.Request;
|
|
|
|
[XmlRoot("eacharge")]
|
|
public class ChargeRequest
|
|
{
|
|
[XmlElement("chargenum")]
|
|
public required string ChargeNumber { get; set; }
|
|
|
|
// The actual denomination, not chargenum - real traffic (spice2x
|
|
// "automap" capture) shows chargenum is always the quantity ("1" for a
|
|
// single bill), while chargeid carries the value as e.g. "N10000P"
|
|
// (Note/10000/Paseli). chargenum * 1000 alone reports every bill as
|
|
// 1000 yen regardless of what was actually inserted.
|
|
[XmlElement("chargeid")]
|
|
public required string ChargeId { get; set; }
|
|
|
|
[XmlElement("sessid")]
|
|
public required string SessionId { get; set; }
|
|
} |