leal 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fdd47375e817eb7cc949152c9f4cef703de4c1abe1c335a4c3680a1abd159700
4
- data.tar.gz: 0b67f1978f5792ad9c8fd99427090fafc3d3d9ab0781da3414a6cd1959176622
3
+ metadata.gz: 615e1aad31459154779b3978b3d33be4859e5649bee36ae8773af291babc1a0f
4
+ data.tar.gz: 8c70895f3368c2edadeade3696b6ee9f262d0dc232d7f330266da01a7ea4c3ba
5
5
  SHA512:
6
- metadata.gz: e8c50a53c258c428329a786cf5cfd5ca97c088e1673b6252b5faafd809d905d2f7832f8c079d10d0f70465bd3c78e6b13d2714c8892ecd5cc165e101b43f6ba9
7
- data.tar.gz: 4e6744be411a9c81a15423094429b1b82e6294f313d8ea52a31b301ed3db678625673908f84e218f6ad9d5e332efebe253fb74bdc7343c788ec8a1d16e75c46a
6
+ metadata.gz: ef761cf1dd8f5bc8ee0fbe34e025625229b0e0d56eb366efbd4bc2c2ee3b51f68b365c5abbb3bad0aa3ff542cca69feef68f5388f4a36e78dd522bbe0e0e5140
7
+ data.tar.gz: f59cc350d7489cac0bfa7a257dc60dea3bbe9dc5f7dba72b6043b6f54b43313255e626c88d9f58ec116ed76f795baf5348b0c8d457e09c7f60e061d6473d51d2
data/.fern/metadata.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "cliVersion": "5.102.0",
3
3
  "generatorName": "fernapi/fern-ruby-sdk",
4
4
  "generatorVersion": "1.23.2",
5
- "originGitCommit": "93573024b076f6e530d634a8a2b9f8c248da28c1",
5
+ "originGitCommit": "45e82909e55902d08b97c1426ffa0d22edb45792",
6
6
  "originGitCommitIsDirty": false,
7
7
  "invokedBy": "ci",
8
8
  "ciProvider": "github",
9
- "sdkVersion": "0.0.10"
9
+ "sdkVersion": "0.0.12"
10
10
  }
@@ -4,14 +4,22 @@ module Leal
4
4
  module Cards
5
5
  module Types
6
6
  class CreateCardsRequestCard < Internal::Types::Model
7
+ field :auxiliary_fields, -> { Internal::Types::Array[String] }, optional: true, nullable: false
8
+
7
9
  field :card_color, -> { String }, optional: true, nullable: false
8
10
 
11
+ field :expires_at, -> { String }, optional: true, nullable: false
12
+
9
13
  field :header_text, -> { String }, optional: true, nullable: false
10
14
 
11
15
  field :initial_stamps, -> { Integer }, optional: true, nullable: false
12
16
 
13
17
  field :name, -> { String }, optional: false, nullable: false
14
18
 
19
+ field :show_member_field, -> { Internal::Types::Boolean }, optional: true, nullable: false
20
+
21
+ field :show_stamps_to_reward_field, -> { Internal::Types::Boolean }, optional: true, nullable: false
22
+
15
23
  field :stamp_background_color, -> { String }, optional: true, nullable: false
16
24
 
17
25
  field :stamp_color, -> { String }, optional: true, nullable: false
@@ -6,12 +6,16 @@ module Leal
6
6
  class CreateCardsResponse < Internal::Types::Model
7
7
  field :archived_at, -> { String }, optional: false, nullable: false
8
8
 
9
+ field :auxiliary_fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false
10
+
9
11
  field :card_color, -> { String }, optional: false, nullable: false
10
12
 
11
13
  field :created_at, -> { String }, optional: false, nullable: false
12
14
 
13
15
  field :customer_cards_count, -> { Integer }, optional: false, nullable: false
14
16
 
17
+ field :expires_at, -> { String }, optional: false, nullable: false
18
+
15
19
  field :header_text, -> { String }, optional: false, nullable: false
16
20
 
17
21
  field :id, -> { Integer }, optional: false, nullable: false
@@ -22,6 +26,10 @@ module Leal
22
26
 
23
27
  field :rewards_count, -> { Integer }, optional: false, nullable: false
24
28
 
29
+ field :show_member_field, -> { Internal::Types::Boolean }, optional: false, nullable: false
30
+
31
+ field :show_stamps_to_reward_field, -> { Internal::Types::Boolean }, optional: false, nullable: false
32
+
25
33
  field :stamp_background_color, -> { String }, optional: false, nullable: false
26
34
 
27
35
  field :stamp_color, -> { String }, optional: false, nullable: false
@@ -6,12 +6,16 @@ module Leal
6
6
  class GetCardsResponse < Internal::Types::Model
7
7
  field :archived_at, -> { String }, optional: false, nullable: false
8
8
 
9
+ field :auxiliary_fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false
10
+
9
11
  field :card_color, -> { String }, optional: false, nullable: false
10
12
 
11
13
  field :created_at, -> { String }, optional: false, nullable: false
12
14
 
13
15
  field :customer_cards_count, -> { Integer }, optional: false, nullable: false
14
16
 
17
+ field :expires_at, -> { String }, optional: false, nullable: false
18
+
15
19
  field :header_text, -> { String }, optional: false, nullable: false
16
20
 
17
21
  field :id, -> { Integer }, optional: false, nullable: false
@@ -22,6 +26,10 @@ module Leal
22
26
 
23
27
  field :rewards_count, -> { Integer }, optional: false, nullable: false
24
28
 
29
+ field :show_member_field, -> { Internal::Types::Boolean }, optional: false, nullable: false
30
+
31
+ field :show_stamps_to_reward_field, -> { Internal::Types::Boolean }, optional: false, nullable: false
32
+
25
33
  field :stamp_background_color, -> { String }, optional: false, nullable: false
26
34
 
27
35
  field :stamp_color, -> { String }, optional: false, nullable: false
@@ -6,12 +6,16 @@ module Leal
6
6
  class ListCardsResponseItem < Internal::Types::Model
7
7
  field :archived_at, -> { String }, optional: false, nullable: false
8
8
 
9
+ field :auxiliary_fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false
10
+
9
11
  field :card_color, -> { String }, optional: false, nullable: false
10
12
 
11
13
  field :created_at, -> { String }, optional: false, nullable: false
12
14
 
13
15
  field :customer_cards_count, -> { Integer }, optional: false, nullable: false
14
16
 
17
+ field :expires_at, -> { String }, optional: false, nullable: false
18
+
15
19
  field :header_text, -> { String }, optional: false, nullable: false
16
20
 
17
21
  field :id, -> { Integer }, optional: false, nullable: false
@@ -22,6 +26,10 @@ module Leal
22
26
 
23
27
  field :rewards_count, -> { Integer }, optional: false, nullable: false
24
28
 
29
+ field :show_member_field, -> { Internal::Types::Boolean }, optional: false, nullable: false
30
+
31
+ field :show_stamps_to_reward_field, -> { Internal::Types::Boolean }, optional: false, nullable: false
32
+
25
33
  field :stamp_background_color, -> { String }, optional: false, nullable: false
26
34
 
27
35
  field :stamp_color, -> { String }, optional: false, nullable: false
@@ -4,14 +4,22 @@ module Leal
4
4
  module Cards
5
5
  module Types
6
6
  class UpdateCardsRequestCard < Internal::Types::Model
7
+ field :auxiliary_fields, -> { Internal::Types::Array[String] }, optional: true, nullable: false
8
+
7
9
  field :card_color, -> { String }, optional: true, nullable: false
8
10
 
11
+ field :expires_at, -> { String }, optional: true, nullable: false
12
+
9
13
  field :header_text, -> { String }, optional: true, nullable: false
10
14
 
11
15
  field :initial_stamps, -> { Integer }, optional: true, nullable: false
12
16
 
13
17
  field :name, -> { String }, optional: true, nullable: false
14
18
 
19
+ field :show_member_field, -> { Internal::Types::Boolean }, optional: true, nullable: false
20
+
21
+ field :show_stamps_to_reward_field, -> { Internal::Types::Boolean }, optional: true, nullable: false
22
+
15
23
  field :stamp_background_color, -> { String }, optional: true, nullable: false
16
24
 
17
25
  field :stamp_color, -> { String }, optional: true, nullable: false
@@ -6,12 +6,16 @@ module Leal
6
6
  class UpdateCardsResponse < Internal::Types::Model
7
7
  field :archived_at, -> { String }, optional: false, nullable: false
8
8
 
9
+ field :auxiliary_fields, -> { Internal::Types::Array[String] }, optional: false, nullable: false
10
+
9
11
  field :card_color, -> { String }, optional: false, nullable: false
10
12
 
11
13
  field :created_at, -> { String }, optional: false, nullable: false
12
14
 
13
15
  field :customer_cards_count, -> { Integer }, optional: false, nullable: false
14
16
 
17
+ field :expires_at, -> { String }, optional: false, nullable: false
18
+
15
19
  field :header_text, -> { String }, optional: false, nullable: false
16
20
 
17
21
  field :id, -> { Integer }, optional: false, nullable: false
@@ -22,6 +26,10 @@ module Leal
22
26
 
23
27
  field :rewards_count, -> { Integer }, optional: false, nullable: false
24
28
 
29
+ field :show_member_field, -> { Internal::Types::Boolean }, optional: false, nullable: false
30
+
31
+ field :show_stamps_to_reward_field, -> { Internal::Types::Boolean }, optional: false, nullable: false
32
+
25
33
  field :stamp_background_color, -> { String }, optional: false, nullable: false
26
34
 
27
35
  field :stamp_color, -> { String }, optional: false, nullable: false
