-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #468 from sanctusmob/AddedCustomizationField
Added product customization field
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Xml.Serialization; | ||
|
||
namespace Bukimedia.PrestaSharp.Entities | ||
{ | ||
[XmlType(Namespace = "Bukimedia/PrestaSharp/Entities")] | ||
public class customization_field : PrestaShopEntity, IPrestaShopFactoryEntity | ||
{ | ||
public long? id { get; set; } | ||
|
||
/// <summary> | ||
/// Required: Yes | ||
/// Description: Product ID | ||
/// </summary> | ||
public long? id_product { get; set; } | ||
|
||
/// <summary> | ||
/// Required: Yes | ||
/// Description: | ||
/// For File Value 0 | ||
/// For Text Value 1 | ||
/// </summary> | ||
public int type { get; set; } | ||
|
||
/// <summary> | ||
/// Required: Yes | ||
/// It´s a logical bool. | ||
/// </summary | ||
public int required { get; set; } | ||
|
||
/// <summary> | ||
/// Required: No | ||
/// It´s a logical bool. | ||
/// </summary | ||
public int is_module { get; set; } | ||
|
||
/// <summary> | ||
/// Required: No | ||
/// It´s a logical bool. | ||
/// </summary | ||
public int is_deleted { get; set; } | ||
public List<PrestaSharp.Entities.AuxEntities.language> name { get; set; } | ||
|
||
public customization_field() | ||
{ | ||
this.name = new List<AuxEntities.language>(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Bukimedia.PrestaSharp.Entities; | ||
|
||
namespace Bukimedia.PrestaSharp.Factories | ||
{ | ||
public class ProductCustomizationFieldFactory : GenericFactory<customization_field> | ||
{ | ||
protected override string singularEntityName { get { return "customization_fields"; } } | ||
protected override string pluralEntityName { get { return "product_customization_fields"; } } | ||
|
||
public ProductCustomizationFieldFactory(string BaseUrl, string Account, string SecretKey) | ||
: base(BaseUrl, Account, SecretKey) | ||
{ | ||
} | ||
} | ||
} |