mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
24 lines
543 B
C#
24 lines
543 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Teknik.Configuration;
|
|
|
|
namespace Teknik.BillingCore
|
|
{
|
|
public static class BillingFactory
|
|
{
|
|
public static BillingService GetStorageService(BillingConfig config)
|
|
{
|
|
switch (config.Type)
|
|
{
|
|
case BillingType.Stripe:
|
|
return new StripeService(config);
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|