ParsedPayload
Defined in: parser.ts:140
Properties
Section titled “Properties”additionalData?
Section titled “additionalData?”
readonlyoptionaladditionalData?:ParsedAdditionalData
Defined in: parser.ts:151
amount
Section titled “amount”
readonlyamount:number|null
Defined in: parser.ts:144
country
Section titled “country”
readonlycountry:string
Defined in: parser.ts:146
readonlycrc:ParsedCRC
Defined in: parser.ts:153
currency
Section titled “currency”
readonlycurrency:string
Defined in: parser.ts:145
merchant
Section titled “merchant”
readonlymerchant:ParsedPromptPay|ParsedBillPayment|ParsedTrueMoney|null
Defined in: parser.ts:143
merchantCategoryCode?
Section titled “merchantCategoryCode?”
readonlyoptionalmerchantCategoryCode?:string
Defined in: parser.ts:149
merchantCity?
Section titled “merchantCity?”
readonlyoptionalmerchantCity?:string
Defined in: parser.ts:148
merchantName?
Section titled “merchantName?”
readonlyoptionalmerchantName?:string
Defined in: parser.ts:147
payloadFormat
Section titled “payloadFormat”
readonlypayloadFormat:string
Defined in: parser.ts:141
pointOfInitiation
Section titled “pointOfInitiation”
readonlypointOfInitiation:"static"|"dynamic"
Defined in: parser.ts:142
postalCode?
Section titled “postalCode?”
readonlyoptionalpostalCode?:string
Defined in: parser.ts:150
rawTags
Section titled “rawTags”
readonlyrawTags: readonlyTLVField[]
Defined in: parser.ts:155
All top-level TLV fields, in wire order. Use for unknown / future tags.
vatTqrc?
Section titled “vatTqrc?”
readonlyoptionalvatTqrc?:ParsedVATTQRC
Defined in: parser.ts:152
Methods
Section titled “Methods”getTag()
Section titled “getTag()”getTag(
id):TLVField|undefined
Defined in: parser.ts:157
Lookup a top-level TLV field by id. Returns undefined if absent.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”TLVField | undefined
getTagValue()
Section titled “getTagValue()”getTagValue(
id,subId?):string|undefined
Defined in: parser.ts:163
Lookup a value by id. Pass subId to descend one level into a nested
template (tags 29–31, 62, 64 are templated). Returns undefined if
either the parent or the sub-field is missing.
Parameters
Section titled “Parameters”string
subId?
Section titled “subId?”string
Returns
Section titled “Returns”string | undefined