leal 0.0.9
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 +7 -0
- data/.fern/metadata.json +10 -0
- data/.fernignore +1 -0
- data/.rubocop.yml +103 -0
- data/CONTRIBUTING.md +120 -0
- data/LICENSE +21 -0
- data/README.md +185 -0
- data/Rakefile +20 -0
- data/custom.gemspec.rb +16 -0
- data/lib/leal/cards/client.rb +193 -0
- data/lib/leal/cards/types/create_cards_request.rb +13 -0
- data/lib/leal/cards/types/create_cards_request_card.rb +33 -0
- data/lib/leal/cards/types/create_cards_response.rb +45 -0
- data/lib/leal/cards/types/get_cards_request.rb +13 -0
- data/lib/leal/cards/types/get_cards_response.rb +45 -0
- data/lib/leal/cards/types/list_cards_request.rb +13 -0
- data/lib/leal/cards/types/list_cards_response_item.rb +45 -0
- data/lib/leal/cards/types/update_cards_request.rb +15 -0
- data/lib/leal/cards/types/update_cards_request_card.rb +33 -0
- data/lib/leal/cards/types/update_cards_response.rb +45 -0
- data/lib/leal/client.rb +62 -0
- data/lib/leal/customer_cards/client.rb +203 -0
- data/lib/leal/customer_cards/types/get_customer_cards_request.rb +15 -0
- data/lib/leal/customer_cards/types/get_customer_cards_response.rb +43 -0
- data/lib/leal/customer_cards/types/list_customer_cards_request.rb +13 -0
- data/lib/leal/customer_cards/types/list_customer_cards_response_item.rb +37 -0
- data/lib/leal/customer_cards/types/redeem_customer_cards_request.rb +17 -0
- data/lib/leal/customer_cards/types/redeem_customer_cards_response.rb +13 -0
- data/lib/leal/customer_cards/types/redeem_customer_cards_response_redemption.rb +21 -0
- data/lib/leal/customer_cards/types/stamp_customer_cards_request.rb +19 -0
- data/lib/leal/customer_cards/types/stamp_customer_cards_response.rb +43 -0
- data/lib/leal/customers/client.rb +217 -0
- data/lib/leal/customers/types/create_customers_request.rb +17 -0
- data/lib/leal/customers/types/create_customers_request_customer.rb +23 -0
- data/lib/leal/customers/types/create_customers_response.rb +35 -0
- data/lib/leal/customers/types/get_customers_request.rb +13 -0
- data/lib/leal/customers/types/get_customers_response.rb +35 -0
- data/lib/leal/customers/types/list_customers_request.rb +21 -0
- data/lib/leal/customers/types/list_customers_response.rb +13 -0
- data/lib/leal/customers/types/list_customers_response_pagination.rb +17 -0
- data/lib/leal/customers/types/update_customers_request.rb +15 -0
- data/lib/leal/customers/types/update_customers_request_customer.rb +23 -0
- data/lib/leal/customers/types/update_customers_response.rb +35 -0
- data/lib/leal/environment.rb +7 -0
- data/lib/leal/errors/api_error.rb +8 -0
- data/lib/leal/errors/client_error.rb +17 -0
- data/lib/leal/errors/redirect_error.rb +8 -0
- data/lib/leal/errors/response_error.rb +42 -0
- data/lib/leal/errors/server_error.rb +11 -0
- data/lib/leal/errors/timeout_error.rb +8 -0
- data/lib/leal/internal/errors/constraint_error.rb +10 -0
- data/lib/leal/internal/errors/type_error.rb +10 -0
- data/lib/leal/internal/http/base_request.rb +51 -0
- data/lib/leal/internal/http/raw_client.rb +265 -0
- data/lib/leal/internal/iterators/cursor_item_iterator.rb +28 -0
- data/lib/leal/internal/iterators/cursor_page_iterator.rb +63 -0
- data/lib/leal/internal/iterators/item_iterator.rb +65 -0
- data/lib/leal/internal/iterators/offset_item_iterator.rb +30 -0
- data/lib/leal/internal/iterators/offset_page_iterator.rb +103 -0
- data/lib/leal/internal/json/request.rb +41 -0
- data/lib/leal/internal/json/serializable.rb +25 -0
- data/lib/leal/internal/multipart/multipart_encoder.rb +141 -0
- data/lib/leal/internal/multipart/multipart_form_data.rb +78 -0
- data/lib/leal/internal/multipart/multipart_form_data_part.rb +51 -0
- data/lib/leal/internal/multipart/multipart_request.rb +40 -0
- data/lib/leal/internal/types/array.rb +47 -0
- data/lib/leal/internal/types/boolean.rb +34 -0
- data/lib/leal/internal/types/enum.rb +56 -0
- data/lib/leal/internal/types/hash.rb +36 -0
- data/lib/leal/internal/types/model/field.rb +38 -0
- data/lib/leal/internal/types/model.rb +208 -0
- data/lib/leal/internal/types/type.rb +35 -0
- data/lib/leal/internal/types/union.rb +161 -0
- data/lib/leal/internal/types/unknown.rb +15 -0
- data/lib/leal/internal/types/utils.rb +116 -0
- data/lib/leal/locations/client.rb +225 -0
- data/lib/leal/locations/types/create_locations_request.rb +13 -0
- data/lib/leal/locations/types/create_locations_request_location.rb +13 -0
- data/lib/leal/locations/types/create_locations_response.rb +25 -0
- data/lib/leal/locations/types/delete_locations_request.rb +13 -0
- data/lib/leal/locations/types/get_locations_request.rb +13 -0
- data/lib/leal/locations/types/get_locations_response.rb +25 -0
- data/lib/leal/locations/types/list_locations_request.rb +11 -0
- data/lib/leal/locations/types/list_locations_response_item.rb +25 -0
- data/lib/leal/locations/types/update_locations_request.rb +15 -0
- data/lib/leal/locations/types/update_locations_request_location.rb +13 -0
- data/lib/leal/locations/types/update_locations_response.rb +25 -0
- data/lib/leal/posters/client.rb +232 -0
- data/lib/leal/posters/types/create_posters_request.rb +13 -0
- data/lib/leal/posters/types/create_posters_request_poster.rb +23 -0
- data/lib/leal/posters/types/create_posters_response.rb +37 -0
- data/lib/leal/posters/types/delete_posters_request.rb +13 -0
- data/lib/leal/posters/types/get_posters_request.rb +13 -0
- data/lib/leal/posters/types/get_posters_response.rb +37 -0
- data/lib/leal/posters/types/list_posters_request.rb +15 -0
- data/lib/leal/posters/types/list_posters_response_item.rb +37 -0
- data/lib/leal/posters/types/update_posters_request.rb +15 -0
- data/lib/leal/posters/types/update_posters_request_poster.rb +21 -0
- data/lib/leal/posters/types/update_posters_response.rb +37 -0
- data/lib/leal/rewards/client.rb +233 -0
- data/lib/leal/rewards/types/create_rewards_request.rb +13 -0
- data/lib/leal/rewards/types/create_rewards_request_reward.rb +21 -0
- data/lib/leal/rewards/types/create_rewards_response.rb +29 -0
- data/lib/leal/rewards/types/delete_rewards_request.rb +13 -0
- data/lib/leal/rewards/types/get_rewards_request.rb +13 -0
- data/lib/leal/rewards/types/get_rewards_response.rb +29 -0
- data/lib/leal/rewards/types/list_rewards_request.rb +15 -0
- data/lib/leal/rewards/types/list_rewards_response_item.rb +29 -0
- data/lib/leal/rewards/types/update_rewards_request.rb +15 -0
- data/lib/leal/rewards/types/update_rewards_request_reward.rb +19 -0
- data/lib/leal/rewards/types/update_rewards_response.rb +29 -0
- data/lib/leal/status/client.rb +53 -0
- data/lib/leal/status/types/check_status_response.rb +23 -0
- data/lib/leal/status/types/check_status_response_rate_limit.rb +15 -0
- data/lib/leal/stores/client.rb +130 -0
- data/lib/leal/stores/types/get_stores_request.rb +11 -0
- data/lib/leal/stores/types/get_stores_response.rb +31 -0
- data/lib/leal/stores/types/list_stores_response_item.rb +31 -0
- data/lib/leal/stores/types/update_stores_request.rb +13 -0
- data/lib/leal/stores/types/update_stores_request_account.rb +13 -0
- data/lib/leal/stores/types/update_stores_response.rb +31 -0
- data/lib/leal/types/error.rb +13 -0
- data/lib/leal/types/error_errors.rb +14 -0
- data/lib/leal/version.rb +5 -0
- data/lib/leal.rb +120 -0
- data/reference.md +2414 -0
- metadata +168 -0
metadata
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: leal
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.9
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Leal
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-08-24 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: The Leal Ruby library provides convenient access to the Leal API from
|
|
14
|
+
Ruby.
|
|
15
|
+
email:
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- ".fern/metadata.json"
|
|
21
|
+
- ".fernignore"
|
|
22
|
+
- ".rubocop.yml"
|
|
23
|
+
- CONTRIBUTING.md
|
|
24
|
+
- LICENSE
|
|
25
|
+
- README.md
|
|
26
|
+
- Rakefile
|
|
27
|
+
- custom.gemspec.rb
|
|
28
|
+
- lib/leal.rb
|
|
29
|
+
- lib/leal/cards/client.rb
|
|
30
|
+
- lib/leal/cards/types/create_cards_request.rb
|
|
31
|
+
- lib/leal/cards/types/create_cards_request_card.rb
|
|
32
|
+
- lib/leal/cards/types/create_cards_response.rb
|
|
33
|
+
- lib/leal/cards/types/get_cards_request.rb
|
|
34
|
+
- lib/leal/cards/types/get_cards_response.rb
|
|
35
|
+
- lib/leal/cards/types/list_cards_request.rb
|
|
36
|
+
- lib/leal/cards/types/list_cards_response_item.rb
|
|
37
|
+
- lib/leal/cards/types/update_cards_request.rb
|
|
38
|
+
- lib/leal/cards/types/update_cards_request_card.rb
|
|
39
|
+
- lib/leal/cards/types/update_cards_response.rb
|
|
40
|
+
- lib/leal/client.rb
|
|
41
|
+
- lib/leal/customer_cards/client.rb
|
|
42
|
+
- lib/leal/customer_cards/types/get_customer_cards_request.rb
|
|
43
|
+
- lib/leal/customer_cards/types/get_customer_cards_response.rb
|
|
44
|
+
- lib/leal/customer_cards/types/list_customer_cards_request.rb
|
|
45
|
+
- lib/leal/customer_cards/types/list_customer_cards_response_item.rb
|
|
46
|
+
- lib/leal/customer_cards/types/redeem_customer_cards_request.rb
|
|
47
|
+
- lib/leal/customer_cards/types/redeem_customer_cards_response.rb
|
|
48
|
+
- lib/leal/customer_cards/types/redeem_customer_cards_response_redemption.rb
|
|
49
|
+
- lib/leal/customer_cards/types/stamp_customer_cards_request.rb
|
|
50
|
+
- lib/leal/customer_cards/types/stamp_customer_cards_response.rb
|
|
51
|
+
- lib/leal/customers/client.rb
|
|
52
|
+
- lib/leal/customers/types/create_customers_request.rb
|
|
53
|
+
- lib/leal/customers/types/create_customers_request_customer.rb
|
|
54
|
+
- lib/leal/customers/types/create_customers_response.rb
|
|
55
|
+
- lib/leal/customers/types/get_customers_request.rb
|
|
56
|
+
- lib/leal/customers/types/get_customers_response.rb
|
|
57
|
+
- lib/leal/customers/types/list_customers_request.rb
|
|
58
|
+
- lib/leal/customers/types/list_customers_response.rb
|
|
59
|
+
- lib/leal/customers/types/list_customers_response_pagination.rb
|
|
60
|
+
- lib/leal/customers/types/update_customers_request.rb
|
|
61
|
+
- lib/leal/customers/types/update_customers_request_customer.rb
|
|
62
|
+
- lib/leal/customers/types/update_customers_response.rb
|
|
63
|
+
- lib/leal/environment.rb
|
|
64
|
+
- lib/leal/errors/api_error.rb
|
|
65
|
+
- lib/leal/errors/client_error.rb
|
|
66
|
+
- lib/leal/errors/redirect_error.rb
|
|
67
|
+
- lib/leal/errors/response_error.rb
|
|
68
|
+
- lib/leal/errors/server_error.rb
|
|
69
|
+
- lib/leal/errors/timeout_error.rb
|
|
70
|
+
- lib/leal/internal/errors/constraint_error.rb
|
|
71
|
+
- lib/leal/internal/errors/type_error.rb
|
|
72
|
+
- lib/leal/internal/http/base_request.rb
|
|
73
|
+
- lib/leal/internal/http/raw_client.rb
|
|
74
|
+
- lib/leal/internal/iterators/cursor_item_iterator.rb
|
|
75
|
+
- lib/leal/internal/iterators/cursor_page_iterator.rb
|
|
76
|
+
- lib/leal/internal/iterators/item_iterator.rb
|
|
77
|
+
- lib/leal/internal/iterators/offset_item_iterator.rb
|
|
78
|
+
- lib/leal/internal/iterators/offset_page_iterator.rb
|
|
79
|
+
- lib/leal/internal/json/request.rb
|
|
80
|
+
- lib/leal/internal/json/serializable.rb
|
|
81
|
+
- lib/leal/internal/multipart/multipart_encoder.rb
|
|
82
|
+
- lib/leal/internal/multipart/multipart_form_data.rb
|
|
83
|
+
- lib/leal/internal/multipart/multipart_form_data_part.rb
|
|
84
|
+
- lib/leal/internal/multipart/multipart_request.rb
|
|
85
|
+
- lib/leal/internal/types/array.rb
|
|
86
|
+
- lib/leal/internal/types/boolean.rb
|
|
87
|
+
- lib/leal/internal/types/enum.rb
|
|
88
|
+
- lib/leal/internal/types/hash.rb
|
|
89
|
+
- lib/leal/internal/types/model.rb
|
|
90
|
+
- lib/leal/internal/types/model/field.rb
|
|
91
|
+
- lib/leal/internal/types/type.rb
|
|
92
|
+
- lib/leal/internal/types/union.rb
|
|
93
|
+
- lib/leal/internal/types/unknown.rb
|
|
94
|
+
- lib/leal/internal/types/utils.rb
|
|
95
|
+
- lib/leal/locations/client.rb
|
|
96
|
+
- lib/leal/locations/types/create_locations_request.rb
|
|
97
|
+
- lib/leal/locations/types/create_locations_request_location.rb
|
|
98
|
+
- lib/leal/locations/types/create_locations_response.rb
|
|
99
|
+
- lib/leal/locations/types/delete_locations_request.rb
|
|
100
|
+
- lib/leal/locations/types/get_locations_request.rb
|
|
101
|
+
- lib/leal/locations/types/get_locations_response.rb
|
|
102
|
+
- lib/leal/locations/types/list_locations_request.rb
|
|
103
|
+
- lib/leal/locations/types/list_locations_response_item.rb
|
|
104
|
+
- lib/leal/locations/types/update_locations_request.rb
|
|
105
|
+
- lib/leal/locations/types/update_locations_request_location.rb
|
|
106
|
+
- lib/leal/locations/types/update_locations_response.rb
|
|
107
|
+
- lib/leal/posters/client.rb
|
|
108
|
+
- lib/leal/posters/types/create_posters_request.rb
|
|
109
|
+
- lib/leal/posters/types/create_posters_request_poster.rb
|
|
110
|
+
- lib/leal/posters/types/create_posters_response.rb
|
|
111
|
+
- lib/leal/posters/types/delete_posters_request.rb
|
|
112
|
+
- lib/leal/posters/types/get_posters_request.rb
|
|
113
|
+
- lib/leal/posters/types/get_posters_response.rb
|
|
114
|
+
- lib/leal/posters/types/list_posters_request.rb
|
|
115
|
+
- lib/leal/posters/types/list_posters_response_item.rb
|
|
116
|
+
- lib/leal/posters/types/update_posters_request.rb
|
|
117
|
+
- lib/leal/posters/types/update_posters_request_poster.rb
|
|
118
|
+
- lib/leal/posters/types/update_posters_response.rb
|
|
119
|
+
- lib/leal/rewards/client.rb
|
|
120
|
+
- lib/leal/rewards/types/create_rewards_request.rb
|
|
121
|
+
- lib/leal/rewards/types/create_rewards_request_reward.rb
|
|
122
|
+
- lib/leal/rewards/types/create_rewards_response.rb
|
|
123
|
+
- lib/leal/rewards/types/delete_rewards_request.rb
|
|
124
|
+
- lib/leal/rewards/types/get_rewards_request.rb
|
|
125
|
+
- lib/leal/rewards/types/get_rewards_response.rb
|
|
126
|
+
- lib/leal/rewards/types/list_rewards_request.rb
|
|
127
|
+
- lib/leal/rewards/types/list_rewards_response_item.rb
|
|
128
|
+
- lib/leal/rewards/types/update_rewards_request.rb
|
|
129
|
+
- lib/leal/rewards/types/update_rewards_request_reward.rb
|
|
130
|
+
- lib/leal/rewards/types/update_rewards_response.rb
|
|
131
|
+
- lib/leal/status/client.rb
|
|
132
|
+
- lib/leal/status/types/check_status_response.rb
|
|
133
|
+
- lib/leal/status/types/check_status_response_rate_limit.rb
|
|
134
|
+
- lib/leal/stores/client.rb
|
|
135
|
+
- lib/leal/stores/types/get_stores_request.rb
|
|
136
|
+
- lib/leal/stores/types/get_stores_response.rb
|
|
137
|
+
- lib/leal/stores/types/list_stores_response_item.rb
|
|
138
|
+
- lib/leal/stores/types/update_stores_request.rb
|
|
139
|
+
- lib/leal/stores/types/update_stores_request_account.rb
|
|
140
|
+
- lib/leal/stores/types/update_stores_response.rb
|
|
141
|
+
- lib/leal/types/error.rb
|
|
142
|
+
- lib/leal/types/error_errors.rb
|
|
143
|
+
- lib/leal/version.rb
|
|
144
|
+
- reference.md
|
|
145
|
+
homepage:
|
|
146
|
+
licenses: []
|
|
147
|
+
metadata:
|
|
148
|
+
rubygems_mfa_required: 'true'
|
|
149
|
+
post_install_message:
|
|
150
|
+
rdoc_options: []
|
|
151
|
+
require_paths:
|
|
152
|
+
- lib
|
|
153
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
154
|
+
requirements:
|
|
155
|
+
- - ">="
|
|
156
|
+
- !ruby/object:Gem::Version
|
|
157
|
+
version: 3.3.0
|
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
|
+
requirements:
|
|
160
|
+
- - ">="
|
|
161
|
+
- !ruby/object:Gem::Version
|
|
162
|
+
version: '0'
|
|
163
|
+
requirements: []
|
|
164
|
+
rubygems_version: 3.5.22
|
|
165
|
+
signing_key:
|
|
166
|
+
specification_version: 4
|
|
167
|
+
summary: Ruby client library for the Leal API
|
|
168
|
+
test_files: []
|