UNPKG

originstamp-client-fetch

Version:
85 lines (74 loc) 2.94 kB
/* tslint:disable */ /* eslint-disable */ /** * OriginStamp Timestamping * OriginStamp Timestamping leverages decentralized blockchain technology to create anonymous, tamper-proof timestamps for digital content. This service enables users to timestamp files, emails, or plain text, and store the resulting hashes on the blockchain. Users can also retrieve and verify timestamps that have been committed. The trusted timestamping mechanism ensures that a hash fingerprint can be generated and used as proof that specific data existed at a given point in time. * * The version of the OpenAPI document: 1.0.0 * Contact: support@originstamp.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface TimestampResponseTreesInner */ export interface TimestampResponseTreesInner { /** * ID of associated transaction detail for the root hash submitted to a blockchain. * @type {string} * @memberof TimestampResponseTreesInner */ treeId: string; /** * ID of blockchain currency. Example 0 for Bitcoin, 1 for Ethereum. * @type {number} * @memberof TimestampResponseTreesInner */ currencyId: number; /** * Acronym for blockchain. * @type {string} * @memberof TimestampResponseTreesInner */ currency: string; } /** * Check if a given object implements the TimestampResponseTreesInner interface. */ export function instanceOfTimestampResponseTreesInner(value: object): value is TimestampResponseTreesInner { if (!('treeId' in value) || value['treeId'] === undefined) return false; if (!('currencyId' in value) || value['currencyId'] === undefined) return false; if (!('currency' in value) || value['currency'] === undefined) return false; return true; } export function TimestampResponseTreesInnerFromJSON(json: any): TimestampResponseTreesInner { return TimestampResponseTreesInnerFromJSONTyped(json, false); } export function TimestampResponseTreesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimestampResponseTreesInner { if (json == null) { return json; } return { 'treeId': json['treeId'], 'currencyId': json['currencyId'], 'currency': json['currency'], }; } export function TimestampResponseTreesInnerToJSON(json: any): TimestampResponseTreesInner { return TimestampResponseTreesInnerToJSONTyped(json, false); } export function TimestampResponseTreesInnerToJSONTyped(value?: TimestampResponseTreesInner | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'treeId': value['treeId'], 'currencyId': value['currencyId'], 'currency': value['currency'], }; }