peddler 2.0.4 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -18
  3. data/lib/mws/fulfillment_inbound_shipment/client.rb +18 -0
  4. data/lib/mws/fulfillment_outbound_shipment/client.rb +0 -11
  5. data/lib/mws/reports/parser.rb +35 -0
  6. data/lib/peddler/errors/builder.rb +2 -1
  7. data/lib/peddler/errors/class_generator.rb +1 -0
  8. data/lib/peddler/flat_file_parser.rb +1 -0
  9. data/lib/peddler/headers.rb +4 -0
  10. data/lib/peddler/marketplace.rb +1 -0
  11. data/lib/peddler/operation.rb +12 -2
  12. data/lib/peddler/version.rb +1 -1
  13. data/lib/peddler/xml_parser.rb +1 -0
  14. data/lib/peddler/xml_response_parser.rb +1 -1
  15. data/test/helper.rb +1 -0
  16. data/test/integration/test_feeds.rb +3 -3
  17. data/test/integration/test_fulfillment_inbound_shipment.rb +3 -3
  18. data/test/integration/test_fulfillment_inventory.rb +2 -2
  19. data/test/integration/test_fulfillment_outbound_shipment.rb +1 -1
  20. data/test/integration/test_merchant_fulfillment.rb +57 -1
  21. data/test/integration/test_multibyte_queries.rb +1 -1
  22. data/test/integration/test_mws_headers.rb +1 -1
  23. data/test/integration/test_off_amazon_payments.rb +1 -1
  24. data/test/integration/test_orders.rb +2 -2
  25. data/test/integration/test_products.rb +12 -12
  26. data/test/integration/test_recommendations.rb +2 -2
  27. data/test/integration/test_reports.rb +6 -6
  28. data/test/integration/test_sellers.rb +1 -1
  29. data/test/integration/test_subscriptions.rb +3 -3
  30. data/test/integration_helper.rb +9 -7
  31. data/test/unit/mws/test_feeds_client.rb +6 -6
  32. data/test/unit/mws/test_finances_client.rb +5 -5
  33. data/test/unit/mws/test_fulfillment_inbound_shipment_client.rb +40 -24
  34. data/test/unit/mws/test_fulfillment_inventory_client.rb +3 -3
  35. data/test/unit/mws/test_fulfillment_outbound_shipment_client.rb +11 -11
  36. data/test/unit/mws/test_merchant_fulfillment_client.rb +5 -5
  37. data/test/unit/mws/test_off_amazon_payments_client.rb +17 -17
  38. data/test/unit/mws/test_orders_client.rb +7 -7
  39. data/test/unit/mws/test_products_client.rb +15 -15
  40. data/test/unit/mws/test_recommendations_client.rb +4 -4
  41. data/test/unit/mws/test_reports_client.rb +14 -14
  42. data/test/unit/mws/test_sellers_client.rb +3 -3
  43. data/test/unit/mws/test_subscriptions_client.rb +11 -11
  44. data/test/unit/peddler/errors/test_builder.rb +4 -4
  45. data/test/unit/peddler/errors/test_class_generator.rb +1 -1
  46. data/test/unit/peddler/errors/test_error.rb +5 -5
  47. data/test/unit/peddler/errors/test_parser.rb +4 -4
  48. data/test/unit/peddler/test_client.rb +20 -20
  49. data/test/unit/peddler/test_flat_file_parser.rb +11 -11
  50. data/test/unit/peddler/test_headers.rb +1 -1
  51. data/test/unit/peddler/test_marketplace.rb +1 -1
  52. data/test/unit/peddler/test_operation.rb +18 -12
  53. data/test/unit/peddler/test_parser.rb +3 -3
  54. data/test/unit/peddler/test_structured_list.rb +5 -5
  55. data/test/unit/peddler/test_vcr_matcher.rb +4 -4
  56. data/test/unit/peddler/test_xml_parser.rb +3 -3
  57. data/test/unit/peddler/test_xml_response_parser.rb +4 -4
  58. data/test/unit/test_mws.rb +1 -1
  59. data/test/vcr_cassettes/FulfillmentInboundShipment.yml +36 -36
  60. data/test/vcr_cassettes/MerchantFulfillment.yml +309 -1
  61. metadata +3 -2
@@ -6,7 +6,7 @@ require 'mws/products'
6
6
  class TestMultibyteQueries < IntegrationTest
7
7
  use 'Products'
8
8
 
9
- def test_posts_multibyte_queries_properly
9
+ def test_posting_multibyte_queries_properly
10
10
  ret = clients.map do |client|
11
11
  res = client.list_matching_products(client.marketplace.id, 'félix guattari machinic eros')
12
12
  res.body.force_encoding 'UTF-8' if defined? Ox # Ox workaround
@@ -6,7 +6,7 @@ require 'mws/products'
6
6
  class TestMWSHeaders < IntegrationTest
7
7
  use 'Products'
8
8
 
9
- def test_parses_headers
9
+ def test_parsing_headers
10
10
  clients.each do |client|
11
11
  res = client.get_lowest_priced_offers_for_asin(client.marketplace.id,
12
12
  '1780935374', 'New')
@@ -4,7 +4,7 @@ require 'integration_helper'
4
4
  require 'mws/off_amazon_payments'
5
5
 
6
6
  class TestOffAmazonPayments < IntegrationTest
7
- def test_gets_service_status
7
+ def test_getting_service_status
8
8
  clients.each do |client|
9
9
  res = client.get_service_status
10
10
  refute_empty res.parse
@@ -4,7 +4,7 @@ require 'integration_helper'
4
4
  require 'mws/orders'
5
5
 
6
6
  class TestOrders < IntegrationTest
7
- def test_gets_orders
7
+ def test_getting_orders
8
8
  clients.each do |client|
9
9
  order_ids = client.list_orders(client.marketplace.id,
10
10
  created_after: Date.new(2015),
@@ -21,7 +21,7 @@ class TestOrders < IntegrationTest
21
21
  end
22
22
  end
23
23
 
24
- def test_gets_service_status
24
+ def test_getting_service_status
25
25
  clients.each do |client|
26
26
  res = client.get_service_status
27
27
  refute_empty res.parse
@@ -4,56 +4,56 @@ require 'integration_helper'
4
4
  require 'mws/products'
5
5
 
6
6
  class TestProducts < IntegrationTest
7
- def test_lists_matching_products
7
+ def test_listing_matching_products
8
8
  clients.each do |client|
9
9
  res = client.list_matching_products(client.marketplace.id, 'architecture')
10
10
  refute_empty res.parse
11
11
  end
12
12
  end
13
13
 
14
- def test_gets_matching_product
14
+ def test_getting_matching_product
15
15
  clients.each do |client|
16
16
  res = client.get_matching_product(client.marketplace.id, '1780935374')
17
17
  refute_empty res.parse
18
18
  end
19
19
  end
20
20
 
21
- def test_gets_matching_product_for_id
21
+ def test_getting_matching_product_for_id
22
22
  clients.each do |client|
23
23
  res = client.get_matching_product_for_id(client.marketplace.id, 'ISBN', '9781780935379')
24
24
  refute_empty res.parse
25
25
  end
26
26
  end
27
27
 
28
- def test_gets_competitive_pricing_for_asin
28
+ def test_getting_competitive_pricing_for_asin
29
29
  clients.each do |client|
30
30
  res = client.get_competitive_pricing_for_asin(client.marketplace.id, '1780935374')
31
31
  refute_empty res.parse
32
32
  end
33
33
  end
34
34
 
35
- def test_gets_lowest_offer_listings_for_asin
35
+ def test_getting_lowest_offer_listings_for_asin
36
36
  clients.each do |client|
37
37
  res = client.get_lowest_offer_listings_for_asin(client.marketplace.id, '1780935374')
38
38
  refute_empty res.parse
39
39
  end
40
40
  end
41
41
 
42
- def test_gets_lowest_priced_offers_for_asin
42
+ def test_getting_lowest_priced_offers_for_asin
43
43
  clients.each do |client|
44
44
  res = client.get_lowest_priced_offers_for_asin(client.marketplace.id, '1780935374', 'New')
45
45
  refute_empty res.parse
46
46
  end
47
47
  end
48
48
 
49
- def test_gets_product_categories_for_asin
49
+ def test_getting_product_categories_for_asin
50
50
  clients.each do |client|
51
51
  res = client.get_product_categories_for_asin(client.marketplace.id, '1780935374')
52
52
  refute_empty res.parse
53
53
  end
54
54
  end
55
55
 
56
- def test_gets_my_fees_estimate
56
+ def test_getting_my_fees_estimate
57
57
  clients.each do |client|
58
58
  res = client.get_my_fees_estimate(
59
59
  marketplace_id: client.marketplace.id,
@@ -72,7 +72,7 @@ class TestProducts < IntegrationTest
72
72
  end
73
73
  end
74
74
 
75
- def test_gets_service_status
75
+ def test_getting_service_status
76
76
  clients.each do |client|
77
77
  res = client.get_service_status
78
78
  refute_empty res.parse
@@ -83,12 +83,12 @@ class TestProducts < IntegrationTest
83
83
 
84
84
  CURRENCY_CODES = {
85
85
  'A2EUQ1WTGCTBG2' => 'CAD',
86
- 'AAHKV2X7AFYLW' => 'CNY',
86
+ 'AAHKV2X7AFYLW' => 'CNY',
87
87
  'A1F83G8C2ARO7P' => 'GBP',
88
- 'A21TJRUUN4KGV' => 'INR',
88
+ 'A21TJRUUN4KGV' => 'INR',
89
89
  'A1VC38T7YXB528' => 'JPY',
90
90
  'A1AM78C64UM0Y8' => 'MXN',
91
- 'ATVPDKIKX0DER' => 'USD'
91
+ 'ATVPDKIKX0DER' => 'USD'
92
92
  }.freeze
93
93
 
94
94
  def currency_code_for(marketplace_id)
@@ -4,14 +4,14 @@ require 'integration_helper'
4
4
  require 'mws/recommendations'
5
5
 
6
6
  class TestRecommendations < IntegrationTest
7
- def test_lists_recommendations
7
+ def test_listing_recommendations
8
8
  clients.each do |client|
9
9
  res = client.list_recommendations(client.marketplace.id)
10
10
  refute_empty res.parse
11
11
  end
12
12
  end
13
13
 
14
- def test_gets_service_status
14
+ def test_getting_service_status
15
15
  clients.each do |client|
16
16
  res = client.get_service_status
17
17
  refute_empty res.parse
@@ -4,42 +4,42 @@ require 'integration_helper'
4
4
  require 'mws/reports'
5
5
 
6
6
  class TestReports < IntegrationTest
7
- def test_gets_report_request_count
7
+ def test_getting_report_request_count
8
8
  clients.each do |client|
9
9
  res = client.get_report_request_count
10
10
  refute_empty res.parse
11
11
  end
12
12
  end
13
13
 
14
- def test_gets_report_request_list
14
+ def test_getting_report_request_list
15
15
  clients.each do |client|
16
16
  res = client.get_report_request_list
17
17
  refute_empty res.parse
18
18
  end
19
19
  end
20
20
 
21
- def test_gets_report_schedule_count
21
+ def test_getting_report_schedule_count
22
22
  clients.each do |client|
23
23
  res = client.get_report_schedule_count
24
24
  refute_empty res.parse
25
25
  end
26
26
  end
27
27
 
28
- def test_lists_report_schedules
28
+ def test_listing_report_schedules
29
29
  clients.each do |client|
30
30
  res = client.get_report_schedule_list
31
31
  refute_empty res.parse
32
32
  end
33
33
  end
34
34
 
35
- def test_gets_report_count
35
+ def test_getting_report_count
36
36
  clients.each do |client|
37
37
  res = client.get_report_count
38
38
  refute_empty res.parse
39
39
  end
40
40
  end
41
41
 
42
- def test_gets_report
42
+ def test_getting_report
43
43
  clients.each do |client|
44
44
  res = client.get_report_list(max_count: 1)
45
45
  id = res.parse['ReportInfo']['ReportId']
@@ -4,7 +4,7 @@ require 'integration_helper'
4
4
  require 'mws/sellers'
5
5
 
6
6
  class TestSellers < IntegrationTest
7
- def test_gets_service_status
7
+ def test_getting_service_status
8
8
  clients.each do |client|
9
9
  res = client.get_service_status
10
10
  refute_empty res.parse
@@ -4,21 +4,21 @@ require 'integration_helper'
4
4
  require 'mws/subscriptions'
5
5
 
6
6
  class TestSubscriptions < IntegrationTest
7
- def test_lists_registered_destinations
7
+ def test_listing_registered_destinations
8
8
  clients.each do |client|
9
9
  res = client.list_registered_destinations(client.marketplace.id)
10
10
  refute_empty res.parse
11
11
  end
12
12
  end
13
13
 
14
- def test_lists_subscriptions
14
+ def test_listing_subscriptions
15
15
  clients.each do |client|
16
16
  res = client.list_subscriptions(client.marketplace.id)
17
17
  refute_empty res.parse
18
18
  end
19
19
  end
20
20
 
21
- def test_gets_service_status
21
+ def test_getting_service_status
22
22
  clients.each do |client|
23
23
  res = client.get_service_status
24
24
  refute_empty res.parse
@@ -13,16 +13,17 @@ class IntegrationTest < MiniTest::Test
13
13
  end
14
14
 
15
15
  def clients
16
- @clients ||= build_clients
16
+ klass = MWS.const_get("#{current_endpoint}::Client")
17
+ ::Credentials.to_a.shuffle.each_with_object([]) do |credentials, memo|
18
+ client = klass.new(credentials)
19
+ country_code = client.marketplace.country_code
20
+ memo.define_singleton_method(country_code.downcase) { client }
21
+ memo << client
22
+ end
17
23
  end
18
24
 
19
25
  private
20
26
 
21
- def build_clients
22
- klass = MWS.const_get("#{current_endpoint}::Client")
23
- ::Credentials.map { |credentials| klass.new(credentials) }.shuffle
24
- end
25
-
26
27
  def current_endpoint
27
28
  @current_endpoint ||= name.sub('Test', '')
28
29
  end
@@ -38,7 +39,8 @@ end
38
39
  VCR.configure do |c|
39
40
  c.before_record do |interaction|
40
41
  %w[
41
- BuyerName BuyerEmail Name AddressLine1 PostalCode Phone Amount
42
+ BuyerName BuyerEmail Name AddressLine1 City StateOrProvinceCode PostalCode
43
+ Phone Amount AmazonOrderId SellerOrderId
42
44
  ].each do |key|
43
45
  interaction.response.body.gsub!(/<#{key}>[^<]+</, "<#{key}>FILTERED<")
44
46
  end
@@ -8,7 +8,7 @@ class TestMWSFeedsClient < MiniTest::Test
8
8
  @client = MWS::Feeds::Client.new(marketplace: 'GB')
9
9
  end
10
10
 
11
- def test_submits_feed
11
+ def test_submitting_feed
12
12
  operation = {
13
13
  'Action' => 'SubmitFeed',
14
14
  'FeedType' => 'type',
@@ -22,7 +22,7 @@ class TestMWSFeedsClient < MiniTest::Test
22
22
  assert_equal operation, @client.operation
23
23
  end
24
24
 
25
- def test_gets_feed_submission_list
25
+ def test_getting_feed_submission_list
26
26
  operation = {
27
27
  'Action' => 'GetFeedSubmissionList',
28
28
  'FeedSubmissionIdList.Id.1' => '1',
@@ -41,7 +41,7 @@ class TestMWSFeedsClient < MiniTest::Test
41
41
  assert_equal operation, @client.operation
42
42
  end
43
43
 
44
- def test_gets_feed_submission_list_by_next_token
44
+ def test_getting_feed_submission_list_by_next_token
45
45
  operation = {
46
46
  'Action' => 'GetFeedSubmissionListByNextToken',
47
47
  'NextToken' => '1'
@@ -54,7 +54,7 @@ class TestMWSFeedsClient < MiniTest::Test
54
54
  assert_equal operation, @client.operation
55
55
  end
56
56
 
57
- def test_gets_feed_submission_count
57
+ def test_getting_feed_submission_count
58
58
  operation = {
59
59
  'Action' => 'GetFeedSubmissionCount',
60
60
  'FeedTypeList.Type.1' => '1',
@@ -71,7 +71,7 @@ class TestMWSFeedsClient < MiniTest::Test
71
71
  assert_equal operation, @client.operation
72
72
  end
73
73
 
74
- def test_cancels_feed_submissions
74
+ def test_canceling_feed_submissions
75
75
  operation = {
76
76
  'Action' => 'CancelFeedSubmissions',
77
77
  'FeedTypeList.Type.1' => '1',
@@ -88,7 +88,7 @@ class TestMWSFeedsClient < MiniTest::Test
88
88
  assert_equal operation, @client.operation
89
89
  end
90
90
 
91
- def test_gets_feed_submission_result
91
+ def test_getting_feed_submission_result
92
92
  operation = {
93
93
  'Action' => 'GetFeedSubmissionResult',
94
94
  'FeedSubmissionId' => '1'
@@ -8,7 +8,7 @@ class TestMWSFinancesClient < MiniTest::Test
8
8
  @client = MWS::Finances::Client.new
9
9
  end
10
10
 
11
- def test_lists_financial_event_groups
11
+ def test_listing_financial_event_groups
12
12
  operation = {
13
13
  'Action' => 'ListFinancialEventGroups',
14
14
  'FinancialEventGroupStartedAfter' => '2015-01-01'
@@ -21,7 +21,7 @@ class TestMWSFinancesClient < MiniTest::Test
21
21
  assert_equal operation, @client.operation
22
22
  end
23
23
 
24
- def test_lists_financial_event_groups_by_next_token
24
+ def test_listing_financial_event_groups_by_next_token
25
25
  operation = {
26
26
  'Action' => 'ListFinancialEventGroupsByNextToken',
27
27
  'NextToken' => '1'
@@ -34,7 +34,7 @@ class TestMWSFinancesClient < MiniTest::Test
34
34
  assert_equal operation, @client.operation
35
35
  end
36
36
 
37
- def test_lists_financial_events
37
+ def test_listing_financial_events
38
38
  operation = {
39
39
  'Action' => 'ListFinancialEvents',
40
40
  'AmazonOrderId' => '123'
@@ -47,7 +47,7 @@ class TestMWSFinancesClient < MiniTest::Test
47
47
  assert_equal operation, @client.operation
48
48
  end
49
49
 
50
- def test_lists_financial_events_by_next_token
50
+ def test_listing_financial_events_by_next_token
51
51
  operation = {
52
52
  'Action' => 'ListFinancialEventsByNextToken',
53
53
  'NextToken' => '1'
@@ -60,7 +60,7 @@ class TestMWSFinancesClient < MiniTest::Test
60
60
  assert_equal operation, @client.operation
61
61
  end
62
62
 
63
- def test_gets_service_status
63
+ def test_getting_service_status
64
64
  operation = {
65
65
  'Action' => 'GetServiceStatus'
66
66
  }
@@ -8,7 +8,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
8
8
  @client = MWS::FulfillmentInboundShipment::Client.new
9
9
  end
10
10
 
11
- def test_gets_inbound_guidance_for_sku
11
+ def test_getting_inbound_guidance_for_sku
12
12
  operation = {
13
13
  'Action' => 'GetInboundGuidanceForSKU',
14
14
  'MarketplaceId' => 'ATVPDKIKX0DER',
@@ -22,7 +22,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
22
22
  assert_equal operation, @client.operation
23
23
  end
24
24
 
25
- def test_gets_inbound_guidance_for_asin
25
+ def test_getting_inbound_guidance_for_asin
26
26
  operation = {
27
27
  'Action' => 'GetInboundGuidanceForASIN',
28
28
  'MarketplaceId' => 'ATVPDKIKX0DER',
@@ -36,7 +36,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
36
36
  assert_equal operation, @client.operation
37
37
  end
38
38
 
39
- def test_creates_inbound_shipment_plan
39
+ def test_creating_inbound_shipment_plan
40
40
  operation = {
41
41
  'Action' => 'CreateInboundShipmentPlan',
42
42
  'LabelPrepPreference' => 'SELLER_LABEL',
@@ -87,7 +87,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
87
87
  assert_equal operation, @client.operation
88
88
  end
89
89
 
90
- def test_creates_inbound_shipment
90
+ def test_creating_inbound_shipment
91
91
  operation = {
92
92
  'Action' => 'CreateInboundShipment',
93
93
  'ShipmentId' => '1',
@@ -102,7 +102,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
102
102
  assert_equal operation, @client.operation
103
103
  end
104
104
 
105
- def test_updates_inbound_shipment
105
+ def test_updating_inbound_shipment
106
106
  operation = {
107
107
  'Action' => 'UpdateInboundShipment',
108
108
  'ShipmentId' => '1',
@@ -117,7 +117,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
117
117
  assert_equal operation, @client.operation
118
118
  end
119
119
 
120
- def test_gets_preorder_info
120
+ def test_getting_preorder_info
121
121
  operation = {
122
122
  'Action' => 'GetPreorderInfo',
123
123
  'ShipmentId' => '1'
@@ -130,7 +130,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
130
130
  assert_equal operation, @client.operation
131
131
  end
132
132
 
133
- def test_confirms_preorder
133
+ def test_confirming_preorder
134
134
  operation = {
135
135
  'Action' => 'ConfirmPreorder',
136
136
  'ShipmentId' => '1',
@@ -144,7 +144,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
144
144
  assert_equal operation, @client.operation
145
145
  end
146
146
 
147
- def test_gets_prep_instructions_for_sku
147
+ def test_getting_prep_instructions_for_sku
148
148
  operation = {
149
149
  'Action' => 'GetPrepInstructionsForSKU',
150
150
  'ShipToCountryCode' => 'US',
@@ -158,7 +158,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
158
158
  assert_equal operation, @client.operation
159
159
  end
160
160
 
161
- def test_gets_prep_instructions_for_asin
161
+ def test_getting_prep_instructions_for_asin
162
162
  operation = {
163
163
  'Action' => 'GetPrepInstructionsForASIN',
164
164
  'ShipToCountryCode' => 'US',
@@ -173,7 +173,23 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
173
173
  assert_equal operation, @client.operation
174
174
  end
175
175
 
176
- def test_puts_transport_content_with_package_list
176
+ def test_handling_bug_when_getting_prep_instructions_for_asin
177
+ first_run = true
178
+ callable = lambda {
179
+ if first_run
180
+ first_run = false
181
+ raise Peddler::Errors::Error, "Value null at 'asinList'"
182
+ end
183
+ }
184
+ @client.stub(:run, callable) do
185
+ @client.get_prep_instructions_for_asin('US', 'B00005N5PF')
186
+ end
187
+
188
+ refute @client.operation.key?('ASINList.Id.1')
189
+ assert @client.operation.key?('AsinList.Id.1')
190
+ end
191
+
192
+ def test_putting_transport_content_with_package_list
177
193
  transport_details = {
178
194
  parcel_data: {
179
195
  package_list: [
@@ -199,7 +215,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
199
215
  assert_equal operation, @client.operation
200
216
  end
201
217
 
202
- def test_puts_transport_content_with_pallet_list
218
+ def test_putting_transport_content_with_pallet_list
203
219
  transport_details = {
204
220
  parcel_data: {
205
221
  pallet_list: [
@@ -225,7 +241,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
225
241
  assert_equal operation, @client.operation
226
242
  end
227
243
 
228
- def test_estimates_transport_request
244
+ def test_estimating_transport_request
229
245
  operation = {
230
246
  'Action' => 'EstimateTransportRequest',
231
247
  'ShipmentId' => '1'
@@ -238,7 +254,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
238
254
  assert_equal operation, @client.operation
239
255
  end
240
256
 
241
- def test_gets_transport_request
257
+ def test_getting_transport_request
242
258
  operation = {
243
259
  'Action' => 'GetTransportContent',
244
260
  'ShipmentId' => '1'
@@ -251,7 +267,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
251
267
  assert_equal operation, @client.operation
252
268
  end
253
269
 
254
- def test_confirms_transport_request
270
+ def test_confirming_transport_request
255
271
  operation = {
256
272
  'Action' => 'ConfirmTransportRequest',
257
273
  'ShipmentId' => '1'
@@ -264,7 +280,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
264
280
  assert_equal operation, @client.operation
265
281
  end
266
282
 
267
- def test_voids_transport_request
283
+ def test_voiding_transport_request
268
284
  operation = {
269
285
  'Action' => 'VoidTransportRequest',
270
286
  'ShipmentId' => '1'
@@ -277,7 +293,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
277
293
  assert_equal operation, @client.operation
278
294
  end
279
295
 
280
- def test_gets_package_labels
296
+ def test_getting_package_labels
281
297
  operation = {
282
298
  'Action' => 'GetPackageLabels',
283
299
  'ShipmentId' => '1',
@@ -291,7 +307,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
291
307
  assert_equal operation, @client.operation
292
308
  end
293
309
 
294
- def test_gets_unique_package_labels
310
+ def test_getting_unique_package_labels
295
311
  operation = {
296
312
  'Action' => 'GetUniquePackageLabels',
297
313
  'ShipmentId' => 'FBAQFGQZ',
@@ -313,7 +329,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
313
329
  assert_equal operation, @client.operation
314
330
  end
315
331
 
316
- def test_gets_pallet_labels
332
+ def test_getting_pallet_labels
317
333
  operation = {
318
334
  'Action' => 'GetPalletLabels',
319
335
  'ShipmentId' => 'FBAQFGQZ',
@@ -328,7 +344,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
328
344
  assert_equal operation, @client.operation
329
345
  end
330
346
 
331
- def test_gets_bill_of_lading
347
+ def test_getting_bill_of_lading
332
348
  operation = {
333
349
  'Action' => 'GetBillOfLading',
334
350
  'ShipmentId' => '1'
@@ -341,7 +357,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
341
357
  assert_equal operation, @client.operation
342
358
  end
343
359
 
344
- def test_lists_inbound_shipments
360
+ def test_listing_inbound_shipments
345
361
  operation = {
346
362
  'Action' => 'ListInboundShipments',
347
363
  'ShipmentStatusList.member.1' => 'Foo',
@@ -358,7 +374,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
358
374
  assert_equal operation, @client.operation
359
375
  end
360
376
 
361
- def test_lists_inbound_shipments_by_next_token
377
+ def test_listing_inbound_shipments_by_next_token
362
378
  operation = {
363
379
  'Action' => 'ListInboundShipmentsByNextToken',
364
380
  'NextToken' => '1'
@@ -371,7 +387,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
371
387
  assert_equal operation, @client.operation
372
388
  end
373
389
 
374
- def test_lists_inbound_shipment_items
390
+ def test_listing_inbound_shipment_items
375
391
  operation = {
376
392
  'Action' => 'ListInboundShipmentItems'
377
393
  }
@@ -383,7 +399,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
383
399
  assert_equal operation, @client.operation
384
400
  end
385
401
 
386
- def test_lists_inbound_shipment_items_by_next_token
402
+ def test_listing_inbound_shipment_items_by_next_token
387
403
  operation = {
388
404
  'Action' => 'ListInboundShipmentItemsByNextToken',
389
405
  'NextToken' => '1'
@@ -396,7 +412,7 @@ class TestMWSFulfillmentInboundShipmentClient < MiniTest::Test
396
412
  assert_equal operation, @client.operation
397
413
  end
398
414
 
399
- def test_gets_service_status
415
+ def test_getting_service_status
400
416
  operation = {
401
417
  'Action' => 'GetServiceStatus'
402
418
  }