Module: Lvmama::Client::TicketProd

Included in:
Lvmama::Client
Defined in:
lib/lvmama-api/client/ticket_prod.rb

Constant Summary collapse

ENDPOINT =
"distributorApi/2.0/api/ticketProd/".freeze

Instance Method Summary collapse

Instance Method Details

#good_info_list(goods_ids, options = {}) ⇒ Object



32
33
34
35
36
# File 'lib/lvmama-api/client/ticket_prod.rb', line 32

def good_info_list goods_ids, options={}
  options[:goodsIds] = goods_ids
  response = post ENDPOINT + "goodInfoList", options
  response
end

#good_price_list(goods_ids, begin_date, end_date, options = {}) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/lvmama-api/client/ticket_prod.rb', line 38

def good_price_list goods_ids, begin_date, end_date, options={}
  options[:goodsIds] = goods_ids
  options[:beginDate] = begin_date
  options[:endDate] = end_date
  response = post ENDPOINT + "goodPriceList", options
  response
end

#product_info_list(product_ids, options = {}) ⇒ Object



26
27
28
29
30
# File 'lib/lvmama-api/client/ticket_prod.rb', line 26

def product_info_list product_ids, options={}
  options[:productIds] = product_ids
  response = post ENDPOINT + "productInfoList", options
  response
end

#product_info_list_by_page(current_page, options = {}) ⇒ Object



12
13
14
15
16
# File 'lib/lvmama-api/client/ticket_prod.rb', line 12

def product_info_list_by_page current_page, options={}
  options[:currentPage] = current_page
  response = post ENDPOINT + "productInfoListByPage", options
  response
end

#product_price_list_by_page(current_page, begin_date, end_date, options = {}) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/lvmama-api/client/ticket_prod.rb', line 18

def product_price_list_by_page current_page, begin_date, end_date, options={}
  options[:currentPage] = current_page
  options[:beginDate] = begin_date
  options[:endDate] = end_date
  response = post ENDPOINT + "productPriceListByPage", options
  response
end

#scenic_info_list_by_page(current_page, options = {}) ⇒ Object



6
7
8
9
10
# File 'lib/lvmama-api/client/ticket_prod.rb', line 6

def scenic_info_list_by_page current_page, options={}
  options[:currentPage] = current_page
  response = post ENDPOINT + "scenicInfoListByPage", options
  response
end