xsys 0.40.0 → 0.41.0

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
  SHA256:
3
- metadata.gz: c2f636d4ba20eef66fcc39190894c1032605a00f7dcc1e75f4c8d1f8038cbf29
4
- data.tar.gz: 171b8d0b9cd34dd17d759d1b302a21887fd9c83862c224ba85fc7540a7aac8c8
3
+ metadata.gz: 9daec97f2423ce56516b62b36d3cb954e6d1764ed44342d96b012990ac2da4cc
4
+ data.tar.gz: 95d23deb1e9dd6e6f07a0c327c8e17d4781cd4614c5346636493954c7ada0c39
5
5
  SHA512:
6
- metadata.gz: 6774aa4b09cd17ec14bf20578e859af1334ec6e40f9c30b4541030d38d89ac380ebce123648a8e043fac5d5a0b90fc24d0e115abe6e9400af60321449607fa38
7
- data.tar.gz: c7df2303c65696827aa0f6c2f3fc7c624789cea400e1419865811840a2644df87adde1669144978a3b9c06cdfa934af42714206bd325ca7035aaef5daf903eb0
6
+ metadata.gz: d28824fd0653a2850436afd12e7c9ef1d518fe6031c1b1f588978f3e23ce86b51a0bf82349c35fb8c956524cc880c5b4dcbaf7c756b8ec34abfca5731b9dea24
7
+ data.tar.gz: a517f8c6aa0a7b2fa61e49dd554f478c7c050f01e9cf67345d1e1942016cfe30d962365f6459d89a7983e793972ad4c613385a5b9c1b8e2ae2339359014a9283
data/CHANGELOG.md CHANGED
@@ -457,3 +457,7 @@
457
457
  ## v0.40.0
458
458
 
459
459
  * Fixed method to get cash register period
460
+
461
+ ## v0.41.0
462
+
463
+ * Added fields to products
@@ -9,16 +9,18 @@ module Xsys
9
9
  :price_update_time, :online_stock, :real_online_stock, :product_size_code, :weight,
10
10
  :length, :width, :height, :packages_quantity, :ean, :packages, :regular_price,
11
11
  :reduced_price, :credit_card_price, :brand, :model, :has_stock_on_hold,
12
- :availability_date, :stockable, :voice_description]
12
+ :availability_date, :stockable, :voice_description, :total_real_cost,
13
+ :real_cost_update_time, :real_cost_update_date]
13
14
  end
14
15
 
15
16
  attr_reader *attr_list
16
17
 
17
18
  def initialize(attributes={})
18
- time_fields = ['cost_update_time', 'last_cost_update_time', 'price_update_time']
19
- date_fields = ['cost_update_date', 'last_cost_update_date', 'price_update_date', 'availability_date']
20
- decimal_fields = ['vat_rate', 'taxed_cost', 'vat_cost', 'total_cost', 'last_total_cost',
21
- 'last_taxed_cost', 'regular_price', 'reduced_price', 'credit_card_price']
19
+ time_fields = ['cost_update_time', 'last_cost_update_time', 'price_update_time', 'real_cost_update_time']
20
+ date_fields = ['cost_update_date', 'last_cost_update_date', 'price_update_date',
21
+ 'real_cost_update_date', 'availability_date']
22
+ decimal_fields = ['vat_rate', 'taxed_cost', 'vat_cost', 'total_cost', 'last_total_cost', 'last_taxed_cost',
23
+ 'regular_price', 'reduced_price', 'credit_card_price', 'total_real_cost']
22
24
 
23
25
  attributes.each do |k, v|
24
26
  if k.to_s == 'category'
data/lib/xsys/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.40.0"
2
+ VERSION = "0.41.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.0
4
+ version: 0.41.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-04 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.7.3
113
+ rubygems_version: 2.7.6
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Get data from xsys api