File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,14 +115,14 @@ pub fn remove_admin_action(args: &RemoveAdminActionArgs) -> Result<()> {
115115}
116116
117117#[ derive( Args ) ]
118- pub struct GenerateInvoiceArgs {
118+ pub struct CreateInvoiceArgs {
119119 pub amount_sats : i64 ,
120120 pub description : String ,
121121}
122122
123- pub fn generate_invoice ( args : & GenerateInvoiceArgs ) -> Result < ( ) > {
123+ pub fn create_invoice ( args : & CreateInvoiceArgs ) -> Result < ( ) > {
124124 rpc:: call (
125- "generate_invoice " ,
125+ "create_invoice " ,
126126 json ! ( { "amount_sats" : args. amount_sats, "description" : args. description} ) ,
127127 ) ?
128128 . print ( )
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ enum Commands {
7070 AddAdminAction ( command:: admin:: AddAdminActionArgs ) ,
7171 /// Block other admin from using a certain action. You must be super admin to use this command
7272 RemoveAdminAction ( command:: admin:: RemoveAdminActionArgs ) ,
73- /// Generate invoice
74- GenerateInvoice ( command:: admin:: GenerateInvoiceArgs ) ,
73+ /// Create invoice
74+ CreateInvoice ( command:: admin:: CreateInvoiceArgs ) ,
7575 /// Sync unpaid invoices
7676 SyncUnpaidInvoices ( command:: admin:: SyncUnpaidInvoicesArgs ) ,
7777 /// Get invoice details, you only need to pass invoice ID (integer)
@@ -191,7 +191,7 @@ fn main() -> Result<()> {
191191 Commands :: AddUser ( args) => command:: admin:: add_user ( args) ,
192192 Commands :: AddAdminAction ( args) => command:: admin:: add_admin_action ( args) ,
193193 Commands :: RemoveAdminAction ( args) => command:: admin:: remove_admin_action ( args) ,
194- Commands :: GenerateInvoice ( args) => command:: admin:: generate_invoice ( args) ,
194+ Commands :: CreateInvoice ( args) => command:: admin:: create_invoice ( args) ,
195195 Commands :: SyncUnpaidInvoices ( args) => command:: admin:: sync_unpaid_invoices ( args) ,
196196 Commands :: GetInvoice ( args) => command:: admin:: get_invoice ( args) ,
197197 // Common
You can’t perform that action at this time.
0 commit comments