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.
Files changed (127) hide show
  1. checksums.yaml +7 -0
  2. data/.fern/metadata.json +10 -0
  3. data/.fernignore +1 -0
  4. data/.rubocop.yml +103 -0
  5. data/CONTRIBUTING.md +120 -0
  6. data/LICENSE +21 -0
  7. data/README.md +185 -0
  8. data/Rakefile +20 -0
  9. data/custom.gemspec.rb +16 -0
  10. data/lib/leal/cards/client.rb +193 -0
  11. data/lib/leal/cards/types/create_cards_request.rb +13 -0
  12. data/lib/leal/cards/types/create_cards_request_card.rb +33 -0
  13. data/lib/leal/cards/types/create_cards_response.rb +45 -0
  14. data/lib/leal/cards/types/get_cards_request.rb +13 -0
  15. data/lib/leal/cards/types/get_cards_response.rb +45 -0
  16. data/lib/leal/cards/types/list_cards_request.rb +13 -0
  17. data/lib/leal/cards/types/list_cards_response_item.rb +45 -0
  18. data/lib/leal/cards/types/update_cards_request.rb +15 -0
  19. data/lib/leal/cards/types/update_cards_request_card.rb +33 -0
  20. data/lib/leal/cards/types/update_cards_response.rb +45 -0
  21. data/lib/leal/client.rb +62 -0
  22. data/lib/leal/customer_cards/client.rb +203 -0
  23. data/lib/leal/customer_cards/types/get_customer_cards_request.rb +15 -0
  24. data/lib/leal/customer_cards/types/get_customer_cards_response.rb +43 -0
  25. data/lib/leal/customer_cards/types/list_customer_cards_request.rb +13 -0
  26. data/lib/leal/customer_cards/types/list_customer_cards_response_item.rb +37 -0
  27. data/lib/leal/customer_cards/types/redeem_customer_cards_request.rb +17 -0
  28. data/lib/leal/customer_cards/types/redeem_customer_cards_response.rb +13 -0
  29. data/lib/leal/customer_cards/types/redeem_customer_cards_response_redemption.rb +21 -0
  30. data/lib/leal/customer_cards/types/stamp_customer_cards_request.rb +19 -0
  31. data/lib/leal/customer_cards/types/stamp_customer_cards_response.rb +43 -0
  32. data/lib/leal/customers/client.rb +217 -0
  33. data/lib/leal/customers/types/create_customers_request.rb +17 -0
  34. data/lib/leal/customers/types/create_customers_request_customer.rb +23 -0
  35. data/lib/leal/customers/types/create_customers_response.rb +35 -0
  36. data/lib/leal/customers/types/get_customers_request.rb +13 -0
  37. data/lib/leal/customers/types/get_customers_response.rb +35 -0
  38. data/lib/leal/customers/types/list_customers_request.rb +21 -0
  39. data/lib/leal/customers/types/list_customers_response.rb +13 -0
  40. data/lib/leal/customers/types/list_customers_response_pagination.rb +17 -0
  41. data/lib/leal/customers/types/update_customers_request.rb +15 -0
  42. data/lib/leal/customers/types/update_customers_request_customer.rb +23 -0
  43. data/lib/leal/customers/types/update_customers_response.rb +35 -0
  44. data/lib/leal/environment.rb +7 -0
  45. data/lib/leal/errors/api_error.rb +8 -0
  46. data/lib/leal/errors/client_error.rb +17 -0
  47. data/lib/leal/errors/redirect_error.rb +8 -0
  48. data/lib/leal/errors/response_error.rb +42 -0
  49. data/lib/leal/errors/server_error.rb +11 -0
  50. data/lib/leal/errors/timeout_error.rb +8 -0
  51. data/lib/leal/internal/errors/constraint_error.rb +10 -0
  52. data/lib/leal/internal/errors/type_error.rb +10 -0
  53. data/lib/leal/internal/http/base_request.rb +51 -0
  54. data/lib/leal/internal/http/raw_client.rb +265 -0
  55. data/lib/leal/internal/iterators/cursor_item_iterator.rb +28 -0
  56. data/lib/leal/internal/iterators/cursor_page_iterator.rb +63 -0
  57. data/lib/leal/internal/iterators/item_iterator.rb +65 -0
  58. data/lib/leal/internal/iterators/offset_item_iterator.rb +30 -0
  59. data/lib/leal/internal/iterators/offset_page_iterator.rb +103 -0
  60. data/lib/leal/internal/json/request.rb +41 -0
  61. data/lib/leal/internal/json/serializable.rb +25 -0
  62. data/lib/leal/internal/multipart/multipart_encoder.rb +141 -0
  63. data/lib/leal/internal/multipart/multipart_form_data.rb +78 -0
  64. data/lib/leal/internal/multipart/multipart_form_data_part.rb +51 -0
  65. data/lib/leal/internal/multipart/multipart_request.rb +40 -0
  66. data/lib/leal/internal/types/array.rb +47 -0
  67. data/lib/leal/internal/types/boolean.rb +34 -0
  68. data/lib/leal/internal/types/enum.rb +56 -0
  69. data/lib/leal/internal/types/hash.rb +36 -0
  70. data/lib/leal/internal/types/model/field.rb +38 -0
  71. data/lib/leal/internal/types/model.rb +208 -0
  72. data/lib/leal/internal/types/type.rb +35 -0
  73. data/lib/leal/internal/types/union.rb +161 -0
  74. data/lib/leal/internal/types/unknown.rb +15 -0
  75. data/lib/leal/internal/types/utils.rb +116 -0
  76. data/lib/leal/locations/client.rb +225 -0
  77. data/lib/leal/locations/types/create_locations_request.rb +13 -0
  78. data/lib/leal/locations/types/create_locations_request_location.rb +13 -0
  79. data/lib/leal/locations/types/create_locations_response.rb +25 -0
  80. data/lib/leal/locations/types/delete_locations_request.rb +13 -0
  81. data/lib/leal/locations/types/get_locations_request.rb +13 -0
  82. data/lib/leal/locations/types/get_locations_response.rb +25 -0
  83. data/lib/leal/locations/types/list_locations_request.rb +11 -0
  84. data/lib/leal/locations/types/list_locations_response_item.rb +25 -0
  85. data/lib/leal/locations/types/update_locations_request.rb +15 -0
  86. data/lib/leal/locations/types/update_locations_request_location.rb +13 -0
  87. data/lib/leal/locations/types/update_locations_response.rb +25 -0
  88. data/lib/leal/posters/client.rb +232 -0
  89. data/lib/leal/posters/types/create_posters_request.rb +13 -0
  90. data/lib/leal/posters/types/create_posters_request_poster.rb +23 -0
  91. data/lib/leal/posters/types/create_posters_response.rb +37 -0
  92. data/lib/leal/posters/types/delete_posters_request.rb +13 -0
  93. data/lib/leal/posters/types/get_posters_request.rb +13 -0
  94. data/lib/leal/posters/types/get_posters_response.rb +37 -0
  95. data/lib/leal/posters/types/list_posters_request.rb +15 -0
  96. data/lib/leal/posters/types/list_posters_response_item.rb +37 -0
  97. data/lib/leal/posters/types/update_posters_request.rb +15 -0
  98. data/lib/leal/posters/types/update_posters_request_poster.rb +21 -0
  99. data/lib/leal/posters/types/update_posters_response.rb +37 -0
  100. data/lib/leal/rewards/client.rb +233 -0
  101. data/lib/leal/rewards/types/create_rewards_request.rb +13 -0
  102. data/lib/leal/rewards/types/create_rewards_request_reward.rb +21 -0
  103. data/lib/leal/rewards/types/create_rewards_response.rb +29 -0
  104. data/lib/leal/rewards/types/delete_rewards_request.rb +13 -0
  105. data/lib/leal/rewards/types/get_rewards_request.rb +13 -0
  106. data/lib/leal/rewards/types/get_rewards_response.rb +29 -0
  107. data/lib/leal/rewards/types/list_rewards_request.rb +15 -0
  108. data/lib/leal/rewards/types/list_rewards_response_item.rb +29 -0
  109. data/lib/leal/rewards/types/update_rewards_request.rb +15 -0
  110. data/lib/leal/rewards/types/update_rewards_request_reward.rb +19 -0
  111. data/lib/leal/rewards/types/update_rewards_response.rb +29 -0
  112. data/lib/leal/status/client.rb +53 -0
  113. data/lib/leal/status/types/check_status_response.rb +23 -0
  114. data/lib/leal/status/types/check_status_response_rate_limit.rb +15 -0
  115. data/lib/leal/stores/client.rb +130 -0
  116. data/lib/leal/stores/types/get_stores_request.rb +11 -0
  117. data/lib/leal/stores/types/get_stores_response.rb +31 -0
  118. data/lib/leal/stores/types/list_stores_response_item.rb +31 -0
  119. data/lib/leal/stores/types/update_stores_request.rb +13 -0
  120. data/lib/leal/stores/types/update_stores_request_account.rb +13 -0
  121. data/lib/leal/stores/types/update_stores_response.rb +31 -0
  122. data/lib/leal/types/error.rb +13 -0
  123. data/lib/leal/types/error_errors.rb +14 -0
  124. data/lib/leal/version.rb +5 -0
  125. data/lib/leal.rb +120 -0
  126. data/reference.md +2414 -0
  127. 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: []