Class: PaymentInfo
Defined in: WAProto/index.d.ts:35904
Represents a PaymentInfo.
Implements
Constructors
new PaymentInfo()
new PaymentInfo(
properties
?):PaymentInfo
Defined in: WAProto/index.d.ts:35910
Constructs a new PaymentInfo.
Parameters
properties?
Properties to set
Returns
Properties
amount1000?
optional
amount1000:null
|number
|Long
Defined in: WAProto/index.d.ts:35916
PaymentInfo amount1000.
Implementation of
currency?
optional
currency:null
|string
Defined in: WAProto/index.d.ts:35937
PaymentInfo currency.
Implementation of
currencyDeprecated?
optional
currencyDeprecated:null
|Currency
Defined in: WAProto/index.d.ts:35913
PaymentInfo currencyDeprecated.
Implementation of
IPaymentInfo
.currencyDeprecated
exchangeAmount?
optional
exchangeAmount:null
|IMoney
Defined in: WAProto/index.d.ts:35949
PaymentInfo exchangeAmount.
Implementation of
expiryTimestamp?
optional
expiryTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:35931
PaymentInfo expiryTimestamp.
Implementation of
futureproofed?
optional
futureproofed:null
|boolean
Defined in: WAProto/index.d.ts:35934
PaymentInfo futureproofed.
Implementation of
primaryAmount?
optional
primaryAmount:null
|IMoney
Defined in: WAProto/index.d.ts:35946
PaymentInfo primaryAmount.
Implementation of
receiverJid?
optional
receiverJid:null
|string
Defined in: WAProto/index.d.ts:35919
PaymentInfo receiverJid.
Implementation of
requestMessageKey?
optional
requestMessageKey:null
|IMessageKey
Defined in: WAProto/index.d.ts:35928
PaymentInfo requestMessageKey.
Implementation of
IPaymentInfo
.requestMessageKey
status?
optional
status:null
|Status
Defined in: WAProto/index.d.ts:35922
PaymentInfo status.
Implementation of
transactionTimestamp?
optional
transactionTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:35925
PaymentInfo transactionTimestamp.
Implementation of
IPaymentInfo
.transactionTimestamp
txnStatus?
optional
txnStatus:null
|TxnStatus
Defined in: WAProto/index.d.ts:35940
PaymentInfo txnStatus.
Implementation of
useNoviFiatFormat?
optional
useNoviFiatFormat:null
|boolean
Defined in: WAProto/index.d.ts:35943
PaymentInfo useNoviFiatFormat.
Implementation of
IPaymentInfo
.useNoviFiatFormat
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:36019
Converts this PaymentInfo to JSON.
Returns
object
JSON object
create()
static
create(properties
?):PaymentInfo
Defined in: WAProto/index.d.ts:35956
Creates a new PaymentInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PaymentInfo instance
decode()
static
decode(reader
,length
?):PaymentInfo
Defined in: WAProto/index.d.ts:35982
Decodes a PaymentInfo message from the specified reader or buffer.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
length?
number
Message length if known beforehand
Returns
PaymentInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):PaymentInfo
Defined in: WAProto/index.d.ts:35991
Decodes a PaymentInfo message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
PaymentInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
static
encode(message
,writer
?):Writer
Defined in: WAProto/index.d.ts:35964
Encodes the specified PaymentInfo message. Does not implicitly verify messages.
Parameters
message
PaymentInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
static
encodeDelimited(message
,writer
?):Writer
Defined in: WAProto/index.d.ts:35972
Encodes the specified PaymentInfo message, length delimited. Does not implicitly verify messages.
Parameters
message
PaymentInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):PaymentInfo
Defined in: WAProto/index.d.ts:36005
Creates a PaymentInfo message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
PaymentInfo
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:36026
Gets the default type url for PaymentInfo
Parameters
typeUrlPrefix?
string
your custom typeUrlPrefix(default "type.googleapis.com")
Returns
string
The default type url
toObject()
static
toObject(message
,options
?):object
Defined in: WAProto/index.d.ts:36013
Creates a plain object from a PaymentInfo message. Also converts values to other types if specified.
Parameters
message
PaymentInfo
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:35998
Verifies a PaymentInfo message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not