From 5ed45e4381bae791f5e0c64c1356095bc59f3d7d Mon Sep 17 00:00:00 2001 From: k4th Date: Wed, 15 Jul 2026 16:29:10 +0200 Subject: [PATCH 1/2] Fix all pagination --- CLAUDE.md | 105 ++++++++++++++++++++++++++++ lib/beyond_api/all_pages_handler.rb | 2 + 2 files changed, 107 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..2e8b5ff --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,105 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Commands + +```bash +# Install dependencies +bin/setup + +# Run all tests +bundle exec rspec + +# Run a single spec file +bundle exec rspec spec/beyond_api/services/product_management/product_spec.rb + +# Run a single example +bundle exec rspec spec/beyond_api/services/product_management/product_spec.rb -e "returns all products" + +# Lint +bundle exec rubocop + +# Auto-fix lint issues +bundle exec rubocop -a + +# Generate docs +bundle exec rake yard + +# Interactive console (uses .env.development) +bin/console + +# Install gem locally +bundle exec rake install +``` + +## Environment Setup + +Copy `.env.test.template` to `.env.test` and fill in credentials before running tests. Copy `.env.development.template` to `.env.development` for the console. + +Required env vars: `API_URL`, `CLIENT_ID`, `CLIENT_SECRET`, `REFRESH_TOKEN`. + +## Architecture + +This is a Ruby gem wrapping the [ePages Beyond API](https://developer.epages.com/beyond-docs/). It uses **Faraday** for HTTP and **Zeitwerk** for autoloading. + +### Namespace Structure + +Services live under `lib/beyond_api/services/` and are exposed as `BeyondApi::::`: + +- `BeyondApi::Authentication::Token` — OAuth token generation (client credentials, authorization code, refresh token) +- `BeyondApi::Authentication::Signer` — request signing +- `BeyondApi::ProductManagement::Product` — products CRUD +- `BeyondApi::ProductManagement::Category` — product categories +- `BeyondApi::ProductManagement::Image` / `VariationImage` / `Variation` — product media and variations +- `BeyondApi::ProductView::Category` — storefront product view +- `BeyondApi::Checkout::ShippingZone` / `Cart` — checkout flows +- `BeyondApi::Shop::Shop` / `Address` — shop configuration +- `BeyondApi::Storefront::ScriptTag` — storefront scripting +- `BeyondApi::Webhook::Subscription` — webhook management +- `BeyondApi::Customer` — customer records + +### Request/Response Flow + +1. Each service class inherits from `BeyondApi::BaseService`. +2. `BaseService` includes `Concerns::Connection` (HTTP methods: `get`, `post`, `put`, `patch`, `delete`, `upload_file`, `upload_files`) and `Concerns::Pagination`. +3. Request bodies are **camelized** before sending via `Utils.camelize_keys`. `Authentication::Token` disables this (`@camelize_keys = false`). +4. Responses are parsed by `BeyondApi::Response`, which **snake_cases** all keys and converts them to symbols. Leading underscores are stripped (e.g., `_links` → `:links`). +5. Failed responses raise `BeyondApi::Error`; Faraday connection errors raise `BeyondApi::FaradayError`. + +### Pagination + +- `fetch_all_pages(url, params)` — when `params[:paginated] == false`, uses `AllPagesHandler` to automatically fetch and merge all pages; otherwise returns the single paginated response. +- `AllPagesHandler` iterates pages using `all_pagination_size` (default 200) and merges results under the embedded resource key. + +### Authentication + +`Authentication::Token` uses `:basic` authorization (client_id/client_secret) rather than `:bearer`. All other services use bearer token auth. The Faraday connection is lazily built and memoized in `@agent`. + +### Configuration + +```ruby +BeyondApi.setup do |config| + config.client_id = 'your_client_id' + config.client_secret = 'your_client_secret' + config.timeout = 5 # seconds + config.open_timeout = 2 # seconds + config.log_level = :info + config.log_bodies = false + config.log_headers = false + config.all_pagination_size = 200 +end +``` + +### Testing + +Tests use **RSpec** with **VCR** cassettes (`spec/vcr_cassettes/`) to record and replay HTTP interactions. VCR matches on `[:method, :uri, :body]` and filters sensitive data. **FactoryBot** factories are in `spec/factories/`. The helper `beyond_access_token` in `spec_helper.rb` fetches a live token via `client_credentials`. + +To record new cassettes, run with real credentials; existing cassettes are replayed without network access. + +### Code Style + +RuboCop is configured in `.rubocop.yml` with `rubocop-rails`. Notable conventions: +- Symbol arrays use bracket style: `[:foo, :bar]` +- Lambda literals use `->` syntax +- Metric cops (AbcSize, MethodLength, ClassLength, BlockLength) are disabled diff --git a/lib/beyond_api/all_pages_handler.rb b/lib/beyond_api/all_pages_handler.rb index ebce66e..1e929d8 100644 --- a/lib/beyond_api/all_pages_handler.rb +++ b/lib/beyond_api/all_pages_handler.rb @@ -8,6 +8,8 @@ def initialize(session, url, params = {}) @session = session @url = url @params = params + @authorization = :bearer + @camelize_keys = true first_page_data = fetch_page(0) @response = first_page_data From a480e1dd84f652740da2c88cf55e67f50d140bfe Mon Sep 17 00:00:00 2001 From: k4th Date: Fri, 21 Aug 2026 11:25:33 +0200 Subject: [PATCH 2/2] Add locations endpoints --- CLAUDE.md | 3 + .../services/checkout/pickup_option.rb | 116 ++ lib/beyond_api/services/shop/location.rb | 2 +- .../services/checkout/pickup_option_spec.rb | 211 ++ .../beyond_api/services/shop/location_spec.rb | 81 +- spec/factories/location_data.rb | 4 + spec/factories/pickup_option_data.rb | 38 + ...ows_every_page_when_paginated_is_false.yml | 1486 ++++++++++++++ .../_all/honours_the_requested_page_size.yml | 1282 ++++++++++++ .../_all/returns_all_pickup_options.yml | 1395 +++++++++++++ .../_sort/ignores_nil_pickup_option_ids.yml | 1771 +++++++++++++++++ ...eorders_the_pickup_options_of_the_shop.yml | 1771 +++++++++++++++++ .../_create/creates_a_new_pickup_option.yml | 402 ++++ ...error_when_the_location_does_not_exist.yml | 467 +++++ ...rror_when_the_pickup_option_is_invalid.yml | 474 +++++ .../_delete/deletes_a_pickup_option.yml | 850 ++++++++ ..._when_the_pickup_option_does_not_exist.yml | 457 +++++ .../_find/returns_a_pickup_option.yml | 521 +++++ .../_update/updates_a_pickup_option.yml | 522 +++++ ...ows_every_page_when_paginated_is_false.yml | 855 ++++++++ .../_all/honours_the_requested_page_size.yml | 726 +++++++ .../_all/returns_all_shop_locations.yml | 676 ++++++- .../_create/creates_a_new_shop_location.yml | 76 +- ..._an_error_when_the_location_is_invalid.yml | 299 +++ .../_delete/deletes_a_shop_location.yml | 148 +- ...error_when_the_location_does_not_exist.yml | 281 +++ .../_find/returns_a_shop_location.yml | 97 +- .../_update/updates_a_shop_location.yml | 97 +- 28 files changed, 14906 insertions(+), 202 deletions(-) create mode 100644 lib/beyond_api/services/checkout/pickup_option.rb create mode 100644 spec/beyond_api/services/checkout/pickup_option_spec.rb create mode 100644 spec/factories/pickup_option_data.rb create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/follows_every_page_when_paginated_is_false.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/honours_the_requested_page_size.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/returns_all_pickup_options.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_sort/ignores_nil_pickup_option_ids.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_sort/reorders_the_pickup_options_of_the_shop.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/creates_a_new_pickup_option.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/raises_an_error_when_the_location_does_not_exist.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/raises_an_error_when_the_pickup_option_is_invalid.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_delete/deletes_a_pickup_option.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_find/raises_an_error_when_the_pickup_option_does_not_exist.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_find/returns_a_pickup_option.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_update/updates_a_pickup_option.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Shop_Location/_all/follows_every_page_when_paginated_is_false.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Shop_Location/_all/honours_the_requested_page_size.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_create/raises_an_error_when_the_location_is_invalid.yml create mode 100644 spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_find/raises_an_error_when_the_location_does_not_exist.yml diff --git a/CLAUDE.md b/CLAUDE.md index 2e8b5ff..ba9867a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -54,10 +54,13 @@ Services live under `lib/beyond_api/services/` and are exposed as `BeyondApi::] the pickup option UUIDs in the desired order + # + # @return [Hash] an empty hash + # + # @example + # @client.sort(['868be790-e76b-4073-8836-6bb962db6a1f', '7e07bb88-800d-431e-8956-471ef61426cd']) + def sort(pickup_option_ids) + uris = Array(pickup_option_ids).compact.map do |pickup_option_id| + "#{@session.api_url}/pickup-options/#{pickup_option_id}" + end + put_uri_list('pickup-options', uris) + end + + # Delete a pickup option. + # + # @see https://developer.epages.com/beyond-docs/#delete_pickup_option + # + # @param pickup_option_id [String] the pickup option UUID + # + # @return [Hash] an empty hash + # + # @example + # @client.delete('1779a3ed-cb0f-4187-8cd3-e1a86114c669') + def delete(pickup_option_id) + super("pickup-options/#{pickup_option_id}") + end + end + end +end diff --git a/lib/beyond_api/services/shop/location.rb b/lib/beyond_api/services/shop/location.rb index 04bf509..8d8ebc6 100644 --- a/lib/beyond_api/services/shop/location.rb +++ b/lib/beyond_api/services/shop/location.rb @@ -73,7 +73,7 @@ def create(body) # @example # @client.all(size: 100, page: 0) def all(params = {}) - get('shop/locations', params) + fetch_all_pages('shop/locations', params) end # Retrieve details of a location diff --git a/spec/beyond_api/services/checkout/pickup_option_spec.rb b/spec/beyond_api/services/checkout/pickup_option_spec.rb new file mode 100644 index 0000000..44005db --- /dev/null +++ b/spec/beyond_api/services/checkout/pickup_option_spec.rb @@ -0,0 +1,211 @@ +# frozen_string_literal: true + +RSpec.describe BeyondApi::Checkout::PickupOption, vcr: true do + let(:access_token) { beyond_access_token } + let(:client) { described_class.new(api_url: ENV.fetch('API_URL', nil), access_token:) } + let(:location_client) { BeyondApi::Shop::Location.new(api_url: ENV.fetch('API_URL', nil), access_token:) } + + # Every pickup option needs a location of its own, because a location can only + # back a single pickup option. + def create_pickup_option(store_code, attributes = {}) + location = location_client.create(build(:location_data, store_code:, + company_name: "My little Cornershop - #{store_code}")) + @locations << location + + client.create(build(:pickup_option_data, location_id: location[:id], **attributes)).tap do |pickup_option| + @pickup_options << pickup_option + end + end + + def delete_pickup_option(pickup_option) + client.delete(pickup_option[:id]) + # A shop without shipping methods must keep at least one pickup option; that + # 409 is a retry status, so it surfaces as a Faraday error, not a + # BeyondApi::Error. + rescue BeyondApi::Error, Faraday::RetriableResponse # rubocop:disable Lint/SuppressedException + end + + def delete_location(location) + location_client.delete(location[:id]) + rescue BeyondApi::Error # rubocop:disable Lint/SuppressedException + end + + # The shop is not assumed to be empty, so expectations are made against the + # pickup options created by the example rather than against the whole shop. + def pickup_option_names + @pickup_options.map { |pickup_option| pickup_option[:name] } + end + + # `size` is raised above the default page size so that sorting, which applies + # to a single page, covers every pickup option of the shop. + def listed_pickup_options + client.all(size: 100).dig(:embedded, :pickup_options) + end + + before(:each) do + @locations = [] + @pickup_options = [] + end + + # Locations are released after the pickup options referencing them. + after(:each) do + @pickup_options.each { |pickup_option| delete_pickup_option(pickup_option) } + @locations.each { |location| delete_location(location) } + end + + describe '.all' do + before(:each) do + %w[MLC-St-Ives MLC-Penzance MLC-Truro].each do |store_code| + create_pickup_option(store_code, name: "My little Cornershop - #{store_code}") + end + end + + it 'returns all pickup options' do + response = client.all(size: 100) + + expect(response).not_to be nil + expect(response.dig(:embedded, :pickup_options)).to be_kind_of(Array) + expect(response[:page]).to include(:size, :total_elements, :total_pages, :number) + expect(response.dig(:embedded, :pickup_options).map { |pickup_option| pickup_option[:name] }) + .to include(*pickup_option_names) + end + + it 'honours the requested page size' do + response = client.all(size: 2) + + expect(response.dig(:embedded, :pickup_options).size).to eq(2) + expect(response.dig(:page, :size)).to eq(2) + # The three pickup options of this example alone already spread over two pages. + expect(response.dig(:page, :total_pages)).to be >= 2 + end + + it 'follows every page when paginated is false' do + # A page size of two spreads the pickup options over several pages. + BeyondApi.configuration.all_pagination_size = 2 + + response = client.all(paginated: false) + + expect(response.dig(:embedded, :pickup_options).map { |pickup_option| pickup_option[:name] }) + .to include(*pickup_option_names) + expect(response.dig(:embedded, :pickup_options).size).to eq(response.dig(:page, :total_elements)) + expect(response.dig(:page, :total_pages)).to eq(1) + ensure + BeyondApi.configuration.all_pagination_size = 200 + end + end + + describe '.sort' do + before(:each) do + %w[MLC-St-Ives MLC-Penzance MLC-Truro].each do |store_code| + create_pickup_option(store_code, name: "My little Cornershop - #{store_code}") + end + allow(client).to receive(:put_uri_list).and_call_original + end + + # The API expects the pickup options of the whole page, so the order sent is + # a rotation of the shop's current order rather than of the created ones. + def rotated_ids + ids = listed_pickup_options.map { |pickup_option| pickup_option[:id] } + ids.rotate + end + + def expect_sorted_uri_list(order) + expect(client).to have_received(:put_uri_list).with( + 'pickup-options', + order.map { |pickup_option_id| "#{ENV.fetch('API_URL', nil)}/pickup-options/#{pickup_option_id}" } + ) + end + + it 'reorders the pickup options of the shop' do + desired_order = rotated_ids + + response = client.sort(desired_order) + + expect(response).to eq({}) + expect_sorted_uri_list(desired_order) + expect(listed_pickup_options.map { |pickup_option| pickup_option[:id] }).to eq(desired_order) + end + + it 'ignores nil pickup option ids' do + desired_order = rotated_ids + + client.sort(desired_order.flat_map { |pickup_option_id| [pickup_option_id, nil] }) + + expect_sorted_uri_list(desired_order) + expect(listed_pickup_options.map { |pickup_option| pickup_option[:id] }).to eq(desired_order) + end + end + + context 'with pickup option' do + before(:each) do + @pickup_option = create_pickup_option('MLC-St-Ives') + end + + describe '.create' do + it 'creates a new pickup option' do + expect(@pickup_option).not_to be nil + expect(@pickup_option[:id]).to be_present + expect(@pickup_option[:name]).to eq('My little Cornershop - St.Ives') + expect(@pickup_option[:tax_class]).to eq('REGULAR') + expect(@pickup_option[:phone_number_required]).to be true + expect(@pickup_option[:free_pickup_value]).to eq(currency: 'EUR', amount: 50) + expect(@pickup_option[:fixed_price]).to eq(tax_model: 'GROSS', currency: 'EUR', amount: 1) + expect(@pickup_option.dig(:embedded, :location, :id)).to eq(@locations.first[:id]) + end + + it 'raises an error when the pickup option is invalid' do + expect do + client.create(build(:pickup_option_data, :without_name, location_id: @locations.first[:id])) + end.to raise_error(BeyondApi::Error) + end + + it 'raises an error when the location does not exist' do + expect do + client.create(build(:pickup_option_data, location_id: '00000000-0000-0000-0000-000000000000')) + end.to raise_error(BeyondApi::Error) + end + end + + describe '.find' do + it 'returns a pickup option' do + response = client.find(@pickup_option[:id]) + + expect(response[:id]).to eq(@pickup_option[:id]) + expect(response[:name]).to eq('My little Cornershop - St.Ives') + expect(response.dig(:embedded, :location, :store_code)).to eq('MLC-St-Ives') + end + + it 'raises an error when the pickup option does not exist' do + expect do + client.find('00000000-0000-0000-0000-000000000000') + end.to raise_error(BeyondApi::Error) + end + end + + describe '.update' do + it 'updates a pickup option' do + response = client.update(@pickup_option[:id], + build(:pickup_option_data, :alternative_name, + location_id: @locations.first[:id])) + + expect(response).not_to be nil + expect(response[:id]).to eq(@pickup_option[:id]) + expect(response[:name]).to eq('Updated Cornershop') + expect(response[:tax_class]).to eq('REGULAR') + end + end + + describe '.delete' do + it 'deletes a pickup option' do + # The shop must keep at least one pickup option as long as it has no + # shipping methods, so a second one takes over that role here. + create_pickup_option('MLC-Penzance', name: 'My little Cornershop - MLC-Penzance') + + response = client.delete(@pickup_option[:id]) + + expect(response).to eq({}) + expect { client.find(@pickup_option[:id]) }.to raise_error(BeyondApi::Error) + end + end + end +end diff --git a/spec/beyond_api/services/shop/location_spec.rb b/spec/beyond_api/services/shop/location_spec.rb index 45ada88..8c379a3 100644 --- a/spec/beyond_api/services/shop/location_spec.rb +++ b/spec/beyond_api/services/shop/location_spec.rb @@ -3,13 +3,53 @@ RSpec.describe BeyondApi::Shop::Location, vcr: true do let(:client) { described_class.new(api_url: ENV.fetch('API_URL', nil), access_token: beyond_access_token) } + def delete_location(location) + client.delete(location[:id]) + rescue BeyondApi::Error # rubocop:disable Lint/SuppressedException + end + describe '.all' do + before(:each) do + @locations = %w[MLC-St-Ives MLC-Penzance MLC-Truro].map do |store_code| + client.create(build(:location_data, store_code:, + company_name: "My little Cornershop - #{store_code}")) + end + end + + after(:each) do + @locations.each { |location| delete_location(location) } + end + it 'returns all shop locations' do response = client.all - expect(response).to be_present + expect(response).not_to be nil expect(response.dig(:embedded, :locations)).to be_kind_of(Array) - expect(response[:page]).to be_kind_of(Hash) + expect(response[:page]).to include(:size, :total_elements, :total_pages, :number) + expect(response.dig(:embedded, :locations).map { |location| location[:store_code] }) + .to eq(%w[MLC-St-Ives MLC-Penzance MLC-Truro]) + end + + it 'honours the requested page size' do + response = client.all(size: 2) + + expect(response.dig(:embedded, :locations).size).to eq(2) + expect(response.dig(:page, :size)).to eq(2) + expect(response.dig(:page, :total_pages)).to eq(2) + end + + it 'follows every page when paginated is false' do + # A page size of two spreads the three locations over two pages. + BeyondApi.configuration.all_pagination_size = 2 + + response = client.all(paginated: false) + + expect(response.dig(:embedded, :locations).map { |location| location[:store_code] }) + .to eq(%w[MLC-St-Ives MLC-Penzance MLC-Truro]) + expect(response.dig(:page, :total_pages)).to eq(1) + expect(response.dig(:page, :total_elements)).to eq(3) + ensure + BeyondApi.configuration.all_pagination_size = 200 end end @@ -19,38 +59,63 @@ end after(:each) do - client.delete(@location[:id]) - rescue BeyondApi::Error # rubocop:disable Lint/SuppressedException + delete_location(@location) end describe '.create' do it 'creates a new shop location' do - expect(@location).to be_present + expect(@location).not_to be nil + expect(@location[:id]).to be_present expect(@location[:store_code]).to eq('MLC-St-Ives') + expect(@location[:company_name]).to eq('My little Cornershop - St.Ives') + expect(@location[:google_status]).to eq('ACTIVE') + expect(@location[:address]).to include(street: 'Hudson Way', house_number: '27', city: 'St.Ives', + postal_code: '90999', country: 'GB', state: 'Cornwall') + expect(@location[:lat_lng]).to eq(latitude: 53.5847424, longitude: 9.968901) + end + + it 'raises an error when the location is invalid' do + expect do + client.create(build(:location_data, :without_store_code)) + end.to raise_error(BeyondApi::Error, /input-validation-failed/) end end describe '.find' do it 'returns a shop location' do response = client.find(@location[:id]) + + expect(response[:id]).to eq(@location[:id]) expect(response[:store_code]).to eq('MLC-St-Ives') + expect(response.dig(:regular_hours, :periods).map { |period| period[:open_day] }) + .to eq(%w[MONDAY SATURDAY]) + expect(response.dig(:google_primary_category, :display_name)).to eq('Food') + end + + it 'raises an error when the location does not exist' do + expect do + client.find('00000000-0000-0000-0000-000000000000') + end.to raise_error(BeyondApi::Error) end end describe '.update' do it 'updates a shop location' do - updated_location_data = FactoryBot.build(:location_data, :alternative_name) - response = client.update(@location[:id], updated_location_data) + response = client.update(@location[:id], build(:location_data, :alternative_name)) - expect(response).to be_present + expect(response).not_to be nil + expect(response[:id]).to eq(@location[:id]) expect(response[:company_name]).to eq('Updated Cornershop') + expect(response[:store_code]).to eq('MLC-St-Ives') end end describe '.delete' do it 'deletes a shop location' do response = client.delete(@location[:id]) + expect(response).to eq({}) + expect { client.find(@location[:id]) }.to raise_error(BeyondApi::Error) end end end diff --git a/spec/factories/location_data.rb b/spec/factories/location_data.rb index 8cd1d28..b24b4c3 100644 --- a/spec/factories/location_data.rb +++ b/spec/factories/location_data.rb @@ -67,6 +67,10 @@ company_name { 'Updated Cornershop' } end + trait :without_store_code do + store_code { nil } + end + initialize_with { attributes } end end diff --git a/spec/factories/pickup_option_data.rb b/spec/factories/pickup_option_data.rb new file mode 100644 index 0000000..aa7fdf2 --- /dev/null +++ b/spec/factories/pickup_option_data.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :pickup_option_data, class: Hash do + name { 'My little Cornershop - St.Ives' } + description do + 'We will send you an email when your items are ready for pickup. ' \ + 'Please bring a copy of your order confirmation.' + end + tax_class { 'REGULAR' } + phone_number_required { true } + + free_pickup_value do + { + currency: 'EUR', + amount: 50 + } + end + + fixed_price do + { + tax_model: 'GROSS', + currency: 'EUR', + amount: 1 + } + end + + trait :alternative_name do + name { 'Updated Cornershop' } + end + + trait :without_name do + name { nil } + end + + initialize_with { attributes } + end +end diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/follows_every_page_when_paginated_is_false.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/follows_every_page_when_paginated_is_false.yml new file mode 100644 index 0000000..1e787d9 --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/follows_every_page_when_paginated_is_false.yml @@ -0,0 +1,1486 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:02 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.097' + X-B3-Traceid: + - 3a127fa23a8d49d8e4798bfb507b1754 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303762,"jti":"16098c3b-3884-4a11-9923-cba594ebcd34"}' + recorded_at: Fri, 21 Aug 2026 09:16:02 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:02 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/31974586-0384-4536-a111-6278df0aa1cc + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.049' + X-B3-Traceid: + - b2da747d7c8871634a8fd4c4d8e18254 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "31974586-0384-4536-a111-6278df0aa1cc", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/31974586-0384-4536-a111-6278df0aa1cc" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:02 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-St-Ives","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"31974586-0384-4536-a111-6278df0aa1cc"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:02 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/36b873db-ef82-4342-84ca-7db11a75a88a + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.053' + X-B3-Traceid: + - ef622d528e416ace595743c85abfc8d7 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 13, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/31974586-0384-4536-a111-6278df0aa1cc" + } + }, + "_id" : "31974586-0384-4536-a111-6278df0aa1cc" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/36b873db-ef82-4342-84ca-7db11a75a88a" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/36b873db-ef82-4342-84ca-7db11a75a88a" + } + }, + "_id" : "36b873db-ef82-4342-84ca-7db11a75a88a" + } + recorded_at: Fri, 21 Aug 2026 09:16:02 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Penzance","companyName":"My little + Cornershop - MLC-Penzance","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:03 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/857de024-0123-4eb1-bcad-16416a8979a8 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.048' + X-B3-Traceid: + - c724251eb1275b1a359f1c12ee0a34f3 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "857de024-0123-4eb1-bcad-16416a8979a8", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/857de024-0123-4eb1-bcad-16416a8979a8" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:02 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Penzance","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"857de024-0123-4eb1-bcad-16416a8979a8"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:03 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/996b2a8d-7f47-45ea-a112-d15e39488b6f + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.048' + X-B3-Traceid: + - 32a5d30c4a120b510e546c01414ee7b8 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 14, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/857de024-0123-4eb1-bcad-16416a8979a8" + } + }, + "_id" : "857de024-0123-4eb1-bcad-16416a8979a8" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/996b2a8d-7f47-45ea-a112-d15e39488b6f" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/996b2a8d-7f47-45ea-a112-d15e39488b6f" + } + }, + "_id" : "996b2a8d-7f47-45ea-a112-d15e39488b6f" + } + recorded_at: Fri, 21 Aug 2026 09:16:03 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Truro","companyName":"My little + Cornershop - MLC-Truro","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:03 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/9efda9c1-ef56-443b-986a-5a88fdfbf727 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.045' + X-B3-Traceid: + - df27be21f42f8117a3759d8e92663f06 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "9efda9c1-ef56-443b-986a-5a88fdfbf727", + "storeCode" : "MLC-Truro", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/9efda9c1-ef56-443b-986a-5a88fdfbf727" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:03 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Truro","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"9efda9c1-ef56-443b-986a-5a88fdfbf727"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:03 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/7174b791-b9e8-4b31-9c3f-ebfcb795a785 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.041' + X-B3-Traceid: + - 86398fdbc390da812d70197b6f6a7ae1 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 15, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/9efda9c1-ef56-443b-986a-5a88fdfbf727" + } + }, + "_id" : "9efda9c1-ef56-443b-986a-5a88fdfbf727" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/7174b791-b9e8-4b31-9c3f-ebfcb795a785" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/7174b791-b9e8-4b31-9c3f-ebfcb795a785" + } + }, + "_id" : "7174b791-b9e8-4b31-9c3f-ebfcb795a785" + } + recorded_at: Fri, 21 Aug 2026 09:16:03 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=0&paginated=false&size=2 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:03 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.033' + X-B3-Traceid: + - 8864590ec3127ad4b36e5f523a95d926 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "pickup-options" : [ { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 12, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_id" : "f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + } + }, + "_id" : "87cfb9b1-d322-4f78-8039-efcfac1db753" + }, { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 13, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/31974586-0384-4536-a111-6278df0aa1cc" + } + }, + "_id" : "31974586-0384-4536-a111-6278df0aa1cc" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/36b873db-ef82-4342-84ca-7db11a75a88a" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/36b873db-ef82-4342-84ca-7db11a75a88a" + } + }, + "_id" : "36b873db-ef82-4342-84ca-7db11a75a88a" + } ] + }, + "_links" : { + "first" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?paginated=false&page=0&size=2" + }, + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?paginated=false&page=0&size=2" + }, + "next" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?paginated=false&page=1&size=2" + }, + "last" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?paginated=false&page=1&size=2" + } + }, + "page" : { + "size" : 2, + "totalElements" : 4, + "totalPages" : 2, + "number" : 0 + } + } + recorded_at: Fri, 21 Aug 2026 09:16:03 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=1&paginated=false&size=2 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:03 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.035' + X-B3-Traceid: + - 9c60b8c50880c95d0bc4e06dd13ec3bb + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "pickup-options" : [ { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 14, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/857de024-0123-4eb1-bcad-16416a8979a8" + } + }, + "_id" : "857de024-0123-4eb1-bcad-16416a8979a8" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/996b2a8d-7f47-45ea-a112-d15e39488b6f" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/996b2a8d-7f47-45ea-a112-d15e39488b6f" + } + }, + "_id" : "996b2a8d-7f47-45ea-a112-d15e39488b6f" + }, { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 15, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/9efda9c1-ef56-443b-986a-5a88fdfbf727" + } + }, + "_id" : "9efda9c1-ef56-443b-986a-5a88fdfbf727" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/7174b791-b9e8-4b31-9c3f-ebfcb795a785" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/7174b791-b9e8-4b31-9c3f-ebfcb795a785" + } + }, + "_id" : "7174b791-b9e8-4b31-9c3f-ebfcb795a785" + } ] + }, + "_links" : { + "first" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?paginated=false&page=0&size=2" + }, + "prev" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?paginated=false&page=0&size=2" + }, + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?paginated=false&page=1&size=2" + }, + "last" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?paginated=false&page=1&size=2" + } + }, + "page" : { + "size" : 2, + "totalElements" : 4, + "totalPages" : 2, + "number" : 1 + } + } + recorded_at: Fri, 21 Aug 2026 09:16:03 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/36b873db-ef82-4342-84ca-7db11a75a88a + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:03 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.046' + X-B3-Traceid: + - 45e63ef0af72d892a9988b4e2f1e9cf8 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:03 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/996b2a8d-7f47-45ea-a112-d15e39488b6f + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:03 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.048' + X-B3-Traceid: + - 0f075ddfab883e7300e04d2a6c4b69a2 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:03 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/7174b791-b9e8-4b31-9c3f-ebfcb795a785 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:04 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.059' + X-B3-Traceid: + - d5d7f5fbfc2f4d62fc6435b8d9bae770 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:03 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/31974586-0384-4536-a111-6278df0aa1cc + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:04 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.055' + X-B3-Traceid: + - b784ac638058c097250961d9ac63e205 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:04 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/857de024-0123-4eb1-bcad-16416a8979a8 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:04 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.051' + X-B3-Traceid: + - 5d31f4c4811893d6a64b85bd8ba8611a + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:04 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/9efda9c1-ef56-443b-986a-5a88fdfbf727 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:04 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.052' + X-B3-Traceid: + - 86633c2f239dcc9dda247a69a50221fe + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:04 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/honours_the_requested_page_size.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/honours_the_requested_page_size.yml new file mode 100644 index 0000000..3e93a39 --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/honours_the_requested_page_size.yml @@ -0,0 +1,1282 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:00 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.073' + X-B3-Traceid: + - 0d74a88303f899b37985c0f81a1c7e8d + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303760,"jti":"d0193cbe-7229-4e8b-9121-71671cf1e726"}' + recorded_at: Fri, 21 Aug 2026 09:16:00 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:00 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/0bfa008e-966b-4084-ba36-471bac2363b7 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.050' + X-B3-Traceid: + - dc77e9cce766611f99f5503263aca314 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "0bfa008e-966b-4084-ba36-471bac2363b7", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/0bfa008e-966b-4084-ba36-471bac2363b7" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:00 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-St-Ives","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"0bfa008e-966b-4084-ba36-471bac2363b7"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:00 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/c2496cc1-cc61-4b51-998f-84ba3516288a + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.044' + X-B3-Traceid: + - 8fb13cb2e7d544fa584dd393fbbbe706 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 13, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/0bfa008e-966b-4084-ba36-471bac2363b7" + } + }, + "_id" : "0bfa008e-966b-4084-ba36-471bac2363b7" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/c2496cc1-cc61-4b51-998f-84ba3516288a" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/c2496cc1-cc61-4b51-998f-84ba3516288a" + } + }, + "_id" : "c2496cc1-cc61-4b51-998f-84ba3516288a" + } + recorded_at: Fri, 21 Aug 2026 09:16:00 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Penzance","companyName":"My little + Cornershop - MLC-Penzance","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:00 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/482a1267-88ac-48b4-bee4-ea4574f92dc0 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.044' + X-B3-Traceid: + - fdd773039d694eeef07561b7803478ae + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "482a1267-88ac-48b4-bee4-ea4574f92dc0", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/482a1267-88ac-48b4-bee4-ea4574f92dc0" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:00 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Penzance","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"482a1267-88ac-48b4-bee4-ea4574f92dc0"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:01 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/1891b54b-dcae-4bcb-9ee6-0288aa7606ac + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.264' + X-B3-Traceid: + - a8e7899a02c3855cfd1e54e6cf1b6d99 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 14, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/482a1267-88ac-48b4-bee4-ea4574f92dc0" + } + }, + "_id" : "482a1267-88ac-48b4-bee4-ea4574f92dc0" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/1891b54b-dcae-4bcb-9ee6-0288aa7606ac" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/1891b54b-dcae-4bcb-9ee6-0288aa7606ac" + } + }, + "_id" : "1891b54b-dcae-4bcb-9ee6-0288aa7606ac" + } + recorded_at: Fri, 21 Aug 2026 09:16:01 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Truro","companyName":"My little + Cornershop - MLC-Truro","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:01 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/3df7c2f8-611b-44a6-8e10-7c90b6d90046 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.052' + X-B3-Traceid: + - 80000faf0b7c74aec7669dfa6024ffec + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "3df7c2f8-611b-44a6-8e10-7c90b6d90046", + "storeCode" : "MLC-Truro", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/3df7c2f8-611b-44a6-8e10-7c90b6d90046" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:01 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Truro","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"3df7c2f8-611b-44a6-8e10-7c90b6d90046"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:01 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/5f15354b-78d8-4f8e-b3da-414072091c6b + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.048' + X-B3-Traceid: + - b2a619e7b1385124a51fcd157ec8c12e + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 15, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/3df7c2f8-611b-44a6-8e10-7c90b6d90046" + } + }, + "_id" : "3df7c2f8-611b-44a6-8e10-7c90b6d90046" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/5f15354b-78d8-4f8e-b3da-414072091c6b" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/5f15354b-78d8-4f8e-b3da-414072091c6b" + } + }, + "_id" : "5f15354b-78d8-4f8e-b3da-414072091c6b" + } + recorded_at: Fri, 21 Aug 2026 09:16:01 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options?size=2 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:01 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.032' + X-B3-Traceid: + - bb9d4f9ce4a27fe8798e915210a0c9b8 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "pickup-options" : [ { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 12, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_id" : "f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + } + }, + "_id" : "87cfb9b1-d322-4f78-8039-efcfac1db753" + }, { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 13, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/0bfa008e-966b-4084-ba36-471bac2363b7" + } + }, + "_id" : "0bfa008e-966b-4084-ba36-471bac2363b7" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/c2496cc1-cc61-4b51-998f-84ba3516288a" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/c2496cc1-cc61-4b51-998f-84ba3516288a" + } + }, + "_id" : "c2496cc1-cc61-4b51-998f-84ba3516288a" + } ] + }, + "_links" : { + "first" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=0&size=2" + }, + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=0&size=2" + }, + "next" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=1&size=2" + }, + "last" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=1&size=2" + } + }, + "page" : { + "size" : 2, + "totalElements" : 4, + "totalPages" : 2, + "number" : 0 + } + } + recorded_at: Fri, 21 Aug 2026 09:16:01 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/c2496cc1-cc61-4b51-998f-84ba3516288a + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:01 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.057' + X-B3-Traceid: + - af1eaba14c8c84c0e48a0c2ce4b96f78 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:01 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/1891b54b-dcae-4bcb-9ee6-0288aa7606ac + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:01 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.046' + X-B3-Traceid: + - c7cd2a9908a1d225da047797417e616c + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:01 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/5f15354b-78d8-4f8e-b3da-414072091c6b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:01 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.043' + X-B3-Traceid: + - 123df3d56d68df28b39e8c5f3df6131b + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:01 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/0bfa008e-966b-4084-ba36-471bac2363b7 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:02 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.043' + X-B3-Traceid: + - 915eada6c5cfa2dcea96b947a24d88f5 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:02 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/482a1267-88ac-48b4-bee4-ea4574f92dc0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:02 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.047' + X-B3-Traceid: + - 8f0ae0e6a3cc869cede805dd9a40b505 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:02 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/3df7c2f8-611b-44a6-8e10-7c90b6d90046 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:02 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.053' + X-B3-Traceid: + - b294575ac16b1d16f913522775929477 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:02 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/returns_all_pickup_options.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/returns_all_pickup_options.yml new file mode 100644 index 0000000..dd33e3d --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_all/returns_all_pickup_options.yml @@ -0,0 +1,1395 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:15:58 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.085' + X-B3-Traceid: + - 6c6742a960ff4e5769777e3c368a2e38 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303758,"jti":"d2a93878-ff4e-4499-b863-878945a869d9"}' + recorded_at: Fri, 21 Aug 2026 09:15:58 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:15:58 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d61c32d9-ad48-474d-9494-4f92bd25ca9a + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.051' + X-B3-Traceid: + - 7cfbfdcf1405540550e53e50e82f8ffe + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "d61c32d9-ad48-474d-9494-4f92bd25ca9a", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d61c32d9-ad48-474d-9494-4f92bd25ca9a" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:15:58 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-St-Ives","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"d61c32d9-ad48-474d-9494-4f92bd25ca9a"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:15:58 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dca05386-3755-407c-952f-644f2efa6b44 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.056' + X-B3-Traceid: + - 21674f7e76ba7898865d32bce815cb39 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 13, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d61c32d9-ad48-474d-9494-4f92bd25ca9a" + } + }, + "_id" : "d61c32d9-ad48-474d-9494-4f92bd25ca9a" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dca05386-3755-407c-952f-644f2efa6b44" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dca05386-3755-407c-952f-644f2efa6b44" + } + }, + "_id" : "dca05386-3755-407c-952f-644f2efa6b44" + } + recorded_at: Fri, 21 Aug 2026 09:15:58 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Penzance","companyName":"My little + Cornershop - MLC-Penzance","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:15:58 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/521b6535-79f2-4742-ae3a-a8681f319af3 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.047' + X-B3-Traceid: + - c3b2eb70232d73d746d87dfe9da41f2c + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "521b6535-79f2-4742-ae3a-a8681f319af3", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/521b6535-79f2-4742-ae3a-a8681f319af3" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:15:58 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Penzance","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"521b6535-79f2-4742-ae3a-a8681f319af3"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:15:58 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/8a2ae259-c673-4639-908b-8bfa73a669d2 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.039' + X-B3-Traceid: + - 0bf51aa149b4a32b12a3acf5f462cd24 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 14, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/521b6535-79f2-4742-ae3a-a8681f319af3" + } + }, + "_id" : "521b6535-79f2-4742-ae3a-a8681f319af3" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/8a2ae259-c673-4639-908b-8bfa73a669d2" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/8a2ae259-c673-4639-908b-8bfa73a669d2" + } + }, + "_id" : "8a2ae259-c673-4639-908b-8bfa73a669d2" + } + recorded_at: Fri, 21 Aug 2026 09:15:58 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Truro","companyName":"My little + Cornershop - MLC-Truro","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:15:58 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c6a46839-b918-47e5-a42e-b71aecec25c5 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.085' + X-B3-Traceid: + - 31169a287c5e55df514129e85b080b03 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "c6a46839-b918-47e5-a42e-b71aecec25c5", + "storeCode" : "MLC-Truro", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c6a46839-b918-47e5-a42e-b71aecec25c5" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:15:58 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Truro","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"c6a46839-b918-47e5-a42e-b71aecec25c5"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:15:59 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/ca365230-14da-402a-8851-091247094d35 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.136' + X-B3-Traceid: + - e9e8121653cf66e5ec6541c8b968d9e7 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 15, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c6a46839-b918-47e5-a42e-b71aecec25c5" + } + }, + "_id" : "c6a46839-b918-47e5-a42e-b71aecec25c5" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/ca365230-14da-402a-8851-091247094d35" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/ca365230-14da-402a-8851-091247094d35" + } + }, + "_id" : "ca365230-14da-402a-8851-091247094d35" + } + recorded_at: Fri, 21 Aug 2026 09:15:59 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options?size=100 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:15:59 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.042' + X-B3-Traceid: + - 1786048248a6fad9ff36c828910d940d + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "pickup-options" : [ { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 12, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_id" : "f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + } + }, + "_id" : "87cfb9b1-d322-4f78-8039-efcfac1db753" + }, { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 13, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d61c32d9-ad48-474d-9494-4f92bd25ca9a" + } + }, + "_id" : "d61c32d9-ad48-474d-9494-4f92bd25ca9a" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dca05386-3755-407c-952f-644f2efa6b44" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dca05386-3755-407c-952f-644f2efa6b44" + } + }, + "_id" : "dca05386-3755-407c-952f-644f2efa6b44" + }, { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 14, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/521b6535-79f2-4742-ae3a-a8681f319af3" + } + }, + "_id" : "521b6535-79f2-4742-ae3a-a8681f319af3" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/8a2ae259-c673-4639-908b-8bfa73a669d2" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/8a2ae259-c673-4639-908b-8bfa73a669d2" + } + }, + "_id" : "8a2ae259-c673-4639-908b-8bfa73a669d2" + }, { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 15, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c6a46839-b918-47e5-a42e-b71aecec25c5" + } + }, + "_id" : "c6a46839-b918-47e5-a42e-b71aecec25c5" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/ca365230-14da-402a-8851-091247094d35" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/ca365230-14da-402a-8851-091247094d35" + } + }, + "_id" : "ca365230-14da-402a-8851-091247094d35" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=0&size=100" + } + }, + "page" : { + "size" : 100, + "totalElements" : 4, + "totalPages" : 1, + "number" : 0 + } + } + recorded_at: Fri, 21 Aug 2026 09:15:59 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dca05386-3755-407c-952f-644f2efa6b44 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:15:59 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.170' + X-B3-Traceid: + - 110309557175758e5d00ba44dcfe02b9 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:15:59 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/8a2ae259-c673-4639-908b-8bfa73a669d2 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:15:59 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.048' + X-B3-Traceid: + - 6a1623d8d07bf65e1e7832fe1a4960fb + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:15:59 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/ca365230-14da-402a-8851-091247094d35 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:15:59 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.061' + X-B3-Traceid: + - 8d1befaf5fece3af1e4d17d8e9e85f7c + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:15:59 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d61c32d9-ad48-474d-9494-4f92bd25ca9a + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:00 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.042' + X-B3-Traceid: + - 982e39ac55ae62574c2fc8933fd0c225 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:15:59 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/521b6535-79f2-4742-ae3a-a8681f319af3 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:00 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.047' + X-B3-Traceid: + - 29911a7e3cb0a0d4884a1a9484dac026 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:00 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c6a46839-b918-47e5-a42e-b71aecec25c5 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:00 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.051' + X-B3-Traceid: + - 374731a3a1234ee9694c25802a3dd437 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:00 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_sort/ignores_nil_pickup_option_ids.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_sort/ignores_nil_pickup_option_ids.yml new file mode 100644 index 0000000..a40ed25 --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_sort/ignores_nil_pickup_option_ids.yml @@ -0,0 +1,1771 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:07 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.082' + X-B3-Traceid: + - 4438e276a5d7f31a3c3c09f338f6cc36 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303767,"jti":"c3f03bde-5a7f-47e0-b0d1-722065e2bb78"}' + recorded_at: Fri, 21 Aug 2026 09:16:07 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:07 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/39ec9892-93cb-4364-b8b1-5352ef2ac355 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.058' + X-B3-Traceid: + - 6b71c1cf141d2415487609ede0d8e3bc + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "39ec9892-93cb-4364-b8b1-5352ef2ac355", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/39ec9892-93cb-4364-b8b1-5352ef2ac355" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:07 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-St-Ives","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"39ec9892-93cb-4364-b8b1-5352ef2ac355"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:07 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/62bb12ec-e84c-4986-b300-0bfcc488395b + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.044' + X-B3-Traceid: + - f2e376543c743e35da0b994d8070bb74 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 17, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/39ec9892-93cb-4364-b8b1-5352ef2ac355" + } + }, + "_id" : "39ec9892-93cb-4364-b8b1-5352ef2ac355" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/62bb12ec-e84c-4986-b300-0bfcc488395b" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/62bb12ec-e84c-4986-b300-0bfcc488395b" + } + }, + "_id" : "62bb12ec-e84c-4986-b300-0bfcc488395b" + } + recorded_at: Fri, 21 Aug 2026 09:16:07 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Penzance","companyName":"My little + Cornershop - MLC-Penzance","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:07 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/e5dac2df-fe05-4533-b00e-3a4ff667d956 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.048' + X-B3-Traceid: + - 2af72f816df76b802dfa242a997e22b3 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "e5dac2df-fe05-4533-b00e-3a4ff667d956", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/e5dac2df-fe05-4533-b00e-3a4ff667d956" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:07 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Penzance","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"e5dac2df-fe05-4533-b00e-3a4ff667d956"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:07 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/d7ef3e63-392c-45e4-9d71-fc3f0bba439e + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.061' + X-B3-Traceid: + - c8f9a2b576116980cb19b1d6545e8cb5 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 18, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/e5dac2df-fe05-4533-b00e-3a4ff667d956" + } + }, + "_id" : "e5dac2df-fe05-4533-b00e-3a4ff667d956" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/d7ef3e63-392c-45e4-9d71-fc3f0bba439e" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/d7ef3e63-392c-45e4-9d71-fc3f0bba439e" + } + }, + "_id" : "d7ef3e63-392c-45e4-9d71-fc3f0bba439e" + } + recorded_at: Fri, 21 Aug 2026 09:16:07 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Truro","companyName":"My little + Cornershop - MLC-Truro","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:08 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/fbe30a08-be5a-428b-9178-ede3c20a2888 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.046' + X-B3-Traceid: + - 709e9841f0987276eda15899a229b052 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "fbe30a08-be5a-428b-9178-ede3c20a2888", + "storeCode" : "MLC-Truro", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/fbe30a08-be5a-428b-9178-ede3c20a2888" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:08 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Truro","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"fbe30a08-be5a-428b-9178-ede3c20a2888"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:08 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/64c66b59-08f2-4fd6-b971-a08b206996ff + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.050' + X-B3-Traceid: + - f6c01415cf15b462dfec1418882e9b1c + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 19, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/fbe30a08-be5a-428b-9178-ede3c20a2888" + } + }, + "_id" : "fbe30a08-be5a-428b-9178-ede3c20a2888" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/64c66b59-08f2-4fd6-b971-a08b206996ff" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/64c66b59-08f2-4fd6-b971-a08b206996ff" + } + }, + "_id" : "64c66b59-08f2-4fd6-b971-a08b206996ff" + } + recorded_at: Fri, 21 Aug 2026 09:16:08 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options?size=100 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:08 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.043' + X-B3-Traceid: + - a975708d537a4ff8e6b5237dd9c18a8c + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "pickup-options" : [ { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 16, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_id" : "f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + } + }, + "_id" : "87cfb9b1-d322-4f78-8039-efcfac1db753" + }, { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 17, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/39ec9892-93cb-4364-b8b1-5352ef2ac355" + } + }, + "_id" : "39ec9892-93cb-4364-b8b1-5352ef2ac355" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/62bb12ec-e84c-4986-b300-0bfcc488395b" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/62bb12ec-e84c-4986-b300-0bfcc488395b" + } + }, + "_id" : "62bb12ec-e84c-4986-b300-0bfcc488395b" + }, { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 18, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/e5dac2df-fe05-4533-b00e-3a4ff667d956" + } + }, + "_id" : "e5dac2df-fe05-4533-b00e-3a4ff667d956" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/d7ef3e63-392c-45e4-9d71-fc3f0bba439e" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/d7ef3e63-392c-45e4-9d71-fc3f0bba439e" + } + }, + "_id" : "d7ef3e63-392c-45e4-9d71-fc3f0bba439e" + }, { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 19, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/fbe30a08-be5a-428b-9178-ede3c20a2888" + } + }, + "_id" : "fbe30a08-be5a-428b-9178-ede3c20a2888" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/64c66b59-08f2-4fd6-b971-a08b206996ff" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/64c66b59-08f2-4fd6-b971-a08b206996ff" + } + }, + "_id" : "64c66b59-08f2-4fd6-b971-a08b206996ff" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=0&size=100" + } + }, + "page" : { + "size" : 100, + "totalElements" : 4, + "totalPages" : 1, + "number" : 0 + } + } + recorded_at: Fri, 21 Aug 2026 09:16:08 GMT +- request: + method: put + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: |- + https://team42-beyond-api.beyondshop.cloud/api/pickup-options/62bb12ec-e84c-4986-b300-0bfcc488395b + https://team42-beyond-api.beyondshop.cloud/api/pickup-options/d7ef3e63-392c-45e4-9d71-fc3f0bba439e + https://team42-beyond-api.beyondshop.cloud/api/pickup-options/64c66b59-08f2-4fd6-b971-a08b206996ff + https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753 + headers: + Accept: + - application/json + User-Agent: + - Faraday v2.14.1 + Content-Type: + - text/uri-list + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:08 GMT + Connection: + - keep-alive + Location: + - "/api/pickup-options" + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.080' + X-B3-Traceid: + - f3ad7fcce43977d7f2494f37ff66882a + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:08 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options?size=100 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:08 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.042' + X-B3-Traceid: + - 6305832fc75566925f92f60edb542258 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "pickup-options" : [ { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 17, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/39ec9892-93cb-4364-b8b1-5352ef2ac355" + } + }, + "_id" : "39ec9892-93cb-4364-b8b1-5352ef2ac355" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/62bb12ec-e84c-4986-b300-0bfcc488395b" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/62bb12ec-e84c-4986-b300-0bfcc488395b" + } + }, + "_id" : "62bb12ec-e84c-4986-b300-0bfcc488395b" + }, { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 18, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/e5dac2df-fe05-4533-b00e-3a4ff667d956" + } + }, + "_id" : "e5dac2df-fe05-4533-b00e-3a4ff667d956" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/d7ef3e63-392c-45e4-9d71-fc3f0bba439e" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/d7ef3e63-392c-45e4-9d71-fc3f0bba439e" + } + }, + "_id" : "d7ef3e63-392c-45e4-9d71-fc3f0bba439e" + }, { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 19, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/fbe30a08-be5a-428b-9178-ede3c20a2888" + } + }, + "_id" : "fbe30a08-be5a-428b-9178-ede3c20a2888" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/64c66b59-08f2-4fd6-b971-a08b206996ff" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/64c66b59-08f2-4fd6-b971-a08b206996ff" + } + }, + "_id" : "64c66b59-08f2-4fd6-b971-a08b206996ff" + }, { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 20, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_id" : "f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + } + }, + "_id" : "87cfb9b1-d322-4f78-8039-efcfac1db753" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=0&size=100" + } + }, + "page" : { + "size" : 100, + "totalElements" : 4, + "totalPages" : 1, + "number" : 0 + } + } + recorded_at: Fri, 21 Aug 2026 09:16:08 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/62bb12ec-e84c-4986-b300-0bfcc488395b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:08 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.044' + X-B3-Traceid: + - 3fd09a11960cafbf37debaedbbd31a4f + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:08 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/d7ef3e63-392c-45e4-9d71-fc3f0bba439e + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:08 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.052' + X-B3-Traceid: + - 898a75e2baacc9fadd463b6657ea7ce1 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:08 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/64c66b59-08f2-4fd6-b971-a08b206996ff + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:09 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.059' + X-B3-Traceid: + - 0c1c624d645e497349e6fc6a1eef5d87 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:08 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/39ec9892-93cb-4364-b8b1-5352ef2ac355 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:09 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.041' + X-B3-Traceid: + - 91eec3cc1d139ec41492daaeaff7ebd1 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:09 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/e5dac2df-fe05-4533-b00e-3a4ff667d956 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:09 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.045' + X-B3-Traceid: + - 42b5680be2b304ed29e855cc55847171 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:09 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/fbe30a08-be5a-428b-9178-ede3c20a2888 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:09 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.054' + X-B3-Traceid: + - e3fedeffab6fde65a9813d57770f6bcb + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:09 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_sort/reorders_the_pickup_options_of_the_shop.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_sort/reorders_the_pickup_options_of_the_shop.yml new file mode 100644 index 0000000..8701312 --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/_sort/reorders_the_pickup_options_of_the_shop.yml @@ -0,0 +1,1771 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:04 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.076' + X-B3-Traceid: + - 665f38b5a6338a99e7f7db825f2efaa9 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303764,"jti":"07cc8551-0505-449b-a3e4-548e3cd74b7e"}' + recorded_at: Fri, 21 Aug 2026 09:16:04 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:04 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/feb9349b-73ee-4299-9367-118f26e148f8 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.098' + X-B3-Traceid: + - 627740dce5e1abf2af3082987f3d03b2 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "feb9349b-73ee-4299-9367-118f26e148f8", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/feb9349b-73ee-4299-9367-118f26e148f8" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:04 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-St-Ives","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"feb9349b-73ee-4299-9367-118f26e148f8"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:05 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.047' + X-B3-Traceid: + - dbb587c50fcd98193a724ab5214605d7 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 13, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/feb9349b-73ee-4299-9367-118f26e148f8" + } + }, + "_id" : "feb9349b-73ee-4299-9367-118f26e148f8" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c" + } + }, + "_id" : "0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c" + } + recorded_at: Fri, 21 Aug 2026 09:16:04 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Penzance","companyName":"My little + Cornershop - MLC-Penzance","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:05 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/296e0ba0-d66e-4859-ba15-760d5c388c38 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.054' + X-B3-Traceid: + - f053bd98a76e4fa0758a25506a794387 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "296e0ba0-d66e-4859-ba15-760d5c388c38", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/296e0ba0-d66e-4859-ba15-760d5c388c38" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:05 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Penzance","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"296e0ba0-d66e-4859-ba15-760d5c388c38"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:05 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/b7a1fb88-96e6-4020-b9aa-965ecd868525 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.043' + X-B3-Traceid: + - 73301ce863b4ce638206e76ddb48ea4c + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 14, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/296e0ba0-d66e-4859-ba15-760d5c388c38" + } + }, + "_id" : "296e0ba0-d66e-4859-ba15-760d5c388c38" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/b7a1fb88-96e6-4020-b9aa-965ecd868525" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/b7a1fb88-96e6-4020-b9aa-965ecd868525" + } + }, + "_id" : "b7a1fb88-96e6-4020-b9aa-965ecd868525" + } + recorded_at: Fri, 21 Aug 2026 09:16:05 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Truro","companyName":"My little + Cornershop - MLC-Truro","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:05 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a654f296-48ad-4986-baad-de5582b5f570 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.054' + X-B3-Traceid: + - 1ea6e4caa0549529d5ca1c5d8fd2c4c3 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "a654f296-48ad-4986-baad-de5582b5f570", + "storeCode" : "MLC-Truro", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a654f296-48ad-4986-baad-de5582b5f570" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:05 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Truro","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"a654f296-48ad-4986-baad-de5582b5f570"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:05 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/e29a22f3-6e0b-4f45-8586-83c4b9d72d1e + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.046' + X-B3-Traceid: + - 0147e0f6725814bda5cb9e227372568d + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 15, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a654f296-48ad-4986-baad-de5582b5f570" + } + }, + "_id" : "a654f296-48ad-4986-baad-de5582b5f570" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/e29a22f3-6e0b-4f45-8586-83c4b9d72d1e" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/e29a22f3-6e0b-4f45-8586-83c4b9d72d1e" + } + }, + "_id" : "e29a22f3-6e0b-4f45-8586-83c4b9d72d1e" + } + recorded_at: Fri, 21 Aug 2026 09:16:05 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options?size=100 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:05 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.042' + X-B3-Traceid: + - 707ab1a297aceb0aca1b6f4c844cd605 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "pickup-options" : [ { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 12, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_id" : "f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + } + }, + "_id" : "87cfb9b1-d322-4f78-8039-efcfac1db753" + }, { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 13, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/feb9349b-73ee-4299-9367-118f26e148f8" + } + }, + "_id" : "feb9349b-73ee-4299-9367-118f26e148f8" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c" + } + }, + "_id" : "0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c" + }, { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 14, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/296e0ba0-d66e-4859-ba15-760d5c388c38" + } + }, + "_id" : "296e0ba0-d66e-4859-ba15-760d5c388c38" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/b7a1fb88-96e6-4020-b9aa-965ecd868525" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/b7a1fb88-96e6-4020-b9aa-965ecd868525" + } + }, + "_id" : "b7a1fb88-96e6-4020-b9aa-965ecd868525" + }, { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 15, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a654f296-48ad-4986-baad-de5582b5f570" + } + }, + "_id" : "a654f296-48ad-4986-baad-de5582b5f570" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/e29a22f3-6e0b-4f45-8586-83c4b9d72d1e" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/e29a22f3-6e0b-4f45-8586-83c4b9d72d1e" + } + }, + "_id" : "e29a22f3-6e0b-4f45-8586-83c4b9d72d1e" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=0&size=100" + } + }, + "page" : { + "size" : 100, + "totalElements" : 4, + "totalPages" : 1, + "number" : 0 + } + } + recorded_at: Fri, 21 Aug 2026 09:16:05 GMT +- request: + method: put + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: |- + https://team42-beyond-api.beyondshop.cloud/api/pickup-options/0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c + https://team42-beyond-api.beyondshop.cloud/api/pickup-options/b7a1fb88-96e6-4020-b9aa-965ecd868525 + https://team42-beyond-api.beyondshop.cloud/api/pickup-options/e29a22f3-6e0b-4f45-8586-83c4b9d72d1e + https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753 + headers: + Accept: + - application/json + User-Agent: + - Faraday v2.14.1 + Content-Type: + - text/uri-list + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:05 GMT + Connection: + - keep-alive + Location: + - "/api/pickup-options" + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.077' + X-B3-Traceid: + - 3718c600cee22bd7c551d723843433e2 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:05 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options?size=100 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:06 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.324' + X-B3-Traceid: + - 5e62e9e2eb41f6cacf6d5437bf9ed91b + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "pickup-options" : [ { + "name" : "My little Cornershop - MLC-St-Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 13, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/feb9349b-73ee-4299-9367-118f26e148f8" + } + }, + "_id" : "feb9349b-73ee-4299-9367-118f26e148f8" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c" + } + }, + "_id" : "0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c" + }, { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 14, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/296e0ba0-d66e-4859-ba15-760d5c388c38" + } + }, + "_id" : "296e0ba0-d66e-4859-ba15-760d5c388c38" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/b7a1fb88-96e6-4020-b9aa-965ecd868525" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/b7a1fb88-96e6-4020-b9aa-965ecd868525" + } + }, + "_id" : "b7a1fb88-96e6-4020-b9aa-965ecd868525" + }, { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 15, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a654f296-48ad-4986-baad-de5582b5f570" + } + }, + "_id" : "a654f296-48ad-4986-baad-de5582b5f570" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/e29a22f3-6e0b-4f45-8586-83c4b9d72d1e" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/e29a22f3-6e0b-4f45-8586-83c4b9d72d1e" + } + }, + "_id" : "e29a22f3-6e0b-4f45-8586-83c4b9d72d1e" + }, { + "name" : "My little Cornershop - MLC-Truro", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 16, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Truro", + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_id" : "f9e7f3f8-604e-48e1-9d5b-cadf5cf87f70" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/87cfb9b1-d322-4f78-8039-efcfac1db753" + } + }, + "_id" : "87cfb9b1-d322-4f78-8039-efcfac1db753" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options?page=0&size=100" + } + }, + "page" : { + "size" : 100, + "totalElements" : 4, + "totalPages" : 1, + "number" : 0 + } + } + recorded_at: Fri, 21 Aug 2026 09:16:06 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/0329e4eb-f0e3-4cbb-b2df-64dd94bcd59c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:06 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.051' + X-B3-Traceid: + - fb01a5db29bc5a92b462a02a689f2e60 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:06 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/b7a1fb88-96e6-4020-b9aa-965ecd868525 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:06 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.079' + X-B3-Traceid: + - 486370744036fc378c2c846a2f69841a + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:06 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/e29a22f3-6e0b-4f45-8586-83c4b9d72d1e + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:06 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.044' + X-B3-Traceid: + - f11dbef90f76c14276980d355e5a7453 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:06 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/feb9349b-73ee-4299-9367-118f26e148f8 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:06 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.049' + X-B3-Traceid: + - 5f94bb89055a3d9c4db4eda6bec8cdc0 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:06 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/296e0ba0-d66e-4859-ba15-760d5c388c38 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:07 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.047' + X-B3-Traceid: + - 1faa4ec56303086a24a588601946c600 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:07 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a654f296-48ad-4986-baad-de5582b5f570 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:07 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.044' + X-B3-Traceid: + - 4afaeef00cced8997081cd44dc9d4686 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:07 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/creates_a_new_pickup_option.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/creates_a_new_pickup_option.yml new file mode 100644 index 0000000..c105c5d --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/creates_a_new_pickup_option.yml @@ -0,0 +1,402 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:09 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.059' + X-B3-Traceid: + - 782ee3abeea685df427119353a96eeec + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303769,"jti":"6e171555-499d-4d16-a193-4be663ef4e8e"}' + recorded_at: Fri, 21 Aug 2026 09:16:09 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:09 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/06051511-7cd0-4847-aecd-0b21f584555b + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.053' + X-B3-Traceid: + - 721ead5226e5120e0a98ef5bc9d20e64 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "06051511-7cd0-4847-aecd-0b21f584555b", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/06051511-7cd0-4847-aecd-0b21f584555b" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:09 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - St.Ives","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"06051511-7cd0-4847-aecd-0b21f584555b"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:09 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/40137dd1-9e4a-470b-b950-90e6532ea511 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.045' + X-B3-Traceid: + - 18db4d95a962c6b6baa1b93564fdf67d + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - St.Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 21, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/06051511-7cd0-4847-aecd-0b21f584555b" + } + }, + "_id" : "06051511-7cd0-4847-aecd-0b21f584555b" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/40137dd1-9e4a-470b-b950-90e6532ea511" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/40137dd1-9e4a-470b-b950-90e6532ea511" + } + }, + "_id" : "40137dd1-9e4a-470b-b950-90e6532ea511" + } + recorded_at: Fri, 21 Aug 2026 09:16:09 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/40137dd1-9e4a-470b-b950-90e6532ea511 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:10 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.052' + X-B3-Traceid: + - 0dd7fabe9e816d1d91483bf3f7e8f655 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:09 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/06051511-7cd0-4847-aecd-0b21f584555b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:10 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.057' + X-B3-Traceid: + - 877efba2e8da06ade74a1778178958d1 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:10 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/raises_an_error_when_the_location_does_not_exist.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/raises_an_error_when_the_location_does_not_exist.yml new file mode 100644 index 0000000..88533be --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/raises_an_error_when_the_location_does_not_exist.yml @@ -0,0 +1,467 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:11 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.125' + X-B3-Traceid: + - 1f1deb7217ae9863202c7c2d5ebe347a + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303771,"jti":"b5fb9dd8-2cd0-4dbc-86c2-43ce8d8b4876"}' + recorded_at: Fri, 21 Aug 2026 09:16:11 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:11 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/2a0e4628-2247-4887-a4ff-8e7d9ad36cce + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.073' + X-B3-Traceid: + - 6420ec8b842048894a357a6b72a17ae3 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "2a0e4628-2247-4887-a4ff-8e7d9ad36cce", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/2a0e4628-2247-4887-a4ff-8e7d9ad36cce" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:11 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - St.Ives","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"2a0e4628-2247-4887-a4ff-8e7d9ad36cce"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:11 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/fdbc854a-d35e-4f06-ab10-671b9bcaa94d + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.050' + X-B3-Traceid: + - b7b2dea38aa6c8f3da75852dd860a959 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - St.Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 21, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/2a0e4628-2247-4887-a4ff-8e7d9ad36cce" + } + }, + "_id" : "2a0e4628-2247-4887-a4ff-8e7d9ad36cce" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/fdbc854a-d35e-4f06-ab10-671b9bcaa94d" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/fdbc854a-d35e-4f06-ab10-671b9bcaa94d" + } + }, + "_id" : "fdbc854a-d35e-4f06-ab10-671b9bcaa94d" + } + recorded_at: Fri, 21 Aug 2026 09:16:11 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - St.Ives","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"00000000-0000-0000-0000-000000000000"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 404 + message: Not Found + headers: + Date: + - Fri, 21 Aug 2026 09:16:11 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.032' + X-B3-Traceid: + - 868d29006751c5999684cb7488884716 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "errorId" : "location-not-found", + "details" : { }, + "message" : "The provided location ID does not match a location of the shop.", + "traceId" : null + } + recorded_at: Fri, 21 Aug 2026 09:16:11 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/fdbc854a-d35e-4f06-ab10-671b9bcaa94d + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:11 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.062' + X-B3-Traceid: + - 488bba6756d29d0174c51c6ac3113bf7 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:11 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/2a0e4628-2247-4887-a4ff-8e7d9ad36cce + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:12 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.078' + X-B3-Traceid: + - a12e14d7e00318248ad6870939ca5ec7 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:12 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/raises_an_error_when_the_pickup_option_is_invalid.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/raises_an_error_when_the_pickup_option_is_invalid.yml new file mode 100644 index 0000000..3aae7c4 --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_create/raises_an_error_when_the_pickup_option_is_invalid.yml @@ -0,0 +1,474 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:10 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.069' + X-B3-Traceid: + - 61222bcae2d69b8cad4a5f730e762cef + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303770,"jti":"ce9255f7-d9c8-4a62-b318-10dcdba838a1"}' + recorded_at: Fri, 21 Aug 2026 09:16:10 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:10 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/65e15c79-43f6-40a1-b820-8f42b7bfc897 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.068' + X-B3-Traceid: + - e84c9f8042755378d3db285d99dccc37 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "65e15c79-43f6-40a1-b820-8f42b7bfc897", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/65e15c79-43f6-40a1-b820-8f42b7bfc897" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:10 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - St.Ives","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"65e15c79-43f6-40a1-b820-8f42b7bfc897"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:10 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/7b61d1ea-6a9d-402e-baf5-40ef45f28e52 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.059' + X-B3-Traceid: + - 9e377f4d973aec3b3bd401dbaa11c4c1 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - St.Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 21, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/65e15c79-43f6-40a1-b820-8f42b7bfc897" + } + }, + "_id" : "65e15c79-43f6-40a1-b820-8f42b7bfc897" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/7b61d1ea-6a9d-402e-baf5-40ef45f28e52" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/7b61d1ea-6a9d-402e-baf5-40ef45f28e52" + } + }, + "_id" : "7b61d1ea-6a9d-402e-baf5-40ef45f28e52" + } + recorded_at: Fri, 21 Aug 2026 09:16:10 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":null,"description":"We will send you an email when your items + are ready for pickup. Please bring a copy of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"65e15c79-43f6-40a1-b820-8f42b7bfc897"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 400 + message: Bad Request + headers: + Date: + - Fri, 21 Aug 2026 09:16:10 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.032' + X-B3-Traceid: + - 4497a0e810e05ba2fe3d963b299efa0a + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "errorId" : "input-validation-failed", + "details" : { + "validationErrors" : [ { + "entity" : "pickupOptionRequestPayload", + "property" : "name", + "invalidValue" : null, + "message" : "must not be empty", + "constraintName" : "NotEmpty" + } ] + }, + "message" : "Input validation failed", + "traceId" : null + } + recorded_at: Fri, 21 Aug 2026 09:16:10 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/7b61d1ea-6a9d-402e-baf5-40ef45f28e52 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:10 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.077' + X-B3-Traceid: + - f14e4326520fff9131e6e55c65e186bc + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:10 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/65e15c79-43f6-40a1-b820-8f42b7bfc897 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:11 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.071' + X-B3-Traceid: + - 9255f87f962c56be9338b5a43d13fc33 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:11 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_delete/deletes_a_pickup_option.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_delete/deletes_a_pickup_option.yml new file mode 100644 index 0000000..52177b5 --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_delete/deletes_a_pickup_option.yml @@ -0,0 +1,850 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:14 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.064' + X-B3-Traceid: + - d2e929cdc65a045204d3a2dc3618b9ec + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303774,"jti":"4aa07de2-9cb1-4165-9ea7-bcc5c6df05d8"}' + recorded_at: Fri, 21 Aug 2026 09:16:14 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:15 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/7f40065a-e4a2-4b8e-9356-e97ae07d728e + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.051' + X-B3-Traceid: + - cdafbce7f12ff4ce00efab049c048b67 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "7f40065a-e4a2-4b8e-9356-e97ae07d728e", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/7f40065a-e4a2-4b8e-9356-e97ae07d728e" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:15 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - St.Ives","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"7f40065a-e4a2-4b8e-9356-e97ae07d728e"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:15 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dd3a515b-6c91-4053-af37-8f62a05b52b0 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.060' + X-B3-Traceid: + - c81857155d61c812245a6eaffbf9cb48 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - St.Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 21, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/7f40065a-e4a2-4b8e-9356-e97ae07d728e" + } + }, + "_id" : "7f40065a-e4a2-4b8e-9356-e97ae07d728e" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dd3a515b-6c91-4053-af37-8f62a05b52b0" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dd3a515b-6c91-4053-af37-8f62a05b52b0" + } + }, + "_id" : "dd3a515b-6c91-4053-af37-8f62a05b52b0" + } + recorded_at: Fri, 21 Aug 2026 09:16:15 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Penzance","companyName":"My little + Cornershop - MLC-Penzance","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:15 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/725c9deb-1e07-48db-b5c1-c5314ec0c102 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.044' + X-B3-Traceid: + - b0b8f7d65b522ab8c23469084305f7bc + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "725c9deb-1e07-48db-b5c1-c5314ec0c102", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/725c9deb-1e07-48db-b5c1-c5314ec0c102" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:15 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - MLC-Penzance","description":"We will + send you an email when your items are ready for pickup. Please bring a copy + of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"725c9deb-1e07-48db-b5c1-c5314ec0c102"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:15 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/55fff80b-d4d4-4e43-b26b-6ee51fe0d997 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.043' + X-B3-Traceid: + - bce97656649202134dbd2fb6f1a2d736 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - MLC-Penzance", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 22, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-Penzance", + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/725c9deb-1e07-48db-b5c1-c5314ec0c102" + } + }, + "_id" : "725c9deb-1e07-48db-b5c1-c5314ec0c102" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/55fff80b-d4d4-4e43-b26b-6ee51fe0d997" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/55fff80b-d4d4-4e43-b26b-6ee51fe0d997" + } + }, + "_id" : "55fff80b-d4d4-4e43-b26b-6ee51fe0d997" + } + recorded_at: Fri, 21 Aug 2026 09:16:15 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dd3a515b-6c91-4053-af37-8f62a05b52b0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:15 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.052' + X-B3-Traceid: + - d7de8368bdd08f5f8d7317cf08555a3e + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:15 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dd3a515b-6c91-4053-af37-8f62a05b52b0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 404 + message: Not Found + headers: + Date: + - Fri, 21 Aug 2026 09:16:15 GMT + Content-Length: + - '0' + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.015' + X-B3-Traceid: + - f76162f1398e7a8ff12a14e6876cae44 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:15 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/dd3a515b-6c91-4053-af37-8f62a05b52b0 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 404 + message: Not Found + headers: + Date: + - Fri, 21 Aug 2026 09:16:15 GMT + Content-Length: + - '0' + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.014' + X-B3-Traceid: + - ad3d517705d5aa1b531e56cb575b616e + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:15 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/55fff80b-d4d4-4e43-b26b-6ee51fe0d997 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:16 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.055' + X-B3-Traceid: + - 073e31118ae73a71a813edb1c5492002 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:15 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/7f40065a-e4a2-4b8e-9356-e97ae07d728e + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:16 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.053' + X-B3-Traceid: + - d626201af16b6e2894d28e5c19307d15 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:16 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/725c9deb-1e07-48db-b5c1-c5314ec0c102 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:16 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.060' + X-B3-Traceid: + - 8fd04cf123a654f2e182524baaf2dbdc + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:16 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_find/raises_an_error_when_the_pickup_option_does_not_exist.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_find/raises_an_error_when_the_pickup_option_does_not_exist.yml new file mode 100644 index 0000000..2fd9bc3 --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_find/raises_an_error_when_the_pickup_option_does_not_exist.yml @@ -0,0 +1,457 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:13 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.071' + X-B3-Traceid: + - aa0c5814d467399d522e086974dcc0e8 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303773,"jti":"caba8aa8-b7b7-4905-9097-8cb6b45987be"}' + recorded_at: Fri, 21 Aug 2026 09:16:13 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:13 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/4b20c4d2-4027-463d-93e4-13968d33ed72 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.053' + X-B3-Traceid: + - ca939b8c056e189d7fba87749ad6d02d + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "4b20c4d2-4027-463d-93e4-13968d33ed72", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/4b20c4d2-4027-463d-93e4-13968d33ed72" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:13 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - St.Ives","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"4b20c4d2-4027-463d-93e4-13968d33ed72"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:13 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/2a28616b-2901-4e32-9a02-b65a037ca001 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.066' + X-B3-Traceid: + - 5d105876eb86b2a093931dcf419bf6bf + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - St.Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 21, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/4b20c4d2-4027-463d-93e4-13968d33ed72" + } + }, + "_id" : "4b20c4d2-4027-463d-93e4-13968d33ed72" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/2a28616b-2901-4e32-9a02-b65a037ca001" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/2a28616b-2901-4e32-9a02-b65a037ca001" + } + }, + "_id" : "2a28616b-2901-4e32-9a02-b65a037ca001" + } + recorded_at: Fri, 21 Aug 2026 09:16:13 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/00000000-0000-0000-0000-000000000000 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 404 + message: Not Found + headers: + Date: + - Fri, 21 Aug 2026 09:16:13 GMT + Content-Length: + - '0' + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.015' + X-B3-Traceid: + - 39a60a8d73cfbc790138bed9732717e4 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:13 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/2a28616b-2901-4e32-9a02-b65a037ca001 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:13 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.046' + X-B3-Traceid: + - c2075b437d8e3fcaea2c1f7ac3147959 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:13 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/4b20c4d2-4027-463d-93e4-13968d33ed72 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:13 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.042' + X-B3-Traceid: + - 73a0b7dfe8b7d9d328f5dbc05281d4c3 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:13 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_find/returns_a_pickup_option.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_find/returns_a_pickup_option.yml new file mode 100644 index 0000000..05ced3b --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_find/returns_a_pickup_option.yml @@ -0,0 +1,521 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:12 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.111' + X-B3-Traceid: + - 46d8cf21cd64270f23be70db52efbbd5 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303772,"jti":"8bef08b2-9514-427b-ae80-361b78aca766"}' + recorded_at: Fri, 21 Aug 2026 09:16:12 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:12 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/1b6c31c7-7647-47a1-9a8b-2d583adb2567 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.064' + X-B3-Traceid: + - 554a6223d4e1b91705c88a9021392a26 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "1b6c31c7-7647-47a1-9a8b-2d583adb2567", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/1b6c31c7-7647-47a1-9a8b-2d583adb2567" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:12 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - St.Ives","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"1b6c31c7-7647-47a1-9a8b-2d583adb2567"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:12 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/cafc4b7b-a84d-48b9-b0f2-15279b193b9e + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.087' + X-B3-Traceid: + - cfce3d8892c3291b407f2411ef319524 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - St.Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 21, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/1b6c31c7-7647-47a1-9a8b-2d583adb2567" + } + }, + "_id" : "1b6c31c7-7647-47a1-9a8b-2d583adb2567" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/cafc4b7b-a84d-48b9-b0f2-15279b193b9e" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/cafc4b7b-a84d-48b9-b0f2-15279b193b9e" + } + }, + "_id" : "cafc4b7b-a84d-48b9-b0f2-15279b193b9e" + } + recorded_at: Fri, 21 Aug 2026 09:16:12 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/cafc4b7b-a84d-48b9-b0f2-15279b193b9e + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:12 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.026' + X-B3-Traceid: + - 71bb5531ffc6bc20182c1ed56a0b8fad + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - St.Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 21, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/1b6c31c7-7647-47a1-9a8b-2d583adb2567" + } + }, + "_id" : "1b6c31c7-7647-47a1-9a8b-2d583adb2567" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/cafc4b7b-a84d-48b9-b0f2-15279b193b9e" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/cafc4b7b-a84d-48b9-b0f2-15279b193b9e" + } + }, + "_id" : "cafc4b7b-a84d-48b9-b0f2-15279b193b9e" + } + recorded_at: Fri, 21 Aug 2026 09:16:12 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/cafc4b7b-a84d-48b9-b0f2-15279b193b9e + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:12 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.071' + X-B3-Traceid: + - d7dd88400711928e9ec7b43991f75453 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:12 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/1b6c31c7-7647-47a1-9a8b-2d583adb2567 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:13 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.042' + X-B3-Traceid: + - 4d6fe04d4f049fe7c005c8444abce82b + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:12 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_update/updates_a_pickup_option.yml b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_update/updates_a_pickup_option.yml new file mode 100644 index 0000000..737e536 --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Checkout_PickupOption/with_pickup_option/_update/updates_a_pickup_option.yml @@ -0,0 +1,522 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:14 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.078' + X-B3-Traceid: + - f4ffddffb29b26a8d6a3f01458de12a9 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303774,"jti":"b46c7d69-77aa-48a2-a9e9-64172d99e5ed"}' + recorded_at: Fri, 21 Aug 2026 09:16:14 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:14 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/9fad5eb6-e1f9-437a-bfc9-69ffaa24622b + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.072' + X-B3-Traceid: + - 78b43c0d73548737a4abb8fea1635578 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "9fad5eb6-e1f9-437a-bfc9-69ffaa24622b", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/9fad5eb6-e1f9-437a-bfc9-69ffaa24622b" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:16:14 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options + body: + encoding: UTF-8 + string: '{"name":"My little Cornershop - St.Ives","description":"We will send + you an email when your items are ready for pickup. Please bring a copy of + your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"9fad5eb6-e1f9-437a-bfc9-69ffaa24622b"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:16:14 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/pickup-options/a18e8035-4049-417b-8822-bc7c4938edf9 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.041' + X-B3-Traceid: + - 9cba547c5845f8e6e214f21c198973f6 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "My little Cornershop - St.Ives", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 21, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/9fad5eb6-e1f9-437a-bfc9-69ffaa24622b" + } + }, + "_id" : "9fad5eb6-e1f9-437a-bfc9-69ffaa24622b" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/a18e8035-4049-417b-8822-bc7c4938edf9" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/a18e8035-4049-417b-8822-bc7c4938edf9" + } + }, + "_id" : "a18e8035-4049-417b-8822-bc7c4938edf9" + } + recorded_at: Fri, 21 Aug 2026 09:16:14 GMT +- request: + method: put + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/a18e8035-4049-417b-8822-bc7c4938edf9 + body: + encoding: UTF-8 + string: '{"name":"Updated Cornershop","description":"We will send you an email + when your items are ready for pickup. Please bring a copy of your order confirmation.","taxClass":"REGULAR","phoneNumberRequired":true,"freePickupValue":{"currency":"EUR","amount":50},"fixedPrice":{"taxModel":"GROSS","currency":"EUR","amount":1},"locationId":"9fad5eb6-e1f9-437a-bfc9-69ffaa24622b"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:16:14 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.072' + X-B3-Traceid: + - 72baa4eecb625caa181f6bf723419484 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "name" : "Updated Cornershop", + "description" : "We will send you an email when your items are ready for pickup. Please bring a copy of your order confirmation.", + "taxClass" : "REGULAR", + "position" : 21, + "freePickupValue" : { + "currency" : "EUR", + "amount" : 50 + }, + "fixedPrice" : { + "taxModel" : "GROSS", + "currency" : "EUR", + "amount" : 1 + }, + "phoneNumberRequired" : true, + "_embedded" : { + "location" : { + "languageCode" : "en", + "storeCode" : "MLC-St-Ives", + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "postalCode" : "90999", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/9fad5eb6-e1f9-437a-bfc9-69ffaa24622b" + } + }, + "_id" : "9fad5eb6-e1f9-437a-bfc9-69ffaa24622b" + } + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/a18e8035-4049-417b-8822-bc7c4938edf9" + }, + "pickup-option" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/pickup-options/a18e8035-4049-417b-8822-bc7c4938edf9" + } + }, + "_id" : "a18e8035-4049-417b-8822-bc7c4938edf9" + } + recorded_at: Fri, 21 Aug 2026 09:16:14 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/pickup-options/a18e8035-4049-417b-8822-bc7c4938edf9 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:14 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.051' + X-B3-Traceid: + - 9dcf8ca14389e58bab2a36cb83301607 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:14 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/9fad5eb6-e1f9-437a-bfc9-69ffaa24622b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:16:14 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.048' + X-B3-Traceid: + - 926b145d9cb10588ef1500842593a5d9 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:16:14 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Shop_Location/_all/follows_every_page_when_paginated_is_false.yml b/spec/vcr_cassettes/BeyondApi_Shop_Location/_all/follows_every_page_when_paginated_is_false.yml new file mode 100644 index 0000000..31c4a8c --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Shop_Location/_all/follows_every_page_when_paginated_is_false.yml @@ -0,0 +1,855 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:09:56 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.067' + X-B3-Traceid: + - c63c573ed81bce899e98a84663d77029 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303396,"jti":"b725757d-0799-4d0c-9850-e8c671fb5f6e"}' + recorded_at: Fri, 21 Aug 2026 09:09:56 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:09:57 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/31e8a94c-9a10-4b71-bd45-16dcb65be225 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.076' + X-B3-Traceid: + - fc66be598663f590733076b3cc35889b + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "31e8a94c-9a10-4b71-bd45-16dcb65be225", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/31e8a94c-9a10-4b71-bd45-16dcb65be225" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:09:56 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Penzance","companyName":"My little + Cornershop - MLC-Penzance","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:09:57 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d07d1c8a-2bd8-4e15-bbd1-d3b08680e8bd + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.064' + X-B3-Traceid: + - a9123c92732c0a74f02a0e4095be4f45 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "d07d1c8a-2bd8-4e15-bbd1-d3b08680e8bd", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d07d1c8a-2bd8-4e15-bbd1-d3b08680e8bd" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:09:57 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Truro","companyName":"My little + Cornershop - MLC-Truro","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:09:57 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a2ded05d-ca52-4e15-b5e1-32e6c1fe152f + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.045' + X-B3-Traceid: + - 8f44fca52fc221a4aace5aa49d49a6ad + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "a2ded05d-ca52-4e15-b5e1-32e6c1fe152f", + "storeCode" : "MLC-Truro", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a2ded05d-ca52-4e15-b5e1-32e6c1fe152f" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:09:57 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations?page=0&paginated=false&size=2 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:09:57 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.029' + X-B3-Traceid: + - 521d47141cf1d1aef5fbf4980ea5caa1 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "locations" : [ { + "_id" : "31e8a94c-9a10-4b71-bd45-16dcb65be225", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/31e8a94c-9a10-4b71-bd45-16dcb65be225" + } + } + }, { + "_id" : "d07d1c8a-2bd8-4e15-bbd1-d3b08680e8bd", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d07d1c8a-2bd8-4e15-bbd1-d3b08680e8bd" + } + } + } ] + }, + "_links" : { + "first" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?paginated=false&page=0&size=2&sort=createdAt,asc" + }, + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?paginated=false&page=0&size=2&sort=createdAt,asc" + }, + "next" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?paginated=false&page=1&size=2&sort=createdAt,asc" + }, + "last" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?paginated=false&page=1&size=2&sort=createdAt,asc" + } + }, + "page" : { + "size" : 2, + "totalElements" : 3, + "totalPages" : 2, + "number" : 0 + } + } + recorded_at: Fri, 21 Aug 2026 09:09:57 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations?page=1&paginated=false&size=2 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:09:57 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.020' + X-B3-Traceid: + - 3c2c4ddd81dbe08e3ee94cd06cf02db3 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "locations" : [ { + "_id" : "a2ded05d-ca52-4e15-b5e1-32e6c1fe152f", + "storeCode" : "MLC-Truro", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a2ded05d-ca52-4e15-b5e1-32e6c1fe152f" + } + } + } ] + }, + "_links" : { + "first" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?paginated=false&page=0&size=2&sort=createdAt,asc" + }, + "prev" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?paginated=false&page=0&size=2&sort=createdAt,asc" + }, + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?paginated=false&page=1&size=2&sort=createdAt,asc" + }, + "last" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?paginated=false&page=1&size=2&sort=createdAt,asc" + } + }, + "page" : { + "size" : 2, + "totalElements" : 3, + "totalPages" : 2, + "number" : 1 + } + } + recorded_at: Fri, 21 Aug 2026 09:09:57 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/31e8a94c-9a10-4b71-bd45-16dcb65be225 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:09:57 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.047' + X-B3-Traceid: + - 349030d587c2f844eb4030f2c8c50b98 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:09:57 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d07d1c8a-2bd8-4e15-bbd1-d3b08680e8bd + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:09:57 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.046' + X-B3-Traceid: + - d87ab23cd0e3cab88a7eba29cab30eb3 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:09:57 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a2ded05d-ca52-4e15-b5e1-32e6c1fe152f + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:09:57 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.047' + X-B3-Traceid: + - 93d2101f93e47f0f7391b911506e67e3 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:09:57 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Shop_Location/_all/honours_the_requested_page_size.yml b/spec/vcr_cassettes/BeyondApi_Shop_Location/_all/honours_the_requested_page_size.yml new file mode 100644 index 0000000..7a166dc --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Shop_Location/_all/honours_the_requested_page_size.yml @@ -0,0 +1,726 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:09:55 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.072' + X-B3-Traceid: + - 0ca6c6117208768129d17467118d2847 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303395,"jti":"a621a92d-a850-41e7-9287-2e8e410ffe79"}' + recorded_at: Fri, 21 Aug 2026 09:09:55 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:09:55 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c16f14ca-2578-499d-b9f4-8f1b7a495502 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.078' + X-B3-Traceid: + - 333b50cba1d32767079a05e915b26e24 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "c16f14ca-2578-499d-b9f4-8f1b7a495502", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c16f14ca-2578-499d-b9f4-8f1b7a495502" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:09:55 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Penzance","companyName":"My little + Cornershop - MLC-Penzance","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:09:56 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c383be8d-96c5-4937-91cf-8faa5c499b6b + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.055' + X-B3-Traceid: + - 2fca45f05b9c98df5244ec81d1b03a6f + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "c383be8d-96c5-4937-91cf-8faa5c499b6b", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c383be8d-96c5-4937-91cf-8faa5c499b6b" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:09:55 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Truro","companyName":"My little + Cornershop - MLC-Truro","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:09:56 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/f209ad67-13e1-4cf5-b70f-5e3cd221de0b + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.060' + X-B3-Traceid: + - 0b35884f780cd6cf750b5a6ccfe8d933 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "f209ad67-13e1-4cf5-b70f-5e3cd221de0b", + "storeCode" : "MLC-Truro", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/f209ad67-13e1-4cf5-b70f-5e3cd221de0b" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:09:56 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations?size=2 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:09:56 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.035' + X-B3-Traceid: + - acc69f9e75c4382057a2a29c101ab84b + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_embedded" : { + "locations" : [ { + "_id" : "c16f14ca-2578-499d-b9f4-8f1b7a495502", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c16f14ca-2578-499d-b9f4-8f1b7a495502" + } + } + }, { + "_id" : "c383be8d-96c5-4937-91cf-8faa5c499b6b", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c383be8d-96c5-4937-91cf-8faa5c499b6b" + } + } + } ] + }, + "_links" : { + "first" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?page=0&size=2&sort=createdAt,asc" + }, + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?page=0&size=2&sort=createdAt,asc" + }, + "next" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?page=1&size=2&sort=createdAt,asc" + }, + "last" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations?page=1&size=2&sort=createdAt,asc" + } + }, + "page" : { + "size" : 2, + "totalElements" : 3, + "totalPages" : 2, + "number" : 0 + } + } + recorded_at: Fri, 21 Aug 2026 09:09:56 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c16f14ca-2578-499d-b9f4-8f1b7a495502 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:09:56 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.042' + X-B3-Traceid: + - baa53b00f073a4d33f8fe4aff6055324 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:09:56 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c383be8d-96c5-4937-91cf-8faa5c499b6b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:09:56 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.047' + X-B3-Traceid: + - 460bb9d14cc3bda552fea81c6fc0447e + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:09:56 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/f209ad67-13e1-4cf5-b70f-5e3cd221de0b + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:09:56 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.041' + X-B3-Traceid: + - 7fafe4ff5772bfbfa71fb77ddaa3a342 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:09:56 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Shop_Location/_all/returns_all_shop_locations.yml b/spec/vcr_cassettes/BeyondApi_Shop_Location/_all/returns_all_shop_locations.yml index 5b6b33c..2ecb03f 100644 --- a/spec/vcr_cassettes/BeyondApi_Shop_Location/_all/returns_all_shop_locations.yml +++ b/spec/vcr_cassettes/BeyondApi_Shop_Location/_all/returns_all_shop_locations.yml @@ -12,7 +12,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Basic Accept-Encoding: @@ -23,46 +23,371 @@ http_interactions: message: OK headers: Date: - - Thu, 10 Oct 2024 14:53:18 GMT + - Fri, 21 Aug 2026 09:09:54 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' Cache-Control: - - no-store + - no-cache, no-store, max-age=0, must-revalidate Pragma: - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.110' + X-B3-Traceid: + - 68af1a47c4eb16930b786f6941f51c8b + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303394,"jti":"cc14d361-0eda-4519-827c-7a1689083d90"}' + recorded_at: Fri, 21 Aug 2026 09:09:54 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - MLC-St-Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:09:54 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/e5aaabe8-57f2-4d48-ba45-3c9bded516f2 X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.055' + X-B3-Traceid: + - b942d47baaedd9d5c6153260aaf4626f + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ Strict-Transport-Security: - - max-age=31536000 ; includeSubDomains + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "e5aaabe8-57f2-4d48-ba45-3c9bded516f2", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/e5aaabe8-57f2-4d48-ba45-3c9bded516f2" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:09:54 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Penzance","companyName":"My little + Cornershop - MLC-Penzance","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:09:54 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a87b218a-3c3f-46b5-ab8e-e13069278b1d + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.052' + X-B3-Traceid: + - 32fffbfa7042be74289590b9b61b41ae + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "a87b218a-3c3f-46b5-ab8e-e13069278b1d", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a87b218a-3c3f-46b5-ab8e-e13069278b1d" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:09:54 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-Truro","companyName":"My little + Cornershop - MLC-Truro","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:09:55 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/cf5b9e5c-f14e-4f3a-985f-c76e01cb5b6c + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' X-Frame-Options: - DENY Server: - epages-beyond X-Request-Time: - - '0.211' + - '0.045' X-B3-Traceid: - - eefbcf59fcd29941d3044a86650abcb2 + - ee47f225c8fb74b96fd06400069c71c5 X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: |- { - "access_token" : "", - "token_type" : "bearer", - "expires_in" : 3599, - "scope" : "orde:r prat:dcur pypr:cur prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur shpr:rcu cset:ru ordp:r catg:cdur nltg:m", - "tenantId" : 8542, - "iat" : 1728571998, - "jti" : "EqWcFgvfMZ7j6HoHkvv+lsezTGI=" + "_id" : "cf5b9e5c-f14e-4f3a-985f-c76e01cb5b6c", + "storeCode" : "MLC-Truro", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/cf5b9e5c-f14e-4f3a-985f-c76e01cb5b6c" + } + } } - recorded_at: Thu, 10 Oct 2024 14:53:18 GMT + recorded_at: Fri, 21 Aug 2026 09:09:55 GMT - request: method: get uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations @@ -75,7 +400,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -86,7 +411,7 @@ http_interactions: message: OK headers: Date: - - Thu, 10 Oct 2024 14:53:18 GMT + - Fri, 21 Aug 2026 09:09:55 GMT Content-Type: - application/json Transfer-Encoding: @@ -95,8 +420,9 @@ http_interactions: - keep-alive X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -108,17 +434,160 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.087' + - '0.029' X-B3-Traceid: - - 61dc504d7a69fe05c4998f455275f405 + - 9a7cf2bdb7e98cb5e6a0d5091aca5b67 X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: |- { "_embedded" : { - "locations" : [ ] + "locations" : [ { + "_id" : "e5aaabe8-57f2-4d48-ba45-3c9bded516f2", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-St-Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/e5aaabe8-57f2-4d48-ba45-3c9bded516f2" + } + } + }, { + "_id" : "a87b218a-3c3f-46b5-ab8e-e13069278b1d", + "storeCode" : "MLC-Penzance", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Penzance", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a87b218a-3c3f-46b5-ab8e-e13069278b1d" + } + } + }, { + "_id" : "cf5b9e5c-f14e-4f3a-985f-c76e01cb5b6c", + "storeCode" : "MLC-Truro", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - MLC-Truro", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/cf5b9e5c-f14e-4f3a-985f-c76e01cb5b6c" + } + } + } ] }, "_links" : { "self" : { @@ -127,10 +596,169 @@ http_interactions: }, "page" : { "size" : 20, - "totalElements" : 0, - "totalPages" : 0, + "totalElements" : 3, + "totalPages" : 1, "number" : 0 } } - recorded_at: Thu, 10 Oct 2024 14:53:18 GMT + recorded_at: Fri, 21 Aug 2026 09:09:55 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/e5aaabe8-57f2-4d48-ba45-3c9bded516f2 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:09:55 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.041' + X-B3-Traceid: + - dac0acd49173f3b08f94b7f85f5d1279 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:09:55 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/a87b218a-3c3f-46b5-ab8e-e13069278b1d + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:09:55 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.041' + X-B3-Traceid: + - 8216f0828af7b576d1da926a6b68dea2 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:09:55 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/cf5b9e5c-f14e-4f3a-985f-c76e01cb5b6c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:09:55 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.042' + X-B3-Traceid: + - 3158b2ee4250d1ee057dea6d4cdfe904 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:09:55 GMT recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_create/creates_a_new_shop_location.yml b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_create/creates_a_new_shop_location.yml index 743055a..607e22d 100644 --- a/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_create/creates_a_new_shop_location.yml +++ b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_create/creates_a_new_shop_location.yml @@ -12,7 +12,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Basic Accept-Encoding: @@ -23,46 +23,44 @@ http_interactions: message: OK headers: Date: - - Thu, 10 Oct 2024 14:53:18 GMT + - Fri, 21 Aug 2026 09:09:58 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive - Cache-Control: - - no-store - Pragma: - - no-cache X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' Strict-Transport-Security: - max-age=31536000 ; includeSubDomains + - max-age=86400 X-Frame-Options: - DENY Server: - epages-beyond X-Request-Time: - - '0.120' + - '0.073' X-B3-Traceid: - - f387c0f33009487fa59ca22b547bad28 + - 4bc70215f0febbd2425270d8a03c535b X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ body: encoding: UTF-8 - string: |- - { - "access_token" : "", - "token_type" : "bearer", - "expires_in" : 3599, - "scope" : "orde:r prat:dcur pypr:cur prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur shpr:rcu cset:ru ordp:r catg:cdur nltg:m", - "tenantId" : 8542, - "iat" : 1728571998, - "jti" : "JdpG0j3tesmecsjHCH9GnyuPPsw=" - } - recorded_at: Thu, 10 Oct 2024 14:53:18 GMT + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303398,"jti":"4ef3ae2a-ec6d-4105-810d-1eb998f3d6e9"}' + recorded_at: Fri, 21 Aug 2026 09:09:58 GMT - request: method: post uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations @@ -77,7 +75,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -88,7 +86,7 @@ http_interactions: message: Created headers: Date: - - Thu, 10 Oct 2024 14:53:19 GMT + - Fri, 21 Aug 2026 09:09:58 GMT Content-Type: - application/json Transfer-Encoding: @@ -96,11 +94,12 @@ http_interactions: Connection: - keep-alive Location: - - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/b5ca0a65-b15b-44b6-93b5-99a86dfecba6 + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d2989d99-4c7a-466b-b648-f8e638f0c51e X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -112,16 +111,18 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.090' + - '0.046' X-B3-Traceid: - - 53e5c924c5cec8dbd06d7c8154262166 + - 67c93e7400b663adf417aaff483c6ed9 X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: |- { - "_id" : "b5ca0a65-b15b-44b6-93b5-99a86dfecba6", + "_id" : "d2989d99-4c7a-466b-b648-f8e638f0c51e", "storeCode" : "MLC-St-Ives", "languageCode" : "en", "address" : { @@ -164,14 +165,14 @@ http_interactions: }, "_links" : { "self" : { - "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/b5ca0a65-b15b-44b6-93b5-99a86dfecba6" + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d2989d99-4c7a-466b-b648-f8e638f0c51e" } } } - recorded_at: Thu, 10 Oct 2024 14:53:19 GMT + recorded_at: Fri, 21 Aug 2026 09:09:58 GMT - request: method: delete - uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/b5ca0a65-b15b-44b6-93b5-99a86dfecba6 + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/d2989d99-4c7a-466b-b648-f8e638f0c51e body: encoding: US-ASCII string: '' @@ -181,7 +182,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -192,13 +193,14 @@ http_interactions: message: No Content headers: Date: - - Thu, 10 Oct 2024 14:53:19 GMT + - Fri, 21 Aug 2026 09:09:58 GMT Connection: - keep-alive X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -210,13 +212,15 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.056' + - '0.045' X-B3-Traceid: - - 0beabd9e843630d6e38e45f61804baa0 + - ec3cf75923206430efadf429ec83bee5 X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: '' - recorded_at: Thu, 10 Oct 2024 14:53:19 GMT + recorded_at: Fri, 21 Aug 2026 09:09:58 GMT recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_create/raises_an_error_when_the_location_is_invalid.yml b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_create/raises_an_error_when_the_location_is_invalid.yml new file mode 100644 index 0000000..19dc63f --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_create/raises_an_error_when_the_location_is_invalid.yml @@ -0,0 +1,299 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:09:58 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.068' + X-B3-Traceid: + - 8d3da9d5026fdd4f7ac7ac01784c4eb4 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303398,"jti":"2b67f408-7b4f-4f15-8fa4-897762815ad7"}' + recorded_at: Fri, 21 Aug 2026 09:09:58 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - St.Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:09:58 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c170ea8b-d164-439e-955b-1fb7d262e423 + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.046' + X-B3-Traceid: + - b0f0f716f3edcb08250251b7fc422b05 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "c170ea8b-d164-439e-955b-1fb7d262e423", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - St.Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c170ea8b-d164-439e-955b-1fb7d262e423" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:09:58 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":null,"companyName":"My little Cornershop + - St.Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 400 + message: Bad Request + headers: + Date: + - Fri, 21 Aug 2026 09:09:58 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.015' + X-B3-Traceid: + - c6e625c41b32e7566222a617a4975f51 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "errorId" : "input-validation-failed", + "details" : { + "validationErrors" : [ { + "entity" : "locationRequestBody", + "property" : "storeCode", + "invalidValue" : null, + "message" : "must not be null", + "constraintName" : "NotNull" + } ] + }, + "message" : "Input validation failed", + "traceId" : null + } + recorded_at: Fri, 21 Aug 2026 09:09:58 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/c170ea8b-d164-439e-955b-1fb7d262e423 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:09:59 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.051' + X-B3-Traceid: + - 5ee74da2fd66acd251e2f7261cac51e1 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:09:58 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_delete/deletes_a_shop_location.yml b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_delete/deletes_a_shop_location.yml index 308ea95..d5e9e86 100644 --- a/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_delete/deletes_a_shop_location.yml +++ b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_delete/deletes_a_shop_location.yml @@ -12,7 +12,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Basic Accept-Encoding: @@ -23,46 +23,44 @@ http_interactions: message: OK headers: Date: - - Thu, 10 Oct 2024 14:53:21 GMT + - Fri, 21 Aug 2026 09:10:01 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive - Cache-Control: - - no-store - Pragma: - - no-cache X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' Strict-Transport-Security: - max-age=31536000 ; includeSubDomains + - max-age=86400 X-Frame-Options: - DENY Server: - epages-beyond X-Request-Time: - - '0.131' + - '0.179' X-B3-Traceid: - - 9a937df50e5c4e91a56a9b278161012c + - 00655e259bc1dd998d505a6ebb1a04b7 X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ body: encoding: UTF-8 - string: |- - { - "access_token" : "", - "token_type" : "bearer", - "expires_in" : 3599, - "scope" : "orde:r prat:dcur pypr:cur prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur shpr:rcu cset:ru ordp:r catg:cdur nltg:m", - "tenantId" : 8542, - "iat" : 1728572001, - "jti" : "d+nVa4xkMmsYZygYWfY4v+y2dJI=" - } - recorded_at: Thu, 10 Oct 2024 14:53:21 GMT + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303401,"jti":"04c5a5b4-87e8-45c7-a49b-ddf1a6365789"}' + recorded_at: Fri, 21 Aug 2026 09:10:01 GMT - request: method: post uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations @@ -77,7 +75,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -88,7 +86,7 @@ http_interactions: message: Created headers: Date: - - Thu, 10 Oct 2024 14:53:21 GMT + - Fri, 21 Aug 2026 09:10:01 GMT Content-Type: - application/json Transfer-Encoding: @@ -96,11 +94,12 @@ http_interactions: Connection: - keep-alive Location: - - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/20840fc4-aa39-4571-bd62-13d15f01f249 + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/8d2ae60a-960c-486b-ab9b-6c7b9704b51c X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -112,16 +111,18 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.054' + - '0.047' X-B3-Traceid: - - 02f94379b9a014ac81fefac8c25c82a9 + - 250469d23fcaec42dfa95e9d1808b05e X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: |- { - "_id" : "20840fc4-aa39-4571-bd62-13d15f01f249", + "_id" : "8d2ae60a-960c-486b-ab9b-6c7b9704b51c", "storeCode" : "MLC-St-Ives", "languageCode" : "en", "address" : { @@ -164,14 +165,14 @@ http_interactions: }, "_links" : { "self" : { - "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/20840fc4-aa39-4571-bd62-13d15f01f249" + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/8d2ae60a-960c-486b-ab9b-6c7b9704b51c" } } } - recorded_at: Thu, 10 Oct 2024 14:53:21 GMT + recorded_at: Fri, 21 Aug 2026 09:10:01 GMT - request: method: delete - uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/20840fc4-aa39-4571-bd62-13d15f01f249 + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/8d2ae60a-960c-486b-ab9b-6c7b9704b51c body: encoding: US-ASCII string: '' @@ -181,7 +182,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -192,13 +193,69 @@ http_interactions: message: No Content headers: Date: - - Thu, 10 Oct 2024 14:53:21 GMT + - Fri, 21 Aug 2026 09:10:01 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.080' + X-B3-Traceid: + - c9ee0ea577d261ebd1f17c4daca7d614 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:10:01 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/8d2ae60a-960c-486b-ab9b-6c7b9704b51c + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 404 + message: Not Found + headers: + Date: + - Fri, 21 Aug 2026 09:10:01 GMT + Content-Length: + - '0' Connection: - keep-alive X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -210,18 +267,20 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.052' + - '0.013' X-B3-Traceid: - - f2af1fec575148c96fae7d920f8b5749 + - 76b13ae9ff788dea3bc80b3026712eb2 X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: '' - recorded_at: Thu, 10 Oct 2024 14:53:21 GMT + recorded_at: Fri, 21 Aug 2026 09:10:01 GMT - request: method: delete - uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/20840fc4-aa39-4571-bd62-13d15f01f249 + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/8d2ae60a-960c-486b-ab9b-6c7b9704b51c body: encoding: US-ASCII string: '' @@ -231,7 +290,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -242,15 +301,16 @@ http_interactions: message: Not Found headers: Date: - - Thu, 10 Oct 2024 14:53:21 GMT + - Fri, 21 Aug 2026 09:10:01 GMT Content-Length: - '0' Connection: - keep-alive X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -262,13 +322,15 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.015' + - '0.018' X-B3-Traceid: - - f496317e9c7d50d5f7aef92a7fc71001 + - b0b8cc6d6c155de6d53b78462fe69f1c X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: '' - recorded_at: Thu, 10 Oct 2024 14:53:21 GMT + recorded_at: Fri, 21 Aug 2026 09:10:01 GMT recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_find/raises_an_error_when_the_location_does_not_exist.yml b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_find/raises_an_error_when_the_location_does_not_exist.yml new file mode 100644 index 0000000..d666b7e --- /dev/null +++ b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_find/raises_an_error_when_the_location_does_not_exist.yml @@ -0,0 +1,281 @@ +--- +http_interactions: +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/oauth/token?grant_type=client_credentials + body: + encoding: UTF-8 + string: "{}" + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Basic + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 200 + message: OK + headers: + Date: + - Fri, 21 Aug 2026 09:09:59 GMT + Content-Type: + - application/json;charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + Strict-Transport-Security: + - max-age=31536000 ; includeSubDomains + - max-age=86400 + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.073' + X-B3-Traceid: + - '019bd157f28a6c2360cd0713cb90939d' + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + body: + encoding: UTF-8 + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303399,"jti":"5d64e16b-92ad-4c36-8b83-2d15a2b933d9"}' + recorded_at: Fri, 21 Aug 2026 09:09:59 GMT +- request: + method: post + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations + body: + encoding: UTF-8 + string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"My little + Cornershop - St.Ives","primaryPhone":"(800) 555-0102","address":{"postalCode":"90999","street":"Hudson + Way","houseNumber":"27","city":"St.Ives","country":"GB","dependentLocality":"","state":"Cornwall"},"googleStatus":"ACTIVE","googlePrimaryCategory":{"categoryId":"gcid:storefood","displayName":"Food"},"googleAdditionalCategories":[{"displayName":"Drinks","categoryId":"gcid:storedrinks"}],"regularHours":{"periods":[{"openDay":"MONDAY","openTime":"08:00","closeDay":"MONDAY","closeTime":"17:00"},{"openDay":"SATURDAY","openTime":"10:00","closeDay":"SATURDAY","closeTime":"16:00"}]},"latLng":{"latitude":53.5847424,"longitude":9.968901}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 201 + message: Created + headers: + Date: + - Fri, 21 Aug 2026 09:10:00 GMT + Content-Type: + - application/json + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Location: + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/22ffc172-acdf-409b-9bda-ff0dd726d1ab + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.054' + X-B3-Traceid: + - b4a24aed1edde691a27d8f89de5dfcc4 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: |- + { + "_id" : "22ffc172-acdf-409b-9bda-ff0dd726d1ab", + "storeCode" : "MLC-St-Ives", + "languageCode" : "en", + "address" : { + "street" : "Hudson Way", + "houseNumber" : "27", + "postalCode" : "90999", + "city" : "St.Ives", + "country" : "GB", + "dependentLocality" : "", + "state" : "Cornwall", + "displayAddressLines" : [ "27 Hudson Way", "ST.IVES", "90999", "UNITED KINGDOM" ] + }, + "companyName" : "My little Cornershop - St.Ives", + "primaryPhone" : "(800) 555-0102", + "googleStatus" : "ACTIVE", + "googlePrimaryCategory" : { + "displayName" : "Food", + "categoryId" : "gcid:storefood" + }, + "googleAdditionalCategories" : [ { + "displayName" : "Drinks", + "categoryId" : "gcid:storedrinks" + } ], + "latLng" : { + "latitude" : 53.5847424, + "longitude" : 9.968901 + }, + "regularHours" : { + "periods" : [ { + "openDay" : "MONDAY", + "openTime" : "08:00", + "closeDay" : "MONDAY", + "closeTime" : "17:00" + }, { + "openDay" : "SATURDAY", + "openTime" : "10:00", + "closeDay" : "SATURDAY", + "closeTime" : "16:00" + } ] + }, + "_links" : { + "self" : { + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/22ffc172-acdf-409b-9bda-ff0dd726d1ab" + } + } + } + recorded_at: Fri, 21 Aug 2026 09:09:59 GMT +- request: + method: get + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/00000000-0000-0000-0000-000000000000 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 404 + message: Not Found + headers: + Date: + - Fri, 21 Aug 2026 09:10:00 GMT + Content-Length: + - '0' + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.016' + X-B3-Traceid: + - 8a2d2ea34ccaeab6c80770ef79bcc985 + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:10:00 GMT +- request: + method: delete + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/22ffc172-acdf-409b-9bda-ff0dd726d1ab + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - Faraday v2.14.1 + Authorization: + - Bearer + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + response: + status: + code: 204 + message: No Content + headers: + Date: + - Fri, 21 Aug 2026 09:10:00 GMT + Connection: + - keep-alive + X-Content-Type-Options: + - nosniff + - nosniff + X-Xss-Protection: + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - DENY + Server: + - epages-beyond + X-Request-Time: + - '0.048' + X-B3-Traceid: + - f378b638cde7ea8cf6c107a66260860f + X-Hello-Human: + - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 + body: + encoding: UTF-8 + string: '' + recorded_at: Fri, 21 Aug 2026 09:10:00 GMT +recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_find/returns_a_shop_location.yml b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_find/returns_a_shop_location.yml index 72f0d03..1e3e287 100644 --- a/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_find/returns_a_shop_location.yml +++ b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_find/returns_a_shop_location.yml @@ -12,7 +12,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Basic Accept-Encoding: @@ -23,46 +23,44 @@ http_interactions: message: OK headers: Date: - - Thu, 10 Oct 2024 14:53:19 GMT + - Fri, 21 Aug 2026 09:09:59 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive - Cache-Control: - - no-store - Pragma: - - no-cache X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' Strict-Transport-Security: - max-age=31536000 ; includeSubDomains + - max-age=86400 X-Frame-Options: - DENY Server: - epages-beyond X-Request-Time: - - '0.099' + - '0.071' X-B3-Traceid: - - 78645c4ac81e4ed07b2665a50f8f0dae + - f8eee58cbe9ebc3032c8fba7be95c7fe X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ body: encoding: UTF-8 - string: |- - { - "access_token" : "", - "token_type" : "bearer", - "expires_in" : 3599, - "scope" : "orde:r prat:dcur pypr:cur prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur shpr:rcu cset:ru ordp:r catg:cdur nltg:m", - "tenantId" : 8542, - "iat" : 1728571999, - "jti" : "2zmmYhwZMMJH2I/DndPH0A8sYKk=" - } - recorded_at: Thu, 10 Oct 2024 14:53:19 GMT + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303399,"jti":"182ff481-796f-4ea8-8b74-a15762f70614"}' + recorded_at: Fri, 21 Aug 2026 09:09:59 GMT - request: method: post uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations @@ -77,7 +75,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -88,7 +86,7 @@ http_interactions: message: Created headers: Date: - - Thu, 10 Oct 2024 14:53:19 GMT + - Fri, 21 Aug 2026 09:09:59 GMT Content-Type: - application/json Transfer-Encoding: @@ -96,11 +94,12 @@ http_interactions: Connection: - keep-alive Location: - - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/952797f5-b36d-4808-9c38-b4fd4e498190 + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/dab57e30-59e2-4bec-aaf5-d7d25c3e69af X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -112,16 +111,18 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.045' + - '0.114' X-B3-Traceid: - - 88177eb05756b661bdb2f1cd99562961 + - d7bba16ac957e545ed759fd74d84d127 X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: |- { - "_id" : "952797f5-b36d-4808-9c38-b4fd4e498190", + "_id" : "dab57e30-59e2-4bec-aaf5-d7d25c3e69af", "storeCode" : "MLC-St-Ives", "languageCode" : "en", "address" : { @@ -164,14 +165,14 @@ http_interactions: }, "_links" : { "self" : { - "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/952797f5-b36d-4808-9c38-b4fd4e498190" + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/dab57e30-59e2-4bec-aaf5-d7d25c3e69af" } } } - recorded_at: Thu, 10 Oct 2024 14:53:19 GMT + recorded_at: Fri, 21 Aug 2026 09:09:59 GMT - request: method: get - uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/952797f5-b36d-4808-9c38-b4fd4e498190 + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/dab57e30-59e2-4bec-aaf5-d7d25c3e69af body: encoding: US-ASCII string: '' @@ -181,7 +182,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -192,7 +193,7 @@ http_interactions: message: OK headers: Date: - - Thu, 10 Oct 2024 14:53:20 GMT + - Fri, 21 Aug 2026 09:09:59 GMT Content-Type: - application/json Transfer-Encoding: @@ -201,8 +202,9 @@ http_interactions: - keep-alive X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -214,16 +216,18 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.049' + - '0.021' X-B3-Traceid: - - 1ad2d92a822cd8684ea86b3f0191bf85 + - 426bbfc7d0009659bcd65c1d095dfc63 X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: |- { - "_id" : "952797f5-b36d-4808-9c38-b4fd4e498190", + "_id" : "dab57e30-59e2-4bec-aaf5-d7d25c3e69af", "storeCode" : "MLC-St-Ives", "languageCode" : "en", "address" : { @@ -266,14 +270,14 @@ http_interactions: }, "_links" : { "self" : { - "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/952797f5-b36d-4808-9c38-b4fd4e498190" + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/dab57e30-59e2-4bec-aaf5-d7d25c3e69af" } } } - recorded_at: Thu, 10 Oct 2024 14:53:19 GMT + recorded_at: Fri, 21 Aug 2026 09:09:59 GMT - request: method: delete - uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/952797f5-b36d-4808-9c38-b4fd4e498190 + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/dab57e30-59e2-4bec-aaf5-d7d25c3e69af body: encoding: US-ASCII string: '' @@ -283,7 +287,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -294,13 +298,14 @@ http_interactions: message: No Content headers: Date: - - Thu, 10 Oct 2024 14:53:20 GMT + - Fri, 21 Aug 2026 09:09:59 GMT Connection: - keep-alive X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -312,13 +317,15 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.049' + - '0.061' X-B3-Traceid: - - 24c9814ac54e1f6927b5099cc07dee6b + - fa6f421781a8a4d3a71025696579b228 X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: '' - recorded_at: Thu, 10 Oct 2024 14:53:20 GMT + recorded_at: Fri, 21 Aug 2026 09:09:59 GMT recorded_with: VCR 6.2.0 diff --git a/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_update/updates_a_shop_location.yml b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_update/updates_a_shop_location.yml index 4cbcc68..3402441 100644 --- a/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_update/updates_a_shop_location.yml +++ b/spec/vcr_cassettes/BeyondApi_Shop_Location/with_location/_update/updates_a_shop_location.yml @@ -12,7 +12,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Basic Accept-Encoding: @@ -23,46 +23,44 @@ http_interactions: message: OK headers: Date: - - Thu, 10 Oct 2024 14:53:20 GMT + - Fri, 21 Aug 2026 09:10:00 GMT Content-Type: - application/json;charset=utf-8 Transfer-Encoding: - chunked Connection: - keep-alive - Cache-Control: - - no-store - Pragma: - - no-cache X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - '0' Strict-Transport-Security: - max-age=31536000 ; includeSubDomains + - max-age=86400 X-Frame-Options: - DENY Server: - epages-beyond X-Request-Time: - - '0.104' + - '0.068' X-B3-Traceid: - - 1d26a32ed743bc965773c38dc508604e + - 5a9190cb7a2bee0895a2a3e8d048db4d X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ body: encoding: UTF-8 - string: |- - { - "access_token" : "", - "token_type" : "bearer", - "expires_in" : 3599, - "scope" : "orde:r prat:dcur pypr:cur prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur shpr:rcu cset:ru ordp:r catg:cdur nltg:m", - "tenantId" : 8542, - "iat" : 1728572000, - "jti" : "fV/S1GqKoBkytwszksGTzzh/qFI=" - } - recorded_at: Thu, 10 Oct 2024 14:53:20 GMT + string: '{"access_token":"","scope":"orde:r prat:dcur pypr:cur + prod:urdc lcnt:u pymt:ur loca:urcd sctg:m shat:cdru rfpr:ur prad:rcd shpz:dcur + shad:u ordr:cur shop:u shim:cd cust:urcd clpr:cr legl:ur prda:ru rtpr:rc oset:ur + shpr:rcu cset:ru ordp:r catg:cdur nltg:m","tenantId":8542,"token_type":"bearer","expires_in":899,"iat":1787303400,"jti":"13c9cccc-5ea5-43d6-95b9-c7c599a5f5e5"}' + recorded_at: Fri, 21 Aug 2026 09:10:00 GMT - request: method: post uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations @@ -77,7 +75,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -88,7 +86,7 @@ http_interactions: message: Created headers: Date: - - Thu, 10 Oct 2024 14:53:20 GMT + - Fri, 21 Aug 2026 09:10:00 GMT Content-Type: - application/json Transfer-Encoding: @@ -96,11 +94,12 @@ http_interactions: Connection: - keep-alive Location: - - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/ca139c15-93d7-4abb-b315-c624e7f77ea8 + - https://team42-beyond-api.beyondshop.cloud/api/shop/locations/db7ec9a5-5e80-401b-a8d4-8307fd9948f3 X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -112,16 +111,18 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.085' + - '0.051' X-B3-Traceid: - - 884d6a5019102a351e66e0a04a8f76f8 + - 21729d530140a5891f28c32879882452 X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: |- { - "_id" : "ca139c15-93d7-4abb-b315-c624e7f77ea8", + "_id" : "db7ec9a5-5e80-401b-a8d4-8307fd9948f3", "storeCode" : "MLC-St-Ives", "languageCode" : "en", "address" : { @@ -164,14 +165,14 @@ http_interactions: }, "_links" : { "self" : { - "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/ca139c15-93d7-4abb-b315-c624e7f77ea8" + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/db7ec9a5-5e80-401b-a8d4-8307fd9948f3" } } } - recorded_at: Thu, 10 Oct 2024 14:53:20 GMT + recorded_at: Fri, 21 Aug 2026 09:10:00 GMT - request: method: put - uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/ca139c15-93d7-4abb-b315-c624e7f77ea8 + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/db7ec9a5-5e80-401b-a8d4-8307fd9948f3 body: encoding: UTF-8 string: '{"languageCode":"en","storeCode":"MLC-St-Ives","companyName":"Updated @@ -183,7 +184,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -194,7 +195,7 @@ http_interactions: message: OK headers: Date: - - Thu, 10 Oct 2024 14:53:20 GMT + - Fri, 21 Aug 2026 09:10:00 GMT Content-Type: - application/json Transfer-Encoding: @@ -203,8 +204,9 @@ http_interactions: - keep-alive X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -216,16 +218,18 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.054' + - '0.075' X-B3-Traceid: - - b6769cba57e4732b78c2c5407b184c4a + - 8c7228c9520974b676cf0530e59cf64f X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: |- { - "_id" : "ca139c15-93d7-4abb-b315-c624e7f77ea8", + "_id" : "db7ec9a5-5e80-401b-a8d4-8307fd9948f3", "storeCode" : "MLC-St-Ives", "languageCode" : "en", "address" : { @@ -268,14 +272,14 @@ http_interactions: }, "_links" : { "self" : { - "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/ca139c15-93d7-4abb-b315-c624e7f77ea8" + "href" : "https://team42-beyond-api.beyondshop.cloud/api/shop/locations/db7ec9a5-5e80-401b-a8d4-8307fd9948f3" } } } - recorded_at: Thu, 10 Oct 2024 14:53:20 GMT + recorded_at: Fri, 21 Aug 2026 09:10:00 GMT - request: method: delete - uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/ca139c15-93d7-4abb-b315-c624e7f77ea8 + uri: https://team42-beyond-api.beyondshop.cloud/api/shop/locations/db7ec9a5-5e80-401b-a8d4-8307fd9948f3 body: encoding: US-ASCII string: '' @@ -285,7 +289,7 @@ http_interactions: Content-Type: - application/json User-Agent: - - Faraday v2.10.1 + - Faraday v2.14.1 Authorization: - Bearer Accept-Encoding: @@ -296,13 +300,14 @@ http_interactions: message: No Content headers: Date: - - Thu, 10 Oct 2024 14:53:21 GMT + - Fri, 21 Aug 2026 09:10:00 GMT Connection: - keep-alive X-Content-Type-Options: - nosniff + - nosniff X-Xss-Protection: - - 1; mode=block + - '0' Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Pragma: @@ -314,13 +319,15 @@ http_interactions: Server: - epages-beyond X-Request-Time: - - '0.047' + - '0.042' X-B3-Traceid: - - 6b389ffff2b29cc702455515224f9c90 + - f9bb727e7fea624430ce70bd1435f5ad X-Hello-Human: - Come work with us! https://developer.epages.com/devjobs/ + Strict-Transport-Security: + - max-age=86400 body: encoding: UTF-8 string: '' - recorded_at: Thu, 10 Oct 2024 14:53:21 GMT + recorded_at: Fri, 21 Aug 2026 09:10:00 GMT recorded_with: VCR 6.2.0