workarea-mail_chimp 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +15 -0
  3. data/.gitignore +55 -0
  4. data/.markdownlint.json +10 -0
  5. data/.rails-rubocop.yml +119 -0
  6. data/.rubocop.yml +8 -0
  7. data/.scss-lint.yml +188 -0
  8. data/CHANGELOG.md +244 -0
  9. data/Gemfile +9 -0
  10. data/README.md +115 -0
  11. data/Rakefile +53 -0
  12. data/app/assets/javascripts/workarea/storefront/mail_chimp/mail_chimp_tracking.js +15 -0
  13. data/app/controllers/workarea/storefront/application_controller.decorator +11 -0
  14. data/app/controllers/workarea/storefront/cart_items_controller.decorator +18 -0
  15. data/app/controllers/workarea/storefront/checkout/addresses_controller.decorator +13 -0
  16. data/app/controllers/workarea/storefront/checkout/shipping_controller.decorator +13 -0
  17. data/app/controllers/workarea/storefront/users/accounts_controller.decorator +37 -0
  18. data/app/models/workarea/catalog/product.decorator +7 -0
  19. data/app/models/workarea/mail_chimp/group.rb +39 -0
  20. data/app/models/workarea/mail_chimp/store.rb +26 -0
  21. data/app/models/workarea/order.decorator +9 -0
  22. data/app/models/workarea/user.decorator +31 -0
  23. data/app/services/workarea/mail_chimp/address.rb +28 -0
  24. data/app/services/workarea/mail_chimp/cart.rb +78 -0
  25. data/app/services/workarea/mail_chimp/order.rb +97 -0
  26. data/app/services/workarea/mail_chimp/product.rb +43 -0
  27. data/app/services/workarea/mail_chimp/variant.rb +43 -0
  28. data/app/view_models/workarea/storefront/user_view_model.decorator +16 -0
  29. data/app/views/workarea/storefront/mail_chimp/_ecommerce_javascript.html.haml +2 -0
  30. data/app/views/workarea/storefront/users/accounts/_edit.html.haml +12 -0
  31. data/app/views/workarea/storefront/users/accounts/_email_interests.html.haml +13 -0
  32. data/app/workers/workarea/mail_chimp/ecommerce/save_cart.rb +40 -0
  33. data/app/workers/workarea/mail_chimp/ecommerce/save_order.rb +31 -0
  34. data/app/workers/workarea/mail_chimp/ecommerce/save_product.rb +31 -0
  35. data/app/workers/workarea/mail_chimp/list_subscriber.rb +30 -0
  36. data/app/workers/workarea/mail_chimp/list_unsubscriber.rb +22 -0
  37. data/app/workers/workarea/mail_chimp/subscription_edit.rb +28 -0
  38. data/bin/rails +19 -0
  39. data/config/initializers/appends.rb +21 -0
  40. data/config/initializers/workarea.rb +14 -0
  41. data/config/locales/en.yml +15 -0
  42. data/lib/gibbon/request_decorator.rb +10 -0
  43. data/lib/integrations/workarea/mail_chimp/bogus_api_request.rb +30 -0
  44. data/lib/integrations/workarea/mail_chimp/bogus_gateway.rb +35 -0
  45. data/lib/integrations/workarea/mail_chimp/bogus_request.rb +78 -0
  46. data/lib/integrations/workarea/mail_chimp/gateway.rb +86 -0
  47. data/lib/integrations/workarea/mail_chimp/gateway/list.rb +47 -0
  48. data/lib/integrations/workarea/mail_chimp/gateway/members.rb +61 -0
  49. data/lib/integrations/workarea/mail_chimp/gateway/subscribe_argument_builder.rb +101 -0
  50. data/lib/tasks/mail_chimp.rake +71 -0
  51. data/lib/workarea/mail_chimp.rb +72 -0
  52. data/lib/workarea/mail_chimp/engine.rb +14 -0
  53. data/lib/workarea/mail_chimp/errors.rb +2 -0
  54. data/lib/workarea/mail_chimp/tasks/ecommerce.rb +43 -0
  55. data/lib/workarea/mail_chimp/version.rb +5 -0
  56. data/script/admin_ci +9 -0
  57. data/script/ci +11 -0
  58. data/script/core_ci +9 -0
  59. data/script/plugins_ci +9 -0
  60. data/script/storefront_ci +9 -0
  61. data/test/dummy/Rakefile +6 -0
  62. data/test/dummy/app/assets/config/manifest.js +4 -0
  63. data/test/dummy/app/assets/images/.keep +0 -0
  64. data/test/dummy/app/assets/javascripts/application.js +13 -0
  65. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  66. data/test/dummy/app/controllers/application_controller.rb +3 -0
  67. data/test/dummy/app/controllers/concerns/.keep +0 -0
  68. data/test/dummy/app/helpers/application_helper.rb +2 -0
  69. data/test/dummy/app/jobs/application_job.rb +2 -0
  70. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  71. data/test/dummy/app/models/concerns/.keep +0 -0
  72. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  73. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  74. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  75. data/test/dummy/bin/bundle +3 -0
  76. data/test/dummy/bin/rails +4 -0
  77. data/test/dummy/bin/rake +4 -0
  78. data/test/dummy/bin/setup +34 -0
  79. data/test/dummy/bin/update +29 -0
  80. data/test/dummy/config.ru +5 -0
  81. data/test/dummy/config/application.rb +23 -0
  82. data/test/dummy/config/boot.rb +5 -0
  83. data/test/dummy/config/cable.yml +9 -0
  84. data/test/dummy/config/environment.rb +5 -0
  85. data/test/dummy/config/environments/development.rb +56 -0
  86. data/test/dummy/config/environments/production.rb +86 -0
  87. data/test/dummy/config/environments/test.rb +43 -0
  88. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  89. data/test/dummy/config/initializers/assets.rb +11 -0
  90. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  91. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  92. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  93. data/test/dummy/config/initializers/inflections.rb +16 -0
  94. data/test/dummy/config/initializers/mime_types.rb +4 -0
  95. data/test/dummy/config/initializers/new_framework_defaults.rb +21 -0
  96. data/test/dummy/config/initializers/session_store.rb +3 -0
  97. data/test/dummy/config/initializers/workarea.rb +5 -0
  98. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  99. data/test/dummy/config/locales/en.yml +23 -0
  100. data/test/dummy/config/puma.rb +47 -0
  101. data/test/dummy/config/routes.rb +5 -0
  102. data/test/dummy/config/secrets.yml +22 -0
  103. data/test/dummy/config/spring.rb +6 -0
  104. data/test/dummy/db/seeds.rb +2 -0
  105. data/test/dummy/lib/assets/.keep +0 -0
  106. data/test/factories/mail_chimp.rb +50 -0
  107. data/test/integration/workarea/mailchimp/subscription_test.rb +52 -0
  108. data/test/integration/workarea/mailchimp/tracking_params_test.rb +50 -0
  109. data/test/integration/workarea/mailchimp/unsubscribe_test.rb +14 -0
  110. data/test/integration/workarea/storefront/mail_chimp_order_test.rb +106 -0
  111. data/test/integration/workarea/storefront/mail_chimp_product_test.rb +51 -0
  112. data/test/integration/workarea/storefront/mail_chimp_site_javascript_test.rb +25 -0
  113. data/test/lib/workarea/mailchimp/gateway/list_test.rb +48 -0
  114. data/test/lib/workarea/mailchimp/gateway_test.rb +196 -0
  115. data/test/lib/workarea/mailchimp/tasks/ecommerce_test.rb +40 -0
  116. data/test/services/workarea/mail_chimp/cart_test.rb +44 -0
  117. data/test/services/workarea/mail_chimp/order_test.rb +50 -0
  118. data/test/services/workarea/mail_chimp/product_test.rb +29 -0
  119. data/test/support/workarea/mail_chimp_api_config.rb +33 -0
  120. data/test/system/workarea/storefront/campaign_tracking_test.rb +14 -0
  121. data/test/system/workarea/storefront/group_test.rb +33 -0
  122. data/test/system/workarea/storefront/mail_chimp_accounts_system_test.rb +79 -0
  123. data/test/test_helper.rb +17 -0
  124. data/test/vcr_cassettes/get_default_list_interests.yml +104 -0
  125. data/test/vcr_cassettes/get_member_details_no_match.yml +51 -0
  126. data/test/vcr_cassettes/get_member_details_unsubscribed.yml +51 -0
  127. data/test/vcr_cassettes/interest_categories_read.yml +104 -0
  128. data/test/vcr_cassettes/mail_chimp/tasks/create_store-successful.yml +97 -0
  129. data/test/vcr_cassettes/mc_order_test.yml +381 -0
  130. data/test/vcr_cassettes/mc_product_test.yml +234 -0
  131. data/test/vcr_cassettes/subscribe_to_default_list.yml +254 -0
  132. data/test/vcr_cassettes/subscribe_to_default_list_interest_groups.yml +254 -0
  133. data/test/vcr_cassettes/subscribe_to_default_list_with_groupings.yml +254 -0
  134. data/test/vcr_cassettes/subscribe_to_default_list_with_user_details.yml +254 -0
  135. data/test/vcr_cassettes/unsubscribe_from_default_list.yml +53 -0
  136. data/test/vcr_cassettes/update_member_on_default_list_change_email.yml +254 -0
  137. data/test/vcr_cassettes/update_member_on_default_list_change_groupings.yml +254 -0
  138. data/test/workers/workarea/mail_chimp/ecommerce/save_cart_test.rb +28 -0
  139. data/test/workers/workarea/mail_chimp/ecommerce/save_order_test.rb +15 -0
  140. data/test/workers/workarea/mail_chimp/ecommerce/save_product_test.rb +15 -0
  141. data/workarea-mail_chimp.gemspec +20 -0
  142. metadata +212 -0
