Path: redb/redb.Templates/templates/redb-worker/RedbWorker.Module/Xml/OrderXml.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/redb-worker/RedbWorker.Module/Xml/OrderXml.cs
----
using System.Xml.Serialization;
namespace RedbWorker.Module.Xml;
/// An inbound order, exactly as the file carries it. Checked against Order.xsd first.
[XmlRoot("Order")]
public sealed class OrderXml
{
[XmlElement("OrderId")] public string OrderId { get; set; } = "";
[XmlElement("Customer")] public string Customer { get; set; } = "";
[XmlElement("Amount")] public decimal Amount { get; set; }
[XmlElement("Currency")] public string Currency { get; set; } = "";
}
/// The answer written to the outbox for every file taken from the inbox.
[XmlRoot("OrderReceipt")]
public sealed class OrderReceiptXml
{
[XmlElement("OrderId")] public string? OrderId { get; set; }
[XmlElement("Status")] public string Status { get; set; } = "";
[XmlElement("Reason")] public string? Reason { get; set; }
}
/// The values of .
public static class ReceiptStatuses
{
public const string Accepted = "Accepted";
public const string Duplicate = "Duplicate";
public const string Rejected = "Rejected";
}