"use strict";
/* eslint-disable-next-line no-unused-vars */
function __export(m) {
/* eslint-disable-next-line no-prototype-builtins */
    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable-next-line no-unused-vars */
var jtv = require('@mojotech/json-type-validation');
/* eslint-disable-next-line no-unused-vars */
var damlTypes = require('@daml/types');

var pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1 = require('../../..');
var pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4 = require('../../../DA/Types');
var pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 = require('../../../DA/Internal/Template');
var pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946 = require('../../../DA/Time/Types');

var CantonPayments_PaymentStream_Types_Approvals = require('../../../CantonPayments/PaymentStream/Types/Approvals/module');
var CantonPayments_PaymentStream_Types_LockFundsInput = require('../../../CantonPayments/PaymentStream/Types/LockFundsInput/module');
var CantonPayments_PaymentStream_Types_PartyRole = require('../../../CantonPayments/PaymentStream/Types/PartyRole/module');
var CantonPayments_PaymentStream_Types_PaymentContext = require('../../../CantonPayments/PaymentStream/Types/PaymentContext/module');
var CantonPayments_PaymentStream_Types_PaymentResult = require('../../../CantonPayments/PaymentStream/Types/PaymentResult/module');
var CantonPayments_PaymentStream_Types_PaymentStream = require('../../../CantonPayments/PaymentStream/Types/PaymentStream/module');
var CantonPayments_PaymentStream_Types_PaymentStreamChanges = require('../../../CantonPayments/PaymentStream/Types/PaymentStreamChanges/module');
var CantonPayments_PaymentStream_Types_PaymentStreamStats = require('../../../CantonPayments/PaymentStream/Types/PaymentStreamStats/module');
var CantonPayments_PaymentStream_Types_ProcessFreeTrialResult = require('../../../CantonPayments/PaymentStream/Types/ProcessFreeTrialResult/module');
var CantonPayments_PaymentStream_Types_ProcessorContext = require('../../../CantonPayments/PaymentStream/Types/ProcessorContext/module');


exports.PaymentStreamChangeProposal_Reject = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
  encode: function (__typed__) {
  return {
    actor: damlTypes.Party.encode(__typed__.actor),
    description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
  };
}
,
};



exports.PaymentStreamChangeProposal_Apply = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, activePaymentStreamCid: damlTypes.ContractId(exports.ActivePaymentStream).decoder, }); }),
  encode: function (__typed__) {
  return {
    actor: damlTypes.Party.encode(__typed__.actor),
    activePaymentStreamCid: damlTypes.ContractId(exports.ActivePaymentStream).encode(__typed__.activePaymentStreamCid),
  };
}
,
};



exports.PaymentStreamChangeProposal_Approve = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, }); }),
  encode: function (__typed__) {
  return {
    actor: damlTypes.Party.encode(__typed__.actor),
  };
}
,
};



exports.PaymentStreamChangeProposal = damlTypes.assembleTemplate(
{
  templateId: '#CantonPayments:CantonPayments.PaymentStream.ActivePaymentStream:PaymentStreamChangeProposal',
  templateIdWithPackageId: 'b9b320d4b90b6367688d5eb6134b57c80da1bc8fe99b7b4f923f889da544947d:CantonPayments.PaymentStream.ActivePaymentStream:PaymentStreamChangeProposal',
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
  keyEncode: function () { throw 'EncodeError'; },
  decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream.decoder, processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.decoder, paymentStreamChanges: CantonPayments_PaymentStream_Types_PaymentStreamChanges.PaymentStreamChanges.decoder, approvals: CantonPayments_PaymentStream_Types_Approvals.Approvals.decoder, }); }),
  encode: function (__typed__) {
  return {
    paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream.encode(__typed__.paymentStream),
    processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
    paymentStreamChanges: CantonPayments_PaymentStream_Types_PaymentStreamChanges.PaymentStreamChanges.encode(__typed__.paymentStreamChanges),
    approvals: CantonPayments_PaymentStream_Types_Approvals.Approvals.encode(__typed__.approvals),
  };
}
,
  PaymentStreamChangeProposal_Approve: {
    template: function () { return exports.PaymentStreamChangeProposal; },
    choiceName: 'PaymentStreamChangeProposal_Approve',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.PaymentStreamChangeProposal_Approve.decoder; }),
    argumentEncode: function (__typed__) { return exports.PaymentStreamChangeProposal_Approve.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PaymentStreamChangeProposal).decoder; }),
    resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PaymentStreamChangeProposal).encode(__typed__); },
  },
  PaymentStreamChangeProposal_Apply: {
    template: function () { return exports.PaymentStreamChangeProposal; },
    choiceName: 'PaymentStreamChangeProposal_Apply',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.PaymentStreamChangeProposal_Apply.decoder; }),
    argumentEncode: function (__typed__) { return exports.PaymentStreamChangeProposal_Apply.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ActivePaymentStream).decoder; }),
    resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ActivePaymentStream).encode(__typed__); },
  },
  PaymentStreamChangeProposal_Reject: {
    template: function () { return exports.PaymentStreamChangeProposal; },
    choiceName: 'PaymentStreamChangeProposal_Reject',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.PaymentStreamChangeProposal_Reject.decoder; }),
    argumentEncode: function (__typed__) { return exports.PaymentStreamChangeProposal_Reject.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
    resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
  },
  Archive: {
    template: function () { return exports.PaymentStreamChangeProposal; },
    choiceName: 'Archive',
    argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
    argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
    resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
  },
}

);


damlTypes.registerTemplate(exports.PaymentStreamChangeProposal, ['b9b320d4b90b6367688d5eb6134b57c80da1bc8fe99b7b4f923f889da544947d', '#CantonPayments']);



exports.ActivePaymentStream_ChangeParty = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole.decoder, oldParty: damlTypes.Party.decoder, newParty: damlTypes.Party.decoder, changePartyPaymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, }); }),
  encode: function (__typed__) {
  return {
    partyType: CantonPayments_PaymentStream_Types_PartyRole.PartyRole.encode(__typed__.partyType),
    oldParty: damlTypes.Party.encode(__typed__.oldParty),
    newParty: damlTypes.Party.encode(__typed__.newParty),
    changePartyPaymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.changePartyPaymentContext),
  };
}
,
};



exports.ActivePaymentStream_ArchiveInactivePaymentStream = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, }); }),
  encode: function (__typed__) {
  return {
    actor: damlTypes.Party.encode(__typed__.actor),
    paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
  };
}
,
};



exports.ActivePaymentStream_WithdrawFunds = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({amountToKeepLocked: damlTypes.Numeric(10).decoder, paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, }); }),
  encode: function (__typed__) {
  return {
    amountToKeepLocked: damlTypes.Numeric(10).encode(__typed__.amountToKeepLocked),
    paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
  };
}
,
};



exports.ActivePaymentStream_AddFunds = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, lockFundsInput: CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
  encode: function (__typed__) {
  return {
    actor: damlTypes.Party.encode(__typed__.actor),
    lockFundsInput: CantonPayments_PaymentStream_Types_LockFundsInput.LockFundsInput.encode(__typed__.lockFundsInput),
    description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
  };
}
,
};



exports.ActivePaymentStream_Refund = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, recipientAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder, recipientFeaturedAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
  encode: function (__typed__) {
  return {
    paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
    recipientAmuletInputs: damlTypes.List(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__.recipientAmuletInputs),
    recipientFeaturedAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.recipientFeaturedAppRight),
  };
}
,
};



exports.ActivePaymentStream_Cancel = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, disregardAvailablePaidPeriod: damlTypes.Bool.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), openMiningRoundCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound)).decoder), }); }),
  encode: function (__typed__) {
  return {
    actor: damlTypes.Party.encode(__typed__.actor),
    disregardAvailablePaidPeriod: damlTypes.Bool.encode(__typed__.disregardAvailablePaidPeriod),
    description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
    openMiningRoundCid: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.OpenMiningRound)).encode(__typed__.openMiningRoundCid),
  };
}
,
};



exports.ActivePaymentStream_ProposeChanges = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({actor: damlTypes.Party.decoder, paymentStreamChanges: CantonPayments_PaymentStream_Types_PaymentStreamChanges.PaymentStreamChanges.decoder, description: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.Text).decoder), }); }),
  encode: function (__typed__) {
  return {
    actor: damlTypes.Party.encode(__typed__.actor),
    paymentStreamChanges: CantonPayments_PaymentStream_Types_PaymentStreamChanges.PaymentStreamChanges.encode(__typed__.paymentStreamChanges),
    description: damlTypes.Optional(damlTypes.Text).encode(__typed__.description),
  };
}
,
};