@@ -0,0 +1,97 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://us16.api.mailchimp.com/3.0/ecommerce/stores
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":"qa_dummy_store_9","list_id":"fcd2925136","name":"QA dummy store
9
+ 9","email_address":"jyucis@weblinc.com","domain":"https://plugins-qa.demo.workarea.com","currency_code":"USD"}'
10
+ headers:
11
+ User-Agent:
12
+ - Faraday v0.15.3
13
+ Authorization:
14
+ - Basic YQo=
15
+ Content-Type:
16
+ - application/json
17
+ Accept-Encoding:
18
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
19
+ Accept:
20
+ - "*/*"
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ Server:
27
+ - openresty
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ X-Request-Id:
31
+ - db2bd0e0-5a8c-4d15-baa9-b738b47e104d
32
+ Link:
33
+ - <https://us16.api.mailchimp.com/schema/3.0/Ecommerce/Stores/Instance.json>;
34
+ rel="describedBy"
35
+ Vary:
36
+ - Accept-Encoding
37
+ Date:
38
+ - Tue, 08 Jan 2019 23:51:27 GMT
39
+ Content-Length:
40
+ - '3165'
41
+ Connection:
42
+ - keep-alive
43
+ Set-Cookie:
44
+ - _AVESTA_ENVIRONMENT=prod; path=/
45
+ - _mcid=1.9d73500c45f102b9c461916b1af667c2; expires=Wed, 08-Jan-2020 23:51:26
46
+ GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"id":"qa_dummy_store_9","list_id":"fcd2925136","name":"QA dummy store
50
+ 9","platform":"","domain":"https://plugins-qa.demo.workarea.com","is_syncing":false,"email_address":"jyucis@weblinc.com","currency_code":"USD","money_format":"","primary_locale":"","timezone":"","phone":"","address":{"address1":"","address2":"","city":"","province":"","province_code":"","postal_code":"","country":"","country_code":"","longitude":0,"latitude":0},"connected_site":{"site_foreign_id":"qa_dummy_store_9","site_script":{"url":"https://chimpstatic.com/mcjs-connected/js/users/c40efe870eb1bc94745f06b1b/e89d077f314d14abffa7a031b.js","fragment":"<script
51
+ id=\"mcjs\">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,\"script\",\"https://chimpstatic.com/mcjs-connected/js/users/c40efe870eb1bc94745f06b1b/e89d077f314d14abffa7a031b.js\");</script>"}},"automations":{"abandoned_cart":{"is_supported":true},"abandoned_browse":{"is_supported":false}},"list_is_active":true,"created_at":"2019-01-08T23:51:26+00:00","updated_at":"2019-01-08T23:51:26+00:00","_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/qa_dummy_store_9","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/qa_dummy_store_9","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/qa_dummy_store_9","method":"DELETE"},{"rel":"customers","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/qa_dummy_store_9/customers","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/CollectionResponse.json"},{"rel":"products","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/qa_dummy_store_9/products","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/CollectionResponse.json"},{"rel":"promo-rules","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/qa_dummy_store_9/promo-rules","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Promorules/CollectionResponse.json"},{"rel":"orders","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/qa_dummy_store_9/orders","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/CollectionResponse.json"},{"rel":"carts","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/qa_dummy_store_9/carts","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Carts/CollectionResponse.json"}]}'
52
+ http_version:
53
+ recorded_at: Tue, 08 Jan 2019 23:51:27 GMT
54
+ - request:
55
+ method: post
56
+ uri: https://us16.api.mailchimp.com/3.0/connected-sites/qa_dummy_store_9/actions/verify-script-installation
57
+ body:
58
+ encoding: UTF-8
59
+ string: 'null'
60
+ headers:
61
+ User-Agent:
62
+ - Faraday v0.15.3
63
+ Authorization:
64
+ - Basic YQo=
65
+ Content-Type:
66
+ - application/json
67
+ Accept-Encoding:
68
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
69
+ Accept:
70
+ - "*/*"
71
+ response:
72
+ status:
73
+ code: 204
74
+ message: No Content
75
+ headers:
76
+ Server:
77
+ - openresty
78
+ Content-Type:
79
+ - application/json; charset=utf-8
80
+ Content-Length:
81
+ - '0'
82
+ X-Request-Id:
83
+ - e8896233-cd8e-4022-8b55-a1a6afe41bfc
84
+ Date:
85
+ - Tue, 08 Jan 2019 23:51:27 GMT
86
+ Connection:
87
+ - keep-alive
88
+ Set-Cookie:
89
+ - _AVESTA_ENVIRONMENT=prod; path=/
90
+ - _mcid=1.221566d4d36767f01c6594e04ca14ad7; expires=Wed, 08-Jan-2020 23:51:27
91
+ GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
92
+ body:
93
+ encoding: UTF-8
94
+ string: ''
95
+ http_version:
96
+ recorded_at: Tue, 08 Jan 2019 23:51:27 GMT
97
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,381 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://us16.api.mailchimp.com/3.0/ecommerce/stores
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":"test_store_1","list_id":"fcd2925136","name":"test_store_1","email_address":"jyucis@weblinc.com","currency_code":"USD"}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.15.4
12
+ Authorization:
13
+ - Basic YQo=
14
+ Content-Type:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - openresty
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ X-Request-Id:
30
+ - 7413dbee-d3df-4311-a323-fce42a3ce392
31
+ Link:
32
+ - <https://us16.api.mailchimp.com/schema/3.0/Ecommerce/Stores/Instance.json>;
33
+ rel="describedBy"
34
+ Vary:
35
+ - Accept-Encoding
36
+ Date:
37
+ - Tue, 07 May 2019 14:15:46 GMT
38
+ Content-Length:
39
+ - '3085'
40
+ Connection:
41
+ - keep-alive
42
+ Set-Cookie:
43
+ - _AVESTA_ENVIRONMENT=prod; path=/
44
+ - _mcid=1.008f1a6e0cc99955ebf6b91401903121; expires=Wed, 06-May-2020 14:15:46
45
+ GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
46
+ body:
47
+ encoding: UTF-8
48
+ string: '{"id":"test_store_1","list_id":"fcd2925136","name":"test_store_1","platform":"","domain":"","is_syncing":false,"email_address":"jyucis@weblinc.com","currency_code":"USD","money_format":"","primary_locale":"","timezone":"","phone":"","address":{"address1":"","address2":"","city":"","province":"","province_code":"","postal_code":"","country":"","country_code":"","longitude":0,"latitude":0},"connected_site":{"site_foreign_id":"test_store_1","site_script":{"url":"https://chimpstatic.com/mcjs-connected/js/users/c40efe870eb1bc94745f06b1b/732b42fdabdbf3525d6e9e71b.js","fragment":"<script
49
+ id=\"mcjs\">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,\"script\",\"https://chimpstatic.com/mcjs-connected/js/users/c40efe870eb1bc94745f06b1b/732b42fdabdbf3525d6e9e71b.js\");</script>"}},"automations":{"abandoned_cart":{"is_supported":true},"abandoned_browse":{"is_supported":false}},"list_is_active":true,"created_at":"2019-05-07T14:15:46+00:00","updated_at":"2019-05-07T14:15:46+00:00","_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1","method":"DELETE"},{"rel":"customers","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/CollectionResponse.json"},{"rel":"products","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/CollectionResponse.json"},{"rel":"promo-rules","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/promo-rules","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Promorules/CollectionResponse.json"},{"rel":"orders","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/CollectionResponse.json"},{"rel":"carts","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/carts","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Carts/CollectionResponse.json"}]}'
50
+ http_version:
51
+ recorded_at: Tue, 07 May 2019 14:15:46 GMT
52
+ - request:
53
+ method: post
54
+ uri: https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"id":"mc_p_12345","title":"MC Integration Product","handle":"mc-integration-product","url":"http://www.example.com/products/mc-integration-product","description":"","image_url":"www.example.com/product_images/placeholder/small_thumb.jpg?c=1557238540","variants":[{"id":"SKU1","title":"SKU1","sku":"SKU1","price":"5.0","inventory_quantity":2,"visibility":"true"},{"id":"SKU2","title":"SKU2","sku":"SKU2","price":"6.0","inventory_quantity":99999,"visibility":"true"}]}'
58
+ headers:
59
+ User-Agent:
60
+ - Faraday v0.15.4
61
+ Authorization:
62
+ - Basic YQo=
63
+ Content-Type:
64
+ - application/json
65
+ Accept-Encoding:
66
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
67
+ Accept:
68
+ - "*/*"
69
+ response:
70
+ status:
71
+ code: 200
72
+ message: OK
73
+ headers:
74
+ Server:
75
+ - openresty
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ X-Request-Id:
79
+ - 0d877cb2-eb9f-47b1-a01d-6f499c1a6627
80
+ Link:
81
+ - <https://us16.api.mailchimp.com/schema/3.0/Ecommerce/Stores/Products/Instance.json>;
82
+ rel="describedBy"
83
+ Vary:
84
+ - Accept-Encoding
85
+ Date:
86
+ - Tue, 07 May 2019 14:15:47 GMT
87
+ Content-Length:
88
+ - '4802'
89
+ Connection:
90
+ - keep-alive
91
+ Set-Cookie:
92
+ - _AVESTA_ENVIRONMENT=prod; path=/
93
+ - _mcid=1.5a54982f41e8c1f9a28b3670a33f601f; expires=Wed, 06-May-2020 14:15:47
94
+ GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
95
+ body:
96
+ encoding: UTF-8
97
+ string: '{"id":"mc_p_12345","title":"MC Integration Product","handle":"mc-integration-product","url":"http://www.example.com/products/mc-integration-product","description":"","type":"","vendor":"","image_url":"www.example.com/product_images/placeholder/small_thumb.jpg?c=1557238540","variants":[{"id":"SKU1","title":"SKU1","url":"","sku":"SKU1","price":5,"inventory_quantity":2,"image_url":"","backorders":"","visibility":"true","created_at":"2019-05-07T14:15:47+00:00","updated_at":"2019-05-07T14:15:47+00:00","_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345/variants/SKU1","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345/variants/SKU1","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/PATCH.json"},{"rel":"upsert","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345/variants/SKU1","method":"PUT","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/PUT.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345/variants/SKU1","method":"DELETE"}]},{"id":"SKU2","title":"SKU2","url":"","sku":"SKU2","price":6,"inventory_quantity":99999,"image_url":"","backorders":"","visibility":"true","created_at":"2019-05-07T14:15:47+00:00","updated_at":"2019-05-07T14:15:47+00:00","_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345/variants/SKU2","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345/variants/SKU2","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/PATCH.json"},{"rel":"upsert","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345/variants/SKU2","method":"PUT","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/PUT.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345/variants/SKU2","method":"DELETE"}]}],"images":[],"published_at_foreign":"","_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345","method":"DELETE"},{"rel":"variants","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345/variants","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Products/Variants/CollectionResponse.json"}]}'
98
+ http_version:
99
+ recorded_at: Tue, 07 May 2019 14:15:47 GMT
100
+ - request:
101
+ method: post
102
+ uri: https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders
103
+ body:
104
+ encoding: UTF-8
105
+ string: '{"id":"mc_1234","financial_status":"","fulfillment_status":"","currency_code":"USD","order_total":"11.00","tax_total":"0.00","shipping_total":"1.00","processed_at_foreign":"2019-05-07T14:15:51+00:00","shipping_address":{"name":"Ben
106
+ Crouse","address1":"22 S. 3rd St.","address2":"Second Floor","city":"Philadelphia","province":"PA","postal_code":"19106","country":"US","phone":"","company":""},"billing_address":{"name":"Ben
107
+ Crouse","address1":"22 S. 3rd St.","address2":"Second Floor","city":"Philadelphia","province":"PA","postal_code":"19106","country":"US","phone":"","company":""},"lines":[{"id":"5cd19313987b47e7991733e0","product_id":"mc_p_12345","product_variant_id":"SKU1","quantity":2,"price":"10.00"}],"customer":{"id":"082103c87993f6a0ac42d2b80a65e896","email_address":"bcrouse-new@workarea.com","opt_in_status":false,"orders_count":1,"total_spent":"11.00","first_name":"Ben","last_name":"Crouse"}}'
108
+ headers:
109
+ User-Agent:
110
+ - Faraday v0.15.4
111
+ Authorization:
112
+ - Basic YQo=
113
+ Content-Type:
114
+ - application/json
115
+ Accept-Encoding:
116
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
117
+ Accept:
118
+ - "*/*"
119
+ response:
120
+ status:
121
+ code: 200
122
+ message: OK
123
+ headers:
124
+ Server:
125
+ - openresty
126
+ Content-Type:
127
+ - application/json; charset=utf-8
128
+ X-Request-Id:
129
+ - 0c793d0c-2a12-4460-bdaa-9d5492b30f05
130
+ Link:
131
+ - <https://us16.api.mailchimp.com/schema/3.0/Ecommerce/Stores/Orders/Instance.json>;
132
+ rel="describedBy"
133
+ Vary:
134
+ - Accept-Encoding
135
+ Date:
136
+ - Tue, 07 May 2019 14:15:52 GMT
137
+ Content-Length:
138
+ - '4940'
139
+ Connection:
140
+ - keep-alive
141
+ Set-Cookie:
142
+ - _AVESTA_ENVIRONMENT=prod; path=/
143
+ - _mcid=1.7b9f49b1876ff88909378be424c20650; expires=Wed, 06-May-2020 14:15:51
144
+ GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
145
+ body:
146
+ encoding: UTF-8
147
+ string: '{"id":"mc_1234","customer":{"id":"082103c87993f6a0ac42d2b80a65e896","email_address":"bcrouse-new@workarea.com","opt_in_status":false,"company":"","first_name":"Ben","last_name":"Crouse","orders_count":1,"total_spent":11,"address":{"address1":"","address2":"","city":"","province":"","province_code":"","postal_code":"","country":"","country_code":""},"created_at":"2019-05-07T14:15:51+00:00","updated_at":"2019-05-07T14:15:51+00:00","_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers/082103c87993f6a0ac42d2b80a65e896","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers/082103c87993f6a0ac42d2b80a65e896","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/PATCH.json"},{"rel":"upsert","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers/082103c87993f6a0ac42d2b80a65e896","method":"PUT","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/PUT.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers/082103c87993f6a0ac42d2b80a65e896","method":"DELETE"}]},"store_id":"test_store_1","campaign_id":"","landing_site":"","financial_status":"","fulfillment_status":"","currency_code":"USD","order_total":11,"order_url":"","discount_total":0,"tax_total":0,"shipping_total":1,"tracking_code":"","processed_at_foreign":"2019-05-07T14:15:51+00:00","cancelled_at_foreign":"","updated_at_foreign":"","shipping_address":{"name":"Ben
148
+ Crouse","address1":"22 S. 3rd St.","address2":"Second Floor","city":"Philadelphia","province":"PA","province_code":"","postal_code":"19106","country":"US","country_code":"","longitude":0,"latitude":0,"phone":"","company":""},"billing_address":{"name":"Ben
149
+ Crouse","address1":"22 S. 3rd St.","address2":"Second Floor","city":"Philadelphia","province":"PA","province_code":"","postal_code":"19106","country":"US","country_code":"","longitude":0,"latitude":0,"phone":"","company":""},"lines":[{"id":"5cd19313987b47e7991733e0","product_id":"mc_p_12345","product_title":"MC
150
+ Integration Product","product_variant_id":"SKU1","product_variant_title":"SKU1","image_url":"www.example.com/product_images/placeholder/small_thumb.jpg?c=1557238540","quantity":2,"price":10,"discount":0,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234/lines/5cd19313987b47e7991733e0","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Lines/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Lines/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234/lines/5cd19313987b47e7991733e0","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Lines/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Lines/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234/lines/5cd19313987b47e7991733e0","method":"DELETE"}]}],"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234","method":"DELETE"}]}'
151
+ http_version:
152
+ recorded_at: Tue, 07 May 2019 14:15:52 GMT
153
+ - request:
154
+ method: delete
155
+ uri: https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/carts/mc_1234
156
+ body:
157
+ encoding: US-ASCII
158
+ string: ''
159
+ headers:
160
+ User-Agent:
161
+ - Faraday v0.15.4
162
+ Authorization:
163
+ - Basic YQo=
164
+ Content-Type:
165
+ - application/json
166
+ Accept-Encoding:
167
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
168
+ Accept:
169
+ - "*/*"
170
+ response:
171
+ status:
172
+ code: 404
173
+ message: Not Found
174
+ headers:
175
+ Server:
176
+ - openresty
177
+ Content-Type:
178
+ - application/problem+json; charset=utf-8
179
+ X-Request-Id:
180
+ - 419e495e-3be5-45aa-8a6a-952116f288ed
181
+ Link:
182
+ - <https://us16.api.mailchimp.com/schema/3.0/ProblemDetailDocument.json>; rel="describedBy"
183
+ Vary:
184
+ - Accept-Encoding
185
+ Date:
186
+ - Tue, 07 May 2019 14:15:52 GMT
187
+ Content-Length:
188
+ - '234'
189
+ Connection:
190
+ - keep-alive
191
+ Set-Cookie:
192
+ - _AVESTA_ENVIRONMENT=prod; path=/
193
+ - _mcid=1.0c4e9f37daefe0460c02adc20d575a85; expires=Wed, 06-May-2020 14:15:52
194
+ GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
195
+ body:
196
+ encoding: UTF-8
197
+ string: '{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Resource
198
+ Not Found","status":404,"detail":"The requested resource could not be found.","instance":"419e495e-3be5-45aa-8a6a-952116f288ed"}'
199
+ http_version:
200
+ recorded_at: Tue, 07 May 2019 14:15:52 GMT
201
+ - request:
202
+ method: get
203
+ uri: https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234
204
+ body:
205
+ encoding: US-ASCII
206
+ string: ''
207
+ headers:
208
+ User-Agent:
209
+ - Faraday v0.15.4
210
+ Authorization:
211
+ - Basic YQo=
212
+ Content-Type:
213
+ - application/json
214
+ Accept-Encoding:
215
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
216
+ Accept:
217
+ - "*/*"
218
+ response:
219
+ status:
220
+ code: 200
221
+ message: OK
222
+ headers:
223
+ Server:
224
+ - openresty
225
+ Content-Type:
226
+ - application/json; charset=utf-8
227
+ X-Request-Id:
228
+ - acd7f51d-3327-4e56-ad4c-bedbf95313c5
229
+ Link:
230
+ - <https://us16.api.mailchimp.com/schema/3.0/Ecommerce/Stores/Orders/Instance.json>;
231
+ rel="describedBy"
232
+ Vary:
233
+ - Accept-Encoding
234
+ Date:
235
+ - Tue, 07 May 2019 14:15:52 GMT
236
+ Content-Length:
237
+ - '4940'
238
+ Connection:
239
+ - keep-alive
240
+ Set-Cookie:
241
+ - _AVESTA_ENVIRONMENT=prod; path=/
242
+ - _mcid=1.14537d5b0341a2c29b02bb830d3890de; expires=Wed, 06-May-2020 14:15:52
243
+ GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
244
+ body:
245
+ encoding: UTF-8
246
+ string: '{"id":"mc_1234","customer":{"id":"082103c87993f6a0ac42d2b80a65e896","email_address":"bcrouse-new@workarea.com","opt_in_status":false,"company":"","first_name":"Ben","last_name":"Crouse","orders_count":1,"total_spent":11,"address":{"address1":"","address2":"","city":"","province":"","province_code":"","postal_code":"","country":"","country_code":""},"created_at":"2019-05-07T14:15:51+00:00","updated_at":"2019-05-07T14:15:51+00:00","_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers/082103c87993f6a0ac42d2b80a65e896","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers/082103c87993f6a0ac42d2b80a65e896","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/PATCH.json"},{"rel":"upsert","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers/082103c87993f6a0ac42d2b80a65e896","method":"PUT","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Customers/PUT.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/customers/082103c87993f6a0ac42d2b80a65e896","method":"DELETE"}]},"store_id":"test_store_1","campaign_id":"","landing_site":"","financial_status":"","fulfillment_status":"","currency_code":"USD","order_total":11,"order_url":"","discount_total":0,"tax_total":0,"shipping_total":1,"tracking_code":"","processed_at_foreign":"2019-05-07T14:15:51+00:00","cancelled_at_foreign":"","updated_at_foreign":"","shipping_address":{"name":"Ben
247
+ Crouse","address1":"22 S. 3rd St.","address2":"Second Floor","city":"Philadelphia","province":"PA","province_code":"","postal_code":"19106","country":"US","country_code":"","longitude":0,"latitude":0,"phone":"","company":""},"billing_address":{"name":"Ben
248
+ Crouse","address1":"22 S. 3rd St.","address2":"Second Floor","city":"Philadelphia","province":"PA","province_code":"","postal_code":"19106","country":"US","country_code":"","longitude":0,"latitude":0,"phone":"","company":""},"lines":[{"id":"5cd19313987b47e7991733e0","product_id":"mc_p_12345","product_title":"MC
249
+ Integration Product","product_variant_id":"SKU1","product_variant_title":"SKU1","image_url":"www.example.com/product_images/placeholder/small_thumb.jpg?c=1557238540","quantity":2,"price":10,"discount":0,"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234/lines/5cd19313987b47e7991733e0","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Lines/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Lines/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234/lines/5cd19313987b47e7991733e0","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Lines/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Lines/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234/lines/5cd19313987b47e7991733e0","method":"DELETE"}]}],"_links":[{"rel":"self","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Response.json"},{"rel":"parent","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders","method":"GET","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/CollectionResponse.json"},{"rel":"update","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234","method":"PATCH","targetSchema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/Response.json","schema":"https://us16.api.mailchimp.com/schema/3.0/Definitions/Ecommerce/Stores/Orders/PATCH.json"},{"rel":"delete","href":"https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234","method":"DELETE"}]}'
250
+ http_version:
251
+ recorded_at: Tue, 07 May 2019 14:15:52 GMT
252
+ - request:
253
+ method: delete
254
+ uri: https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/products/mc_p_12345
255
+ body:
256
+ encoding: US-ASCII
257
+ string: ''
258
+ headers:
259
+ User-Agent:
260
+ - Faraday v0.15.4
261
+ Authorization:
262
+ - Basic YQo=
263
+ Content-Type:
264
+ - application/json
265
+ Accept-Encoding:
266
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
267
+ Accept:
268
+ - "*/*"
269
+ response:
270
+ status:
271
+ code: 204
272
+ message: No Content
273
+ headers:
274
+ Server:
275
+ - openresty
276
+ Content-Type:
277
+ - application/json; charset=utf-8
278
+ Content-Length:
279
+ - '0'
280
+ X-Request-Id:
281
+ - 557dda83-1e81-487b-aa09-2c3a76464b90
282
+ Date:
283
+ - Tue, 07 May 2019 14:15:53 GMT
284
+ Connection:
285
+ - keep-alive
286
+ Set-Cookie:
287
+ - _AVESTA_ENVIRONMENT=prod; path=/
288
+ - _mcid=1.417de95ba6b05340bce914c38978b12b; expires=Wed, 06-May-2020 14:15:53
289
+ GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
290
+ body:
291
+ encoding: UTF-8
292
+ string: ''
293
+ http_version:
294
+ recorded_at: Tue, 07 May 2019 14:15:53 GMT
295
+ - request:
296
+ method: delete
297
+ uri: https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1/orders/mc_1234
298
+ body:
299
+ encoding: US-ASCII
300
+ string: ''
301
+ headers:
302
+ User-Agent:
303
+ - Faraday v0.15.4
304
+ Authorization:
305
+ - Basic YQo=
306
+ Content-Type:
307
+ - application/json
308
+ Accept-Encoding:
309
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
310
+ Accept:
311
+ - "*/*"
312
+ response:
313
+ status:
314
+ code: 204
315
+ message: No Content
316
+ headers:
317
+ Server:
318
+ - openresty
319
+ Content-Type:
320
+ - application/json; charset=utf-8
321
+ Content-Length:
322
+ - '0'
323
+ X-Request-Id:
324
+ - d79fc836-1e5d-49f6-823a-e61ef1b7ae89
325
+ Date:
326
+ - Tue, 07 May 2019 14:15:53 GMT
327
+ Connection:
328
+ - keep-alive
329
+ Set-Cookie:
330
+ - _AVESTA_ENVIRONMENT=prod; path=/
331
+ - _mcid=1.854b9bf46745b026256a093d6c258b65; expires=Wed, 06-May-2020 14:15:53
332
+ GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
333
+ body:
334
+ encoding: UTF-8
335
+ string: ''
336
+ http_version:
337
+ recorded_at: Tue, 07 May 2019 14:15:53 GMT
338
+ - request:
339
+ method: delete
340
+ uri: https://us16.api.mailchimp.com/3.0/ecommerce/stores/test_store_1
341
+ body:
342
+ encoding: US-ASCII
343
+ string: ''
344
+ headers:
345
+ User-Agent:
346
+ - Faraday v0.15.4
347
+ Authorization:
348
+ - Basic YQo=
349
+ Content-Type:
350
+ - application/json
351
+ Accept-Encoding:
352
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
353
+ Accept:
354
+ - "*/*"
355
+ response:
356
+ status:
357
+ code: 204
358
+ message: No Content
359
+ headers:
360
+ Server:
361
+ - openresty
362
+ Content-Type:
363
+ - application/json; charset=utf-8
364
+ Content-Length:
365
+ - '0'
366
+ X-Request-Id:
367
+ - 2d344326-eb8b-4414-8536-f45ffa8d5e65
368
+ Date:
369
+ - Tue, 07 May 2019 14:15:53 GMT
370
+ Connection:
371
+ - keep-alive
372
+ Set-Cookie:
373
+ - _AVESTA_ENVIRONMENT=prod; path=/
374
+ - _mcid=1.effc26b563f8e34d82669d0ac62b2810; expires=Wed, 06-May-2020 14:15:53
375
+ GMT; Max-Age=31536000; path=/; domain=.mailchimp.com
376
+ body:
377
+ encoding: UTF-8
378
+ string: ''
379
+ http_version:
380
+ recorded_at: Tue, 07 May 2019 14:15:53 GMT
381
+ recorded_with: VCR 2.9.3