"use strict";
// SPDX-License-Identifier: Apache-2.0
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetProceedRecipientDataRequestFixture = exports.GetProceedRecipientsCountRequestFixture = exports.GetProceedRecipientsRequestFixture = exports.IsProceedRecipientRequestFixture = exports.RemoveProceedRecipientRequestFixture = exports.UpdateProceedRecipientDataRequestFixture = exports.AddProceedRecipientRequestFixture = exports.CreateTrexSuiteBondRequestFixture = exports.FullRedeemAtMaturityRequestFixture = exports.RedeemAtMaturityByPartitionRequestFixture = exports.UpdateMaturityDateRequestFixture = exports.GetCouponsOrderedListRequestFixture = exports.GetAllCouponsRequestFixture = exports.GetCouponRequestFixture = exports.GetPrincipalForRequestFixture = exports.GetCouponsForRequestFixture = exports.GetCouponForRequestFixture = exports.SetCouponRequestFixture = exports.CancelCouponRequestFixture = exports.GetBondDetailsRequestFixture = exports.CreateBondRequestFixture = exports.GetTotalCouponHoldersRequestFixture = exports.GetCouponHoldersRequestFixture = exports.CouponFixture = exports.GetCouponFromOrderedListAtQueryFixture = exports.GetTotalCouponHoldersQueryFixture = exports.GetCouponHoldersQueryFixture = exports.GetBondDetailsQueryFixture = exports.GetPrincipalForQueryFixture = exports.GetCouponAmountForQueryFixture = exports.GetCouponsForQueryFixture = exports.GetCouponForQueryFixture = exports.GetCouponCountQueryFixture = exports.GetCouponQueryFixture = exports.BondDetailsFixture = exports.CancelCouponCommandFixture = exports.FullRedeemAtMaturityCommandFixture = exports.RedeemAtMaturityByPartitionCommandFixture = exports.UpdateMaturityDateCommandFixture = exports.CreateTrexSuiteBondCommandFixture = exports.CreateBondCommandFixture = exports.SetCouponCommandFixture = void 0;
const Constants_1 = require("../../../src/core/Constants");
const RateStatus_1 = require("../../../src/domain/context/bond/RateStatus");
const ContractId_1 = __importDefault(require("../../../src/domain/context/contract/ContractId"));
const RegulationType_1 = require("../../../src/domain/context/factory/RegulationType");
const HederaId_1 = require("../../../src/domain/context/shared/HederaId");
const _1 = require("@faker-js/faker/.");
const config_1 = require("../config");
const DataFixture_1 = require("../shared/DataFixture");
const SecurityFixture_1 = require("../shared/SecurityFixture");
exports.SetCouponCommandFixture = (0, config_1.createFixture)((command) => {
    command.address.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.recordDate.faker((faker) => faker.date.future().getTime().toString());
    command.executionDate.faker((faker) => faker.date.future().getTime().toString());
    command.rate.faker((faker) => faker.number.int({ min: 100, max: 999 }).toString());
    command.startDate.faker((faker) => faker.date.future().getTime().toString());
    command.endDate.faker((faker) => faker.date.future().getTime().toString());
    command.fixingDate.faker((faker) => faker.date.future().getTime().toString());
});
exports.CreateBondCommandFixture = (0, config_1.createFixture)((command) => {
    command.security.fromFixture(SecurityFixture_1.SecurityPropsFixture);
    command.currency.faker((faker) => faker.finance.currencyCode());
    command.nominalValue.faker((faker) => faker.finance.amount({ min: 1, max: 10, dec: 2 }));
    command.nominalValueDecimals.faker((faker) => faker.number.int({ min: 1, max: 5 }));
    command.startingDate.faker((faker) => faker.date.recent().getTime().toString());
    command.maturityDate.faker((faker) => faker.date.future({ years: 2 }).getTime().toString());
    command.factory?.as(() => new ContractId_1.default(DataFixture_1.ContractIdPropFixture.create().value));
    command.resolver?.as(() => new ContractId_1.default(DataFixture_1.ContractIdPropFixture.create().value));
    command.configId?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.configVersion?.faker((faker) => faker.number.int({ min: 1, max: 5 }));
    command.diamondOwnerAccount?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.externalControlListsIds?.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    command.externalKycListsIds?.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    command.complianceId?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.identityRegistryId?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.proceedRecipientsIds?.faker((faker) => [DataFixture_1.HederaIdPropsFixture.create().value]);
    command.proceedRecipientsData?.as(() => ["0x0000"]);
});
exports.CreateTrexSuiteBondCommandFixture = (0, config_1.createFixture)((command) => {
    command.salt.faker((faker) => faker.string.alphanumeric({ length: 32 }));
    command.owner.faker((faker) => faker.finance.accountName());
    command.irs.faker((faker) => faker.finance.iban());
    command.onchainId.faker((faker) => faker.finance.ethereumAddress());
    command.irAgents.faker((faker) => [faker.finance.ethereumAddress()]);
    command.tokenAgents.faker((faker) => [faker.finance.ethereumAddress()]);
    command.compliancesModules.faker((faker) => [faker.string.alphanumeric({ length: 32 })]);
    command.complianceSettings.faker((faker) => [faker.string.alphanumeric({ length: 32 })]);
    command.claimTopics.faker((faker) => [faker.number.int({ min: 1, max: 10 })]);
    command.issuers.faker((faker) => [faker.finance.ethereumAddress()]);
    command.issuerClaims.faker((faker) => [faker.number.int({ min: 1, max: 10 })]);
    command.security.fromFixture(SecurityFixture_1.SecurityPropsFixture);
    command.currency.faker((faker) => faker.finance.currencyCode());
    command.nominalValue.faker((faker) => faker.finance.amount({ min: 1, max: 10, dec: 2 }));
    command.nominalValueDecimals.faker((faker) => faker.number.int({ min: 1, max: 5 }));
    command.startingDate.faker((faker) => faker.date.recent().getTime().toString());
    command.maturityDate.faker((faker) => faker.date.future({ years: 2 }).getTime().toString());
    command.factory.as(() => new ContractId_1.default(DataFixture_1.ContractIdPropFixture.create().value));
    command.resolver.as(() => new ContractId_1.default(DataFixture_1.ContractIdPropFixture.create().value));
    command.configId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.configVersion.faker((faker) => faker.number.int({ min: 1, max: 5 }));
    command.diamondOwnerAccount.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.externalControlLists?.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    command.externalKycLists?.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    command.compliance?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.identityRegistry?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.proceedRecipientsIds?.faker((faker) => [faker.finance.ethereumAddress()]);
    command.proceedRecipientsData?.faker((faker) => [faker.string.alphanumeric({ length: 32 })]);
});
exports.UpdateMaturityDateCommandFixture = (0, config_1.createFixture)((command) => {
    command.maturityDate.faker((faker) => faker.date.future().getTime().toString());
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.RedeemAtMaturityByPartitionCommandFixture = (0, config_1.createFixture)((command) => {
    command.amount.faker((faker) => faker.number.int({ min: 1, max: 1000 }).toString());
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.sourceId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.partitionId.as(() => DataFixture_1.PartitionIdFixture.create().value);
});
exports.FullRedeemAtMaturityCommandFixture = (0, config_1.createFixture)((command) => {
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.sourceId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.CancelCouponCommandFixture = (0, config_1.createFixture)((command) => {
    command.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    command.couponId.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.BondDetailsFixture = (0, config_1.createFixture)((props) => {
    props.currency.faker((faker) => faker.finance.currencyCode());
    props.nominalValue.faker((faker) => faker.finance.amount({ min: 1, max: 10, dec: 2 }));
    props.nominalValueDecimals.faker((faker) => faker.number.int({ min: 1, max: 5 }));
    props.startingDate.faker((faker) => faker.date.past());
    props.maturityDate.faker((faker) => faker.date.recent());
});
exports.GetCouponQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.couponId.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.GetCouponCountQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetCouponForQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.couponId.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.GetCouponsForQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.couponId.faker((faker) => faker.number.int({ min: 1, max: 999 }));
    query.pageIndex.faker((faker) => faker.number.int({ min: 0, max: 10 }));
    query.pageLength.faker((faker) => faker.number.int({ min: 1, max: 50 }));
});
exports.GetCouponAmountForQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.couponId.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.GetPrincipalForQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetBondDetailsQueryFixture = (0, config_1.createFixture)((query) => {
    query.bondId.as(() => new HederaId_1.HederaId(DataFixture_1.HederaIdPropsFixture.create().value));
});
exports.GetCouponHoldersQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.couponId.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    query.start.faker((faker) => faker.number.int({ min: 1, max: 999 }));
    query.end.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.GetTotalCouponHoldersQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.couponId.faker((faker) => faker.number.int({ min: 1, max: 10 }));
});
exports.GetCouponFromOrderedListAtQueryFixture = (0, config_1.createFixture)((query) => {
    query.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    query.pos.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.CouponFixture = (0, config_1.createFixture)((props) => {
    props.recordTimeStamp.faker((faker) => faker.date.past().getTime().toString());
    props.executionTimeStamp.faker((faker) => faker.date.past().getTime().toString());
    props.rate.faker((faker) => BigInt(faker.number.int({ min: 1, max: 5 })));
    props.rateDecimals.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    props.startTimeStamp.faker((faker) => faker.date.past().getTime().toString());
    props.endTimeStamp.faker((faker) => faker.date.past().getTime().toString());
    props.fixingTimeStamp.faker((faker) => faker.date.past().getTime().toString());
    props.rateStatus.faker((faker) => faker.helpers.arrayElement(Object.values(RateStatus_1.RateStatus)));
    props.isDisabled.faker((faker) => faker.datatype.boolean());
});
exports.GetCouponHoldersRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.couponId.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    request.start.faker((faker) => faker.number.int({ min: 1, max: 999 }));
    request.end.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.GetTotalCouponHoldersRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.couponId.faker((faker) => faker.number.int({ min: 1, max: 10 }));
});
exports.CreateBondRequestFixture = (0, config_1.createFixture)((request) => {
    request.name.faker((faker) => faker.company.name());
    request.symbol.faker((faker) => faker.string.alpha({ length: 3, casing: "upper" }));
    request.isin.faker((faker) => `US${faker.string.numeric(9)}`);
    request.decimals.faker((faker) => faker.number.int({ min: 0, max: 18 }));
    request.isWhiteList.faker((faker) => faker.datatype.boolean());
    request.isControllable.faker((faker) => faker.datatype.boolean());
    request.arePartitionsProtected.faker((faker) => faker.datatype.boolean());
    request.clearingActive.faker((faker) => faker.datatype.boolean());
    request.internalKycActivated.faker((faker) => faker.datatype.boolean());
    request.isMultiPartition.faker((faker) => faker.datatype.boolean());
    request.numberOfUnits?.as(() => "0");
    const regulationType = RegulationType_1.CastRegulationType.toNumber(_1.faker.helpers.arrayElement(Object.values(RegulationType_1.RegulationType).filter((type) => type !== RegulationType_1.RegulationType.NONE)));
    request.regulationType?.as(() => regulationType);
    request.regulationSubType?.faker((faker) => regulationType === RegulationType_1.CastRegulationType.toNumber(RegulationType_1.RegulationType.REG_S)
        ? RegulationType_1.CastRegulationSubType.toNumber(RegulationType_1.RegulationSubType.NONE)
        : RegulationType_1.CastRegulationSubType.toNumber(faker.helpers.arrayElement(Object.values(RegulationType_1.RegulationSubType).filter((subType) => subType !== RegulationType_1.RegulationSubType.NONE))));
    request.isCountryControlListWhiteList.faker((faker) => faker.datatype.boolean());
    request.countries?.faker((faker) => faker.helpers
        .arrayElements(Array.from({ length: 5 }, () => faker.location.countryCode({ variant: "alpha-2" })), { min: 1, max: 5 })
        .join(","));
    request.info.faker((faker) => faker.lorem.words());
    request.currency.faker((faker) => `0x${Buffer.from(faker.finance.currencyCode()).toString("hex")}`);
    request.nominalValue.faker((faker) => faker.finance.amount({ min: 1, max: 10, dec: 2 }));
    request.nominalValueDecimals.faker((faker) => faker.number.int({ min: 1, max: 5 }));
    let startingDate;
    request.startingDate.faker((faker) => {
        startingDate = faker.date.recent();
        return startingDate.getTime().toString();
    });
    let maturityDate;
    request.maturityDate.faker((faker) => {
        maturityDate = faker.date.future({ years: 2 });
        return maturityDate.getTime().toString();
    });
    request.configId.faker((faker) => `0x000000000000000000000000000000000000000000000000000000000000000${faker.number.int({ min: 1, max: 9 })}`);
    request.configVersion.as(() => 1);
    request.diamondOwnerAccount?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.externalPausesIds?.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    request.externalControlListsIds?.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    request.externalKycListsIds?.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    request.complianceId?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.identityRegistryId?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.proceedRecipientsIds?.faker((faker) => [DataFixture_1.HederaIdPropsFixture.create().value]);
    request.proceedRecipientsData?.as(() => ["0x0000"]);
});
exports.GetBondDetailsRequestFixture = (0, config_1.createFixture)((request) => {
    request.bondId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.CancelCouponRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.couponId.faker((faker) => faker.number.int({ min: 1, max: 999 }));
});
exports.SetCouponRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.rate.faker((faker) => faker.number.int({ min: 1, max: 12 }).toString());
    request.recordTimestamp.faker((faker) => faker.date.past().getTime().toString());
    request.executionTimestamp.faker((faker) => faker.date.future().getTime().toString());
    request.startTimestamp.as(() => "0");
    request.endTimestamp.as(() => Constants_1.TIME_PERIODS_S.DAY.toString());
    request.fixingTimestamp.faker((faker) => faker.date.past().getTime().toString());
    request.rateStatus.faker((faker) => RateStatus_1.CastRateStatus.toNumber(faker.helpers.arrayElement(Object.values(RateStatus_1.RateStatus))));
});
exports.GetCouponForRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.couponId.faker((faker) => faker.number.int({ min: 1, max: 10 }));
});
exports.GetCouponsForRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.couponId.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    request.pageIndex.faker((faker) => faker.number.int({ min: 0, max: 10 }));
    request.pageLength.faker((faker) => faker.number.int({ min: 1, max: 50 }));
});
exports.GetPrincipalForRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.targetId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetCouponRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.couponId.faker((faker) => faker.number.int({ min: 1, max: 10 }));
});
exports.GetAllCouponsRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetCouponsOrderedListRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.pageIndex.as(() => _1.faker.number.int({ min: 0, max: 10 }));
    request.pageLength.as(() => _1.faker.number.int({ min: 1, max: 50 }));
});
exports.UpdateMaturityDateRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.maturityDate.faker((faker) => faker.date.future().getTime().toString());
});
exports.RedeemAtMaturityByPartitionRequestFixture = (0, config_1.createFixture)((request) => {
    request.amount.faker((faker) => faker.number.int({ min: 1, max: 1000 }).toString());
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.sourceId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.partitionId.as(() => DataFixture_1.PartitionIdFixture.create().value);
});
exports.FullRedeemAtMaturityRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.sourceId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.CreateTrexSuiteBondRequestFixture = (0, config_1.createFixture)((request) => {
    request.salt.faker((faker) => faker.string.alphanumeric({ length: 32 }));
    request.owner.faker((faker) => faker.finance.accountName());
    request.irs.faker((faker) => faker.finance.iban());
    request.onchainId.faker((faker) => faker.finance.ethereumAddress());
    request.irAgents.faker((faker) => [faker.finance.ethereumAddress()]);
    request.tokenAgents.faker((faker) => [faker.finance.ethereumAddress()]);
    request.compliancesModules.faker((faker) => [faker.string.alphanumeric({ length: 32 })]);
    request.complianceSettings.faker((faker) => [faker.string.alphanumeric({ length: 32 })]);
    request.claimTopics.faker((faker) => [faker.number.int({ min: 1, max: 10 })]);
    request.issuers.faker((faker) => [faker.finance.ethereumAddress()]);
    request.issuerClaims.faker((faker) => [faker.number.int({ min: 1, max: 10 })]);
    request.name.faker((faker) => faker.company.name());
    request.symbol.faker((faker) => faker.string.alpha({ length: 3, casing: "upper" }));
    request.isin.faker((faker) => `US${faker.string.numeric(9)}`);
    request.decimals.faker((faker) => faker.number.int({ min: 0, max: 18 }));
    request.isWhiteList.faker((faker) => faker.datatype.boolean());
    request.isControllable.faker((faker) => faker.datatype.boolean());
    request.arePartitionsProtected.faker((faker) => faker.datatype.boolean());
    request.clearingActive.faker((faker) => faker.datatype.boolean());
    request.internalKycActivated.faker((faker) => faker.datatype.boolean());
    request.isMultiPartition.faker((faker) => faker.datatype.boolean());
    request.numberOfUnits?.as(() => "0");
    const regulationType = RegulationType_1.CastRegulationType.toNumber(_1.faker.helpers.arrayElement(Object.values(RegulationType_1.RegulationType).filter((type) => type !== RegulationType_1.RegulationType.NONE)));
    request.regulationType?.as(() => regulationType);
    request.regulationSubType?.faker((faker) => regulationType === RegulationType_1.CastRegulationType.toNumber(RegulationType_1.RegulationType.REG_S)
        ? RegulationType_1.CastRegulationSubType.toNumber(RegulationType_1.RegulationSubType.NONE)
        : RegulationType_1.CastRegulationSubType.toNumber(faker.helpers.arrayElement(Object.values(RegulationType_1.RegulationSubType).filter((subType) => subType !== RegulationType_1.RegulationSubType.NONE))));
    request.isCountryControlListWhiteList.faker((faker) => faker.datatype.boolean());
    request.countries?.faker((faker) => faker.helpers
        .arrayElements(Array.from({ length: 5 }, () => faker.location.countryCode({ variant: "alpha-2" })), { min: 1, max: 5 })
        .join(","));
    request.info.faker((faker) => faker.lorem.words());
    request.currency.faker((faker) => `0x${Buffer.from(faker.finance.currencyCode()).toString("hex")}`);
    request.nominalValue.faker((faker) => faker.finance.amount({ min: 1, max: 10, dec: 2 }));
    request.nominalValueDecimals.faker((faker) => faker.number.int({ min: 1, max: 5 }));
    let startingDate;
    request.startingDate.faker((faker) => {
        startingDate = faker.date.recent();
        return startingDate.getTime().toString();
    });
    let maturityDate;
    request.maturityDate.faker((faker) => {
        maturityDate = faker.date.future({ years: 2 });
        return maturityDate.getTime().toString();
    });
    request.configId.faker((faker) => `0x000000000000000000000000000000000000000000000000000000000000000${faker.number.int({ min: 1, max: 9 })}`);
    request.configVersion.as(() => 1);
    request.diamondOwnerAccount?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.proceedRecipientsIds?.faker((faker) => [faker.finance.ethereumAddress()]);
    request.proceedRecipientsData?.faker((faker) => ["0x0000"]);
    request.externalPauses?.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    request.externalControlLists?.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    request.externalKycLists?.as(() => [DataFixture_1.HederaIdPropsFixture.create().value]);
    request.complianceId?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.identityRegistryId?.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.AddProceedRecipientRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.proceedRecipientId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.data?.as(() => "0x");
});
exports.UpdateProceedRecipientDataRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.proceedRecipientId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.data.as(() => "0x");
});
exports.RemoveProceedRecipientRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.proceedRecipientId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.IsProceedRecipientRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.proceedRecipientId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetProceedRecipientsRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.pageIndex.faker((faker) => faker.number.int({ min: 1, max: 10 }));
    request.pageSize.faker((faker) => faker.number.int({ min: 1, max: 50 }));
});
exports.GetProceedRecipientsCountRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
exports.GetProceedRecipientDataRequestFixture = (0, config_1.createFixture)((request) => {
    request.securityId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
    request.proceedRecipientId.as(() => DataFixture_1.HederaIdPropsFixture.create().value);
});
