cordial 0.1.6 → 0.1.7
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 +4 -4
- data/lib/cordial/orders.rb +3 -3
- data/lib/cordial/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 173005820b79f9ce0a13a682ef3f18d1b1f741c5
|
4
|
+
data.tar.gz: df7a0d035bae3b43e2da586830dd0df8a587417b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8e0cb1a93f75cc315c8e3d2a841ac3080d6cfd7132eeecdf98943fc86d60259527d2c7933e69b0752a1aef06b83bde105f26e86c407d7fb7dfe4f7479ef1a1d
|
7
|
+
data.tar.gz: 3d8f8441b4096efab3cae880ae532ef2d004fa7b819ad17df8d7c58a16e7189f36666eefbdb25f8189fed823867eb29ded1faec8aaec15249174554c3acbc445
|
data/lib/cordial/orders.rb
CHANGED
@@ -54,7 +54,7 @@ module Cordial
|
|
54
54
|
#
|
55
55
|
# @example Response when orderID already exist on cordial.
|
56
56
|
# {"error"=>true, "messages"=>"ID must be unique"}
|
57
|
-
def self.create(id:, email:, purchase_date:, items:, link_id:
|
57
|
+
def self.create(id:, email:, purchase_date:, items:, link_id: nil, mc_id: nil)
|
58
58
|
body = {
|
59
59
|
orderID: id,
|
60
60
|
email: email,
|
@@ -62,8 +62,8 @@ module Cordial
|
|
62
62
|
items: items
|
63
63
|
}
|
64
64
|
|
65
|
-
body[:linkID] = link_id unless link_id.
|
66
|
-
body[:mcID] = mc_id unless mc_id.
|
65
|
+
body[:linkID] = link_id unless link_id.nil?
|
66
|
+
body[:mcID] = mc_id unless mc_id.nil?
|
67
67
|
|
68
68
|
client.post('/orders', body: body.to_json)
|
69
69
|
end
|
data/lib/cordial/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cordial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Hood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|