Skip to content

Commit ba89550

Browse files
committed
Add SessionAuthentication models
1 parent fb38432 commit ba89550

15 files changed

+976
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* The version of the OpenAPI document: v1
3+
*
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+
import { Resource } from "./resource";
11+
12+
13+
export class AccountHolderResource extends Resource {
14+
/**
15+
* The unique identifier of the resource connected to the component. For [Platform Experience components](https://docs.adyen.com/platforms/build-user-dashboards), this is the account holder linked to the balance account shown in the component.
16+
*/
17+
"accountHolderId": string;
18+
19+
static override readonly discriminator: string | undefined = undefined;
20+
21+
static override readonly mapping: {[index: string]: string} | undefined = undefined;
22+
23+
static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
24+
{
25+
"name": "accountHolderId",
26+
"baseName": "accountHolderId",
27+
"type": "string",
28+
"format": ""
29+
} ];
30+
31+
static override getAttributeTypeMap() {
32+
return super.getAttributeTypeMap().concat(AccountHolderResource.attributeTypeMap);
33+
}
34+
35+
public constructor() {
36+
super();
37+
}
38+
}
39+
40+
export namespace AccountHolderResource {
41+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* The version of the OpenAPI document: v1
3+
*
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+
import { Policy } from "./policy";
11+
import { ProductType } from "./productType";
12+
13+
14+
export class AuthenticationSessionRequest {
15+
/**
16+
* The URL where the component will appear. In your live environment, you must protect the URL with an SSL certificate and ensure that it starts with `https://`.
17+
*/
18+
"allowOrigin": string;
19+
"policy": Policy;
20+
"product": ProductType;
21+
22+
static readonly discriminator: string | undefined = undefined;
23+
24+
static readonly mapping: {[index: string]: string} | undefined = undefined;
25+
26+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
27+
{
28+
"name": "allowOrigin",
29+
"baseName": "allowOrigin",
30+
"type": "string",
31+
"format": ""
32+
},
33+
{
34+
"name": "policy",
35+
"baseName": "policy",
36+
"type": "Policy",
37+
"format": ""
38+
},
39+
{
40+
"name": "product",
41+
"baseName": "product",
42+
"type": "ProductType",
43+
"format": ""
44+
} ];
45+
46+
static getAttributeTypeMap() {
47+
return AuthenticationSessionRequest.attributeTypeMap;
48+
}
49+
50+
public constructor() {
51+
}
52+
}
53+
54+
export namespace AuthenticationSessionRequest {
55+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* The version of the OpenAPI document: v1
3+
*
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+
export class AuthenticationSessionResponse {
12+
/**
13+
* The unique identifier of the session.
14+
*/
15+
"id"?: string;
16+
/**
17+
* The session token created.
18+
*/
19+
"token"?: string;
20+
21+
static readonly discriminator: string | undefined = undefined;
22+
23+
static readonly mapping: {[index: string]: string} | undefined = undefined;
24+
25+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
26+
{
27+
"name": "id",
28+
"baseName": "id",
29+
"type": "string",
30+
"format": ""
31+
},
32+
{
33+
"name": "token",
34+
"baseName": "token",
35+
"type": "string",
36+
"format": ""
37+
} ];
38+
39+
static getAttributeTypeMap() {
40+
return AuthenticationSessionResponse.attributeTypeMap;
41+
}
42+
43+
public constructor() {
44+
}
45+
}
46+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* The version of the OpenAPI document: v1
3+
*
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+
import { Resource } from "./resource";
11+
12+
13+
export class BalanceAccountResource extends Resource {
14+
"balanceAccountId": string;
15+
16+
static override readonly discriminator: string | undefined = undefined;
17+
18+
static override readonly mapping: {[index: string]: string} | undefined = undefined;
19+
20+
static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
21+
{
22+
"name": "balanceAccountId",
23+
"baseName": "balanceAccountId",
24+
"type": "string",
25+
"format": ""
26+
} ];
27+
28+
static override getAttributeTypeMap() {
29+
return super.getAttributeTypeMap().concat(BalanceAccountResource.attributeTypeMap);
30+
}
31+
32+
public constructor() {
33+
super();
34+
}
35+
}
36+
37+
export namespace BalanceAccountResource {
38+
}
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
/*
2+
* The version of the OpenAPI document: v1
3+
*
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+
import { InvalidField } from "./invalidField";
11+
12+
/**
13+
* Standardized error response following RFC-7807 format
14+
*/
15+
16+
17+
export class DefaultErrorResponseEntity {
18+
/**
19+
* A human-readable explanation specific to this occurrence of the problem.
20+
*/
21+
"detail"?: string;
22+
/**
23+
* Unique business error code.
24+
*/
25+
"errorCode"?: string;
26+
/**
27+
* A URI that identifies the specific occurrence of the problem if applicable.
28+
*/
29+
"instance"?: string;
30+
/**
31+
* Array of fields with validation errors when applicable.
32+
*/
33+
"invalidFields"?: Array<InvalidField>;
34+
/**
35+
* The unique reference for the request.
36+
*/
37+
"requestId"?: string;
38+
/**
39+
* The HTTP status code.
40+
*/
41+
"status"?: number;
42+
/**
43+
* A short, human-readable summary of the problem type.
44+
*/
45+
"title"?: string;
46+
/**
47+
* A URI that identifies the validation error type. It points to human-readable documentation for the problem type.
48+
*/
49+
"type"?: string;
50+
51+
static readonly discriminator: string | undefined = undefined;
52+
53+
static readonly mapping: {[index: string]: string} | undefined = undefined;
54+
55+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
56+
{
57+
"name": "detail",
58+
"baseName": "detail",
59+
"type": "string",
60+
"format": ""
61+
},
62+
{
63+
"name": "errorCode",
64+
"baseName": "errorCode",
65+
"type": "string",
66+
"format": ""
67+
},
68+
{
69+
"name": "instance",
70+
"baseName": "instance",
71+
"type": "string",
72+
"format": ""
73+
},
74+
{
75+
"name": "invalidFields",
76+
"baseName": "invalidFields",
77+
"type": "Array<InvalidField>",
78+
"format": ""
79+
},
80+
{
81+
"name": "requestId",
82+
"baseName": "requestId",
83+
"type": "string",
84+
"format": ""
85+
},
86+
{
87+
"name": "status",
88+
"baseName": "status",
89+
"type": "number",
90+
"format": "int32"
91+
},
92+
{
93+
"name": "title",
94+
"baseName": "title",
95+
"type": "string",
96+
"format": ""
97+
},
98+
{
99+
"name": "type",
100+
"baseName": "type",
101+
"type": "string",
102+
"format": ""
103+
} ];
104+
105+
static getAttributeTypeMap() {
106+
return DefaultErrorResponseEntity.attributeTypeMap;
107+
}
108+
109+
public constructor() {
110+
}
111+
}
112+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* The version of the OpenAPI document: v1
3+
*
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+
export class InvalidField {
12+
/**
13+
* The field that has an invalid value.
14+
*/
15+
"name": string;
16+
/**
17+
* The invalid value.
18+
*/
19+
"value": string;
20+
/**
21+
* Description of the validation error.
22+
*/
23+
"message": string;
24+
25+
static readonly discriminator: string | undefined = undefined;
26+
27+
static readonly mapping: {[index: string]: string} | undefined = undefined;
28+
29+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
30+
{
31+
"name": "name",
32+
"baseName": "name",
33+
"type": "string",
34+
"format": ""
35+
},
36+
{
37+
"name": "value",
38+
"baseName": "value",
39+
"type": "string",
40+
"format": ""
41+
},
42+
{
43+
"name": "message",
44+
"baseName": "message",
45+
"type": "string",
46+
"format": ""
47+
} ];
48+
49+
static getAttributeTypeMap() {
50+
return InvalidField.attributeTypeMap;
51+
}
52+
53+
public constructor() {
54+
}
55+
}
56+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* The version of the OpenAPI document: v1
3+
*
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+
import { Resource } from "./resource";
11+
12+
13+
export class LegalEntityResource extends Resource {
14+
/**
15+
* The unique identifier of the resource connected to the component. For [Onboarding components](https://docs.adyen.com/platforms/onboard-users/components), this is the legal entity that has a contractual relationship with your platform and owns the [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). For sole proprietorships, this is the legal entity of the individual owner.
16+
*/
17+
"legalEntityId": string;
18+
19+
static override readonly discriminator: string | undefined = undefined;
20+
21+
static override readonly mapping: {[index: string]: string} | undefined = undefined;
22+
23+
static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
24+
{
25+
"name": "legalEntityId",
26+
"baseName": "legalEntityId",
27+
"type": "string",
28+
"format": ""
29+
} ];
30+
31+
static override getAttributeTypeMap() {
32+
return super.getAttributeTypeMap().concat(LegalEntityResource.attributeTypeMap);
33+
}
34+
35+
public constructor() {
36+
super();
37+
}
38+
}
39+
40+
export namespace LegalEntityResource {
41+
}

0 commit comments

Comments
 (0)