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
- #good_info_list(goods_ids, options = {}) ⇒ Object
- #good_price_list(goods_ids, begin_date, end_date, options = {}) ⇒ Object
- #product_info_list(product_ids, options = {}) ⇒ Object
- #product_info_list_by_page(current_page, options = {}) ⇒ Object
- #product_price_list_by_page(current_page, begin_date, end_date, options = {}) ⇒ Object
- #scenic_info_list_by_page(current_page, options = {}) ⇒ Object
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, ={} [:goodsIds] = goods_ids response = post ENDPOINT + "goodInfoList", 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, ={} [:goodsIds] = goods_ids [:beginDate] = begin_date [:endDate] = end_date response = post ENDPOINT + "goodPriceList", 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, ={} [:productIds] = product_ids response = post ENDPOINT + "productInfoList", 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, ={} [:currentPage] = current_page response = post ENDPOINT + "productInfoListByPage", 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, ={} [:currentPage] = current_page [:beginDate] = begin_date [:endDate] = end_date response = post ENDPOINT + "productPriceListByPage", 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, ={} [:currentPage] = current_page response = post ENDPOINT + "scenicInfoListByPage", response end |