-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathProgram.cs
69 lines (57 loc) · 2.75 KB
/
Program.cs
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using CorePro.SDK.Models;
using CorePro.SDK.Utils;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace CorePro.SDK
{
public class Program : ModelBase
{
public Program()
: base()
{
ECodeProducts = new SortedDictionary<string, ProgramECode>();
CheckingProducts = new SortedDictionary<string, ProgramChecking>();
SavingsProducts = new SortedDictionary<string, ProgramSavings>();
PrepaidProducts = new SortedDictionary<string, ProgramPrepaid>();
}
public string Name { get; set; }
public string VerificationType { get; set; }
public string TimeZone { get; set; }
public ProgramLimit PerUserDailyWithdrawLimit { get; set; }
public ProgramLimit PerUserMonthlyWithdrawLimit { get; set; }
public ProgramLimit PerProgramDailyWithdrawLimit { get; set; }
public ProgramLimit PerUserDailyDepositLimit { get; set; }
public ProgramLimit PerUserMonthlyDepositLimit { get; set; }
public ProgramLimit PerProgramDailyDepositLimit { get; set; }
public string Website { get; set; }
public bool IsInternalToInternalTransferEnabled { get; set; }
public int DecimalCount { get; set; }
public List<string> ValidAccountTypes { get; set; }
public int PerUserExternalAccountCountMax { get; set; }
public int PerUserAccountCountMax { get; set; }
public decimal PerUserTotalAccountBalanceMax { get; set; }
public SortedDictionary<string, ProgramECode> ECodeProducts { get; set; }
public SortedDictionary<string, ProgramChecking> CheckingProducts { get; set; }
public SortedDictionary<string, ProgramSavings> SavingsProducts { get; set; }
public SortedDictionary<string, ProgramPrepaid> PrepaidProducts { get; set; }
public DateTimeOffset FilledDate { get; set; }
public Bank Bank { get; set; }
public static Program Get(Connection connection = null, object userDefinedObjectForLogging = null)
{
connection = connection ?? Connection.CreateFromConfig();
var rv = Requestor.Get<Program>("program/get", connection, userDefinedObjectForLogging);
return rv;
}
public async static Task<Program> GetAsync(CancellationToken cancellationToken, Connection connection = null, object userDefinedObjectForLogging = null)
{
connection = connection ?? Connection.CreateFromConfig();
var rv = await Requestor.GetAsync<Program>(cancellationToken, "program/get", connection, userDefinedObjectForLogging);
return rv.Data;
}
}
}