@@ -1015,17 +1015,17 @@ public func FfiConverterTypeBolt11Payment_lower(_ value: Bolt11Payment) -> Unsaf
10151015
10161016public protocol Bolt12PaymentProtocol : AnyObject {
10171017
1018- func initiateRefund( amountMsat: UInt64 , expirySecs: UInt32 , quantity : UInt64 ? , payerNote: String ? ) throws -> Refund
1018+ func initiateRefund( amountMsat: UInt64 , expirySecs: UInt32 , payerNote: String ? ) throws -> Refund
10191019
1020- func receive( amountMsat: UInt64 , description: String , expirySecs: UInt32 ? , quantity : UInt64 ? ) throws -> Offer
1020+ func receive( amountMsat: UInt64 , description: String , expirySecs: UInt32 ? ) throws -> Offer
10211021
10221022 func receiveVariableAmount( description: String , expirySecs: UInt32 ? ) throws -> Offer
10231023
10241024 func requestRefundPayment( refund: Refund ) throws -> Bolt12Invoice
10251025
1026- func send( offer: Offer , quantity : UInt64 ? , payerNote: String ? ) throws -> PaymentId
1026+ func send( offer: Offer , payerNote: String ? ) throws -> PaymentId
10271027
1028- func sendUsingAmount( offer: Offer , amountMsat: UInt64 , quantity : UInt64 ? , payerNote: String ? ) throws -> PaymentId
1028+ func sendUsingAmount( offer: Offer , amountMsat: UInt64 , payerNote: String ? ) throws -> PaymentId
10291029
10301030}
10311031
@@ -1070,24 +1070,22 @@ open class Bolt12Payment:
10701070
10711071
10721072
1073- open func initiateRefund( amountMsat: UInt64 , expirySecs: UInt32 , quantity : UInt64 ? , payerNote: String ? ) throws -> Refund {
1073+ open func initiateRefund( amountMsat: UInt64 , expirySecs: UInt32 , payerNote: String ? ) throws -> Refund {
10741074 return try FfiConverterTypeRefund . lift ( try rustCallWithError ( FfiConverterTypeNodeError . lift) {
10751075 uniffi_ldk_node_fn_method_bolt12payment_initiate_refund ( self . uniffiClonePointer ( ) ,
10761076 FfiConverterUInt64 . lower ( amountMsat) ,
10771077 FfiConverterUInt32 . lower ( expirySecs) ,
1078- FfiConverterOptionUInt64 . lower ( quantity) ,
10791078 FfiConverterOptionString . lower ( payerNote) , $0
10801079 )
10811080} )
10821081}
10831082
1084- open func receive( amountMsat: UInt64 , description: String , expirySecs: UInt32 ? , quantity : UInt64 ? ) throws -> Offer {
1083+ open func receive( amountMsat: UInt64 , description: String , expirySecs: UInt32 ? ) throws -> Offer {
10851084 return try FfiConverterTypeOffer . lift ( try rustCallWithError ( FfiConverterTypeNodeError . lift) {
10861085 uniffi_ldk_node_fn_method_bolt12payment_receive ( self . uniffiClonePointer ( ) ,
10871086 FfiConverterUInt64 . lower ( amountMsat) ,
10881087 FfiConverterString . lower ( description) ,
1089- FfiConverterOptionUInt32 . lower ( expirySecs) ,
1090- FfiConverterOptionUInt64 . lower ( quantity) , $0
1088+ FfiConverterOptionUInt32 . lower ( expirySecs) , $0
10911089 )
10921090} )
10931091}
@@ -1109,22 +1107,20 @@ open func requestRefundPayment(refund: Refund)throws -> Bolt12Invoice {
11091107} )
11101108}
11111109
1112- open func send( offer: Offer , quantity : UInt64 ? , payerNote: String ? ) throws -> PaymentId {
1110+ open func send( offer: Offer , payerNote: String ? ) throws -> PaymentId {
11131111 return try FfiConverterTypePaymentId . lift ( try rustCallWithError ( FfiConverterTypeNodeError . lift) {
11141112 uniffi_ldk_node_fn_method_bolt12payment_send ( self . uniffiClonePointer ( ) ,
11151113 FfiConverterTypeOffer . lower ( offer) ,
1116- FfiConverterOptionUInt64 . lower ( quantity) ,
11171114 FfiConverterOptionString . lower ( payerNote) , $0
11181115 )
11191116} )
11201117}
11211118
1122- open func sendUsingAmount( offer: Offer , amountMsat: UInt64 , quantity : UInt64 ? , payerNote: String ? ) throws -> PaymentId {
1119+ open func sendUsingAmount( offer: Offer , amountMsat: UInt64 , payerNote: String ? ) throws -> PaymentId {
11231120 return try FfiConverterTypePaymentId . lift ( try rustCallWithError ( FfiConverterTypeNodeError . lift) {
11241121 uniffi_ldk_node_fn_method_bolt12payment_send_using_amount ( self . uniffiClonePointer ( ) ,
11251122 FfiConverterTypeOffer . lower ( offer) ,
11261123 FfiConverterUInt64 . lower ( amountMsat) ,
1127- FfiConverterOptionUInt64 . lower ( quantity) ,
11281124 FfiConverterOptionString . lower ( payerNote) , $0
11291125 )
11301126} )
@@ -7098,9 +7094,9 @@ public enum PaymentKind {
70987094 )
70997095 case bolt11Jit( hash: PaymentHash , preimage: PaymentPreimage ? , secret: PaymentSecret ? , counterpartySkimmedFeeMsat: UInt64 ? , lspFeeLimits: LspFeeLimits
71007096 )
7101- case bolt12Offer( hash: PaymentHash ? , preimage: PaymentPreimage ? , secret: PaymentSecret ? , offerId: OfferId , payerNote: UntrustedString ? , quantity : UInt64 ?
7097+ case bolt12Offer( hash: PaymentHash ? , preimage: PaymentPreimage ? , secret: PaymentSecret ? , offerId: OfferId , payerNote: UntrustedString ?
71027098 )
7103- case bolt12Refund( hash: PaymentHash ? , preimage: PaymentPreimage ? , secret: PaymentSecret ? , payerNote: UntrustedString ? , quantity : UInt64 ?
7099+ case bolt12Refund( hash: PaymentHash ? , preimage: PaymentPreimage ? , secret: PaymentSecret ? , payerNote: UntrustedString ?
71047100 )
71057101 case spontaneous( hash: PaymentHash , preimage: PaymentPreimage ?
71067102 )
@@ -7123,10 +7119,10 @@ public struct FfiConverterTypePaymentKind: FfiConverterRustBuffer {
71237119 case 3 : return . bolt11Jit( hash: try FfiConverterTypePaymentHash . read ( from: & buf) , preimage: try FfiConverterOptionTypePaymentPreimage . read ( from: & buf) , secret: try FfiConverterOptionTypePaymentSecret . read ( from: & buf) , counterpartySkimmedFeeMsat: try FfiConverterOptionUInt64 . read ( from: & buf) , lspFeeLimits: try FfiConverterTypeLSPFeeLimits . read ( from: & buf)
71247120 )
71257121
7126- case 4 : return . bolt12Offer( hash: try FfiConverterOptionTypePaymentHash . read ( from: & buf) , preimage: try FfiConverterOptionTypePaymentPreimage . read ( from: & buf) , secret: try FfiConverterOptionTypePaymentSecret . read ( from: & buf) , offerId: try FfiConverterTypeOfferId . read ( from: & buf) , payerNote: try FfiConverterOptionTypeUntrustedString . read ( from: & buf) , quantity : try FfiConverterOptionUInt64 . read ( from : & buf )
7122+ case 4 : return . bolt12Offer( hash: try FfiConverterOptionTypePaymentHash . read ( from: & buf) , preimage: try FfiConverterOptionTypePaymentPreimage . read ( from: & buf) , secret: try FfiConverterOptionTypePaymentSecret . read ( from: & buf) , offerId: try FfiConverterTypeOfferId . read ( from: & buf) , payerNote: try FfiConverterOptionTypeUntrustedString . read ( from: & buf)
71277123 )
71287124
7129- case 5 : return . bolt12Refund( hash: try FfiConverterOptionTypePaymentHash . read ( from: & buf) , preimage: try FfiConverterOptionTypePaymentPreimage . read ( from: & buf) , secret: try FfiConverterOptionTypePaymentSecret . read ( from: & buf) , payerNote: try FfiConverterOptionTypeUntrustedString . read ( from: & buf) , quantity : try FfiConverterOptionUInt64 . read ( from : & buf )
7125+ case 5 : return . bolt12Refund( hash: try FfiConverterOptionTypePaymentHash . read ( from: & buf) , preimage: try FfiConverterOptionTypePaymentPreimage . read ( from: & buf) , secret: try FfiConverterOptionTypePaymentSecret . read ( from: & buf) , payerNote: try FfiConverterOptionTypeUntrustedString . read ( from: & buf)
71307126 )
71317127
71327128 case 6 : return . spontaneous( hash: try FfiConverterTypePaymentHash . read ( from: & buf) , preimage: try FfiConverterOptionTypePaymentPreimage . read ( from: & buf)
@@ -7162,23 +7158,21 @@ public struct FfiConverterTypePaymentKind: FfiConverterRustBuffer {
71627158 FfiConverterTypeLSPFeeLimits . write ( lspFeeLimits, into: & buf)
71637159
71647160
7165- case let . bolt12Offer( hash, preimage, secret, offerId, payerNote, quantity ) :
7161+ case let . bolt12Offer( hash, preimage, secret, offerId, payerNote) :
71667162 writeInt ( & buf, Int32 ( 4 ) )
71677163 FfiConverterOptionTypePaymentHash . write ( hash, into: & buf)
71687164 FfiConverterOptionTypePaymentPreimage . write ( preimage, into: & buf)
71697165 FfiConverterOptionTypePaymentSecret . write ( secret, into: & buf)
71707166 FfiConverterTypeOfferId . write ( offerId, into: & buf)
71717167 FfiConverterOptionTypeUntrustedString . write ( payerNote, into: & buf)
7172- FfiConverterOptionUInt64 . write ( quantity, into: & buf)
71737168
71747169
7175- case let . bolt12Refund( hash, preimage, secret, payerNote, quantity ) :
7170+ case let . bolt12Refund( hash, preimage, secret, payerNote) :
71767171 writeInt ( & buf, Int32 ( 5 ) )
71777172 FfiConverterOptionTypePaymentHash . write ( hash, into: & buf)
71787173 FfiConverterOptionTypePaymentPreimage . write ( preimage, into: & buf)
71797174 FfiConverterOptionTypePaymentSecret . write ( secret, into: & buf)
71807175 FfiConverterOptionTypeUntrustedString . write ( payerNote, into: & buf)
7181- FfiConverterOptionUInt64 . write ( quantity, into: & buf)
71827176
71837177
71847178 case let . spontaneous( hash, preimage) :
@@ -9840,4 +9834,4 @@ private func uniffiEnsureInitialized() {
98409834 }
98419835}
98429836
9843- // swiftlint:enable all
9837+ // swiftlint:enable all
0 commit comments