@getopenpay/client
Version:
OpenPay API TypeScript SDK
69 lines (68 loc) • 2.63 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.SimpleDecisionNodeOutputNodeTypeEnum = void 0;
exports.instanceOfSimpleDecisionNodeOutput = instanceOfSimpleDecisionNodeOutput;
exports.SimpleDecisionNodeOutputFromJSON = SimpleDecisionNodeOutputFromJSON;
exports.SimpleDecisionNodeOutputFromJSONTyped = SimpleDecisionNodeOutputFromJSONTyped;
exports.SimpleDecisionNodeOutputToJSON = SimpleDecisionNodeOutputToJSON;
exports.SimpleDecisionNodeOutputToJSONTyped = SimpleDecisionNodeOutputToJSONTyped;
const AllConditionsTrueBranchOutput_1 = require("./AllConditionsTrueBranchOutput");
/**
* @export
*/
exports.SimpleDecisionNodeOutputNodeTypeEnum = {
SimpleDecision: 'simple_decision'
};
/**
* Check if a given object implements the SimpleDecisionNodeOutput interface.
*/
function instanceOfSimpleDecisionNodeOutput(value) {
if (!('branches' in value) || value['branches'] === undefined)
return false;
if (!('nodeId' in value) || value['nodeId'] === undefined)
return false;
return true;
}
function SimpleDecisionNodeOutputFromJSON(json) {
return SimpleDecisionNodeOutputFromJSONTyped(json, false);
}
function SimpleDecisionNodeOutputFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'attributeProperties': json['attribute_properties'] == null ? undefined : json['attribute_properties'],
'branches': (json['branches'].map(AllConditionsTrueBranchOutput_1.AllConditionsTrueBranchOutputFromJSON)),
'nodeId': json['node_id'],
'nodeName': json['node_name'] == null ? undefined : json['node_name'],
'nodeType': json['node_type'] == null ? undefined : json['node_type'],
};
}
function SimpleDecisionNodeOutputToJSON(json) {
return SimpleDecisionNodeOutputToJSONTyped(json, false);
}
function SimpleDecisionNodeOutputToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'attribute_properties': value['attributeProperties'],
'branches': (value['branches'].map(AllConditionsTrueBranchOutput_1.AllConditionsTrueBranchOutputToJSON)),
'node_id': value['nodeId'],
'node_name': value['nodeName'],
'node_type': value['nodeType'],
};
}