The next generation of the Teknik Services. Written in ASP.NET.
https://www.teknik.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
797 B
30 lines
797 B
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
using Teknik.Configuration; |
|
|
|
namespace Teknik.BillingCore |
|
{ |
|
public abstract class BillingService |
|
{ |
|
protected readonly BillingConfig Config; |
|
|
|
public BillingService(BillingConfig billingConfig) |
|
{ |
|
Config = billingConfig; |
|
} |
|
|
|
public abstract bool CreateCustomer(string email); |
|
public abstract Tuple<bool, string, string> CreateSubscription(string customerId, string priceId); |
|
|
|
public abstract bool EditSubscription(); |
|
|
|
public abstract Subscription GetSubscription(string subscriptionId); |
|
|
|
public abstract bool RemoveSubscription(); |
|
|
|
public abstract void SyncSubscriptions(); |
|
} |
|
}
|
|
|