Class InvoiceFeatures


  • public class InvoiceFeatures
    extends Object
    Features used within an invoice.
    • Method Detail

      • eq

        public boolean eq​(InvoiceFeatures b)
        Checks if two InvoiceFeaturess contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • empty

        public static InvoiceFeatures empty()
        Create a blank Features with no features set
      • requires_unknown_bits

        public boolean requires_unknown_bits()
        Returns true if this `Features` object contains unknown feature flags which are set as \"required\".
      • write

        public byte[] write()
        Serialize the InvoiceFeatures object into a byte array which can be read by InvoiceFeatures_read
      • set_variable_length_onion_optional

        public void set_variable_length_onion_optional()
        Set this feature as optional.
      • set_variable_length_onion_required

        public void set_variable_length_onion_required()
        Set this feature as required.
      • supports_variable_length_onion

        public boolean supports_variable_length_onion()
        Checks if this feature is supported.
      • requires_variable_length_onion

        public boolean requires_variable_length_onion()
        Checks if this feature is required.
      • set_payment_secret_optional

        public void set_payment_secret_optional()
        Set this feature as optional.
      • set_payment_secret_required

        public void set_payment_secret_required()
        Set this feature as required.
      • supports_payment_secret

        public boolean supports_payment_secret()
        Checks if this feature is supported.
      • requires_payment_secret

        public boolean requires_payment_secret()
        Checks if this feature is required.
      • set_basic_mpp_optional

        public void set_basic_mpp_optional()
        Set this feature as optional.
      • set_basic_mpp_required

        public void set_basic_mpp_required()
        Set this feature as required.
      • supports_basic_mpp

        public boolean supports_basic_mpp()
        Checks if this feature is supported.
      • requires_basic_mpp

        public boolean requires_basic_mpp()
        Checks if this feature is required.
      • set_payment_metadata_optional

        public void set_payment_metadata_optional()
        Set this feature as optional.
      • set_payment_metadata_required

        public void set_payment_metadata_required()
        Set this feature as required.
      • supports_payment_metadata

        public boolean supports_payment_metadata()
        Checks if this feature is supported.
      • requires_payment_metadata

        public boolean requires_payment_metadata()
        Checks if this feature is required.