- Add a new Rhai example showcasing complete payment flow for company registration. This includes company creation, payment record creation, successful payment processing, status updates, and handling failed and refunded payments. - Add new example demonstrating payment integration in Rhai scripting. This example showcases the usage of various payment status methods and verifies data from the database after processing payments. - Add new examples to Cargo.toml to facilitate building and running the examples. This makes it easier to integrate and test payment functionality using Rhai scripting.
91 lines
2.2 KiB
TOML
91 lines
2.2 KiB
TOML
[package]
|
|
name = "heromodels"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
description = "A library for hero models with base model trait implementation"
|
|
authors = ["Your Name <your.email@example.com>"]
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
bincode = { version = "2", features = ["serde"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
ourdb = { path = "../ourdb" }
|
|
tst = { path = "../tst" }
|
|
heromodels-derive = { path = "../heromodels-derive" }
|
|
heromodels_core = { path = "../heromodels_core" }
|
|
rhai_autobind_macros = { path = "../../rhaj/rhai_autobind_macros" }
|
|
rhai_wrapper = { path = "../../rhaj/rhai_wrapper" }
|
|
rhai = { version = "1.21.0", features = ["std", "sync", "decimal", "internals"] } # Added "decimal" feature, sync for Arc<Mutex<>>
|
|
adapter_macros = { path = "../adapter_macros" }
|
|
rhai_client_macros = { path = "../rhai_client_macros" }
|
|
strum = "0.26"
|
|
strum_macros = "0.26"
|
|
|
|
[features]
|
|
default = []
|
|
rhai = []
|
|
|
|
[dev-dependencies]
|
|
chrono = "0.4"
|
|
[[example]]
|
|
name = "calendar_example"
|
|
path = "examples/calendar_example/main.rs"
|
|
|
|
[[example]]
|
|
name = "governance_proposal_example"
|
|
path = "examples/governance_proposal_example/main.rs"
|
|
|
|
[[example]]
|
|
name = "finance_example"
|
|
path = "examples/finance_example/main.rs"
|
|
|
|
[[example]]
|
|
name = "calendar_rhai"
|
|
path = "examples/calendar_rhai/example.rs"
|
|
|
|
[[example]]
|
|
name = "calendar_rhai_client"
|
|
path = "examples/calendar_rhai_client/example.rs"
|
|
|
|
[[example]]
|
|
name = "flow_rhai"
|
|
path = "examples/flow_rhai/example.rs"
|
|
|
|
[[example]]
|
|
name = "finance_rhai"
|
|
path = "examples/finance_rhai/example.rs"
|
|
|
|
[[example]]
|
|
name = "governance_rhai"
|
|
path = "examples/governance_rhai/example.rs"
|
|
|
|
[[example]]
|
|
name = "governance_rhai_client"
|
|
path = "examples/governance_rhai_client/example.rs"
|
|
|
|
[[example]]
|
|
name = "flow_example"
|
|
path = "examples/flow_example.rs"
|
|
|
|
[[example]]
|
|
name = "legal_rhai"
|
|
path = "examples/legal_rhai/example.rs"
|
|
required-features = ["rhai"]
|
|
|
|
|
|
[[example]]
|
|
name = "project_rhai"
|
|
path = "examples/project_rhai/example.rs"
|
|
required-features = ["rhai"]
|
|
|
|
[[example]]
|
|
name = "biz_rhai"
|
|
path = "examples/biz_rhai/example.rs"
|
|
required-features = ["rhai"]
|
|
|
|
[[example]]
|
|
name = "payment_flow_rhai"
|
|
path = "examples/biz_rhai/payment_flow_example.rs"
|
|
required-features = ["rhai"]
|