@@ -1015,17 +1015,17 @@ public func FfiConverterTypeBolt11Payment_lower(_ value: Bolt11Payment) -> Unsaf
1015
1015
1016
1016
public protocol Bolt12PaymentProtocol : AnyObject {
1017
1017
1018
- func initiateRefund( amountMsat: UInt64 , expirySecs: UInt32 , quantity : UInt64 ? , payerNote: String ? ) throws -> Refund
1018
+ func initiateRefund( amountMsat: UInt64 , expirySecs: UInt32 , payerNote: String ? ) throws -> Refund
1019
1019
1020
- func receive( amountMsat: UInt64 , description: String , expirySecs: UInt32 ? , quantity : UInt64 ? ) throws -> Offer
1020
+ func receive( amountMsat: UInt64 , description: String , expirySecs: UInt32 ? ) throws -> Offer
1021
1021
1022
1022
func receiveVariableAmount( description: String , expirySecs: UInt32 ? ) throws -> Offer
1023
1023
1024
1024
func requestRefundPayment( refund: Refund ) throws -> Bolt12Invoice
1025
1025
1026
- func send( offer: Offer , quantity : UInt64 ? , payerNote: String ? ) throws -> PaymentId
1026
+ func send( offer: Offer , payerNote: String ? ) throws -> PaymentId
1027
1027
1028
- func sendUsingAmount( offer: Offer , amountMsat: UInt64 , quantity : UInt64 ? , payerNote: String ? ) throws -> PaymentId
1028
+ func sendUsingAmount( offer: Offer , amountMsat: UInt64 , payerNote: String ? ) throws -> PaymentId
1029
1029
1030
1030
}
1031
1031
@@ -1070,24 +1070,22 @@ open class Bolt12Payment:
1070
1070
1071
1071
1072
1072
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 {
1074
1074
return try FfiConverterTypeRefund . lift ( try rustCallWithError ( FfiConverterTypeNodeError . lift) {
1075
1075
uniffi_ldk_node_fn_method_bolt12payment_initiate_refund ( self . uniffiClonePointer ( ) ,
1076
1076
FfiConverterUInt64 . lower ( amountMsat) ,
1077
1077
FfiConverterUInt32 . lower ( expirySecs) ,
1078
- FfiConverterOptionUInt64 . lower ( quantity) ,
1079
1078
FfiConverterOptionString . lower ( payerNote) , $0
1080
1079
)
1081
1080
} )
1082
1081
}
1083
1082
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 {
1085
1084
return try FfiConverterTypeOffer . lift ( try rustCallWithError ( FfiConverterTypeNodeError . lift) {
1086
1085
uniffi_ldk_node_fn_method_bolt12payment_receive ( self . uniffiClonePointer ( ) ,
1087
1086
FfiConverterUInt64 . lower ( amountMsat) ,
1088
1087
FfiConverterString . lower ( description) ,
1089
- FfiConverterOptionUInt32 . lower ( expirySecs) ,
1090
- FfiConverterOptionUInt64 . lower ( quantity) , $0
1088
+ FfiConverterOptionUInt32 . lower ( expirySecs) , $0
1091
1089
)
1092
1090
} )
1093
1091
}
@@ -1109,22 +1107,20 @@ open func requestRefundPayment(refund: Refund)throws -> Bolt12Invoice {
1109
1107
} )
1110
1108
}
1111
1109
1112
- open func send( offer: Offer , quantity : UInt64 ? , payerNote: String ? ) throws -> PaymentId {
1110
+ open func send( offer: Offer , payerNote: String ? ) throws -> PaymentId {
1113
1111
return try FfiConverterTypePaymentId . lift ( try rustCallWithError ( FfiConverterTypeNodeError . lift) {
1114
1112
uniffi_ldk_node_fn_method_bolt12payment_send ( self . uniffiClonePointer ( ) ,
1115
1113
FfiConverterTypeOffer . lower ( offer) ,
1116
- FfiConverterOptionUInt64 . lower ( quantity) ,
1117
1114
FfiConverterOptionString . lower ( payerNote) , $0
1118
1115
)
1119
1116
} )
1120
1117
}
1121
1118
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 {
1123
1120
return try FfiConverterTypePaymentId . lift ( try rustCallWithError ( FfiConverterTypeNodeError . lift) {
1124
1121
uniffi_ldk_node_fn_method_bolt12payment_send_using_amount ( self . uniffiClonePointer ( ) ,
1125
1122
FfiConverterTypeOffer . lower ( offer) ,
1126
1123
FfiConverterUInt64 . lower ( amountMsat) ,
1127
- FfiConverterOptionUInt64 . lower ( quantity) ,
1128
1124
FfiConverterOptionString . lower ( payerNote) , $0
1129
1125
)
1130
1126
} )
@@ -7098,9 +7094,9 @@ public enum PaymentKind {
7098
7094
)
7099
7095
case bolt11Jit( hash: PaymentHash , preimage: PaymentPreimage ? , secret: PaymentSecret ? , counterpartySkimmedFeeMsat: UInt64 ? , lspFeeLimits: LspFeeLimits
7100
7096
)
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 ?
7102
7098
)
7103
- case bolt12Refund( hash: PaymentHash ? , preimage: PaymentPreimage ? , secret: PaymentSecret ? , payerNote: UntrustedString ? , quantity : UInt64 ?
7099
+ case bolt12Refund( hash: PaymentHash ? , preimage: PaymentPreimage ? , secret: PaymentSecret ? , payerNote: UntrustedString ?
7104
7100
)
7105
7101
case spontaneous( hash: PaymentHash , preimage: PaymentPreimage ?
7106
7102
)
@@ -7123,10 +7119,10 @@ public struct FfiConverterTypePaymentKind: FfiConverterRustBuffer {
7123
7119
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)
7124
7120
)
7125
7121
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)
7127
7123
)
7128
7124
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)
7130
7126
)
7131
7127
7132
7128
case 6 : return . spontaneous( hash: try FfiConverterTypePaymentHash . read ( from: & buf) , preimage: try FfiConverterOptionTypePaymentPreimage . read ( from: & buf)
@@ -7162,23 +7158,21 @@ public struct FfiConverterTypePaymentKind: FfiConverterRustBuffer {
7162
7158
FfiConverterTypeLSPFeeLimits . write ( lspFeeLimits, into: & buf)
7163
7159
7164
7160
7165
- case let . bolt12Offer( hash, preimage, secret, offerId, payerNote, quantity ) :
7161
+ case let . bolt12Offer( hash, preimage, secret, offerId, payerNote) :
7166
7162
writeInt ( & buf, Int32 ( 4 ) )
7167
7163
FfiConverterOptionTypePaymentHash . write ( hash, into: & buf)
7168
7164
FfiConverterOptionTypePaymentPreimage . write ( preimage, into: & buf)
7169
7165
FfiConverterOptionTypePaymentSecret . write ( secret, into: & buf)
7170
7166
FfiConverterTypeOfferId . write ( offerId, into: & buf)
7171
7167
FfiConverterOptionTypeUntrustedString . write ( payerNote, into: & buf)
7172
- FfiConverterOptionUInt64 . write ( quantity, into: & buf)
7173
7168
7174
7169
7175
- case let . bolt12Refund( hash, preimage, secret, payerNote, quantity ) :
7170
+ case let . bolt12Refund( hash, preimage, secret, payerNote) :
7176
7171
writeInt ( & buf, Int32 ( 5 ) )
7177
7172
FfiConverterOptionTypePaymentHash . write ( hash, into: & buf)
7178
7173
FfiConverterOptionTypePaymentPreimage . write ( preimage, into: & buf)
7179
7174
FfiConverterOptionTypePaymentSecret . write ( secret, into: & buf)
7180
7175
FfiConverterOptionTypeUntrustedString . write ( payerNote, into: & buf)
7181
- FfiConverterOptionUInt64 . write ( quantity, into: & buf)
7182
7176
7183
7177
7184
7178
case let . spontaneous( hash, preimage) :
@@ -9840,4 +9834,4 @@ private func uniffiEnsureInitialized() {
9840
9834
}
9841
9835
}
9842
9836
9843
- // swiftlint:enable all
9837
+ // swiftlint:enable all
0 commit comments