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,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class Address < BaseModel
6
+ # @!attribute [rw] address1
7
+ # Valid deliverable address (no PO boxes).
8
+ # @return [String]
9
+ required :address1, String
10
+
11
+ # @!attribute [rw] city
12
+ # Name of city.
13
+ # @return [String]
14
+ required :city, String
15
+
16
+ # @!attribute [rw] country
17
+ # Valid country code. Only USA is currently supported, entered in uppercase ISO 3166-1 alpha-3 three-character format.
18
+ #
19
+ # @return [String]
20
+ required :country, String
21
+
22
+ # @!attribute [rw] postal_code
23
+ # Valid postal code. Only USA ZIP codes are currently supported, entered as a five-digit ZIP or nine-digit ZIP+4.
24
+ #
25
+ # @return [String]
26
+ required :postal_code, String
27
+
28
+ # @!attribute [rw] state
29
+ # Valid state code. Only USA state codes are currently supported, entered in uppercase ISO 3166-2 two-character format.
30
+ #
31
+ # @return [String]
32
+ required :state, String
33
+
34
+ # @!attribute [rw] address2
35
+ # Unit or apartment number (if applicable).
36
+ # @return [String]
37
+ optional :address2, String
38
+
39
+ # @!parse
40
+ # # Create a new instance of Address from a Hash of raw data.
41
+ # #
42
+ # # @param data [Hash{Symbol => Object}] .
43
+ # # @option data [String] :address1 Valid deliverable address (no PO boxes).
44
+ # # @option data [String] :city Name of city.
45
+ # # @option data [String] :country Valid country code. Only USA is currently supported, entered in uppercase ISO
46
+ # # 3166-1 alpha-3 three-character format.
47
+ # # @option data [String] :postal_code Valid postal code. Only USA ZIP codes are currently supported, entered as a
48
+ # # five-digit ZIP or nine-digit ZIP+4.
49
+ # # @option data [String] :state Valid state code. Only USA state codes are currently supported, entered in
50
+ # # uppercase ISO 3166-2 two-character format.
51
+ # # @option data [String, nil] :address2 Unit or apartment number (if applicable).
52
+ # def initialize(data = {}) = super
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class AllofBaseParent < BaseModel
6
+ # @!attribute [rw] from_parent
7
+ # @return [Boolean]
8
+ optional :from_parent, Sink::BooleanModel
9
+
10
+ # @!parse
11
+ # # Create a new instance of AllofBaseParent from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [Hash, nil] :from_parent
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class AllofMultipleInlineEntries < Sink::Models::AllofBaseParent
6
+ # @!attribute [rw] in_first_entry
7
+ # @return [String]
8
+ optional :in_first_entry, String
9
+
10
+ # @!attribute [rw] in_second_entry
11
+ # @return [Integer]
12
+ optional :in_second_entry, Integer
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class APIStatus < BaseModel
6
+ # @!attribute [rw] message
7
+ # @return [String]
8
+ required :message, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of APIStatus from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String] :message
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ end
6
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ArrayMissingItemsResponse < BaseModel
6
+ # @!attribute [rw] array_prop
7
+ # @return [Array<Object>]
8
+ required :array_prop, Sink::ArrayOf.new(Sink::Unknown)
9
+
10
+ # @!parse
11
+ # # Create a new instance of ArrayMissingItemsResponse from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [Array<Object>] :array_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 ArrayObjectItem < BaseModel
6
+ # @!attribute [rw] bar
7
+ # @return [String]
8
+ required :bar, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of ArrayObjectItem from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String] :bar
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 ArrayObjectItemsResponse < BaseModel
6
+ # @!attribute [rw] nice_foo
7
+ # @return [String]
8
+ optional :nice_foo, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of ArrayObjectItemsResponse from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String, nil] :nice_foo
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ end
6
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class Balance < BaseModel
6
+ # @!attribute [rw] foo
7
+ # @return [String]
8
+ optional :foo, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of Balance 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,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class BasicSharedModelObject < BaseModel
6
+ # @!attribute [rw] bar
7
+ # @return [String]
8
+ required :bar, String
9
+
10
+ # @!attribute [rw] foo
11
+ # @return [String]
12
+ required :foo, String
13
+
14
+ # @!parse
15
+ # # Create a new instance of BasicSharedModelObject from a Hash of raw data.
16
+ # #
17
+ # # @param data [Hash{Symbol => Object}] .
18
+ # # @option data [String] :bar
19
+ # # @option data [String] :foo
20
+ # def initialize(data = {}) = super
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class BodyParamTopLevelAllOfResponse < 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::BodyParamTopLevelAllOfResponse::Kind]
12
+ required :kind, enum: -> { Sink::Models::BodyParamTopLevelAllOfResponse::Kind }
13
+
14
+ class Kind < Sink::Enum
15
+ VIRTUAL = :VIRTUAL
16
+ PHYSICAL = :PHYSICAL
17
+ end
18
+
19
+ # @!parse
20
+ # # Create a new instance of BodyParamTopLevelAllOfResponse 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
@@ -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,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class BodyParamUnionOverlappingPropResponse < BaseModel
6
+ # @!attribute [rw] foo
7
+ # @return [String]
8
+ required :foo, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of BodyParamUnionOverlappingPropResponse from a Hash of
12
+ # # raw data.
13
+ # #
14
+ # # @param data [Hash{Symbol => Object}] .
15
+ # # @option data [String] :foo
16
+ # def initialize(data = {}) = super
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,211 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class Card < BaseModel
6
+ # @!attribute [rw] token
7
+ # Globally unique identifier.
8
+ # @return [String]
9
+ required :token, String
10
+
11
+ # @!attribute [rw] created
12
+ # An ISO 8601 timestamp for when the card was created. UTC time zone.
13
+ # @return [Time]
14
+ required :created, Time
15
+
16
+ # @!attribute [rw] funding
17
+ # @return [Sink::Models::FundingAccount]
18
+ required :funding, -> { Sink::Models::FundingAccount }
19
+
20
+ # @!attribute [rw] last_four
21
+ # Last four digits of the card number.
22
+ # @return [String]
23
+ required :last_four, String, api_name: :lastFour
24
+
25
+ # @!attribute [rw] spend_limit
26
+ # Amount (in cents) to limit approved authorizations. Transaction requests above the spend limit will be declined.
27
+ # @return [Integer]
28
+ required :spend_limit, Integer
29
+
30
+ # @!attribute [rw] spend_limit_duration
31
+ # Spend limit duration values:
32
+ # * `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar year.
33
+ # * `FOREVER` - Card will authorize only up to spend limit for the entire lifetime of the card.
34
+ # * `MONTHLY` - Card will authorize transactions up to spend limit for the trailing month. Month is calculated as this calendar date one month prior.
35
+ # * `TRANSACTION` - Card will authorizate multiple transactions if each individual transaction is under the spend limit.
36
+ #
37
+ # @return [Symbol, Sink::Models::Card::SpendLimitDuration]
38
+ required :spend_limit_duration, enum: -> { Sink::Models::Card::SpendLimitDuration }
39
+
40
+ # @!attribute [rw] state
41
+ # Card state values:
42
+ # * `CLOSED` - Card will no longer approve authorizations. Closing a card cannot be undone.
43
+ # * `OPEN` - Card will approve authorizations (if they match card and account parameters).
44
+ # * `PAUSED` - Card will decline authorizations, but can be resumed at a later time.
45
+ # * `PENDING_FULFILLMENT` - The initial state for cards of type `PHYSICAL`. The card is provisioned pending manufacturing and fulfillment. Cards in this state can accept authorizations for e-commerce purchases, but not for "Card Present" purchases where the physical card itself is present.
46
+ # * `PENDING_ACTIVATION` - Each business day at 2pm Eastern Time Zone (ET), cards of type `PHYSICAL` in state `PENDING_FULFILLMENT` are sent to the card production warehouse and updated to state `PENDING_ACTIVATION` . Similar to `PENDING_FULFILLMENT`, cards in this state can be used for e-commerce transactions. API clients should update the card's state to `OPEN` only after the cardholder confirms receipt of the card.
47
+ #
48
+ # In sandbox, the same daily batch fulfillment occurs, but no cards are actually manufactured.
49
+ #
50
+ # @return [Symbol, Sink::Models::Card::State]
51
+ required :state, enum: -> { Sink::Models::Card::State }
52
+
53
+ # @!attribute [rw] type
54
+ # Card types:
55
+ # * `MERCHANT_LOCKED` - Card is locked to first merchant that successfully authorizes the card.
56
+ # * `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality. Reach out at [lithic.com/contact](https://lithic.com/contact) for more information.
57
+ # * `SINGLE_USE` - Card will close shortly after the first transaction.
58
+ # * `VIRTUAL` - Card will authorize at any merchant and can be added to a digital wallet like Apple Pay or Google Pay (if the card program is digital wallet-enabled).
59
+ #
60
+ # @return [Symbol, Sink::Models::Card::Type]
61
+ required :type, enum: -> { Sink::Models::Card::Type }
62
+
63
+ # @!attribute [rw] auth_rule_tokens
64
+ # List of identifiers for the Auth Rule(s) that are applied on the card.
65
+ #
66
+ # @return [Array<String>]
67
+ optional :auth_rule_tokens, Sink::ArrayOf.new(String)
68
+
69
+ # @!attribute [rw] cvv
70
+ # Three digit cvv printed on the back of the card.
71
+ # @return [String]
72
+ optional :cvv, String
73
+
74
+ # @!attribute [rw] exp_month
75
+ # Two digit (MM) expiry month.
76
+ # @return [String]
77
+ optional :exp_month, String
78
+
79
+ # @!attribute [rw] exp_year
80
+ # Four digit (yyyy) expiry year.
81
+ # @return [String]
82
+ optional :exp_year, String
83
+
84
+ # @!attribute [rw] hostname
85
+ # Hostname of card’s locked merchant (will be empty if not applicable).
86
+ # @return [String]
87
+ optional :hostname, String
88
+
89
+ # @!attribute [rw] memo
90
+ # Friendly name to identify the card.
91
+ # @return [String]
92
+ optional :memo, String
93
+
94
+ # @!attribute [rw] pan
95
+ # Primary Account Number (PAN) (i.e. the card number). Customers must be PCI compliant to have PAN returned as a field in production. Please contact [support@lithic.com](mailto:support@lithic.com) for questions.
96
+ #
97
+ # @return [String]
98
+ optional :pan, String
99
+
100
+ # Spend limit duration values:
101
+ # * `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar year.
102
+ # * `FOREVER` - Card will authorize only up to spend limit for the entire lifetime of the card.
103
+ # * `MONTHLY` - Card will authorize transactions up to spend limit for the trailing month. Month is calculated as this calendar date one month prior.
104
+ # * `TRANSACTION` - Card will authorizate multiple transactions if each individual transaction is under the spend limit.
105
+ #
106
+ class SpendLimitDuration < Sink::Enum
107
+ ANNUALLY = :ANNUALLY
108
+ FOREVER = :FOREVER
109
+ MONTHLY = :MONTHLY
110
+ TRANSACTION = :TRANSACTION
111
+ end
112
+
113
+ # Card state values:
114
+ # * `CLOSED` - Card will no longer approve authorizations. Closing a card cannot be undone.
115
+ # * `OPEN` - Card will approve authorizations (if they match card and account parameters).
116
+ # * `PAUSED` - Card will decline authorizations, but can be resumed at a later time.
117
+ # * `PENDING_FULFILLMENT` - The initial state for cards of type `PHYSICAL`. The card is provisioned pending manufacturing and fulfillment. Cards in this state can accept authorizations for e-commerce purchases, but not for "Card Present" purchases where the physical card itself is present.
118
+ # * `PENDING_ACTIVATION` - Each business day at 2pm Eastern Time Zone (ET), cards of type `PHYSICAL` in state `PENDING_FULFILLMENT` are sent to the card production warehouse and updated to state `PENDING_ACTIVATION` . Similar to `PENDING_FULFILLMENT`, cards in this state can be used for e-commerce transactions. API clients should update the card's state to `OPEN` only after the cardholder confirms receipt of the card.
119
+ #
120
+ # In sandbox, the same daily batch fulfillment occurs, but no cards are actually manufactured.
121
+ #
122
+ class State < Sink::Enum
123
+ CLOSED = :CLOSED
124
+ OPEN = :OPEN
125
+ PAUSED = :PAUSED
126
+ PENDING_ACTIVATION = :PENDING_ACTIVATION
127
+ PENDING_FULFILLMENT = :PENDING_FULFILLMENT
128
+ end
129
+
130
+ # Card types:
131
+ # * `MERCHANT_LOCKED` - Card is locked to first merchant that successfully authorizes the card.
132
+ # * `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality. Reach out at [lithic.com/contact](https://lithic.com/contact) for more information.
133
+ # * `SINGLE_USE` - Card will close shortly after the first transaction.
134
+ # * `VIRTUAL` - Card will authorize at any merchant and can be added to a digital wallet like Apple Pay or Google Pay (if the card program is digital wallet-enabled).
135
+ #
136
+ class Type < Sink::Enum
137
+ MERCHANT_LOCKED = :MERCHANT_LOCKED
138
+ PHYSICAL = :PHYSICAL
139
+ SINGLE_USE = :SINGLE_USE
140
+ VIRTUAL = :VIRTUAL
141
+ end
142
+
143
+ # @!parse
144
+ # # Create a new instance of Card from a Hash of raw data.
145
+ # #
146
+ # # @param data [Hash{Symbol => Object}] .
147
+ # # @option data [String] :token Globally unique identifier.
148
+ # # @option data [String] :created An ISO 8601 timestamp for when the card was created. UTC time zone.
149
+ # # @option data [Object] :funding
150
+ # # @option data [String] :lastFour Last four digits of the card number.
151
+ # # @option data [Integer] :spend_limit Amount (in cents) to limit approved authorizations. Transaction requests above
152
+ # # the spend limit will be declined.
153
+ # # @option data [String] :spend_limit_duration
154
+ # # Spend limit duration values:
155
+ # #
156
+ # # - `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
157
+ # # year.
158
+ # # - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
159
+ # # of the card.
160
+ # # - `MONTHLY` - Card will authorize transactions up to spend limit for the
161
+ # # trailing month. Month is calculated as this calendar date one month prior.
162
+ # # - `TRANSACTION` - Card will authorizate multiple transactions if each individual
163
+ # # transaction is under the spend limit.
164
+ # # @option data [String] :state
165
+ # # Card state values:
166
+ # #
167
+ # # - `CLOSED` - Card will no longer approve authorizations. Closing a card cannot
168
+ # # be undone.
169
+ # # - `OPEN` - Card will approve authorizations (if they match card and account
170
+ # # parameters).
171
+ # # - `PAUSED` - Card will decline authorizations, but can be resumed at a later
172
+ # # time.
173
+ # # - `PENDING_FULFILLMENT` - The initial state for cards of type `PHYSICAL`. The
174
+ # # card is provisioned pending manufacturing and fulfillment. Cards in this state
175
+ # # can accept authorizations for e-commerce purchases, but not for "Card Present"
176
+ # # purchases where the physical card itself is present.
177
+ # # - `PENDING_ACTIVATION` - Each business day at 2pm Eastern Time Zone (ET), cards
178
+ # # of type `PHYSICAL` in state `PENDING_FULFILLMENT` are sent to the card
179
+ # # production warehouse and updated to state `PENDING_ACTIVATION` . Similar to
180
+ # # `PENDING_FULFILLMENT`, cards in this state can be used for e-commerce
181
+ # # transactions. API clients should update the card's state to `OPEN` only after
182
+ # # the cardholder confirms receipt of the card.
183
+ # #
184
+ # # In sandbox, the same daily batch fulfillment occurs, but no cards are actually
185
+ # # manufactured.
186
+ # # @option data [String] :type
187
+ # # Card types:
188
+ # #
189
+ # # - `MERCHANT_LOCKED` - Card is locked to first merchant that successfully
190
+ # # authorizes the card.
191
+ # # - `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label
192
+ # # branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality.
193
+ # # Reach out at [lithic.com/contact](https://lithic.com/contact) for more
194
+ # # information.
195
+ # # - `SINGLE_USE` - Card will close shortly after the first transaction.
196
+ # # - `VIRTUAL` - Card will authorize at any merchant and can be added to a digital
197
+ # # wallet like Apple Pay or Google Pay (if the card program is digital
198
+ # # wallet-enabled).
199
+ # # @option data [Array<String>, nil] :auth_rule_tokens List of identifiers for the Auth Rule(s) that are applied on the card.
200
+ # # @option data [String, nil] :cvv Three digit cvv printed on the back of the card.
201
+ # # @option data [String, nil] :exp_month Two digit (MM) expiry month.
202
+ # # @option data [String, nil] :exp_year Four digit (yyyy) expiry year.
203
+ # # @option data [String, nil] :hostname Hostname of card’s locked merchant (will be empty if not applicable).
204
+ # # @option data [String, nil] :memo Friendly name to identify the card.
205
+ # # @option data [String, nil] :pan Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
206
+ # # compliant to have PAN returned as a field in production. Please contact
207
+ # # [support@lithic.com](mailto:support@lithic.com) for questions.
208
+ # def initialize(data = {}) = super
209
+ end
210
+ end
211
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class CardListResponse < BaseModel
6
+ # @!attribute [rw] data
7
+ # @return [Array<Sink::Models::Card>]
8
+ required :data, Sink::ArrayOf.new(-> { Sink::Models::Card })
9
+
10
+ # @!attribute [rw] page
11
+ # Page number.
12
+ # @return [Integer]
13
+ required :page, Integer
14
+
15
+ # @!attribute [rw] total_entries
16
+ # Total number of entries.
17
+ # @return [Integer]
18
+ required :total_entries, Integer
19
+
20
+ # @!attribute [rw] total_pages
21
+ # Total number of pages.
22
+ # @return [Integer]
23
+ required :total_pages, Integer
24
+
25
+ # @!parse
26
+ # # Create a new instance of CardListResponse from a Hash of raw data.
27
+ # #
28
+ # # @param data [Hash{Symbol => Object}] .
29
+ # # @option data [Array<Object>] :data
30
+ # # @option data [Integer] :page Page number.
31
+ # # @option data [Integer] :total_entries Total number of entries.
32
+ # # @option data [Integer] :total_pages Total number of pages.
33
+ # def initialize(data = {}) = super
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class CardProvisionFooResponse < BaseModel
6
+ # @!attribute [rw] provisioning_payload
7
+ # @return [String]
8
+ required :provisioning_payload, String
9
+
10
+ # @!parse
11
+ # # Create a new instance of CardProvisionFooResponse from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String] :provisioning_payload
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 ChildInlinedResponseResponse < BaseModel
6
+ # @!attribute [rw] foo
7
+ # @return [Float]
8
+ required :foo, Float
9
+
10
+ # @!parse
11
+ # # Create a new instance of ChildInlinedResponseResponse from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [Float] :foo
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class ChildModel < BaseModel
6
+ # @!attribute [rw] inline_object
7
+ # @return [Sink::Models::ChildModel::InlineObject]
8
+ required :inline_object, -> { Sink::Models::ChildModel::InlineObject }
9
+
10
+ # @!attribute [rw] name_
11
+ # @return [String]
12
+ required :name_, String, api_name: :name
13
+
14
+ class InlineObject < BaseModel
15
+ # @!attribute [rw] foo
16
+ # @return [Float]
17
+ optional :foo, Float
18
+
19
+ # @!parse
20
+ # # Create a new instance of InlineObject from a Hash of raw data.
21
+ # #
22
+ # # @param data [Hash{Symbol => Object}] .
23
+ # # @option data [Float, nil] :foo
24
+ # def initialize(data = {}) = super
25
+ end
26
+
27
+ # @!parse
28
+ # # Create a new instance of ChildModel from a Hash of raw data.
29
+ # #
30
+ # # @param data [Hash{Symbol => Object}] .
31
+ # # @option data [Object] :inline_object
32
+ # # @option data [String] :name
33
+ # def initialize(data = {}) = super
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class Class < BaseModel
6
+ # @!attribute [rw] class_
7
+ # @return [String]
8
+ required :class_, String, api_name: :class
9
+
10
+ # @!parse
11
+ # # Create a new instance of Class from a Hash of raw data.
12
+ # #
13
+ # # @param data [Hash{Symbol => Object}] .
14
+ # # @option data [String] :class
15
+ # def initialize(data = {}) = super
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Models
5
+ class Client < BaseModel
6
+ # @!attribute [rw] id
7
+ # @return [String]
8
+ required :id, String
9
+
10
+ # @!attribute [rw] name_
11
+ # @return [String]
12
+ required :name_, String, api_name: :name
13
+
14
+ # @!parse
15
+ # # Create a new instance of Client from a Hash of raw data.
16
+ # #
17
+ # # @param data [Hash{Symbol => Object}] .
18
+ # # @option data [String] :id
19
+ # # @option data [String] :name
20
+ # def initialize(data = {}) = super
21
+ end
22
+ end
23
+ end