adtraction-api 0.1.2 → 0.1.3

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: ccdc5f5c644b82a99b16cb8274474b49e46a4d8c608e6ab7fb96366336d74509
4
- data.tar.gz: a69e42f6d2652d002f3947ef8649174d501d2b4f9a3f65f67718a15927de1475
3
+ metadata.gz: ad6eed3ca49a9e0c7636fa655d76c54111202674aa3e2fb9ef8b392f858f9b62
4
+ data.tar.gz: ad03d0a8b424eafe0a4dcb79730996d4e27272ccac3a22f1b45e7d2492175ecb
5
5
  SHA512:
6
- metadata.gz: 3c996e20165389fe5070efd55b61dafdd91eaf9d6df90613bf03b3acf6ebf2c034879b35e8743a8d90454c5db2728d9a1d28a8e52fa9759adc406e4d8ad56295
7
- data.tar.gz: ab3a9e8cb4372c0eb3176ec8f21e573f62c5eafd3d038fcbd968c1944516a58f77b9c992e0df23ec6f3f17682807678957aedc795e1a5b2d2997843805b8b6d2
6
+ metadata.gz: 5a7dec7a12d4bc1cf9c9ee5fb941b0097a9405a7ab2ff48d6282e48b55ddefcbe3f9a4012c06b54ea171f0841bffc8c0a69e05cc87b466646218b49290f9fdb4
7
+ data.tar.gz: d51490f86ab3b1a54cbabb0fc7772a9ad656c4ca7c3efe92eea4eccda15d88bfa6b9357c43892da4c8f6e2ff832614bd42bb5eb47228b47ed677388a46eaf35f
@@ -3,7 +3,7 @@ module Adtraction
3
3
  module Constants
4
4
 
5
5
  TRANSACTION_TYPE_ENUM = {
6
- 2 => :unknown, # Some programs have this value
6
+ 2 => :unique_visitor,
7
7
  3 => :sale,
8
8
  4 => :lead,
9
9
  31 => :isale, #iSale (post impression Sale)
@@ -67,7 +67,7 @@ module Adtraction
67
67
  program.coupon_marketing = Adtraction::Api::Constants::COUPON_MARKETING_ENUM.fetch(item.fetch("couponMarketing"))
68
68
 
69
69
  program.compensations&.each do |compensation|
70
- enum = Adtraction::Api::Constants::TRANSACTION_TYPE_ENUM.fetch(compensation["transactionType"], nil)
70
+ enum = Adtraction::Api::Constants::TRANSACTION_TYPE_ENUM.fetch(compensation["transactionType"], :unknown)
71
71
  compensation["transactionType"] = enum unless enum.nil?
72
72
  end
73
73
 
@@ -1,5 +1,5 @@
1
1
  module Adtraction
2
2
  module Api
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adtraction-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Johnsson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-12 00:00:00.000000000 Z
11
+ date: 2019-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday