-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathAppSettings.cs
More file actions
36 lines (33 loc) · 1.27 KB
/
AppSettings.cs
File metadata and controls
36 lines (33 loc) · 1.27 KB
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
using System;
namespace BookingSystem
{
public class AppSettings
{
public string ApplicationHostBaseUrl { get; set; }
public string OpenIdIssuerUrl { get; set; }
public FeatureSettings FeatureFlags { get; set; }
public PaymentSettings Payment { get; set; }
public int DataRefresherIntervalHours { get; set; } = 6;
}
/**
* Note feature defaults are set here, and are used for the .NET Framework reference implementation
*/
public class FeatureSettings
{
public bool EnableTokenAuth { get; set; } = true;
public bool SingleSeller { get; set; } = false;
public bool CustomBuiltSystem { get; set; } = false;
public bool PaymentReconciliationDetailValidation { get; set; } = true;
public bool OnlyFreeOpportunities { get; set; } = false;
public bool PrepaymentAlwaysRequired { get; set; } = false;
public bool FacilityUseHasSlots { get; set; } = false;
public bool IsLoremFitsumMode { get; set; } = false;
}
public class PaymentSettings
{
public bool TaxCalculationB2B { get; set; }
public bool TaxCalculationB2C { get; set; }
public string AccountId { get; set; }
public string PaymentProviderId { get; set; }
}
}