privat_bank_business_api 0.2.1

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 (102) hide show
  1. checksums.yaml +7 -0
  2. data/.devcontainer/Dockerfile +17 -0
  3. data/.devcontainer/devcontainer.json +33 -0
  4. data/.devcontainer/post-create.sh +8 -0
  5. data/.rspec +3 -0
  6. data/.rubocop.yml +9 -0
  7. data/.vscode/settings.json +6 -0
  8. data/CHANGELOG.md +12 -0
  9. data/CODE_OF_CONDUCT.md +132 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +123 -0
  12. data/Rakefile +12 -0
  13. data/lib/pb_api/base_transformer.rb +19 -0
  14. data/lib/pb_api/client.rb +41 -0
  15. data/lib/pb_api/models/balance.rb +79 -0
  16. data/lib/pb_api/models/base_struct.rb +30 -0
  17. data/lib/pb_api/models/transaction.rb +114 -0
  18. data/lib/pb_api/pagination_helper.rb +73 -0
  19. data/lib/pb_api/resource.rb +97 -0
  20. data/lib/pb_api/resources/balance_resource.rb +40 -0
  21. data/lib/pb_api/resources/transaction_resource.rb +105 -0
  22. data/lib/pb_api/transformers/balance_transformer.rb +35 -0
  23. data/lib/pb_api/transformers/transaction_transformer.rb +46 -0
  24. data/lib/pb_api/types.rb +8 -0
  25. data/lib/pb_api/version.rb +5 -0
  26. data/lib/pb_api.rb +34 -0
  27. data/sig/privat_bank_buisness_api.rbs +4 -0
  28. data/sorbet/config +4 -0
  29. data/sorbet/rbi/annotations/.gitattributes +1 -0
  30. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  31. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  32. data/sorbet/rbi/gems/.gitattributes +1 -0
  33. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  34. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  35. data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +9 -0
  36. data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +9 -0
  37. data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
  38. data/sorbet/rbi/gems/diff-lcs@1.6.0.rbi +1134 -0
  39. data/sorbet/rbi/gems/dry-core@1.1.0.rbi +9 -0
  40. data/sorbet/rbi/gems/dry-inflector@1.2.0.rbi +9 -0
  41. data/sorbet/rbi/gems/dry-logic@1.6.0.rbi +9 -0
  42. data/sorbet/rbi/gems/dry-struct@1.7.1.rbi +925 -0
  43. data/sorbet/rbi/gems/dry-transformer@1.0.1.rbi +1512 -0
  44. data/sorbet/rbi/gems/dry-types@1.8.2.rbi +9 -0
  45. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  46. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +9 -0
  47. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +9 -0
  48. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +9 -0
  49. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +9 -0
  50. data/sorbet/rbi/gems/faraday-multipart@1.1.0.rbi +9 -0
  51. data/sorbet/rbi/gems/faraday-net_http@1.0.2.rbi +9 -0
  52. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +9 -0
  53. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +9 -0
  54. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +9 -0
  55. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +9 -0
  56. data/sorbet/rbi/gems/faraday@1.10.4.rbi +9 -0
  57. data/sorbet/rbi/gems/faraday_middleware@1.2.1.rbi +9 -0
  58. data/sorbet/rbi/gems/i18n@1.14.7.rbi +2208 -0
  59. data/sorbet/rbi/gems/ice_nine@0.11.2.rbi +9 -0
  60. data/sorbet/rbi/gems/io-console@0.8.0.rbi +9 -0
  61. data/sorbet/rbi/gems/json@2.10.1.rbi +2120 -0
  62. data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
  63. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +86 -0
  64. data/sorbet/rbi/gems/logger@1.6.6.rbi +940 -0
  65. data/sorbet/rbi/gems/money@6.19.0.rbi +2260 -0
  66. data/sorbet/rbi/gems/multipart-post@2.4.1.rbi +9 -0
  67. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  68. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  69. data/sorbet/rbi/gems/parser@3.3.7.1.rbi +5525 -0
  70. data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
  71. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
  72. data/sorbet/rbi/gems/prism@1.3.0.rbi +41403 -0
  73. data/sorbet/rbi/gems/psych@5.2.3.rbi +2435 -0
  74. data/sorbet/rbi/gems/racc@1.8.1.rbi +164 -0
  75. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  76. data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
  77. data/sorbet/rbi/gems/rbi@0.2.4.rbi +4542 -0
  78. data/sorbet/rbi/gems/rdoc@6.12.0.rbi +12758 -0
  79. data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3795 -0
  80. data/sorbet/rbi/gems/reline@0.6.0.rbi +2451 -0
  81. data/sorbet/rbi/gems/rspec-core@3.13.3.rbi +10986 -0
  82. data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +8183 -0
  83. data/sorbet/rbi/gems/rspec-mocks@3.13.2.rbi +5341 -0
  84. data/sorbet/rbi/gems/rspec-support@3.13.2.rbi +1630 -0
  85. data/sorbet/rbi/gems/rspec@3.13.0.rbi +83 -0
  86. data/sorbet/rbi/gems/rubocop-ast@1.38.0.rbi +7654 -0
  87. data/sorbet/rbi/gems/rubocop@1.72.2.rbi +61026 -0
  88. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  89. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
  90. data/sorbet/rbi/gems/spoom@1.5.4.rbi +5026 -0
  91. data/sorbet/rbi/gems/stringio@3.1.5.rbi +9 -0
  92. data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3656 -0
  93. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  94. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  95. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  96. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  97. data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
  98. data/sorbet/rbi/gems/zeitwerk@2.7.2.rbi +9 -0
  99. data/sorbet/rbi/todo.rbi +17 -0
  100. data/sorbet/tapioca/config.yml +13 -0
  101. data/sorbet/tapioca/require.rb +8 -0
  102. metadata +231 -0
