UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

69 lines (68 loc) 2.6 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.SimpleDecisionNodeInputNodeTypeEnum = void 0; exports.instanceOfSimpleDecisionNodeInput = instanceOfSimpleDecisionNodeInput; exports.SimpleDecisionNodeInputFromJSON = SimpleDecisionNodeInputFromJSON; exports.SimpleDecisionNodeInputFromJSONTyped = SimpleDecisionNodeInputFromJSONTyped; exports.SimpleDecisionNodeInputToJSON = SimpleDecisionNodeInputToJSON; exports.SimpleDecisionNodeInputToJSONTyped = SimpleDecisionNodeInputToJSONTyped; const AllConditionsTrueBranchInput_1 = require("./AllConditionsTrueBranchInput"); /** * @export */ exports.SimpleDecisionNodeInputNodeTypeEnum = { SimpleDecision: 'simple_decision' }; /** * Check if a given object implements the SimpleDecisionNodeInput interface. */ function instanceOfSimpleDecisionNodeInput(value) { if (!('branches' in value) || value['branches'] === undefined) return false; if (!('nodeId' in value) || value['nodeId'] === undefined) return false; return true; } function SimpleDecisionNodeInputFromJSON(json) { return SimpleDecisionNodeInputFromJSONTyped(json, false); } function SimpleDecisionNodeInputFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'attributeProperties': json['attribute_properties'] == null ? undefined : json['attribute_properties'], 'branches': (json['branches'].map(AllConditionsTrueBranchInput_1.AllConditionsTrueBranchInputFromJSON)), 'nodeId': json['node_id'], 'nodeName': json['node_name'] == null ? undefined : json['node_name'], 'nodeType': json['node_type'] == null ? undefined : json['node_type'], }; } function SimpleDecisionNodeInputToJSON(json) { return SimpleDecisionNodeInputToJSONTyped(json, false); } function SimpleDecisionNodeInputToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'attribute_properties': value['attributeProperties'], 'branches': (value['branches'].map(AllConditionsTrueBranchInput_1.AllConditionsTrueBranchInputToJSON)), 'node_id': value['nodeId'], 'node_name': value['nodeName'], 'node_type': value['nodeType'], }; }