CorpControlMethods mixin
Mono Corp API methods for controlling the company
These methods are used to control the company registered in Mono Corp API.
See MonoCorpAPI for use.
- Mixin applications
Properties
- domain → Uri
-
Root path
finalinherited
- globalLastRequestTime ↔ DateTime
-
Last time any kind of request was sent
getter/setter pairinherited
- globalTimeout ↔ Duration
-
Minimal timeout between all requests
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCartBusy → bool
-
Returns
trueif there are requests being throttledno setterinherited -
lastRequestsTimes
→ Map<
String, DateTime> -
A map of last time a request was sent by methodId
finalinherited
- noAuthDomain → Uri
-
No authentication Root path
finalinherited
-
requestTimeouts
↔ Map<
String, Duration> -
Minimal timeout between requests of the same class
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String?
-
Request credential
finalinherited
Methods
-
authAttacher(
APIRequest request) → void -
Attaches credentials to given request
inherited
-
call(
APIRequest request) → Future< APIResponse> -
Evaluate the request
inherited
-
getCompany(
) → Future< MonoCorpCompanyData> - Get company data
-
getMethodRequestTimeout(
String methodId) → Duration -
Returns configured delay between requests of the same class
inherited
-
getRegistrationStatus(
{required String pubKey}) → Future< String> - Get the registration status of a company
-
isMethodBusy(
String methodId) → bool -
Returns is method [of class] is currently in-work
inherited
-
isRequestImmediate(
String? methodId) → bool -
Returns
trueif request [of class] can be sent immediatelyinherited -
lastRequest(
{String? methodId}) → DateTime -
Returns last time request was sent
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preprocessRequest(
APIRequest request) → void -
Preprocesses given request
inherited
-
registration(
{required String pubKey, required String name, required String description, required String contactPerson, required String phone, required String email, required String logo}) → Future< String> - Register a company in Mono Corp
-
requestAccess(
Uri callback) → Future< MonoDataAccessRequest> - Request access to the user's data
-
setWebhook(
Uri? webHookUrl) → Future< void> - Set the webhook URL for statement events and other notifications
-
toString(
) → String -
A string representation of this object.
inherited
-
willFreeIn(
{String? methodId}) → Duration -
Returns minimum required time until request [of class] can be sent
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited