"use strict";
/***********************************************************************************************************************
* This file is auto-generated. If you have an issue, please create a GitHub issue.                                     *
***********************************************************************************************************************/
Object.defineProperty(exports, "__esModule", { value: true });
exports.DisputeFileUpload = void 0;
const base_1 = require("../../base");
const types_1 = require("../../../lib/types");
class DisputeFileUpload extends base_1.Base {
    static async delete({ session, id, dispute_id = null }) {
        const response = await this.request({
            http_method: "delete",
            operation: "delete",
            session: session,
            urlIds: { "id": id, "dispute_id": dispute_id },
            params: {},
        });
        return response ? response.body : null;
    }
}
exports.DisputeFileUpload = DisputeFileUpload;
DisputeFileUpload.apiVersion = types_1.ApiVersion.January24;
DisputeFileUpload.hasOne = {};
DisputeFileUpload.hasMany = {};
DisputeFileUpload.paths = [
    { "http_method": "delete", "operation": "delete", "ids": ["dispute_id", "id"], "path": "shopify_payments/disputes/<dispute_id>/dispute_file_uploads/<id>.json" },
    { "http_method": "post", "operation": "post", "ids": ["dispute_id"], "path": "shopify_payments/disputes/<dispute_id>/dispute_file_uploads.json" }
];
DisputeFileUpload.resourceNames = [
    {
        "singular": "dispute_file_upload",
        "plural": "dispute_file_uploads"
    }
];
//# sourceMappingURL=dispute_file_upload.js.map