promoqui-api-sdk 1.7.0 → 1.7.1

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: 69a288eb474ffffa2f3c090c531566460a2b8bbe
4
- data.tar.gz: 915bf9865b14c0e36966af793926936a382f002d
3
+ metadata.gz: 4a29bac99f4e38940b9918ffc0cf9fd8a29751d6
4
+ data.tar.gz: 1d0370e4a62b34af110f1894e22bbcf515117801
5
5
  SHA512:
6
- metadata.gz: d4db35dd9c229b2e0abcb8e5164dabd539192f03f3587f5a942fbe4d14a4de72ae00195ce35c0a77357461edfa7015ea29efc0be75ff0936d393bd7fd2d40e4e
7
- data.tar.gz: f8ad4430a0c094d719bfc348cf8ed5bfe733856abc99c016b28e2fee9566cbb4402139441c0ea8088bfe62ce848490843762cdb657710dad4253176330f163f2
6
+ metadata.gz: 205ff39b557879d23eb0626519d223dbbbb76a5384a985522153084377fce67a8580c4d4e319529c981cf42033cd0cf96350aee4d7be2c9a0da70e97b06be0a1
7
+ data.tar.gz: c965fb69f346c26357aac2abe4e18945c63d5fbb5e750b8e8af98c6c8d5bcb6898872ad074aa147d8d577284a93b71e8c15f61a8e68535e0cc1570c03b76b845
@@ -1,6 +1,6 @@
1
1
  module PQSDK
2
2
  class Offer
3
- attr_accessor :title, :description, :price, :original_price, :discount, :start_date, :end_date, :image, :store_ids
3
+ attr_accessor :title, :description, :price, :original_price, :discount, :start_date, :end_date, :brand, :image, :store_ids
4
4
 
5
5
  def initialize(params = {})
6
6
  params.each do |key, val|
@@ -15,7 +15,7 @@ module PQSDK
15
15
  endpoint = "v1/offers"
16
16
 
17
17
  fields = {}
18
- [ :title, :description, :price, :original_price, :discount, :start_date, :end_date, :image ].each do |key|
18
+ [ :title, :description, :price, :original_price, :discount, :start_date, :end_date, :brand, :image ].each do |key|
19
19
  fields[key.to_s] = send(key) unless send(key).nil?
20
20
  end
21
21
  fields['store_ids'] = store_ids
@@ -40,6 +40,7 @@ module PQSDK
40
40
  discount: discount,
41
41
  start_date: start_date,
42
42
  end_date: end_date,
43
+ brand: brand,
43
44
  image: image,
44
45
  store_ids: store_ids
45
46
  }
@@ -1,3 +1,3 @@
1
1
  module PQSDK
2
- VERSION = '1.7.0'
2
+ VERSION = '1.7.1'
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.0
4
+ version: 1.7.1
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-10-13 00:00:00.000000000 Z
11
+ date: 2015-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json