Class ReturnMerchandiseAuthorizationState
- Assembly
- Dynamicweb.Ecommerce.dll
The class ReturnMerchandiseAuthorizationState represent state for ReturnMerchandiseAuthorization.
public class ReturnMerchandiseAuthorizationState
- Inheritance
-
ReturnMerchandiseAuthorizationState
- Inherited Members
Constructors
ReturnMerchandiseAuthorizationState()
public ReturnMerchandiseAuthorizationState()
Properties
DefaultDescription
public string DefaultDescription { get; set; }
Property Value
DefaultName
public string DefaultName { get; set; }
Property Value
Description
Gets or sets the description.
[Obsolete("Use GetDescription and SetDescription instead.")]
public string Description { get; set; }
Property Value
- string
- The description.
Id
Gets the ID.
public int Id { get; }
Property Value
IsDefaultStateForNewRma
Gets or sets a value indicating whether the state is a the default state for new RMAs .
public bool IsDefaultStateForNewRma { get; set; }
Property Value
- bool
true
if the state is the default state; otherwise,false
.
IsNew
Gets a value indicating whether this instance is new.
public bool IsNew { get; }
Property Value
- bool
true
if this instance is new; otherwise,false
.
Language
Gets the Language.
If LanguageID is set and is an ID for a valid Language then this is returned; otherwise Default Language is used.
[Obsolete("Use translations instead.")]
public Language Language { get; }
Property Value
LanguageId
Gets or sets the language ID.
[Obsolete("Use Translations instead.")]
public string LanguageId { get; set; }
Property Value
Name
Gets or sets the name.
[Obsolete("Use GetName and SetName instead.")]
public string Name { get; set; }
Property Value
- string
- The name.
Translations
Gets the translations for the current entity
public TranslationCollection<ReturnMerchandiseAuthorizationStateTranslation> Translations { get; }
Property Value
Types
Gets a collection of the ReturnMerchandiseAuthorizationType objects that this ReturnMerchandiseAuthorizationState is associated with.
public ReturnMerchandiseAuthorizationTypeCollection Types { get; set; }
Property Value
Methods
ClearCache()
Clears the cache.
public static void ClearCache()
CreateTranslation(string)
Creates a new ReturnMerchandiseAuthorizationState with all the properties of this but with the given LanguageID.
[Obsolete("Use Translations instead")]
public ReturnMerchandiseAuthorizationState CreateTranslation(string languageID)
Parameters
languageID
string- The LanguageID.
Returns
Delete()
Deletes this instance.
[Obsolete("Use DeleteTranslation(string languageId) instead.")]
public void Delete()
DeleteAll()
Deletes all translations of this ReturnMerchandiseAuthorizationState.
public void DeleteAll()
DeleteTranslation(string)
public void DeleteTranslation(string languageId)
Parameters
languageId
string
GetAllStates()
Gets a ReturnMerchandiseAuthorizationStateCollection containing all ReturnMerchandiseAuthorizationState.
public static ReturnMerchandiseAuthorizationStateCollection GetAllStates()
Returns
GetAllStatesById(int)
Gets all translations of the ReturnMerchandiseAuthorizationState having the given ID.
[Obsolete("Use GetStateById(int stateId) instead.")]
public static ReturnMerchandiseAuthorizationStateCollection GetAllStatesById(int stateId)
Parameters
stateId
int- The ID.
Returns
GetAllStatesByLanguageId(string)
Gets all ReturnMerchandiseAuthorizationState object translations for the given LanguageID.
If a translation is missing for the given language, the Default Rma State is used.
[Obsolete("Use GetAllStates instead.")]
public static ReturnMerchandiseAuthorizationStateCollection GetAllStatesByLanguageId(string languageId)
Parameters
languageId
string- The LanguageID.
Returns
GetAllStatesByLanguageId(string, bool)
Gets all ReturnMerchandiseAuthorizationState object translations for the given LanguageID.
If a translation is missing for the given language and fallbackToDefault is set to
true
, the Default Rma State is used.[Obsolete("Use GetAllStates instead.")]
public static ReturnMerchandiseAuthorizationStateCollection GetAllStatesByLanguageId(string languageId, bool fallbackToDefault)
Parameters
languageId
string- The LanguageID.
fallbackToDefault
bool- If
true
the Default ReturnMerchandiseAuthorizationState is used if no translation was found; otherwise the state is skipped.
Returns
GetDefaultStateForNewRmaOrderLines()
Gets the default ReturnMerchandiseAuthorizationState for new ReturnMerchandiseAuthorization.
public static ReturnMerchandiseAuthorizationState GetDefaultStateForNewRmaOrderLines()
Returns
GetDescription(string)
public string GetDescription(string languageId)
Parameters
languageId
string
Returns
GetName(string)
public string GetName(string languageId)
Parameters
languageId
string
Returns
GetStateById(int)
public static ReturnMerchandiseAuthorizationState GetStateById(int stateId)
Parameters
stateId
int
Returns
GetStateById(int, string)
Gets the ReturnMerchandiseAuthorizationState by ID and LanguageID.
If no matching ReturnMerchandiseAuthorizationState exists, the Default ReturnMerchandiseAuthorizationState is used.
[Obsolete("Use GetStateById(int stateId) instead.")]
public static ReturnMerchandiseAuthorizationState GetStateById(int stateId, string languageId)
Parameters
Returns
Save()
Saves this instance.
public void Save()
SetDescription(string, string)
public void SetDescription(string languageId, string description)
Parameters
SetName(string, string)
public void SetName(string languageId, string name)
Parameters
UpdateDefaultValues(string, string)
Updates the default name and description, which are used when no translation is found.
[Obsolete("Not used anymore.")]
public void UpdateDefaultValues(string newName, string newDescription)