public static Chargeback Advice(int?customerId, int?accountId, decimal?amount, string description, string tag, long?financialTransactionId, Connection connection = null, object userDefinedObjectForLogging = null) { var chargeback = new Chargeback(); chargeback.CustomerId = customerId; chargeback.AccountId = accountId; chargeback.Amount = amount; chargeback.Description = description; chargeback.FinancialTransactionId = financialTransactionId; chargeback.Tag = tag; return(chargeback.Advice(connection, userDefinedObjectForLogging)); }
public async static Task <Chargeback> AdviceAsync(CancellationToken cancellationToken, int?customerId, int?accountId, decimal?amount, string description, string tag, long?financialTransactionId, Connection connection = null, object userDefinedObjectForLogging = null) { var chargeback = new Chargeback(); chargeback.CustomerId = customerId; chargeback.AccountId = accountId; chargeback.Amount = amount; chargeback.Description = description; chargeback.FinancialTransactionId = financialTransactionId; chargeback.Tag = tag; return(await chargeback.AdviceAsync(cancellationToken, connection, userDefinedObjectForLogging)); }