fix initial invoice ack
This commit is contained in:
parent
c31360b0cd
commit
c85ea7ff57
12 changed files with 239 additions and 263 deletions
|
|
@ -610,12 +610,12 @@ service LightningPub {
|
|||
option (http_route) = "/api/user/manage/reset";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc AuthorizeDebit(structs.DebitAuthorizationRequest) returns (structs.DebitAuthorization){
|
||||
/* rpc AuthorizeDebit(structs.DebitAuthorizationRequest) returns (structs.DebitAuthorization){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/debit/authorize";
|
||||
option (nostr) = true;
|
||||
}
|
||||
} */
|
||||
rpc EditDebit(structs.DebitAuthorizationRequest) returns (structs.Empty){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
|
|
|
|||
|
|
@ -753,12 +753,18 @@ message LiveManageRequest {
|
|||
string npub = 2;
|
||||
}
|
||||
|
||||
message DebitToAuthorize {
|
||||
repeated DebitRule rules = 1;
|
||||
optional string invoice = 2;
|
||||
}
|
||||
|
||||
message DebitResponse {
|
||||
string request_id = 1;
|
||||
string npub = 2;
|
||||
oneof response {
|
||||
Empty denied = 3;
|
||||
string invoice = 4;
|
||||
DebitToAuthorize authorize = 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue