Constructors
constructor
- new BaseProduct(__namedParameters: object): BaseProduct
-
Parameters
-
__namedParameters: object
-
apiKey: string
-
apiuserId: string
-
authBaseURL: string
-
authUrl: string
-
subscriptionKey: string
-
targetEnvironment: string
Properties
commonHeaders
commonHeaders: object
Type declaration
-
Authorization: string
-
Content-Type: string
-
Ocp-Apim-Subscription-Key: string
-
X-Target-Environment: string
Methods
Protected authenticate
- authenticate(): Promise<void>
Protected secondsSince
- secondsSince(startingTime: Date): number
-
Parameters
Returns number
Protected shouldAuthenticate
- shouldAuthenticate(): boolean
Base class for all products including account, paymentRequests, remittances and disbursements
{ 'Content-Type': string, 'Ocp-Apim-Subscription-Key': string, 'Authorization': string, 'X-Target-Environment': string,} commonHeaders
{IApiToken | undefined} apiToken
authenticate()
shouldAuthenticate()
secondsSince()