Table of Contents

Class ContractReceipt

Namespace
S1API.Economy
Assembly
S1API.dll

Lightweight DTO mirroring base game's ContractReceipt for analytics/history.

public sealed class ContractReceipt
Inheritance
ContractReceipt
Inherited Members
Extension Methods

Constructors

ContractReceipt()

Creates an empty receipt suitable for deserialization or incremental population.

public ContractReceipt()

Properties

AmountPaid

Gets or sets the amount paid when the contract completed.

public float AmountPaid { get; set; }

Property Value

float

CompletionTime

Gets or sets the completion day and time.

public (int days, int time) CompletionTime { get; set; }

Property Value

(int days, int time)

CustomerId

Gets or sets the customer identifier associated with the contract.

public string CustomerId { get; set; }

Property Value

string

Items

Gets or sets the delivered item identifiers and quantities.

public (string id, int quantity)[] Items { get; set; }

Property Value

(string id, int quantity)[]

ReceiptId

Gets or sets the receipt identifier.

public int ReceiptId { get; set; }

Property Value

int