quicktravel_client 1.1.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +14 -2
  5. data/CHANGELOG.md +34 -3
  6. data/Gemfile +0 -3
  7. data/Rakefile +0 -6
  8. data/examples/login_example.rb +1 -1
  9. data/gemfiles/rails4.gemfile +9 -0
  10. data/lib/quick_travel.rb +2 -1
  11. data/lib/quick_travel/accommodation.rb +1 -15
  12. data/lib/quick_travel/adapter.rb +98 -67
  13. data/lib/quick_travel/{adapter_exception.rb → adapter_error.rb} +1 -1
  14. data/lib/quick_travel/address.rb +2 -7
  15. data/lib/quick_travel/adjustment.rb +0 -2
  16. data/lib/quick_travel/bed_configuration.rb +0 -1
  17. data/lib/quick_travel/bed_requirement.rb +0 -1
  18. data/lib/quick_travel/booking.rb +22 -46
  19. data/lib/quick_travel/cache.rb +8 -14
  20. data/lib/quick_travel/checkout.rb +1 -1
  21. data/lib/quick_travel/client.rb +2 -4
  22. data/lib/quick_travel/client_type.rb +2 -1
  23. data/lib/quick_travel/connection_error.rb +1 -1
  24. data/lib/quick_travel/constants.rb +0 -1
  25. data/lib/quick_travel/contact.rb +0 -1
  26. data/lib/quick_travel/country.rb +0 -3
  27. data/lib/quick_travel/document.rb +0 -2
  28. data/lib/quick_travel/document_group.rb +0 -2
  29. data/lib/quick_travel/location.rb +0 -2
  30. data/lib/quick_travel/party.rb +7 -12
  31. data/lib/quick_travel/passenger.rb +0 -1
  32. data/lib/quick_travel/passenger_price_break.rb +0 -2
  33. data/lib/quick_travel/passenger_type.rb +0 -2
  34. data/lib/quick_travel/payment.rb +0 -3
  35. data/lib/quick_travel/payment_type.rb +4 -13
  36. data/lib/quick_travel/price_changes.rb +3 -0
  37. data/lib/quick_travel/price_changes/booking_price_change.rb +30 -0
  38. data/lib/quick_travel/price_changes/price_change.rb +23 -0
  39. data/lib/quick_travel/{discounts/discount_tree.rb → price_changes/price_change_tree.rb} +12 -8
  40. data/lib/quick_travel/product.rb +15 -28
  41. data/lib/quick_travel/product_type.rb +4 -16
  42. data/lib/quick_travel/property.rb +4 -20
  43. data/lib/quick_travel/property_facility.rb +0 -1
  44. data/lib/quick_travel/property_type.rb +2 -14
  45. data/lib/quick_travel/region.rb +0 -9
  46. data/lib/quick_travel/reservation.rb +0 -21
  47. data/lib/quick_travel/resource.rb +7 -28
  48. data/lib/quick_travel/room_facility.rb +0 -1
  49. data/lib/quick_travel/route.rb +9 -25
  50. data/lib/quick_travel/route_stop.rb +0 -1
  51. data/lib/quick_travel/service.rb +2 -1
  52. data/lib/quick_travel/status.rb +23 -0
  53. data/lib/quick_travel/trip.rb +0 -1
  54. data/lib/quick_travel/vehicle.rb +2 -4
  55. data/lib/quick_travel/vehicle_type.rb +0 -3
  56. data/lib/quick_travel/version.rb +1 -1
  57. data/quicktravel_client.gemspec +4 -4
  58. data/spec/booking_spec.rb +24 -0
  59. data/spec/discounts_spec.rb +69 -69
  60. data/spec/passenger_type_spec.rb +30 -0
  61. data/spec/payment_type_spec.rb +10 -0
  62. data/spec/product_spec.rb +52 -21
  63. data/spec/product_type_spec.rb +19 -0
  64. data/spec/property_spec.rb +83 -0
  65. data/spec/region_spec.rb +1 -1
  66. data/spec/reservation_spec.rb +3 -2
  67. data/spec/resource_spec.rb +31 -7
  68. data/spec/route_spec.rb +118 -0
  69. data/spec/spec_helper.rb +18 -25
  70. data/spec/status_spec.rb +9 -0
  71. data/spec/support/cassettes/booking_create.yml +39 -33
  72. data/spec/support/cassettes/booking_documents.yml +36 -30
  73. data/spec/support/cassettes/booking_price_changes.yml +66 -0
  74. data/spec/support/cassettes/booking_show.yml +38 -32
  75. data/spec/support/cassettes/booking_update.yml +74 -62
  76. data/spec/support/cassettes/booking_with_documents.yml +88 -76
  77. data/spec/support/cassettes/booking_with_nested_attributes.yml +128 -110
  78. data/spec/support/cassettes/booking_with_price_changes.yml +86 -0
  79. data/spec/support/cassettes/countries.yml +140 -0
  80. data/spec/support/cassettes/country_all.yml +36 -30
  81. data/spec/support/cassettes/create_reservation_fail.yml +32 -27
  82. data/spec/support/cassettes/create_reservation_with_booking.yml +40 -34
  83. data/spec/support/cassettes/passenger_all.yml +36 -30
  84. data/spec/support/cassettes/payment_info.yml +61 -0
  85. data/spec/support/cassettes/product_date_range_bookability.yml +61 -59
  86. data/spec/support/cassettes/product_show.yml +42 -32
  87. data/spec/support/cassettes/product_show_as_agent.yml +63 -0
  88. data/spec/support/cassettes/product_type_all.yml +53 -0
  89. data/spec/support/cassettes/property.yml +66 -0
  90. data/spec/support/cassettes/region_show.yml +36 -30
  91. data/spec/support/cassettes/reservation_with_extra_picks.yml +137 -110
  92. data/spec/support/cassettes/resource_fare_bases.yml +47 -78
  93. data/spec/support/cassettes/resource_product_type.yml +63 -0
  94. data/spec/support/cassettes/resource_show.yml +37 -31
  95. data/spec/support/cassettes/resource_with_price.yml +63 -0
  96. data/spec/support/cassettes/route_all.yml +65 -0
  97. data/spec/support/cassettes/tenant_switcher.yml +109 -0
  98. data/spec/support/coverage_loader.rb +26 -0
  99. data/spec/tenant_spec.rb +28 -0
  100. metadata +106 -115
  101. data/bootstrap/boot.rb +0 -4
  102. data/lib/quick_travel/discounts.rb +0 -3
  103. data/lib/quick_travel/discounts/booking_discount.rb +0 -18
  104. data/lib/quick_travel/discounts/discount.rb +0 -21
  105. data/spec/support/cassettes/booking_create_legacy.yml +0 -50
  106. data/spec/support/cassettes/booking_discounts.yml +0 -53
  107. data/spec/support/cassettes/booking_with_discounts.yml +0 -72
  108. data/spec/support/cassettes/region_index.yml +0 -48
@@ -2,186 +2,204 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://0.0.0.0:8080/api/bookings/1.json?
5
+ uri: http://test.qt.sealink.com.au:8080/api/bookings/1.json
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: access_key=<QT_KEY>
9
9
  headers:
10
- content-length:
10
+ Content-Length:
11
11
  - '0'
12
12
  response:
13
13
  status:
14
14
  code: 200
15
15
  message: 'OK '
16
16
  headers:
17
- p3p:
17
+ P3p:
18
18
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
19
- content-type:
19
+ Content-Type:
20
20
  - application/json; charset=utf-8
21
- x-ua-compatible:
21
+ X-Ua-Compatible:
22
22
  - IE=Edge
23
- etag:
24
- - '"c90ba69129d43f6216802c19054fb541"'
25
- cache-control:
26
- - max-age=0, private, must-revalidate
27
- x-request-id:
28
- - e71fa456f2cb4604089604628e7fa140
29
- x-runtime:
30
- - '0.249098'
31
- date:
32
- - Wed, 25 Mar 2015 01:30:09 GMT
33
- x-rack-cache:
23
+ Cache-Control:
24
+ - no-store, must-revalidate, private, max-age=0
25
+ X-Request-Id:
26
+ - 178ac4ca62b6ad920e0a1efd418a88db
27
+ X-Runtime:
28
+ - '0.311300'
29
+ Vary:
30
+ - Origin
31
+ X-Rack-Cache:
34
32
  - miss
35
- server:
36
- - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
37
- content-length:
38
- - '11713'
39
- connection:
40
- - close
41
- set-cookie:
42
- - _session_id=37e646796e109e9c78cfbb13edd9a652; path=/; HttpOnly
33
+ X-Miniprofiler-Ids:
34
+ - '["13vf1ptrvvs64xio15fk","3n393d46407xjckipoz4","sbzq3sn22o19v6amh4lx","hnsva789t8cmifp64wx3","wmmnukmwie7vr7vj8xqf","2brmax1rs5fwk4fd7n5","dvsmvrl183r0tifnlw46","5o49qsg88hbcsljo43fu","w0wrmi9s9rgua6owkm3z","lxziuvwk5cnyi9wz6zbf"]'
35
+ Server:
36
+ - WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
37
+ Date:
38
+ - Mon, 26 Oct 2015 00:18:45 GMT
39
+ Content-Length:
40
+ - '12124'
41
+ Connection:
42
+ - Keep-Alive
43
+ Set-Cookie:
44
+ - __profilin=p%3Dt; path=/
45
+ - __profilin=p%3Dt; path=/
46
+ - __profilin=p%3Dt; path=/
47
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTBlNjY3YjNmNDQ0NDFiMjdjMjc5ZDE2ZTIxOWYyYjRlBjsAVEkiCXVzZXIGOwBGaQY%3D--6860abfd98c8541ebd94f53e1f532aca9201eb49;
48
+ path=/; HttpOnly
43
49
  body:
44
50
  encoding: UTF-8
