Skip to content

fix: remove default base_url fallback in clients and forward request_options to API requests#220

Open
fern-support wants to merge 2 commits intomasterfrom
default-fallback-env
Open

fix: remove default base_url fallback in clients and forward request_options to API requests#220
fern-support wants to merge 2 commits intomasterfrom
default-fallback-env

Conversation

@fern-support
Copy link
Collaborator

@fern-support fern-support commented Feb 4, 2026

closes: #218
closes: #219

the reason was these 2 files are added in .fernigone so the updates on 1.0.0-rc61 didn't able to update these files.


Stop defaulting request base_url to Square::Environment::PRODUCTION in inventory and transfer_orders clients. The Request construction now uses request_options[:base_url] directly (no || fallback), requiring callers or a higher-level config to provide a base_url and avoiding implicit production assumptions. Files changed: lib/square/inventory/client.rb, lib/square/transfer_orders/client.rb.

Stop defaulting request base_url to Square::Environment::PRODUCTION in inventory and transfer_orders clients. The Request construction now uses request_options[:base_url] directly (no || fallback), requiring callers or a higher-level config to provide a base_url and avoiding implicit production assumptions. Files changed: lib/square/inventory/client.rb, lib/square/transfer_orders/client.rb.
Add request_options to Square::Internal::JSON::Request calls in lib/square/inventory/client.rb and lib/square/transfer_orders/client.rb so per-request options (e.g. base_url, headers) are properly forwarded. Updated request constructors for various GET/POST/PUT/DELETE endpoints to include request_options and adjusted argument formatting; no other business logic changes.
@fern-support fern-support changed the title fix: remove default base_url fallback in clients fix: remove default base_url fallback in clients and forward request_options to API requests Feb 4, 2026
@fern-support fern-support changed the title fix: remove default base_url fallback in clients and forward request_options to API requests fix: remove default base_url fallback in clients and forward request_options to API requests Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant