API class

Constructors

API.new(ZatcaEnvironment env)

Properties

env ZatcaEnvironment
The environment for the API (sandbox(development), simulation, or production).
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compliance({String? certificate, String? secret}) ComplianceAPI
Creates an instance of the ComplianceAPI class.
getAuthHeaders(String? certificate, String? secret) Map<String, String>
Generates the authentication headers for the API requests.
getBaseUrl() String
The base URL for the API endpoints based on the environment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
production(String? certificate, String? secret) ProductionAPI
Creates an instance of the ProductionAPI class.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

settings → const Map<String, String>
The base URL for the API endpoints.