shopify_api 5.2.2 → 5.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e75163182c1fb7b35dd1812beb6a3a13da3d41ecb4f26c0af4677204442db127
|
4
|
+
data.tar.gz: 8ed57602229d2399ab17c5609941f6fe111cb5146282f76b518c42851edb0b95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acf3ef0aed4a68b6d339d8594d41f47c89b14322b557b5e4d7d0b90a1214f7f06f4fce3d7cc78e5d03ace2b01b747cef4572a427e933d504734e15e6f61ed7b4
|
7
|
+
data.tar.gz: 20ac9414d8d480332c07cd184b190cb67ca3ca1a27918c0091d356ee7c8f4d27946673335d3d7462f15c355e5fce0405059644975f42de735b447fc86f22bcee
|
data/CHANGELOG
CHANGED
@@ -15,31 +15,28 @@ module ShopifyAPI
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def successful_delivery(message_id:, delivery_timestamp:)
|
18
|
-
delivery_details = ShopifyAPI::Ping::
|
19
|
-
|
20
|
-
message_id: message_id,
|
21
|
-
delivery_confirmation_details: {
|
22
|
-
delivered: true,
|
23
|
-
confirmation_timestamp: delivery_timestamp,
|
24
|
-
}
|
18
|
+
delivery_details = ShopifyAPI::Ping::DeliveryConfirmationDetails.new(
|
19
|
+
delivery_attrs(message_id, delivery_timestamp).merge(delivered: true)
|
25
20
|
)
|
26
21
|
delivery_details.save
|
27
22
|
delivery_details
|
28
23
|
end
|
29
24
|
|
30
25
|
def failed_delivery(message_id:, delivery_timestamp:, details:)
|
31
|
-
delivery_details = ShopifyAPI::Ping::
|
32
|
-
|
33
|
-
message_id: message_id,
|
34
|
-
delivery_confirmation_details: {
|
35
|
-
delivered: false,
|
36
|
-
confirmation_timestamp: delivery_timestamp,
|
37
|
-
details: details,
|
38
|
-
}
|
26
|
+
delivery_details = ShopifyAPI::Ping::DeliveryConfirmationDetails.new(
|
27
|
+
delivery_attrs(message_id, delivery_timestamp).merge(delivered: false, details: details)
|
39
28
|
)
|
40
29
|
delivery_details.save
|
41
30
|
delivery_details
|
42
31
|
end
|
32
|
+
|
33
|
+
def delivery_attrs(message_id, delivery_timestamp)
|
34
|
+
{
|
35
|
+
conversation_id: id,
|
36
|
+
message_id: message_id,
|
37
|
+
confirmation_timestamp: delivery_timestamp,
|
38
|
+
}
|
39
|
+
end
|
43
40
|
end
|
44
41
|
end
|
45
42
|
end
|
data/lib/shopify_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|
@@ -250,7 +250,7 @@ files:
|
|
250
250
|
- lib/shopify_api/resources/payment_details.rb
|
251
251
|
- lib/shopify_api/resources/ping.rb
|
252
252
|
- lib/shopify_api/resources/ping/conversation.rb
|
253
|
-
- lib/shopify_api/resources/ping/
|
253
|
+
- lib/shopify_api/resources/ping/delivery_confirmation_details.rb
|
254
254
|
- lib/shopify_api/resources/ping/message.rb
|
255
255
|
- lib/shopify_api/resources/policy.rb
|
256
256
|
- lib/shopify_api/resources/price_rule.rb
|