#[jacquard_derive::lexicon]
#[derive(
serde::Serialize,
serde::Deserialize,
Debug,
Clone,
PartialEq,
Eq,
jacquard_derive::IntoStatic
)]
#[serde(rename_all = "camelCase")]
pub struct Receipt<'a> {
#[serde(borrow)]
pub amount: jacquard_common::CowStr<'a>,
pub created_at: jacquard_common::types::string::Datetime,
#[serde(borrow)]
pub currency: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub r#for: std::option::Option<jacquard_common::types::string::AtUri<'a>>,
#[serde(borrow)]
pub from: crate::app_certified::Did<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub notes: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
pub occurred_at: std::option::Option<jacquard_common::types::string::Datetime>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub payment_network: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub payment_rail: std::option::Option<jacquard_common::CowStr<'a>>,
#[serde(borrow)]
pub to: jacquard_common::CowStr<'a>,
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub transaction_id: std::option::Option<jacquard_common::CowStr<'a>>,
}
pub mod receipt_state {
pub use crate::builder_types::{Set, Unset, IsSet, IsUnset};
#[allow(unused)]
use ::core::marker::PhantomData;
mod sealed {
pub trait Sealed {}
}
pub trait State: sealed::Sealed {
type Amount;
type To;
type From;
type Currency;
type CreatedAt;
}
pub struct Empty(());
impl sealed::Sealed for Empty {}
impl State for Empty {
type Amount = Unset;
type To = Unset;
type From = Unset;
type Currency = Unset;
type CreatedAt = Unset;
}
pub struct SetAmount<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetAmount<S> {}
impl<S: State> State for SetAmount<S> {
type Amount = Set<members::amount>;
type To = S::To;
type From = S::From;
type Currency = S::Currency;
type CreatedAt = S::CreatedAt;
}
pub struct SetTo<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetTo<S> {}
impl<S: State> State for SetTo<S> {
type Amount = S::Amount;
type To = Set<members::to>;
type From = S::From;
type Currency = S::Currency;
type CreatedAt = S::CreatedAt;
}
pub struct SetFrom<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetFrom<S> {}
impl<S: State> State for SetFrom<S> {
type Amount = S::Amount;
type To = S::To;
type From = Set<members::from>;
type Currency = S::Currency;
type CreatedAt = S::CreatedAt;
}
pub struct SetCurrency<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetCurrency<S> {}
impl<S: State> State for SetCurrency<S> {
type Amount = S::Amount;
type To = S::To;
type From = S::From;
type Currency = Set<members::currency>;
type CreatedAt = S::CreatedAt;
}
pub struct SetCreatedAt<S: State = Empty>(PhantomData<fn() -> S>);
impl<S: State> sealed::Sealed for SetCreatedAt<S> {}
impl<S: State> State for SetCreatedAt<S> {
type Amount = S::Amount;
type To = S::To;
type From = S::From;
type Currency = S::Currency;
type CreatedAt = Set<members::created_at>;
}
#[allow(non_camel_case_types)]
pub mod members {
pub struct amount(());
pub struct to(());
pub struct from(());
pub struct currency(());
pub struct created_at(());
}
}
pub struct ReceiptBuilder<'a, S: receipt_state::State> {
_phantom_state: ::core::marker::PhantomData<fn() -> S>,
__unsafe_private_named: (
::core::option::Option<jacquard_common::CowStr<'a>>,
::core::option::Option<jacquard_common::types::string::Datetime>,
::core::option::Option<jacquard_common::CowStr<'a>>,
::core::option::Option<jacquard_common::types::string::AtUri<'a>>,
::core::option::Option<crate::app_certified::Did<'a>>,
::core::option::Option<jacquard_common::CowStr<'a>>,
::core::option::Option<jacquard_common::types::string::Datetime>,
::core::option::Option<jacquard_common::CowStr<'a>>,
::core::option::Option<jacquard_common::CowStr<'a>>,
::core::option::Option<jacquard_common::CowStr<'a>>,
::core::option::Option<jacquard_common::CowStr<'a>>,
),
_phantom: ::core::marker::PhantomData<&'a ()>,
}
impl<'a> Receipt<'a> {
pub fn new() -> ReceiptBuilder<'a, receipt_state::Empty> {
ReceiptBuilder::new()
}
}
impl<'a> ReceiptBuilder<'a, receipt_state::Empty> {
pub fn new() -> Self {
ReceiptBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: (
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
),
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S> ReceiptBuilder<'a, S>
where
S: receipt_state::State,
S::Amount: receipt_state::IsUnset,
{
pub fn amount(
mut self,
value: impl Into<jacquard_common::CowStr<'a>>,
) -> ReceiptBuilder<'a, receipt_state::SetAmount<S>> {
self.__unsafe_private_named.0 = ::core::option::Option::Some(value.into());
ReceiptBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S> ReceiptBuilder<'a, S>
where
S: receipt_state::State,
S::CreatedAt: receipt_state::IsUnset,
{
pub fn created_at(
mut self,
value: impl Into<jacquard_common::types::string::Datetime>,
) -> ReceiptBuilder<'a, receipt_state::SetCreatedAt<S>> {
self.__unsafe_private_named.1 = ::core::option::Option::Some(value.into());
ReceiptBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S> ReceiptBuilder<'a, S>
where
S: receipt_state::State,
S::Currency: receipt_state::IsUnset,
{
pub fn currency(
mut self,
value: impl Into<jacquard_common::CowStr<'a>>,
) -> ReceiptBuilder<'a, receipt_state::SetCurrency<S>> {
self.__unsafe_private_named.2 = ::core::option::Option::Some(value.into());
ReceiptBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S: receipt_state::State> ReceiptBuilder<'a, S> {
pub fn r#for(
mut self,
value: impl Into<Option<jacquard_common::types::string::AtUri<'a>>>,
) -> Self {
self.__unsafe_private_named.3 = value.into();
self
}
pub fn maybe_for(
mut self,
value: Option<jacquard_common::types::string::AtUri<'a>>,
) -> Self {
self.__unsafe_private_named.3 = value;
self
}
}
impl<'a, S> ReceiptBuilder<'a, S>
where
S: receipt_state::State,
S::From: receipt_state::IsUnset,
{
pub fn from(
mut self,
value: impl Into<crate::app_certified::Did<'a>>,
) -> ReceiptBuilder<'a, receipt_state::SetFrom<S>> {
self.__unsafe_private_named.4 = ::core::option::Option::Some(value.into());
ReceiptBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S: receipt_state::State> ReceiptBuilder<'a, S> {
pub fn notes(
mut self,
value: impl Into<Option<jacquard_common::CowStr<'a>>>,
) -> Self {
self.__unsafe_private_named.5 = value.into();
self
}
pub fn maybe_notes(mut self, value: Option<jacquard_common::CowStr<'a>>) -> Self {
self.__unsafe_private_named.5 = value;
self
}
}
impl<'a, S: receipt_state::State> ReceiptBuilder<'a, S> {
pub fn occurred_at(
mut self,
value: impl Into<Option<jacquard_common::types::string::Datetime>>,
) -> Self {
self.__unsafe_private_named.6 = value.into();
self
}
pub fn maybe_occurred_at(
mut self,
value: Option<jacquard_common::types::string::Datetime>,
) -> Self {
self.__unsafe_private_named.6 = value;
self
}
}
impl<'a, S: receipt_state::State> ReceiptBuilder<'a, S> {
pub fn payment_network(
mut self,
value: impl Into<Option<jacquard_common::CowStr<'a>>>,
) -> Self {
self.__unsafe_private_named.7 = value.into();
self
}
pub fn maybe_payment_network(
mut self,
value: Option<jacquard_common::CowStr<'a>>,
) -> Self {
self.__unsafe_private_named.7 = value;
self
}
}
impl<'a, S: receipt_state::State> ReceiptBuilder<'a, S> {
pub fn payment_rail(
mut self,
value: impl Into<Option<jacquard_common::CowStr<'a>>>,
) -> Self {
self.__unsafe_private_named.8 = value.into();
self
}
pub fn maybe_payment_rail(
mut self,
value: Option<jacquard_common::CowStr<'a>>,
) -> Self {
self.__unsafe_private_named.8 = value;
self
}
}
impl<'a, S> ReceiptBuilder<'a, S>
where
S: receipt_state::State,
S::To: receipt_state::IsUnset,
{
pub fn to(
mut self,
value: impl Into<jacquard_common::CowStr<'a>>,
) -> ReceiptBuilder<'a, receipt_state::SetTo<S>> {
self.__unsafe_private_named.9 = ::core::option::Option::Some(value.into());
ReceiptBuilder {
_phantom_state: ::core::marker::PhantomData,
__unsafe_private_named: self.__unsafe_private_named,
_phantom: ::core::marker::PhantomData,
}
}
}
impl<'a, S: receipt_state::State> ReceiptBuilder<'a, S> {
pub fn transaction_id(
mut self,
value: impl Into<Option<jacquard_common::CowStr<'a>>>,
) -> Self {
self.__unsafe_private_named.10 = value.into();
self
}
pub fn maybe_transaction_id(
mut self,
value: Option<jacquard_common::CowStr<'a>>,
) -> Self {
self.__unsafe_private_named.10 = value;
self
}
}
impl<'a, S> ReceiptBuilder<'a, S>
where
S: receipt_state::State,
S::Amount: receipt_state::IsSet,
S::To: receipt_state::IsSet,
S::From: receipt_state::IsSet,
S::Currency: receipt_state::IsSet,
S::CreatedAt: receipt_state::IsSet,
{
pub fn build(self) -> Receipt<'a> {
Receipt {
amount: self.__unsafe_private_named.0.unwrap(),
created_at: self.__unsafe_private_named.1.unwrap(),
currency: self.__unsafe_private_named.2.unwrap(),
r#for: self.__unsafe_private_named.3,
from: self.__unsafe_private_named.4.unwrap(),
notes: self.__unsafe_private_named.5,
occurred_at: self.__unsafe_private_named.6,
payment_network: self.__unsafe_private_named.7,
payment_rail: self.__unsafe_private_named.8,
to: self.__unsafe_private_named.9.unwrap(),
transaction_id: self.__unsafe_private_named.10,
extra_data: Default::default(),
}
}
pub fn build_with_data(
self,
extra_data: std::collections::BTreeMap<
jacquard_common::deps::smol_str::SmolStr,
jacquard_common::types::value::Data<'a>,
>,
) -> Receipt<'a> {
Receipt {
amount: self.__unsafe_private_named.0.unwrap(),
created_at: self.__unsafe_private_named.1.unwrap(),
currency: self.__unsafe_private_named.2.unwrap(),
r#for: self.__unsafe_private_named.3,
from: self.__unsafe_private_named.4.unwrap(),
notes: self.__unsafe_private_named.5,
occurred_at: self.__unsafe_private_named.6,
payment_network: self.__unsafe_private_named.7,
payment_rail: self.__unsafe_private_named.8,
to: self.__unsafe_private_named.9.unwrap(),
transaction_id: self.__unsafe_private_named.10,
extra_data: Some(extra_data),
}
}
}
impl<'a> Receipt<'a> {
pub fn uri(
uri: impl Into<jacquard_common::CowStr<'a>>,
) -> Result<
jacquard_common::types::uri::RecordUri<'a, ReceiptRecord>,
jacquard_common::types::uri::UriError,
> {
jacquard_common::types::uri::RecordUri::try_from_uri(
jacquard_common::types::string::AtUri::new_cow(uri.into())?,
)
}
}
#[derive(
serde::Serialize,
serde::Deserialize,
Debug,
Clone,
PartialEq,
Eq,
jacquard_derive::IntoStatic
)]
#[serde(rename_all = "camelCase")]
pub struct ReceiptGetRecordOutput<'a> {
#[serde(skip_serializing_if = "std::option::Option::is_none")]
#[serde(borrow)]
pub cid: std::option::Option<jacquard_common::types::string::Cid<'a>>,
#[serde(borrow)]
pub uri: jacquard_common::types::string::AtUri<'a>,
#[serde(borrow)]
pub value: Receipt<'a>,
}
impl From<ReceiptGetRecordOutput<'_>> for Receipt<'_> {
fn from(output: ReceiptGetRecordOutput<'_>) -> Self {
use jacquard_common::IntoStatic;
output.value.into_static()
}
}
impl jacquard_common::types::collection::Collection for Receipt<'_> {
const NSID: &'static str = "org.hypercerts.funding.receipt";
type Record = ReceiptRecord;
}
#[derive(Debug, serde::Serialize, serde::Deserialize)]
pub struct ReceiptRecord;
impl jacquard_common::xrpc::XrpcResp for ReceiptRecord {
const NSID: &'static str = "org.hypercerts.funding.receipt";
const ENCODING: &'static str = "application/json";
type Output<'de> = ReceiptGetRecordOutput<'de>;
type Err<'de> = jacquard_common::types::collection::RecordError<'de>;
}
impl jacquard_common::types::collection::Collection for ReceiptRecord {
const NSID: &'static str = "org.hypercerts.funding.receipt";
type Record = ReceiptRecord;
}
impl<'a> ::jacquard_lexicon::schema::LexiconSchema for Receipt<'a> {
fn nsid() -> &'static str {
"org.hypercerts.funding.receipt"
}
fn def_name() -> &'static str {
"main"
}
fn lexicon_doc() -> ::jacquard_lexicon::lexicon::LexiconDoc<'static> {
lexicon_doc_org_hypercerts_funding_receipt()
}
fn validate(
&self,
) -> ::core::result::Result<(), ::jacquard_lexicon::validation::ConstraintError> {
{
let value = &self.amount;
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 50usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"amount",
),
max: 50usize,
actual: <str>::len(value.as_ref()),
});
}
}
{
let value = &self.currency;
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 10usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"currency",
),
max: 10usize,
actual: <str>::len(value.as_ref()),
});
}
}
if let Some(ref value) = self.notes {
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 500usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"notes",
),
max: 500usize,
actual: <str>::len(value.as_ref()),
});
}
}
if let Some(ref value) = self.payment_network {
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 50usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"payment_network",
),
max: 50usize,
actual: <str>::len(value.as_ref()),
});
}
}
if let Some(ref value) = self.payment_rail {
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 50usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"payment_rail",
),
max: 50usize,
actual: <str>::len(value.as_ref()),
});
}
}
{
let value = &self.to;
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 2048usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"to",
),
max: 2048usize,
actual: <str>::len(value.as_ref()),
});
}
}
if let Some(ref value) = self.transaction_id {
#[allow(unused_comparisons)]
if <str>::len(value.as_ref()) > 256usize {
return Err(::jacquard_lexicon::validation::ConstraintError::MaxLength {
path: ::jacquard_lexicon::validation::ValidationPath::from_field(
"transaction_id",
),
max: 256usize,
actual: <str>::len(value.as_ref()),
});
}
}
Ok(())
}
}
fn lexicon_doc_org_hypercerts_funding_receipt() -> ::jacquard_lexicon::lexicon::LexiconDoc<
'static,
> {
::jacquard_lexicon::lexicon::LexiconDoc {
lexicon: ::jacquard_lexicon::lexicon::Lexicon::Lexicon1,
id: ::jacquard_common::CowStr::new_static("org.hypercerts.funding.receipt"),
revision: None,
description: None,
defs: {
let mut map = ::alloc::collections::BTreeMap::new();
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static("main"),
::jacquard_lexicon::lexicon::LexUserType::Record(::jacquard_lexicon::lexicon::LexRecord {
description: Some(
::jacquard_common::CowStr::new_static(
"Records a funding receipt for a payment from one user to another user. It may be recorded by the recipient, by the sender, or by a third party. The sender may remain anonymous.",
),
),
key: Some(::jacquard_common::CowStr::new_static("tid")),
record: ::jacquard_lexicon::lexicon::LexRecordRecord::Object(::jacquard_lexicon::lexicon::LexObject {
description: None,
required: Some(
vec![
::jacquard_common::deps::smol_str::SmolStr::new_static("from"),
::jacquard_common::deps::smol_str::SmolStr::new_static("to"),
::jacquard_common::deps::smol_str::SmolStr::new_static("amount"),
::jacquard_common::deps::smol_str::SmolStr::new_static("currency"),
::jacquard_common::deps::smol_str::SmolStr::new_static("createdAt")
],
),
nullable: None,
properties: {
#[allow(unused_mut)]
let mut map = ::alloc::collections::BTreeMap::new();
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"amount",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"Amount of funding received as a numeric string (e.g. '1000.50').",
),
),
format: None,
default: None,
min_length: None,
max_length: Some(50usize),
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"createdAt",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"Client-declared timestamp when this receipt record was created.",
),
),
format: Some(
::jacquard_lexicon::lexicon::LexStringFormat::Datetime,
),
default: None,
min_length: None,
max_length: None,
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"currency",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"Currency of the payment (e.g. EUR, USD, ETH).",
),
),
format: None,
default: None,
min_length: None,
max_length: Some(10usize),
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"for",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"Optional reference to the activity, project, or organization this funding relates to.",
),
),
format: Some(
::jacquard_lexicon::lexicon::LexStringFormat::AtUri,
),
default: None,
min_length: None,
max_length: None,
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"from",
),
::jacquard_lexicon::lexicon::LexObjectProperty::Ref(::jacquard_lexicon::lexicon::LexRef {
description: None,
r#ref: ::jacquard_common::CowStr::new_static(
"app.certified.defs#did",
),
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"notes",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"Optional notes or additional context for this funding receipt.",
),
),
format: None,
default: None,
min_length: None,
max_length: Some(500usize),
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"occurredAt",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"Timestamp when the payment occurred.",
),
),
format: Some(
::jacquard_lexicon::lexicon::LexStringFormat::Datetime,
),
default: None,
min_length: None,
max_length: None,
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"paymentNetwork",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"Optional network within the payment rail (e.g. arbitrum, ethereum, sepa, visa, paypal).",
),
),
format: None,
default: None,
min_length: None,
max_length: Some(50usize),
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"paymentRail",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"How the funds were transferred (e.g. bank_transfer, credit_card, onchain, cash, check, payment_processor).",
),
),
format: None,
default: None,
min_length: None,
max_length: Some(50usize),
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"to",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"The recipient of the funds. Can be identified by DID or a clear-text name.",
),
),
format: None,
default: None,
min_length: None,
max_length: Some(2048usize),
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map.insert(
::jacquard_common::deps::smol_str::SmolStr::new_static(
"transactionId",
),
::jacquard_lexicon::lexicon::LexObjectProperty::String(::jacquard_lexicon::lexicon::LexString {
description: Some(
::jacquard_common::CowStr::new_static(
"Identifier of the underlying payment transaction (e.g. bank reference, onchain transaction hash, or processor-specific ID). Use paymentNetwork to specify the network where applicable.",
),
),
format: None,
default: None,
min_length: None,
max_length: Some(256usize),
min_graphemes: None,
max_graphemes: None,
r#enum: None,
r#const: None,
known_values: None,
}),
);
map
},
}),
}),
);
map
},
}
}