JS API Reference

Class: OfferCounterProposal

market/proposal/offer-counter-proposal.OfferCounterProposal

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 OfferCounterProposal(model): OfferCounterProposal

Parameters

NameType
modelProposal

Returns

OfferCounterProposal

Overrides

MarketProposal.constructor

Defined in

src/market/proposal/offer-counter-proposal.ts:7

Properties

issuer

Readonly issuer: "Requestor"

Overrides

MarketProposal.issuer

Defined in

src/market/proposal/offer-counter-proposal.ts:5


id

Readonly id: string

Inherited from

MarketProposal.id

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

Inherited from

MarketProposal.previousProposalId

Defined in

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


properties

Readonly properties: ProposalProperties

Inherited from

MarketProposal.properties

Defined in

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


model

Protected Readonly model: Proposal

Inherited from

MarketProposal.model

Defined in

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

Accessors

state

get state(): ProposalState

Returns

ProposalState

Inherited from

MarketProposal.state

Defined in

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


timestamp

get timestamp(): Date

Returns

Date

Inherited from

MarketProposal.timestamp

Defined in

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

Methods

validate

validate(): void

Returns

void

Overrides

MarketProposal.validate

Defined in

src/market/proposal/offer-counter-proposal.ts:11


isInitial

isInitial(): boolean

Returns

boolean

Inherited from

MarketProposal.isInitial

Defined in

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


isDraft

isDraft(): boolean

Returns

boolean

Inherited from

MarketProposal.isDraft

Defined in

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


isExpired

isExpired(): boolean

Returns

boolean

Inherited from

MarketProposal.isExpired

Defined in

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


isRejected

isRejected(): boolean

Returns

boolean

Inherited from

MarketProposal.isRejected

Defined in

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


isValid

isValid(): boolean

Returns

boolean

Inherited from

MarketProposal.isValid

Defined in

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