testttttttttttttttomgomgomg12 0.0.1.pre.alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +128 -0
- data/lib/sink/base_client.rb +383 -0
- data/lib/sink/base_model.rb +203 -0
- data/lib/sink/client.rb +381 -0
- data/lib/sink/fake_page.rb +39 -0
- data/lib/sink/models/allof_base_parent.rb +11 -0
- data/lib/sink/models/allof_multiple_inline_entries.rb +15 -0
- data/lib/sink/models/api_status.rb +11 -0
- data/lib/sink/models/array_float_items_response.rb +6 -0
- data/lib/sink/models/array_missing_items_response.rb +11 -0
- data/lib/sink/models/array_object_items.rb +11 -0
- data/lib/sink/models/array_object_items_response.rb +11 -0
- data/lib/sink/models/array_recursion.rb +6 -0
- data/lib/sink/models/balance.rb +11 -0
- data/lib/sink/models/basic_shared_model_object.rb +15 -0
- data/lib/sink/models/body_param_top_level_all_of_response.rb +20 -0
- data/lib/sink/models/body_param_union_overlapping_prop_response.rb +11 -0
- data/lib/sink/models/card.rb +144 -0
- data/lib/sink/models/card_list_response.rb +26 -0
- data/lib/sink/models/card_provision_foo_response.rb +11 -0
- data/lib/sink/models/child_inlined_response_response.rb +11 -0
- data/lib/sink/models/child_model.rb +21 -0
- data/lib/sink/models/class_.rb +11 -0
- data/lib/sink/models/client.rb +15 -0
- data/lib/sink/models/company.rb +11 -0
- data/lib/sink/models/company_payment.rb +11 -0
- data/lib/sink/models/complex_query_array_query_response.rb +22 -0
- data/lib/sink/models/config_tool_model_ref_from_nested_response_body_response.rb +17 -0
- data/lib/sink/models/currency.rb +23 -0
- data/lib/sink/models/decorator_test_keep_me_response.rb +11 -0
- data/lib/sink/models/docstring_leading_double_quote_response.rb +12 -0
- data/lib/sink/models/docstring_trailing_double_quote_response.rb +22 -0
- data/lib/sink/models/documents.rb +15 -0
- data/lib/sink/models/eeoc.rb +11 -0
- data/lib/sink/models/employment_data.rb +11 -0
- data/lib/sink/models/enum_basic_response.rb +51 -0
- data/lib/sink/models/export.rb +12 -0
- data/lib/sink/models/funding_account.rb +73 -0
- data/lib/sink/models/import.rb +11 -0
- data/lib/sink/models/interface.rb +11 -0
- data/lib/sink/models/keep_this_resource_keep_this_method_response.rb +11 -0
- data/lib/sink/models/make_ambiguous_schemas_explicit_make_ambiguous_schemas_explicit_response.rb +31 -0
- data/lib/sink/models/make_ambiguous_schemas_looser_make_ambiguous_schemas_looser_response.rb +31 -0
- data/lib/sink/models/map_nullable_items_response.rb +19 -0
- data/lib/sink/models/method_config_skipped_tests_all_response.rb +11 -0
- data/lib/sink/models/method_config_skipped_tests_go_response.rb +11 -0
- data/lib/sink/models/method_config_skipped_tests_java_response.rb +11 -0
- data/lib/sink/models/method_config_skipped_tests_kotlin_response.rb +11 -0
- data/lib/sink/models/method_config_skipped_tests_node_and_python_response.rb +11 -0
- data/lib/sink/models/method_config_skipped_tests_node_response.rb +11 -0
- data/lib/sink/models/method_config_skipped_tests_python_response.rb +11 -0
- data/lib/sink/models/method_config_skipped_tests_ruby_response.rb +11 -0
- data/lib/sink/models/model_from_nested_path.rb +30 -0
- data/lib/sink/models/model_from_nested_response_body_ref.rb +11 -0
- data/lib/sink/models/model_from_schemas_ref.rb +11 -0
- data/lib/sink/models/model_from_schemas_ref_openapi_uri.rb +11 -0
- data/lib/sink/models/model_from_schemas_ref_openapi_uri_jmespath.rb +11 -0
- data/lib/sink/models/model_from_schemas_ref_openapi_uri_jsonpath.rb +11 -0
- data/lib/sink/models/model_level_1.rb +15 -0
- data/lib/sink/models/model_level_2.rb +15 -0
- data/lib/sink/models/model_level_3.rb +15 -0
- data/lib/sink/models/model_referenced_in_parent_and_child.rb +11 -0
- data/lib/sink/models/model_with_nested_model.rb +16 -0
- data/lib/sink/models/my_model.rb +11 -0
- data/lib/sink/models/name_child_prop_import_clash_response.rb +21 -0
- data/lib/sink/models/name_properties_common_conflicts_response.rb +59 -0
- data/lib/sink/models/name_properties_illegal_javascript_identifiers_response.rb +6 -0
- data/lib/sink/models/name_response_property_clashes_model_import_response.rb +15 -0
- data/lib/sink/models/name_response_shadows_pydantic_response.rb +15 -0
- data/lib/sink/models/nested_request_model_a.rb +11 -0
- data/lib/sink/models/nested_request_model_b.rb +11 -0
- data/lib/sink/models/nested_request_model_c.rb +17 -0
- data/lib/sink/models/object_missing_items_response.rb +11 -0
- data/lib/sink/models/object_mixed_known_and_unknown_response.rb +11 -0
- data/lib/sink/models/object_multiple_array_properties_same_ref_response.rb +42 -0
- data/lib/sink/models/object_multiple_properties_same_model_response.rb +19 -0
- data/lib/sink/models/object_multiple_properties_same_ref_response.rb +37 -0
- data/lib/sink/models/object_skipped_props.rb +27 -0
- data/lib/sink/models/object_two_dimensional_array_primitive_property_response.rb +23 -0
- data/lib/sink/models/object_with_any_of_null_property.rb +17 -0
- data/lib/sink/models/object_with_child_ref.rb +15 -0
- data/lib/sink/models/object_with_one_of_null_property.rb +17 -0
- data/lib/sink/models/object_with_union_properties.rb +15 -0
- data/lib/sink/models/openapi_format_array_type_one_entry_response.rb +11 -0
- data/lib/sink/models/openapi_format_array_type_one_entry_with_null_response.rb +11 -0
- data/lib/sink/models/openapi_special_used_used_as_property_name_response.rb +11 -0
- data/lib/sink/models/page_cursor_shared_ref_pagination.rb +15 -0
- data/lib/sink/models/parent_model_with_child_ref.rb +19 -0
- data/lib/sink/models/path_param_colon_suffix_response.rb +11 -0
- data/lib/sink/models/path_param_file_extension_response.rb +11 -0
- data/lib/sink/models/path_param_multiple_response.rb +11 -0
- data/lib/sink/models/path_param_query_param_response.rb +11 -0
- data/lib/sink/models/path_param_singular_response.rb +11 -0
- data/lib/sink/models/primitive_strings_response.rb +11 -0
- data/lib/sink/models/private.rb +11 -0
- data/lib/sink/models/public.rb +11 -0
- data/lib/sink/models/recursion_create_envelope_response.rb +11 -0
- data/lib/sink/models/response_allof_simple_response.rb +15 -0
- data/lib/sink/models/response_array_object_with_union_properties_response.rb +6 -0
- data/lib/sink/models/response_array_response_response.rb +6 -0
- data/lib/sink/models/response_missing_required_response.rb +15 -0
- data/lib/sink/models/response_nested_array_response.rb +21 -0
- data/lib/sink/models/response_object_all_properties_response.rb +49 -0
- data/lib/sink/models/response_object_no_properties_response.rb +8 -0
- data/lib/sink/models/response_object_with_additional_properties_prop_response.rb +17 -0
- data/lib/sink/models/response_object_with_heavily_nested_union_response.rb +11 -0
- data/lib/sink/models/response_only_read_only_properties_response.rb +16 -0
- data/lib/sink/models/responses_allof_cross_object.rb +15 -0
- data/lib/sink/models/return_.rb +11 -0
- data/lib/sink/models/root_response.rb +19 -0
- data/lib/sink/models/self_recursion.rb +15 -0
- data/lib/sink/models/shared_cursor_nested_response_prop_meta.rb +18 -0
- data/lib/sink/models/shared_self_recursion.rb +15 -0
- data/lib/sink/models/shipping_address.rb +62 -0
- data/lib/sink/models/simple_allof.rb +20 -0
- data/lib/sink/models/simple_object.rb +19 -0
- data/lib/sink/models/skip_this_resource_i_never_appear_response.rb +11 -0
- data/lib/sink/models/streaming_basic_response.rb +15 -0
- data/lib/sink/models/streaming_nested_params_response.rb +15 -0
- data/lib/sink/models/streaming_no_discriminator_response.rb +15 -0
- data/lib/sink/models/streaming_query_param_discriminator_response.rb +15 -0
- data/lib/sink/models/streaming_with_unrelated_default_param_response.rb +15 -0
- data/lib/sink/models/type_dates_response.rb +27 -0
- data/lib/sink/models/type_datetimes_response.rb +27 -0
- data/lib/sink/models/union_discriminated_variant_a.rb +19 -0
- data/lib/sink/models/union_discriminated_variant_b.rb +19 -0
- data/lib/sink/models/union_response_discriminated_by_property_name_response.rb +6 -0
- data/lib/sink/models/union_response_discriminated_with_basic_mapping_response.rb +6 -0
- data/lib/sink/models/union_type_mixed_types_response.rb +6 -0
- data/lib/sink/models/union_type_nullable_union_response.rb +6 -0
- data/lib/sink/models/union_type_objects_response.rb +6 -0
- data/lib/sink/models/union_type_super_mixed_types_response.rb +6 -0
- data/lib/sink/models/union_type_unknown_variant_response.rb +6 -0
- data/lib/sink/models/version_1_30_name_create_response.rb +11 -0
- data/lib/sink/models/widget.rb +12 -0
- data/lib/sink/models/write_only_response_simple_response.rb +12 -0
- data/lib/sink/page_cursor.rb +49 -0
- data/lib/sink/page_cursor_from_headers.rb +49 -0
- data/lib/sink/page_cursor_id.rb +45 -0
- data/lib/sink/page_cursor_nested_items.rb +65 -0
- data/lib/sink/page_cursor_nested_object_ref.rb +59 -0
- data/lib/sink/page_cursor_shared_ref.rb +59 -0
- data/lib/sink/page_cursor_top_level_array.rb +46 -0
- data/lib/sink/page_cursor_url.rb +46 -0
- data/lib/sink/page_offset.rb +49 -0
- data/lib/sink/page_offset_no_start_field.rb +45 -0
- data/lib/sink/page_offset_total_count.rb +53 -0
- data/lib/sink/page_page_number.rb +53 -0
- data/lib/sink/page_page_number_without_current_page_response.rb +45 -0
- data/lib/sink/pooled_net_requester.rb +63 -0
- data/lib/sink/request_options.rb +84 -0
- data/lib/sink/resources/body_params/objects.rb +31 -0
- data/lib/sink/resources/body_params/unions.rb +31 -0
- data/lib/sink/resources/body_params.rb +475 -0
- data/lib/sink/resources/cards.rb +488 -0
- data/lib/sink/resources/casing/eeoc.rb +32 -0
- data/lib/sink/resources/casing.rb +15 -0
- data/lib/sink/resources/clients.rb +27 -0
- data/lib/sink/resources/company/payments.rb +28 -0
- data/lib/sink/resources/company.rb +17 -0
- data/lib/sink/resources/complex_queries.rb +56 -0
- data/lib/sink/resources/config_tools/parent_with_skip_node_python/child_only_skip_python.rb +96 -0
- data/lib/sink/resources/config_tools/parent_with_skip_node_python.rb +98 -0
- data/lib/sink/resources/config_tools.rb +37 -0
- data/lib/sink/resources/decorator_tests/keep_this_resource.rb +27 -0
- data/lib/sink/resources/decorator_tests/languages.rb +55 -0
- data/lib/sink/resources/decorator_tests/skip_this_resource.rb +26 -0
- data/lib/sink/resources/decorator_tests.rb +36 -0
- data/lib/sink/resources/deeply_nested/level_one/level_two/level_three.rb +31 -0
- data/lib/sink/resources/deeply_nested/level_one/level_two.rb +33 -0
- data/lib/sink/resources/deeply_nested/level_one.rb +31 -0
- data/lib/sink/resources/deeply_nested.rb +15 -0
- data/lib/sink/resources/docstrings.rb +77 -0
- data/lib/sink/resources/empty_body.rb +55 -0
- data/lib/sink/resources/header_params.rb +33 -0
- data/lib/sink/resources/invalid_schemas/arrays.rb +24 -0
- data/lib/sink/resources/invalid_schemas/objects.rb +24 -0
- data/lib/sink/resources/invalid_schemas.rb +19 -0
- data/lib/sink/resources/make_ambiguous_schemas_explicit.rb +24 -0
- data/lib/sink/resources/make_ambiguous_schemas_looser.rb +24 -0
- data/lib/sink/resources/method_config.rb +156 -0
- data/lib/sink/resources/mixed_params/duplicates.rb +73 -0
- data/lib/sink/resources/mixed_params.rb +81 -0
- data/lib/sink/resources/model_referenced_in_parent_and_child/child.rb +24 -0
- data/lib/sink/resources/model_referenced_in_parent_and_child.rb +26 -0
- data/lib/sink/resources/names/can_cause_clashes/employment_data.rb +15 -0
- data/lib/sink/resources/names/can_cause_clashes/response.rb +30 -0
- data/lib/sink/resources/names/can_cause_clashes.rb +22 -0
- data/lib/sink/resources/names/documents.rb +26 -0
- data/lib/sink/resources/names/openapi_specials.rb +24 -0
- data/lib/sink/resources/names/params.rb +47 -0
- data/lib/sink/resources/names/reserved_names/import.rb +29 -0
- data/lib/sink/resources/names/reserved_names/methods.rb +37 -0
- data/lib/sink/resources/names/reserved_names/public/class_.rb +28 -0
- data/lib/sink/resources/names/reserved_names/public/interface.rb +28 -0
- data/lib/sink/resources/names/reserved_names/public/private.rb +28 -0
- data/lib/sink/resources/names/reserved_names/public.rb +38 -0
- data/lib/sink/resources/names/reserved_names.rb +43 -0
- data/lib/sink/resources/names.rb +139 -0
- data/lib/sink/resources/openapi_formats.rb +48 -0
- data/lib/sink/resources/pagination_tests/cursor.rb +32 -0
- data/lib/sink/resources/pagination_tests/items_types.rb +32 -0
- data/lib/sink/resources/pagination_tests/nested_items.rb +32 -0
- data/lib/sink/resources/pagination_tests/offset.rb +70 -0
- data/lib/sink/resources/pagination_tests/schema_types.rb +51 -0
- data/lib/sink/resources/pagination_tests.rb +31 -0
- data/lib/sink/resources/parent/child.rb +28 -0
- data/lib/sink/resources/parent.rb +17 -0
- data/lib/sink/resources/path_params.rb +196 -0
- data/lib/sink/resources/positional_params.rb +219 -0
- data/lib/sink/resources/query_params.rb +157 -0
- data/lib/sink/resources/recursion/shared_responses.rb +24 -0
- data/lib/sink/resources/recursion.rb +61 -0
- data/lib/sink/resources/resource_refs/paginated_model_first_ref.rb +13 -0
- data/lib/sink/resources/resource_refs/paginated_model_second_ref.rb +13 -0
- data/lib/sink/resources/resource_refs/parent/child.rb +29 -0
- data/lib/sink/resources/resource_refs/parent.rb +30 -0
- data/lib/sink/resources/resource_refs.rb +23 -0
- data/lib/sink/resources/resources.rb +24 -0
- data/lib/sink/resources/responses/union_types.rb +91 -0
- data/lib/sink/resources/responses.rb +297 -0
- data/lib/sink/resources/shared_query_params.rb +45 -0
- data/lib/sink/resources/streaming.rb +96 -0
- data/lib/sink/resources/testing.rb +22 -0
- data/lib/sink/resources/tests.rb +24 -0
- data/lib/sink/resources/tools.rb +30 -0
- data/lib/sink/resources/types/allofs.rb +13 -0
- data/lib/sink/resources/types/arrays.rb +57 -0
- data/lib/sink/resources/types/enums.rb +86 -0
- data/lib/sink/resources/types/maps.rb +27 -0
- data/lib/sink/resources/types/objects.rb +98 -0
- data/lib/sink/resources/types/primitives.rb +31 -0
- data/lib/sink/resources/types/read_only_params.rb +31 -0
- data/lib/sink/resources/types/unions.rb +115 -0
- data/lib/sink/resources/types/write_only_responses.rb +26 -0
- data/lib/sink/resources/types.rb +90 -0
- data/lib/sink/resources/undocumented_resource.rb +44 -0
- data/lib/sink/resources/version_1_30_names.rb +38 -0
- data/lib/sink/resources/widgets.rb +28 -0
- data/lib/sink/util.rb +78 -0
- data/lib/sink/version.rb +5 -0
- data/lib/sink.rb +253 -0
- metadata +301 -0
@@ -0,0 +1,15 @@
|
|
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
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,20 @@
|
|
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
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,144 @@
|
|
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 [DateTime]
|
14
|
+
required :created, DateTime
|
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
|
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
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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
|
13
|
+
|
14
|
+
class InlineObject < BaseModel
|
15
|
+
# @!attribute [rw] foo
|
16
|
+
# @return [Float]
|
17
|
+
optional :foo, Float
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,15 @@
|
|
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
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Sink
|
4
|
+
module Models
|
5
|
+
class ComplexQueryArrayQueryResponse < BaseModel
|
6
|
+
# @!attribute [rw] include_
|
7
|
+
# @return [Array<Symbol, Sink::Models::ComplexQueryArrayQueryResponse::Include>]
|
8
|
+
required :include_,
|
9
|
+
Sink::ArrayOf.new(
|
10
|
+
enum: lambda {
|
11
|
+
Sink::Models::ComplexQueryArrayQueryResponse::Include
|
12
|
+
}
|
13
|
+
)
|
14
|
+
|
15
|
+
class Include < Sink::Enum
|
16
|
+
USERS = :users
|
17
|
+
USERS_COMMENTS = :"users.comments"
|
18
|
+
USERS_POSTS = :"users.posts"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Sink
|
4
|
+
module Models
|
5
|
+
class ConfigToolModelRefFromNestedResponseBodyResponse < BaseModel
|
6
|
+
# @!attribute [rw] foo
|
7
|
+
# @return [Sink::Models::ConfigToolModelRefFromNestedResponseBodyResponse::Foo]
|
8
|
+
required :foo, -> { Sink::Models::ConfigToolModelRefFromNestedResponseBodyResponse::Foo }
|
9
|
+
|
10
|
+
class Foo < BaseModel
|
11
|
+
# @!attribute [rw] bar
|
12
|
+
# @return [Sink::Models::ModelFromNestedResponseBodyRef]
|
13
|
+
required :bar, -> { Sink::Models::ModelFromNestedResponseBodyRef }
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Sink
|
4
|
+
module Models
|
5
|
+
# This is my description for the Currency enum
|
6
|
+
class Currency < Sink::Enum
|
7
|
+
USD = :USD
|
8
|
+
GBP = :GBP
|
9
|
+
PAB = :PAB
|
10
|
+
AED = :AED
|
11
|
+
AFN = :AFN
|
12
|
+
ALL = :ALL
|
13
|
+
AMD = :AMD
|
14
|
+
ANG = :ANG
|
15
|
+
AOA = :AOA
|
16
|
+
ARS = :ARS
|
17
|
+
AUD = :AUD
|
18
|
+
AWG = :AWG
|
19
|
+
AZN = :AZN
|
20
|
+
BAM = :BAM
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Sink
|
4
|
+
module Models
|
5
|
+
class DocstringLeadingDoubleQuoteResponse < BaseModel
|
6
|
+
# @!attribute [rw] prop
|
7
|
+
# "This description starts with a double quote
|
8
|
+
# @return [Boolean]
|
9
|
+
required :prop, Sink::BooleanModel
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Sink
|
4
|
+
module Models
|
5
|
+
class DocstringTrailingDoubleQuoteResponse < BaseModel
|
6
|
+
# @!attribute [rw] prop
|
7
|
+
# This description ends in a "
|
8
|
+
# @return [Boolean]
|
9
|
+
required :prop, Sink::BooleanModel
|
10
|
+
|
11
|
+
# @!attribute [rw] prop2
|
12
|
+
# This description ends in a \"
|
13
|
+
# @return [Boolean]
|
14
|
+
required :prop2, Sink::BooleanModel
|
15
|
+
|
16
|
+
# @!attribute [rw] prop3
|
17
|
+
# This description ends in a \\"
|
18
|
+
# @return [Boolean]
|
19
|
+
required :prop3, Sink::BooleanModel
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Sink
|
4
|
+
module Models
|
5
|
+
class Documents < BaseModel
|
6
|
+
# @!attribute [rw] prop1
|
7
|
+
# @return [String]
|
8
|
+
required :prop1, String
|
9
|
+
|
10
|
+
# @!attribute [rw] prop2
|
11
|
+
# @return [Boolean]
|
12
|
+
required :prop2, Sink::BooleanModel
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Sink
|
4
|
+
module Models
|
5
|
+
class EnumBasicResponse < BaseModel
|
6
|
+
# @!attribute [rw] currency
|
7
|
+
# This is my description for the Currency enum
|
8
|
+
# @return [Symbol, Sink::Models::Currency]
|
9
|
+
required :currency, enum: -> { Sink::Models::Currency }
|
10
|
+
|
11
|
+
# @!attribute [rw] enum_with_dupes
|
12
|
+
# @return [Symbol, Sink::Models::EnumBasicResponse::EnumWithDupes]
|
13
|
+
required :enum_with_dupes, enum: -> { Sink::Models::EnumBasicResponse::EnumWithDupes }
|
14
|
+
|
15
|
+
# @!attribute [rw] my_problematic_enum
|
16
|
+
# @return [Symbol, Sink::Models::EnumBasicResponse::MyProblematicEnum]
|
17
|
+
required :my_problematic_enum, enum: -> { Sink::Models::EnumBasicResponse::MyProblematicEnum }
|
18
|
+
|
19
|
+
# @!attribute [rw] number_enum
|
20
|
+
# @return [Integer]
|
21
|
+
required :number_enum, enum: -> { Sink::Models::EnumBasicResponse::NumberEnum }
|
22
|
+
|
23
|
+
# @!attribute [rw] uses_const
|
24
|
+
# @return [Symbol, Sink::Models::EnumBasicResponse::UsesConst]
|
25
|
+
required :uses_const, enum: -> { Sink::Models::EnumBasicResponse::UsesConst }
|
26
|
+
|
27
|
+
class EnumWithDupes < Sink::Enum
|
28
|
+
USER = :user
|
29
|
+
ASSISTANT = :assistant
|
30
|
+
end
|
31
|
+
|
32
|
+
class MyProblematicEnum < Sink::Enum
|
33
|
+
NUMBER_123_FOO = :"123_FOO"
|
34
|
+
NUMBER_30 = :"30%"
|
35
|
+
STAR = :*
|
36
|
+
EMPTY = :""
|
37
|
+
end
|
38
|
+
|
39
|
+
class NumberEnum < Sink::Enum
|
40
|
+
TWO_HUNDRED = 200
|
41
|
+
TWO_HUNDRED_ONE = 201
|
42
|
+
FOUR_HUNDRED_FOUR = 404
|
43
|
+
FOUR_HUNDRED_THREE = 403
|
44
|
+
end
|
45
|
+
|
46
|
+
class UsesConst < Sink::Enum
|
47
|
+
MY_CONST_ENUM_VALUE = :my_const_enum_value
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Sink
|
4
|
+
module Models
|
5
|
+
class Export < BaseModel
|
6
|
+
# @!attribute [rw] export
|
7
|
+
# test reserved word in response property
|
8
|
+
# @return [Array<Sink::Models::Return>]
|
9
|
+
required :export, Sink::ArrayOf.new(-> { Sink::Models::Return })
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Sink
|
4
|
+
module Models
|
5
|
+
class FundingAccount < BaseModel
|
6
|
+
# @!attribute [rw] token
|
7
|
+
# A globally unique identifier for this FundingAccount.
|
8
|
+
# @return [String]
|
9
|
+
required :token, String
|
10
|
+
|
11
|
+
# @!attribute [rw] created
|
12
|
+
# An ISO 8601 string representing when this funding source was added to the Lithic account. This may be `null`. UTC time zone.
|
13
|
+
# @return [DateTime]
|
14
|
+
required :created, DateTime
|
15
|
+
|
16
|
+
# @!attribute [rw] last_four
|
17
|
+
# The last 4 digits of the account (e.g. bank account, debit card) associated with this FundingAccount. This may be null.
|
18
|
+
# @return [String]
|
19
|
+
required :last_four, String
|
20
|
+
|
21
|
+
# @!attribute [rw] state
|
22
|
+
# State of funding source.
|
23
|
+
#
|
24
|
+
# Funding source states:
|
25
|
+
# * `ENABLED` - The funding account is available to use for card creation and transactions.
|
26
|
+
# * `PENDING` - The funding account is still being verified e.g. bank micro-deposits verification.
|
27
|
+
# * `DELETED` - The founding account has been deleted.
|
28
|
+
#
|
29
|
+
# @return [Symbol, Sink::Models::FundingAccount::State]
|
30
|
+
required :state, enum: -> { Sink::Models::FundingAccount::State }
|
31
|
+
|
32
|
+
# @!attribute [rw] type
|
33
|
+
# Types of funding source:
|
34
|
+
# * `DEPOSITORY_CHECKING` - Bank checking account.
|
35
|
+
# * `DEPOSITORY_SAVINGS` - Bank savings account.
|
36
|
+
#
|
37
|
+
# @return [Symbol, Sink::Models::FundingAccount::Type]
|
38
|
+
required :type, enum: -> { Sink::Models::FundingAccount::Type }
|
39
|
+
|
40
|
+
# @!attribute [rw] account_name
|
41
|
+
# Account name identifying the funding source. This may be `null`.
|
42
|
+
# @return [String]
|
43
|
+
optional :account_name, String
|
44
|
+
|
45
|
+
# @!attribute [rw] nickname
|
46
|
+
# The nickname given to the `FundingAccount` or `null` if it has no nickname.
|
47
|
+
# @return [String]
|
48
|
+
optional :nickname, String
|
49
|
+
|
50
|
+
# State of funding source.
|
51
|
+
#
|
52
|
+
# Funding source states:
|
53
|
+
# * `ENABLED` - The funding account is available to use for card creation and transactions.
|
54
|
+
# * `PENDING` - The funding account is still being verified e.g. bank micro-deposits verification.
|
55
|
+
# * `DELETED` - The founding account has been deleted.
|
56
|
+
#
|
57
|
+
class State < Sink::Enum
|
58
|
+
ENABLED = :ENABLED
|
59
|
+
PENDING = :PENDING
|
60
|
+
DELETED = :DELETED
|
61
|
+
end
|
62
|
+
|
63
|
+
# Types of funding source:
|
64
|
+
# * `DEPOSITORY_CHECKING` - Bank checking account.
|
65
|
+
# * `DEPOSITORY_SAVINGS` - Bank savings account.
|
66
|
+
#
|
67
|
+
class Type < Sink::Enum
|
68
|
+
DEPOSITORY_CHECKING = :DEPOSITORY_CHECKING
|
69
|
+
DEPOSITORY_SAVINGS = :DEPOSITORY_SAVINGS
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|