data/lib/leal/client.rb CHANGED
@@ -11,7 +11,7 @@ module Leal
11
11
  @raw_client = Leal::Internal::Http::RawClient.new(
12
12
  base_url: base_url || Leal::Environment::PRODUCTION,
13
13
  headers: {
14
- "User-Agent" => "leal/0.0.10",
14
+ "User-Agent" => "leal/0.0.12",
15
15
  "X-Fern-Language" => "Ruby",
16
16
  Authorization: "Bearer #{token}"
17
17
  },
@@ -8,10 +8,20 @@ module Leal
8
8
 
9
9
  field :card_id, -> { Integer }, optional: false, nullable: false
10
10
 
11
+ field :contact_collection_mode, -> { String }, optional: true, nullable: false
12
+
13
+ field :minimum_age, -> { Integer }, optional: true, nullable: false
14
+
11
15
  field :paper_size, -> { String }, optional: true, nullable: false
12
16
 
13
17
  field :primary_color, -> { String }, optional: true, nullable: false
14
18
 
19
+ field :require_birthday, -> { Internal::Types::Boolean }, optional: true, nullable: false
20
+
21
+ field :require_email, -> { Internal::Types::Boolean }, optional: true, nullable: false
22
+
23
+ field :require_phone, -> { Internal::Types::Boolean }, optional: true, nullable: false
24
+
15
25
  field :secondary_color, -> { String }, optional: true, nullable: false
16
26
 
17
27
  field :text_color, -> { String }, optional: true, nullable: false
@@ -10,18 +10,32 @@ module Leal
10
10
 
11
11
  field :card_id, -> { Integer }, optional: false, nullable: false
12
12
 
13
+ field :collect_email, -> { Internal::Types::Boolean }, optional: false, nullable: false
14
+
15
+ field :collect_phone, -> { Internal::Types::Boolean }, optional: false, nullable: false
16
+
17
+ field :contact_collection_mode, -> { String }, optional: false, nullable: false
18
+
13
19
  field :created_at, -> { String }, optional: false, nullable: false
14
20
 
15
21
  field :display_url, -> { String }, optional: false, nullable: false
16
22
 
17
23
  field :id, -> { Integer }, optional: false, nullable: false
18
24
 
25
+ field :minimum_age, -> { Integer }, optional: false, nullable: false
26
+
19
27
  field :paper_size, -> { String }, optional: false, nullable: false
20
28
 
21
29
  field :primary_color, -> { String }, optional: false, nullable: false
22
30
 
23
31
  field :qr_code_url, -> { String }, optional: false, nullable: false
24
32
 
33
+ field :require_birthday, -> { Internal::Types::Boolean }, optional: false, nullable: false
34
+
35
+ field :require_email, -> { Internal::Types::Boolean }, optional: false, nullable: false
36
+
37
+ field :require_phone, -> { Internal::Types::Boolean }, optional: false, nullable: false
38
+
25
39
  field :secondary_color, -> { String }, optional: false, nullable: false
26
40
 
27
41
  field :signup_url, -> { String }, optional: false, nullable: false
@@ -10,18 +10,32 @@ module Leal
10
10
 
11
11
  field :card_id, -> { Integer }, optional: false, nullable: false
12
12
 
13
+ field :collect_email, -> { Internal::Types::Boolean }, optional: false, nullable: false
14
+
15
+ field :collect_phone, -> { Internal::Types::Boolean }, optional: false, nullable: false
16
+
17
+ field :contact_collection_mode, -> { String }, optional: false, nullable: false
18
+
13
19
  field :created_at, -> { String }, optional: false, nullable: false
14
20
 
15
21
  field :display_url, -> { String }, optional: false, nullable: false
16
22
 
17
23
  field :id, -> { Integer }, optional: false, nullable: false
18
24
 
25
+ field :minimum_age, -> { Integer }, optional: false, nullable: false
26
+
19
27
  field :paper_size, -> { String }, optional: false, nullable: false
20
28
 
21
29
  field :primary_color, -> { String }, optional: false, nullable: false
22
30
 
23
31
  field :qr_code_url, -> { String }, optional: false, nullable: false
24
32
 
33
+ field :require_birthday, -> { Internal::Types::Boolean }, optional: false, nullable: false
34
+
35
+ field :require_email, -> { Internal::Types::Boolean }, optional: false, nullable: false
36
+
37
+ field :require_phone, -> { Internal::Types::Boolean }, optional: false, nullable: false
38
+
25
39
  field :secondary_color, -> { String }, optional: false, nullable: false
26
40
 
27
41
  field :signup_url, -> { String }, optional: false, nullable: false
@@ -10,18 +10,32 @@ module Leal
10
10
 
11
11
  field :card_id, -> { Integer }, optional: false, nullable: false
12
12
 
13
+ field :collect_email, -> { Internal::Types::Boolean }, optional: false, nullable: false
14
+
15
+ field :collect_phone, -> { Internal::Types::Boolean }, optional: false, nullable: false
16
+
17
+ field :contact_collection_mode, -> { String }, optional: false, nullable: false
18
+
13
19
  field :created_at, -> { String }, optional: false, nullable: false
14
20
 
15
21
  field :display_url, -> { String }, optional: false, nullable: false
16
22
 
17
23
  field :id, -> { Integer }, optional: false, nullable: false
18
24
 
25
+ field :minimum_age, -> { Integer }, optional: false, nullable: false
26
+
19
27
  field :paper_size, -> { String }, optional: false, nullable: false
20
28
 
21
29
  field :primary_color, -> { String }, optional: false, nullable: false
22
30
 
23
31
  field :qr_code_url, -> { String }, optional: false, nullable: false
24
32
 
33
+ field :require_birthday, -> { Internal::Types::Boolean }, optional: false, nullable: false
34
+
35
+ field :require_email, -> { Internal::Types::Boolean }, optional: false, nullable: false
36
+
37
+ field :require_phone, -> { Internal::Types::Boolean }, optional: false, nullable: false
38
+
25
39
  field :secondary_color, -> { String }, optional: false, nullable: false
26
40
 
27
41
  field :signup_url, -> { String }, optional: false, nullable: false
@@ -6,10 +6,20 @@ module Leal
6
6
  class UpdatePostersRequestPoster < Internal::Types::Model
7
7
  field :active, -> { Internal::Types::Boolean }, optional: true, nullable: false
8
8
 
9
+ field :contact_collection_mode, -> { String }, optional: true, nullable: false
10
+
11
+ field :minimum_age, -> { Integer }, optional: true, nullable: false
12
+
9
13
  field :paper_size, -> { String }, optional: true, nullable: false
10
14
 
11
15
  field :primary_color, -> { String }, optional: true, nullable: false
12
16
 
17
+ field :require_birthday, -> { Internal::Types::Boolean }, optional: true, nullable: false
18
+
19
+ field :require_email, -> { Internal::Types::Boolean }, optional: true, nullable: false
20
+
21
+ field :require_phone, -> { Internal::Types::Boolean }, optional: true, nullable: false
22
+
13
23
  field :secondary_color, -> { String }, optional: true, nullable: false
14
24
 
15
25
  field :text_color, -> { String }, optional: true, nullable: false
@@ -10,18 +10,32 @@ module Leal
10
10
 
11
11
  field :card_id, -> { Integer }, optional: false, nullable: false
12
12
 
13
+ field :collect_email, -> { Internal::Types::Boolean }, optional: false, nullable: false
14
+
15
+ field :collect_phone, -> { Internal::Types::Boolean }, optional: false, nullable: false
16
+
17
+ field :contact_collection_mode, -> { String }, optional: false, nullable: false
18
+
13
19
  field :created_at, -> { String }, optional: false, nullable: false
14
20
 
15
21
  field :display_url, -> { String }, optional: false, nullable: false
16
22
 
17
23
  field :id, -> { Integer }, optional: false, nullable: false
18
24
 
25
+ field :minimum_age, -> { Integer }, optional: false, nullable: false
26
+
19
27
  field :paper_size, -> { String }, optional: false, nullable: false
20
28
 
21
29
  field :primary_color, -> { String }, optional: false, nullable: false
22
30
 
23
31
  field :qr_code_url, -> { String }, optional: false, nullable: false
24
32
 
33
+ field :require_birthday, -> { Internal::Types::Boolean }, optional: false, nullable: false
34
+
35
+ field :require_email, -> { Internal::Types::Boolean }, optional: false, nullable: false
36
+
37
+ field :require_phone, -> { Internal::Types::Boolean }, optional: false, nullable: false
38
+
25
39
  field :secondary_color, -> { String }, optional: false, nullable: false
26
40
 
27
41
  field :signup_url, -> { String }, optional: false, nullable: false
@@ -17,6 +17,8 @@ module Leal
17
17
  field :rate_limit, -> { Leal::Status::Types::CheckStatusResponseRateLimit }, optional: false, nullable: false
18
18
 
19
19
  field :status, -> { String }, optional: false, nullable: false
20
+
21
+ field :versioning, -> { Leal::Status::Types::CheckStatusResponseVersioning }, optional: false, nullable: false
20
22
  end
21
23
  end
22
24
  end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leal
4
+ module Status
5
+ module Types
6
+ class CheckStatusResponseVersioning < Internal::Types::Model
7
+ field :current, -> { String }, optional: false, nullable: false
8
+
9
+ field :deprecated, -> { Internal::Types::Array[String] }, optional: false, nullable: false
10
+
11
+ field :policy_url, -> { String }, optional: false, nullable: false
12
+
13
+ field :signalling, -> { String }, optional: false, nullable: false
14
+
15
+ field :supported, -> { Internal::Types::Array[String] }, optional: false, nullable: false
16
+ end
17
+ end
18
+ end
19
+ end
data/lib/leal/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Leal
4
- VERSION = "0.0.10"
4
+ VERSION = "0.0.12"
5
5
  end
data/lib/leal.rb CHANGED
@@ -76,6 +76,7 @@ require_relative "leal/rewards/types/get_rewards_response"
76
76
  require_relative "leal/rewards/types/update_rewards_request_reward"
77
77
  require_relative "leal/rewards/types/update_rewards_response"
78
78
  require_relative "leal/status/types/check_status_response_rate_limit"
79
+ require_relative "leal/status/types/check_status_response_versioning"
79
80
  require_relative "leal/status/types/check_status_response"
80
81
  require_relative "leal/types/error_errors"
81
82
  require_relative "leal/types/error"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leal
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-08-25 00:00:00.000000000 Z
11
+ date: 2026-08-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The Leal Ruby library provides convenient access to the Leal API from
14
14
  Ruby.
@@ -131,6 +131,7 @@ files:
131
131
  - lib/leal/status/client.rb
132
132
  - lib/leal/status/types/check_status_response.rb
133
133
  - lib/leal/status/types/check_status_response_rate_limit.rb
134
+ - lib/leal/status/types/check_status_response_versioning.rb
134
135
  - lib/leal/stores/client.rb
135
136
  - lib/leal/stores/types/get_stores_request.rb
136
137
  - lib/leal/stores/types/get_stores_response.rb