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

Adyen / adyen-node-api-library / 3960113660

pending completion
3960113660

Pull #1083

github

GitHub
<a href="https://github.com/Adyen/adyen-node-api-library/commit/<a class=hub.com/Adyen/adyen-node-api-library/commit/85030cab2b06d76d1cbb6f79a2d474a3d4a37773">85030cab2<a href="https://github.com/Adyen/adyen-node-api-library/commit/85030cab2b06d76d1cbb6f79a2d474a3d4a37773">">Merge </a><a class="double-link" href="https://github.com/Adyen/adyen-node-api-library/commit/<a class="double-link" href="https://github.com/Adyen/adyen-node-api-library/commit/316542a166e38024b89aaa791c459edd3f3a69d0">316542a16</a>">316542a16</a><a href="https://github.com/Adyen/adyen-node-api-library/commit/85030cab2b06d76d1cbb6f79a2d474a3d4a37773"> into d6b50a39b">d6b50a39b</a>
Pull Request #1083: Release 12.2.0

90 of 144 branches covered (62.5%)

Branch coverage included in aggregate %.

731 of 731 new or added lines in 33 files covered. (100.0%)

1704 of 2268 relevant lines covered (75.13%)

19.88 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