@getopenpay/client
Version:
OpenPay API TypeScript SDK
56 lines (55 loc) • 2.11 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.instanceOfGeneralPaymentRouteArgsInput = instanceOfGeneralPaymentRouteArgsInput;
exports.GeneralPaymentRouteArgsInputFromJSON = GeneralPaymentRouteArgsInputFromJSON;
exports.GeneralPaymentRouteArgsInputFromJSONTyped = GeneralPaymentRouteArgsInputFromJSONTyped;
exports.GeneralPaymentRouteArgsInputToJSON = GeneralPaymentRouteArgsInputToJSON;
exports.GeneralPaymentRouteArgsInputToJSONTyped = GeneralPaymentRouteArgsInputToJSONTyped;
const GenericNodeInput_1 = require("./GenericNodeInput");
/**
* Check if a given object implements the GeneralPaymentRouteArgsInput interface.
*/
function instanceOfGeneralPaymentRouteArgsInput(value) {
if (!('allNodes' in value) || value['allNodes'] === undefined)
return false;
if (!('entrypointNodeId' in value) || value['entrypointNodeId'] === undefined)
return false;
return true;
}
function GeneralPaymentRouteArgsInputFromJSON(json) {
return GeneralPaymentRouteArgsInputFromJSONTyped(json, false);
}
function GeneralPaymentRouteArgsInputFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'allNodes': (json['all_nodes'].map(GenericNodeInput_1.GenericNodeInputFromJSON)),
'entrypointNodeId': json['entrypoint_node_id'],
};
}
function GeneralPaymentRouteArgsInputToJSON(json) {
return GeneralPaymentRouteArgsInputToJSONTyped(json, false);
}
function GeneralPaymentRouteArgsInputToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'all_nodes': (value['allNodes'].map(GenericNodeInput_1.GenericNodeInputToJSON)),
'entrypoint_node_id': value['entrypointNodeId'],
};
}