JS API Reference

Class: MarketProposal

market/proposal/market-proposal.MarketProposal

Base representation of a market proposal that can be issued either by the Provider (offer proposal) or Requestor (counter-proposal)

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new MarketProposal(model): MarketProposal

Parameters

NameType
modelProposal

Returns

MarketProposal

Defined in

src/market/proposal/market-proposal.ts:31

Properties

id

Readonly id: string

Defined in

src/market/proposal/market-proposal.ts:19


previousProposalId

Readonly previousProposalId: null | string = null

Reference to the previous proposal in the "negotiation chain"

If null, this means that was the initial offer that the negotiations started from

Defined in

src/market/proposal/market-proposal.ts:25


issuer

Readonly Abstract issuer: "Provider" | "Requestor"

Defined in

src/market/proposal/market-proposal.ts:27


properties

Readonly properties: ProposalProperties

Defined in

src/market/proposal/market-proposal.ts:29


model

Protected Readonly model: Proposal

Defined in

src/market/proposal/market-proposal.ts:31

Accessors

state

get state(): ProposalState

Returns

ProposalState

Defined in

src/market/proposal/market-proposal.ts:37


timestamp

get timestamp(): Date

Returns

Date

Defined in

src/market/proposal/market-proposal.ts:41

Methods

isInitial

isInitial(): boolean

Returns

boolean

Defined in

src/market/proposal/market-proposal.ts:45


isDraft

isDraft(): boolean

Returns

boolean

Defined in

src/market/proposal/market-proposal.ts:49


isExpired

isExpired(): boolean

Returns

boolean

Defined in

src/market/proposal/market-proposal.ts:53


isRejected

isRejected(): boolean

Returns

boolean

Defined in

src/market/proposal/market-proposal.ts:57


isValid

isValid(): boolean

Returns

boolean

Defined in

src/market/proposal/market-proposal.ts:61


validate

validate(): void

Returns

void

Defined in

src/market/proposal/market-proposal.ts:70