UNPKG

@fnt-eve/esi-client-typescript

Version:

[![npm version](https://img.shields.io/npm/v/@fnt-eve/esi-client-typescript)](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)

94 lines (93 loc) 3.71 kB
/* tslint:disable */ /* eslint-disable */ /** * EVE Swagger Interface * An OpenAPI for EVE Online * * The version of the OpenAPI document: 1.33 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * @export */ export const GetContractsPublicRegionId200OkTypeEnum = { Unknown: 'unknown', ItemExchange: 'item_exchange', Auction: 'auction', Courier: 'courier', Loan: 'loan' }; /** * Check if a given object implements the GetContractsPublicRegionId200Ok interface. */ export function instanceOfGetContractsPublicRegionId200Ok(value) { if (!('contractId' in value) || value['contractId'] === undefined) return false; if (!('dateExpired' in value) || value['dateExpired'] === undefined) return false; if (!('dateIssued' in value) || value['dateIssued'] === undefined) return false; if (!('issuerCorporationId' in value) || value['issuerCorporationId'] === undefined) return false; if (!('issuerId' in value) || value['issuerId'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } export function GetContractsPublicRegionId200OkFromJSON(json) { return GetContractsPublicRegionId200OkFromJSONTyped(json, false); } export function GetContractsPublicRegionId200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'buyout': json['buyout'] == null ? undefined : json['buyout'], 'collateral': json['collateral'] == null ? undefined : json['collateral'], 'contractId': json['contract_id'], 'dateExpired': (new Date(json['date_expired'])), 'dateIssued': (new Date(json['date_issued'])), 'daysToComplete': json['days_to_complete'] == null ? undefined : json['days_to_complete'], 'endLocationId': json['end_location_id'] == null ? undefined : json['end_location_id'], 'forCorporation': json['for_corporation'] == null ? undefined : json['for_corporation'], 'issuerCorporationId': json['issuer_corporation_id'], 'issuerId': json['issuer_id'], 'price': json['price'] == null ? undefined : json['price'], 'reward': json['reward'] == null ? undefined : json['reward'], 'startLocationId': json['start_location_id'] == null ? undefined : json['start_location_id'], 'title': json['title'] == null ? undefined : json['title'], 'type': json['type'], 'volume': json['volume'] == null ? undefined : json['volume'], }; } export function GetContractsPublicRegionId200OkToJSON(json) { return GetContractsPublicRegionId200OkToJSONTyped(json, false); } export function GetContractsPublicRegionId200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'buyout': value['buyout'], 'collateral': value['collateral'], 'contract_id': value['contractId'], 'date_expired': ((value['dateExpired']).toISOString()), 'date_issued': ((value['dateIssued']).toISOString()), 'days_to_complete': value['daysToComplete'], 'end_location_id': value['endLocationId'], 'for_corporation': value['forCorporation'], 'issuer_corporation_id': value['issuerCorporationId'], 'issuer_id': value['issuerId'], 'price': value['price'], 'reward': value['reward'], 'start_location_id': value['startLocationId'], 'title': value['title'], 'type': value['type'], 'volume': value['volume'], }; }