pub struct CreateInvoiceRequest {
pub expiration_secs: Option<u32>,
pub amount: Option<Amount>,
pub description: Option<String>,
pub personal_note: Option<String>,
pub partner_pk: Option<UserPk>,
pub partner_prop_fee: Option<Ppm>,
pub partner_base_fee: Option<Amount>,
}Expand description
A request to create a BOLT 11 invoice.
Fields§
§expiration_secs: Option<u32>The expiration, in seconds, to encode into the invoice. If no duration is provided, the expiration time defaults to 86400 (1 day).
amount: Option<Amount>Optionally include an amount, in sats, to encode into the invoice. If no amount is provided, the payer will specify how much to pay.
description: Option<String>The description to be encoded into the invoice. The payer will see this description when they scan the invoice.
personal_note: Option<String>An optional personal note for this invoice.
The payer will not see this note.
If provided, it must be non-empty and no longer than 200 chars / 512 UTF-8 bytes.
partner_pk: Option<UserPk>The partner’s user_pk, if the partner is setting the fee for this payment instead of using Lexe’s default fees.
This must be set in order for partner_prop_fee and partner_base_fee
to take effect.
partner_prop_fee: Option<Ppm>The partner-chosen proportional fee to charge on this payment.
If partner_pk is set, this must be set to Some.
Minimum: 5000 ppm (LSP_USERNODE_SKIM_FEE)
Maximum: 500,000 ppm (50%)
partner_base_fee: Option<Amount>The partner-chosen base fee to charge on this payment.
If this is set, the invoice amount must also be set.