qris-decoder
Version:
Library for decoding qris
44 lines • 1.35 kB
TypeScript
export interface ITagsObject {
id: string;
name: string;
children?: ITagsObject[];
}
export interface IQrisMerchantInformationObject {
global_unique_identifier?: string;
merchant_pan?: string;
merchant_id?: string;
merchant_criteria?: string;
}
export interface IQrisAdditionalDataObject {
billing_ide?: string;
bill_number?: string;
mobile_number?: string;
store_label?: string;
loyalty_number?: string;
reference_label?: string;
customer_label?: string;
terminal_label?: string;
purpose_of_transaction?: string;
additional_consumer_data?: string;
}
export interface IDecodeQrisOutput {
payload_format_indicator?: string;
point_of_initiation_method?: string;
merchant_principal_visa?: string;
merchant_principal_mastercard?: string;
merchant_information_26?: IQrisMerchantInformationObject;
merchant_information_51?: IQrisMerchantInformationObject;
mcc?: string;
transaction_currency?: string;
transaction_amount?: number;
tip_indicator?: string;
fixed_tip_amount?: number;
percentage_tip_amount?: number;
country_code?: string;
merchant_name?: string;
merchant_city?: string;
merchant_postal_code?: string;
additional_data?: IQrisAdditionalDataObject;
crc?: string;
}
//# sourceMappingURL=index.interface.d.ts.map