-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathsweepSchedule.ts
48 lines (42 loc) · 2.06 KB
/
sweepSchedule.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* The version of the OpenAPI document: v2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit this class manually.
*/
export class SweepSchedule {
/**
* A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: *****, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**.
*/
'cronExpression'?: string;
/**
* The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: execute the sweep instantly if the `triggerAmount` is reached.
*/
'type': SweepSchedule.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "cronExpression",
"baseName": "cronExpression",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "SweepSchedule.TypeEnum"
} ];
static getAttributeTypeMap() {
return SweepSchedule.attributeTypeMap;
}
}
export namespace SweepSchedule {
export enum TypeEnum {
Daily = 'daily',
Weekly = 'weekly',
Monthly = 'monthly',
Balance = 'balance',
Cron = 'cron'
}
}