UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

53 lines (52 loc) 1.78 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * OpenPay API * super charge your subscription management. * * The version of the OpenAPI document: 1.2.1 * * * 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.instanceOfVerificationResults = instanceOfVerificationResults; exports.VerificationResultsFromJSON = VerificationResultsFromJSON; exports.VerificationResultsFromJSONTyped = VerificationResultsFromJSONTyped; exports.VerificationResultsToJSON = VerificationResultsToJSON; exports.VerificationResultsToJSONTyped = VerificationResultsToJSONTyped; /** * Check if a given object implements the VerificationResults interface. */ function instanceOfVerificationResults(value) { return true; } function VerificationResultsFromJSON(json) { return VerificationResultsFromJSONTyped(json, false); } function VerificationResultsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'avsResult': json['avs_result'] == null ? undefined : json['avs_result'], 'cavvResult': json['cavv_result'] == null ? undefined : json['cavv_result'], 'cvvResult': json['cvv_result'] == null ? undefined : json['cvv_result'], }; } function VerificationResultsToJSON(json) { return VerificationResultsToJSONTyped(json, false); } function VerificationResultsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'avs_result': value['avsResult'], 'cavv_result': value['cavvResult'], 'cvv_result': value['cvvResult'], }; }