test-test-sink-test-test 0.0.2.pre.alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +151 -0
  3. data/lib/sink/base_client.rb +404 -0
  4. data/lib/sink/base_model.rb +226 -0
  5. data/lib/sink/client.rb +391 -0
  6. data/lib/sink/fake_page.rb +44 -0
  7. data/lib/sink/models/address.rb +55 -0
  8. data/lib/sink/models/allof_base_parent.rb +18 -0
  9. data/lib/sink/models/allof_multiple_inline_entries.rb +15 -0
  10. data/lib/sink/models/api_status.rb +18 -0
  11. data/lib/sink/models/array_float_items_response.rb +6 -0
  12. data/lib/sink/models/array_missing_items_response.rb +18 -0
  13. data/lib/sink/models/array_object_items.rb +18 -0
  14. data/lib/sink/models/array_object_items_response.rb +18 -0
  15. data/lib/sink/models/array_recursion.rb +6 -0
  16. data/lib/sink/models/balance.rb +18 -0
  17. data/lib/sink/models/basic_shared_model_object.rb +23 -0
  18. data/lib/sink/models/body_param_top_level_all_of_response.rb +28 -0
  19. data/lib/sink/models/body_param_top_level_any_of_response.rb +6 -0
  20. data/lib/sink/models/body_param_top_level_one_of_response.rb +6 -0
  21. data/lib/sink/models/body_param_union_overlapping_prop_response.rb +19 -0
  22. data/lib/sink/models/card.rb +211 -0
  23. data/lib/sink/models/card_list_response.rb +36 -0
  24. data/lib/sink/models/card_provision_foo_response.rb +18 -0
  25. data/lib/sink/models/child_inlined_response_response.rb +18 -0
  26. data/lib/sink/models/child_model.rb +36 -0
  27. data/lib/sink/models/class_.rb +18 -0
  28. data/lib/sink/models/client.rb +23 -0
  29. data/lib/sink/models/company.rb +18 -0
  30. data/lib/sink/models/company_payment.rb +18 -0
  31. data/lib/sink/models/complex_query_array_query_response.rb +26 -0
  32. data/lib/sink/models/config_tool_model_ref_from_nested_response_body_response.rb +32 -0
  33. data/lib/sink/models/currency.rb +23 -0
  34. data/lib/sink/models/decorator_test_keep_me_response.rb +18 -0
  35. data/lib/sink/models/docstring_leading_double_quote_response.rb +20 -0
  36. data/lib/sink/models/docstring_trailing_double_quote_response.rb +32 -0
  37. data/lib/sink/models/documents.rb +23 -0
  38. data/lib/sink/models/eeoc.rb +18 -0
  39. data/lib/sink/models/employment_data.rb +18 -0
  40. data/lib/sink/models/enum_basic_response.rb +62 -0
  41. data/lib/sink/models/envelope_inline_response_response.rb +18 -0
  42. data/lib/sink/models/envelope_wrapped_array_response.rb +6 -0
  43. data/lib/sink/models/export.rb +19 -0
  44. data/lib/sink/models/file_create_multipart_response.rb +18 -0
  45. data/lib/sink/models/file_everything_multipart_response.rb +19 -0
  46. data/lib/sink/models/file_no_file_multipart_response.rb +18 -0
  47. data/lib/sink/models/file_with_optional_param_response.rb +18 -0
  48. data/lib/sink/models/funding_account.rb +100 -0
  49. data/lib/sink/models/import.rb +18 -0
  50. data/lib/sink/models/interface.rb +18 -0
  51. data/lib/sink/models/keep_this_resource_keep_this_method_response.rb +19 -0
  52. data/lib/sink/models/make_ambiguous_schemas_explicit_make_ambiguous_schemas_explicit_response.rb +45 -0
  53. data/lib/sink/models/make_ambiguous_schemas_looser_make_ambiguous_schemas_looser_response.rb +45 -0
  54. data/lib/sink/models/map_nullable_items_response.rb +28 -0
  55. data/lib/sink/models/method_config_skipped_tests_all_response.rb +19 -0
  56. data/lib/sink/models/method_config_skipped_tests_go_response.rb +19 -0
  57. data/lib/sink/models/method_config_skipped_tests_java_response.rb +19 -0
  58. data/lib/sink/models/method_config_skipped_tests_kotlin_response.rb +19 -0
  59. data/lib/sink/models/method_config_skipped_tests_node_and_python_response.rb +19 -0
  60. data/lib/sink/models/method_config_skipped_tests_node_response.rb +19 -0
  61. data/lib/sink/models/method_config_skipped_tests_python_response.rb +19 -0
  62. data/lib/sink/models/method_config_skipped_tests_ruby_response.rb +19 -0
  63. data/lib/sink/models/model_from_nested_path.rb +39 -0
  64. data/lib/sink/models/model_from_nested_response_body_ref.rb +18 -0
  65. data/lib/sink/models/model_from_schemas_ref.rb +18 -0
  66. data/lib/sink/models/model_from_schemas_ref_openapi_uri.rb +18 -0
  67. data/lib/sink/models/model_from_schemas_ref_openapi_uri_jmespath.rb +19 -0
  68. data/lib/sink/models/model_from_schemas_ref_openapi_uri_jsonpath.rb +19 -0
  69. data/lib/sink/models/model_level_1.rb +22 -0
  70. data/lib/sink/models/model_level_2.rb +22 -0
  71. data/lib/sink/models/model_level_3.rb +22 -0
  72. data/lib/sink/models/model_referenced_in_parent_and_child.rb +19 -0
  73. data/lib/sink/models/model_with_nested_model.rb +24 -0
  74. data/lib/sink/models/my_model.rb +18 -0
  75. data/lib/sink/models/name_child_prop_import_clash_response.rb +37 -0
  76. data/lib/sink/models/name_properties_common_conflicts_response.rb +84 -0
  77. data/lib/sink/models/name_properties_illegal_go_identifiers_response.rb +19 -0
  78. data/lib/sink/models/name_properties_illegal_javascript_identifiers_response.rb +6 -0
  79. data/lib/sink/models/name_response_property_clashes_model_import_response.rb +24 -0
  80. data/lib/sink/models/name_response_shadows_pydantic_response.rb +24 -0
  81. data/lib/sink/models/nested_request_model_a.rb +18 -0
  82. data/lib/sink/models/nested_request_model_b.rb +18 -0
  83. data/lib/sink/models/nested_request_model_c.rb +31 -0
  84. data/lib/sink/models/object_missing_items_response.rb +18 -0
  85. data/lib/sink/models/object_mixed_known_and_unknown_response.rb +19 -0
  86. data/lib/sink/models/object_multiple_array_properties_same_ref_response.rb +73 -0
  87. data/lib/sink/models/object_multiple_properties_same_model_response.rb +29 -0
  88. data/lib/sink/models/object_multiple_properties_same_ref_response.rb +68 -0
  89. data/lib/sink/models/object_skipped_props.rb +38 -0
  90. data/lib/sink/models/object_two_dimensional_array_primitive_property_response.rb +34 -0
  91. data/lib/sink/models/object_with_any_of_null_property.rb +31 -0
  92. data/lib/sink/models/object_with_child_ref.rb +23 -0
  93. data/lib/sink/models/object_with_one_of_null_property.rb +31 -0
  94. data/lib/sink/models/object_with_union_properties.rb +23 -0
  95. data/lib/sink/models/openapi_format_array_type_one_entry_response.rb +19 -0
  96. data/lib/sink/models/openapi_format_array_type_one_entry_with_null_response.rb +19 -0
  97. data/lib/sink/models/openapi_special_used_used_as_property_name_response.rb +19 -0
  98. data/lib/sink/models/page_cursor_shared_ref_pagination.rb +23 -0
  99. data/lib/sink/models/parent_model_with_child_ref.rb +28 -0
  100. data/lib/sink/models/path_param_colon_suffix_response.rb +18 -0
  101. data/lib/sink/models/path_param_file_extension_response.rb +18 -0
  102. data/lib/sink/models/path_param_multiple_response.rb +18 -0
  103. data/lib/sink/models/path_param_query_param_response.rb +18 -0
  104. data/lib/sink/models/path_param_singular_response.rb +18 -0
  105. data/lib/sink/models/primitive_strings_response.rb +18 -0
  106. data/lib/sink/models/private.rb +18 -0
  107. data/lib/sink/models/public.rb +18 -0
  108. data/lib/sink/models/recursion_create_envelope_response.rb +19 -0
  109. data/lib/sink/models/response_allof_simple_response.rb +23 -0
  110. data/lib/sink/models/response_array_object_with_union_properties_response.rb +6 -0
  111. data/lib/sink/models/response_array_response_response.rb +6 -0
  112. data/lib/sink/models/response_missing_required_response.rb +24 -0
  113. data/lib/sink/models/response_nested_array_response.rb +36 -0
  114. data/lib/sink/models/response_object_all_properties_response.rb +65 -0
  115. data/lib/sink/models/response_object_no_properties_response.rb +14 -0
  116. data/lib/sink/models/response_object_with_additional_properties_prop_response.rb +32 -0
  117. data/lib/sink/models/response_object_with_heavily_nested_union_response.rb +19 -0
  118. data/lib/sink/models/response_only_read_only_properties_response.rb +25 -0
  119. data/lib/sink/models/responses_allof_cross_object.rb +23 -0
  120. data/lib/sink/models/return_.rb +18 -0
  121. data/lib/sink/models/root_response.rb +31 -0
  122. data/lib/sink/models/self_recursion.rb +23 -0
  123. data/lib/sink/models/shared_cursor_nested_response_prop_meta.rb +33 -0
  124. data/lib/sink/models/shared_self_recursion.rb +23 -0
  125. data/lib/sink/models/shipping_address.rb +85 -0
  126. data/lib/sink/models/simple_allof.rb +28 -0
  127. data/lib/sink/models/simple_object.rb +32 -0
  128. data/lib/sink/models/skip_this_resource_i_never_appear_response.rb +19 -0
  129. data/lib/sink/models/streaming_basic_response.rb +23 -0
  130. data/lib/sink/models/streaming_nested_params_response.rb +23 -0
  131. data/lib/sink/models/streaming_no_discriminator_response.rb +24 -0
  132. data/lib/sink/models/streaming_query_param_discriminator_response.rb +24 -0
  133. data/lib/sink/models/streaming_with_unrelated_default_param_response.rb +24 -0
  134. data/lib/sink/models/type_dates_response.rb +38 -0
  135. data/lib/sink/models/type_datetimes_response.rb +38 -0
  136. data/lib/sink/models/union_discriminated_variant_a.rb +27 -0
  137. data/lib/sink/models/union_discriminated_variant_b.rb +27 -0
  138. data/lib/sink/models/union_response_discriminated_by_property_name_response.rb +6 -0
  139. data/lib/sink/models/union_response_discriminated_with_basic_mapping_response.rb +6 -0
  140. data/lib/sink/models/union_type_mixed_types_response.rb +6 -0
  141. data/lib/sink/models/union_type_nullable_union_response.rb +6 -0
  142. data/lib/sink/models/union_type_objects_response.rb +6 -0
  143. data/lib/sink/models/union_type_super_mixed_types_response.rb +6 -0
  144. data/lib/sink/models/union_type_unknown_variant_response.rb +6 -0
  145. data/lib/sink/models/version_1_30_name_create_response.rb +18 -0
  146. data/lib/sink/models/widget.rb +19 -0
  147. data/lib/sink/models/write_only_response_simple_response.rb +21 -0
  148. data/lib/sink/page_cursor.rb +54 -0
  149. data/lib/sink/page_cursor_from_headers.rb +54 -0
  150. data/lib/sink/page_cursor_id.rb +50 -0
  151. data/lib/sink/page_cursor_nested_items.rb +84 -0
  152. data/lib/sink/page_cursor_nested_object_ref.rb +71 -0
  153. data/lib/sink/page_cursor_shared_ref.rb +72 -0
  154. data/lib/sink/page_cursor_top_level_array.rb +51 -0
  155. data/lib/sink/page_cursor_url.rb +51 -0
  156. data/lib/sink/page_cursor_with_reverse.rb +58 -0
  157. data/lib/sink/page_offset.rb +54 -0
  158. data/lib/sink/page_offset_no_start_field.rb +50 -0
  159. data/lib/sink/page_offset_total_count.rb +58 -0
  160. data/lib/sink/page_page_number.rb +58 -0
  161. data/lib/sink/page_page_number_without_current_page_response.rb +50 -0
  162. data/lib/sink/pooled_net_requester.rb +72 -0
  163. data/lib/sink/request_options.rb +89 -0
  164. data/lib/sink/resources/body_params/objects.rb +34 -0
  165. data/lib/sink/resources/body_params/unions.rb +34 -0
  166. data/lib/sink/resources/body_params.rb +630 -0
  167. data/lib/sink/resources/cards.rb +508 -0
  168. data/lib/sink/resources/casing/eeoc.rb +34 -0
  169. data/lib/sink/resources/casing.rb +16 -0
  170. data/lib/sink/resources/clients.rb +30 -0
  171. data/lib/sink/resources/company/payments.rb +30 -0
  172. data/lib/sink/resources/company.rb +18 -0
  173. data/lib/sink/resources/complex_queries.rb +60 -0
  174. data/lib/sink/resources/config_tools/parent_with_skip_node_python/child_only_skip_python.rb +99 -0
  175. data/lib/sink/resources/config_tools/parent_with_skip_node_python.rb +101 -0
  176. data/lib/sink/resources/config_tools.rb +40 -0
  177. data/lib/sink/resources/decorator_tests/keep_this_resource.rb +29 -0
  178. data/lib/sink/resources/decorator_tests/languages.rb +59 -0
  179. data/lib/sink/resources/decorator_tests/skip_this_resource.rb +28 -0
  180. data/lib/sink/resources/decorator_tests.rb +38 -0
  181. data/lib/sink/resources/deeply_nested/level_one/level_two/level_three.rb +33 -0
  182. data/lib/sink/resources/deeply_nested/level_one/level_two.rb +35 -0
  183. data/lib/sink/resources/deeply_nested/level_one.rb +33 -0
  184. data/lib/sink/resources/deeply_nested.rb +16 -0
  185. data/lib/sink/resources/docstrings.rb +82 -0
  186. data/lib/sink/resources/empty_body.rb +60 -0
  187. data/lib/sink/resources/envelopes.rb +74 -0
  188. data/lib/sink/resources/files.rb +101 -0
  189. data/lib/sink/resources/header_params.rb +81 -0
  190. data/lib/sink/resources/invalid_schemas/arrays.rb +26 -0
  191. data/lib/sink/resources/invalid_schemas/objects.rb +26 -0
  192. data/lib/sink/resources/invalid_schemas.rb +20 -0
  193. data/lib/sink/resources/make_ambiguous_schemas_explicit.rb +26 -0
  194. data/lib/sink/resources/make_ambiguous_schemas_looser.rb +26 -0
  195. data/lib/sink/resources/method_config.rb +167 -0
  196. data/lib/sink/resources/mixed_params/duplicates.rb +79 -0
  197. data/lib/sink/resources/mixed_params.rb +88 -0
  198. data/lib/sink/resources/model_referenced_in_parent_and_child/child.rb +26 -0
  199. data/lib/sink/resources/model_referenced_in_parent_and_child.rb +28 -0
  200. data/lib/sink/resources/names/can_cause_clashes/employment_data.rb +16 -0
  201. data/lib/sink/resources/names/can_cause_clashes/response.rb +32 -0
  202. data/lib/sink/resources/names/can_cause_clashes.rb +23 -0
  203. data/lib/sink/resources/names/documents.rb +28 -0
  204. data/lib/sink/resources/names/openapi_specials.rb +26 -0
  205. data/lib/sink/resources/names/params.rb +52 -0
  206. data/lib/sink/resources/names/reserved_names/import.rb +31 -0
  207. data/lib/sink/resources/names/reserved_names/methods.rb +40 -0
  208. data/lib/sink/resources/names/reserved_names/public/class_.rb +30 -0
  209. data/lib/sink/resources/names/reserved_names/public/interface.rb +30 -0
  210. data/lib/sink/resources/names/reserved_names/public/private.rb +30 -0
  211. data/lib/sink/resources/names/reserved_names/public.rb +40 -0
  212. data/lib/sink/resources/names/reserved_names.rb +46 -0
  213. data/lib/sink/resources/names.rb +170 -0
  214. data/lib/sink/resources/openapi_formats.rb +53 -0
  215. data/lib/sink/resources/pagination_tests/cursor.rb +57 -0
  216. data/lib/sink/resources/pagination_tests/cursor_id.rb +34 -0
  217. data/lib/sink/resources/pagination_tests/cursor_url.rb +34 -0
  218. data/lib/sink/resources/pagination_tests/fake_pages.rb +33 -0
  219. data/lib/sink/resources/pagination_tests/items_types.rb +34 -0
  220. data/lib/sink/resources/pagination_tests/nested_items.rb +34 -0
  221. data/lib/sink/resources/pagination_tests/offset.rb +74 -0
  222. data/lib/sink/resources/pagination_tests/page_number.rb +54 -0
  223. data/lib/sink/resources/pagination_tests/page_number_without_current_page_response.rb +55 -0
  224. data/lib/sink/resources/pagination_tests/refs.rb +55 -0
  225. data/lib/sink/resources/pagination_tests/response_headers.rb +34 -0
  226. data/lib/sink/resources/pagination_tests/schema_types.rb +54 -0
  227. data/lib/sink/resources/pagination_tests/top_level_arrays.rb +34 -0
  228. data/lib/sink/resources/pagination_tests.rb +64 -0
  229. data/lib/sink/resources/parent/child.rb +30 -0
  230. data/lib/sink/resources/parent.rb +18 -0
  231. data/lib/sink/resources/path_params.rb +210 -0
  232. data/lib/sink/resources/positional_params.rb +237 -0
  233. data/lib/sink/resources/query_params.rb +166 -0
  234. data/lib/sink/resources/recursion/shared_responses.rb +26 -0
  235. data/lib/sink/resources/recursion.rb +68 -0
  236. data/lib/sink/resources/resource_refs/paginated_model_first_ref.rb +14 -0
  237. data/lib/sink/resources/resource_refs/paginated_model_second_ref.rb +14 -0
  238. data/lib/sink/resources/resource_refs/parent/child.rb +31 -0
  239. data/lib/sink/resources/resource_refs/parent.rb +32 -0
  240. data/lib/sink/resources/resource_refs.rb +24 -0
  241. data/lib/sink/resources/resources.rb +26 -0
  242. data/lib/sink/resources/responses/union_types.rb +98 -0
  243. data/lib/sink/resources/responses.rb +319 -0
  244. data/lib/sink/resources/shared_query_params.rb +48 -0
  245. data/lib/sink/resources/streaming.rb +106 -0
  246. data/lib/sink/resources/testing.rb +24 -0
  247. data/lib/sink/resources/tests.rb +26 -0
  248. data/lib/sink/resources/tools.rb +33 -0
  249. data/lib/sink/resources/types/allofs.rb +14 -0
  250. data/lib/sink/resources/types/arrays.rb +62 -0
  251. data/lib/sink/resources/types/enums.rb +95 -0
  252. data/lib/sink/resources/types/maps.rb +29 -0
  253. data/lib/sink/resources/types/objects.rb +105 -0
  254. data/lib/sink/resources/types/primitives.rb +34 -0
  255. data/lib/sink/resources/types/read_only_params.rb +34 -0
  256. data/lib/sink/resources/types/unions.rb +126 -0
  257. data/lib/sink/resources/types/write_only_responses.rb +28 -0
  258. data/lib/sink/resources/types.rb +95 -0
  259. data/lib/sink/resources/undocumented_resource.rb +47 -0
  260. data/lib/sink/resources/version_1_30_names.rb +41 -0
  261. data/lib/sink/resources/widgets.rb +30 -0
  262. data/lib/sink/util.rb +78 -0
  263. data/lib/sink/version.rb +5 -0
  264. data/lib/sink.rb +276 -0
  265. metadata +322 -0
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class PathParamMultipleResponse < BaseModel
6
+ # @!attribute [rw] foo
7
+ # @return [String]
8
+ required :foo, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of PathParamMultipleResponse from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String] :foo
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class PathParamQueryParamResponse < BaseModel
6
+ # @!attribute [rw] foo
7
+ # @return [String]
8
+ required :foo, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of PathParamQueryParamResponse from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String] :foo
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class PathParamSingularResponse < BaseModel
6
+ # @!attribute [rw] foo
7
+ # @return [String]
8
+ required :foo, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of PathParamSingularResponse from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String] :foo
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class PrimitiveStringsResponse < BaseModel
6
+ # @!attribute [rw] string_prop
7
+ # @return [String]
8
+ required :string_prop, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of PrimitiveStringsResponse from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String] :string_prop
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class Private < BaseModel
6
+ # @!attribute [rw] private
7
+ # @return [String]
8
+ required :private, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of Private from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String] :private
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class Public < BaseModel
6
+ # @!attribute [rw] public
7
+ # @return [String]
8
+ required :public, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of Public from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String] :public
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class RecursionCreateEnvelopeResponse < BaseModel
6
+ # @!attribute [rw] data
7
+ # @return [Sink::Models::SelfRecursion]
8
+ required :data, -> { Sink::Models::SelfRecursion }
9
+
10
+ # @!parse
11
+ # # Create a new instance of RecursionCreateEnvelopeResponse from a Hash of raw
12
+ # # data.
13
+ # #
14
+ # # @param data [Hash{Symbol => Object}] .
15
+ # # @option data [Object] :data
16
+ # def initialize(data = {}) = super
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ResponseAllofSimpleResponse < BaseModel
6
+ # @!attribute [rw] bar
7
+ # @return [String]
8
+ optional :bar, String
9
+
10
+ # @!attribute [rw] foo
11
+ # @return [String]
12
+ optional :foo, String
13
+
14
+ # @!parse
15
+ # # Create a new instance of ResponseAllofSimpleResponse from a Hash of raw data.
16
+ # #
17
+ # # @param data [Hash{Symbol => Object}] .
18
+ # # @option data [String, nil] :bar
19
+ # # @option data [String, nil] :foo
20
+ # def initialize(data = {}) = super
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ end
6
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ResponseMissingRequiredResponse < BaseModel
6
+ # @!attribute [rw] bar
7
+ # @return [Boolean]
8
+ required :bar, Sink::BooleanModel
9
+
10
+ # @!attribute [rw] foo
11
+ # @return [String]
12
+ required :foo, String
13
+
14
+ # @!parse
15
+ # # Create a new instance of ResponseMissingRequiredResponse from a Hash of raw
16
+ # # data.
17
+ # #
18
+ # # @param data [Hash{Symbol => Object}] .
19
+ # # @option data [Hash] :bar
20
+ # # @option data [String] :foo
21
+ # def initialize(data = {}) = super
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ResponseNestedArrayResponse < BaseModel
6
+ # @!attribute [rw] objects
7
+ # @return [Array<Sink::Models::ResponseNestedArrayResponse::Object>]
8
+ required :objects, Sink::ArrayOf.new(-> { Sink::Models::ResponseNestedArrayResponse::Object })
9
+
10
+ class Object < BaseModel
11
+ # @!attribute [rw] bar
12
+ # @return [Float]
13
+ optional :bar, Float
14
+
15
+ # @!attribute [rw] foo
16
+ # @return [String]
17
+ optional :foo, String
18
+
19
+ # @!parse
20
+ # # Create a new instance of Object from a Hash of raw data.
21
+ # #
22
+ # # @param data [Hash{Symbol => Object}] .
23
+ # # @option data [Float, nil] :bar
24
+ # # @option data [String, nil] :foo
25
+ # def initialize(data = {}) = super
26
+ end
27
+
28
+ # @!parse
29
+ # # Create a new instance of ResponseNestedArrayResponse from a Hash of raw data.
30
+ # #
31
+ # # @param data [Hash{Symbol => Object}] .
32
+ # # @option data [Array<Object>] :objects
33
+ # def initialize(data = {}) = super
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ResponseObjectAllPropertiesResponse < BaseModel
6
+ # @!attribute [rw] allof
7
+ # @return [Sink::Models::SimpleAllof]
8
+ required :allof, -> { Sink::Models::SimpleAllof }
9
+
10
+ # @!attribute [rw] b
11
+ # @return [Boolean]
12
+ required :b, Sink::BooleanModel
13
+
14
+ # @!attribute [rw] e
15
+ # @return [Symbol, Sink::Models::ResponseObjectAllPropertiesResponse::E]
16
+ required :e, enum: -> { Sink::Models::ResponseObjectAllPropertiesResponse::E }
17
+
18
+ # @!attribute [rw] f
19
+ # @return [Float]
20
+ required :f, Float
21
+
22
+ # @!attribute [rw] i
23
+ # @return [Integer]
24
+ required :i, Integer
25
+
26
+ # @!attribute [rw] n
27
+ # @return [nil]
28
+ required :n, NilClass
29
+
30
+ # @!attribute [rw] object_array
31
+ # @return [Array<Sink::Models::CompanyPayment>]
32
+ required :object_array, Sink::ArrayOf.new(-> { Sink::Models::CompanyPayment })
33
+
34
+ # @!attribute [rw] primitive_array
35
+ # @return [Array<String>]
36
+ required :primitive_array, Sink::ArrayOf.new(String)
37
+
38
+ # @!attribute [rw] s
39
+ # @return [String]
40
+ required :s, String
41
+
42
+ class E < Sink::Enum
43
+ ACTIVE = :active
44
+ INACTIVE = :inactive
45
+ PENDING = :pending
46
+ end
47
+
48
+ # @!parse
49
+ # # Create a new instance of ResponseObjectAllPropertiesResponse from a Hash of raw
50
+ # # data.
51
+ # #
52
+ # # @param data [Hash{Symbol => Object}] .
53
+ # # @option data [Object] :allof
54
+ # # @option data [Hash] :b
55
+ # # @option data [String] :e
56
+ # # @option data [Float] :f
57
+ # # @option data [Integer] :i
58
+ # # @option data [nil] :n
59
+ # # @option data [Array<Object>] :object_array
60
+ # # @option data [Array<String>] :primitive_array
61
+ # # @option data [String] :s
62
+ # def initialize(data = {}) = super
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ResponseObjectNoPropertiesResponse < BaseModel
6
+ # @!parse
7
+ # # Create a new instance of ResponseObjectNoPropertiesResponse from a Hash of raw
8
+ # # data.
9
+ # #
10
+ # # @param data [Hash{Symbol => Object}] .
11
+ # def initialize(data = {}) = super
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ResponseObjectWithAdditionalPropertiesPropResponse < BaseModel
6
+ # @!attribute [rw] foo
7
+ # @return [Hash]
8
+ required :foo, Hash
9
+
10
+ class Foo < BaseModel
11
+ # @!attribute [rw] bar
12
+ # @return [String]
13
+ optional :bar, String
14
+
15
+ # @!parse
16
+ # # Create a new instance of Foo from a Hash of raw data.
17
+ # #
18
+ # # @param data [Hash{Symbol => Object}] .
19
+ # # @option data [String, nil] :bar
20
+ # def initialize(data = {}) = super
21
+ end
22
+
23
+ # @!parse
24
+ # # Create a new instance of ResponseObjectWithAdditionalPropertiesPropResponse from
25
+ # # a Hash of raw data.
26
+ # #
27
+ # # @param data [Hash{Symbol => Object}] .
28
+ # # @option data [Hash] :foo
29
+ # def initialize(data = {}) = super
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ResponseObjectWithHeavilyNestedUnionResponse < BaseModel
6
+ # @!attribute [rw] union_prop
7
+ # @return [Sink::Models::ResponseObjectWithHeavilyNestedUnionResponse::UnionProp::UnnamedTypeWithunionParent1, Sink::Models::ResponseObjectWithHeavilyNestedUnionResponse::UnionProp::UnnamedTypeWithunionParent2]
8
+ required :union_prop, Sink::Unknown
9
+
10
+ # @!parse
11
+ # # Create a new instance of ResponseObjectWithHeavilyNestedUnionResponse from a
12
+ # # Hash of raw data.
13
+ # #
14
+ # # @param data [Hash{Symbol => Object}] .
15
+ # # @option data [Object] :union_prop
16
+ # def initialize(data = {}) = super
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ResponseOnlyReadOnlyPropertiesResponse < BaseModel
6
+ # @!attribute [r] read_only_enum
7
+ # This is my description for the Currency enum
8
+ # @return [Symbol, Sink::Models::Currency]
9
+ required :read_only_enum, nil, :r, enum: -> { Sink::Models::Currency }
10
+
11
+ # @!attribute [r] read_only_property
12
+ # @return [String]
13
+ required :read_only_property, String, :r
14
+
15
+ # @!parse
16
+ # # Create a new instance of ResponseOnlyReadOnlyPropertiesResponse from a Hash of
17
+ # # raw data.
18
+ # #
19
+ # # @param data [Hash{Symbol => Object}] .
20
+ # # @option data [String] :read_only_enum This is my description for the Currency enum
21
+ # # @option data [String] :read_only_property
22
+ # def initialize(data = {}) = super
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ResponsesAllofCrossObject < BaseModel
6
+ # @!attribute [rw] bar
7
+ # @return [Float]
8
+ optional :bar, Float
9
+
10
+ # @!attribute [rw] foo
11
+ # @return [String]
12
+ optional :foo, String
13
+
14
+ # @!parse
15
+ # # Create a new instance of ResponsesAllofCrossObject from a Hash of raw data.
16
+ # #
17
+ # # @param data [Hash{Symbol => Object}] .
18
+ # # @option data [Float, nil] :bar
19
+ # # @option data [String, nil] :foo
20
+ # def initialize(data = {}) = super
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class Return < BaseModel
6
+ # @!attribute [rw] foo
7
+ # @return [String]
8
+ optional :foo, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of Return from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String, nil] :foo
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class RootResponse < BaseModel
6
+ # @!attribute [rw] check_escaping
7
+ # @return [Symbol, Sink::Models::RootResponse::CheckEscaping]
8
+ required :check_escaping,
9
+ api_name: :checkEscaping,
10
+ enum: -> {
11
+ Sink::Models::RootResponse::CheckEscaping
12
+ }
13
+
14
+ # @!attribute [rw] message
15
+ # @return [String]
16
+ required :message, String
17
+
18
+ class CheckEscaping < Sink::Enum
19
+ AND_NOW_A_SET_OF_CHARACTERS_THAT_ARE_LIKELY_TO_CAUSE_ISSUES_IF_NOT_PROPERLY_ESCAPED_QUOTES_SLASHES_OTHERS_N_R_T_B_F_V_X63_U_FE63_U0000_FE63_N_HYPHEN_1_12_123_1234_A_A_G_X2Z_U11Z1_U1111Z111_N_HYPHEN_TEST_TEST = :"And now, a set of characters that are likely to cause issues if not properly escaped:\n- quotes: \" ' ` - slashes: / // /// \\ \\\\ \\\\\\ - others: \\n \\r \\t \\b \\f \\v \\x63 \\uFE63 \\U0000FE63 \\N{HYPHEN} \\1 \\12 \\123 \\1234 a \\a \\g \\* \\( \\& \\@ \\x2z \\u11z1 \\U1111z111 \\N{HYPHEN#} ${test} \#{test}\n"
20
+ end
21
+
22
+ # @!parse
23
+ # # Create a new instance of RootResponse from a Hash of raw data.
24
+ # #
25
+ # # @param data [Hash{Symbol => Object}] .
26
+ # # @option data [String] :checkEscaping
27
+ # # @option data [String] :message
28
+ # def initialize(data = {}) = super
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class SelfRecursion < BaseModel
6
+ # @!attribute [rw] name_
7
+ # @return [String]
8
+ required :name_, String, api_name: :name
9
+
10
+ # @!attribute [rw] child
11
+ # @return [Sink::Models::SelfRecursion]
12
+ optional :child, -> { Sink::Models::SelfRecursion }
13
+
14
+ # @!parse
15
+ # # Create a new instance of SelfRecursion from a Hash of raw data.
16
+ # #
17
+ # # @param data [Hash{Symbol => Object}] .
18
+ # # @option data [String] :name
19
+ # # @option data [Object, nil] :child
20
+ # def initialize(data = {}) = super
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class SharedCursorNestedResponsePropMeta < BaseModel
6
+ # @!attribute [rw] pagination
7
+ # @return [Sink::Models::SharedCursorNestedResponsePropMeta::Pagination]
8
+ required :pagination, -> { Sink::Models::SharedCursorNestedResponsePropMeta::Pagination }
9
+
10
+ class Pagination < BaseModel
11
+ # @!attribute [rw] cursor
12
+ # The cursor for the next page
13
+ # @return [String]
14
+ optional :cursor, String
15
+
16
+ # @!parse
17
+ # # Create a new instance of Pagination from a Hash of raw data.
18
+ # #
19
+ # # @param data [Hash{Symbol => Object}] .
20
+ # # @option data [String, nil] :cursor The cursor for the next page
21
+ # def initialize(data = {}) = super
22
+ end
23
+
24
+ # @!parse
25
+ # # Create a new instance of SharedCursorNestedResponsePropMeta from a Hash of raw
26
+ # # data.
27
+ # #
28
+ # # @param data [Hash{Symbol => Object}] .
29
+ # # @option data [Object] :pagination
30
+ # def initialize(data = {}) = super
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class SharedSelfRecursion < BaseModel
6
+ # @!attribute [rw] name_
7
+ # @return [String]
8
+ required :name_, String, api_name: :name
9
+
10
+ # @!attribute [rw] child
11
+ # @return [Sink::Models::SharedSelfRecursion]
12
+ optional :child, -> { Sink::Models::SharedSelfRecursion }
13
+
14
+ # @!parse
15
+ # # Create a new instance of SharedSelfRecursion from a Hash of raw data.
16
+ # #
17
+ # # @param data [Hash{Symbol => Object}] .
18
+ # # @option data [String] :name
19
+ # # @option data [Object, nil] :child
20
+ # def initialize(data = {}) = super
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,85 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ShippingAddress < BaseModel
6
+ # @!attribute [rw] address1
7
+ # Valid USPS routable address.
8
+ # @return [String]
9
+ required :address1, String
10
+
11
+ # @!attribute [rw] city
12
+ # City
13
+ # @return [String]
14
+ required :city, String
15
+
16
+ # @!attribute [rw] country
17
+ # Uppercase ISO 3166-1 alpha-3 three character abbreviation.
18
+ # @return [String]
19
+ required :country, String
20
+
21
+ # @!attribute [rw] first_name
22
+ # Customer's first name. This will be the first name printed on the physical card.
23
+ # @return [String]
24
+ required :first_name, String
25
+
26
+ # @!attribute [rw] last_name
27
+ # Customer's surname (family name). This will be the last name printed on the physical card.
28
+ # @return [String]
29
+ required :last_name, String
30
+
31
+ # @!attribute [rw] postal_code
32
+ # Postal code (formerly zipcode). For US addresses, either five-digit zipcode or nine-digit "ZIP+4".
33
+ # @return [String]
34
+ required :postal_code, String
35
+
36
+ # @!attribute [rw] state
37
+ # Uppercase ISO 3166-2 two character abbreviation for US and CA. Optional with a limit of 24 characters for other countries.
38
+ # @return [String]
39
+ required :state, String
40
+
41
+ # @!attribute [rw] address2
42
+ # Unit number (if applicable).
43
+ # @return [String]
44
+ optional :address2, String
45
+
46
+ # @!attribute [rw] email
47
+ # Email address to be contacted for expedited shipping process purposes. Required if `shipping_method` is `EXPEDITED`.
48
+ # @return [String]
49
+ optional :email, String
50
+
51
+ # @!attribute [rw] line2_text
52
+ # Text to be printed on line two of the physical card. Use of this field requires additional permissions.
53
+ # @return [String]
54
+ optional :line2_text, String
55
+
56
+ # @!attribute [rw] phone_number
57
+ # Cardholder's phone number in E.164 format to be contacted for expedited shipping process purposes. Required if `shipping_method` is `EXPEDITED`.
58
+ # @return [String]
59
+ optional :phone_number, String
60
+
61
+ # @!parse
62
+ # # Create a new instance of ShippingAddress from a Hash of raw data.
63
+ # #
64
+ # # @param data [Hash{Symbol => Object}] .
65
+ # # @option data [String] :address1 Valid USPS routable address.
66
+ # # @option data [String] :city City
67
+ # # @option data [String] :country Uppercase ISO 3166-1 alpha-3 three character abbreviation.
68
+ # # @option data [String] :first_name Customer's first name. This will be the first name printed on the physical card.
69
+ # # @option data [String] :last_name Customer's surname (family name). This will be the last name printed on the
70
+ # # physical card.
71
+ # # @option data [String] :postal_code Postal code (formerly zipcode). For US addresses, either five-digit zipcode or
72
+ # # nine-digit "ZIP+4".
73
+ # # @option data [String] :state Uppercase ISO 3166-2 two character abbreviation for US and CA. Optional with a
74
+ # # limit of 24 characters for other countries.
75
+ # # @option data [String, nil] :address2 Unit number (if applicable).
76
+ # # @option data [String, nil] :email Email address to be contacted for expedited shipping process purposes. Required
77
+ # # if `shipping_method` is `EXPEDITED`.
78
+ # # @option data [String, nil] :line2_text Text to be printed on line two of the physical card. Use of this field requires
79
+ # # additional permissions.
80
+ # # @option data [String, nil] :phone_number Cardholder's phone number in E.164 format to be contacted for expedited shipping
81
+ # # process purposes. Required if `shipping_method` is `EXPEDITED`.
82
+ # def initialize(data = {}) = super
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class SimpleAllof < BaseModel
6
+ # @!attribute [rw] is_foo
7
+ # @return [Boolean]
8
+ required :is_foo, Sink::BooleanModel
9
+
10
+ # @!attribute [rw] kind
11
+ # @return [Symbol, Sink::Models::SimpleAllof::Kind]
12
+ required :kind, enum: -> { Sink::Models::SimpleAllof::Kind }
13
+
14
+ class Kind < Sink::Enum
15
+ VIRTUAL = :VIRTUAL
16
+ PHYSICAL = :PHYSICAL
17
+ end
18
+
19
+ # @!parse
20
+ # # Create a new instance of SimpleAllof from a Hash of raw data.
21
+ # #
22
+ # # @param data [Hash{Symbol => Object}] .
23
+ # # @option data [Hash] :is_foo
24
+ # # @option data [String] :kind
25
+ # def initialize(data = {}) = super
26
+ end
27
+ end
28
+ end