Toolkit Nuget UUID method

It will generate hash formatted UUID to receipt/return receipt.

Refresh cache method QR code method

Overview

This method will generate and assign UUID to the receipt/return receipt which is a hash formatted based on the receipt base structure + hash as per the previously issued receipt from the same POS device (except for the first generating receipt/return receipt from the POS).

Note! • It accepts single receipt json as a payload and it shouldn't contain UUID value in it.
• It will gives an error if the structure of the receipt is incorrect.

Signature

Signature: InitializeResponseDto response=_toolkitHandler.GenerateUuid(inputReceiptJson)

public class GenerateUuidResponseDto : BaseResponseDto
{
 public string Uuid { get; set; } = null!;
 public JToken UpdatedReceiptJson { get; set; } = null!;
}
public class BaseResponseDto {
 public string? CorrelationId { get; set; }
 public string? Target { get; set; }
 public string? Code { get; set; }
 public string? Message { get; set; }
 public object? Details { get; set; }
}

Inputs

This request accepts a string input, it should be receipt json string:

Input parameter Type Description Value example
receipt/return receipt json String    

Outputs

It will generate the UUID and given it as a response and updated receipt json will contains the generated UUID value.

Output parameter Type Description Value example
Uuid String UUID output of the receipt. 999fd4e6-1a40-40e4-9b86-3f28aafa5529
UpdatedReceiptJson String updated output json with the uuid of the receipt.  
CorrelationId String CorrelationId is a unique number for the request. It has nothing to do with the receipt. It gets a value only in case of an error.  
Target String Output target.  
Code String Code is an error code, and it’s only sent if there is an error. 404 / 500 etc.,
Message String Error message.  
Details String Details of the error.