exports.ActivePaymentStream_ProcessPayment = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.decoder, skipProcessorPayment: damlTypes.Bool.decoder, activityMarkerFeaturedAppRightCid: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
  encode: function (__typed__) {
  return {
    processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
    paymentContext: CantonPayments_PaymentStream_Types_PaymentContext.PaymentContext.encode(__typed__.paymentContext),
    skipProcessorPayment: damlTypes.Bool.encode(__typed__.skipProcessorPayment),
    activityMarkerFeaturedAppRightCid: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.activityMarkerFeaturedAppRightCid),
  };
}
,
};



exports.ActivePaymentStream_ProcessFreeTrial = {
  decoder: damlTypes.lazyMemo(function () { return jtv.object({processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.decoder, featuredAppRight: jtv.Decoder.withDefault(null, damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).decoder), }); }),
  encode: function (__typed__) {
  return {
    processingPeriod: pkgb70db8369e1c461d5c70f1c86f526a29e9776c655e6ffc2560f95b05ccb8b946.DA.Time.Types.RelTime.encode(__typed__.processingPeriod),
    featuredAppRight: damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.FeaturedAppRight)).encode(__typed__.featuredAppRight),
  };
}
,
};



exports.ActivePaymentStream = damlTypes.assembleTemplate(
{
  templateId: '#CantonPayments:CantonPayments.PaymentStream.ActivePaymentStream:ActivePaymentStream',
  templateIdWithPackageId: 'b9b320d4b90b6367688d5eb6134b57c80da1bc8fe99b7b4f923f889da544947d:CantonPayments.PaymentStream.ActivePaymentStream:ActivePaymentStream',
  keyDecoder: damlTypes.lazyMemo(function () { return jtv.constant(undefined); }),
  keyEncode: function () { throw 'EncodeError'; },
  decoder: damlTypes.lazyMemo(function () { return jtv.object({paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream.decoder, processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.decoder, processedAndPaidUntil: damlTypes.Time.decoder, lockedAmuletCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.LockedAmulet).decoder, stats: CantonPayments_PaymentStream_Types_PaymentStreamStats.PaymentStreamStats.decoder, }); }),
  encode: function (__typed__) {
  return {
    paymentStream: CantonPayments_PaymentStream_Types_PaymentStream.PaymentStream.encode(__typed__.paymentStream),
    processorContext: CantonPayments_PaymentStream_Types_ProcessorContext.ProcessorContext.encode(__typed__.processorContext),
    processedAndPaidUntil: damlTypes.Time.encode(__typed__.processedAndPaidUntil),
    lockedAmuletCid: damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.LockedAmulet).encode(__typed__.lockedAmuletCid),
    stats: CantonPayments_PaymentStream_Types_PaymentStreamStats.PaymentStreamStats.encode(__typed__.stats),
  };
}
,
  ActivePaymentStream_ProcessFreeTrial: {
    template: function () { return exports.ActivePaymentStream; },
    choiceName: 'ActivePaymentStream_ProcessFreeTrial',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_ProcessFreeTrial.decoder; }),
    argumentEncode: function (__typed__) { return exports.ActivePaymentStream_ProcessFreeTrial.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return CantonPayments_PaymentStream_Types_ProcessFreeTrialResult.ProcessFreeTrialResult(exports.ActivePaymentStream).decoder; }),
    resultEncode: function (__typed__) { return CantonPayments_PaymentStream_Types_ProcessFreeTrialResult.ProcessFreeTrialResult(exports.ActivePaymentStream).encode(__typed__); },
  },
  ActivePaymentStream_ProcessPayment: {
    template: function () { return exports.ActivePaymentStream; },
    choiceName: 'ActivePaymentStream_ProcessPayment',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_ProcessPayment.decoder; }),
    argumentEncode: function (__typed__) { return exports.ActivePaymentStream_ProcessPayment.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return CantonPayments_PaymentStream_Types_PaymentResult.ProcessPaymentResult(exports.ActivePaymentStream).decoder; }),
    resultEncode: function (__typed__) { return CantonPayments_PaymentStream_Types_PaymentResult.ProcessPaymentResult(exports.ActivePaymentStream).encode(__typed__); },
  },
  ActivePaymentStream_ProposeChanges: {
    template: function () { return exports.ActivePaymentStream; },
    choiceName: 'ActivePaymentStream_ProposeChanges',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_ProposeChanges.decoder; }),
    argumentEncode: function (__typed__) { return exports.ActivePaymentStream_ProposeChanges.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.PaymentStreamChangeProposal).decoder; }),
    resultEncode: function (__typed__) { return damlTypes.ContractId(exports.PaymentStreamChangeProposal).encode(__typed__); },
  },
  ActivePaymentStream_Cancel: {
    template: function () { return exports.ActivePaymentStream; },
    choiceName: 'ActivePaymentStream_Cancel',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_Cancel.decoder; }),
    argumentEncode: function (__typed__) { return exports.ActivePaymentStream_Cancel.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.Optional(damlTypes.ContractId(exports.ActivePaymentStream)), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
    resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.Optional(damlTypes.ContractId(exports.ActivePaymentStream)), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
  },
  ActivePaymentStream_Refund: {
    template: function () { return exports.ActivePaymentStream; },
    choiceName: 'ActivePaymentStream_Refund',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_Refund.decoder; }),
    argumentEncode: function (__typed__) { return exports.ActivePaymentStream_Refund.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult, damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder; }),
    resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.TransferResult, damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__); },
  },
  ActivePaymentStream_AddFunds: {
    template: function () { return exports.ActivePaymentStream; },
    choiceName: 'ActivePaymentStream_AddFunds',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_AddFunds.decoder; }),
    argumentEncode: function (__typed__) { return exports.ActivePaymentStream_AddFunds.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActivePaymentStream), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).decoder; }),
    resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActivePaymentStream), damlTypes.Optional(damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet))).encode(__typed__); },
  },
  ActivePaymentStream_WithdrawFunds: {
    template: function () { return exports.ActivePaymentStream; },
    choiceName: 'ActivePaymentStream_WithdrawFunds',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_WithdrawFunds.decoder; }),
    argumentEncode: function (__typed__) { return exports.ActivePaymentStream_WithdrawFunds.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActivePaymentStream), damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).decoder; }),
    resultEncode: function (__typed__) { return pkg5aee9b21b8e9a4c4975b5f4c4198e6e6e8469df49e2010820e792f393db870f4.DA.Types.Tuple2(damlTypes.ContractId(exports.ActivePaymentStream), damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet)).encode(__typed__); },
  },
  ActivePaymentStream_ArchiveInactivePaymentStream: {
    template: function () { return exports.ActivePaymentStream; },
    choiceName: 'ActivePaymentStream_ArchiveInactivePaymentStream',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_ArchiveInactivePaymentStream.decoder; }),
    argumentEncode: function (__typed__) { return exports.ActivePaymentStream_ArchiveInactivePaymentStream.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet).decoder; }),
    resultEncode: function (__typed__) { return damlTypes.ContractId(pkg3ca1343ab26b453d38c8adb70dca5f1ead8440c42b59b68f070786955cbf9ec1.Amulet).encode(__typed__); },
  },
  ActivePaymentStream_ChangeParty: {
    template: function () { return exports.ActivePaymentStream; },
    choiceName: 'ActivePaymentStream_ChangeParty',
    argumentDecoder: damlTypes.lazyMemo(function () { return exports.ActivePaymentStream_ChangeParty.decoder; }),
    argumentEncode: function (__typed__) { return exports.ActivePaymentStream_ChangeParty.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.ContractId(exports.ActivePaymentStream).decoder; }),
    resultEncode: function (__typed__) { return damlTypes.ContractId(exports.ActivePaymentStream).encode(__typed__); },
  },
  Archive: {
    template: function () { return exports.ActivePaymentStream; },
    choiceName: 'Archive',
    argumentDecoder: damlTypes.lazyMemo(function () { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.decoder; }),
    argumentEncode: function (__typed__) { return pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive.encode(__typed__); },
    resultDecoder: damlTypes.lazyMemo(function () { return damlTypes.Unit.decoder; }),
    resultEncode: function (__typed__) { return damlTypes.Unit.encode(__typed__); },
  },
}

);


damlTypes.registerTemplate(exports.ActivePaymentStream, ['b9b320d4b90b6367688d5eb6134b57c80da1bc8fe99b7b4f923f889da544947d', '#CantonPayments']);

