Skip to content

Commit 3cd10c8

Browse files
AdyenAutomationBotAdyenAutomationBotDjoykeAbyah
authored
Update all services (#1340)
* [reformat][adyen-sdk-automation] automated change * style(fmt): code formatted * removed line until sustainable fix implemented --------- Co-authored-by: AdyenAutomationBot <Adyen Automation plugins_dev@adyen.com> Co-authored-by: Djoyke Reijans <115019123+DjoykeAbyah@users.noreply.github.com>
1 parent 85e5686 commit 3cd10c8

File tree

4 files changed

+56
-4
lines changed

4 files changed

+56
-4
lines changed

src/services/management/androidFilesCompanyLevelApi.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
AndroidAppsResponse,
1616
AndroidCertificatesResponse,
1717
UploadAndroidAppResponse,
18+
UploadAndroidCertificateResponse,
1819
ObjectSerializer
1920
} from "../../typings/management/models";
2021
import { IRequest } from "../../typings/requestOptions";
@@ -127,4 +128,22 @@ export class AndroidFilesCompanyLevelApi extends Service {
127128
);
128129
return ObjectSerializer.deserialize(response, "UploadAndroidAppResponse");
129130
}
131+
132+
/**
133+
* @summary Upload Android Certificate
134+
* @param companyId {@link string } The unique identifier of the company account.
135+
* @param requestOptions {@link IRequest.Options }
136+
* @return {@link UploadAndroidCertificateResponse }
137+
*/
138+
public async uploadAndroidCertificate(companyId: string, requestOptions?: IRequest.Options): Promise<UploadAndroidCertificateResponse> {
139+
const endpoint = `${this.baseUrl}/companies/{companyId}/androidCertificates`
140+
.replace("{" + "companyId" + "}", encodeURIComponent(String(companyId)));
141+
const resource = new Resource(this, endpoint);
142+
const response = await getJsonResponse<string, UploadAndroidCertificateResponse>(
143+
resource,
144+
"",
145+
{ ...requestOptions, method: "POST" }
146+
);
147+
return ObjectSerializer.deserialize(response, "UploadAndroidCertificateResponse");
148+
}
130149
}

src/typings/checkout/fundRecipient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class FundRecipient {
1616
'billingAddress'?: Address;
1717
'paymentMethod'?: CardDetails;
1818
/**
19-
* the email address of the person
19+
* The email address of the shopper.
2020
*/
2121
'shopperEmail'?: string;
2222
'shopperName'?: Name;
@@ -30,15 +30,15 @@ export class FundRecipient {
3030
'storedPaymentMethodId'?: string;
3131
'subMerchant'?: SubMerchant;
3232
/**
33-
* the telephone number of the person
33+
* The telephone number of the shopper.
3434
*/
3535
'telephoneNumber'?: string;
3636
/**
37-
* indicates where the money is going
37+
* Indicates where the money is going.
3838
*/
3939
'walletIdentifier'?: string;
4040
/**
41-
* indicates the tax identifier of the fund recepient
41+
* Indicates the tax identifier of the fund recepient
4242
*/
4343
'walletOwnerTaxId'?: string;
4444

src/typings/management/models.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ export * from './updateSplitConfigurationRequest';
180180
export * from './updateSplitConfigurationRuleRequest';
181181
export * from './updateStoreRequest';
182182
export * from './uploadAndroidAppResponse';
183+
export * from './uploadAndroidCertificateResponse';
183184
export * from './url';
184185
export * from './user';
185186
export * from './vippsInfo';
@@ -360,6 +361,7 @@ import { UpdateSplitConfigurationRequest } from './updateSplitConfigurationReque
360361
import { UpdateSplitConfigurationRuleRequest } from './updateSplitConfigurationRuleRequest';
361362
import { UpdateStoreRequest } from './updateStoreRequest';
362363
import { UploadAndroidAppResponse } from './uploadAndroidAppResponse';
364+
import { UploadAndroidCertificateResponse } from './uploadAndroidCertificateResponse';
363365
import { Url } from './url';
364366
import { User } from './user';
365367
import { VippsInfo } from './vippsInfo';
@@ -624,6 +626,7 @@ let typeMap: {[index: string]: any} = {
624626
"UpdateSplitConfigurationRuleRequest": UpdateSplitConfigurationRuleRequest,
625627
"UpdateStoreRequest": UpdateStoreRequest,
626628
"UploadAndroidAppResponse": UploadAndroidAppResponse,
629+
"UploadAndroidCertificateResponse": UploadAndroidCertificateResponse,
627630
"Url": Url,
628631
"User": User,
629632
"VippsInfo": VippsInfo,
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* The version of the OpenAPI document: v3
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 UploadAndroidCertificateResponse {
12+
/**
13+
* The unique identifier of the uploaded Android certificate.
14+
*/
15+
'id'?: string;
16+
17+
static discriminator: string | undefined = undefined;
18+
19+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
20+
{
21+
"name": "id",
22+
"baseName": "id",
23+
"type": "string"
24+
} ];
25+
26+
static getAttributeTypeMap() {
27+
return UploadAndroidCertificateResponse.attributeTypeMap;
28+
}
29+
}
30+

0 commit comments

Comments
 (0)