hammett-washington-sdk 1.6.9 → 1.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1e83939e607b754dd614b6b9e54f25cfba2513cdbbb6b6d795bf480cc8df930
4
- data.tar.gz: 36e4edcc931305eed129e348c1e34a4f58320dc3f783340b9abfca469d004328
3
+ metadata.gz: 4419083562e29c1a42b5429d19ce122c0fe43c855b1f9bce0dc37dfda5ac7626
4
+ data.tar.gz: b538d8377f79db46a7de9bb1db3f180160e696850df3050688c70e45915d4839
5
5
  SHA512:
6
- metadata.gz: 767beb144f451ba9e351f5896174ad0a0d4438dc723b84b04c2842aad1f1cba6408d4603d78ecb7646d8f269de7f8a49c0610e90b7b238ce08851733b304ce27
7
- data.tar.gz: 300e2c75eda032bb5a157cc4393f960b6fd95f64db5eedb08bd80b17ce271d4f29fbd250c90d5f24eef674377dc23f60e1129786f162da78cd2bd16749f805ae
6
+ metadata.gz: a1433eb56c0a52023fb825aa9c3eda5f8c830978b2078ff3a4a06ca812135345befd3684559321973cf87891aed2bef864fd14d726c8c7397378d56e3746c7e0
7
+ data.tar.gz: e9f0d5fa61cb761abaab74df4d7920cdf2510752305e45e8dca699513351c8e9dc45f671ccc351425a5747bd5efa7ff3051cac0c1bec75aacecb6dee299e48ba
data/LICENSE CHANGED
@@ -3,7 +3,7 @@ License:
3
3
  The MIT License (MIT)
4
4
  http://opensource.org/licenses/MIT
5
5
 
6
- Copyright (c) 2014 - 2024 APIMATIC Limited
6
+ Copyright (c) 2014 - 2025 APIMATIC Limited
7
7
 
8
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
9
9
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -9,17 +9,17 @@ Simple calculator API hosted on APIMATIC
9
9
 
10
10
  Install the gem from the command line:
11
11
 
12
- ```ruby
13
- gem install hammett-washington-sdk -v 1.6.9
12
+ ```bash
13
+ gem install hammett-washington-sdk -v 1.7.1
14
14
  ```
15
15
 
16
16
  Or add the gem to your Gemfile and run `bundle`:
17
17
 
18
18
  ```ruby
19
- gem 'hammett-washington-sdk', '1.6.9'
19
+ gem 'hammett-washington-sdk', '1.7.1'
20
20
  ```
21
21
 
22
- For additional gem details, see the [RubyGems page for the hammett-washington-sdk gem](https://rubygems.org/gems/hammett-washington-sdk/versions/1.6.9).
22
+ For additional gem details, see the [RubyGems page for the hammett-washington-sdk gem](https://rubygems.org/gems/hammett-washington-sdk/versions/1.7.1).
23
23
 
24
24
  ## Test the SDK
25
25
 
@@ -31,38 +31,52 @@ rake
31
31
 
32
32
  ## Initialize the API Client
33
33
 
34
- **_Note:_** Documentation for the client can be found [here.](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.6.9/doc/client.md)
34
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.7.1/doc/client.md)
35
35
 
36
36
  The following parameters are configurable for the API Client:
37
37
 
38
38
  | Parameter | Type | Description |
39
39
  | --- | --- | --- |
40
- | `environment` | `Environment` | The API environment. <br> **Default: `Environment.PRODUCTION`** |
41
- | `connection` | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
42
- | `adapter` | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
43
- | `timeout` | `Float` | The value to use for connection timeout. <br> **Default: 60** |
44
- | `max_retries` | `Integer` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
45
- | `retry_interval` | `Float` | Pause in seconds between retries. <br> **Default: 1** |
46
- | `backoff_factor` | `Float` | The amount to multiply each successive retry's interval amount by in order to provide backoff. <br> **Default: 2** |
47
- | `retry_statuses` | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
48
- | `retry_methods` | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
49
- | `http_callback` | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
40
+ | environment | `Environment` | The API environment. <br> **Default: `Environment.PRODUCTION`** |
41
+ | connection | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
42
+ | adapter | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
43
+ | timeout | `Float` | The value to use for connection timeout. <br> **Default: 60** |
44
+ | max_retries | `Integer` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
45
+ | retry_interval | `Float` | Pause in seconds between retries. <br> **Default: 1** |
46
+ | backoff_factor | `Float` | The amount to multiply each successive retry's interval amount by in order to provide backoff. <br> **Default: 2** |
47
+ | retry_statuses | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
48
+ | retry_methods | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
49
+ | http_callback | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
50
+ | proxy_settings | [`ProxySettings`](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.7.1/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
50
51
 
51
52
  The API client can be initialized as follows:
52
53
 
53
54
  ```ruby
54
- client = ApimaticCalculator::Client.new(
55
+ require 'apimatic_calculator'
56
+ include ApimaticCalculator
57
+
58
+ client = Client.new(
55
59
  environment: Environment::PRODUCTION
56
60
  )
57
61
  ```
58
62
 
59
63
  ## List of APIs
60
64
 
61
- * [Simple Calculator](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.6.9/doc/controllers/simple-calculator.md)
62
-
63
- ## Classes Documentation
64
-
65
- * [Utility Classes](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.6.9/doc/utility-classes.md)
66
- * [HttpResponse](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.6.9/doc/http-response.md)
67
- * [HttpRequest](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.6.9/doc/http-request.md)
65
+ * [Simple Calculator](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.7.1/doc/controllers/simple-calculator.md)
66
+
67
+ ## SDK Infrastructure
68
+
69
+ ### Configuration
70
+
71
+ * [ProxySettings](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.7.1/doc/proxy-settings.md)
72
+
73
+ ### HTTP
74
+
75
+ * [HttpResponse](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.7.1/doc/http-response.md)
76
+ * [HttpRequest](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.7.1/doc/http-request.md)
77
+
78
+ ### Utilities
79
+
80
+ * [ApiHelper](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.7.1/doc/api-helper.md)
81
+ * [DateTimeHelper](https://www.github.com/ZahraN444/hammett-washington-ruby-sdk/tree/1.7.1/doc/date-time-helper.md)
68
82
 
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # API utility class
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # apimatic_calculator client class.
@@ -19,7 +19,7 @@ module ApimaticCalculator
19
19
  connection: nil, adapter: :net_http_persistent, timeout: 60,
20
20
  max_retries: 0, retry_interval: 1, backoff_factor: 2,
21
21
  retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
22
- retry_methods: %i[get put], http_callback: nil,
22
+ retry_methods: %i[get put], http_callback: nil, proxy_settings: nil,
23
23
  environment: Environment::PRODUCTION, config: nil
24
24
  )
25
25
  @config = if config.nil?
@@ -30,6 +30,7 @@ module ApimaticCalculator
30
30
  retry_statuses: retry_statuses,
31
31
  retry_methods: retry_methods,
32
32
  http_callback: http_callback,
33
+ proxy_settings: proxy_settings,
33
34
  environment: environment)
34
35
  else
35
36
  config
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # An enum for SDK environments.
@@ -33,14 +33,14 @@ module ApimaticCalculator
33
33
  connection: nil, adapter: :net_http_persistent, timeout: 60,
34
34
  max_retries: 0, retry_interval: 1, backoff_factor: 2,
35
35
  retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
36
- retry_methods: %i[get put], http_callback: nil,
36
+ retry_methods: %i[get put], http_callback: nil, proxy_settings: nil,
37
37
  environment: Environment::PRODUCTION
38
38
  )
39
-
40
39
  super connection: connection, adapter: adapter, timeout: timeout,
41
40
  max_retries: max_retries, retry_interval: retry_interval,
42
41
  backoff_factor: backoff_factor, retry_statuses: retry_statuses,
43
- retry_methods: retry_methods, http_callback: http_callback
42
+ retry_methods: retry_methods, http_callback: http_callback,
43
+ proxy_settings: proxy_settings
44
44
 
45
45
  # Current API environment
46
46
  @environment = String(environment)
@@ -52,7 +52,7 @@ module ApimaticCalculator
52
52
  def clone_with(connection: nil, adapter: nil, timeout: nil,
53
53
  max_retries: nil, retry_interval: nil, backoff_factor: nil,
54
54
  retry_statuses: nil, retry_methods: nil, http_callback: nil,
55
- environment: nil)
55
+ proxy_settings: nil, environment: nil)
56
56
  connection ||= self.connection
57
57
  adapter ||= self.adapter
58
58
  timeout ||= self.timeout
@@ -62,6 +62,7 @@ module ApimaticCalculator
62
62
  retry_statuses ||= self.retry_statuses
63
63
  retry_methods ||= self.retry_methods
64
64
  http_callback ||= self.http_callback
65
+ proxy_settings ||= self.proxy_settings
65
66
  environment ||= self.environment
66
67
 
67
68
  Configuration.new(connection: connection, adapter: adapter,
@@ -70,7 +71,9 @@ module ApimaticCalculator
70
71
  backoff_factor: backoff_factor,
71
72
  retry_statuses: retry_statuses,
72
73
  retry_methods: retry_methods,
73
- http_callback: http_callback, environment: environment)
74
+ http_callback: http_callback,
75
+ proxy_settings: proxy_settings,
76
+ environment: environment)
74
77
  end
75
78
 
76
79
 
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # BaseController.
@@ -26,13 +26,7 @@ module ApimaticCalculator
26
26
  @global_configuration = global_configuration
27
27
  @config = @global_configuration.client_configuration
28
28
  @http_call_back = @config.http_callback
29
- @api_call = ApiCall.new(@global_configuration)
30
- end
31
-
32
- # Creates a new builder for the Api Call instance.
33
- # @return [ApiCall] The instance of ApiCall.
34
- def new_api_call_builder
35
- @api_call.new_builder
29
+ @api_call = ApiCall.new(@global_configuration)
36
30
  end
37
31
 
38
32
  # Creates a new instance of the request builder.
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # SimpleCalculatorController
@@ -11,9 +11,9 @@ module ApimaticCalculator
11
11
  # apply on the variables
12
12
  # @param [Float] x Required parameter: The LHS value
13
13
  # @param [Float] y Required parameter: The RHS value
14
- # @return [Float] response from the API call.
14
+ # @return [Float] Response from the API call.
15
15
  def get_calculate(options = {})
16
- new_api_call_builder
16
+ @api_call
17
17
  .request(new_request_builder(HttpMethodEnum::GET,
18
18
  '/{operation}',
19
19
  Server::CALCULATOR)
@@ -23,7 +23,7 @@ module ApimaticCalculator
23
23
  .query_param(new_parameter(options['y'], key: 'y')))
24
24
  .response(new_response_handler
25
25
  .deserializer(APIHelper.method(:deserialize_primitive_types))
26
- .deserialize_into(proc do |response| response.to_f end)
26
+ .deserialize_into(proc do |response| response&.to_f end)
27
27
  .is_primitive_response(true))
28
28
  .execute
29
29
  end
@@ -1,10 +1,21 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # Class for exceptions when there is a network error, status code error, etc.
8
8
  class APIException < CoreLibrary::ApiException
9
+ # Provides a human-readable string representation of the object.
10
+ def to_s
11
+ class_name = self.class.name.split('::').last
12
+ "<#{class_name} status_code: #{@response_code}, reason: #{@reason}>"
13
+ end
14
+
15
+ # Provides a debugging-friendly string with detailed object information.
16
+ def inspect
17
+ class_name = self.class.name.split('::').last
18
+ "<#{class_name} status_code: #{@response_code.inspect}, reason: #{@reason.inspect}>"
19
+ end
9
20
  end
10
21
  end
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # HttpCallBack allows defining callables for pre and post API calls.
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # HTTP Methods Enumeration.
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # Represents a single Http Request.
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # Http response received.
@@ -0,0 +1,13 @@
1
+ # apimatic_calculator
2
+ #
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
+
6
+ module ApimaticCalculator
7
+ ##
8
+ # ProxySettings encapsulates HTTP proxy configuration for Faraday,
9
+ # including optional basic authentication.
10
+ #
11
+ class ProxySettings < CoreLibrary::ProxySettings
12
+ end
13
+ end
@@ -1,10 +1,11 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # Base model.
8
+ # rubocop:disable all
8
9
  class BaseModel < CoreLibrary::BaseModel
9
10
  # Returns a Hash representation of the current object.
10
11
  def to_hash
@@ -15,48 +16,95 @@ module ApimaticCalculator
15
16
  instance_variables.each do |name|
16
17
  value = instance_variable_get(name)
17
18
  name = name[1..]
18
- key = self.class.names.key?(name) ? self.class.names[name] : name
19
- optional_fields = self.class.optionals
20
- nullable_fields = self.class.nullables
21
- if value.nil?
22
- next unless nullable_fields.include?(name)
23
-
24
- if !optional_fields.include?(name) && !nullable_fields.include?(name)
25
- raise ArgumentError,
26
- "`#{name}` cannot be nil in `#{self.class}`. Please specify a valid value."
19
+ if name == 'additional_properties'
20
+ additional_properties = process_additional_properties(value, self.class.names)
21
+ hash.merge!(additional_properties)
22
+ else
23
+ key = self.class.names.key?(name) ? self.class.names[name] : name
24
+ optional_fields = self.class.optionals
25
+ nullable_fields = self.class.nullables
26
+ if value.nil?
27
+ next unless nullable_fields.include?(name)
28
+
29
+ if !optional_fields.include?(name) && !nullable_fields.include?(name)
30
+ raise ArgumentError,
31
+ "`#{name}` cannot be nil in `#{self.class}`. Please specify a valid value."
32
+ end
27
33
  end
28
- end
29
34
 
30
- hash[key] = nil
31
- unless value.nil?
32
- if respond_to?("to_custom_#{name}")
33
- if (value.instance_of? Array) || (value.instance_of? Hash)
34
- params = [hash, key]
35
- hash[key] = send("to_custom_#{name}", *params)
35
+ hash[key] = nil
36
+ unless value.nil?
37
+ if respond_to?("to_custom_#{name}")
38
+ if (value.instance_of? Array) || (value.instance_of? Hash)
39
+ params = [hash, key]
40
+ hash[key] = send("to_custom_#{name}", *params)
41
+ else
42
+ hash[key] = send("to_custom_#{name}")
43
+ end
44
+ elsif respond_to?("to_union_type_#{name}")
45
+ hash[key] = send("to_union_type_#{name}")
46
+ elsif value.instance_of? Array
47
+ hash[key] = value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v }
48
+ elsif value.instance_of? Hash
49
+ hash[key] = {}
50
+ value.each do |k, v|
51
+ hash[key][k] = v.is_a?(BaseModel) ? v.to_hash : v
52
+ end
36
53
  else
37
- hash[key] = send("to_custom_#{name}")
54
+ hash[key] = value.is_a?(BaseModel) ? value.to_hash : value
38
55
  end
39
- elsif respond_to?("to_union_type_#{name}")
40
- hash[key] = send("to_union_type_#{name}")
41
- elsif value.instance_of? Array
42
- hash[key] = value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v }
43
- elsif value.instance_of? Hash
44
- hash[key] = {}
45
- value.each do |k, v|
46
- hash[key][k] = v.is_a?(BaseModel) ? v.to_hash : v
47
- end
48
- else
49
- hash[key] = value.is_a?(BaseModel) ? value.to_hash : value
50
56
  end
51
57
  end
52
58
  end
53
59
  hash
54
60
  end
55
61
 
62
+ # Processes additional properties, ensuring no conflicts with existing properties.
63
+ def process_additional_properties(additional_properties, existing_prop_names)
64
+ hash = {}
65
+ additional_properties.each do |name, value|
66
+ check_for_conflict(name, existing_prop_names)
67
+
68
+ hash[name] = if value.is_a?(Array)
69
+ process_array(value)
70
+ elsif value.is_a?(Hash)
71
+ process_hash(value)
72
+ else
73
+ process_basic_value(value)
74
+ end
75
+ end
76
+ hash
77
+ end
78
+
79
+ # Checks if an additional property conflicts with a model's existing property.
80
+ def check_for_conflict(name, existing_prop_names)
81
+ return unless existing_prop_names.key?(name)
82
+
83
+ raise ArgumentError, "An additional property key, '#{name}' conflicts with one of the model's properties"
84
+ end
85
+
86
+ # Processes an array of values, recursively calling `to_hash` on BaseModel objects.
87
+ def process_array(value)
88
+ value.map { |v| v.is_a?(BaseModel) ? v.to_hash : v }
89
+ end
90
+
91
+ # Processes a hash of values, recursively calling `to_hash` on BaseModel objects.
92
+ def process_hash(value)
93
+ value.transform_values do |v|
94
+ v.is_a?(BaseModel) ? v.to_hash : v
95
+ end
96
+ end
97
+
98
+ # Processes a basic value (non-array, non-hash).
99
+ def process_basic_value(value)
100
+ value.is_a?(BaseModel) ? value.to_hash : value
101
+ end
102
+
56
103
  # Returns a JSON representation of the curent object.
57
104
  def to_json(options = {})
58
105
  hash = to_hash
59
106
  hash.to_json(options)
60
107
  end
61
108
  end
109
+ # rubocop:enable all
62
110
  end
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # Possible operators are sum, subtract, multiply, divide
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  require 'date'
7
7
  module ApimaticCalculator
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module ApimaticCalculator
7
7
  # A utility to allow users to set the content-type for files
@@ -12,5 +12,17 @@ module ApimaticCalculator
12
12
  def initialize(file, content_type: 'application/octet-stream')
13
13
  super
14
14
  end
15
- end
16
- end
15
+
16
+ # Provides a human-readable string representation of the object.
17
+ def to_s
18
+ class_name = self.class.name.split('::').last
19
+ "<#{class_name} file: #{@file}, content_type: #{@content_type}>"
20
+ end
21
+
22
+ # Provides a debugging-friendly string with detailed object information.
23
+ def to_inspect
24
+ class_name = self.class.name.split('::').last
25
+ "<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>"
26
+ end
27
+ end
28
+ end
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  require 'date'
7
7
  require 'json'
@@ -22,8 +22,9 @@ require_relative 'apimatic_calculator/http/http_call_back'
22
22
  require_relative 'apimatic_calculator/http/http_method_enum'
23
23
  require_relative 'apimatic_calculator/http/http_request'
