Class PaymentTransactionTypeManager
Inheritance
System.Object
PaymentTransactionTypeManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Orders.Managers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public static class PaymentTransactionTypeManager
Methods
GetAllRelatedPayments(Payment)
Gets all related payments. On Order.
Declaration
public static IEnumerable<Payment> GetAllRelatedPayments(Payment payment)
Parameters
Type | Name | Description |
---|---|---|
Payment | payment | The payment. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Payment> |
GetAvailablePaymentsByTransactionType(IEnumerable<Payment>, TransactionType)
Returns payments that can be used as base for creating a new payment for the specified transaction type.
Declaration
public static IEnumerable<Payment> GetAvailablePaymentsByTransactionType(IEnumerable<Payment> payments, TransactionType type)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Payment> | payments | The payments. |
TransactionType | type | The type. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Payment> |
GetPaymentTransactionType(Payment)
Gets the type of the payment transaction.
Declaration
public static TransactionType GetPaymentTransactionType(Payment payment)
Parameters
Type | Name | Description |
---|---|---|
Payment | payment | The payment. |
Returns
Type | Description |
---|---|
TransactionType |
GetResultingPaymentsByTransactionType(IEnumerable<Payment>, TransactionType)
Gets the type of the resulting payments by transaction.
Declaration
public static IEnumerable<Payment> GetResultingPaymentsByTransactionType(IEnumerable<Payment> payments, TransactionType type)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Payment> | payments | The payments. |
TransactionType | type | The type. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Payment> |
Remarks
This method and all related methods in this class has been copied over to Mediachase.Commerce.Workflow.Activities.OrderGroupActivityBase/> to allow customers to customize this method's behaviors. This method itself will be left here to be used by other parts of the Commerce solution until the appropriate time.
GetResultingPaymentsByTransactionTypes(IEnumerable<Payment>, IEnumerable<TransactionType>)
Gets the resulting payments by transaction types.
Declaration
public static IEnumerable<Payment> GetResultingPaymentsByTransactionTypes(IEnumerable<Payment> payments, IEnumerable<TransactionType> tranTypes)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<Payment> | payments | The payments. |
System.Collections.Generic.IEnumerable<TransactionType> | tranTypes | The tran types. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Payment> |