FixableDealState
Keywords: net.corda.finance.contracts.FixableDealState interface
Date: 2023-09-18

net.corda.finance.contracts

## Interface FixableDealState

- All Superinterfaces:
    ContractState, DealState, LinearState

      public FixableDealState
      extends DealState

  Interface adding fixing specific methods.

- - ### Constructor Detail

    - #### FixableDealState

          public FixableDealState()

  - ### Method Detail

    - #### nextFixingOf

          @Nullable
          FixOf nextFixingOf()

      When is the next fixing and what is the fixing for?

    - #### getOracle

          @NotNull
          Party getOracle()

      What oracle service to use for the fixing

    - #### generateFix

          void generateFix(@NotNull
                           TransactionBuilder ptx,
                           @NotNull
                           StateAndRef<?> oldState,
                           @NotNull
                           Fix fix)

      Generate a fixing command for this deal and fix.

      TODO: This would also likely move to methods on the Contract once the changes to reference the Contract from the ContractState are in.