All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.corda.contracts.ICommercialPaperState Maven / Gradle / Ivy

There is a newer version: 0.12.1
Show newest version
package net.corda.contracts;

import net.corda.core.contracts.*;
import net.corda.core.crypto.*;

import java.time.*;
import java.util.*;

/* This is an interface solely created to demonstrate that the same kotlin tests can be run against
 * either a Java implementation of the CommercialPaper or a kotlin implementation.
 * Normally one would not duplicate an implementation in different languages for obvious reasons, but it demonstrates that
 * ultimately either language can be used against a common test framework (and therefore can be used for real).
 */
public interface ICommercialPaperState extends ContractState {
    ICommercialPaperState withOwner(CompositeKey newOwner);

    ICommercialPaperState withIssuance(PartyAndReference newIssuance);

    ICommercialPaperState withFaceValue(Amount> newFaceValue);

    ICommercialPaperState withMaturityDate(Instant newMaturityDate);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy