active_fulfillment 2.1.8 → 2.1.9
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 908c6b7616644ccd234c5bcb5291ce17c71bacbc
|
4
|
+
data.tar.gz: a8e969ac0783a479a4001a90aee2655cea935bf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1fc6a0fa38da6054d7553ac8c6741ad8dba55f077b70c7f6662a5396b898955afa370b55341db68f692e455f930b0d3f5229d3ba17801b5eecf33ffcd2eb6dc
|
7
|
+
data.tar.gz: fa0eb29009332c2090a66fdad0c89dbc23df137ef03f88b033f8cd932b22ef3d7ea64d7ab3fd6d3b5108174e2efc7a2f1433b11562b313dd60b94e86d488278a
|
@@ -2,6 +2,8 @@ module ActiveMerchant
|
|
2
2
|
module Fulfillment
|
3
3
|
class ShopifyAPIService < Service
|
4
4
|
|
5
|
+
OrderIdCutoffDate = Date.iso8601("2015-03-01")
|
6
|
+
|
5
7
|
RESCUABLE_CONNECTION_ERRORS = [
|
6
8
|
Net::ReadTimeout,
|
7
9
|
Net::OpenTimeout,
|
@@ -47,8 +49,8 @@ module ActiveMerchant
|
|
47
49
|
end
|
48
50
|
end
|
49
51
|
|
50
|
-
def fetch_tracking_data(
|
51
|
-
options.merge!({:order_ids =>
|
52
|
+
def fetch_tracking_data(order_numbers, options = {})
|
53
|
+
options.merge!({:order_ids => order_numbers, :order_names => order_numbers})
|
52
54
|
response = send_app_request('fetch_tracking_numbers', options.delete(:headers), options)
|
53
55
|
if response
|
54
56
|
tracking_numbers = parse_response(response, 'TrackingNumbers', 'Order', 'ID', 'Tracking') { |o| o }
|
@@ -56,7 +58,7 @@ module ActiveMerchant
|
|
56
58
|
:tracking_companies => {},
|
57
59
|
:tracking_urls => {}})
|
58
60
|
else
|
59
|
-
Response.new(false, "Unable to fetch remote tracking numbers #{
|
61
|
+
Response.new(false, "Unable to fetch remote tracking numbers #{order_numbers.inspect}")
|
60
62
|
end
|
61
63
|
end
|
62
64
|
|
@@ -68,9 +68,13 @@ class ShopifyAPITest < Test::Unit::TestCase
|
|
68
68
|
service = build_service(format: 'xml')
|
69
69
|
xml = '<TrackingNumbers><Order><ID>123</ID><Tracking>abc</Tracking></Order><Order><ID>456</ID><Tracking>def</Tracking></Order></TrackingNumbers>'
|
70
70
|
expected = {'123' => 'abc', '456' => 'def'}
|
71
|
+
request_params = {order_ids: [1, 2, 4], order_names: [1, 2, 4]}
|
71
72
|
|
72
|
-
mock_app_request('fetch_tracking_numbers',
|
73
|
+
mock_app_request('fetch_tracking_numbers', request_params, xml)
|
73
74
|
assert_equal expected, service.fetch_tracking_data([1,2,4]).tracking_numbers
|
75
|
+
|
76
|
+
after_deprecation = Time.now.to_date >= ShopifyAPIService::OrderIdCutoffDate
|
77
|
+
flunk "The request params should no longer include 'order_ids'" if after_deprecation
|
74
78
|
end
|
75
79
|
|
76
80
|
def test_parse_stock_level_response_parses_json_with_root_correctly
|
metadata
CHANGED
@@ -1,37 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_fulfillment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Fauser
|
8
8
|
- James MacAulay
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
-
|
13
|
-
-----BEGIN CERTIFICATE-----
|
14
|
-
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MQ8wDQYDVQQDDAZhZG1p
|
15
|
-
bnMxFzAVBgoJkiaJk/IsZAEZFgdzaG9waWZ5MRMwEQYKCZImiZPyLGQBGRYDY29t
|
16
|
-
MB4XDTE0MDUxNTIwMzM0OF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-
fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
|
32
|
-
TConQSX2BnZdhIEYW+cKzEC/bLc=
|
33
|
-
-----END CERTIFICATE-----
|
34
|
-
date: 2014-09-03 00:00:00.000000000 Z
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
35
13
|
dependencies:
|
36
14
|
- !ruby/object:Gem::Dependency
|
37
15
|
name: activesupport
|
@@ -240,41 +218,41 @@ specification_version: 4
|
|
240
218
|
summary: Framework and tools for dealing with shipping, tracking and order fulfillment
|
241
219
|
services.
|
242
220
|
test_files:
|
243
|
-
- test/
|
244
|
-
- test/
|
245
|
-
- test/
|
246
|
-
- test/
|
247
|
-
- test/
|
248
|
-
- test/
|
249
|
-
- test/
|
250
|
-
- test/
|
251
|
-
- test/
|
252
|
-
- test/unit/services/amazon_mws_test.rb
|
253
|
-
- test/unit/base_test.rb
|
254
|
-
- test/fixtures/xml/webgistix/multiple_tracking_response.xml
|
255
|
-
- test/fixtures/xml/webgistix/tracking_response.xml
|
221
|
+
- test/fixtures/xml/amazon/inventory_get_response.xml
|
222
|
+
- test/fixtures/xml/amazon/inventory_list_response.xml
|
223
|
+
- test/fixtures/xml/amazon/inventory_list_response_with_next_1.xml
|
224
|
+
- test/fixtures/xml/amazon/inventory_list_response_with_next_2.xml
|
225
|
+
- test/fixtures/xml/amazon/tracking_response_1.xml
|
226
|
+
- test/fixtures/xml/amazon/tracking_response_2.xml
|
227
|
+
- test/fixtures/xml/amazon/tracking_response_error.xml
|
228
|
+
- test/fixtures/xml/amazon/tracking_response_not_found.xml
|
229
|
+
- test/fixtures/xml/amazon_mws/fulfillment_get_fulfillment_order.xml
|
256
230
|
- test/fixtures/xml/amazon_mws/fulfillment_get_fulfillment_order_2.xml
|
257
|
-
- test/fixtures/xml/amazon_mws/
|
258
|
-
- test/fixtures/xml/amazon_mws/inventory_list_inventory_supply_by_next_token.xml
|
259
|
-
- test/fixtures/xml/amazon_mws/inventory_list_inventory_supply.xml
|
231
|
+
- test/fixtures/xml/amazon_mws/fulfillment_get_fullfillment_order_with_multiple_tracking_numbers.xml
|
260
232
|
- test/fixtures/xml/amazon_mws/fulfillment_list_all_fulfillment_orders.xml
|
261
|
-
- test/fixtures/xml/amazon_mws/tracking_response_not_found.xml
|
262
|
-
- test/fixtures/xml/amazon_mws/fulfillment_get_fulfillment_order.xml
|
263
233
|
- test/fixtures/xml/amazon_mws/inventory_list_inventory_item_supply.xml
|
264
|
-
- test/fixtures/xml/amazon_mws/
|
234
|
+
- test/fixtures/xml/amazon_mws/inventory_list_inventory_supply.xml
|
235
|
+
- test/fixtures/xml/amazon_mws/inventory_list_inventory_supply_by_next_token.xml
|
236
|
+
- test/fixtures/xml/amazon_mws/tracking_response_error.xml
|
237
|
+
- test/fixtures/xml/amazon_mws/tracking_response_not_found.xml
|
238
|
+
- test/fixtures/xml/shipwire/fulfillment_failure_response.xml
|
239
|
+
- test/fixtures/xml/shipwire/invalid_login_response.xml
|
265
240
|
- test/fixtures/xml/shipwire/inventory_get_response.xml
|
266
|
-
- test/fixtures/xml/shipwire/successful_tracking_response.xml
|
267
241
|
- test/fixtures/xml/shipwire/successful_empty_tracking_response.xml
|
268
|
-
- test/fixtures/xml/shipwire/successful_tracking_response_with_tracking_urls.xml
|
269
242
|
- test/fixtures/xml/shipwire/successful_live_tracking_response.xml
|
270
|
-
- test/fixtures/xml/shipwire/
|
271
|
-
- test/fixtures/xml/shipwire/
|
272
|
-
- test/fixtures/xml/
|
273
|
-
- test/fixtures/xml/
|
274
|
-
- test/fixtures/xml/amazon/tracking_response_2.xml
|
275
|
-
- test/fixtures/xml/amazon/tracking_response_error.xml
|
276
|
-
- test/fixtures/xml/amazon/inventory_list_response.xml
|
277
|
-
- test/fixtures/xml/amazon/tracking_response_1.xml
|
278
|
-
- test/fixtures/xml/amazon/inventory_list_response_with_next_2.xml
|
279
|
-
- test/fixtures/xml/amazon/tracking_response_not_found.xml
|
243
|
+
- test/fixtures/xml/shipwire/successful_tracking_response.xml
|
244
|
+
- test/fixtures/xml/shipwire/successful_tracking_response_with_tracking_urls.xml
|
245
|
+
- test/fixtures/xml/webgistix/multiple_tracking_response.xml
|
246
|
+
- test/fixtures/xml/webgistix/tracking_response.xml
|
280
247
|
- test/fixtures.yml
|
248
|
+
- test/remote/amazon_mws_test.rb
|
249
|
+
- test/remote/amazon_test.rb
|
250
|
+
- test/remote/shipwire_test.rb
|
251
|
+
- test/remote/webgistix_test.rb
|
252
|
+
- test/test_helper.rb
|
253
|
+
- test/unit/base_test.rb
|
254
|
+
- test/unit/services/amazon_mws_test.rb
|
255
|
+
- test/unit/services/amazon_test.rb
|
256
|
+
- test/unit/services/shipwire_test.rb
|
257
|
+
- test/unit/services/shopify_api_test.rb
|
258
|
+
- test/unit/services/webgistix_test.rb
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
metadata.gz.sig
DELETED