@ -101,14 +101,14 @@ namespace JsonRx.ApiV3
[HttpGet]
[HttpGet]
//[ApplicationLevelAuthentication]
//[ApplicationLevelAuthentication]
[Route("mobile/{customer}/GetFieldsByProduct")]
[Route("mobile/{customer}/GetFieldsByProduct")]
public IHttpActionResult GetFieldsByProduct ( string customer , [ FromUri ] MappingType type , [ FromUri ] string receiverId = "" , [ FromUri ] string payoutPartner = "" , [ FromUri ] bool IsAccountValidation = false )
public IHttpActionResult GetFieldsByProduct ( string customer , [ FromUri ] MappingType type , [ FromUri ] string receiverId = "" , [ FromUri ] string payoutPartner = "" , [ FromUri ] bool IsAccountValidation = false , [ FromUri ] string country = "" )
{
{
var processid = Guid . NewGuid ( ) ;
var processid = Guid . NewGuid ( ) ;
LogicalThreadContext . Properties [ LoggerProperty . PROCESSID ] = processid ;
LogicalThreadContext . Properties [ LoggerProperty . PROCESSID ] = processid ;
LogicalThreadContext . Properties [ LoggerProperty . CREATEDBY ] = customer ;
LogicalThreadContext . Properties [ LoggerProperty . CREATEDBY ] = customer ;
LogicalThreadContext . Properties [ LoggerProperty . METHODNAME ] = "GetFieldsByProduct" ;
LogicalThreadContext . Properties [ LoggerProperty . METHODNAME ] = "GetFieldsByProduct" ;
Log . Debug ( "GetFieldsByProduct | REQUEST : Type: " + type + " Customer: " + customer + " MappingType: " + type + " receiverId: " + receiverId + " payoutPartner: " + payoutPartner + " IsAccountValidation: " + IsAccountValidation ) ;
Log . Debug ( "GetFieldsByProduct | REQUEST : Type: " + type + " Customer: " + customer + " MappingType: " + type + " receiverId: " + receiverId + " payoutPartner: " + payoutPartner + " country: " + country ) ;
JsonRxResponse res = new JsonRxResponse ( ) ;
JsonRxResponse res = new JsonRxResponse ( ) ;
int mappingTypeInt ;
int mappingTypeInt ;
@ -116,7 +116,7 @@ namespace JsonRx.ApiV3
if ( Enum . IsDefined ( typeof ( MappingType ) , type )
if ( Enum . IsDefined ( typeof ( MappingType ) , type )
| | Enum . IsDefined ( typeof ( MappingType ) , mappingTypeInt ) )
| | Enum . IsDefined ( typeof ( MappingType ) , mappingTypeInt ) )
{
{
res = _requestServices . GetFieldsByProduct ( type , customer , receiverId ) ;
res = _requestServices . GetFieldsByProduct ( type , customer , receiverId , country ) ;
if ( type = = Common . Model . Config . MappingType . REWARD_POINT )
if ( type = = Common . Model . Config . MappingType . REWARD_POINT )
{
{