2021-08-12 03:44:15 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Teknik.Configuration
|
|
|
|
|
{
|
|
|
|
|
public class BillingConfig
|
|
|
|
|
{
|
2021-11-20 01:14:58 +01:00
|
|
|
|
public bool Enabled { get; set; }
|
2021-08-15 09:38:48 +02:00
|
|
|
|
public BillingType Type { get; set; }
|
2021-08-12 03:44:15 +02:00
|
|
|
|
public string StripePublishApiKey { get; set; }
|
|
|
|
|
public string StripeSecretApiKey { get; set; }
|
2021-11-16 05:17:42 +01:00
|
|
|
|
public string StripeCheckoutWebhookSecret { get; set; }
|
2021-11-20 01:14:58 +01:00
|
|
|
|
public string StripeSubscriptionWebhookSecret { get; set; }
|
2021-11-16 05:17:42 +01:00
|
|
|
|
public string StripeCustomerWebhookSecret { get; set; }
|
2021-08-12 03:44:15 +02:00
|
|
|
|
|
2021-08-15 09:38:48 +02:00
|
|
|
|
public string UploadProductId { get; set; }
|
|
|
|
|
public string EmailProductId { get; set; }
|
|
|
|
|
|
2021-08-12 03:44:15 +02:00
|
|
|
|
public BillingConfig()
|
|
|
|
|
{
|
2021-11-20 01:14:58 +01:00
|
|
|
|
Enabled = false;
|
2021-08-15 09:38:48 +02:00
|
|
|
|
Type = BillingType.Stripe;
|
2021-08-12 03:44:15 +02:00
|
|
|
|
StripePublishApiKey = null;
|
|
|
|
|
StripeSecretApiKey = null;
|
2021-11-16 05:17:42 +01:00
|
|
|
|
StripeCheckoutWebhookSecret = null;
|
2021-11-20 01:14:58 +01:00
|
|
|
|
StripeSubscriptionWebhookSecret = null;
|
2021-11-16 05:17:42 +01:00
|
|
|
|
StripeCustomerWebhookSecret = null;
|
2021-08-12 03:44:15 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|