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,508 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Cards
6
+ # @param client [Sink::Client]
7
+ def initialize(client:)
8
+ @client = client
9
+ end
10
+
11
+ # Create a new virtual or physical card. Parameters `pin`, `shippingAddress`, and
12
+ # `product_id` only apply to physical cards.
13
+ #
14
+ # @param params [Hash{Symbol => Object}] Attributes to send in this request.
15
+ # @option params [Symbol, Type] :type
16
+ # Card types:
17
+ #
18
+ # - `MERCHANT_LOCKED` - Card is locked to first merchant that successfully
19
+ # authorizes the card.
20
+ # - `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label
21
+ # branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality.
22
+ # Reach out at [lithic.com/contact](https://lithic.com/contact) for more
23
+ # information.
24
+ # - `SINGLE_USE` - Card will close shortly after the first transaction.
25
+ # - `VIRTUAL` - Card will authorize at any merchant and can be added to a digital
26
+ # wallet like Apple Pay or Google Pay (if the card program is digital
27
+ # wallet-enabled).
28
+ # @option params [String, nil] :account_token Only required for multi-account users. Token identifying the account the card
29
+ # will be associated with. Only applicable if using account holder enrollment. See
30
+ # [Managing Your Program](https://docs.lithic.com/docs/managing-your-program) for
31
+ # more information.
32
+ # @option params [String, nil] :card_program_token Identifies the card program under which to create the card. Different card
33
+ # programs may have their own configurations (e.g., digital wallet card art, BIN
34
+ # type). This must be configured with Lithic before use.
35
+ # @option params [String, nil] :exp_month Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
36
+ # an expiration date will be generated.
37
+ # @option params [String, nil] :exp_year Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
38
+ # provided, an expiration date will be generated.
39
+ # @option params [String, nil] :funding_token The token for the desired `FundingAccount` to use when making transactions with
40
+ # this card.
41
+ # @option params [String, nil] :memo Friendly name to identify the card.
42
+ # @option params [String, nil] :not_ Used to test the PythonSDKs ability to handle reserved keywords as parameters
43
+ # @option params [String, nil] :pin Encrypted PIN block (in base64). Only applies to cards of type `PHYSICAL` and
44
+ # `VIRTUAL`. See
45
+ # [Encrypted PIN Block](https://docs.lithic.com/docs/cards#encrypted-pin-block-enterprise).
46
+ # @option params [String, nil] :product_id Specifies the configuration (e.g., physical card art) that the card should be
47
+ # manufactured with, and only applies to cards of type `PHYSICAL` [beta]. This
48
+ # must be configured with Lithic before use.
49
+ # @option params [Symbol, ShippingMethod, nil] :shipping_method Shipping method for the card. Only applies to cards of type PHYSICAL [beta]. Use
50
+ # of options besides `STANDARD` require additional permissions.
51
+ #
52
+ # - `STANDARD` - USPS regular mail or similar international option, with no
53
+ # tracking
54
+ # - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
55
+ # with tracking
56
+ # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
57
+ # tracking
58
+ # @option params [Sink::Models::ShippingAddress, nil] :shipping_address
59
+ # @option params [Integer, nil] :spend_limit Amount (in cents) to limit approved authorizations. Transaction requests above
60
+ # the spend limit will be declined.
61
+ # @option params [Symbol, SpendLimitDuration, nil] :spend_limit_duration
62
+ # Spend limit duration values:
63
+ #
64
+ # - `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
65
+ # year.
66
+ # - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
67
+ # of the card.
68
+ # - `MONTHLY` - Card will authorize transactions up to spend limit for the
69
+ # trailing month. Month is calculated as this calendar date one month prior.
70
+ # - `TRANSACTION` - Card will authorizate multiple transactions if each individual
71
+ # transaction is under the spend limit.
72
+ # @option params [Symbol, State, nil] :state
73
+ # Card state values:
74
+ #
75
+ # - `OPEN` - Card will approve authorizations (if they match card and account
76
+ # parameters).
77
+ # - `PAUSED` - Card will decline authorizations, but can be resumed at a later
78
+ # time.
79
+ #
80
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
81
+ #
82
+ # @return [Sink::Models::Card]
83
+ def create(params = {}, opts = {})
84
+ req = {
85
+ method: :post,
86
+ path: "/cards",
87
+ body: params,
88
+ headers: {"Content-Type" => "application/json"},
89
+ model: Sink::Models::Card
90
+ }
91
+ @client.request(req, opts)
92
+ end
93
+
94
+ # Get card configuration such as spend limit and state.
95
+ #
96
+ # @param card_token [String]
97
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
98
+ #
99
+ # @return [Sink::Models::Card]
100
+ def retrieve(card_token, opts = {})
101
+ req = {
102
+ method: :get,
103
+ path: "/cards/#{card_token}",
104
+ model: Sink::Models::Card
105
+ }
106
+ @client.request(req, opts)
107
+ end
108
+
109
+ # Update the specified properties of the card. Unsupplied properties will remain
110
+ # unchanged. `pin` parameter only applies to physical cards.
111
+ #
112
+ # _Note: setting a card to a `CLOSED` state is a final action that cannot be
113
+ # undone._
114
+ #
115
+ # @param card_token [String]
116
+ #
117
+ # @param params [Hash{Symbol => Object}] Attributes to send in this request.
118
+ # @option params [String, nil] :account_token Only required for multi-account users. Token identifying the account the card
119
+ # will be associated with. Only applicable if using account holder enrollment. See
120
+ # [Managing Your Program](https://docs.lithic.com/docs/managing-your-program) for
121
+ # more information.
122
+ # @option params [String, nil] :auth_rule_token Identifier for any Auth Rules that will be applied to transactions taking place
123
+ # with the card.
124
+ # @option params [String, nil] :funding_token The token for the desired `FundingAccount` to use when making transactions with
125
+ # this card.
126
+ # @option params [String, nil] :memo Friendly name to identify the card.
127
+ # @option params [String, nil] :pin Encrypted PIN block (in base64). Only applies to cards of type `PHYSICAL` and
128
+ # `VIRTUAL`. See
129
+ # [Encrypted PIN Block](https://docs.lithic.com/docs/cards#encrypted-pin-block-enterprise).
130
+ # @option params [Integer, nil] :spend_limit Amount (in cents) to limit approved authorizations. Transaction requests above
131
+ # the spend limit will be declined.
132
+ # @option params [Symbol, SpendLimitDuration, nil] :spend_limit_duration
133
+ # Spend limit duration values:
134
+ #
135
+ # - `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
136
+ # year.
137
+ # - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
138
+ # of the card.
139
+ # - `MONTHLY` - Card will authorize transactions up to spend limit for the
140
+ # trailing month. Month is calculated as this calendar date one month prior.
141
+ # - `TRANSACTION` - Card will authorizate multiple transactions if each individual
142
+ # transaction is under the spend limit.
143
+ # @option params [Symbol, State, nil] :state
144
+ # Card state values:
145
+ #
146
+ # - `CLOSED` - Card will no longer approve authorizations. Closing a card cannot
147
+ # be undone.
148
+ # - `OPEN` - Card will approve authorizations (if they match card and account
149
+ # parameters).
150
+ # - `PAUSED` - Card will decline authorizations, but can be resumed at a later
151
+ # time.
152
+ #
153
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
154
+ #
155
+ # @return [Sink::Models::Card]
156
+ def update(card_token, params = {}, opts = {})
157
+ req = {
158
+ method: :patch,
159
+ path: "/cards/#{card_token}",
160
+ body: params,
161
+ headers: {"Content-Type" => "application/json"},
162
+ model: Sink::Models::Card
163
+ }
164
+ @client.request(req, opts)
165
+ end
166
+
167
+ # List cards.
168
+ #
169
+ # @param params [Hash{Symbol => Object}] Attributes to send in this request.
170
+ # @option params [Time] :begin_ Date string in 8601 format. Only entries created after the specified date will
171
+ # be included. UTC time zone.
172
+ # @option params [Time] :end_ Date string in 8601 format. Only entries created before the specified date will
173
+ # be included. UTC time zone.
174
+ # @option params [String, nil] :account_token Only required for multi-account users. Returns cards associated with this
175
+ # account. Only applicable if using account holder enrollment. See
176
+ # [Managing Your Program](https://docs.lithic.com/docs/managing-your-program) for
177
+ # more information.
178
+ # @option params [Integer, nil] :page Page (for pagination).
179
+ # @option params [Integer, nil] :page_size Page size (for pagination).
180
+ #
181
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
182
+ #
183
+ # @return [Sink::Models::CardListResponse]
184
+ def list(params = {}, opts = {})
185
+ req = {
186
+ method: :get,
187
+ path: "/cards",
188
+ query: params,
189
+ model: Sink::Models::CardListResponse
190
+ }
191
+ @client.request(req, opts)
192
+ end
193
+
194
+ # Create a new virtual or physical card. Parameters `pin`, `shippingAddress`, and
195
+ # `product_id` only apply to physical cards.
196
+ #
197
+ # @param params [Hash{Symbol => Object}] Attributes to send in this request.
198
+ # @option params [Symbol, Type] :type
199
+ # Card types:
200
+ #
201
+ # - `MERCHANT_LOCKED` - Card is locked to first merchant that successfully
202
+ # authorizes the card.
203
+ # - `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label
204
+ # branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality.
205
+ # Reach out at [lithic.com/contact](https://lithic.com/contact) for more
206
+ # information.
207
+ # - `SINGLE_USE` - Card will close shortly after the first transaction.
208
+ # - `VIRTUAL` - Card will authorize at any merchant and can be added to a digital
209
+ # wallet like Apple Pay or Google Pay (if the card program is digital
210
+ # wallet-enabled).
211
+ # @option params [String, nil] :account_token Only required for multi-account users. Token identifying the account the card
212
+ # will be associated with. Only applicable if using account holder enrollment. See
213
+ # [Managing Your Program](https://docs.lithic.com/docs/managing-your-program) for
214
+ # more information.
215
+ # @option params [String, nil] :card_program_token Identifies the card program under which to create the card. Different card
216
+ # programs may have their own configurations (e.g., digital wallet card art, BIN
217
+ # type). This must be configured with Lithic before use.
218
+ # @option params [String, nil] :exp_month Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
219
+ # an expiration date will be generated.
220
+ # @option params [String, nil] :exp_year Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
221
+ # provided, an expiration date will be generated.
222
+ # @option params [String, nil] :funding_token The token for the desired `FundingAccount` to use when making transactions with
223
+ # this card.
224
+ # @option params [String, nil] :memo Friendly name to identify the card.
225
+ # @option params [String, nil] :not_ Used to test the PythonSDKs ability to handle reserved keywords as parameters
226
+ # @option params [String, nil] :pin Encrypted PIN block (in base64). Only applies to cards of type `PHYSICAL` and
227
+ # `VIRTUAL`. See
228
+ # [Encrypted PIN Block](https://docs.lithic.com/docs/cards#encrypted-pin-block-enterprise).
229
+ # @option params [String, nil] :product_id Specifies the configuration (e.g., physical card art) that the card should be
230
+ # manufactured with, and only applies to cards of type `PHYSICAL` [beta]. This
231
+ # must be configured with Lithic before use.
232
+ # @option params [Symbol, ShippingMethod, nil] :shipping_method Shipping method for the card. Only applies to cards of type PHYSICAL [beta]. Use
233
+ # of options besides `STANDARD` require additional permissions.
234
+ #
235
+ # - `STANDARD` - USPS regular mail or similar international option, with no
236
+ # tracking
237
+ # - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
238
+ # with tracking
239
+ # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
240
+ # tracking
241
+ # @option params [Sink::Models::ShippingAddress, nil] :shipping_address
242
+ # @option params [Integer, nil] :spend_limit Amount (in cents) to limit approved authorizations. Transaction requests above
243
+ # the spend limit will be declined.
244
+ # @option params [Symbol, SpendLimitDuration, nil] :spend_limit_duration
245
+ # Spend limit duration values:
246
+ #
247
+ # - `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
248
+ # year.
249
+ # - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
250
+ # of the card.
251
+ # - `MONTHLY` - Card will authorize transactions up to spend limit for the
252
+ # trailing month. Month is calculated as this calendar date one month prior.
253
+ # - `TRANSACTION` - Card will authorizate multiple transactions if each individual
254
+ # transaction is under the spend limit.
255
+ # @option params [Symbol, State, nil] :state
256
+ # Card state values:
257
+ #
258
+ # - `OPEN` - Card will approve authorizations (if they match card and account
259
+ # parameters).
260
+ # - `PAUSED` - Card will decline authorizations, but can be resumed at a later
261
+ # time.
262
+ #
263
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
264
+ #
265
+ # @return [Sink::Models::Card]
266
+ def create_aliased(params = {}, opts = {})
267
+ req = {
268
+ method: :post,
269
+ path: "/cards",
270
+ body: params,
271
+ headers: {"Content-Type" => "application/json"},
272
+ model: Sink::Models::Card
273
+ }
274
+ @client.request(req, opts)
275
+ end
276
+
277
+ # Create a new virtual or physical card. Parameters `pin`, `shippingAddress`, and
278
+ # `product_id` only apply to physical cards.
279
+ #
280
+ # @param params [Hash{Symbol => Object}] Attributes to send in this request.
281
+ # @option params [Symbol, Type] :type
282
+ # Card types:
283
+ #
284
+ # - `MERCHANT_LOCKED` - Card is locked to first merchant that successfully
285
+ # authorizes the card.
286
+ # - `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label
287
+ # branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality.
288
+ # Reach out at [lithic.com/contact](https://lithic.com/contact) for more
289
+ # information.
290
+ # - `SINGLE_USE` - Card will close shortly after the first transaction.
291
+ # - `VIRTUAL` - Card will authorize at any merchant and can be added to a digital
292
+ # wallet like Apple Pay or Google Pay (if the card program is digital
293
+ # wallet-enabled).
294
+ # @option params [String, nil] :account_token Only required for multi-account users. Token identifying the account the card
295
+ # will be associated with. Only applicable if using account holder enrollment. See
296
+ # [Managing Your Program](https://docs.lithic.com/docs/managing-your-program) for
297
+ # more information.
298
+ # @option params [String, nil] :card_program_token Identifies the card program under which to create the card. Different card
299
+ # programs may have their own configurations (e.g., digital wallet card art, BIN
300
+ # type). This must be configured with Lithic before use.
301
+ # @option params [String, nil] :exp_month Two digit (MM) expiry month. If neither `exp_month` nor `exp_year` is provided,
302
+ # an expiration date will be generated.
303
+ # @option params [String, nil] :exp_year Four digit (yyyy) expiry year. If neither `exp_month` nor `exp_year` is
304
+ # provided, an expiration date will be generated.
305
+ # @option params [String, nil] :funding_token The token for the desired `FundingAccount` to use when making transactions with
306
+ # this card.
307
+ # @option params [String, nil] :memo Friendly name to identify the card.
308
+ # @option params [String, nil] :not_ Used to test the PythonSDKs ability to handle reserved keywords as parameters
309
+ # @option params [String, nil] :pin Encrypted PIN block (in base64). Only applies to cards of type `PHYSICAL` and
310
+ # `VIRTUAL`. See
311
+ # [Encrypted PIN Block](https://docs.lithic.com/docs/cards#encrypted-pin-block-enterprise).
312
+ # @option params [String, nil] :product_id Specifies the configuration (e.g., physical card art) that the card should be
313
+ # manufactured with, and only applies to cards of type `PHYSICAL` [beta]. This
314
+ # must be configured with Lithic before use.
315
+ # @option params [Symbol, ShippingMethod, nil] :shipping_method Shipping method for the card. Only applies to cards of type PHYSICAL [beta]. Use
316
+ # of options besides `STANDARD` require additional permissions.
317
+ #
318
+ # - `STANDARD` - USPS regular mail or similar international option, with no
319
+ # tracking
320
+ # - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
321
+ # with tracking
322
+ # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
323
+ # tracking
324
+ # @option params [Sink::Models::ShippingAddress, nil] :shipping_address
325
+ # @option params [Integer, nil] :spend_limit Amount (in cents) to limit approved authorizations. Transaction requests above
326
+ # the spend limit will be declined.
327
+ # @option params [Symbol, SpendLimitDuration, nil] :spend_limit_duration
328
+ # Spend limit duration values:
329
+ #
330
+ # - `ANNUALLY` - Card will authorize transactions up to spend limit in a calendar
331
+ # year.
332
+ # - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
333
+ # of the card.
334
+ # - `MONTHLY` - Card will authorize transactions up to spend limit for the
335
+ # trailing month. Month is calculated as this calendar date one month prior.
336
+ # - `TRANSACTION` - Card will authorizate multiple transactions if each individual
337
+ # transaction is under the spend limit.
338
+ # @option params [Symbol, State, nil] :state
339
+ # Card state values:
340
+ #
341
+ # - `OPEN` - Card will approve authorizations (if they match card and account
342
+ # parameters).
343
+ # - `PAUSED` - Card will decline authorizations, but can be resumed at a later
344
+ # time.
345
+ #
346
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
347
+ #
348
+ # @return [Sink::Models::Card]
349
+ def create_aliased_deprecated(params = {}, opts = {})
350
+ req = {
351
+ method: :post,
352
+ path: "/cards",
353
+ body: params,
354
+ headers: {"Content-Type" => "application/json"},
355
+ model: Sink::Models::Card
356
+ }
357
+ @client.request(req, opts)
358
+ end
359
+
360
+ # Endpoint that represents a method that has been marked as deprecated in the
361
+ # stainless config for all languages, but with a different method in go.
362
+ #
363
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
364
+ #
365
+ # @return [nil]
366
+ def deprecated_all_but_go_diff_message(opts = {})
367
+ req = {
368
+ method: :post,
369
+ path: "/deprecations/method_all_but_go_diff_message",
370
+ model: NilClass
371
+ }
372
+ @client.request(req, opts)
373
+ end
374
+
375
+ # Endpoint that represents a method that has been marked as deprecated in the
376
+ # stainless config for all languages, but with a different method in go.
377
+ #
378
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
379
+ #
380
+ # @return [nil]
381
+ def deprecated_all_diff_message(opts = {})
382
+ req = {
383
+ method: :post,
384
+ path: "/deprecations/method_all_but_go_diff_message",
385
+ model: NilClass
386
+ }
387
+ @client.request(req, opts)
388
+ end
389
+
390
+ # Endpoint that represents a method that has been marked as deprecated in the
391
+ # stainless config.
392
+ #
393
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
394
+ #
395
+ # @return [nil]
396
+ def deprecated_method(opts = {})
397
+ req = {
398
+ method: :post,
399
+ path: "/deprecations/method",
400
+ model: NilClass
401
+ }
402
+ @client.request(req, opts)
403
+ end
404
+
405
+ # Endpoint that represents a method that has been marked as deprecated in the
406
+ # stainless config for go only.
407
+ #
408
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
409
+ #
410
+ # @return [nil]
411
+ def deprecated_only_go(opts = {})
412
+ req = {
413
+ method: :post,
414
+ path: "/deprecations/method_only_go",
415
+ model: NilClass
416
+ }
417
+ @client.request(req, opts)
418
+ end
419
+
420
+ # Get card configuration such as spend limit and state.
421
+ #
422
+ # @param card_token [String]
423
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
424
+ #
425
+ # @return [Sink::Models::Card]
426
+ def list_not_paginated(card_token, opts = {})
427
+ req = {
428
+ method: :get,
429
+ path: "/cards/#{card_token}",
430
+ model: Sink::Models::Card
431
+ }
432
+ @client.request(req, opts)
433
+ end
434
+
435
+ # Allow your cardholders to directly add payment cards to the device's digital
436
+ # wallet (e.g. Apple Pay) with one touch from your app.
437
+ #
438
+ # This requires some additional setup and configuration. Please
439
+ # [Contact Us](https://lithic.com/contact) or your Customer Success representative
440
+ # for more information.
441
+ #
442
+ # @param card_token [String] The unique token of the card to add to the device's digital wallet.
443
+ #
444
+ # @param params [Hash{Symbol => Object}] Attributes to send in this request.
445
+ # @option params [String, nil] :account_token Only required for multi-account users. Token identifying the account the card
446
+ # will be associated with. Only applicable if using account holder enrollment. See
447
+ # [Managing Your Program](https://docs.lithic.com/docs/managing-your-program) for
448
+ # more information.
449
+ # @option params [String, nil] :certificate Required for `APPLE_PAY`. Apple's public leaf certificate. Base64 encoded in PEM
450
+ # format with headers `(-----BEGIN CERTIFICATE-----)` and trailers omitted.
451
+ # Provided by the device's wallet.
452
+ # @option params [Symbol, DigitalWallet, nil] :digital_wallet Name of digital wallet provider.
453
+ # @option params [String, nil] :nonce Required for `APPLE_PAY`. Base64 cryptographic nonce provided by the device's
454
+ # wallet.
455
+ # @option params [String, nil] :nonce_signature Required for `APPLE_PAY`. Base64 cryptographic nonce provided by the device's
456
+ # wallet.
457
+ #
458
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
459
+ #
460
+ # @return [Sink::Models::CardProvisionFooResponse]
461
+ def provision_foo(card_token, params = {}, opts = {})
462
+ req = {
463
+ method: :post,
464
+ path: "/cards/#{card_token}/provision",
465
+ body: params,
466
+ headers: {"Content-Type" => "application/json"},
467
+ model: Sink::Models::CardProvisionFooResponse
468
+ }
469
+ @client.request(req, opts)
470
+ end
471
+
472
+ # Initiate print and shipment of a duplicate card.
473
+ #
474
+ # Only applies to cards of type `PHYSICAL` [beta].
475
+ #
476
+ # @param card_token [String]
477
+ #
478
+ # @param params [Hash{Symbol => Object}] Attributes to send in this request.
479
+ # @option params [String, nil] :product_id Specifies the configuration (e.g. physical card art) that the card should be
480
+ # manufactured with, and only applies to cards of type `PHYSICAL` [beta]. This
481
+ # must be configured with Lithic before use.
482
+ # @option params [Symbol, ShippingMethod, nil] :shipping_method Shipping method for the card. Use of options besides `STANDARD` require
483
+ # additional permissions.
484
+ #
485
+ # - `STANDARD` - USPS regular mail or similar international option, with no
486
+ # tracking
487
+ # - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
488
+ # with tracking
489
+ # - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
490
+ # tracking
491
+ # @option params [Sink::Models::ShippingAddress, nil] :shipping_address If omitted, the previous shipping address will be used.
492
+ #
493
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
494
+ #
495
+ # @return [Sink::Models::Card]
496
+ def reissue(card_token, params = {}, opts = {})
497
+ req = {
498
+ method: :post,
499
+ path: "/cards/#{card_token}/reissue",
500
+ body: params,
501
+ headers: {"Content-Type" => "application/json"},
502
+ model: Sink::Models::Card
503
+ }
504
+ @client.request(req, opts)
505
+ end
506
+ end
507
+ end
508
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Casing
6
+ class EEOC
7
+ # @param client [Sink::Client]
8
+ def initialize(client:)
9
+ @client = client
10
+ end
11
+
12
+ # Test case for paginated initialism model
13
+ #
14
+ # @param params [Hash{Symbol => Object}] Attributes to send in this request.
15
+ # @option params [String, nil] :cursor
16
+ # @option params [Integer, nil] :limit
17
+ #
18
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
19
+ #
20
+ # @return [Sink::PageCursor<Sink::Models::EEOC>]
21
+ def list(params = {}, opts = {})
22
+ req = {
23
+ method: :get,
24
+ path: "/casing/eeoc",
25
+ query: params,
26
+ page: Sink::PageCursor,
27
+ model: Sink::Models::EEOC
28
+ }
29
+ @client.request(req, opts)
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Casing
6
+ # @return [Sink::Resources::Casing::EEOC]
7
+ attr_reader :eeoc
8
+
9
+ # @param client [Sink::Client]
10
+ def initialize(client:)
11
+ @client = client
12
+ @eeoc = Sink::Resources::Casing::EEOC.new(client: client)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Clients
6
+ # @param client [Sink::Client]
7
+ def initialize(client:)
8
+ @client = client
9
+ end
10
+
11
+ # @param params [Hash{Symbol => Object}] Attributes to send in this request.
12
+ # @option params [String] :account_token
13
+ # @option params [String] :name
14
+ #
15
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
16
+ #
17
+ # @return [Sink::Models::Client]
18
+ def create(params = {}, opts = {})
19
+ req = {
20
+ method: :post,
21
+ path: "/clients",
22
+ body: params,
23
+ headers: {"Content-Type" => "application/json"},
24
+ model: Sink::Models::Client
25
+ }
26
+ @client.request(req, opts)
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ class Company
6
+ # For paying Stainless $$$
7
+ class Payments
8
+ # @param client [Sink::Client]
9
+ def initialize(client:)
10
+ @client = client
11
+ end
12
+
13
+ # Get a payment that the company made.
14
+ #
15
+ # @param payment_id [String]
16
+ # @param opts [Hash, Sink::RequestOptions] Options to specify HTTP behaviour for this request.
17
+ #
18
+ # @return [Sink::Models::CompanyPayment]
19
+ def retrieve(payment_id, opts = {})
20
+ req = {
21
+ method: :get,
22
+ path: "/company/payments/#{payment_id}",
23
+ model: Sink::Models::CompanyPayment
24
+ }
25
+ @client.request(req, opts)
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sink
4
+ module Resources
5
+ # Stainless API company
6
+ class Company
7
+ # For paying Stainless $$$
8
+ # @return [Sink::Resources::Company::Payments]
9
+ attr_reader :payments
10
+
11
+ # @param client [Sink::Client]
12
+ def initialize(client:)
13
+ @client = client
14
+ @payments = Sink::Resources::Company::Payments.new(client: client)
15
+ end
16
+ end
17
+ end
18
+ end