"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Octane API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * 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.CreateRefundArgsToJSON = exports.CreateRefundArgsFromJSONTyped = exports.CreateRefundArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
function CreateRefundArgsFromJSON(json) {
    return CreateRefundArgsFromJSONTyped(json, false);
}
exports.CreateRefundArgsFromJSON = CreateRefundArgsFromJSON;
function CreateRefundArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
        'invoiceUuid': !(0, runtime_1.exists)(json, 'invoice_uuid') ? undefined : json['invoice_uuid'],
        'invoiceId': !(0, runtime_1.exists)(json, 'invoice_id') ? undefined : json['invoice_id'],
    };
}
exports.CreateRefundArgsFromJSONTyped = CreateRefundArgsFromJSONTyped;
function CreateRefundArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'amount': value.amount,
        'invoice_uuid': value.invoiceUuid,
        'invoice_id': value.invoiceId,
    };
}
exports.CreateRefundArgsToJSON = CreateRefundArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3JlYXRlUmVmdW5kQXJncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9DcmVhdGVSZWZ1bmRBcmdzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs7O0dBVUc7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