• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Adyen / adyen-node-api-library / 3965866986

pending completion
3965866986

Pull #1083

github

GitHub
Merge b76846c03 into d6b50a39b
Pull Request #1083: Release 12.2.0

90 of 144 branches covered (62.5%)

Branch coverage included in aggregate %.

750 of 750 new or added lines in 35 files covered. (100.0%)

1700 of 2264 relevant lines covered (75.09%)

20.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

55.56
/src/services/management/aPIKeyMerchantLevelApi.ts
1
/*
2
 * The version of the OpenAPI document: v1
3
 * Contact: developer-experience@adyen.com
4
 *
5
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6
 * https://openapi-generator.tech
7
 * Do not edit this class manually.
8
 */
9

10

11
import getJsonResponse from "../../helpers/getJsonResponse";
5✔
12
import Service from "../../service";
5✔
13
/* tslint:disable:no-unused-locals */
14
import { GenerateApiKeyResponse } from '../../typings/management/models';
15
import { IRequest } from "../../typings/requestOptions";
16
import ManagementResource from "../resource/management/managementResource";
5✔
17
import { ObjectSerializer } from "../../typings/management/models";
5✔
18

19

20
export default class APIKeyMerchantLevelApi extends Service {
5✔
21
    /**
22
     * @summary Generate new API key
23
     * @param merchantId The unique identifier of the merchant account.
24
     * @param apiCredentialId Unique identifier of the API credential.
25
     */
26
    public async generateNewApiKey(merchantId: string, apiCredentialId: string, requestOptions?: IRequest.Options): Promise<GenerateApiKeyResponse> {
27
        const localVarPath = "/merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateApiKey"
×
28
            .replace('{' + 'merchantId' + '}', encodeURIComponent(String(merchantId)))
29
            .replace('{' + 'apiCredentialId' + '}', encodeURIComponent(String(apiCredentialId)));
30
        const resource = new ManagementResource(this, localVarPath);
×
31
        const response = await getJsonResponse<string, GenerateApiKeyResponse>(
×
32
            resource,
33
            "",
34
            { ...requestOptions, method: "POST" }
35
        );
36
        return ObjectSerializer.deserialize(response, "GenerateApiKeyResponse");
×
37
    }
38
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc