wesley-key-sdk 3.0.7 → 4.2.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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +168 -131
  3. data/bin/console +4 -4
  4. data/lib/swagger_petstore_open_api30/api_helper.rb +10 -0
  5. data/lib/{cypress_test_api/controllers/base_controller.rb → swagger_petstore_open_api30/apis/base_api.rb} +17 -10
  6. data/lib/swagger_petstore_open_api30/apis/pet_api.rb +287 -0
  7. data/lib/swagger_petstore_open_api30/apis/store_api.rb +131 -0
  8. data/lib/swagger_petstore_open_api30/apis/user_api.rb +233 -0
  9. data/lib/swagger_petstore_open_api30/client.rb +95 -0
  10. data/lib/{cypress_test_api → swagger_petstore_open_api30}/configuration.rb +72 -47
  11. data/lib/{cypress_test_api → swagger_petstore_open_api30}/exceptions/api_exception.rb +4 -4
  12. data/lib/swagger_petstore_open_api30/exceptions/oauth_provider_exception.rb +64 -0
  13. data/lib/swagger_petstore_open_api30/http/api_response.rb +19 -0
  14. data/lib/swagger_petstore_open_api30/http/auth/api_key.rb +52 -0
  15. data/lib/swagger_petstore_open_api30/http/auth/petstore_auth.rb +112 -0
  16. data/lib/swagger_petstore_open_api30/http/http_call_back.rb +10 -0
  17. data/lib/swagger_petstore_open_api30/http/http_method_enum.rb +10 -0
  18. data/lib/swagger_petstore_open_api30/http/http_request.rb +10 -0
  19. data/lib/swagger_petstore_open_api30/http/http_response.rb +10 -0
  20. data/lib/{cypress_test_api → swagger_petstore_open_api30}/http/proxy_settings.rb +4 -4
  21. data/lib/swagger_petstore_open_api30/logging/configuration/api_logging_configuration.rb +186 -0
  22. data/lib/swagger_petstore_open_api30/logging/sdk_logger.rb +17 -0
  23. data/lib/swagger_petstore_open_api30/models/api_response.rb +118 -0
  24. data/lib/{cypress_test_api → swagger_petstore_open_api30}/models/base_model.rb +4 -4
  25. data/lib/swagger_petstore_open_api30/models/category.rb +105 -0
  26. data/lib/swagger_petstore_open_api30/models/oauth_provider_error.rb +62 -0
  27. data/lib/swagger_petstore_open_api30/models/oauth_scope_petstore_auth.rb +36 -0
  28. data/lib/swagger_petstore_open_api30/models/oauth_token.rb +125 -0
  29. data/lib/swagger_petstore_open_api30/models/order.rb +167 -0
  30. data/lib/swagger_petstore_open_api30/models/order_status.rb +40 -0
  31. data/lib/swagger_petstore_open_api30/models/pet.rb +168 -0
  32. data/lib/swagger_petstore_open_api30/models/pet_status.rb +40 -0
  33. data/lib/swagger_petstore_open_api30/models/tag.rb +105 -0
  34. data/lib/swagger_petstore_open_api30/models/user.rb +182 -0
  35. data/lib/swagger_petstore_open_api30/utilities/date_time_helper.rb +11 -0
  36. data/lib/{cypress_test_api → swagger_petstore_open_api30}/utilities/file_wrapper.rb +4 -4
  37. data/lib/swagger_petstore_open_api30/utilities/xml_utilities.rb +12 -0
  38. data/lib/swagger_petstore_open_api30.rb +62 -0
  39. metadata +37 -64
  40. data/lib/cypress_test_api/api_helper.rb +0 -10
  41. data/lib/cypress_test_api/client.rb +0 -58
  42. data/lib/cypress_test_api/controllers/api_controller.rb +0 -102
  43. data/lib/cypress_test_api/http/http_call_back.rb +0 -10
  44. data/lib/cypress_test_api/http/http_method_enum.rb +0 -10
  45. data/lib/cypress_test_api/http/http_request.rb +0 -10
  46. data/lib/cypress_test_api/http/http_response.rb +0 -10
  47. data/lib/cypress_test_api/models/custom_enum.rb +0 -40
  48. data/lib/cypress_test_api/models/deer.rb +0 -68
  49. data/lib/cypress_test_api/models/item.rb +0 -166
  50. data/lib/cypress_test_api/models/item_response.rb +0 -80
  51. data/lib/cypress_test_api/models/lion.rb +0 -68
  52. data/lib/cypress_test_api/models/message.rb +0 -68
  53. data/lib/cypress_test_api/models/message2.rb +0 -71
  54. data/lib/cypress_test_api/models/multiple_arrays_request.rb +0 -70
  55. data/lib/cypress_test_api/models/nac_tag.rb +0 -265
  56. data/lib/cypress_test_api/models/o_auth_scope_o_auth_acg_enum.rb +0 -44
  57. data/lib/cypress_test_api/models/response_http400.rb +0 -62
  58. data/lib/cypress_test_api/models/response_http404.rb +0 -62
  59. data/lib/cypress_test_api/models/status11_enum.rb +0 -40
  60. data/lib/cypress_test_api/models/status1_enum.rb +0 -40
  61. data/lib/cypress_test_api/models/status_enum.rb +0 -40
  62. data/lib/cypress_test_api/models/tokens_request.rb +0 -60
  63. data/lib/cypress_test_api/utilities/date_time_helper.rb +0 -11
  64. data/lib/cypress_test_api.rb +0 -55
  65. data/test/controllers/controller_test_base.rb +0 -23
  66. data/test/controllers/test_api_controller.rb +0 -40
  67. data/test/http_response_catcher.rb +0 -19
@@ -0,0 +1,11 @@
1
+ # swagger_petstore_open_api30
2
+ #
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ module SwaggerPetstoreOpenApi30
8
+ # A utility that supports dateTime conversion to different formats
9
+ class DateTimeHelper < CoreLibrary::DateTimeHelper
10
+ end
11
+ end
@@ -1,9 +1,9 @@
1
- # cypress_test_api
1
+ # swagger_petstore_open_api30
2
2
  #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
- module CypressTestApi
6
+ module SwaggerPetstoreOpenApi30
7
7
  # A utility to allow users to set the content-type for files
8
8
  class FileWrapper < CoreLibrary::FileWrapper
9
9
  # The constructor.
@@ -0,0 +1,12 @@
1
+ # swagger_petstore_open_api30
2
+ #
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ require 'nokogiri'
7
+
8
+ module SwaggerPetstoreOpenApi30
9
+ # A utility class for handling xml parsing.
10
+ class XmlUtilities < CoreLibrary::XmlHelper
11
+ end
12
+ end
@@ -0,0 +1,62 @@
1
+ # swagger_petstore_open_api30
2
+ #
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ require 'json'
8
+
9
+ require 'apimatic_core_interfaces'
10
+ require 'apimatic_core'
11
+ require 'apimatic_faraday_client_adapter'
12
+
13
+ require_relative 'swagger_petstore_open_api30/api_helper'
14
+ require_relative 'swagger_petstore_open_api30/client'
15
+
16
+ # Utilities
17
+ require_relative 'swagger_petstore_open_api30/utilities/file_wrapper'
18
+ require_relative 'swagger_petstore_open_api30/utilities/date_time_helper'
19
+ require_relative 'swagger_petstore_open_api30/utilities/xml_utilities'
20
+
21
+ # Http
22
+ require_relative 'swagger_petstore_open_api30/http/api_response'
23
+ require_relative 'swagger_petstore_open_api30/http/http_call_back'
24
+ require_relative 'swagger_petstore_open_api30/http/http_method_enum'
25
+ require_relative 'swagger_petstore_open_api30/http/http_request'
26
+ require_relative 'swagger_petstore_open_api30/http/http_response'
27
+ require_relative 'swagger_petstore_open_api30/http/proxy_settings'
28
+
29
+
30
+ # Logger
31
+ require_relative 'swagger_petstore_open_api30/logging/configuration/' \
32
+ 'api_logging_configuration'
33
+ require_relative 'swagger_petstore_open_api30/logging/sdk_logger'
34
+ require_relative 'swagger_petstore_open_api30/http/auth/petstore_auth'
35
+ require_relative 'swagger_petstore_open_api30/http/auth/api_key'
36
+
37
+ # Models
38
+ require_relative 'swagger_petstore_open_api30/models/base_model'
39
+ require_relative 'swagger_petstore_open_api30/models/order'
40
+ require_relative 'swagger_petstore_open_api30/models/category'
41
+ require_relative 'swagger_petstore_open_api30/models/user'
42
+ require_relative 'swagger_petstore_open_api30/models/tag'
43
+ require_relative 'swagger_petstore_open_api30/models/pet'
44
+ require_relative 'swagger_petstore_open_api30/models/api_response'
45
+ require_relative 'swagger_petstore_open_api30/models/oauth_token'
46
+ require_relative 'swagger_petstore_open_api30/models/pet_status'
47
+ require_relative 'swagger_petstore_open_api30/models/order_status'
48
+ require_relative 'swagger_petstore_open_api30/models/oauth_provider_error'
49
+ require_relative 'swagger_petstore_open_api30/models/oauth_scope_petstore_auth'
50
+
51
+ # Exceptions
52
+ require_relative 'swagger_petstore_open_api30/exceptions/api_exception'
53
+ require_relative 'swagger_petstore_open_api30/exceptions/' \
54
+ 'oauth_provider_exception'
55
+
56
+ require_relative 'swagger_petstore_open_api30/configuration'
57
+
58
+ # Controllers
59
+ require_relative 'swagger_petstore_open_api30/apis/base_api'
60
+ require_relative 'swagger_petstore_open_api30/apis/pet_api'
61
+ require_relative 'swagger_petstore_open_api30/apis/store_api'
62
+ require_relative 'swagger_petstore_open_api30/apis/user_api'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wesley-key-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.7
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenyon Jacobs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-24 00:00:00.000000000 Z
11
+ date: 2026-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces
@@ -52,34 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.1.6
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 5.24.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 5.24.0
69
- - !ruby/object:Gem::Dependency
70
- name: minitest-proveit
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.0'
83
55
  description: Omnis nisi cumque si
84
56
  email:
85
57
  - goro@mailinator.com
@@ -90,40 +62,41 @@ files:
90
62
  - LICENSE
91
63
  - README.md
92
64
  - bin/console
93
- - lib/cypress_test_api.rb
94
- - lib/cypress_test_api/api_helper.rb
95
- - lib/cypress_test_api/client.rb
96
- - lib/cypress_test_api/configuration.rb
97
- - lib/cypress_test_api/controllers/api_controller.rb
98
- - lib/cypress_test_api/controllers/base_controller.rb
99
- - lib/cypress_test_api/exceptions/api_exception.rb
100
- - lib/cypress_test_api/http/http_call_back.rb
101
- - lib/cypress_test_api/http/http_method_enum.rb
102
- - lib/cypress_test_api/http/http_request.rb
103
- - lib/cypress_test_api/http/http_response.rb
104
- - lib/cypress_test_api/http/proxy_settings.rb
105
- - lib/cypress_test_api/models/base_model.rb
106
- - lib/cypress_test_api/models/custom_enum.rb
107
- - lib/cypress_test_api/models/deer.rb
108
- - lib/cypress_test_api/models/item.rb
109
- - lib/cypress_test_api/models/item_response.rb
110
- - lib/cypress_test_api/models/lion.rb
111
- - lib/cypress_test_api/models/message.rb
112
- - lib/cypress_test_api/models/message2.rb
113
- - lib/cypress_test_api/models/multiple_arrays_request.rb
114
- - lib/cypress_test_api/models/nac_tag.rb
115
- - lib/cypress_test_api/models/o_auth_scope_o_auth_acg_enum.rb
116
- - lib/cypress_test_api/models/response_http400.rb
117
- - lib/cypress_test_api/models/response_http404.rb
118
- - lib/cypress_test_api/models/status11_enum.rb
119
- - lib/cypress_test_api/models/status1_enum.rb
120
- - lib/cypress_test_api/models/status_enum.rb
121
- - lib/cypress_test_api/models/tokens_request.rb
122
- - lib/cypress_test_api/utilities/date_time_helper.rb
123
- - lib/cypress_test_api/utilities/file_wrapper.rb
124
- - test/controllers/controller_test_base.rb
125
- - test/controllers/test_api_controller.rb
126
- - test/http_response_catcher.rb
65
+ - lib/swagger_petstore_open_api30.rb
66
+ - lib/swagger_petstore_open_api30/api_helper.rb
67
+ - lib/swagger_petstore_open_api30/apis/base_api.rb
68
+ - lib/swagger_petstore_open_api30/apis/pet_api.rb
69
+ - lib/swagger_petstore_open_api30/apis/store_api.rb
70
+ - lib/swagger_petstore_open_api30/apis/user_api.rb
71
+ - lib/swagger_petstore_open_api30/client.rb
72
+ - lib/swagger_petstore_open_api30/configuration.rb
73
+ - lib/swagger_petstore_open_api30/exceptions/api_exception.rb
74
+ - lib/swagger_petstore_open_api30/exceptions/oauth_provider_exception.rb
75
+ - lib/swagger_petstore_open_api30/http/api_response.rb
76
+ - lib/swagger_petstore_open_api30/http/auth/api_key.rb
77
+ - lib/swagger_petstore_open_api30/http/auth/petstore_auth.rb
78
+ - lib/swagger_petstore_open_api30/http/http_call_back.rb
79
+ - lib/swagger_petstore_open_api30/http/http_method_enum.rb
80
+ - lib/swagger_petstore_open_api30/http/http_request.rb
81
+ - lib/swagger_petstore_open_api30/http/http_response.rb
82
+ - lib/swagger_petstore_open_api30/http/proxy_settings.rb
83
+ - lib/swagger_petstore_open_api30/logging/configuration/api_logging_configuration.rb
84
+ - lib/swagger_petstore_open_api30/logging/sdk_logger.rb
85
+ - lib/swagger_petstore_open_api30/models/api_response.rb
86
+ - lib/swagger_petstore_open_api30/models/base_model.rb
87
+ - lib/swagger_petstore_open_api30/models/category.rb
88
+ - lib/swagger_petstore_open_api30/models/oauth_provider_error.rb
89
+ - lib/swagger_petstore_open_api30/models/oauth_scope_petstore_auth.rb
90
+ - lib/swagger_petstore_open_api30/models/oauth_token.rb
91
+ - lib/swagger_petstore_open_api30/models/order.rb
92
+ - lib/swagger_petstore_open_api30/models/order_status.rb
93
+ - lib/swagger_petstore_open_api30/models/pet.rb
94
+ - lib/swagger_petstore_open_api30/models/pet_status.rb
95
+ - lib/swagger_petstore_open_api30/models/tag.rb
96
+ - lib/swagger_petstore_open_api30/models/user.rb
97
+ - lib/swagger_petstore_open_api30/utilities/date_time_helper.rb
98
+ - lib/swagger_petstore_open_api30/utilities/file_wrapper.rb
99
+ - lib/swagger_petstore_open_api30/utilities/xml_utilities.rb
127
100
  homepage: https://www.halefokodaqiby.com
128
101
  licenses:
129
102
  - MIT
@@ -1,10 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- module CypressTestApi
7
- # API utility class
8
- class APIHelper < CoreLibrary::ApiHelper
9
- end
10
- end
@@ -1,58 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- module CypressTestApi
7
- # cypress_test_api client class.
8
- class Client
9
- include CoreLibrary
10
- attr_reader :config
11
-
12
- def user_agent_detail
13
- config.user_agent_detail
14
- end
15
-
16
- # Access to client controller.
17
- # @return [APIController] Returns the controller instance.
18
- def client
19
- @client ||= APIController.new @global_configuration
20
- end
21
-
22
- def initialize(
23
- connection: nil, adapter: :net_http_persistent, timeout: 60,
24
- max_retries: 0, retry_interval: 1, backoff_factor: 2,
25
- retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
26
- retry_methods: %i[get put], http_callback: nil, proxy_settings: nil,
27
- environment: Environment::PRODUCTION, default_host: 'www.example.com',
28
- config: nil
29
- )
30
- @config = if config.nil?
31
- Configuration.new(connection: connection, adapter: adapter,
32
- timeout: timeout, max_retries: max_retries,
33
- retry_interval: retry_interval,
34
- backoff_factor: backoff_factor,
35
- retry_statuses: retry_statuses,
36
- retry_methods: retry_methods,
37
- http_callback: http_callback,
38
- proxy_settings: proxy_settings,
39
- environment: environment,
40
- default_host: default_host)
41
- else
42
- config
43
- end
44
-
45
- @global_configuration = GlobalConfiguration.new(client_configuration: @config)
46
- .base_uri_executor(@config.method(:get_base_uri))
47
- .global_errors(BaseController::GLOBAL_ERRORS)
48
- .user_agent(BaseController.user_agent)
49
- end
50
-
51
- # Creates a client directly from environment variables.
52
- def self.from_env(**overrides)
53
- default_config = Configuration.build_default_config_from_env
54
- new_config = default_config.clone_with(**overrides)
55
- new(config: new_config)
56
- end
57
- end
58
- end
@@ -1,102 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- module CypressTestApi
7
- # APIController
8
- class APIController < BaseController
9
- # Creates a new resource in the system.
10
- # @param [Status11Enum] status Required parameter: The status of the items
11
- # to filter by.
12
- # @param [Item] body Optional parameter: Custom model with additional
13
- # properties
14
- # @return [Object] Response from the API call.
15
- def createanitem(status,
16
- body: nil)
17
- @api_call
18
- .request(new_request_builder(HttpMethodEnum::POST,
19
- '/items/{status}',
20
- Server::DEFAULT)
21
- .template_param(new_parameter(status, key: 'status')
22
- .should_encode(true))
23
- .header_param(new_parameter('application/json', key: 'Content-Type'))
24
- .body_param(new_parameter(body))
25
- .header_param(new_parameter('application/json', key: 'accept'))
26
- .body_serializer(proc do |param| param.to_json unless param.nil? end))
27
- .response(new_response_handler
28
- .deserializer(APIHelper.method(:json_deserialize))
29
- .local_error('400',
30
- 'Bad Syntax',
31
- APIException)
32
- .local_error('401',
33
- 'Unauthorized',
34
- APIException)
35
- .local_error('403',
36
- 'Permission Denied',
37
- APIException))
38
- .execute
39
- end
40
-
41
- # TODO: type endpoint description here
42
- # @param [String] id Required parameter: The ID of the item to retrieve
43
- # @param [String] value Required parameter: The value of the item to
44
- # retrieve
45
- # @return [Item] Response from the API call.
46
- def getanitemby_id(id,
47
- value)
48
- @api_call
49
- .request(new_request_builder(HttpMethodEnum::GET,
50
- '/items/{id}',
51
- Server::DEFAULT)
52
- .template_param(new_parameter(id, key: 'id')
53
- .should_encode(true))
54
- .query_param(new_parameter(value, key: 'value'))
55
- .header_param(new_parameter('application/json', key: 'accept')))
56
- .response(new_response_handler
57
- .deserializer(APIHelper.method(:custom_type_deserializer))
58
- .deserialize_into(Item.method(:from_hash)))
59
- .execute
60
- end
61
-
62
- # Generates a new OAuth token with the specified scopes.
63
- # @param [TokensRequest] body Optional parameter: TODO: type description
64
- # here
65
- # @return [void] Response from the API call.
66
- def create_o_auth_token(body: nil)
67
- @api_call
68
- .request(new_request_builder(HttpMethodEnum::POST,
69
- '/tokens',
70
- Server::DEFAULT)
71
- .header_param(new_parameter('application/json', key: 'Content-Type'))
72
- .body_param(new_parameter(body))
73
- .body_serializer(proc do |param| param.to_json unless param.nil? end))
74
- .response(new_response_handler
75
- .is_response_void(true)
76
- .local_error('400',
77
- 'Bad request',
78
- APIException))
79
- .execute
80
- end
81
-
82
- # This endpoint accepts a complex structure with multiple arrays.
83
- # @param [MultipleArraysRequest] body Optional parameter: TODO: type
84
- # description here
85
- # @return [void] Response from the API call.
86
- def test_endpointwith_arrays(body: nil)
87
- @api_call
88
- .request(new_request_builder(HttpMethodEnum::POST,
89
- '/multiple-arrays',
90
- Server::DEFAULT)
91
- .header_param(new_parameter('application/json', key: 'Content-Type'))
92
- .body_param(new_parameter(body))
93
- .body_serializer(proc do |param| param.to_json unless param.nil? end))
94
- .response(new_response_handler
95
- .is_response_void(true)
96
- .local_error('400',
97
- 'Bad request',
98
- APIException))
99
- .execute
100
- end
101
- end
102
- end
@@ -1,10 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- module CypressTestApi
7
- # HttpCallBack allows defining callables for pre and post API calls.
8
- class HttpCallBack < CoreLibrary::HttpCallback
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- module CypressTestApi
7
- # HTTP Methods Enumeration.
8
- class HttpMethodEnum < CoreLibrary::HttpMethod
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- module CypressTestApi
7
- # Represents a single Http Request.
8
- class HttpRequest < CoreLibrary::HttpRequest
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- module CypressTestApi
7
- # Http response received.
8
- class HttpResponse < CoreLibrary::HttpResponse
9
- end
10
- end
@@ -1,40 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- module CypressTestApi
7
- # CustomEnum.
8
- class CustomEnum
9
- CUSTOM_ENUM = [
10
- # TODO: Write general description for VALUE1
11
- VALUE1 = 'VALUE1'.freeze,
12
-
13
- # TODO: Write general description for VALUE2
14
- VALUE2 = 'VALUE2'.freeze,
15
-
16
- # TODO: Write general description for VALUE3
17
- VALUE3 = 'VALUE3'.freeze
18
- ].freeze
19
-
20
- def self.validate(value)
21
- return false if value.nil?
22
-
23
- CUSTOM_ENUM.include?(value)
24
- end
25
-
26
- def self.from_value(value, default_value = VALUE1)
27
- return default_value if value.nil?
28
-
29
- str = value.to_s.strip
30
-
31
- case str.downcase
32
- when 'value1' then VALUE1
33
- when 'value2' then VALUE2
34
- when 'value3' then VALUE3
35
- else
36
- default_value
37
- end
38
- end
39
- end
40
- end
@@ -1,68 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- module CypressTestApi
7
- # Deer Model.
8
- class Deer < BaseModel
9
- SKIP = Object.new
10
- private_constant :SKIP
11
-
12
- # TODO: Write general description for this method
13
- # @return [String]
14
- attr_accessor :name
15
-
16
- # TODO: Write general description for this method
17
- # @return [String]
18
- attr_accessor :type
19
-
20
- # A mapping from model property names to API property names.
21
- def self.names
22
- @_hash = {} if @_hash.nil?
23
- @_hash['name'] = 'name'
24
- @_hash['type'] = 'type'
25
- @_hash
26
- end
27
-
28
- # An array for optional fields
29
- def self.optionals
30
- []
31
- end
32
-
33
- # An array for nullable fields
34
- def self.nullables
35
- []
36
- end
37
-
38
- def initialize(name = nil, type = nil)
39
- @name = name
40
- @type = type
41
- end
42
-
43
- # Creates an instance of the object from a hash.
44
- def self.from_hash(hash)
45
- return nil unless hash
46
-
47
- # Extract variables from the hash.
48
- name = hash.key?('name') ? hash['name'] : nil
49
- type = hash.key?('type') ? hash['type'] : nil
50
-
51
- # Create object from extracted values.
52
- Deer.new(name,
53
- type)
54
- end
55
-
56
- # Provides a human-readable string representation of the object.
57
- def to_s
58
- class_name = self.class.name.split('::').last
59
- "<#{class_name} name: #{@name}, type: #{@type}>"
60
- end
61
-
62
- # Provides a debugging-friendly string with detailed object information.
63
- def inspect
64
- class_name = self.class.name.split('::').last
65
- "<#{class_name} name: #{@name.inspect}, type: #{@type.inspect}>"
66
- end
67
- end
68
- end