Skip to main content

Class: PaymentInfo

Defined in: WAProto/index.d.ts:38630

Represents a PaymentInfo.

Implements

Constructors

new PaymentInfo()

new PaymentInfo(properties?): PaymentInfo

Defined in: WAProto/index.d.ts:38636

Constructs a new PaymentInfo.

Parameters

properties?

IPaymentInfo

Properties to set

Returns

PaymentInfo

Properties

amount1000?

optional amount1000: null | number | Long

Defined in: WAProto/index.d.ts:38642

PaymentInfo amount1000.

Implementation of

IPaymentInfo.amount1000


currency?

optional currency: null | string

Defined in: WAProto/index.d.ts:38663

PaymentInfo currency.

Implementation of

IPaymentInfo.currency


currencyDeprecated?

optional currencyDeprecated: null | Currency

Defined in: WAProto/index.d.ts:38639

PaymentInfo currencyDeprecated.

Implementation of

IPaymentInfo.currencyDeprecated


exchangeAmount?

optional exchangeAmount: null | IMoney

Defined in: WAProto/index.d.ts:38675

PaymentInfo exchangeAmount.

Implementation of

IPaymentInfo.exchangeAmount


expiryTimestamp?

optional expiryTimestamp: null | number | Long

Defined in: WAProto/index.d.ts:38657

PaymentInfo expiryTimestamp.

Implementation of

IPaymentInfo.expiryTimestamp


futureproofed?

optional futureproofed: null | boolean

Defined in: WAProto/index.d.ts:38660

PaymentInfo futureproofed.

Implementation of

IPaymentInfo.futureproofed


primaryAmount?

optional primaryAmount: null | IMoney

Defined in: WAProto/index.d.ts:38672

PaymentInfo primaryAmount.

Implementation of

IPaymentInfo.primaryAmount


receiverJid?

optional receiverJid: null | string

Defined in: WAProto/index.d.ts:38645

PaymentInfo receiverJid.

Implementation of

IPaymentInfo.receiverJid


requestMessageKey?

optional requestMessageKey: null | IMessageKey

Defined in: WAProto/index.d.ts:38654

PaymentInfo requestMessageKey.

Implementation of

IPaymentInfo.requestMessageKey


status?

optional status: null | Status

Defined in: WAProto/index.d.ts:38648

PaymentInfo status.

Implementation of

IPaymentInfo.status


transactionTimestamp?

optional transactionTimestamp: null | number | Long

Defined in: WAProto/index.d.ts:38651

PaymentInfo transactionTimestamp.

Implementation of

IPaymentInfo.transactionTimestamp


txnStatus?

optional txnStatus: null | TxnStatus

Defined in: WAProto/index.d.ts:38666

PaymentInfo txnStatus.

Implementation of

IPaymentInfo.txnStatus


useNoviFiatFormat?

optional useNoviFiatFormat: null | boolean

Defined in: WAProto/index.d.ts:38669

PaymentInfo useNoviFiatFormat.

Implementation of

IPaymentInfo.useNoviFiatFormat

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:38745

Converts this PaymentInfo to JSON.

Returns

object

JSON object


create()

static create(properties?): PaymentInfo

Defined in: WAProto/index.d.ts:38682

Creates a new PaymentInfo instance using the specified properties.

Parameters

properties?

IPaymentInfo

Properties to set

Returns

PaymentInfo

PaymentInfo instance


decode()

static decode(reader, length?): PaymentInfo

Defined in: WAProto/index.d.ts:38708

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

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:38717

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

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:38690

Encodes the specified PaymentInfo message. Does not implicitly verify messages.

Parameters

message

IPaymentInfo

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:38698

Encodes the specified PaymentInfo message, length delimited. Does not implicitly verify messages.

Parameters

message

IPaymentInfo

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:38731

Creates a PaymentInfo message from a plain object. Also converts values to their respective internal types.

Parameters

object

Plain object

Returns

PaymentInfo

PaymentInfo


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:38752

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:38739

Creates a plain object from a PaymentInfo message. Also converts values to other types if specified.

Parameters

message

PaymentInfo

PaymentInfo

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

Defined in: WAProto/index.d.ts:38724

Verifies a PaymentInfo message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not