@getopenpay/client
Version:
OpenPay API TypeScript SDK
56 lines (55 loc) • 2.14 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.instanceOfGeneralPaymentRouteArgsOutput = instanceOfGeneralPaymentRouteArgsOutput;
exports.GeneralPaymentRouteArgsOutputFromJSON = GeneralPaymentRouteArgsOutputFromJSON;
exports.GeneralPaymentRouteArgsOutputFromJSONTyped = GeneralPaymentRouteArgsOutputFromJSONTyped;
exports.GeneralPaymentRouteArgsOutputToJSON = GeneralPaymentRouteArgsOutputToJSON;
exports.GeneralPaymentRouteArgsOutputToJSONTyped = GeneralPaymentRouteArgsOutputToJSONTyped;
const GenericNodeOutput_1 = require("./GenericNodeOutput");
/**
* Check if a given object implements the GeneralPaymentRouteArgsOutput interface.
*/
function instanceOfGeneralPaymentRouteArgsOutput(value) {
if (!('allNodes' in value) || value['allNodes'] === undefined)
return false;
if (!('entrypointNodeId' in value) || value['entrypointNodeId'] === undefined)
return false;
return true;
}
function GeneralPaymentRouteArgsOutputFromJSON(json) {
return GeneralPaymentRouteArgsOutputFromJSONTyped(json, false);
}
function GeneralPaymentRouteArgsOutputFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'allNodes': (json['all_nodes'].map(GenericNodeOutput_1.GenericNodeOutputFromJSON)),
'entrypointNodeId': json['entrypoint_node_id'],
};
}
function GeneralPaymentRouteArgsOutputToJSON(json) {
return GeneralPaymentRouteArgsOutputToJSONTyped(json, false);
}
function GeneralPaymentRouteArgsOutputToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'all_nodes': (value['allNodes'].map(GenericNodeOutput_1.GenericNodeOutputToJSON)),
'entrypoint_node_id': value['entrypointNodeId'],
};
}