@@ -0,0 +1,368 @@
1
+ # typed: false
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `pp` gem.
5
+ # Please instead update this file by running `bin/tapioca gem pp`.
6
+
7
+
8
+ class Array
9
+ include ::Enumerable
10
+
11
+ # source://pp//lib/pp.rb#402
12
+ def pretty_print(q); end
13
+
14
+ # source://pp//lib/pp.rb#410
15
+ def pretty_print_cycle(q); end
16
+ end
17
+
18
+ class Data
19
+ # source://pp//lib/pp.rb#456
20
+ def pretty_print(q); end
21
+
22
+ # source://pp//lib/pp.rb#484
23
+ def pretty_print_cycle(q); end
24
+ end
25
+
26
+ class File::Stat
27
+ include ::Comparable
28
+
29
+ # source://pp//lib/pp.rb#518
30
+ def pretty_print(q); end
31
+ end
32
+
33
+ class Hash
34
+ include ::Enumerable
35
+
36
+ # source://pp//lib/pp.rb#416
37
+ def pretty_print(q); end
38
+
39
+ # source://pp//lib/pp.rb#420
40
+ def pretty_print_cycle(q); end
41
+ end
42
+
43
+ module Kernel
44
+ # Returns a pretty printed object as a string.
45
+ #
46
+ # See the PP module for more information.
47
+ #
48
+ # source://pp//lib/pp.rb#685
49
+ def pretty_inspect; end
50
+
51
+ private
52
+
53
+ # prints arguments in pretty form.
54
+ #
55
+ # +#pp+ returns argument(s).
56
+ #
57
+ # source://pp//lib/pp.rb#692
58
+ def pp(*objs); end
59
+
60
+ class << self
61
+ # prints arguments in pretty form.
62
+ #
63
+ # +#pp+ returns argument(s).
64
+ #
65
+ # source://pp//lib/pp.rb#692
66
+ def pp(*objs); end
67
+ end
68
+ end
69
+
70
+ class MatchData
71
+ # source://pp//lib/pp.rb#601
72
+ def pretty_print(q); end
73
+ end
74
+
75
+ # A pretty-printer for Ruby objects.
76
+ #
77
+ #
78
+ # == What PP Does
79
+ #
80
+ # Standard output by #p returns this:
81
+ # #<PP:0x81fedf0 @genspace=#<Proc:0x81feda0>, @group_queue=#<PrettyPrint::GroupQueue:0x81fed3c @queue=[[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], []]>, @buffer=[], @newline="\n", @group_stack=[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], @buffer_width=0, @indent=0, @maxwidth=79, @output_width=2, @output=#<IO:0x8114ee4>>
82
+ #
83
+ # Pretty-printed output returns this:
84
+ # #<PP:0x81fedf0
85
+ # @buffer=[],
86
+ # @buffer_width=0,
87
+ # @genspace=#<Proc:0x81feda0>,
88
+ # @group_queue=
89
+ # #<PrettyPrint::GroupQueue:0x81fed3c
90
+ # @queue=
91
+ # [[#<PrettyPrint::Group:0x81fed78 @break=false, @breakables=[], @depth=0>],
92
+ # []]>,
93
+ # @group_stack=
94
+ # [#<PrettyPrint::Group:0x81fed78 @break=false, @breakables=[], @depth=0>],
95
+ # @indent=0,
96
+ # @maxwidth=79,
97
+ # @newline="\n",
98
+ # @output=#<IO:0x8114ee4>,
99
+ # @output_width=2>
100
+ #
101
+ #
102
+ # == Usage
103
+ #
104
+ # pp(obj) #=> obj
105
+ # pp obj #=> obj
106
+ # pp(obj1, obj2, ...) #=> [obj1, obj2, ...]
107
+ # pp() #=> nil
108
+ #
109
+ # Output <tt>obj(s)</tt> to <tt>$></tt> in pretty printed format.
110
+ #
111
+ # It returns <tt>obj(s)</tt>.
112
+ #
113
+ #
114
+ # == Output Customization
115
+ #
116
+ # To define a customized pretty printing function for your classes,
117
+ # redefine method <code>#pretty_print(pp)</code> in the class.
118
+ # Note that <code>require 'pp'</code> is needed before redefining <code>#pretty_print(pp)</code>.
119
+ #
120
+ # <code>#pretty_print</code> takes the +pp+ argument, which is an instance of the PP class.
121
+ # The method uses #text, #breakable, #nest, #group and #pp to print the
122
+ # object.
123
+ #
124
+ #
125
+ # == Pretty-Print JSON
126
+ #
127
+ # To pretty-print JSON refer to JSON#pretty_generate.
128
+ #
129
+ #
130
+ # == Author
131
+ # Tanaka Akira <akr@fsij.org>
132
+ class PP < ::PrettyPrint
133
+ include ::PP::PPMethods
134
+
135
+ class << self
136
+ # :stopdoc:
137
+ #
138
+ # source://pp//lib/pp.rb#116
139
+ def mcall(obj, mod, meth, *args, &block); end
140
+
141
+ # Outputs +obj+ to +out+ in pretty printed format of
142
+ # +width+ columns in width.
143
+ #
144
+ # If +out+ is omitted, <code>$></code> is assumed.
145
+ # If +width+ is omitted, the width of +out+ is assumed (see
146
+ # width_for).
147
+ #
148
+ # PP.pp returns +out+.
149
+ #
150
+ # source://pp//lib/pp.rb#96
151
+ def pp(obj, out = T.unsafe(nil), width = T.unsafe(nil)); end
152
+
153
+ # Returns the sharing detection flag as a boolean value.
154
+ # It is false by default.
155
+ #
156
+ # source://pp//lib/pp.rb#125
157
+ def sharing_detection; end
158
+
159
+ # Returns the sharing detection flag as a boolean value.
160
+ # It is false by default.
161
+ #
162
+ # source://pp//lib/pp.rb#129
163
+ def sharing_detection=(b); end
164
+
165
+ # Outputs +obj+ to +out+ like PP.pp but with no indent and
166
+ # newline.
167
+ #
168
+ # PP.singleline_pp returns +out+.
169
+ #
170
+ # source://pp//lib/pp.rb#108
171
+ def singleline_pp(obj, out = T.unsafe(nil)); end
172
+
173
+ # Returns the usable width for +out+.
174
+ # As the width of +out+:
175
+ # 1. If +out+ is assigned to a tty device, its width is used.
176
+ # 2. Otherwise, or it could not get the value, the +COLUMN+
177
+ # environment variable is assumed to be set to the width.
178
+ # 3. If +COLUMN+ is not set to a non-zero number, 80 is assumed.
179
+ #
180
+ # And finally, returns the above width value - 1.
181
+ # * This -1 is for Windows command prompt, which moves the cursor to
182
+ # the next line if it reaches the last column.
183
+ #
184
+ # source://pp//lib/pp.rb#79
185
+ def width_for(out); end
186
+ end
187
+ end
188
+
189
+ module PP::ObjectMixin
190
+ # A default pretty printing method for general objects.
191
+ # It calls #pretty_print_instance_variables to list instance variables.
192
+ #
193
+ # If +self+ has a customized (redefined) #inspect method,
194
+ # the result of self.inspect is used but it obviously has no
195
+ # line break hints.
196
+ #
197
+ # This module provides predefined #pretty_print methods for some of
198
+ # the most commonly used built-in classes for convenience.
199
+ #
200
+ # source://pp//lib/pp.rb#353
201
+ def pretty_print(q); end
202
+
203
+ # A default pretty printing method for general objects that are
204
+ # detected as part of a cycle.
205
+ #
206
+ # source://pp//lib/pp.rb#370
207
+ def pretty_print_cycle(q); end
208
+
209
+ # Is #inspect implementation using #pretty_print.
210
+ # If you implement #pretty_print, it can be used as follows.
211
+ #
212
+ # alias inspect pretty_print_inspect
213
+ #
214
+ # However, doing this requires that every class that #inspect is called on
215
+ # implement #pretty_print, or a RuntimeError will be raised.
216
+ #
217
+ # source://pp//lib/pp.rb#392
218
+ def pretty_print_inspect; end
219
+
220
+ # Returns a sorted array of instance variable names.
221
+ #
222
+ # This method should return an array of names of instance variables as symbols or strings as:
223
+ # +[:@a, :@b]+.
224
+ #
225
+ # source://pp//lib/pp.rb#381
226
+ def pretty_print_instance_variables; end
227
+ end
228
+
229
+ # Module that defines helper methods for pretty_print.
230
+ module PP::PPMethods
231
+ # Check whether the object_id +id+ is in the current buffer of objects
232
+ # to be pretty printed. Used to break cycles in chains of objects to be
233
+ # pretty printed.
234
+ #
235
+ # source://pp//lib/pp.rb#169
236
+ def check_inspect_key(id); end
237
+
238
+ # A convenience method which is same as follows:
239
+ #
240
+ # text ','
241
+ # breakable
242
+ #
243
+ # source://pp//lib/pp.rb#232
244
+ def comma_breakable; end
245
+
246
+ # Yields to a block
247
+ # and preserves the previous set of objects being printed.
248
+ #
249
+ # source://pp//lib/pp.rb#147
250
+ def guard_inspect_key; end
251
+
252
+ # A convenience method, like object_group, but also reformats the Object's
253
+ # object_id.
254
+ #
255
+ # source://pp//lib/pp.rb#222
256
+ def object_address_group(obj, &block); end
257
+
258
+ # A convenience method which is same as follows:
259
+ #
260
+ # group(1, '#<' + obj.class.name, '>') { ... }
261
+ #
262
+ # source://pp//lib/pp.rb#216
263
+ def object_group(obj, &block); end
264
+
265
+ # Removes an object from the set of objects being pretty printed.
266
+ #
267
+ # source://pp//lib/pp.rb#182
268
+ def pop_inspect_key(id); end
269
+
270
+ # Adds +obj+ to the pretty printing buffer
271
+ # using Object#pretty_print or Object#pretty_print_cycle.
272
+ #
273
+ # Object#pretty_print_cycle is used when +obj+ is already
274
+ # printed, a.k.a the object reference chain has a cycle.
275
+ #
276
+ # source://pp//lib/pp.rb#191
277
+ def pp(obj); end
278
+
279
+ # A pretty print for a Hash
280
+ #
281
+ # source://pp//lib/pp.rb#291
282
+ def pp_hash(obj); end
283
+
284
+ # A pretty print for a pair of Hash
285
+ #
286
+ # source://pp//lib/pp.rb#322
287
+ def pp_hash_pair(k, v); end
288
+
289
+ # A present standard failsafe for pretty printing any given Object
290
+ #
291
+ # source://pp//lib/pp.rb#275
292
+ def pp_object(obj); end
293
+
294
+ # Adds the object_id +id+ to the set of objects being pretty printed, so
295
+ # as to not repeat objects.
296
+ #
297
+ # source://pp//lib/pp.rb#177
298
+ def push_inspect_key(id); end
299
+
300
+ # Adds a separated list.
301
+ # The list is separated by comma with breakable space, by default.
302
+ #
303
+ # #seplist iterates the +list+ using +iter_method+.
304
+ # It yields each object to the block given for #seplist.
305
+ # The procedure +separator_proc+ is called between each yields.
306
+ #
307
+ # If the iteration is zero times, +separator_proc+ is not called at all.
308
+ #
309
+ # If +separator_proc+ is nil or not given,
310
+ # +lambda { comma_breakable }+ is used.
311
+ # If +iter_method+ is not given, :each is used.
312
+ #
313
+ # For example, following 3 code fragments has similar effect.
314
+ #
315
+ # q.seplist([1,2,3]) {|v| xxx v }
316
+ #
317
+ # q.seplist([1,2,3], lambda { q.comma_breakable }, :each) {|v| xxx v }
318
+ #
319
+ # xxx 1
320
+ # q.comma_breakable
321
+ # xxx 2
322
+ # q.comma_breakable
323
+ # xxx 3
324
+ #
325
+ # source://pp//lib/pp.rb#261
326
+ def seplist(list, sep = T.unsafe(nil), iter_method = T.unsafe(nil)); end
327
+ end
328
+
329
+ class PP::SingleLine < ::PrettyPrint::SingleLine
330
+ include ::PP::PPMethods
331
+ end
332
+
333
+ # The version string
334
+ #
335
+ # source://pp//lib/pp.rb#67
336
+ PP::VERSION = T.let(T.unsafe(nil), String)
337
+
338
+ class Range
339
+ include ::Enumerable
340
+
341
+ # source://pp//lib/pp.rb#490
342
+ def pretty_print(q); end
343
+ end
344
+
345
+ class RubyVM::AbstractSyntaxTree::Node
346
+ # source://pp//lib/pp.rb#640
347
+ def pretty_print(q); end
348
+
349
+ # source://pp//lib/pp.rb#627
350
+ def pretty_print_children(q, names = T.unsafe(nil)); end
351
+ end
352
+
353
+ class String
354
+ include ::Comparable
355
+
356
+ # source://pp//lib/pp.rb#502
357
+ def pretty_print(q); end
358
+ end
359
+
360
+ class Struct
361
+ include ::Enumerable
362
+
363
+ # source://pp//lib/pp.rb#436
364
+ def pretty_print(q); end
365
+
366
+ # source://pp//lib/pp.rb#450
367
+ def pretty_print_cycle(q); end
368
+ end