pnz-apicentre-sandbox-sdk
Version:
The sandbox, powered by Middleware New Zealand, is a dedicated environment that mimics an API Provider, as defined in the [Payments NZ API Centre standards](https://paymentsnz.atlassian.net/wiki/spaces/PaymentsNZAPIStandards/overview). This SDK is generat
52 lines (51 loc) • 2.33 kB
TypeScript
/**
* Account information PNZ-API-CentreLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { ApiResponse, RequestOptions } from '../core';
import { AC9Checkaccountaccessconsentstatus } from '../models/aC9Checkaccountaccessconsentstatus';
import { BaseController } from './baseController';
export declare class ConsentStatusController extends BaseController {
/**
* This request queries the most recently created account access consent whose id is specified in the
* PNZ-T-AC-AccountAccessConsentId environment variable.
* This step is placed here in the sequence because the status of the account-access-consents resource
* will have changed from its original status at this point.
*
* Preconditions:
*
* * This step relies on the presence of a PNZ-T-AC-AccountAccessToken environment variable, which is
* set upon successful completion of Step AC1 - Initiate client credentials grant.
* * It also relies on the presence of a PNZ-T-AC-AccountAccessConsentId environment variable, which
* is set upon successful completion of Step AC2 - Create account access consent.
*
*
* Response:
*
* * The response should be a single account-access-consent resource with the requested ConsentId.
* * The status of the account-access-consent is dynamic so the status returned may vary.
*
*
* Postconditions:
*
* * None
*
*
* Examples:
*
* * There is one example which shows the request and the expected response.
*
*
* Troubleshooting:
*
* * The most likely cause of errors is an expired access token. Complete Step AC1 - Initiate client
* credentials grant before trying this request again.
* * Another likely cause is there is no PNZ-T-AC-AccountAccessConsentId environment variable.
* Complete Step AC2 - Create account access consent before trying this request again.
*
* @param pNZTACAccountAccessConsentId
* @return Response from the API call
*/
checkAccountAccessConsentStatus(pNZTACAccountAccessConsentId: string, requestOptions?: RequestOptions): Promise<ApiResponse<AC9Checkaccountaccessconsentstatus>>;
}