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