Subversion Repositories SmartDukaan

Rev

Rev 19317 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

namespace java in.shop2020.model.v1.dtr
namespace py shop2020.thriftpy.model.v1.dtr

include "GenericService.thrift"

/**
        Objects
*/
struct LivePricing{
        1:i64 _id,
        2:double available_price,
        3:string marketPlaceUrl,
        4:i64 in_stock,
        5:i64 source_id,
        6:string source_product_name,
        7:string thumbnail,
        8:i64 cash_back_type,
        9:double cash_back,
        10:string coupon,
        11:i64 codAvailable,
        12:string tagline,
        13:string offer,
        14:double gross_price,
        15:double cheapestBulkPrice,
        16:i64 packQuantity,
        17:double netPriceAfterCashBack,
        18:i64 showNetPrice,
        19:i64 category_id,
        20:i64 subCategoryId
}

struct BulkItems{
        1:i64 item_id,
        2:bool showMrpFlag,
        3:string tagline,
        4:string offer,
        5:bool showNetPrice
        6:i64 category_id,
        7:i64 subCategoryId,
        8:double available_price,
        9:string brand,
        10:string identifier,
        11:string model_name,
        12:double mrp,
        13:string product_name,
        14:string source_product_name,
        15:i64 brand_id,
        16:i64 quantity ,
        17:i64 internalRank
}

service DtrService extends GenericService.GenericService{

list<LivePricing> getLatestPricing(1:i64 skuBundleId, 2:i64 source_id)

oneway void updateLatestPriceForItem(1:i64 id)

list<string> addItemsInBulk(1:list<BulkItems> bulkItemsList) 
        
}