UNPKG

fastcomments-sdk

Version:

FastComments API Client - A SDK for interacting with the FastComments API

75 lines 2.47 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * fastcomments * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfBillingInfo = instanceOfBillingInfo; exports.BillingInfoFromJSON = BillingInfoFromJSON; exports.BillingInfoFromJSONTyped = BillingInfoFromJSONTyped; exports.BillingInfoToJSON = BillingInfoToJSON; exports.BillingInfoToJSONTyped = BillingInfoToJSONTyped; /** * Check if a given object implements the BillingInfo interface. */ function instanceOfBillingInfo(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('address' in value) || value['address'] === undefined) return false; if (!('city' in value) || value['city'] === undefined) return false; if (!('state' in value) || value['state'] === undefined) return false; if (!('zip' in value) || value['zip'] === undefined) return false; if (!('country' in value) || value['country'] === undefined) return false; return true; } function BillingInfoFromJSON(json) { return BillingInfoFromJSONTyped(json, false); } function BillingInfoFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'address': json['address'], 'city': json['city'], 'state': json['state'], 'zip': json['zip'], 'country': json['country'], 'currency': json['currency'] == null ? undefined : json['currency'], 'email': json['email'] == null ? undefined : json['email'], }; } function BillingInfoToJSON(json) { return BillingInfoToJSONTyped(json, false); } function BillingInfoToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'address': value['address'], 'city': value['city'], 'state': value['state'], 'zip': value['zip'], 'country': value['country'], 'currency': value['currency'], 'email': value['email'], }; } //# sourceMappingURL=BillingInfo.js.map