45
- string: '{"id":1,"state":"new","reference":"222223","public_comments":null,"internal_comments":null,"customer_contact_name":null,"customer_contact_phone":null,"customer_contact_mobile":null,"customer_contact_email":null,"currency_iso_code":"AUD","country_id":14,"post_code":null,"referral_code_id":1,"total_adjustments_in_cents":0,"pre_adjusted_gross_in_cents":38000,"nett_in_cents":38000,"gross_in_cents":38000,"commission_in_cents":0,"balance_in_cents":38000,"paid_in_cents":0,"surcharge_in_cents":0,"deposit_in_cents":0,"web_site_name":null,"promo_code":null,"insurance_offered":false,"deposit_due_on":{"_type":"Date","_value":"2016-03-01T00:00:00+10:30"},"balance_due_on":{"_type":"Date","_value":"2016-03-01T00:00:00+10:30"},"first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"complete":true,"reason_not_complete":null,"discardable_in":-1084280,"inactivatable_in":-1086425,"notices":{},"deposit_relevant":false,"passenger_ids":[1,2],"vehicle_ids":[],"reservation_ids":[1,3,2],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[{"id":1,"title":null,"first_name":null,"last_name":null,"passenger_type_id":1,"age":30,"gender":null,"position":1},{"id":2,"title":null,"first_name":null,"last_name":null,"passenger_type_id":1,"age":30,"gender":null,"position":2}],"vehicles_attributes":[],"reservations_attributes":[{"id":1,"booking_id":1,"description":"A
46
- basic studio room","comment":"","active":true,"service_ids":[3,4],"resource_id":6,"quantity":null,"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"bed_configuration":"1
47
- x Double","product_type_id":2,"itinerary_footer":false,"fare_basis_set_id":12,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":6,"pick_up_info":null,"drop_off_info":null,"selection_name":"Hilton
48
- Hotel: Executive Room","product_name_underscore":"accommodation","resource_class_name_underscore":"accommodation","resource_class_name":"Accommodation","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"checkout_date":{"_type":"Date","_value":"2016-03-03"},"duration_units":"Nights","date_start_label":"In:","date_end_label":"Out:","accommodation_extra_picks":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
49
- Priced as: Rack Rate","gross_including_packaged_item_in_cents":38000,"pre_adjusted_gross_including_packaged_item_in_cents":64000,"gross_in_cents":20000,"pre_adjusted_gross_in_cents":40000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":20000,"sub_items_gross_in_cents":18000,"adjustments_attributes":[{"id":6,"gross_in_cents":-20000,"creator":{"_access_ip":null,"_access_key":null,"_crypted_password":null,"_login":null,"_password":null,"_remember_token":null,"_remember_token_expires_at":null,"_salt":null,"active":true,"age":null,"business_number":null,"business_number_type":null,"created_at":"2013-03-01T00:00:02+10:30","creator_id":null,"currency_iso_code":"AUD","first_name":"administrator","gender":null,"id":1,"internal_staff":true,"internal_subdivision":false,"last_name":"administrator","name":"Administrator
51
+ string: '{"id":1,"state":"active","reference":"222223","public_comments":null,"internal_comments":null,"customer_contact_name":null,"customer_contact_phone":null,"customer_contact_mobile":null,"customer_contact_email":null,"currency_iso_code":"AUD","country_id":3,"post_code":"","referral_code_id":1,"created_at":"2013-03-01T00:05:46+10:30","updated_at":"2013-03-01T00:15:33+10:30","promo_code":null,"promo_code_id":null,"insurance_offered":false,"total_adjustments_in_cents":0,"pre_adjusted_gross_in_cents":38000,"nett_in_cents":38000,"gross_in_cents":38000,"commission_in_cents":0,"balance_in_cents":38000,"paid_in_cents":0,"surcharge_in_cents":0,"deposit_in_cents":0,"web_site_name":null,"deposit_relevant":false,"deposit_due_on":{"_type":"Date","_value":"2016-03-01T00:00:00+10:30"},"balance_due_on":{"_type":"Date","_value":"2016-03-01T00:00:00+10:30"},"first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"complete":true,"reason_not_complete":null,"discardable_in":-1395933,"inactivatable_in":-1395983,"notices":{},"passenger_ids":[1,2],"vehicle_ids":[],"reservation_ids":[1,3,2],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[{"id":1,"title":null,"first_name":null,"last_name":null,"passenger_type_id":1,"age":30,"gender":null,"position":1},{"id":2,"title":null,"first_name":null,"last_name":null,"passenger_type_id":1,"age":30,"gender":null,"position":2}],"vehicles_attributes":[],"reservations_attributes":[{"id":1,"booking_id":1,"description":"A
52
+ basic studio room","comment":"","active":true,"service_ids":[3,4],"resource_id":6,"quantity":null,"adjustments_attributes":[{"id":6,"gross_in_cents":-20000,"creator":{"_access_ip":null,"_access_key":null,"_crypted_password":null,"_login":null,"_password":null,"_remember_token":null,"_remember_token_expires_at":null,"_salt":null,"active":true,"age":null,"business_number":null,"business_number_type":null,"created_at":"2013-03-01T00:00:02+10:30","creator_id":null,"currency_iso_code":"AUD","first_name":"administrator","gender":null,"id":1,"internal_staff":true,"internal_subdivision":false,"last_name":"administrator","name":"Administrator
50
53
  Administrator","notes":null,"remember_token":null,"remember_token_expires_at":null,"salt":null,"title":null,"updated_at":"2013-03-01T00:00:03+10:30","updator_id":null},"created_at":"2013-03-01T00:40:04+10:30","description":"50%
51
- Off","adjustable_item_type":"Reservation","adjustable_item_id":1,"automatic":true}],"rules":[{"unique_name":"Test
54
+ Off","adjustable_item_type":"Reservation","adjustable_item_id":1,"adjustment_definition_id":1,"adjustment_category_id":1,"automatic":true}],"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"bed_configuration":"1
55
+ x Double and 1 x Single","product_type_id":2,"itinerary_footer":false,"fare_basis_set_id":12,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":6,"pick_up_info":null,"drop_off_info":null,"selection_name":"Hilton
56
+ Hotel: Executive Room","product_name_underscore":"accommodation","resource_class_name_underscore":"accommodation","resource_class_name":"Accommodation","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"checkout_date":{"_type":"Date","_value":"2016-03-03"},"duration_units":"Nights","date_start_label":"In:","date_end_label":"Out:","accommodation_extra_picks":false,"expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
57
+ Priced as: Rack Rate","gross_including_packaged_item_in_cents":38000,"pre_adjusted_gross_including_packaged_item_in_cents":64000,"gross_in_cents":20000,"pre_adjusted_gross_in_cents":40000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":20000,"sub_items_gross_in_cents":18000,"rules":[{"unique_name":"Test
52
58
  Discount Hilton","description":"","display_name":"Test Discount Hilton"}],"package":false,"sub_reservation_depth":0,"sub_reservations_attributes":[{"id":3,"booking_id":1,"description":"You
53
59
  have declined Travel Insurance for your booking. If you wish to add Travel
54
60
  Insurance to this booking, please contact the SeaLink Travel Group on 13 13
55
- 01 prior to commencing your travels.","comment":null,"active":true,"service_ids":[7,8],"resource_id":4,"quantity":null,"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"Travel
61
+ 01 prior to commencing your travels.","comment":null,"active":true,"service_ids":[7,8],"resource_id":4,"quantity":null,"adjustments_attributes":[],"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"Travel
56
62
  Insurance - Declined","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"duration_units":"Days","date_start_label":"Start
57
- Date:","date_end_label":"End Date:","has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
58
- Priced as: Rack Rate","gross_including_packaged_item_in_cents":12000,"pre_adjusted_gross_including_packaged_item_in_cents":12000,"gross_in_cents":12000,"pre_adjusted_gross_in_cents":12000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":8000,"adjustments_attributes":[],"rules":[],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":3,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:17:34+10:30","gross_in_cents":6000,"id":7,"services_deck_division_id":null,"updated_at":"2013-03-01T00:17:34+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":3,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:17:34+10:30","gross_in_cents":6000,"id":8,"services_deck_division_id":null,"updated_at":"2013-03-01T00:17:34+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":6000,"2":6000}},{"id":2,"booking_id":1,"description":"QBE
63
+ Date:","date_end_label":"End Date:","expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
64
+ Priced as: Rack Rate","gross_including_packaged_item_in_cents":12000,"pre_adjusted_gross_including_packaged_item_in_cents":12000,"gross_in_cents":12000,"pre_adjusted_gross_in_cents":12000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":8000,"rules":[],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":3,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:17:34+10:30","gross_in_cents":6000,"id":7,"services_deck_division_id":null,"updated_at":"2013-03-01T00:17:34+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":3,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:17:34+10:30","gross_in_cents":6000,"id":8,"services_deck_division_id":null,"updated_at":"2013-03-01T00:17:34+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":6000,"2":6000}},{"id":2,"booking_id":1,"description":"QBE
59
65
  Travel Insurance Policy E known as the ''Australian Cancellation and Additional
60
66
  Expenses'' plan has been included into this booking. This covers you for defined
61
67
  unforeseen cancellations and additional expenses. Please refer to the Product
62
- Disclosure Statement for further information.","comment":null,"active":true,"service_ids":[5,6],"resource_id":3,"quantity":null,"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"QBE
63
- Travel Insurance - Policy E","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"duration_units":"Days","date_start_label":"Start
64
- Date:","date_end_label":"End Date:","has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
65
- Priced as: Rack Rate","gross_including_packaged_item_in_cents":6000,"pre_adjusted_gross_including_packaged_item_in_cents":12000,"gross_in_cents":6000,"pre_adjusted_gross_in_cents":12000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":8000,"adjustments_attributes":[{"id":5,"gross_in_cents":-6000,"creator":{"_access_ip":null,"_access_key":null,"_crypted_password":null,"_login":null,"_password":null,"_remember_token":null,"_remember_token_expires_at":null,"_salt":null,"active":true,"age":null,"business_number":null,"business_number_type":null,"created_at":"2013-03-01T00:00:02+10:30","creator_id":null,"currency_iso_code":"AUD","first_name":"administrator","gender":null,"id":1,"internal_staff":true,"internal_subdivision":false,"last_name":"administrator","name":"Administrator
68
+ Disclosure Statement for further information.","comment":null,"active":true,"service_ids":[5,6],"resource_id":3,"quantity":null,"adjustments_attributes":[{"id":5,"gross_in_cents":-6000,"creator":{"_access_ip":null,"_access_key":null,"_crypted_password":null,"_login":null,"_password":null,"_remember_token":null,"_remember_token_expires_at":null,"_salt":null,"active":true,"age":null,"business_number":null,"business_number_type":null,"created_at":"2013-03-01T00:00:02+10:30","creator_id":null,"currency_iso_code":"AUD","first_name":"administrator","gender":null,"id":1,"internal_staff":true,"internal_subdivision":false,"last_name":"administrator","name":"Administrator
66
69
  Administrator","notes":null,"remember_token":null,"remember_token_expires_at":null,"salt":null,"title":null,"updated_at":"2013-03-01T00:00:03+10:30","updator_id":null},"created_at":"2013-03-01T00:40:04+10:30","description":"50%
67
- Off","adjustable_item_type":"Reservation","adjustable_item_id":2,"automatic":true}],"rules":[{"unique_name":"QBE
68
- Get Me","description":"","display_name":"QBE Get Me"}],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":2,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:11:08+10:30","gross_in_cents":6000,"id":3,"services_deck_division_id":null,"updated_at":"2013-03-01T00:11:08+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":2,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:11:08+10:30","gross_in_cents":6000,"id":4,"services_deck_division_id":null,"updated_at":"2013-03-01T00:11:08+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":3000,"2":3000}}],"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":[],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":1,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:08:00+10:30","gross_in_cents":0,"id":1,"services_deck_division_id":null,"updated_at":"2013-03-01T00:08:00+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":1,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:08:00+10:30","gross_in_cents":0,"id":2,"services_deck_division_id":null,"updated_at":"2013-03-01T00:08:00+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":0,"2":0}}],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":5,"name":"master","description":"master","payment_method":"credit_card","credit_card_brand":"MasterCard","transaction_fee":"0.0","active":true,"position":2,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true},{"id":4,"name":"visa","description":"visa","payment_method":"credit_card","credit_card_brand":"Visa","transaction_fee":"0.0","active":true,"position":3,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true},{"id":7,"name":"PayPal","description":"Payments
69
- made via PayPal account","payment_method":"paypal","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true}]}'
70
- http_version: '1.1'
71
- recorded_at: Wed, 25 Mar 2015 01:30:09 GMT
70
+ Off","adjustable_item_type":"Reservation","adjustable_item_id":2,"adjustment_definition_id":1,"adjustment_category_id":1,"automatic":true}],"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"QBE
71
+ Travel Insurance - Policy E","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"duration_units":"Days","date_start_label":"Start
72
+ Date:","date_end_label":"End Date:","expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
73
+ Priced as: Rack Rate","gross_including_packaged_item_in_cents":6000,"pre_adjusted_gross_including_packaged_item_in_cents":12000,"gross_in_cents":6000,"pre_adjusted_gross_in_cents":12000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":8000,"rules":[{"unique_name":"QBE
74
+ Get Me","description":"","display_name":"QBE Get Me"}],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":2,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:11:08+10:30","gross_in_cents":6000,"id":3,"services_deck_division_id":null,"updated_at":"2013-03-01T00:11:08+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":2,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:11:08+10:30","gross_in_cents":6000,"id":4,"services_deck_division_id":null,"updated_at":"2013-03-01T00:11:08+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":3000,"2":3000}}],"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":[],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":1,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:08:00+10:30","gross_in_cents":0,"id":1,"services_deck_division_id":null,"updated_at":"2013-03-01T00:08:00+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":1,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:08:00+10:30","gross_in_cents":0,"id":2,"services_deck_division_id":null,"updated_at":"2013-03-01T00:08:00+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":0,"2":0}}],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":5,"name":"master","description":"master","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"MasterCard","transaction_fee":"0.0","active":true,"position":2,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true,"redirect":false},{"id":4,"name":"visa","description":"visa","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"Visa","transaction_fee":"0.0","active":true,"position":3,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true,"redirect":false},{"id":7,"name":"PayPal","description":"Payments
75
+ made via PayPal account","payment_method":"paypal","gateway":"braintree","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true,"redirect":false}],"issued_tickets_attributes":[]}'
76
+ http_version:
77
+ recorded_at: Mon, 26 Oct 2015 00:18:45 GMT
72
78
  - request:
73
79
  method: put
74
- uri: http://0.0.0.0:8080/api/bookings/1/update_with_nested_attributes.json
80
+ uri: http://test.qt.sealink.com.au:8080/api/bookings/1/update_with_nested_attributes.json
75
81
  body:
76
82
  encoding: UTF-8
77
83
  string: booking[customer_contact_name]=New%20Name&booking[consumers][][id]=1&booking[consumers][][title]=Mr&booking[consumers][][first_name]=New&booking[consumers][][last_name]=Name&access_key=<QT_KEY>
78
84
  headers:
79
- content-length:
85
+ Content-Length:
80
86
  - '0'
81
87
  response:
82
88
  status:
83
89
  code: 200
84
90
  message: 'OK '
85
91
  headers:
86
- p3p:
92
+ P3p:
87
93
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
88
- content-type:
94
+ Content-Type:
89
95
  - application/json; charset=utf-8
90
- x-ua-compatible:
96
+ X-Ua-Compatible:
91
97
  - IE=Edge
92
- etag:
93
- - '"d2ce28b9a7fd7e4407e2b0fd499b7fe4"'
94
- cache-control:
95
- - max-age=0, private, must-revalidate
96
- x-request-id:
97
- - 7062944305e268cc1a60ceb32018d770
98
- x-runtime:
99
- - '0.182796'
100
- date:
101
- - Wed, 25 Mar 2015 01:30:10 GMT
102
- x-rack-cache:
98
+ Cache-Control:
99
+ - no-store, must-revalidate, private, max-age=0
100
+ X-Request-Id:
101
+ - ed4a078ebfd181d77f222e79632ca0c7
102
+ X-Runtime:
103
+ - '0.468857'
104
+ Vary:
105
+ - Origin
106
+ X-Rack-Cache:
103
107
  - invalidate, pass
104
- server:
105
- - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
106
- content-length:
108
+ X-Miniprofiler-Ids:
109
+ - '["gkjof2t58hk9hgfjjknq","3n393d46407xjckipoz4","sbzq3sn22o19v6amh4lx","hnsva789t8cmifp64wx3","wmmnukmwie7vr7vj8xqf","2brmax1rs5fwk4fd7n5","dvsmvrl183r0tifnlw46","5o49qsg88hbcsljo43fu","w0wrmi9s9rgua6owkm3z","lxziuvwk5cnyi9wz6zbf"]'
110
+ Server:
111
+ - WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
112
+ Date:
113
+ - Mon, 26 Oct 2015 00:18:46 GMT
114
+ Content-Length:
107
115
  - '8'
108
- connection:
109
- - close
110
- set-cookie:
111
- - _session_id=416dcbe22c583c38477158d211c53e87; path=/; HttpOnly
116
+ Connection:
117
+ - Keep-Alive
118
+ Set-Cookie:
119
+ - __profilin=p%3Dt; path=/
120
+ - __profilin=p%3Dt; path=/
121
+ - __profilin=p%3Dt; path=/
122
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWIzNTZmNmYzMTBmMmNiMWEyZTE3NmM3ZTU2NzVmN2M2BjsAVEkiCXVzZXIGOwBGaQY%3D--2f0abebc3d7ad30dd05fa0bdc897a7aa98414167;
123
+ path=/; HttpOnly
112
124
  body:
113
125
  encoding: UTF-8
114
126
  string: '{"id":1}'
115
- http_version: '1.1'
116
- recorded_at: Wed, 25 Mar 2015 01:30:10 GMT
127
+ http_version:
128
+ recorded_at: Mon, 26 Oct 2015 00:18:46 GMT
117
129
  - request:
118
130
  method: get
119
- uri: http://0.0.0.0:8080/api/bookings/1.json?
131
+ uri: http://test.qt.sealink.com.au:8080/api/bookings/1.json
120
132
  body:
121
133
  encoding: UTF-8
122
134
  string: access_key=<QT_KEY>
123
135
  headers:
124
- content-length:
136
+ Content-Length:
125
137
  - '0'
126
138
  response:
127
139
  status:
128
140
  code: 200
129
141
  message: 'OK '
130
142
  headers:
131
- p3p:
143
+ P3p:
132
144
  - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
133
- content-type:
145
+ Content-Type:
134
146
  - application/json; charset=utf-8
135
- x-ua-compatible:
147
+ X-Ua-Compatible:
136
148
  - IE=Edge
137
- etag:
138
- - '"5771a7963c4039ae39d77b0b6ee5501a"'
139
- cache-control:
140
- - max-age=0, private, must-revalidate
141
- x-request-id:
142
- - 59634c1a46a133c247e1b8b6c1fd2466
143
- x-runtime:
144
- - '0.114468'
145
- date:
146
- - Wed, 25 Mar 2015 01:30:10 GMT
147
- x-rack-cache:
149
+ Cache-Control:
150
+ - no-store, must-revalidate, private, max-age=0
151
+ X-Request-Id:
152
+ - 3eab44fc4a161b5ef3a42cb94764dcce
153
+ X-Runtime:
154
+ - '0.328427'
155
+ Vary:
156
+ - Origin
157
+ X-Rack-Cache:
148
158
  - miss
149
- server:
150
- - WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
151
- content-length:
152
- - '11712'
153
- connection:
154
- - close
155
- set-cookie:
156
- - _session_id=82c9b3452a7b2241089fd187ecf21428; path=/; HttpOnly
159
+ X-Miniprofiler-Ids:
160
+ - '["3ms7of6mo0lu5onqdypd","3n393d46407xjckipoz4","sbzq3sn22o19v6amh4lx","hnsva789t8cmifp64wx3","wmmnukmwie7vr7vj8xqf","2brmax1rs5fwk4fd7n5","dvsmvrl183r0tifnlw46","5o49qsg88hbcsljo43fu","w0wrmi9s9rgua6owkm3z","lxziuvwk5cnyi9wz6zbf"]'
161
+ Server:
162
+ - WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
163
+ Date:
164
+ - Mon, 26 Oct 2015 00:18:46 GMT
165
+ Content-Length:
166
+ - '12121'
167
+ Connection:
168
+ - Keep-Alive
169
+ Set-Cookie:
170
+ - __profilin=p%3Dt; path=/
171
+ - __profilin=p%3Dt; path=/
172
+ - __profilin=p%3Dt; path=/
173
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTYwYWE5ZTM4YjcwN2Y5NjBmYjA0ZDRmNWI2YmI4Yzg3BjsAVEkiCXVzZXIGOwBGaQY%3D--e5d547c5d3ad4a003a82e0eeac9e4421c253b1b9;
174
+ path=/; HttpOnly
157
175
  body:
158
176
  encoding: UTF-8
