promoqui-api-sdk 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a29bac99f4e38940b9918ffc0cf9fd8a29751d6
4
- data.tar.gz: 1d0370e4a62b34af110f1894e22bbcf515117801
3
+ metadata.gz: 6eb511fe3c5466fc74ac6593c88a39382d676b58
4
+ data.tar.gz: e784db97640b5916d2a265bded141d32f6293cff
5
5
  SHA512:
6
- metadata.gz: 205ff39b557879d23eb0626519d223dbbbb76a5384a985522153084377fce67a8580c4d4e319529c981cf42033cd0cf96350aee4d7be2c9a0da70e97b06be0a1
7
- data.tar.gz: c965fb69f346c26357aac2abe4e18945c63d5fbb5e750b8e8af98c6c8d5bcb6898872ad074aa147d8d577284a93b71e8c15f61a8e68535e0cc1570c03b76b845
6
+ metadata.gz: 0a1bdfd8384c55740569d5f0a3e0b06f7509bb4108fe22e35b82eb29b7f2fac55511448d1c04e19d792f7a7d4b140b321a472547cad5316e24fdf83e57fb9455
7
+ data.tar.gz: 6dfeee7c2ecc5bb796ea8fe8bf33577873767ada7f5d666a80296c45c2168cf3266cd0c3e1a3875e955f74410273f40271e07d776d7948aa631edb4c89b8a322
data/lib/pqsdk/offer.rb CHANGED
@@ -2,6 +2,9 @@ module PQSDK
2
2
  class Offer
3
3
  attr_accessor :title, :description, :price, :original_price, :discount, :start_date, :end_date, :brand, :image, :store_ids
4
4
 
5
+ attr_accessor :national, :partner_link
6
+ attr_accessor :btn_other_offers_visible, :btn_partner_link_text, :btn_partner_link_visible, :btn_print_visible, :btn_stores_visible, :btn_online_offers_visible
7
+
5
8
  def initialize(params = {})
6
9
  params.each do |key, val|
7
10
  send("#{key}=", val)
@@ -15,7 +18,9 @@ module PQSDK
15
18
  endpoint = "v1/offers"
16
19
 
17
20
  fields = {}
18
- [ :title, :description, :price, :original_price, :discount, :start_date, :end_date, :brand, :image ].each do |key|
21
+ [ :title, :description, :price, :original_price, :discount, :start_date, :end_date, :brand, :image,
22
+ :national, :partner_link
23
+ :btn_other_offers_visible, :btn_partner_link_text, :btn_partner_link_visible, :btn_print_visible, :btn_stores_visible, :btn_online_offers_visible ].each do |key|
19
24
  fields[key.to_s] = send(key) unless send(key).nil?
20
25
  end
21
26
  fields['store_ids'] = store_ids
data/lib/pqsdk/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module PQSDK
2
- VERSION = '1.7.1'
2
+ VERSION = '1.7.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promoqui-api-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Boffa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-11 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json