Constructs a new InvoiceMessage.
Optional
properties:
IInvoiceMessage
Properties to set
InvoiceMessage attachmentDirectPath.
InvoiceMessage attachmentFileEncSha256.
InvoiceMessage attachmentFileSha256.
InvoiceMessage attachmentJpegThumbnail.
InvoiceMessage attachmentMediaKey.
InvoiceMessage attachmentMediaKeyTimestamp.
InvoiceMessage attachmentMimetype.
InvoiceMessage attachmentType.
InvoiceMessage note.
InvoiceMessage token.
Static
create
Creates a new InvoiceMessage instance using the specified properties.
Optional
properties:
IInvoiceMessage
Properties to set
InvoiceMessage instance
Static
decode
Decodes an InvoiceMessage message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
InvoiceMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes an InvoiceMessage message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
InvoiceMessage
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Encodes the specified InvoiceMessage message. Does not implicitly verify messages.
InvoiceMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
encodeEncodes the specified InvoiceMessage message, length delimited. Does not implicitly verify messages.
InvoiceMessage message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
fromCreates an InvoiceMessage message from a plain object. Also converts values to their respective internal types.
Plain object
InvoiceMessage
Static
toCreates a plain object from an InvoiceMessage message. Also converts values to other types if specified.
InvoiceMessage
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents an InvoiceMessage.