159
- string: '{"id":1,"state":"new","reference":"222223","public_comments":null,"internal_comments":null,"customer_contact_name":"New
160
- Name","customer_contact_phone":null,"customer_contact_mobile":null,"customer_contact_email":null,"currency_iso_code":"AUD","country_id":14,"post_code":null,"referral_code_id":1,"total_adjustments_in_cents":0,"pre_adjusted_gross_in_cents":38000,"nett_in_cents":38000,"gross_in_cents":38000,"commission_in_cents":0,"balance_in_cents":38000,"paid_in_cents":0,"surcharge_in_cents":0,"deposit_in_cents":0,"web_site_name":null,"promo_code":null,"insurance_offered":false,"deposit_due_on":{"_type":"Date","_value":"2016-03-01T00:00:00+10:30"},"balance_due_on":{"_type":"Date","_value":"2016-03-01T00:00:00+10:30"},"first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"complete":true,"reason_not_complete":null,"discardable_in":2160,"inactivatable_in":15,"notices":{},"deposit_relevant":false,"passenger_ids":[1,2],"vehicle_ids":[],"reservation_ids":[1,3,2],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[{"id":1,"title":"Mr","first_name":"New","last_name":"Name","passenger_type_id":1,"age":30,"gender":null,"position":1},{"id":2,"title":null,"first_name":null,"last_name":null,"passenger_type_id":1,"age":30,"gender":null,"position":2}],"vehicles_attributes":[],"reservations_attributes":[{"id":1,"booking_id":1,"description":"A
161
- basic studio room","comment":"","active":true,"service_ids":[3,4],"resource_id":6,"quantity":null,"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"bed_configuration":"1
162
- x Double","product_type_id":2,"itinerary_footer":false,"fare_basis_set_id":12,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":6,"pick_up_info":null,"drop_off_info":null,"selection_name":"Hilton
163
- Hotel: Executive Room","product_name_underscore":"accommodation","resource_class_name_underscore":"accommodation","resource_class_name":"Accommodation","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"checkout_date":{"_type":"Date","_value":"2016-03-03"},"duration_units":"Nights","date_start_label":"In:","date_end_label":"Out:","accommodation_extra_picks":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
164
- Priced as: Rack Rate","gross_including_packaged_item_in_cents":38000,"pre_adjusted_gross_including_packaged_item_in_cents":64000,"gross_in_cents":20000,"pre_adjusted_gross_in_cents":40000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":20000,"sub_items_gross_in_cents":18000,"adjustments_attributes":[{"id":6,"gross_in_cents":-20000,"creator":{"_access_ip":null,"_access_key":null,"_crypted_password":null,"_login":null,"_password":null,"_remember_token":null,"_remember_token_expires_at":null,"_salt":null,"active":true,"age":null,"business_number":null,"business_number_type":null,"created_at":"2013-03-01T00:00:02+10:30","creator_id":null,"currency_iso_code":"AUD","first_name":"administrator","gender":null,"id":1,"internal_staff":true,"internal_subdivision":false,"last_name":"administrator","name":"Administrator
177
+ string: '{"id":1,"state":"active","reference":"222223","public_comments":null,"internal_comments":null,"customer_contact_name":"New
178
+ Name","customer_contact_phone":null,"customer_contact_mobile":null,"customer_contact_email":null,"currency_iso_code":"AUD","country_id":3,"post_code":"","referral_code_id":1,"created_at":"2013-03-01T00:05:46+10:30","updated_at":"2015-10-26T10:48:45+10:30","promo_code":null,"promo_code_id":null,"insurance_offered":false,"total_adjustments_in_cents":0,"pre_adjusted_gross_in_cents":38000,"nett_in_cents":38000,"gross_in_cents":38000,"commission_in_cents":0,"balance_in_cents":38000,"paid_in_cents":0,"surcharge_in_cents":0,"deposit_in_cents":0,"web_site_name":null,"deposit_relevant":false,"deposit_due_on":{"_type":"Date","_value":"2016-03-01T00:00:00+10:30"},"balance_due_on":{"_type":"Date","_value":"2016-03-01T00:00:00+10:30"},"first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"complete":true,"reason_not_complete":null,"discardable_in":60,"inactivatable_in":10,"notices":{},"passenger_ids":[1,2],"vehicle_ids":[],"reservation_ids":[1,3,2],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[{"id":1,"title":"Mr","first_name":"New","last_name":"Name","passenger_type_id":1,"age":30,"gender":null,"position":1},{"id":2,"title":null,"first_name":null,"last_name":null,"passenger_type_id":1,"age":30,"gender":null,"position":2}],"vehicles_attributes":[],"reservations_attributes":[{"id":1,"booking_id":1,"description":"A
179
+ basic studio room","comment":"","active":true,"service_ids":[3,4],"resource_id":6,"quantity":null,"adjustments_attributes":[{"id":6,"gross_in_cents":-20000,"creator":{"_access_ip":null,"_access_key":null,"_crypted_password":null,"_login":null,"_password":null,"_remember_token":null,"_remember_token_expires_at":null,"_salt":null,"active":true,"age":null,"business_number":null,"business_number_type":null,"created_at":"2013-03-01T00:00:02+10:30","creator_id":null,"currency_iso_code":"AUD","first_name":"administrator","gender":null,"id":1,"internal_staff":true,"internal_subdivision":false,"last_name":"administrator","name":"Administrator
165
180
  Administrator","notes":null,"remember_token":null,"remember_token_expires_at":null,"salt":null,"title":null,"updated_at":"2013-03-01T00:00:03+10:30","updator_id":null},"created_at":"2013-03-01T00:40:04+10:30","description":"50%
166
- Off","adjustable_item_type":"Reservation","adjustable_item_id":1,"automatic":true}],"rules":[{"unique_name":"Test
181
+ Off","adjustable_item_type":"Reservation","adjustable_item_id":1,"adjustment_definition_id":1,"adjustment_category_id":1,"automatic":true}],"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"bed_configuration":"1
182
+ x Double and 1 x Single","product_type_id":2,"itinerary_footer":false,"fare_basis_set_id":12,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":6,"pick_up_info":null,"drop_off_info":null,"selection_name":"Hilton
183
+ Hotel: Executive Room","product_name_underscore":"accommodation","resource_class_name_underscore":"accommodation","resource_class_name":"Accommodation","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"checkout_date":{"_type":"Date","_value":"2016-03-03"},"duration_units":"Nights","date_start_label":"In:","date_end_label":"Out:","accommodation_extra_picks":false,"expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
184
+ Priced as: Rack Rate","gross_including_packaged_item_in_cents":38000,"pre_adjusted_gross_including_packaged_item_in_cents":64000,"gross_in_cents":20000,"pre_adjusted_gross_in_cents":40000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":20000,"sub_items_gross_in_cents":18000,"rules":[{"unique_name":"Test
167
185
  Discount Hilton","description":"","display_name":"Test Discount Hilton"}],"package":false,"sub_reservation_depth":0,"sub_reservations_attributes":[{"id":3,"booking_id":1,"description":"You
168
186
  have declined Travel Insurance for your booking. If you wish to add Travel
169
187
  Insurance to this booking, please contact the SeaLink Travel Group on 13 13
170
- 01 prior to commencing your travels.","comment":null,"active":true,"service_ids":[7,8],"resource_id":4,"quantity":null,"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"Travel
188
+ 01 prior to commencing your travels.","comment":null,"active":true,"service_ids":[7,8],"resource_id":4,"quantity":null,"adjustments_attributes":[],"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"Travel
171
189
  Insurance - Declined","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"duration_units":"Days","date_start_label":"Start
172
- Date:","date_end_label":"End Date:","has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
173
- Priced as: Rack Rate","gross_including_packaged_item_in_cents":12000,"pre_adjusted_gross_including_packaged_item_in_cents":12000,"gross_in_cents":12000,"pre_adjusted_gross_in_cents":12000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":8000,"adjustments_attributes":[],"rules":[],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":3,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:17:34+10:30","gross_in_cents":6000,"id":7,"services_deck_division_id":null,"updated_at":"2013-03-01T00:17:34+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":3,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:17:34+10:30","gross_in_cents":6000,"id":8,"services_deck_division_id":null,"updated_at":"2013-03-01T00:17:34+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":6000,"2":6000}},{"id":2,"booking_id":1,"description":"QBE
190
+ Date:","date_end_label":"End Date:","expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
191
+ Priced as: Rack Rate","gross_including_packaged_item_in_cents":12000,"pre_adjusted_gross_including_packaged_item_in_cents":12000,"gross_in_cents":12000,"pre_adjusted_gross_in_cents":12000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":8000,"rules":[],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":3,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:17:34+10:30","gross_in_cents":6000,"id":7,"services_deck_division_id":null,"updated_at":"2013-03-01T00:17:34+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":3,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:17:34+10:30","gross_in_cents":6000,"id":8,"services_deck_division_id":null,"updated_at":"2013-03-01T00:17:34+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":6000,"2":6000}},{"id":2,"booking_id":1,"description":"QBE
174
192
  Travel Insurance Policy E known as the ''Australian Cancellation and Additional
175
193
  Expenses'' plan has been included into this booking. This covers you for defined
176
194
  unforeseen cancellations and additional expenses. Please refer to the Product
177
- Disclosure Statement for further information.","comment":null,"active":true,"service_ids":[5,6],"resource_id":3,"quantity":null,"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"QBE
178
- Travel Insurance - Policy E","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"duration_units":"Days","date_start_label":"Start
179
- Date:","date_end_label":"End Date:","has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
180
- Priced as: Rack Rate","gross_including_packaged_item_in_cents":6000,"pre_adjusted_gross_including_packaged_item_in_cents":12000,"gross_in_cents":6000,"pre_adjusted_gross_in_cents":12000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":8000,"adjustments_attributes":[{"id":5,"gross_in_cents":-6000,"creator":{"_access_ip":null,"_access_key":null,"_crypted_password":null,"_login":null,"_password":null,"_remember_token":null,"_remember_token_expires_at":null,"_salt":null,"active":true,"age":null,"business_number":null,"business_number_type":null,"created_at":"2013-03-01T00:00:02+10:30","creator_id":null,"currency_iso_code":"AUD","first_name":"administrator","gender":null,"id":1,"internal_staff":true,"internal_subdivision":false,"last_name":"administrator","name":"Administrator
195
+ Disclosure Statement for further information.","comment":null,"active":true,"service_ids":[5,6],"resource_id":3,"quantity":null,"adjustments_attributes":[{"id":5,"gross_in_cents":-6000,"creator":{"_access_ip":null,"_access_key":null,"_crypted_password":null,"_login":null,"_password":null,"_remember_token":null,"_remember_token_expires_at":null,"_salt":null,"active":true,"age":null,"business_number":null,"business_number_type":null,"created_at":"2013-03-01T00:00:02+10:30","creator_id":null,"currency_iso_code":"AUD","first_name":"administrator","gender":null,"id":1,"internal_staff":true,"internal_subdivision":false,"last_name":"administrator","name":"Administrator
181
196
  Administrator","notes":null,"remember_token":null,"remember_token_expires_at":null,"salt":null,"title":null,"updated_at":"2013-03-01T00:00:03+10:30","updator_id":null},"created_at":"2013-03-01T00:40:04+10:30","description":"50%
182
- Off","adjustable_item_type":"Reservation","adjustable_item_id":2,"automatic":true}],"rules":[{"unique_name":"QBE
183
- Get Me","description":"","display_name":"QBE Get Me"}],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":2,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:11:08+10:30","gross_in_cents":6000,"id":3,"services_deck_division_id":null,"updated_at":"2013-03-01T00:11:08+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":2,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:11:08+10:30","gross_in_cents":6000,"id":4,"services_deck_division_id":null,"updated_at":"2013-03-01T00:11:08+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":3000,"2":3000}}],"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":[],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":1,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:08:00+10:30","gross_in_cents":0,"id":1,"services_deck_division_id":null,"updated_at":"2013-03-01T00:08:00+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":1,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:08:00+10:30","gross_in_cents":0,"id":2,"services_deck_division_id":null,"updated_at":"2013-03-01T00:08:00+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":0,"2":0}}],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":5,"name":"master","description":"master","payment_method":"credit_card","credit_card_brand":"MasterCard","transaction_fee":"0.0","active":true,"position":2,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true},{"id":4,"name":"visa","description":"visa","payment_method":"credit_card","credit_card_brand":"Visa","transaction_fee":"0.0","active":true,"position":3,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true},{"id":7,"name":"PayPal","description":"Payments
184
- made via PayPal account","payment_method":"paypal","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true}]}'
185
- http_version: '1.1'
186
- recorded_at: Wed, 25 Mar 2015 01:30:10 GMT
197
+ Off","adjustable_item_type":"Reservation","adjustable_item_id":2,"adjustment_definition_id":1,"adjustment_category_id":1,"automatic":true}],"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"QBE
198
+ Travel Insurance - Policy E","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"duration_units":"Days","date_start_label":"Start
199
+ Date:","date_end_label":"End Date:","expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
200
+ Priced as: Rack Rate","gross_including_packaged_item_in_cents":6000,"pre_adjusted_gross_including_packaged_item_in_cents":12000,"gross_in_cents":6000,"pre_adjusted_gross_in_cents":12000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":8000,"rules":[{"unique_name":"QBE
201
+ Get Me","description":"","display_name":"QBE Get Me"}],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":2,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:11:08+10:30","gross_in_cents":6000,"id":3,"services_deck_division_id":null,"updated_at":"2013-03-01T00:11:08+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":2,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:11:08+10:30","gross_in_cents":6000,"id":4,"services_deck_division_id":null,"updated_at":"2013-03-01T00:11:08+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":3000,"2":3000}}],"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":[],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":1,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:08:00+10:30","gross_in_cents":0,"id":1,"services_deck_division_id":null,"updated_at":"2013-03-01T00:08:00+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":1,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:08:00+10:30","gross_in_cents":0,"id":2,"services_deck_division_id":null,"updated_at":"2013-03-01T00:08:00+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":0,"2":0}}],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":5,"name":"master","description":"master","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"MasterCard","transaction_fee":"0.0","active":true,"position":2,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true,"redirect":false},{"id":4,"name":"visa","description":"visa","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"Visa","transaction_fee":"0.0","active":true,"position":3,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true,"redirect":false},{"id":7,"name":"PayPal","description":"Payments
202
+ made via PayPal account","payment_method":"paypal","gateway":"braintree","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true,"redirect":false}],"issued_tickets_attributes":[]}'
203
+ http_version:
204
+ recorded_at: Mon, 26 Oct 2015 00:18:46 GMT
187
205
  recorded_with: VCR 2.9.3
@@ -0,0 +1,86 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://test.qt.sealink.com.au:8080/api/bookings/reference/222223.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: access_key=<QT_KEY>
9
+ headers:
10
+ Content-Length:
11
+ - '0'
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: 'OK '
16
+ headers:
17
+ X-Frame-Options:
18
+ - SAMEORIGIN
19
+ X-Xss-Protection:
20
+ - '1'
21
+ X-Content-Type-Options:
22
+ - nosniff
23
+ X-Download-Options:
24
+ - noopen
25
+ X-Permitted-Cross-Domain-Policies:
26
+ - none
27
+ P3p:
28
+ - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ X-Ua-Compatible:
32
+ - IE=Edge,chrome=1
33
+ Etag:
34
+ - '"9503e00e7b614fbc247659c2ea55bfcd"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - e62582468ae4e5c6f62bf097849a88da
39
+ X-Runtime:
40
+ - '0.281571'
41
+ Vary:
42
+ - Origin
43
+ Date:
44
+ - Thu, 28 Feb 2013 13:32:44 GMT
45
+ X-Rack-Cache:
46
+ - miss
47
+ Server:
48
+ - WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
49
+ Content-Length:
50
+ - '12036'
51
+ Connection:
52
+ - Keep-Alive
53
+ Set-Cookie:
54
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWFkNzUyZGQyZjY3ZmM3YTkzN2U0NjVmNzdhZGIxMGE5BjsAVEkiCXVzZXIGOwBGaQY%3D--f529790171ba393e739a0fa9152d724807708cad;
55
+ path=/; HttpOnly
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"id":1,"state":"active","reference":"222223","public_comments":null,"internal_comments":null,"customer_contact_name":"New
59
+ Name","customer_contact_phone":null,"customer_contact_mobile":null,"customer_contact_email":null,"currency_iso_code":"AUD","country_id":3,"post_code":"","referral_code_id":1,"external_identifier":null,"created_at":"2013-03-01T00:05:46+10:30","updated_at":"2013-03-01T00:00:30+10:30","promo_code":null,"promo_code_id":null,"insurance_offered":false,"total_adjustments_in_cents":0,"pre_adjusted_gross_in_cents":38000,"nett_in_cents":38000,"gross_in_cents":38000,"commission_in_cents":0,"balance_in_cents":38000,"paid_in_cents":0,"surcharge_in_cents":0,"deposit_in_cents":0,"web_site_name":null,"deposit_relevant":false,"deposit_due_on":{"_type":"Date","_value":"2016-03-01T00:00:00+10:30"},"balance_due_on":{"_type":"Date","_value":"2016-03-01T00:00:00+10:30"},"first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"complete":true,"reason_not_complete":null,"discardable_in":58,"inactivatable_in":8,"notices":{},"client":null,"passenger_ids":[1,2],"vehicle_ids":[],"reservation_ids":[1,3,2],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[{"id":1,"title":"Mr","first_name":"New","last_name":"Name","passenger_type_id":1,"age":30,"gender":null,"position":1},{"id":2,"title":null,"first_name":null,"last_name":null,"passenger_type_id":1,"age":30,"gender":null,"position":2}],"vehicles_attributes":[],"reservations_attributes":[{"id":1,"booking_id":1,"description":"A
60
+ basic studio room","comment":"","active":true,"service_ids":[3,4],"resource_id":6,"quantity":null,"adjustments_attributes":[{"id":6,"gross_in_cents":-20000,"creator":{"_access_ip":null,"_access_key":null,"_crypted_password":null,"_login":null,"_password":null,"active":true,"age":null,"business_number":null,"business_number_type":null,"created_at":"2013-03-01T00:00:02+10:30","creator_id":null,"currency_iso_code":"AUD","first_name":"administrator","gender":null,"id":1,"internal_staff":true,"internal_subdivision":false,"last_name":"administrator","name":"Administrator
61
+ Administrator","notes":null,"remember_token":null,"remember_token_expires_at":null,"salt":null,"title":null,"updated_at":"2013-03-01T00:00:03+10:30","updator_id":null},"created_at":"2013-03-01T00:40:04+10:30","description":"50%
62
+ Off","adjustable_item_type":"Reservation","adjustable_item_id":1,"adjustment_definition_id":1,"adjustment_category_id":1,"automatic":true}],"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"bed_configuration":"1
63
+ x Double and 1 x Single","product_type_id":2,"itinerary_footer":false,"fare_basis_set_id":12,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":6,"pick_up_info":null,"drop_off_info":null,"selection_name":"Hilton
64
+ Hotel: Executive Room","product_name_underscore":"accommodation","resource_class_name_underscore":"accommodation","resource_class_name":"Accommodation","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"checkout_date":{"_type":"Date","_value":"2016-03-03"},"duration_units":"Nights","date_start_label":"In:","date_end_label":"Out:","accommodation_extra_picks":false,"expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
65
+ Priced as: Rack Rate","gross_including_packaged_item_in_cents":38000,"pre_adjusted_gross_including_packaged_item_in_cents":64000,"gross_in_cents":20000,"pre_adjusted_gross_in_cents":40000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":20000,"sub_items_gross_in_cents":18000,"rules":[{"unique_name":"Test
66
+ Discount Hilton","description":"","display_name":"Test Discount Hilton"}],"package":false,"sub_reservation_depth":0,"sub_reservations_attributes":[{"id":3,"booking_id":1,"description":"You
67
+ have declined Travel Insurance for your booking. If you wish to add Travel
68
+ Insurance to this booking, please contact the SeaLink Travel Group on 13 13
69
+ 01 prior to commencing your travels.","comment":null,"active":true,"service_ids":[7,8],"resource_id":4,"quantity":null,"adjustments_attributes":[],"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"Travel
70
+ Insurance - Declined","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"duration_units":"Days","date_start_label":"Start
71
+ Date:","date_end_label":"End Date:","expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
72
+ Priced as: Rack Rate","gross_including_packaged_item_in_cents":12000,"pre_adjusted_gross_including_packaged_item_in_cents":12000,"gross_in_cents":12000,"pre_adjusted_gross_in_cents":12000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":8000,"rules":[],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":3,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:17:34+10:30","gross_in_cents":6000,"id":7,"services_deck_division_id":null,"updated_at":"2013-03-01T00:17:34+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":3,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:17:34+10:30","gross_in_cents":6000,"id":8,"services_deck_division_id":null,"updated_at":"2013-03-01T00:17:34+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":6000,"2":6000}},{"id":2,"booking_id":1,"description":"QBE
73
+ Travel Insurance Policy E known as the ''Australian Cancellation and Additional
74
+ Expenses'' plan has been included into this booking. This covers you for defined
75
+ unforeseen cancellations and additional expenses. Please refer to the Product
76
+ Disclosure Statement for further information.","comment":null,"active":true,"service_ids":[5,6],"resource_id":3,"quantity":null,"adjustments_attributes":[{"id":5,"gross_in_cents":-6000,"creator":{"_access_ip":null,"_access_key":null,"_crypted_password":null,"_login":null,"_password":null,"active":true,"age":null,"business_number":null,"business_number_type":null,"created_at":"2013-03-01T00:00:02+10:30","creator_id":null,"currency_iso_code":"AUD","first_name":"administrator","gender":null,"id":1,"internal_staff":true,"internal_subdivision":false,"last_name":"administrator","name":"Administrator
77
+ Administrator","notes":null,"remember_token":null,"remember_token_expires_at":null,"salt":null,"title":null,"updated_at":"2013-03-01T00:00:03+10:30","updator_id":null},"created_at":"2013-03-01T00:40:04+10:30","description":"50%
78
+ Off","adjustable_item_type":"Reservation","adjustable_item_id":2,"adjustment_definition_id":1,"adjustment_category_id":1,"automatic":true}],"complete":true,"reason_not_complete":null,"enough_time_before_travel_to_edit":true,"product_type_id":7,"itinerary_footer":true,"fare_basis_set_id":8,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":"","fare_basis_pointer_id":4,"pick_up_info":null,"drop_off_info":null,"selection_name":"QBE
79
+ Travel Insurance - Policy E","product_name_underscore":"travel_insurance","resource_class_name_underscore":"insurance","resource_class_name":"Insurance","first_travel_date":{"_type":"Date","_value":"2016-03-01"},"last_travel_date":{"_type":"Date","_value":"2016-03-02"},"durational":true,"duration":2,"duration_units":"Days","date_start_label":"Start
80
+ Date:","date_end_label":"End Date:","expires":false,"has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto
81
+ Priced as: Rack Rate","gross_including_packaged_item_in_cents":6000,"pre_adjusted_gross_including_packaged_item_in_cents":12000,"gross_in_cents":6000,"pre_adjusted_gross_in_cents":12000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":8000,"rules":[{"unique_name":"QBE
82
+ Get Me","description":"","display_name":"QBE Get Me"}],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"pending_confirmation":false,"confirmation_request_fields":["pick_up_information","drop_off_information","vendor_pnr","notes_for_vendor","vendor_staff","note_for_inventory_type_change"],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":2,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:11:08+10:30","gross_in_cents":6000,"id":3,"services_deck_division_id":null,"updated_at":"2013-03-01T00:11:08+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":2,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:11:08+10:30","gross_in_cents":6000,"id":4,"services_deck_division_id":null,"updated_at":"2013-03-01T00:11:08+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":3000,"2":3000}}],"extra_pick":null,"child_resource":null,"pending_confirmation":false,"confirmation_request_fields":[],"report_reservation_changes":false,"vendor_pnr":null,"pick_up_information":null,"drop_off_information":null,"vendor_staff":null,"notes_for_vendor":null,"passenger_ids":[1,2],"passenger_splits":[{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":1,"consumer_splittable_id":1,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:08:00+10:30","gross_in_cents":0,"id":1,"services_deck_division_id":null,"updated_at":"2013-03-01T00:08:00+10:30"},{"commission_in_cents":0,"commission_percentage":"0.0","consumer_id":2,"consumer_splittable_id":1,"consumer_splittable_type":"Reservation","created_at":"2013-03-01T00:08:00+10:30","gross_in_cents":0,"id":2,"services_deck_division_id":null,"updated_at":"2013-03-01T00:08:00+10:30"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"1":0,"2":0}}],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":5,"name":"master","description":"master","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"MasterCard","transaction_fee":"0.0","active":true,"position":2,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true,"redirect":false},{"id":4,"name":"visa","description":"visa","payment_method":"credit_card","gateway":"braintree","credit_card_brand":"Visa","transaction_fee":"0.0","active":true,"position":3,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true,"redirect":false},{"id":7,"name":"PayPal","description":"Payments
83
+ made via PayPal account","payment_method":"paypal","gateway":"braintree","credit_card_brand":null,"transaction_fee":"0.0","active":true,"position":6,"surchargeable":false,"for_frequent_traveller_redemption":false,"comment_required":false,"external":true,"redirect":false}],"issued_tickets_attributes":[]}'
84
+ http_version:
85
+ recorded_at: Wed, 30 Dec 2015 05:57:39 GMT
86
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,140 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://test.qt.sealink.com.au:8080/api/countries.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: access_key=<QT_KEY>
9
+ headers:
10
+ Content-Length:
11
+ - '0'
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: 'OK '
16
+ headers:
17
+ X-Frame-Options:
18
+ - SAMEORIGIN
19
+ X-Xss-Protection:
20
+ - '1'
21
+ X-Content-Type-Options:
22
+ - nosniff
23
+ X-Download-Options:
24
+ - noopen
25
+ X-Permitted-Cross-Domain-Policies:
26
+ - none
27
+ P3p:
28
+ - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ X-Ua-Compatible:
32
+ - IE=Edge,chrome=1
33
+ Etag:
34
+ - '"4b81caf850c90a277ec60621b06aae8b"'
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 34122a78d9ec23eb326d639a2a3d7b3b
39
+ X-Runtime:
40
+ - '0.123689'
41
+ Vary:
42
+ - Origin
43
+ Date:
44
+ - Thu, 28 Feb 2013 13:42:59 GMT
45
+ X-Rack-Cache:
46
+ - miss
47
+ Server:
48
+ - WEBrick/1.3.1 (Ruby/2.2.3/2015-08-18)
49
+ Content-Length:
50
+ - '41663'
51
+ Connection:
52
+ - Keep-Alive
53
+ Set-Cookie:
54
+ - _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTcxZDYyNGQ2NTFkMjBlNTU0ZDMyMTkzNWJhYTIyNzgwBjsAVEkiCXVzZXIGOwBGaQY%3D--3c33ed235fb4c4046a105dc81c90c73217bd0865;
55
+ path=/; HttpOnly
56
+ body:
57
+ encoding: UTF-8
58
+ string: '[{"created_at":"2013-03-01T00:00:00+10:30","id":1,"iso_3166_code":"AD","latitude":42.3,"longitude":-1.3,"name":"Andorra","updated_at":"2013-03-01T00:00:00+10:30"},{"created_at":"2013-03-01T00:00:01+10:30","id":2,"iso_3166_code":"AE","latitude":24.0,"longitude":-54.0,"name":"United
59
+ Arab Emirates","updated_at":"2013-03-01T00:00:01+10:30"},{"created_at":"2013-03-01T00:00:01+10:30","id":3,"iso_3166_code":"AF","latitude":33.0,"longitude":-65.0,"name":"Afghanistan","updated_at":"2013-03-01T00:00:01+10:30"},{"created_at":"2013-03-01T00:00:03+10:30","id":4,"iso_3166_code":"AG","latitude":17.03,"longitude":61.48,"name":"Antigua
60
+ and Barbuda","updated_at":"2013-03-01T00:00:03+10:30"},{"created_at":"2013-03-01T00:00:03+10:30","id":5,"iso_3166_code":"AI","latitude":18.15,"longitude":63.1,"name":"Anguilla","updated_at":"2013-03-01T00:00:03+10:30"},{"created_at":"2013-03-01T00:00:03+10:30","id":6,"iso_3166_code":"AL","latitude":41.0,"longitude":-20.0,"name":"Albania","updated_at":"2013-03-01T00:00:03+10:30"},{"created_at":"2013-03-01T00:00:04+10:30","id":7,"iso_3166_code":"AM","latitude":40.0,"longitude":-45.0,"name":"Armenia","updated_at":"2013-03-01T00:00:04+10:30"},{"created_at":"2013-03-01T00:00:05+10:30","id":8,"iso_3166_code":"AN","latitude":0.0,"longitude":0.0,"name":"Netherlands
61
+ Antilles","updated_at":"2013-03-01T00:00:05+10:30"},{"created_at":"2013-03-01T00:00:05+10:30","id":9,"iso_3166_code":"AO","latitude":-12.3,"longitude":-18.3,"name":"Angola","updated_at":"2013-03-01T00:00:05+10:30"},{"created_at":"2013-03-01T00:00:06+10:30","id":10,"iso_3166_code":"AQ","latitude":-90.0,"longitude":0.0,"name":"Antarctica","updated_at":"2013-03-01T00:00:06+10:30"},{"created_at":"2013-03-01T00:00:06+10:30","id":11,"iso_3166_code":"AR","latitude":-34.0,"longitude":64.0,"name":"Argentina","updated_at":"2013-03-01T00:00:06+10:30"},{"created_at":"2013-03-01T00:00:07+10:30","id":12,"iso_3166_code":"AS","latitude":-14.2,"longitude":170.0,"name":"American
62
+ Samoa","updated_at":"2013-03-01T00:00:07+10:30"},{"created_at":"2013-03-01T00:00:07+10:30","id":13,"iso_3166_code":"AT","latitude":47.2,"longitude":-13.2,"name":"Austria","updated_at":"2013-03-01T00:00:07+10:30"},{"created_at":"2013-03-01T00:00:07+10:30","id":14,"iso_3166_code":"AU","latitude":-27.0,"longitude":-133.0,"name":"Australia","updated_at":"2013-03-01T00:00:07+10:30"},{"created_at":"2013-03-01T00:00:07+10:30","id":15,"iso_3166_code":"AW","latitude":12.3,"longitude":69.58,"name":"Aruba","updated_at":"2013-03-01T00:00:07+10:30"},{"created_at":"2013-03-01T00:00:07+10:30","id":16,"iso_3166_code":"AX","latitude":0.0,"longitude":0.0,"name":"\u00c5land
63
+ Islands","updated_at":"2013-03-01T00:00:07+10:30"},{"created_at":"2013-03-01T00:00:07+10:30","id":17,"iso_3166_code":"AZ","latitude":40.3,"longitude":-47.3,"name":"Azerbaijan","updated_at":"2013-03-01T00:00:07+10:30"},{"created_at":"2013-03-01T00:00:11+10:30","id":18,"iso_3166_code":"BA","latitude":44.0,"longitude":-18.0,"name":"Bosnia
64
+ and Herzegovina","updated_at":"2013-03-01T00:00:11+10:30"},{"created_at":"2013-03-01T00:00:11+10:30","id":19,"iso_3166_code":"BB","latitude":13.1,"longitude":59.32,"name":"Barbados","updated_at":"2013-03-01T00:00:11+10:30"},{"created_at":"2013-03-01T00:00:11+10:30","id":20,"iso_3166_code":"BD","latitude":24.0,"longitude":-90.0,"name":"Bangladesh","updated_at":"2013-03-01T00:00:11+10:30"},{"created_at":"2013-03-01T00:00:14+10:30","id":21,"iso_3166_code":"BE","latitude":50.5,"longitude":-4.0,"name":"Belgium","updated_at":"2013-03-01T00:00:14+10:30"},{"created_at":"2013-03-01T00:00:15+10:30","id":22,"iso_3166_code":"BF","latitude":13.0,"longitude":2.0,"name":"Burkina
65
+ Faso","updated_at":"2013-03-01T00:00:15+10:30"},{"created_at":"2013-03-01T00:00:17+10:30","id":23,"iso_3166_code":"BG","latitude":43.0,"longitude":-25.0,"name":"Bulgaria","updated_at":"2013-03-01T00:00:17+10:30"},{"created_at":"2013-03-01T00:00:17+10:30","id":24,"iso_3166_code":"BH","latitude":26.0,"longitude":-50.33,"name":"Bahrain","updated_at":"2013-03-01T00:00:17+10:30"},{"created_at":"2013-03-01T00:00:17+10:30","id":25,"iso_3166_code":"BI","latitude":-3.3,"longitude":-30.0,"name":"Burundi","updated_at":"2013-03-01T00:00:17+10:30"},{"created_at":"2013-03-01T00:00:17+10:30","id":26,"iso_3166_code":"BJ","latitude":9.3,"longitude":-2.15,"name":"Benin","updated_at":"2013-03-01T00:00:17+10:30"},{"created_at":"2013-03-01T00:00:18+10:30","id":27,"iso_3166_code":"BL","latitude":17.9,"longitude":62.85,"name":"Saint
66
+ Barth\u00e9lemy","updated_at":"2013-03-01T00:00:18+10:30"},{"created_at":"2013-03-01T00:00:18+10:30","id":28,"iso_3166_code":"BM","latitude":32.2,"longitude":64.45,"name":"Bermuda","updated_at":"2013-03-01T00:00:18+10:30"},{"created_at":"2013-03-01T00:00:18+10:30","id":29,"iso_3166_code":"BN","latitude":4.3,"longitude":-114.4,"name":"Brunei
67
+ Darussalam","updated_at":"2013-03-01T00:00:18+10:30"},{"created_at":"2013-03-01T00:00:18+10:30","id":30,"iso_3166_code":"BO","latitude":-17.0,"longitude":65.0,"name":"Bolivia","updated_at":"2013-03-01T00:00:18+10:30"},{"created_at":"2013-03-01T00:00:18+10:30","id":31,"iso_3166_code":"BR","latitude":-10.0,"longitude":55.0,"name":"Brazil","updated_at":"2013-03-01T00:00:18+10:30"},{"created_at":"2013-03-01T00:00:19+10:30","id":32,"iso_3166_code":"BS","latitude":24.15,"longitude":76.0,"name":"Bahamas","updated_at":"2013-03-01T00:00:19+10:30"},{"created_at":"2013-03-01T00:00:20+10:30","id":33,"iso_3166_code":"BT","latitude":27.3,"longitude":-90.3,"name":"Bhutan","updated_at":"2013-03-01T00:00:20+10:30"},{"created_at":"2013-03-01T00:00:20+10:30","id":34,"iso_3166_code":"BV","latitude":-54.26,"longitude":-3.24,"name":"Bouvet
68
+ Island","updated_at":"2013-03-01T00:00:20+10:30"},{"created_at":"2013-03-01T00:00:20+10:30","id":35,"iso_3166_code":"BW","latitude":-22.0,"longitude":-24.0,"name":"Botswana","updated_at":"2013-03-01T00:00:20+10:30"},{"created_at":"2013-03-01T00:00:20+10:30","id":36,"iso_3166_code":"BY","latitude":53.0,"longitude":-28.0,"name":"Belarus","updated_at":"2013-03-01T00:00:20+10:30"},{"created_at":"2013-03-01T00:00:21+10:30","id":37,"iso_3166_code":"BZ","latitude":17.15,"longitude":88.45,"name":"Belize","updated_at":"2013-03-01T00:00:21+10:30"},{"created_at":"2013-03-01T00:00:21+10:30","id":38,"iso_3166_code":"CA","latitude":60.0,"longitude":95.0,"name":"Canada","updated_at":"2013-03-01T00:00:21+10:30"},{"created_at":"2013-03-01T00:00:21+10:30","id":39,"iso_3166_code":"CC","latitude":-12.3,"longitude":-96.5,"name":"Cocos
69
+ (Keeling) Islands","updated_at":"2013-03-01T00:00:21+10:30"},{"created_at":"2013-03-01T00:00:21+10:30","id":40,"iso_3166_code":"CD","latitude":0.0,"longitude":-25.0,"name":"Congo,
70
+ The Democratic Republic Of The","updated_at":"2013-03-01T00:00:21+10:30"},{"created_at":"2013-03-01T00:00:22+10:30","id":41,"iso_3166_code":"CF","latitude":7.0,"longitude":-21.0,"name":"Central
71
+ African Republic","updated_at":"2013-03-01T00:00:22+10:30"},{"created_at":"2013-03-01T00:00:22+10:30","id":42,"iso_3166_code":"CG","latitude":-1.0,"longitude":-15.0,"name":"Congo","updated_at":"2013-03-01T00:00:22+10:30"},{"created_at":"2013-03-01T00:00:22+10:30","id":43,"iso_3166_code":"CH","latitude":47.0,"longitude":-8.0,"name":"Switzerland","updated_at":"2013-03-01T00:00:22+10:30"},{"created_at":"2013-03-01T00:00:23+10:30","id":44,"iso_3166_code":"CI","latitude":8.0,"longitude":5.0,"name":"C\u00f4te
72
+ D''Ivoire","updated_at":"2013-03-01T00:00:23+10:30"},{"created_at":"2013-03-01T00:00:23+10:30","id":45,"iso_3166_code":"CK","latitude":-21.14,"longitude":159.46,"name":"Cook
73
+ Islands","updated_at":"2013-03-01T00:00:23+10:30"},{"created_at":"2013-03-01T00:00:23+10:30","id":46,"iso_3166_code":"CL","latitude":-30.0,"longitude":71.0,"name":"Chile","updated_at":"2013-03-01T00:00:23+10:30"},{"created_at":"2013-03-01T00:00:23+10:30","id":47,"iso_3166_code":"CM","latitude":6.0,"longitude":-12.0,"name":"Cameroon","updated_at":"2013-03-01T00:00:23+10:30"},{"created_at":"2013-03-01T00:00:23+10:30","id":48,"iso_3166_code":"CN","latitude":35.0,"longitude":-105.0,"name":"China","updated_at":"2013-03-01T00:00:23+10:30"},{"created_at":"2013-03-01T00:00:24+10:30","id":49,"iso_3166_code":"CO","latitude":4.0,"longitude":72.0,"name":"Colombia","updated_at":"2013-03-01T00:00:24+10:30"},{"created_at":"2013-03-01T00:00:25+10:30","id":50,"iso_3166_code":"CR","latitude":10.0,"longitude":84.0,"name":"Costa
74
+ Rica","updated_at":"2013-03-01T00:00:25+10:30"},{"created_at":"2013-03-01T00:00:25+10:30","id":51,"iso_3166_code":"CU","latitude":21.3,"longitude":80.0,"name":"Cuba","updated_at":"2013-03-01T00:00:25+10:30"},{"created_at":"2013-03-01T00:00:25+10:30","id":52,"iso_3166_code":"CV","latitude":16.0,"longitude":24.0,"name":"Cape
75
+ Verde","updated_at":"2013-03-01T00:00:25+10:30"},{"created_at":"2013-03-01T00:00:26+10:30","id":53,"iso_3166_code":"CX","latitude":-10.3,"longitude":-105.4,"name":"Christmas
76
+ Island","updated_at":"2013-03-01T00:00:26+10:30"},{"created_at":"2013-03-01T00:00:26+10:30","id":54,"iso_3166_code":"CY","latitude":35.0,"longitude":-33.0,"name":"Cyprus","updated_at":"2013-03-01T00:00:26+10:30"},{"created_at":"2013-03-01T00:00:26+10:30","id":55,"iso_3166_code":"CZ","latitude":49.45,"longitude":-15.3,"name":"Czech
77
+ Republic","updated_at":"2013-03-01T00:00:26+10:30"},{"created_at":"2013-03-01T00:00:26+10:30","id":56,"iso_3166_code":"DE","latitude":51.0,"longitude":-9.0,"name":"Germany","updated_at":"2013-03-01T00:00:26+10:30"},{"created_at":"2013-03-01T00:00:26+10:30","id":57,"iso_3166_code":"DJ","latitude":11.3,"longitude":-43.0,"name":"Djibouti","updated_at":"2013-03-01T00:00:26+10:30"},{"created_at":"2013-03-01T00:00:27+10:30","id":58,"iso_3166_code":"DK","latitude":56.0,"longitude":-10.0,"name":"Denmark","updated_at":"2013-03-01T00:00:27+10:30"},{"created_at":"2013-03-01T00:00:28+10:30","id":59,"iso_3166_code":"DM","latitude":15.25,"longitude":61.2,"name":"Dominica","updated_at":"2013-03-01T00:00:28+10:30"},{"created_at":"2013-03-01T00:00:28+10:30","id":60,"iso_3166_code":"DO","latitude":19.0,"longitude":70.4,"name":"Dominican
78
+ Republic","updated_at":"2013-03-01T00:00:28+10:30"},{"created_at":"2013-03-01T00:00:28+10:30","id":61,"iso_3166_code":"DZ","latitude":28.0,"longitude":-3.0,"name":"Algeria","updated_at":"2013-03-01T00:00:28+10:30"},{"created_at":"2013-03-01T00:00:28+10:30","id":62,"iso_3166_code":"EC","latitude":-2.0,"longitude":77.3,"name":"Ecuador","updated_at":"2013-03-01T00:00:28+10:30"},{"created_at":"2013-03-01T00:00:28+10:30","id":63,"iso_3166_code":"EE","latitude":59.0,"longitude":-26.0,"name":"Estonia","updated_at":"2013-03-01T00:00:28+10:30"},{"created_at":"2013-03-01T00:00:29+10:30","id":64,"iso_3166_code":"EG","latitude":27.0,"longitude":-30.0,"name":"Egypt","updated_at":"2013-03-01T00:00:29+10:30"},{"created_at":"2013-03-01T00:00:29+10:30","id":65,"iso_3166_code":"EH","latitude":24.3,"longitude":13.0,"name":"Western
79
+ Sahara","updated_at":"2013-03-01T00:00:29+10:30"},{"created_at":"2013-03-01T00:00:30+10:30","id":66,"iso_3166_code":"ER","latitude":15.0,"longitude":-39.0,"name":"Eritrea","updated_at":"2013-03-01T00:00:30+10:30"},{"created_at":"2013-03-01T00:00:30+10:30","id":67,"iso_3166_code":"ES","latitude":40.0,"longitude":4.0,"name":"Spain","updated_at":"2013-03-01T00:00:30+10:30"},{"created_at":"2013-03-01T00:00:31+10:30","id":68,"iso_3166_code":"ET","latitude":8.0,"longitude":-38.0,"name":"Ethiopia","updated_at":"2013-03-01T00:00:31+10:30"},{"created_at":"2013-03-01T00:00:31+10:30","id":69,"iso_3166_code":"FI","latitude":64.0,"longitude":-26.0,"name":"Finland","updated_at":"2013-03-01T00:00:31+10:30"},{"created_at":"2013-03-01T00:00:31+10:30","id":70,"iso_3166_code":"FJ","latitude":-18.0,"longitude":-175.0,"name":"Fiji","updated_at":"2013-03-01T00:00:31+10:30"},{"created_at":"2013-03-01T00:00:31+10:30","id":71,"iso_3166_code":"FK","latitude":-51.45,"longitude":59.0,"name":"Falkland
80
+ Islands (Malvinas)","updated_at":"2013-03-01T00:00:31+10:30"},{"created_at":"2013-03-01T00:00:31+10:30","id":72,"iso_3166_code":"FM","latitude":6.55,"longitude":-158.15,"name":"Micronesia,
81
+ Federated States Of","updated_at":"2013-03-01T00:00:31+10:30"},{"created_at":"2013-03-01T00:00:32+10:30","id":73,"iso_3166_code":"FO","latitude":62.0,"longitude":7.0,"name":"Faroe
82
+ Islands","updated_at":"2013-03-01T00:00:32+10:30"},{"created_at":"2013-03-01T00:00:32+10:30","id":74,"iso_3166_code":"FR","latitude":46.0,"longitude":-2.0,"name":"France","updated_at":"2013-03-01T00:00:32+10:30"},{"created_at":"2013-03-01T00:00:33+10:30","id":75,"iso_3166_code":"GA","latitude":-1.0,"longitude":-11.45,"name":"Gabon","updated_at":"2013-03-01T00:00:33+10:30"},{"created_at":"2013-03-01T00:00:33+10:30","id":76,"iso_3166_code":"GB","latitude":54.0,"longitude":2.0,"name":"United
83
+ Kingdom","updated_at":"2013-03-01T00:00:33+10:30"},{"created_at":"2013-03-01T00:00:42+10:30","id":77,"iso_3166_code":"GD","latitude":12.07,"longitude":61.4,"name":"Grenada","updated_at":"2013-03-01T00:00:42+10:30"},{"created_at":"2013-03-01T00:00:42+10:30","id":78,"iso_3166_code":"GE","latitude":42.0,"longitude":-43.3,"name":"Georgia","updated_at":"2013-03-01T00:00:42+10:30"},{"created_at":"2013-03-01T00:00:43+10:30","id":79,"iso_3166_code":"GF","latitude":4.0,"longitude":53.0,"name":"French
84
+ Guiana","updated_at":"2013-03-01T00:00:43+10:30"},{"created_at":"2013-03-01T00:00:43+10:30","id":80,"iso_3166_code":"GG","latitude":49.28,"longitude":2.35,"name":"Guernsey","updated_at":"2013-03-01T00:00:43+10:30"},{"created_at":"2013-03-01T00:00:43+10:30","id":81,"iso_3166_code":"GH","latitude":8.0,"longitude":2.0,"name":"Ghana","updated_at":"2013-03-01T00:00:43+10:30"},{"created_at":"2013-03-01T00:00:43+10:30","id":82,"iso_3166_code":"GI","latitude":36.08,"longitude":5.21,"name":"Gibraltar","updated_at":"2013-03-01T00:00:43+10:30"},{"created_at":"2013-03-01T00:00:43+10:30","id":83,"iso_3166_code":"GL","latitude":72.0,"longitude":40.0,"name":"Greenland","updated_at":"2013-03-01T00:00:43+10:30"},{"created_at":"2013-03-01T00:00:43+10:30","id":84,"iso_3166_code":"GM","latitude":13.28,"longitude":16.34,"name":"Gambia","updated_at":"2013-03-01T00:00:43+10:30"},{"created_at":"2013-03-01T00:00:43+10:30","id":85,"iso_3166_code":"GN","latitude":11.0,"longitude":10.0,"name":"Guinea","updated_at":"2013-03-01T00:00:43+10:30"},{"created_at":"2013-03-01T00:00:44+10:30","id":86,"iso_3166_code":"GP","latitude":0.0,"longitude":0.0,"name":"Guadeloupe","updated_at":"2013-03-01T00:00:44+10:30"},{"created_at":"2013-03-01T00:00:44+10:30","id":87,"iso_3166_code":"GQ","latitude":2.0,"longitude":-10.0,"name":"Equatorial
85
+ Guinea","updated_at":"2013-03-01T00:00:44+10:30"},{"created_at":"2013-03-01T00:00:44+10:30","id":88,"iso_3166_code":"GR","latitude":39.0,"longitude":-22.0,"name":"Greece","updated_at":"2013-03-01T00:00:44+10:30"},{"created_at":"2013-03-01T00:00:44+10:30","id":89,"iso_3166_code":"GS","latitude":-54.3,"longitude":37.0,"name":"South
86
+ Georgia and the South Sandwich Islands","updated_at":"2013-03-01T00:00:44+10:30"},{"created_at":"2013-03-01T00:00:44+10:30","id":90,"iso_3166_code":"GT","latitude":15.3,"longitude":90.15,"name":"Guatemala","updated_at":"2013-03-01T00:00:44+10:30"},{"created_at":"2013-03-01T00:00:45+10:30","id":91,"iso_3166_code":"GU","latitude":13.28,"longitude":-144.47,"name":"Guam","updated_at":"2013-03-01T00:00:45+10:30"},{"created_at":"2013-03-01T00:00:45+10:30","id":92,"iso_3166_code":"GW","latitude":12.0,"longitude":15.0,"name":"Guinea-Bissau","updated_at":"2013-03-01T00:00:45+10:30"},{"created_at":"2013-03-01T00:00:45+10:30","id":93,"iso_3166_code":"GY","latitude":5.0,"longitude":59.0,"name":"Guyana","updated_at":"2013-03-01T00:00:45+10:30"},{"created_at":"2013-03-01T00:00:45+10:30","id":94,"iso_3166_code":"HK","latitude":22.15,"longitude":-114.1,"name":"Hong
87
+ Kong","updated_at":"2013-03-01T00:00:45+10:30"},{"created_at":"2013-03-01T00:00:45+10:30","id":95,"iso_3166_code":"HM","latitude":-53.06,"longitude":-72.31,"name":"Heard
88
+ and McDonald Islands","updated_at":"2013-03-01T00:00:45+10:30"},{"created_at":"2013-03-01T00:00:45+10:30","id":96,"iso_3166_code":"HN","latitude":15.0,"longitude":86.3,"name":"Honduras","updated_at":"2013-03-01T00:00:45+10:30"},{"created_at":"2013-03-01T00:00:46+10:30","id":97,"iso_3166_code":"HR","latitude":45.1,"longitude":-15.3,"name":"Croatia","updated_at":"2013-03-01T00:00:46+10:30"},{"created_at":"2013-03-01T00:00:46+10:30","id":98,"iso_3166_code":"HT","latitude":19.0,"longitude":72.25,"name":"Haiti","updated_at":"2013-03-01T00:00:46+10:30"},{"created_at":"2013-03-01T00:00:46+10:30","id":99,"iso_3166_code":"HU","latitude":47.0,"longitude":-20.0,"name":"Hungary","updated_at":"2013-03-01T00:00:46+10:30"},{"created_at":"2013-03-01T00:00:46+10:30","id":100,"iso_3166_code":"ID","latitude":-5.0,"longitude":-120.0,"name":"Indonesia","updated_at":"2013-03-01T00:00:46+10:30"},{"created_at":"2013-03-01T00:00:46+10:30","id":101,"iso_3166_code":"IE","latitude":53.0,"longitude":8.0,"name":"Ireland","updated_at":"2013-03-01T00:00:46+10:30"},{"created_at":"2013-03-01T00:00:47+10:30","id":102,"iso_3166_code":"IL","latitude":31.3,"longitude":-34.45,"name":"Israel","updated_at":"2013-03-01T00:00:47+10:30"},{"created_at":"2013-03-01T00:00:47+10:30","id":103,"iso_3166_code":"IM","latitude":54.15,"longitude":4.3,"name":"Isle
89
+ of Man","updated_at":"2013-03-01T00:00:47+10:30"},{"created_at":"2013-03-01T00:00:47+10:30","id":104,"iso_3166_code":"IN","latitude":20.0,"longitude":-77.0,"name":"India","updated_at":"2013-03-01T00:00:47+10:30"},{"created_at":"2013-03-01T00:00:48+10:30","id":105,"iso_3166_code":"IO","latitude":-6.0,"longitude":-71.3,"name":"British
90
+ Indian Ocean Territory","updated_at":"2013-03-01T00:00:48+10:30"},{"created_at":"2013-03-01T00:00:48+10:30","id":106,"iso_3166_code":"IQ","latitude":33.0,"longitude":-44.0,"name":"Iraq","updated_at":"2013-03-01T00:00:48+10:30"},{"created_at":"2013-03-01T00:00:48+10:30","id":107,"iso_3166_code":"IR","latitude":32.0,"longitude":-53.0,"name":"Iran,
91
+ Islamic Republic Of","updated_at":"2013-03-01T00:00:48+10:30"},{"created_at":"2013-03-01T00:00:48+10:30","id":108,"iso_3166_code":"IS","latitude":65.0,"longitude":18.0,"name":"Iceland","updated_at":"2013-03-01T00:00:48+10:30"},{"created_at":"2013-03-01T00:00:48+10:30","id":109,"iso_3166_code":"IT","latitude":42.5,"longitude":-12.5,"name":"Italy","updated_at":"2013-03-01T00:00:48+10:30"},{"created_at":"2013-03-01T00:00:49+10:30","id":110,"iso_3166_code":"JE","latitude":49.15,"longitude":2.1,"name":"Jersey","updated_at":"2013-03-01T00:00:49+10:30"},{"created_at":"2013-03-01T00:00:49+10:30","id":111,"iso_3166_code":"JM","latitude":18.15,"longitude":77.3,"name":"Jamaica","updated_at":"2013-03-01T00:00:49+10:30"},{"created_at":"2013-03-01T00:00:49+10:30","id":112,"iso_3166_code":"JO","latitude":31.0,"longitude":-36.0,"name":"Jordan","updated_at":"2013-03-01T00:00:49+10:30"},{"created_at":"2013-03-01T00:00:49+10:30","id":113,"iso_3166_code":"JP","latitude":36.0,"longitude":-138.0,"name":"Japan","updated_at":"2013-03-01T00:00:49+10:30"},{"created_at":"2013-03-01T00:00:49+10:30","id":114,"iso_3166_code":"KE","latitude":1.0,"longitude":-38.0,"name":"Kenya","updated_at":"2013-03-01T00:00:49+10:30"},{"created_at":"2013-03-01T00:00:50+10:30","id":115,"iso_3166_code":"KG","latitude":41.0,"longitude":-75.0,"name":"Kyrgyzstan","updated_at":"2013-03-01T00:00:50+10:30"},{"created_at":"2013-03-01T00:00:50+10:30","id":116,"iso_3166_code":"KH","latitude":13.0,"longitude":-105.0,"name":"Cambodia","updated_at":"2013-03-01T00:00:50+10:30"},{"created_at":"2013-03-01T00:00:50+10:30","id":117,"iso_3166_code":"KI","latitude":1.25,"longitude":-173.0,"name":"Kiribati","updated_at":"2013-03-01T00:00:50+10:30"},{"created_at":"2013-03-01T00:00:50+10:30","id":118,"iso_3166_code":"KM","latitude":-12.1,"longitude":-44.15,"name":"Comoros","updated_at":"2013-03-01T00:00:50+10:30"},{"created_at":"2013-03-01T00:00:50+10:30","id":119,"iso_3166_code":"KN","latitude":17.2,"longitude":62.45,"name":"Saint
92
+ Kitts And Nevis","updated_at":"2013-03-01T00:00:50+10:30"},{"created_at":"2013-03-01T00:00:50+10:30","id":120,"iso_3166_code":"KP","latitude":40.0,"longitude":-127.0,"name":"Korea,
93
+ Democratic People''s Republic Of","updated_at":"2013-03-01T00:00:50+10:30"},{"created_at":"2013-03-01T00:00:51+10:30","id":121,"iso_3166_code":"KR","latitude":37.0,"longitude":-127.3,"name":"Korea,
94
+ Republic of","updated_at":"2013-03-01T00:00:51+10:30"},{"created_at":"2013-03-01T00:00:51+10:30","id":122,"iso_3166_code":"KW","latitude":29.3,"longitude":-45.45,"name":"Kuwait","updated_at":"2013-03-01T00:00:51+10:30"},{"created_at":"2013-03-01T00:00:51+10:30","id":123,"iso_3166_code":"KY","latitude":19.3,"longitude":80.3,"name":"Cayman
95
+ Islands","updated_at":"2013-03-01T00:00:51+10:30"},{"created_at":"2013-03-01T00:00:51+10:30","id":124,"iso_3166_code":"KZ","latitude":48.0,"longitude":-68.0,"name":"Kazakhstan","updated_at":"2013-03-01T00:00:51+10:30"},{"created_at":"2013-03-01T00:00:52+10:30","id":125,"iso_3166_code":"LA","latitude":18.0,"longitude":-105.0,"name":"Lao
96
+ People''s Democratic Republic","updated_at":"2013-03-01T00:00:52+10:30"},{"created_at":"2013-03-01T00:00:52+10:30","id":126,"iso_3166_code":"LB","latitude":33.5,"longitude":-35.5,"name":"Lebanon","updated_at":"2013-03-01T00:00:52+10:30"},{"created_at":"2013-03-01T00:00:52+10:30","id":127,"iso_3166_code":"LC","latitude":13.53,"longitude":60.58,"name":"Saint
97
+ Lucia","updated_at":"2013-03-01T00:00:52+10:30"},{"created_at":"2013-03-01T00:00:52+10:30","id":128,"iso_3166_code":"LI","latitude":47.16,"longitude":-9.32,"name":"Liechtenstein","updated_at":"2013-03-01T00:00:52+10:30"},{"created_at":"2013-03-01T00:00:52+10:30","id":129,"iso_3166_code":"LK","latitude":7.0,"longitude":-81.0,"name":"Sri
98
+ Lanka","updated_at":"2013-03-01T00:00:52+10:30"},{"created_at":"2013-03-01T00:00:52+10:30","id":130,"iso_3166_code":"LR","latitude":6.3,"longitude":9.3,"name":"Liberia","updated_at":"2013-03-01T00:00:52+10:30"},{"created_at":"2013-03-01T00:00:52+10:30","id":131,"iso_3166_code":"LS","latitude":-29.3,"longitude":-28.3,"name":"Lesotho","updated_at":"2013-03-01T00:00:52+10:30"},{"created_at":"2013-03-01T00:00:53+10:30","id":132,"iso_3166_code":"LT","latitude":56.0,"longitude":-24.0,"name":"Lithuania","updated_at":"2013-03-01T00:00:53+10:30"},{"created_at":"2013-03-01T00:00:53+10:30","id":133,"iso_3166_code":"LU","latitude":49.45,"longitude":-6.1,"name":"Luxembourg","updated_at":"2013-03-01T00:00:53+10:30"},{"created_at":"2013-03-01T00:00:53+10:30","id":134,"iso_3166_code":"LV","latitude":57.0,"longitude":-25.0,"name":"Latvia","updated_at":"2013-03-01T00:00:53+10:30"},{"created_at":"2013-03-01T00:00:53+10:30","id":135,"iso_3166_code":"LY","latitude":25.0,"longitude":-17.0,"name":"Libya","updated_at":"2013-03-01T00:00:53+10:30"},{"created_at":"2013-03-01T00:00:54+10:30","id":136,"iso_3166_code":"MA","latitude":32.0,"longitude":5.0,"name":"Morocco","updated_at":"2013-03-01T00:00:54+10:30"},{"created_at":"2013-03-01T00:00:56+10:30","id":137,"iso_3166_code":"MC","latitude":43.44,"longitude":-7.24,"name":"Monaco","updated_at":"2013-03-01T00:00:56+10:30"},{"created_at":"2013-03-01T00:00:56+10:30","id":138,"iso_3166_code":"MD","latitude":47.0,"longitude":-29.0,"name":"Moldova,
99
+ Republic of","updated_at":"2013-03-01T00:00:56+10:30"},{"created_at":"2013-03-01T00:00:56+10:30","id":139,"iso_3166_code":"ME","latitude":42.3,"longitude":-19.18,"name":"Montenegro","updated_at":"2013-03-01T00:00:56+10:30"},{"created_at":"2013-03-01T00:00:56+10:30","id":140,"iso_3166_code":"MF","latitude":18.05,"longitude":63.57,"name":"Saint
100
+ Martin","updated_at":"2013-03-01T00:00:56+10:30"},{"created_at":"2013-03-01T00:00:56+10:30","id":141,"iso_3166_code":"MG","latitude":-20.0,"longitude":-47.0,"name":"Madagascar","updated_at":"2013-03-01T00:00:56+10:30"},{"created_at":"2013-03-01T00:00:56+10:30","id":142,"iso_3166_code":"MH","latitude":9.0,"longitude":-168.0,"name":"Marshall
101
+ Islands","updated_at":"2013-03-01T00:00:56+10:30"},{"created_at":"2013-03-01T00:00:57+10:30","id":143,"iso_3166_code":"MK","latitude":41.5,"longitude":-22.0,"name":"Macedonia,
102
+ the Former Yugoslav Republic Of","updated_at":"2013-03-01T00:00:57+10:30"},{"created_at":"2013-03-01T00:00:58+10:30","id":144,"iso_3166_code":"ML","latitude":17.0,"longitude":4.0,"name":"Mali","updated_at":"2013-03-01T00:00:58+10:30"},{"created_at":"2013-03-01T00:00:58+10:30","id":145,"iso_3166_code":"MM","latitude":22.0,"longitude":-98.0,"name":"Myanmar","updated_at":"2013-03-01T00:00:58+10:30"},{"created_at":"2013-03-01T00:00:58+10:30","id":146,"iso_3166_code":"MN","latitude":46.0,"longitude":-105.0,"name":"Mongolia","updated_at":"2013-03-01T00:00:58+10:30"},{"created_at":"2013-03-01T00:00:59+10:30","id":147,"iso_3166_code":"MO","latitude":22.1,"longitude":-113.33,"name":"Macao","updated_at":"2013-03-01T00:00:59+10:30"},{"created_at":"2013-03-01T00:00:59+10:30","id":148,"iso_3166_code":"MP","latitude":15.12,"longitude":-145.45,"name":"Northern
103
+ Mariana Islands","updated_at":"2013-03-01T00:00:59+10:30"},{"created_at":"2013-03-01T00:00:59+10:30","id":149,"iso_3166_code":"MQ","latitude":0.0,"longitude":0.0,"name":"Martinique","updated_at":"2013-03-01T00:00:59+10:30"},{"created_at":"2013-03-01T00:00:59+10:30","id":150,"iso_3166_code":"MR","latitude":20.0,"longitude":12.0,"name":"Mauritania","updated_at":"2013-03-01T00:00:59+10:30"},{"created_at":"2013-03-01T00:00:59+10:30","id":151,"iso_3166_code":"MS","latitude":16.45,"longitude":62.12,"name":"Montserrat","updated_at":"2013-03-01T00:00:59+10:30"},{"created_at":"2013-03-01T00:00:59+10:30","id":152,"iso_3166_code":"MT","latitude":35.5,"longitude":-14.35,"name":"Malta","updated_at":"2013-03-01T00:00:59+10:30"},{"created_at":"2013-03-01T00:00:59+10:30","id":153,"iso_3166_code":"MU","latitude":-20.17,"longitude":-57.33,"name":"Mauritius","updated_at":"2013-03-01T00:00:59+10:30"},{"created_at":"2013-03-01T00:01:00+10:30","id":154,"iso_3166_code":"MV","latitude":3.15,"longitude":-73.0,"name":"Maldives","updated_at":"2013-03-01T00:01:00+10:30"},{"created_at":"2013-03-01T00:01:00+10:30","id":155,"iso_3166_code":"MW","latitude":-13.3,"longitude":-34.0,"name":"Malawi","updated_at":"2013-03-01T00:01:00+10:30"},{"created_at":"2013-03-01T00:01:00+10:30","id":156,"iso_3166_code":"MX","latitude":23.0,"longitude":102.0,"name":"Mexico","updated_at":"2013-03-01T00:01:00+10:30"},{"created_at":"2013-03-01T00:01:01+10:30","id":157,"iso_3166_code":"MY","latitude":2.3,"longitude":-112.3,"name":"Malaysia","updated_at":"2013-03-01T00:01:01+10:30"},{"created_at":"2013-03-01T00:01:01+10:30","id":158,"iso_3166_code":"MZ","latitude":-18.15,"longitude":-35.0,"name":"Mozambique","updated_at":"2013-03-01T00:01:01+10:30"},{"created_at":"2013-03-01T00:01:01+10:30","id":159,"iso_3166_code":"NA","latitude":-22.0,"longitude":-17.0,"name":"Namibia","updated_at":"2013-03-01T00:01:01+10:30"},{"created_at":"2013-03-01T00:01:01+10:30","id":160,"iso_3166_code":"NC","latitude":-21.3,"longitude":-165.3,"name":"New
104
+ Caledonia","updated_at":"2013-03-01T00:01:01+10:30"},{"created_at":"2013-03-01T00:01:01+10:30","id":161,"iso_3166_code":"NE","latitude":16.0,"longitude":-8.0,"name":"Niger","updated_at":"2013-03-01T00:01:01+10:30"},{"created_at":"2013-03-01T00:01:01+10:30","id":162,"iso_3166_code":"NF","latitude":-29.02,"longitude":-167.57,"name":"Norfolk
105
+ Island","updated_at":"2013-03-01T00:01:01+10:30"},{"created_at":"2013-03-01T00:01:01+10:30","id":163,"iso_3166_code":"NG","latitude":10.0,"longitude":-8.0,"name":"Nigeria","updated_at":"2013-03-01T00:01:01+10:30"},{"created_at":"2013-03-01T00:01:02+10:30","id":164,"iso_3166_code":"NI","latitude":13.0,"longitude":85.0,"name":"Nicaragua","updated_at":"2013-03-01T00:01:02+10:30"},{"created_at":"2013-03-01T00:01:02+10:30","id":165,"iso_3166_code":"NL","latitude":52.3,"longitude":-5.45,"name":"Netherlands","updated_at":"2013-03-01T00:01:02+10:30"},{"created_at":"2013-03-01T00:01:02+10:30","id":166,"iso_3166_code":"NO","latitude":62.0,"longitude":-10.0,"name":"Norway","updated_at":"2013-03-01T00:01:02+10:30"},{"created_at":"2013-03-01T00:01:02+10:30","id":167,"iso_3166_code":"NP","latitude":28.0,"longitude":-84.0,"name":"Nepal","updated_at":"2013-03-01T00:01:02+10:30"},{"created_at":"2013-03-01T00:01:02+10:30","id":168,"iso_3166_code":"NR","latitude":-0.32,"longitude":-166.55,"name":"Nauru","updated_at":"2013-03-01T00:01:02+10:30"},{"created_at":"2013-03-01T00:01:02+10:30","id":169,"iso_3166_code":"NU","latitude":-19.02,"longitude":169.52,"name":"Niue","updated_at":"2013-03-01T00:01:02+10:30"},{"created_at":"2013-03-01T00:01:02+10:30","id":170,"iso_3166_code":"NZ","latitude":-41.0,"longitude":-174.0,"name":"New
106
+ Zealand","updated_at":"2013-03-01T00:01:02+10:30"},{"created_at":"2013-03-01T00:01:03+10:30","id":171,"iso_3166_code":"OM","latitude":21.0,"longitude":-57.0,"name":"Oman","updated_at":"2013-03-01T00:01:03+10:30"},{"created_at":"2013-03-01T00:01:03+10:30","id":172,"iso_3166_code":"PA","latitude":9.0,"longitude":80.0,"name":"Panama","updated_at":"2013-03-01T00:01:03+10:30"},{"created_at":"2013-03-01T00:01:03+10:30","id":173,"iso_3166_code":"PE","latitude":-10.0,"longitude":76.0,"name":"Peru","updated_at":"2013-03-01T00:01:03+10:30"},{"created_at":"2013-03-01T00:01:04+10:30","id":174,"iso_3166_code":"PF","latitude":-15.0,"longitude":140.0,"name":"French
107
+ Polynesia","updated_at":"2013-03-01T00:01:04+10:30"},{"created_at":"2013-03-01T00:01:04+10:30","id":175,"iso_3166_code":"PG","latitude":-6.0,"longitude":-147.0,"name":"Papua
108
+ New Guinea","updated_at":"2013-03-01T00:01:04+10:30"},{"created_at":"2013-03-01T00:01:04+10:30","id":176,"iso_3166_code":"PH","latitude":13.0,"longitude":-122.0,"name":"Philippines","updated_at":"2013-03-01T00:01:04+10:30"},{"created_at":"2013-03-01T00:01:07+10:30","id":177,"iso_3166_code":"PK","latitude":30.0,"longitude":-70.0,"name":"Pakistan","updated_at":"2013-03-01T00:01:07+10:30"},{"created_at":"2013-03-01T00:01:07+10:30","id":178,"iso_3166_code":"PL","latitude":52.0,"longitude":-20.0,"name":"Poland","updated_at":"2013-03-01T00:01:07+10:30"},{"created_at":"2013-03-01T00:01:07+10:30","id":179,"iso_3166_code":"PM","latitude":46.5,"longitude":56.2,"name":"Saint
109
+ Pierre And Miquelon","updated_at":"2013-03-01T00:01:07+10:30"},{"created_at":"2013-03-01T00:01:07+10:30","id":180,"iso_3166_code":"PN","latitude":-25.04,"longitude":130.06,"name":"Pitcairn","updated_at":"2013-03-01T00:01:07+10:30"},{"created_at":"2013-03-01T00:01:07+10:30","id":181,"iso_3166_code":"PR","latitude":18.15,"longitude":66.3,"name":"Puerto
110
+ Rico","updated_at":"2013-03-01T00:01:07+10:30"},{"created_at":"2013-03-01T00:01:07+10:30","id":182,"iso_3166_code":"PS","latitude":0.0,"longitude":0.0,"name":"Palestinian
111
+ Territory, Occupied","updated_at":"2013-03-01T00:01:07+10:30"},{"created_at":"2013-03-01T00:01:07+10:30","id":183,"iso_3166_code":"PT","latitude":39.3,"longitude":8.0,"name":"Portugal","updated_at":"2013-03-01T00:01:07+10:30"},{"created_at":"2013-03-01T00:01:07+10:30","id":184,"iso_3166_code":"PW","latitude":7.3,"longitude":-134.3,"name":"Palau","updated_at":"2013-03-01T00:01:07+10:30"},{"created_at":"2013-03-01T00:01:08+10:30","id":185,"iso_3166_code":"PY","latitude":-23.0,"longitude":58.0,"name":"Paraguay","updated_at":"2013-03-01T00:01:08+10:30"},{"created_at":"2013-03-01T00:01:08+10:30","id":186,"iso_3166_code":"QA","latitude":25.3,"longitude":-51.15,"name":"Qatar","updated_at":"2013-03-01T00:01:08+10:30"},{"created_at":"2013-03-01T00:01:08+10:30","id":187,"iso_3166_code":"RE","latitude":0.0,"longitude":0.0,"name":"R\u00e9union","updated_at":"2013-03-01T00:01:08+10:30"},{"created_at":"2013-03-01T00:01:08+10:30","id":188,"iso_3166_code":"RO","latitude":46.0,"longitude":-25.0,"name":"Romania","updated_at":"2013-03-01T00:01:08+10:30"},{"created_at":"2013-03-01T00:01:09+10:30","id":189,"iso_3166_code":"RS","latitude":44.0,"longitude":-21.0,"name":"Serbia","updated_at":"2013-03-01T00:01:09+10:30"},{"created_at":"2013-03-01T00:01:09+10:30","id":190,"iso_3166_code":"RU","latitude":60.0,"longitude":-100.0,"name":"Russian
112
+ Federation","updated_at":"2013-03-01T00:01:09+10:30"},{"created_at":"2013-03-01T00:01:11+10:30","id":191,"iso_3166_code":"RW","latitude":-2.0,"longitude":-30.0,"name":"Rwanda","updated_at":"2013-03-01T00:01:11+10:30"},{"created_at":"2013-03-01T00:01:11+10:30","id":192,"iso_3166_code":"SA","latitude":25.0,"longitude":-45.0,"name":"Saudi
113
+ Arabia","updated_at":"2013-03-01T00:01:11+10:30"},{"created_at":"2013-03-01T00:01:11+10:30","id":193,"iso_3166_code":"SB","latitude":-8.0,"longitude":-159.0,"name":"Solomon
114
+ Islands","updated_at":"2013-03-01T00:01:11+10:30"},{"created_at":"2013-03-01T00:01:12+10:30","id":194,"iso_3166_code":"SC","latitude":-4.35,"longitude":-55.4,"name":"Seychelles","updated_at":"2013-03-01T00:01:12+10:30"},{"created_at":"2013-03-01T00:01:12+10:30","id":195,"iso_3166_code":"SD","latitude":15.0,"longitude":-30.0,"name":"Sudan","updated_at":"2013-03-01T00:01:12+10:30"},{"created_at":"2013-03-01T00:01:12+10:30","id":196,"iso_3166_code":"SE","latitude":62.0,"longitude":-15.0,"name":"Sweden","updated_at":"2013-03-01T00:01:12+10:30"},{"created_at":"2013-03-01T00:01:12+10:30","id":197,"iso_3166_code":"SG","latitude":1.22,"longitude":-103.48,"name":"Singapore","updated_at":"2013-03-01T00:01:12+10:30"},{"created_at":"2013-03-01T00:01:12+10:30","id":198,"iso_3166_code":"SH","latitude":-15.57,"longitude":5.42,"name":"Saint
115
+ Helena","updated_at":"2013-03-01T00:01:12+10:30"},{"created_at":"2013-03-01T00:01:12+10:30","id":199,"iso_3166_code":"SI","latitude":46.07,"longitude":-14.49,"name":"Slovenia","updated_at":"2013-03-01T00:01:12+10:30"},{"created_at":"2013-03-01T00:01:19+10:30","id":200,"iso_3166_code":"SJ","latitude":78.0,"longitude":-20.0,"name":"Svalbard
116
+ And Jan Mayen","updated_at":"2013-03-01T00:01:19+10:30"},{"created_at":"2013-03-01T00:01:19+10:30","id":201,"iso_3166_code":"SK","latitude":48.4,"longitude":-19.3,"name":"Slovakia","updated_at":"2013-03-01T00:01:19+10:30"},{"created_at":"2013-03-01T00:01:19+10:30","id":202,"iso_3166_code":"SL","latitude":8.3,"longitude":11.3,"name":"Sierra
117
+ Leone","updated_at":"2013-03-01T00:01:19+10:30"},{"created_at":"2013-03-01T00:01:19+10:30","id":203,"iso_3166_code":"SM","latitude":43.46,"longitude":-12.25,"name":"San
118
+ Marino","updated_at":"2013-03-01T00:01:19+10:30"},{"created_at":"2013-03-01T00:01:19+10:30","id":204,"iso_3166_code":"SN","latitude":14.0,"longitude":14.0,"name":"Senegal","updated_at":"2013-03-01T00:01:19+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":205,"iso_3166_code":"SO","latitude":10.0,"longitude":-49.0,"name":"Somalia","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":206,"iso_3166_code":"SR","latitude":4.0,"longitude":56.0,"name":"Suriname","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":207,"iso_3166_code":"SS","latitude":7.0,"longitude":-30.0,"name":"South
119
+ Sudan","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":208,"iso_3166_code":"ST","latitude":1.0,"longitude":-7.0,"name":"Sao
120
+ Tome and Principe","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":209,"iso_3166_code":"SV","latitude":13.5,"longitude":88.55,"name":"El
121
+ Salvador","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":210,"iso_3166_code":"SY","latitude":35.0,"longitude":-38.0,"name":"Syrian
122
+ Arab Republic","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":211,"iso_3166_code":"SZ","latitude":-26.3,"longitude":-31.3,"name":"Swaziland","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":212,"iso_3166_code":"TC","latitude":21.45,"longitude":71.35,"name":"Turks
123
+ and Caicos Islands","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":213,"iso_3166_code":"TD","latitude":15.0,"longitude":-19.0,"name":"Chad","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":214,"iso_3166_code":"TF","latitude":0.0,"longitude":0.0,"name":"French
124
+ Southern Territories","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:20+10:30","id":215,"iso_3166_code":"TG","latitude":8.0,"longitude":-1.1,"name":"Togo","updated_at":"2013-03-01T00:01:20+10:30"},{"created_at":"2013-03-01T00:01:21+10:30","id":216,"iso_3166_code":"TH","latitude":15.0,"longitude":-100.0,"name":"Thailand","updated_at":"2013-03-01T00:01:21+10:30"},{"created_at":"2013-03-01T00:01:21+10:30","id":217,"iso_3166_code":"TJ","latitude":39.0,"longitude":-71.0,"name":"Tajikistan","updated_at":"2013-03-01T00:01:21+10:30"},{"created_at":"2013-03-01T00:01:21+10:30","id":218,"iso_3166_code":"TK","latitude":-9.0,"longitude":172.0,"name":"Tokelau","updated_at":"2013-03-01T00:01:21+10:30"},{"created_at":"2013-03-01T00:01:21+10:30","id":219,"iso_3166_code":"TL","latitude":-8.5,"longitude":-125.55,"name":"Timor-Leste","updated_at":"2013-03-01T00:01:21+10:30"},{"created_at":"2013-03-01T00:01:21+10:30","id":220,"iso_3166_code":"TM","latitude":40.0,"longitude":-60.0,"name":"Turkmenistan","updated_at":"2013-03-01T00:01:21+10:30"},{"created_at":"2013-03-01T00:01:21+10:30","id":221,"iso_3166_code":"TN","latitude":34.0,"longitude":-9.0,"name":"Tunisia","updated_at":"2013-03-01T00:01:21+10:30"},{"created_at":"2013-03-01T00:01:21+10:30","id":222,"iso_3166_code":"TO","latitude":-20.0,"longitude":175.0,"name":"Tonga","updated_at":"2013-03-01T00:01:21+10:30"},{"created_at":"2013-03-01T00:01:21+10:30","id":223,"iso_3166_code":"TR","latitude":39.0,"longitude":-35.0,"name":"Turkey","updated_at":"2013-03-01T00:01:21+10:30"},{"created_at":"2013-03-01T00:01:21+10:30","id":224,"iso_3166_code":"TT","latitude":11.0,"longitude":61.0,"name":"Trinidad
125
+ and Tobago","updated_at":"2013-03-01T00:01:21+10:30"},{"created_at":"2013-03-01T00:01:22+10:30","id":225,"iso_3166_code":"TV","latitude":-8.0,"longitude":-178.0,"name":"Tuvalu","updated_at":"2013-03-01T00:01:22+10:30"},{"created_at":"2013-03-01T00:01:23+10:30","id":226,"iso_3166_code":"TW","latitude":23.3,"longitude":-121.0,"name":"Taiwan,
126
+ Republic Of China","updated_at":"2013-03-01T00:01:23+10:30"},{"created_at":"2013-03-01T00:01:24+10:30","id":227,"iso_3166_code":"TZ","latitude":-6.0,"longitude":-35.0,"name":"Tanzania,
127
+ United Republic of","updated_at":"2013-03-01T00:01:24+10:30"},{"created_at":"2013-03-01T00:01:24+10:30","id":228,"iso_3166_code":"UA","latitude":49.0,"longitude":-32.0,"name":"Ukraine","updated_at":"2013-03-01T00:01:24+10:30"},{"created_at":"2013-03-01T00:01:24+10:30","id":229,"iso_3166_code":"UG","latitude":1.0,"longitude":-32.0,"name":"Uganda","updated_at":"2013-03-01T00:01:24+10:30"},{"created_at":"2013-03-01T00:01:26+10:30","id":230,"iso_3166_code":"UM","latitude":0.0,"longitude":0.0,"name":"United
128
+ States Minor Outlying Islands","updated_at":"2013-03-01T00:01:26+10:30"},{"created_at":"2013-03-01T00:01:26+10:30","id":231,"iso_3166_code":"US","latitude":38.0,"longitude":97.0,"name":"United
129
+ States","updated_at":"2013-03-01T00:01:26+10:30"},{"created_at":"2013-03-01T00:01:26+10:30","id":232,"iso_3166_code":"UY","latitude":-33.0,"longitude":56.0,"name":"Uruguay","updated_at":"2013-03-01T00:01:26+10:30"},{"created_at":"2013-03-01T00:01:26+10:30","id":233,"iso_3166_code":"UZ","latitude":41.0,"longitude":-64.0,"name":"Uzbekistan","updated_at":"2013-03-01T00:01:26+10:30"},{"created_at":"2013-03-01T00:01:26+10:30","id":234,"iso_3166_code":"VA","latitude":41.54,"longitude":-12.27,"name":"Holy
130
+ See (Vatican City State)","updated_at":"2013-03-01T00:01:26+10:30"},{"created_at":"2013-03-01T00:01:26+10:30","id":235,"iso_3166_code":"VC","latitude":13.15,"longitude":61.12,"name":"Saint
131
+ Vincent And The Grenedines","updated_at":"2013-03-01T00:01:26+10:30"},{"created_at":"2013-03-01T00:01:26+10:30","id":236,"iso_3166_code":"VE","latitude":8.0,"longitude":66.0,"name":"Venezuela,
132
+ Bolivarian Republic of","updated_at":"2013-03-01T00:01:26+10:30"},{"created_at":"2013-03-01T00:01:26+10:30","id":237,"iso_3166_code":"VG","latitude":0.0,"longitude":0.0,"name":"Virgin
133
+ Islands, British","updated_at":"2013-03-01T00:01:26+10:30"},{"created_at":"2013-03-01T00:01:26+10:30","id":238,"iso_3166_code":"VI","latitude":0.0,"longitude":0.0,"name":"Virgin
134
+ Islands, U.S.","updated_at":"2013-03-01T00:01:26+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":239,"iso_3166_code":"VN","latitude":16.1,"longitude":-107.5,"name":"Viet
135
+ Nam","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":240,"iso_3166_code":"VU","latitude":-16.0,"longitude":-167.0,"name":"Vanuatu","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":241,"iso_3166_code":"WF","latitude":-13.18,"longitude":176.12,"name":"Wallis
136
+ and Futuna","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":242,"iso_3166_code":"WS","latitude":-13.35,"longitude":172.2,"name":"Samoa","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":243,"iso_3166_code":"YE","latitude":15.0,"longitude":-48.0,"name":"Yemen","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":244,"iso_3166_code":"YT","latitude":-12.5,"longitude":-45.1,"name":"Mayotte","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":245,"iso_3166_code":"ZA","latitude":-29.0,"longitude":-24.0,"name":"South
137
+ Africa","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":246,"iso_3166_code":"ZM","latitude":-15.0,"longitude":-30.0,"name":"Zambia","updated_at":"2013-03-01T00:01:27+10:30"},{"created_at":"2013-03-01T00:01:27+10:30","id":247,"iso_3166_code":"ZW","latitude":-20.0,"longitude":-30.0,"name":"Zimbabwe","updated_at":"2013-03-01T00:01:27+10:30"}]'
138
+ http_version:
139
+ recorded_at: Fri, 22 Jan 2016 04:53:53 GMT
140
+ recorded_with: VCR 2.9.3