originstamp-client-fetch
Version:
TypeScript Fetch client for the OriginStamp service
74 lines (63 loc) • 2.25 kB
text/typescript
/* 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';
/**
* Request usage report for selected time period.
* @export
* @interface KeyUsageRequest
*/
export interface KeyUsageRequest {
/**
*
* @type {number}
* @memberof KeyUsageRequest
*/
year?: number;
/**
* Month starting with 1 for January.
* @type {number}
* @memberof KeyUsageRequest
*/
month?: number;
}
/**
* Check if a given object implements the KeyUsageRequest interface.
*/
export function instanceOfKeyUsageRequest(value: object): value is KeyUsageRequest {
return true;
}
export function KeyUsageRequestFromJSON(json: any): KeyUsageRequest {
return KeyUsageRequestFromJSONTyped(json, false);
}
export function KeyUsageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyUsageRequest {
if (json == null) {
return json;
}
return {
'year': json['year'] == null ? undefined : json['year'],
'month': json['month'] == null ? undefined : json['month'],
};
}
export function KeyUsageRequestToJSON(json: any): KeyUsageRequest {
return KeyUsageRequestToJSONTyped(json, false);
}
export function KeyUsageRequestToJSONTyped(value?: KeyUsageRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'year': value['year'],
'month': value['month'],
};
}