From 3d1b76bec443d9704543e2b02ccedd4b77883207 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 21:33:50 +0000 Subject: [PATCH 1/3] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-ruby-sdk: 1.0.0-rc84 --- .fern/metadata.json | 5 +++-- Gemfile.lock | 12 ++++++------ lib/square/client.rb | 2 +- lib/square/types/loyalty_event.rb | 4 ++-- lib/square/version.rb | 2 +- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index 896616f8..a5df950b 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,9 +1,10 @@ { - "cliVersion": "3.98.5", + "cliVersion": "5.56.0", "generatorName": "fernapi/fern-ruby-sdk", "generatorVersion": "1.0.0-rc84", "generatorConfig": { "enableWireTests": true }, - "sdkVersion": "45.2.0-rc.0" + "originGitCommit": "4b035f25928bb22328fb84412043abb52d24de61", + "sdkVersion": "46.0.0.20260715" } \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 2a1dad0c..affdb88c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - square.rb (45.2.0.pre.rc.0) + square.rb (46.0.0.20260715) GEM remote: https://rubygems.org/ @@ -16,8 +16,8 @@ GEM rexml hashdiff (1.2.1) io-console (0.8.2) - json (2.19.9) - language_server-protocol (3.17.0.5) + json (2.21.1) + language_server-protocol (3.17.0.6) lint_roller (1.1.0) method_source (1.1.0) minitest (5.27.0) @@ -40,7 +40,7 @@ GEM reline (0.6.3) io-console (~> 0.5) rexml (3.4.4) - rubocop (1.88.0) + rubocop (1.88.2) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -51,7 +51,7 @@ GEM rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.49.1) + rubocop-ast (1.50.0) parser (>= 3.3.7.2) prism (~> 1.7) rubocop-minitest (0.39.1) @@ -69,7 +69,7 @@ GEM PLATFORMS ruby - x86_64-linux + x86_64-linux-musl DEPENDENCIES minitest (~> 5.16) diff --git a/lib/square/client.rb b/lib/square/client.rb index a2c085e0..d1a90012 100644 --- a/lib/square/client.rb +++ b/lib/square/client.rb @@ -10,7 +10,7 @@ def initialize(base_url: nil, token: ENV.fetch("SQUARE_TOKEN", nil)) @raw_client = Square::Internal::Http::RawClient.new( base_url: base_url || Square::Environment::PRODUCTION, headers: { - "User-Agent" => "square.rb/45.2.0-rc.0", + "User-Agent" => "square.rb/46.0.0.20260715", "X-Fern-Language" => "Ruby", Authorization: "Bearer #{token}" } diff --git a/lib/square/types/loyalty_event.rb b/lib/square/types/loyalty_event.rb index 7f899603..b2261f8d 100644 --- a/lib/square/types/loyalty_event.rb +++ b/lib/square/types/loyalty_event.rb @@ -7,7 +7,7 @@ module Types # Events](https://developer.squareup.com/docs/loyalty-api/loyalty-events). class LoyaltyEvent < Internal::Types::Model field :id, -> { String }, optional: true, nullable: false - field :type, -> { Square::Types::LoyaltyEventType }, optional: false, nullable: false + field :type, -> { Square::Types::LoyaltyEventType }, optional: true, nullable: false field :created_at, -> { String }, optional: true, nullable: false field :accumulate_points, -> { Square::Types::LoyaltyEventAccumulatePoints }, optional: true, nullable: false field :create_reward, -> { Square::Types::LoyaltyEventCreateReward }, optional: true, nullable: false @@ -16,7 +16,7 @@ class LoyaltyEvent < Internal::Types::Model field :adjust_points, -> { Square::Types::LoyaltyEventAdjustPoints }, optional: true, nullable: false field :loyalty_account_id, -> { String }, optional: true, nullable: false field :location_id, -> { String }, optional: true, nullable: false - field :source, -> { Square::Types::LoyaltyEventSource }, optional: false, nullable: false + field :source, -> { Square::Types::LoyaltyEventSource }, optional: true, nullable: false field :expire_points, -> { Square::Types::LoyaltyEventExpirePoints }, optional: true, nullable: false field :other_event, -> { Square::Types::LoyaltyEventOther }, optional: true, nullable: false field :accumulate_promotion_points, -> { Square::Types::LoyaltyEventAccumulatePromotionPoints }, optional: true, nullable: false diff --git a/lib/square/version.rb b/lib/square/version.rb index ed98b77e..06ab25d0 100644 --- a/lib/square/version.rb +++ b/lib/square/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Square - VERSION = "45.2.0-rc.0" + VERSION = "46.0.0.20260715" end From 0f86b4dd33a45c439f4c81dae5239e181cdebe37 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 21:33:51 +0000 Subject: [PATCH 2/3] [fern-replay] advance lockfile --- .fern/replay.lock | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index 97fed88f..4e31c4dd 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -6,5 +6,11 @@ generations: timestamp: 2026-05-19T21:18:26.039Z cli_version: unknown generator_versions: {} -current_generation: f631923c98d9161665156652789a58902009b805 + - commit_sha: 73116ac88eb274f733272e287614d5f2961907b9 + tree_hash: 66b13709a73a2a08f1444f201ace247b37b94d41 + timestamp: 2026-07-13T21:33:48.371Z + cli_version: unknown + generator_versions: + fernapi/fern-ruby-sdk: 1.0.0-rc84 +current_generation: 73116ac88eb274f733272e287614d5f2961907b9 patches: [] From 1b795b6d8f7002540529ec8065f89a99bb248c20 Mon Sep 17 00:00:00 2001 From: menglinblock Date: Mon, 13 Jul 2026 16:00:42 -0700 Subject: [PATCH 3/3] Restore x86_64-linux platform in Gemfile.lock Co-authored-by: Cursor --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index affdb88c..63e00f57 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -69,7 +69,7 @@ GEM PLATFORMS ruby - x86_64-linux-musl + x86_64-linux DEPENDENCIES minitest (~> 5.16)