@getopenpay/client
Version:
OpenPay API TypeScript SDK
56 lines (55 loc) • 2.05 kB
JavaScript
;
/* 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.instanceOfCreatePaymentRouteRequest = instanceOfCreatePaymentRouteRequest;
exports.CreatePaymentRouteRequestFromJSON = CreatePaymentRouteRequestFromJSON;
exports.CreatePaymentRouteRequestFromJSONTyped = CreatePaymentRouteRequestFromJSONTyped;
exports.CreatePaymentRouteRequestToJSON = CreatePaymentRouteRequestToJSON;
exports.CreatePaymentRouteRequestToJSONTyped = CreatePaymentRouteRequestToJSONTyped;
const RouteConfiguration_1 = require("./RouteConfiguration");
/**
* Check if a given object implements the CreatePaymentRouteRequest interface.
*/
function instanceOfCreatePaymentRouteRequest(value) {
if (!('name' in value) || value['name'] === undefined)
return false;
if (!('routeConfiguration' in value) || value['routeConfiguration'] === undefined)
return false;
return true;
}
function CreatePaymentRouteRequestFromJSON(json) {
return CreatePaymentRouteRequestFromJSONTyped(json, false);
}
function CreatePaymentRouteRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'],
'routeConfiguration': (0, RouteConfiguration_1.RouteConfigurationFromJSON)(json['route_configuration']),
};
}
function CreatePaymentRouteRequestToJSON(json) {
return CreatePaymentRouteRequestToJSONTyped(json, false);
}
function CreatePaymentRouteRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'name': value['name'],
'route_configuration': (0, RouteConfiguration_1.RouteConfigurationToJSON)(value['routeConfiguration']),
};
}