Skip to content

Latest commit

 

History

History
182 lines (100 loc) · 3.66 KB

rest_market.offerproposal.md

File metadata and controls

182 lines (100 loc) · 3.66 KB

Class: OfferProposal

yajsapi / Exports / rest/market / OfferProposal

Class: OfferProposal

rest/market.OfferProposal

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new OfferProposal(subscription, proposal)

Parameters

Name Type
subscription Subscription
proposal ProposalEvent

Defined in

yajsapi/rest/market.ts:124

Properties

_proposal

Private _proposal: ProposalEvent

Defined in

yajsapi/rest/market.ts:123

_subscription

Private _subscription: Subscription

Defined in

yajsapi/rest/market.ts:124

Methods

create_agreement

create_agreement(timeout?): Promise<Agreement>

Parameters

Name Type Default value
timeout number 3600

Returns

Promise<Agreement>

Defined in

yajsapi/rest/market.ts:183

id

id(): string

Returns

string

Defined in

yajsapi/rest/market.ts:135

is_draft

is_draft(): boolean

Returns

boolean

Defined in

yajsapi/rest/market.ts:147

issuer

issuer(): string

Returns

string

Defined in

yajsapi/rest/market.ts:131

props

props(): object

Returns

object

Defined in

yajsapi/rest/market.ts:139

reject

reject(_reason?): Promise

Parameters

Name Type Default value
_reason null | string null

Returns

Promise

Defined in

yajsapi/rest/market.ts:153

respond

respond(props, constraints): Promise

Parameters

Name Type
props object
constraints string

Returns

Promise

Defined in

yajsapi/rest/market.ts:167

state

state(): ProposalAllOfStateEnum

Returns

ProposalAllOfStateEnum

Defined in

yajsapi/rest/market.ts:143