public static List <DunningAttempt> GetAutomaticDunningAttempts(string accountId, string storagePartition) { var dunningAttempts = new List <DunningAttempt>(); var dunningAttmptTableEntities = AutomaticDunningManager.GetDunningAttempts(accountId, storagePartition); if (dunningAttmptTableEntities != null) { foreach (var tableEntity in dunningAttmptTableEntities) { dunningAttempts.Add(Transformations.TransformAutomaticDunningAttemptsTableEntityToDunningAttempt(tableEntity)); } } return(dunningAttempts); }
public static bool ClearAutomaticDunningAttempt(string accountId, string storagePartition) { return(AutomaticDunningManager.ClearDunningAttempts(accountId, storagePartition)); }
public static bool StoreAutomaticDunningAttempt(string accountId, string storagePartition, string stripeChargeId, string chargeAmount, string stripeSubscriptionId, string stripeEventId, string failureMessage) { return(AutomaticDunningManager.StoreDunningAttempt(accountId, storagePartition, stripeChargeId, chargeAmount, stripeSubscriptionId, stripeEventId, failureMessage)); }
public static int GetAutomaticDunningAttemptCount(string accountId, string storagePartition) { return(AutomaticDunningManager.GetDunningAttemptsCount(accountId, storagePartition)); }