Skip to content

Commit 86f27cf

Browse files
committed
Add executionDate and format code
1 parent c752933 commit 86f27cf

File tree

6 files changed

+77
-4
lines changed

6 files changed

+77
-4
lines changed
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: v4
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 ExecutionDate {
12+
/**
13+
* The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31
14+
*/
15+
"date"?: string;
16+
/**
17+
* The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**.
18+
*/
19+
"timezone"?: 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": "date",
28+
"baseName": "date",
29+
"type": "string",
30+
"format": "date"
31+
},
32+
{
33+
"name": "timezone",
34+
"baseName": "timezone",
35+
"type": "string",
36+
"format": ""
37+
} ];
38+
39+
static getAttributeTypeMap() {
40+
return ExecutionDate.attributeTypeMap;
41+
}
42+
43+
public constructor() {
44+
}
45+
}
46+

src/typings/transfers/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export * from "./counterpartyV3"
2626
export * from "./dKLocalAccountIdentification"
2727
export * from "./directDebitInformation"
2828
export * from "./estimationTrackingData"
29+
export * from "./executionDate"
2930
export * from "./externalReason"
3031
export * from "./fee"
3132
export * from "./findTransfersResponse"

src/typings/transfers/objectSerializer.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { CounterpartyV3 } from "./counterpartyV3";
2828
import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification";
2929
import { DirectDebitInformation } from "./directDebitInformation";
3030
import { EstimationTrackingData } from "./estimationTrackingData";
31+
import { ExecutionDate } from "./executionDate";
3132
import { ExternalReason } from "./externalReason";
3233
import { Fee } from "./fee";
3334
import { FindTransfersResponse } from "./findTransfersResponse";
@@ -210,6 +211,7 @@ let typeMap: {[index: string]: any} = {
210211
"DKLocalAccountIdentification": DKLocalAccountIdentification,
211212
"DirectDebitInformation": DirectDebitInformation,
212213
"EstimationTrackingData": EstimationTrackingData,
214+
"ExecutionDate": ExecutionDate,
213215
"ExternalReason": ExternalReason,
214216
"Fee": Fee,
215217
"FindTransfersResponse": FindTransfersResponse,
@@ -380,10 +382,10 @@ export class ObjectSerializer {
380382
*
381383
* @param data - The value to serialize.
382384
* @param type - The expected type name as a string.
383-
* @param format - Format hint (e.g. "date" or "date-time").
385+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
384386
* @returns A JSON-compatible representation of `data`.
385387
*/
386-
public static serialize(data: any, type: string, format: string): any {
388+
public static serialize(data: any, type: string, format: string = ""): any {
387389
if (data == undefined) {
388390
return data;
389391
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
@@ -460,10 +462,10 @@ export class ObjectSerializer {
460462
*
461463
* @param data - The raw input to deserialize.
462464
* @param type - The expected type name as a string.
463-
* @param format - Format hint (e.g. "date" or "date-time").
465+
* @param format - Format hint (e.g. "date" or "date-time"). Default is an empty string.
464466
* @returns A deserialized instance or value of `data`.
465467
*/
466-
public static deserialize(data: any, type: string, format: string): any {
468+
public static deserialize(data: any, type: string, format: string = ""): any {
467469
// polymorphism may change the actual type.
468470
type = ObjectSerializer.findCorrectType(data, type);
469471
if (data == undefined) {

src/typings/transfers/transfer.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import { Amount } from "./amount";
1111
import { CounterpartyV3 } from "./counterpartyV3";
1212
import { DirectDebitInformation } from "./directDebitInformation";
13+
import { ExecutionDate } from "./executionDate";
1314
import { PaymentInstrument } from "./paymentInstrument";
1415
import { ResourceReference } from "./resourceReference";
1516
import { TransferCategoryData } from "./transferCategoryData";
@@ -39,6 +40,7 @@ export class Transfer {
3940
* The direction of the transfer. Possible values: **incoming**, **outgoing**.
4041
*/
4142
"direction"?: Transfer.DirectionEnum;
43+
"executionDate"?: ExecutionDate;
4244
/**
4345
* The ID of the resource.
4446
*/
@@ -131,6 +133,12 @@ export class Transfer {
131133
"type": "Transfer.DirectionEnum",
132134
"format": ""
133135
},
136+
{
137+
"name": "executionDate",
138+
"baseName": "executionDate",
139+
"type": "ExecutionDate",
140+
"format": ""
141+
},
134142
{
135143
"name": "id",
136144
"baseName": "id",

src/typings/transfers/transferData.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import { Amount } from "./amount";
1111
import { BalanceMutation } from "./balanceMutation";
1212
import { DirectDebitInformation } from "./directDebitInformation";
13+
import { ExecutionDate } from "./executionDate";
1314
import { ExternalReason } from "./externalReason";
1415
import { PaymentInstrument } from "./paymentInstrument";
1516
import { ResourceReference } from "./resourceReference";
@@ -60,6 +61,7 @@ export class TransferData {
6061
* The list of events leading up to the current status of the transfer.
6162
*/
6263
"events"?: Array<TransferEvent>;
64+
"executionDate"?: ExecutionDate;
6365
"externalReason"?: ExternalReason;
6466
/**
6567
* The ID of the resource.
@@ -183,6 +185,12 @@ export class TransferData {
183185
"type": "Array<TransferEvent>",
184186
"format": ""
185187
},
188+
{
189+
"name": "executionDate",
190+
"baseName": "executionDate",
191+
"type": "ExecutionDate",
192+
"format": ""
193+
},
186194
{
187195
"name": "externalReason",
188196
"baseName": "externalReason",

src/typings/transfers/transferInfo.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import { Amount } from "./amount";
1111
import { CounterpartyInfoV3 } from "./counterpartyInfoV3";
12+
import { ExecutionDate } from "./executionDate";
1213
import { TransferRequestReview } from "./transferRequestReview";
1314
import { UltimatePartyIdentification } from "./ultimatePartyIdentification";
1415

@@ -28,6 +29,7 @@ export class TransferInfo {
2829
* Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , \' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ \' \" ! ?**
2930
*/
3031
"description"?: string;
32+
"executionDate"?: ExecutionDate;
3133
/**
3234
* The unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/paymentInstruments#responses-200-id). If you want to make a transfer using a **virtual** **bankAccount**, you must specify the payment instrument ID of the **virtual** **bankAccount**. If you only specify a balance account ID, Adyen uses the default **physical** **bankAccount** payment instrument assigned to the balance account.
3335
*/
@@ -90,6 +92,12 @@ export class TransferInfo {
9092
"type": "string",
9193
"format": ""
9294
},
95+
{
96+
"name": "executionDate",
97+
"baseName": "executionDate",
98+
"type": "ExecutionDate",
99+
"format": ""
100+
},
93101
{
94102
"name": "paymentInstrumentId",
95103
"baseName": "paymentInstrumentId",

0 commit comments

Comments
 (0)