UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

63 lines (62 loc) 3.19 kB
/* tslint:disable */ /* eslint-disable */ /** * API v4 * Swagger documentation for API v4 * * The version of the OpenAPI document: 4.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { SoSTransactionEntityClosingConfidenceFromJSON, SoSTransactionEntityClosingConfidenceToJSON, } from './SoSTransactionEntityClosingConfidence'; import { SoSTransactionEntityStatusFromJSON, SoSTransactionEntityStatusToJSON, } from './SoSTransactionEntityStatus'; /** * Check if a given object implements the V4TransactionsUpdateTransactionBody interface. */ export function instanceOfV4TransactionsUpdateTransactionBody(value) { return true; } export function V4TransactionsUpdateTransactionBodyFromJSON(json) { return V4TransactionsUpdateTransactionBodyFromJSONTyped(json, false); } export function V4TransactionsUpdateTransactionBodyFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { ...json, // Preserve relation fields from views 'propertyId': json['propertyId'] == null ? undefined : json['propertyId'], 'offerId': json['offerId'] == null ? undefined : json['offerId'], 'status': json['status'] == null ? undefined : SoSTransactionEntityStatusFromJSON(json['status']), 'expectedClosingDate': json['expectedClosingDate'] == null ? undefined : json['expectedClosingDate'], 'actualClosingDate': json['actualClosingDate'] == null ? undefined : json['actualClosingDate'], 'emdAmount': json['emdAmount'] == null ? undefined : json['emdAmount'], 'emdDate': json['emdDate'] == null ? undefined : json['emdDate'], 'contractPrice': json['contractPrice'] == null ? undefined : json['contractPrice'], 'contractDate': json['contractDate'] == null ? undefined : json['contractDate'], 'closingConfidence': json['closingConfidence'] == null ? undefined : SoSTransactionEntityClosingConfidenceFromJSON(json['closingConfidence']), }; } export function V4TransactionsUpdateTransactionBodyToJSON(json) { return V4TransactionsUpdateTransactionBodyToJSONTyped(json, false); } export function V4TransactionsUpdateTransactionBodyToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'propertyId': value['propertyId'], 'offerId': value['offerId'], 'status': SoSTransactionEntityStatusToJSON(value['status']), 'expectedClosingDate': value['expectedClosingDate'] == null ? value['expectedClosingDate'] : value['expectedClosingDate'], 'actualClosingDate': value['actualClosingDate'] == null ? value['actualClosingDate'] : value['actualClosingDate'], 'emdAmount': value['emdAmount'], 'emdDate': value['emdDate'] == null ? value['emdDate'] : value['emdDate'], 'contractPrice': value['contractPrice'], 'contractDate': value['contractDate'] == null ? value['contractDate'] : value['contractDate'], 'closingConfidence': SoSTransactionEntityClosingConfidenceToJSON(value['closingConfidence']), }; }