24
24
  require_relative 'apimatic_calculator/http/http_response'
25
+ require_relative 'apimatic_calculator/http/proxy_settings'
26
+
25
27
 
26
- # Logger
27
28
 
28
29
  # Models
29
30
  require_relative 'apimatic_calculator/models/base_model'
@@ -1,7 +1,7 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  require 'json'
7
7
  require 'minitest/autorun'
@@ -1,11 +1,11 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  require_relative 'controller_test_base'
7
7
 
8
- class SimpleCalculatorControllerTests < ControllerTestBase
8
+ class SimpleCalculatorControllerTest < ControllerTestBase
9
9
  # Called only once for the class before any test has executed
10
10
  def setup
11
11
  setup_class
@@ -1,10 +1,10 @@
1
1
  # apimatic_calculator
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  class HttpResponseCatcher < ApimaticCalculator::HttpCallBack
7
- attr_accessor :response
7
+ attr_reader :response
8
8
 
9
9
  def on_before_request(request)
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammett-washington-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.9
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zelenia Merrill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-13 00:00:00.000000000 Z
11
+ date: 2025-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.1
19
+ version: 0.2.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.1
26
+ version: 0.2.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: apimatic_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.9
33
+ version: 0.3.19
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.9
40
+ version: 0.3.19
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: apimatic_faraday_client_adapter
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.1.4
47
+ version: 0.1.6
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.4
54
+ version: 0.1.6
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -100,6 +100,7 @@ files:
100
100
  - lib/apimatic_calculator/http/http_method_enum.rb
101
101
  - lib/apimatic_calculator/http/http_request.rb
102
102
  - lib/apimatic_calculator/http/http_response.rb
103
+ - lib/apimatic_calculator/http/proxy_settings.rb
103
104
  - lib/apimatic_calculator/models/base_model.rb
104
105
  - lib/apimatic_calculator/models/operation_type_enum.rb
105
106
  - lib/apimatic_calculator/utilities/date_time_helper.rb