Class FeeService
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
- Inheritance
-
Fee
Service
- Implements
- Inherited Members
Fields
MethodTypeAddressValidator
Field Value
MethodTypePayment
Field Value
MethodTypeShipment
Field Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
Delete(Fee)
Deletes a given fee.
Parameters
fee
FeeFee to delete.
DeleteByMethod(string, string)
Deletes all fees associated with a given method.
Parameters
method
stringMethod type, e.g "PAY" or "SHIP".
methodId
stringMethod identifier, e.g. "PAY1" or "SHIP1".
GetAllFees()
Get all fees
Returns
- IEnumerable<Fee>
All existing fees regardless of method.
GetFeeById(string)
Gets a fee by id.
Parameters
id
stringId of the fee.
Returns
GetFeesByMethod(string, string)
Gets all fees for a given method.
Parameters
method
stringMethod type, e.g "PAY" or "SHIP".
methodId
stringMethod identifier, e.g. "PAY1" or "SHIP1".
Returns
- IEnumerable<Fee>
All fees associated with the specified method.
GetFeesByMethodAndCountryRegion(string, string, string, string)
Gets all fees for a given method, country and region.
public IEnumerable<Fee> GetFeesByMethodAndCountryRegion(string method, string methodId, string countryCode, string regionCode)
Parameters
method
stringMethod type, e.g "PAY" or "SHIP".
methodId
stringMethod identifier, e.g. "PAY1" or "SHIP1".
countryCode
stringCountry code, e.g. "US".
regionCode
stringRegion code, e.g. "CA".
Returns
- IEnumerable<Fee>
ll fees associated with the specified method, country and region.
Save(Fee)
Saves a given fee.
Parameters
fee
FeeFee to save.