UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

56 lines (55 loc) 2.05 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.instanceOfUpdatePaymentRouteRequest = instanceOfUpdatePaymentRouteRequest; exports.UpdatePaymentRouteRequestFromJSON = UpdatePaymentRouteRequestFromJSON; exports.UpdatePaymentRouteRequestFromJSONTyped = UpdatePaymentRouteRequestFromJSONTyped; exports.UpdatePaymentRouteRequestToJSON = UpdatePaymentRouteRequestToJSON; exports.UpdatePaymentRouteRequestToJSONTyped = UpdatePaymentRouteRequestToJSONTyped; const RouteConfiguration_1 = require("./RouteConfiguration"); /** * Check if a given object implements the UpdatePaymentRouteRequest interface. */ function instanceOfUpdatePaymentRouteRequest(value) { if (!('name' in value) || value['name'] === undefined) return false; if (!('routeConfiguration' in value) || value['routeConfiguration'] === undefined) return false; return true; } function UpdatePaymentRouteRequestFromJSON(json) { return UpdatePaymentRouteRequestFromJSONTyped(json, false); } function UpdatePaymentRouteRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'], 'routeConfiguration': (0, RouteConfiguration_1.RouteConfigurationFromJSON)(json['route_configuration']), }; } function UpdatePaymentRouteRequestToJSON(json) { return UpdatePaymentRouteRequestToJSONTyped(json, false); } function UpdatePaymentRouteRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'route_configuration': (0, RouteConfiguration_1.RouteConfigurationToJSON)(value['routeConfiguration']), }; }