"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 CantonPayments_PaymentStream_Types_PaymentStream = require('../../../../CantonPayments/PaymentStream/Types/PaymentStream/module');
var CantonPayments_PaymentStream_Types_PaymentStreamStats = require('../../../../CantonPayments/PaymentStream/Types/PaymentStreamStats/module');
var CantonPayments_PaymentStream_Types_ProcessorContext = require('../../../../CantonPayments/PaymentStream/Types/ProcessorContext/module');


exports.ActivePaymentStreamData = {
  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, 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),
    stats: CantonPayments_PaymentStream_Types_PaymentStreamStats.PaymentStreamStats.encode(__typed__.stats),
  };
}
,
};

