Skip to content

SDK regeneration#225

Open
fern-api[bot] wants to merge 2 commits into
masterfrom
fern-bot/2026-06-18_17-31-27_183
Open

SDK regeneration#225
fern-api[bot] wants to merge 2 commits into
masterfrom
fern-bot/2026-06-18_17-31-27_183

Conversation

@fern-api

@fern-api fern-api Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Automated SDK generation by Fern

fern-api Bot and others added 2 commits June 18, 2026 17:31
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-ruby-sdk: 1.0.0-rc84
…ests to flat LoadResponse; valid live query

Reapplies the .fernignore-protected Reporting API customizations onto the
freshly-regenerated SDK (RC 45.2.0-rc.0), which shipped the corrected FLAT
LoadResponse but without the manual code.

- lib/square/reporting_helper.rb: load_and_wait polling helper (Continue-wait
  retry loop, exponential backoff, cancellation). Sentinel detection uses
  to_h["error"] so it is unaffected by the flat-model change.
- test/custom/test_reporting_helper.rb: offline unit tests. Aligned to the flat
  model -- fixture now returns {"data":[]} (was {"results":[]}) and assertions
  use response.data (was response.results).
- test/custom/integration/client_tests/test_reporting.rb: live smoke test,
  gated behind TEST_SQUARE_REPORTING (skips when nil or blank). Aligned to flat
  model (response.data). Replaced the empty query {} -- which production rejects
  with HTTP 400 -- with a valid query (measures: ["Appointments.count"]).
- .github/workflows/ci.yml: wire TEST_SQUARE_REPORTING from repo secret.
- Gemfile.lock: declare x86_64-linux (glibc) platform so nokogiri resolves on CI.
- README: hand-authored Reporting API section (data-based example).
- .fernignore: protect lib/square/reporting_helper.rb.

FER-11257
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant