mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
* PW-7514: Update models * PW-7514: Switch to JAR based installation * PW-7514: Default API template * PW-7514: Customize API template * PW-7514: Serialize request * PW-7514: Query string * PW-7514: Fix version patch * PW-7514: Client generated * PW-7514: Export class by default * PW-7514: Make path and body params required * PW-7514: Dynamic service name * PW-7514: Link all classes into one parent * PW-7514: Dynamic method names * PW-7514: Fix merge issues * PW-7514: Generate using latest specs Co-authored-by: jillingk <93914435+jillingk@users.noreply.github.com>
25 lines
551 B
Plaintext
25 lines
551 B
Plaintext
{{>licenseInfo}}
|
|
|
|
{{#apiInfo}}
|
|
import Service from "../service";
|
|
import Client from "../client";
|
|
|
|
{{#apis}}
|
|
{{#operations}}
|
|
import {{ classname }} from './{{serviceName}}/{{ classFilename }}';
|
|
{{/operations}}
|
|
{{/apis}}
|
|
|
|
export default class {{#lambda.titlecase}}{{serviceName}}{{/lambda.titlecase}} extends Service {
|
|
public constructor(client: Client) {
|
|
super(client);
|
|
}
|
|
{{#apis}}
|
|
{{#operations}}
|
|
public get {{ classname }}() {
|
|
return new {{ classname }}(this.client);
|
|
}
|
|
{{/operations}}
|
|
{{/apis}}
|
|
}
|
|
{{/apiInfo}} |