--- http_interactions: - request: method: get uri: http://test.qt.sealink.com.au:8080/api/bookings/2.json body: encoding: UTF-8 string: '' headers: Content-Length: - '0' X-API-KEY: - response: status: code: 200 message: 'OK ' headers: P3p: - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: - application/json; charset=utf-8 Etag: - W/"8b2e6e2c1c301c5f1bbe5b650dfb5d18" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - ac489d12-bdcf-4905-8bf8-a90fea6d88fb X-Runtime: - '0.672089' Date: - Fri, 01 Jan 2016 02:32:15 GMT X-Rack-Cache: - miss Vary: - Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - sameorigin X-Permitted-Cross-Domain-Policies: - none X-Xss-Protection: - 1; mode=block Server: - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26) Content-Length: - '8059' Connection: - Keep-Alive Set-Cookie: - _session_id=V2ZlYVpoZEREQjJJZG01VU9KMXVaUjdxNk1OS0FqTWpvZXBGRzRYajZDSU8zVkxNSU40T2pCTHZOUW00WUJlRktyR2FLeWVHZ0xHM0hFWDVvOFlFa3IyaGRueThDR0FzY1A2ZlVUUHZ3dzQ9LS1lSkc1c0lyb2hMaHNzdzVNM25maUtBPT0%3D--63fdf3891d9ac0548c22dbfea0274d8fa67e8ea6; path=/; HttpOnly body: encoding: UTF-8 string: '{"id":2,"state":"new","reference":"222224","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,"drop_off_option_id":null,"drop_off_location_id":null,"post_code":null,"referral_code_id":1,"external_identifier":null,"created_at":"2016-05-11T13:09:47.000+09:30","updated_at":"2016-07-13T12:00:24.000+09:30","promo_code":null,"promo_code_id":null,"insurance_offered":false,"total_adjustments_in_cents":0,"pre_adjusted_gross_in_cents":25000,"nett_in_cents":25000,"gross_in_cents":25000,"commission_in_cents":0,"balance_in_cents":25000,"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-09-02T00:00:00.000+09:30"},"balance_due_on":{"_type":"Date","_value":"2016-09-02T00:00:00.000+09:30"},"due":false,"first_travel_date":{"_type":"Date","_value":"2016-09-02"},"last_travel_date":{"_type":"Date","_value":"2016-09-02"},"complete":true,"reason_not_complete":"","first_reason_not_complete":"","unprintable_luggage_tags":false,"discardable_in":279419,"inactivatable_in":279369,"notices":{},"client":null,"passenger_ids":[3,4],"vehicle_ids":[],"reservation_ids":[4,5],"adjustment_ids":[],"todo_items":[],"confirmation_requests":[],"passengers_attributes":[{"id":3,"title":null,"first_name":null,"last_name":null,"passenger_type_id":1,"age":30,"gender":null,"position":1},{"id":4,"title":null,"first_name":null,"last_name":null,"passenger_type_id":1,"age":30,"gender":null,"position":2}],"vehicles_attributes":[],"reservations_attributes":[{"id":4,"booking_id":2,"description":"","comment":"","active":true,"service_ids":[58],"resource_id":12,"quantity":null,"adjustments_attributes":[],"complete":true,"reason_not_complete":"","first_reason_not_complete":"","enough_time_before_travel_to_edit":true,"product_type_id":9,"itinerary_footer":false,"fare_basis_set_id":14,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":null,"fare_basis_pointer_id":7,"pick_up_info":null,"drop_off_info":null,"selection_name":"Dinner Cruise","product_name_underscore":"cruise","resource_class_name_underscore":"generic_resource","resource_class_name":"GenericResource","has_ticket_template":false,"first_travel_date":{"_type":"Date","_value":"2016-09-02"},"last_travel_date":{"_type":"Date","_value":"2016-09-02"},"durational":false,"duration":1,"span":1,"duration_units":"Days","date_start_label":"Start Date:","date_end_label":"End Date:","expires":false,"expiry":"*NA*","has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto Priced as: Rack Rate","gross_including_packaged_item_in_cents":25000,"pre_adjusted_gross_including_packaged_item_in_cents":25000,"gross_in_cents":20000,"pre_adjusted_gross_in_cents":20000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":6000,"sub_items_gross_in_cents":5000,"rules":[],"package":false,"sub_reservation_depth":0,"sub_reservations_attributes":[{"id":5,"booking_id":2,"description":"","comment":null,"active":true,"service_ids":[62],"resource_id":13,"quantity":null,"adjustments_attributes":[],"complete":true,"reason_not_complete":"","first_reason_not_complete":"","enough_time_before_travel_to_edit":true,"product_type_id":9,"itinerary_footer":false,"fare_basis_set_id":16,"manually_priced":false,"manually_assigned_fare_basis_set":false,"has_fare_basis":true,"fare_basis_season_name":null,"fare_basis_pointer_id":8,"pick_up_info":null,"drop_off_info":null,"selection_name":"Dinner Cruise Window","product_name_underscore":"cruise","resource_class_name_underscore":"generic_resource","resource_class_name":"GenericResource","has_ticket_template":false,"first_travel_date":{"_type":"Date","_value":"2016-09-02"},"last_travel_date":{"_type":"Date","_value":"2016-09-02"},"durational":false,"duration":1,"span":1,"duration_units":"Days","date_start_label":"Start Date:","date_end_label":"End Date:","expires":false,"expiry":"*NA*","has_skipped_reservation_groups":false,"editable_reservation_groups":[],"tariff_level_name":"Auto Priced as: Rack Rate","gross_including_packaged_item_in_cents":5000,"pre_adjusted_gross_including_packaged_item_in_cents":5000,"gross_in_cents":5000,"pre_adjusted_gross_in_cents":5000,"pre_adjusted_commission_in_cents":0,"cost_in_cents":0,"rules":[],"package":false,"sub_reservation_depth":1,"extra_pick":null,"child_resource":true,"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":[3,4],"passenger_splits":[{"id":17,"consumer_id":3,"consumer_splittable_id":5,"gross_in_cents":2500,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"},{"id":18,"consumer_id":4,"consumer_splittable_id":5,"gross_in_cents":2500,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"3":2500,"4":2500}}],"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":[3,3],"passenger_splits":[{"id":15,"consumer_id":3,"consumer_splittable_id":4,"gross_in_cents":10000,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"},{"id":16,"consumer_id":3,"consumer_splittable_id":4,"gross_in_cents":10000,"commission_in_cents":0,"consumer_splittable_type":"Reservation","created_at":null,"updated_at":null,"commission_percentage":"0.0","length_multiplier":"1.0"}],"vehicle_ids":[],"vehicle_splits":[],"consumer_grosses":{"3":20000}}],"adjustments_attributes":[],"payments_attributes":[],"payment_types_attributes":[{"id":4,"name":"visa","description":"visa","transaction_fee":"0.0","active":true,"position":3,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":"Visa","payment_method":"credit_card","gateway":"braintree","on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":true,"creditlink":false,"surchargeable":false},{"id":5,"name":"master","description":"master","transaction_fee":"0.0","active":true,"position":4,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":null,"payment_method":"credit_card","gateway":"braintree","on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":true,"creditlink":false,"surchargeable":false},{"id":7,"name":"PayPal","description":"Payments made via PayPal account","transaction_fee":"0.0","active":true,"position":6,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":null,"payment_method":"paypal","gateway":"braintree","on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":true,"creditlink":false,"surchargeable":false},{"id":10,"name":"Opal Pay","description":"Opal Payments","transaction_fee":"0.0","active":true,"position":9,"for_frequent_traveller_redemption":false,"comment_required":false,"created_at":null,"updated_at":null,"credit_card_brand":null,"payment_method":"opal_pay","gateway":null,"on_account":false,"ticket_holding":false,"requires_staff":false,"internal":false,"redirect":false,"background":false,"creditlink":false,"surchargeable":false}],"issued_tickets_attributes":[]}' http_version: recorded_at: Wed, 21 Mar 2018 04:40:22 GMT - request: method: put uri: http://test.qt.sealink.com.au:8080/api/bookings/2/activate body: encoding: UTF-8 string: '' headers: Content-Length: - '0' X-API-KEY: - response: status: code: 200 message: 'OK ' headers: P3p: - CP="IDC DSP CAO COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: - application/json; charset=utf-8 Etag: - W/"c955e57777ec0d73639dca6748560d00" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - ff2bff37-6e2b-4125-992f-fc05207de947 X-Runtime: - '0.220672' Date: - Fri, 01 Jan 2016 02:32:16 GMT X-Rack-Cache: - invalidate, pass Vary: - Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - sameorigin X-Permitted-Cross-Domain-Policies: - none X-Xss-Protection: - 1; mode=block Server: - WEBrick/1.3.1 (Ruby/2.2.5/2016-04-26) Content-Length: - '16' Connection: - Keep-Alive Set-Cookie: - _session_id=Y3BrOW9BVVorak5DQkY2dS84UWNpMzJiMlk1VGFEYk51UFFEeTFsWHJINDF3Qk5ORGlSWXRkYWhYTkpwNUFOTkdnSTBxcWtiK3lDbTFYNUVKM2lCU21WL3NVUjZ5d2NSeC9MaDZhTWlWeUk9LS0wL2NSOTB4T1daYUtQR3d4N2V6UVJ3PT0%3D--54344ae24cd5c5fb059f6b3a8b9eaf5b960647b5; path=/; HttpOnly body: encoding: UTF-8 string: '{"success":true}' http_version: recorded_at: Wed, 21 Mar 2018 04:40:23 GMT recorded_with: VCR 4.0.0