| | | 1 | | namespace Services.StockSyncServices; |
| | | 2 | | |
| | | 3 | | public class GoogleSheetsStockSyncOptions |
| | | 4 | | { |
| | | 5 | | public string SpreadsheetId { get; set; } = string.Empty; |
| | | 6 | | public string? FirstSheetName { get; set; } |
| | | 7 | | public string ServiceAccountJson { get; set; } = string.Empty; |
| | | 8 | | public GoogleServiceAccountOptions ServiceAccount { get; set; } = new(); |
| | | 9 | | public string StartSyncCode { get; set; } = string.Empty; |
| | | 10 | | public string CronExpression { get; set; } = "*/5 * * * *"; |
| | | 11 | | } |
| | | 12 | | |
| | | 13 | | public class GoogleServiceAccountOptions |
| | | 14 | | { |
| | 9 | 15 | | public string Type { get; set; } = "service_account"; |
| | 9 | 16 | | public string ProjectId { get; set; } = string.Empty; |
| | 9 | 17 | | public string PrivateKeyId { get; set; } = string.Empty; |
| | 9 | 18 | | public string PrivateKey { get; set; } = string.Empty; |
| | 9 | 19 | | public string ClientEmail { get; set; } = string.Empty; |
| | 9 | 20 | | public string ClientId { get; set; } = string.Empty; |
| | 9 | 21 | | public string AuthUri { get; set; } = "https://accounts.google.com/o/oauth2/auth"; |
| | 9 | 22 | | public string TokenUri { get; set; } = "https://oauth2.googleapis.com/token"; |
| | 9 | 23 | | public string AuthProviderX509CertUrl { get; set; } = "https://www.googleapis.com/oauth2/v1/certs"; |
| | 9 | 24 | | public string ClientX509CertUrl { get; set; } = string.Empty; |
| | 9 | 25 | | public string UniverseDomain { get; set; } = "googleapis.com"; |
| | | 26 | | } |