sundaysebasidian-byte/moonbean/booking does not have a README file

    AccountInventory

    pub(all) struct AccountInventory {
    inventory : Inventory
    booking : String?
    }

    BookingIssue

    pub(all) struct BookingIssue {
    code : String
    message : String
    }

    BookingIssue::new

    fn BookingIssue::new(code : String, message : String) -> BookingIssue

    BookingOutcome

    pub(all) struct BookingOutcome {
    weights : Array[
    Amount
    ]
    positions : Array[Position]
    issue : BookingIssue?
    needs_inference : Bool
    }

    BookingState

    pub(all) struct BookingState {
    accounts : Map[String, AccountInventory]
    }

    BookingState::accounts_list

    fn BookingState::accounts_list(self : BookingState) -> Array[String]

    BookingState::inventory

    fn BookingState::inventory(self : BookingState, account : String) -> Inventory?

    BookingState::inventory_for

    fn BookingState::inventory_for(self : BookingState, account : String) -> Inventory

    BookingState::method_for

    fn BookingState::method_for(self : BookingState, account : String, default_method : String) -> String

    BookingState::new

    BookingState::set_booking

    fn BookingState::set_booking(self : BookingState, account : String, booking : String) -> Unit

    Inventory

    pub(all) struct Inventory {
    positions : Array[Position]
    }

    Inventory::add

    fn Inventory::add(self : Inventory, position : Position) -> Unit

    Inventory::add_amount

    Inventory::average_cost

    fn Inventory::average_cost(self : Inventory, currency : String) ->
    Cost
    ?

    Inventory::copy

    fn Inventory::copy(self : Inventory) -> Inventory

    Inventory::currencies

    fn Inventory::currencies(self : Inventory) -> Array[String]

    Inventory::is_empty

    fn Inventory::is_empty(self : Inventory) -> Bool

    Inventory::merge_average

    fn Inventory::merge_average(self : Inventory, currency : String) -> Unit

    Collapses every costed position in currency into a single lot held at the weighted average cost. Positions without a cost are left untouched.

    Inventory::new

    fn Inventory::new() -> Inventory

    Inventory::quantity

    Inventory::remove_at

    fn Inventory::remove_at(self : Inventory, index : Int) -> Unit

    Inventory::to_string

    fn Inventory::to_string(self : Inventory) -> String

    book_posting

    fn book_posting(state : BookingState, account : String, posting :
    Posting
    , txn_date :
    Date
    , default_method : String) -> BookingOutcome

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io