soapy_cake 2.2.6 → 2.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 461859e423b3ccbde017b5d8e82e11eb8ec296efb027e433959b599e1d0bc7d5
4
- data.tar.gz: 490b1c070be1195cb83b711ce3b9509c26994310b6f8827f7b439542dbfbf08d
3
+ metadata.gz: dd16c8da8348a5df3c47886020f1193f106f316cfe258d46bfa3b2eaf9a3517c
4
+ data.tar.gz: adda4a48b4e65b76f6ffa4c33b310838e06b784cf3b7bbf967ce6f11bc9e61c2
5
5
  SHA512:
6
- metadata.gz: 379278cf411f584d3e5a86a6aef9bb33ac026b9b405d84d9e09a6d7e5e6eb7e29b7ceacfecefe6408a3b758103e8189af597d7e5cbb0b9f2a0a4e15a1c422d86
7
- data.tar.gz: 1dd33e5f76bae5a23a3a3cdbd7aa926eefb6ab91cc6a3a7bb5208a6daae8e006cebb1ced08be1cdd2004049b447fe2a41c7dfb0891bb9848b72384f89c2ba4f1
6
+ metadata.gz: d147c287a7cc8a4a0476d2c0414229f5e3ffde35b8c6e2aed3bab018323a2d18c4f983cb265cbe800a823d29d77f0c23bdbc5b6c2cf344082299bcd229566113
7
+ data.tar.gz: b496919bea856baa8b6ce2749a4c36b94542fabfcc77fc895f6b05f1d0bfd70b83c266ac56aa636965e338f09fe2994ab39ef86da2b3f7faed4796f706b16b15
data/Gemfile CHANGED
@@ -7,6 +7,6 @@ gemspec
7
7
  group :development, :test do
8
8
  gem 'codeclimate-test-reporter', require: false
9
9
  gem 'rspec_junit_formatter'
10
- gem 'rubocop-ci', git: 'https://github.com/ad2games/rubocop-ci'
10
+ gem 'rubocop-ci', git: 'https://github.com/ComboStrikeHQ/rubocop-ci'
11
11
  gem 'simplecov'
12
12
  end
data/api.yml CHANGED
@@ -102,6 +102,7 @@ versions:
102
102
  rejected_dispositions: 1
103
103
  update_conversion: 4
104
104
  update_conversion_disposition: 2
105
+ update_conversion_events: 6
105
106
  update_conversion_price: 2
106
107
  update_conversion_revenue: 1
107
108
  update_lead_price: 2
@@ -27,7 +27,7 @@ module SoapyCake
27
27
  def update_conversion(opts)
28
28
  require_params(opts, %i[offer_id payout])
29
29
 
30
- run Request.new(:admin, :track, :update_conversion, CONVERSION_DEFAULTS.merge(opts))
30
+ run Request.new(:admin, :track, :update_conversion_events, CONVERSION_DEFAULTS.merge(opts))
31
31
  end
32
32
 
33
33
  def decrypt_affiliate_link(opts = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SoapyCake
4
- VERSION = '2.2.6'
4
+ VERSION = '2.2.7'
5
5
  end
@@ -2,15 +2,15 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://cake-partner-domain.com/api/4/track.asmx
5
+ uri: https://cake-partner-domain.com/api/6/track.asmx
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: |
9
9
  <?xml version="1.0"?>
10
- <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/4/">
10
+ <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:cake="http://cakemarketing.com/api/6/">
11
11
  <env:Header/>
12
12
  <env:Body>
13
- <cake:UpdateConversion>
13
+ <cake:UpdateConversionEvents>
14
14
  <cake:api_key>cake-api-key</cake:api_key>
15
15
  <cake:add_to_existing_payout>false</cake:add_to_existing_payout>
16
16
  <cake:received_option>total_revenue</cake:received_option>
@@ -23,37 +23,51 @@ http_interactions:
23
23
  <cake:conversion_id>145211</cake:conversion_id>
24
24
  <cake:offer_id>5032</cake:offer_id>
25
25
  <cake:payout>0.75</cake:payout>
26
- </cake:UpdateConversion>
26
+ </cake:UpdateConversionEvents>
27
27
  </env:Body>
28
28
  </env:Envelope>
29
29
  headers:
30
30
  Content-Type:
31
31
  - application/soap+xml;charset=UTF-8
32
+ Accept-Encoding:
33
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
34
+ Accept:
35
+ - "*/*"
36
+ User-Agent:
37
+ - Ruby
32
38
  response:
33
39
  status:
34
40
  code: 200
35
41
  message: OK
36
42
  headers:
43
+ Access-Control-Allow-Credentials:
44
+ - 'true'
45
+ Access-Control-Allow-Headers:
46
+ - Origin, X-Requested-With, Content-Type, Accept
47
+ Access-Control-Allow-Methods:
48
+ - POST,GET,OPTIONS,PUT,DELETE
49
+ Access-Control-Max-Age:
50
+ - '1728000'
37
51
  Cache-Control:
38
52
  - private, max-age=0
53
+ Content-Length:
54
+ - '470'
39
55
  Content-Type:
40
56
  - application/soap+xml; charset=utf-8
41
- Server:
42
- - Microsoft-IIS/8.5
57
+ Date:
58
+ - Mon, 20 Jan 2020 14:34:11 GMT
43
59
  X-Aspnet-Version:
44
60
  - 4.0.30319
45
61
  X-Powered-By:
46
62
  - ASP.NET
47
- Date:
48
- - Mon, 12 Oct 2015 09:58:20 GMT
49
- Content-Length:
50
- - '446'
63
+ Connection:
64
+ - close
51
65
  body:
52
66
  encoding: UTF-8
53
67
  string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
54
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><UpdateConversionResponse
55
- xmlns="http://cakemarketing.com/api/4/"><UpdateConversionResult><success>true</success><message>Conversion
56
- Updated</message></UpdateConversionResult></UpdateConversionResponse></soap:Body></soap:Envelope>
68
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><UpdateConversionEventsResponse
69
+ xmlns="http://cakemarketing.com/api/6/"><UpdateConversionEventsResult><success>true</success><message>Conversion
70
+ Updated</message></UpdateConversionEventsResult></UpdateConversionEventsResponse></soap:Body></soap:Envelope>
57
71
  http_version:
58
- recorded_at: Mon, 12 Oct 2015 09:58:29 GMT
59
- recorded_with: VCR 2.9.3
72
+ recorded_at: Mon, 20 Jan 2020 14:34:12 GMT
73
+ recorded_with: VCR 4.0.0
@@ -15,7 +15,7 @@ RSpec.describe SoapyCake::AdminTrack do
15
15
 
16
16
  describe '#update_conversion' do
17
17
  let(:service) { :track }
18
- let(:cake_method) { :update_conversion }
18
+ let(:cake_method) { :update_conversion_events }
19
19
  let(:method) { :update_conversion }
20
20
  let(:cake_opts) { described_class::CONVERSION_DEFAULTS.merge(opts) }
21
21
  let(:opts) { { offer_id: 42, payout: 0 } }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soapy_cake
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-31 00:00:00.000000000 Z
11
+ date: 2020-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport