@@ -517,12 +517,12 @@ public protocol Bolt11InvoiceProtocol : AnyObject {
517
517
518
518
func currency( ) -> Currency
519
519
520
- func description( ) -> Bolt11InvoiceDescription
521
-
522
520
func expiryTimeSeconds( ) -> UInt64
523
521
524
522
func fallbackAddresses( ) -> [ Address ]
525
523
524
+ func invoiceDescription( ) -> Bolt11InvoiceDescription
525
+
526
526
func isExpired( ) -> Bool
527
527
528
528
func minFinalCltvExpiryDelta( ) -> UInt64
@@ -548,6 +548,9 @@ public protocol Bolt11InvoiceProtocol : AnyObject {
548
548
}
549
549
550
550
open class Bolt11Invoice :
551
+ CustomDebugStringConvertible ,
552
+ CustomStringConvertible ,
553
+ Equatable ,
551
554
Bolt11InvoiceProtocol {
552
555
fileprivate let pointer : UnsafeMutableRawPointer !
553
556
@@ -610,13 +613,6 @@ open func currency() -> Currency {
610
613
} )
611
614
}
612
615
613
- open func description( ) -> Bolt11InvoiceDescription {
614
- return try ! FfiConverterTypeBolt11InvoiceDescription . lift ( try ! rustCall ( ) {
615
- uniffi_ldk_node_fn_method_bolt11invoice_description ( self . uniffiClonePointer ( ) , $0
616
- )
617
- } )
618
- }
619
-
620
616
open func expiryTimeSeconds( ) -> UInt64 {
621
617
return try ! FfiConverterUInt64 . lift ( try ! rustCall ( ) {
622
618
uniffi_ldk_node_fn_method_bolt11invoice_expiry_time_seconds ( self . uniffiClonePointer ( ) , $0
@@ -631,6 +627,13 @@ open func fallbackAddresses() -> [Address] {
631
627
} )
632
628
}
633
629
630
+ open func invoiceDescription( ) -> Bolt11InvoiceDescription {
631
+ return try ! FfiConverterTypeBolt11InvoiceDescription . lift ( try ! rustCall ( ) {
632
+ uniffi_ldk_node_fn_method_bolt11invoice_invoice_description ( self . uniffiClonePointer ( ) , $0
633
+ )
634
+ } )
635
+ }
636
+
634
637
open func isExpired( ) -> Bool {
635
638
return try ! FfiConverterBool . lift ( try ! rustCall ( ) {
636
639
uniffi_ldk_node_fn_method_bolt11invoice_is_expired ( self . uniffiClonePointer ( ) , $0
@@ -709,6 +712,31 @@ open func wouldExpire(atTimeSeconds: UInt64) -> Bool {
709
712
} )
710
713
}
711
714
715
+ open var debugDescription : String {
716
+ return try ! FfiConverterString . lift (
717
+ try ! rustCall ( ) {
718
+ uniffi_ldk_node_fn_method_bolt11invoice_uniffi_trait_debug ( self . uniffiClonePointer ( ) , $0
719
+ )
720
+ }
721
+ )
722
+ }
723
+ open var description : String {
724
+ return try ! FfiConverterString . lift (
725
+ try ! rustCall ( ) {
726
+ uniffi_ldk_node_fn_method_bolt11invoice_uniffi_trait_display ( self . uniffiClonePointer ( ) , $0
727
+ )
728
+ }
729
+ )
730
+ }
731
+ public static func == ( self: Bolt11Invoice , other: Bolt11Invoice ) -> Bool {
732
+ return try ! FfiConverterBool . lift (
733
+ try ! rustCall ( ) {
734
+ uniffi_ldk_node_fn_method_bolt11invoice_uniffi_trait_eq_eq ( self . uniffiClonePointer ( ) ,
735
+ FfiConverterTypeBolt11Invoice . lower ( other) , $0
736
+ )
737
+ }
738
+ )
739
+ }
712
740
713
741
}
714
742
@@ -9451,15 +9479,15 @@ private var initializationResult: InitializationResult {
9451
9479
if ( uniffi_ldk_node_checksum_method_bolt11invoice_currency ( ) != 32179 ) {
9452
9480
return InitializationResult . apiChecksumMismatch
9453
9481
}
9454
- if ( uniffi_ldk_node_checksum_method_bolt11invoice_description ( ) != 9887 ) {
9455
- return InitializationResult . apiChecksumMismatch
9456
- }
9457
9482
if ( uniffi_ldk_node_checksum_method_bolt11invoice_expiry_time_seconds ( ) != 23625 ) {
9458
9483
return InitializationResult . apiChecksumMismatch
9459
9484
}
9460
9485
if ( uniffi_ldk_node_checksum_method_bolt11invoice_fallback_addresses ( ) != 55276 ) {
9461
9486
return InitializationResult . apiChecksumMismatch
9462
9487
}
9488
+ if ( uniffi_ldk_node_checksum_method_bolt11invoice_invoice_description ( ) != 395 ) {
9489
+ return InitializationResult . apiChecksumMismatch
9490
+ }
9463
9491
if ( uniffi_ldk_node_checksum_method_bolt11invoice_is_expired ( ) != 15932 ) {
9464
9492
return InitializationResult . apiChecksumMismatch
9465
9493
}
0 commit comments