apimatic-tql-sdk 0.0.1 → 0.0.2

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 (118) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +148 -197
  3. data/bin/console +4 -4
  4. data/lib/freight_financials_webhook_ingestion_api/api_helper.rb +10 -0
  5. data/lib/freight_financials_webhook_ingestion_api/apis/assignments_api.rb +41 -0
  6. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/apis/base_api.rb +60 -60
  7. data/lib/freight_financials_webhook_ingestion_api/apis/documents_api.rb +73 -0
  8. data/lib/freight_financials_webhook_ingestion_api/apis/freight_audit_api.rb +54 -0
  9. data/lib/freight_financials_webhook_ingestion_api/apis/invoices_api.rb +107 -0
  10. data/lib/freight_financials_webhook_ingestion_api/apis/loads_api.rb +72 -0
  11. data/lib/freight_financials_webhook_ingestion_api/apis/rating_api.rb +45 -0
  12. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/client.rb +83 -97
  13. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/configuration.rb +114 -126
  14. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/exceptions/api_exception.rb +21 -21
  15. data/lib/{tql_otr_factoring_data_exchange/exceptions/problem_details_error_exception.rb → freight_financials_webhook_ingestion_api/exceptions/problem_details_exception.rb} +51 -41
  16. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/http/api_response.rb +7 -7
  17. data/lib/freight_financials_webhook_ingestion_api/http/http_call_back.rb +10 -0
  18. data/lib/freight_financials_webhook_ingestion_api/http/http_method_enum.rb +10 -0
  19. data/lib/freight_financials_webhook_ingestion_api/http/http_request.rb +10 -0
  20. data/lib/freight_financials_webhook_ingestion_api/http/http_response.rb +10 -0
  21. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/http/proxy_settings.rb +6 -6
  22. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/logging/configuration/api_logging_configuration.rb +6 -6
  23. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/logging/sdk_logger.rb +6 -6
  24. data/lib/freight_financials_webhook_ingestion_api/models/address.rb +123 -0
  25. data/lib/freight_financials_webhook_ingestion_api/models/assignment_request.rb +94 -0
  26. data/lib/freight_financials_webhook_ingestion_api/models/assignment_response.rb +83 -0
  27. data/lib/{tql_otr_factoring_data_exchange/models/assignment_response.rb → freight_financials_webhook_ingestion_api/models/assignment_response_data.rb} +124 -126
  28. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/models/base_model.rb +110 -110
  29. data/lib/{tql_otr_factoring_data_exchange/models/carrier1.rb → freight_financials_webhook_ingestion_api/models/carrier.rb} +96 -98
  30. data/lib/freight_financials_webhook_ingestion_api/models/charge.rb +104 -0
  31. data/lib/freight_financials_webhook_ingestion_api/models/charge_code.rb +81 -0
  32. data/lib/freight_financials_webhook_ingestion_api/models/factoring_company.rb +81 -0
  33. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/models/invoice.rb +204 -223
  34. data/lib/{tql_otr_factoring_data_exchange/models/document.rb → freight_financials_webhook_ingestion_api/models/invoice_document.rb} +72 -86
  35. data/lib/{tql_otr_factoring_data_exchange/models/invoice_exception.rb → freight_financials_webhook_ingestion_api/models/invoice_issue.rb} +122 -136
  36. data/lib/freight_financials_webhook_ingestion_api/models/invoice_status_response.rb +83 -0
  37. data/lib/{tql_otr_factoring_data_exchange/models/invoice_status_response.rb → freight_financials_webhook_ingestion_api/models/invoice_status_response_data.rb} +185 -193
  38. data/lib/freight_financials_webhook_ingestion_api/models/line_item.rb +131 -0
  39. data/lib/freight_financials_webhook_ingestion_api/models/load_response.rb +83 -0
  40. data/lib/{tql_otr_factoring_data_exchange/models/load_detail.rb → freight_financials_webhook_ingestion_api/models/load_response_data.rb} +141 -140
  41. data/lib/{tql_otr_factoring_data_exchange/models/load.rb → freight_financials_webhook_ingestion_api/models/load_slim.rb} +97 -110
  42. data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_charge.rb +116 -0
  43. data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_customer.rb +64 -0
  44. data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_line_item.rb +177 -0
  45. data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_request.rb +208 -0
  46. data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_requested_charge.rb +64 -0
  47. data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_response.rb +112 -0
  48. data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_stop.rb +107 -0
  49. data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_vendor.rb +88 -0
  50. data/lib/freight_financials_webhook_ingestion_api/models/navix_webhook_event_type.rb +56 -0
  51. data/lib/freight_financials_webhook_ingestion_api/models/navix_webhook_request.rb +99 -0
  52. data/lib/freight_financials_webhook_ingestion_api/models/paged_response_of_invoice.rb +111 -0
  53. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/models/payment.rb +94 -108
  54. data/lib/freight_financials_webhook_ingestion_api/models/rating_charge_qualifier.rb +68 -0
  55. data/lib/freight_financials_webhook_ingestion_api/models/rating_response_format.rb +40 -0
  56. data/lib/freight_financials_webhook_ingestion_api/models/reference_number.rb +71 -0
  57. data/lib/{tql_otr_factoring_data_exchange/models/invoice_search_request.rb → freight_financials_webhook_ingestion_api/models/search_request.rb} +223 -242
  58. data/lib/freight_financials_webhook_ingestion_api/models/search_response.rb +83 -0
  59. data/lib/freight_financials_webhook_ingestion_api/models/stop.rb +81 -0
  60. data/lib/freight_financials_webhook_ingestion_api/models/submit_invoice_request.rb +228 -0
  61. data/lib/freight_financials_webhook_ingestion_api/models/submit_invoice_response.rb +83 -0
  62. data/lib/{tql_otr_factoring_data_exchange/models/submit_invoice_response.rb → freight_financials_webhook_ingestion_api/models/submit_invoice_response_data.rb} +105 -107
  63. data/lib/freight_financials_webhook_ingestion_api/models/upload_request.rb +128 -0
  64. data/lib/freight_financials_webhook_ingestion_api/models/upload_response.rb +83 -0
  65. data/lib/{tql_otr_factoring_data_exchange/models/document_upload_response.rb → freight_financials_webhook_ingestion_api/models/upload_response_data.rb} +117 -137
  66. data/lib/freight_financials_webhook_ingestion_api/utilities/date_time_helper.rb +11 -0
  67. data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/utilities/file_wrapper.rb +17 -17
  68. data/lib/freight_financials_webhook_ingestion_api.rb +127 -0
  69. metadata +67 -74
  70. data/lib/tql_otr_factoring_data_exchange/api_helper.rb +0 -10
  71. data/lib/tql_otr_factoring_data_exchange/apis/assignments_api.rb +0 -45
  72. data/lib/tql_otr_factoring_data_exchange/apis/documents_api.rb +0 -82
  73. data/lib/tql_otr_factoring_data_exchange/apis/invoices_api.rb +0 -114
  74. data/lib/tql_otr_factoring_data_exchange/apis/loads_api.rb +0 -68
  75. data/lib/tql_otr_factoring_data_exchange/apis/oauth_authorization_api.rb +0 -44
  76. data/lib/tql_otr_factoring_data_exchange/exceptions/oauth_provider_exception.rb +0 -64
  77. data/lib/tql_otr_factoring_data_exchange/http/auth/oauth_2.rb +0 -156
  78. data/lib/tql_otr_factoring_data_exchange/http/http_call_back.rb +0 -10
  79. data/lib/tql_otr_factoring_data_exchange/http/http_method_enum.rb +0 -10
  80. data/lib/tql_otr_factoring_data_exchange/http/http_request.rb +0 -10
  81. data/lib/tql_otr_factoring_data_exchange/http/http_response.rb +0 -10
  82. data/lib/tql_otr_factoring_data_exchange/models/assignment_request.rb +0 -140
  83. data/lib/tql_otr_factoring_data_exchange/models/assignment_status.rb +0 -36
  84. data/lib/tql_otr_factoring_data_exchange/models/base64_document.rb +0 -118
  85. data/lib/tql_otr_factoring_data_exchange/models/base64_document_upload_request.rb +0 -107
  86. data/lib/tql_otr_factoring_data_exchange/models/carrier.rb +0 -98
  87. data/lib/tql_otr_factoring_data_exchange/models/carrier2.rb +0 -98
  88. data/lib/tql_otr_factoring_data_exchange/models/carrier_input.rb +0 -123
  89. data/lib/tql_otr_factoring_data_exchange/models/carrier_input1.rb +0 -123
  90. data/lib/tql_otr_factoring_data_exchange/models/charge_code.rb +0 -126
  91. data/lib/tql_otr_factoring_data_exchange/models/charge_code_origin.rb +0 -49
  92. data/lib/tql_otr_factoring_data_exchange/models/charge_input.rb +0 -146
  93. data/lib/tql_otr_factoring_data_exchange/models/document_type.rb +0 -288
  94. data/lib/tql_otr_factoring_data_exchange/models/document_upload_metadata.rb +0 -111
  95. data/lib/tql_otr_factoring_data_exchange/models/exception_severity.rb +0 -40
  96. data/lib/tql_otr_factoring_data_exchange/models/factoring_company_input.rb +0 -117
  97. data/lib/tql_otr_factoring_data_exchange/models/invoice_item_input.rb +0 -165
  98. data/lib/tql_otr_factoring_data_exchange/models/invoice_search_response.rb +0 -124
  99. data/lib/tql_otr_factoring_data_exchange/models/invoice_status.rb +0 -74
  100. data/lib/tql_otr_factoring_data_exchange/models/invoice_type.rb +0 -50
  101. data/lib/tql_otr_factoring_data_exchange/models/load_search_request.rb +0 -205
  102. data/lib/tql_otr_factoring_data_exchange/models/load_search_response.rb +0 -124
  103. data/lib/tql_otr_factoring_data_exchange/models/load_status.rb +0 -56
  104. data/lib/tql_otr_factoring_data_exchange/models/location.rb +0 -149
  105. data/lib/tql_otr_factoring_data_exchange/models/oauth_provider_error.rb +0 -62
  106. data/lib/tql_otr_factoring_data_exchange/models/oauth_scope.rb +0 -36
  107. data/lib/tql_otr_factoring_data_exchange/models/oauth_token.rb +0 -96
  108. data/lib/tql_otr_factoring_data_exchange/models/problem_details.rb +0 -96
  109. data/lib/tql_otr_factoring_data_exchange/models/reference_number_input.rb +0 -109
  110. data/lib/tql_otr_factoring_data_exchange/models/reference_type.rb +0 -90
  111. data/lib/tql_otr_factoring_data_exchange/models/status.rb +0 -44
  112. data/lib/tql_otr_factoring_data_exchange/models/stop_input.rb +0 -121
  113. data/lib/tql_otr_factoring_data_exchange/models/stop_type.rb +0 -62
  114. data/lib/tql_otr_factoring_data_exchange/models/submit_invoice_request.rb +0 -326
  115. data/lib/tql_otr_factoring_data_exchange/models/weight_unit.rb +0 -36
  116. data/lib/tql_otr_factoring_data_exchange/utilities/date_time_helper.rb +0 -11
  117. data/lib/tql_otr_factoring_data_exchange/utilities/union_type_lookup.rb +0 -29
  118. data/lib/tql_otr_factoring_data_exchange.rb +0 -107
@@ -1,122 +1,114 @@
1
- # tql_otr_factoring_data_exchange
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module TqlOtrFactoringDataExchange
7
- # An enum for SDK environments.
8
- class Environment
9
- # PRODUCTION: Production
10
- ENVIRONMENT = [
11
- PRODUCTION = 'production'.freeze
12
- ].freeze
13
-
14
- # Converts a string or symbol into a valid Environment constant.
15
- def self.from_value(value, default_value = PRODUCTION)
16
- return default_value if value.nil?
17
-
18
- default_value
19
- end
20
- end
21
-
22
- # An enum for API servers.
23
- class Server
24
- SERVER = [
25
- DEFAULT = 'default'.freeze
26
- ].freeze
27
-
28
- # Converts a string or symbol into a valid Server constant.
29
- def self.from_value(value, default_value = DEFAULT)
30
- return default_value if value.nil?
31
-
32
- default_value
33
- end
34
- end
35
-
36
- # All configuration including auth info and base URI for the API access
37
- # are configured in this class.
38
- class Configuration < CoreLibrary::HttpClientConfiguration
39
- # The attribute readers for properties.
40
- attr_reader :environment, :client_credentials_auth_credentials
41
-
42
- class << self
43
- attr_reader :environments
44
- end
45
-
46
- def initialize(
47
- connection: nil, adapter: :net_http_persistent, timeout: 30,
48
- max_retries: 0, retry_interval: 1, backoff_factor: 2,
49
- retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
50
- retry_methods: %i[get put], http_callback: nil, proxy_settings: nil,
51
- logging_configuration: nil, environment: Environment::PRODUCTION,
52
- client_credentials_auth_credentials: nil
53
- )
54
- super connection: connection, adapter: adapter, timeout: timeout,
55
- max_retries: max_retries, retry_interval: retry_interval,
56
- backoff_factor: backoff_factor, retry_statuses: retry_statuses,
57
- retry_methods: retry_methods, http_callback: http_callback,
58
- proxy_settings: proxy_settings,
59
- logging_configuration: logging_configuration
60
-
61
- # Current API environment
62
- @environment = String(environment)
63
-
64
- # The object holding OAuth 2 Client Credentials Grant credentials
65
- @client_credentials_auth_credentials = client_credentials_auth_credentials
66
-
67
- # Initializing OAuth 2 Client Credentials Grant credentials with the provided auth parameters
68
- @client_credentials_auth_credentials = client_credentials_auth_credentials
69
-
70
- # The Http Client to use for making requests.
71
- set_http_client CoreLibrary::FaradayClient.new(self)
72
- end
73
-
74
- def clone_with(connection: nil, adapter: nil, timeout: nil,
75
- max_retries: nil, retry_interval: nil, backoff_factor: nil,
76
- retry_statuses: nil, retry_methods: nil, http_callback: nil,
77
- proxy_settings: nil, logging_configuration: nil,
78
- environment: nil, client_credentials_auth_credentials: nil)
79
- connection ||= self.connection
80
- adapter ||= self.adapter
81
- timeout ||= self.timeout
82
- max_retries ||= self.max_retries
83
- retry_interval ||= self.retry_interval
84
- backoff_factor ||= self.backoff_factor
85
- retry_statuses ||= self.retry_statuses
86
- retry_methods ||= self.retry_methods
87
- http_callback ||= self.http_callback
88
- proxy_settings ||= self.proxy_settings
89
- logging_configuration ||= self.logging_configuration
90
- environment ||= self.environment
91
- client_credentials_auth_credentials ||= self.client_credentials_auth_credentials
92
-
93
- Configuration.new(
94
- connection: connection, adapter: adapter, timeout: timeout,
95
- max_retries: max_retries, retry_interval: retry_interval,
96
- backoff_factor: backoff_factor, retry_statuses: retry_statuses,
97
- retry_methods: retry_methods, http_callback: http_callback,
98
- proxy_settings: proxy_settings,
99
- logging_configuration: logging_configuration, environment: environment,
100
- client_credentials_auth_credentials: client_credentials_auth_credentials
101
- )
102
- end
103
-
104
-
105
- # All the environments the SDK can run in.
106
- ENVIRONMENTS = {
107
- Environment::PRODUCTION => {
108
- Server::DEFAULT => 'https://api.example.com'
109
- }
110
- }.freeze
111
-
112
- # Generates the appropriate base URI for the environment and the server.
113
- # @param [Configuration::Server] server The server enum for which the base URI is
114
- # required.
115
- # @return [String] The base URI.
116
- def get_base_uri(server = Server::DEFAULT)
117
- ENVIRONMENTS[environment][server].clone
118
- end
119
-
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
+ # An enum for SDK environments.
8
+ class Environment
9
+ ENVIRONMENT = [
10
+ PRODUCTION = 'production'.freeze
11
+ ].freeze
12
+
13
+ # Converts a string or symbol into a valid Environment constant.
14
+ def self.from_value(value, default_value = PRODUCTION)
15
+ return default_value if value.nil?
16
+
17
+ default_value
18
+ end
19
+ end
20
+
21
+ # An enum for API servers.
22
+ class Server
23
+ SERVER = [
24
+ DEFAULT = 'default'.freeze
25
+ ].freeze
26
+
27
+ # Converts a string or symbol into a valid Server constant.
28
+ def self.from_value(value, default_value = DEFAULT)
29
+ return default_value if value.nil?
30
+
31
+ default_value
32
+ end
33
+ end
34
+
35
+ # All configuration including auth info and base URI for the API access
36
+ # are configured in this class.
37
+ class Configuration < CoreLibrary::HttpClientConfiguration
38
+ # The attribute readers for properties.
39
+ attr_reader :environment
40
+
41
+ class << self
42
+ attr_reader :environments
43
+ end
44
+
45
+ def initialize(
46
+ connection: nil, adapter: :net_http_persistent, timeout: 30,
47
+ max_retries: 0, retry_interval: 1, backoff_factor: 2,
48
+ retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
49
+ retry_methods: %i[get put], http_callback: nil, proxy_settings: nil,
50
+ logging_configuration: nil, environment: Environment::PRODUCTION
51
+ )
52
+ super connection: connection, adapter: adapter, timeout: timeout,
53
+ max_retries: max_retries, retry_interval: retry_interval,
54
+ backoff_factor: backoff_factor, retry_statuses: retry_statuses,
55
+ retry_methods: retry_methods, http_callback: http_callback,
56
+ proxy_settings: proxy_settings,
57
+ logging_configuration: logging_configuration
58
+
59
+ # Current API environment
60
+ @environment = String(environment)
61
+
62
+ # The Http Client to use for making requests.
63
+ set_http_client CoreLibrary::FaradayClient.new(self)
64
+ end
65
+
66
+ def clone_with(connection: nil, adapter: nil, timeout: nil,
67
+ max_retries: nil, retry_interval: nil, backoff_factor: nil,
68
+ retry_statuses: nil, retry_methods: nil, http_callback: nil,
69
+ proxy_settings: nil, logging_configuration: nil,
70
+ environment: nil)
71
+ connection ||= self.connection
72
+ adapter ||= self.adapter
73
+ timeout ||= self.timeout
74
+ max_retries ||= self.max_retries
75
+ retry_interval ||= self.retry_interval
76
+ backoff_factor ||= self.backoff_factor
77
+ retry_statuses ||= self.retry_statuses
78
+ retry_methods ||= self.retry_methods
79
+ http_callback ||= self.http_callback
80
+ proxy_settings ||= self.proxy_settings
81
+ logging_configuration ||= self.logging_configuration
82
+ environment ||= self.environment
83
+
84
+ Configuration.new(connection: connection, adapter: adapter,
85
+ timeout: timeout, max_retries: max_retries,
86
+ retry_interval: retry_interval,
87
+ backoff_factor: backoff_factor,
88
+ retry_statuses: retry_statuses,
89
+ retry_methods: retry_methods,
90
+ http_callback: http_callback,
91
+ proxy_settings: proxy_settings,
92
+ logging_configuration: logging_configuration,
93
+ environment: environment)
94
+ end
95
+
96
+
97
+ # All the environments the SDK can run in.
98
+ ENVIRONMENTS = {
99
+ Environment::PRODUCTION => {
100
+ Server::DEFAULT => 'https://localhost:59618/'
101
+ }
102
+ }.freeze
103
+
104
+ # Generates the appropriate base URI for the environment and the server.
105
+ # @param [Configuration::Server] server The server enum for which the base URI is
106
+ # required.
107
+ # @return [String] The base URI.
108
+ def get_base_uri(server = Server::DEFAULT)
109
+ ENVIRONMENTS[environment][server].clone
110
+ end
111
+
120
112
  # Builds a Configuration instance using environment variables.
121
113
  def self.build_default_config_from_env
122
114
  # === Core environment ===
@@ -139,9 +131,6 @@ module TqlOtrFactoringDataExchange
139
131
  item.match?(/\A\d+\z/) ? item.to_i : item.downcase
140
132
  end
141
133
 
142
- # === Authentication credentials ===
143
- client_credentials_auth_credentials = ClientCredentialsAuthCredentials.from_env
144
-
145
134
  # === Proxy settings ===
146
135
  proxy_settings = ProxySettings.from_env
147
136
  # === Logging Configuration ===
@@ -155,10 +144,9 @@ module TqlOtrFactoringDataExchange
155
144
  backoff_factor: backoff_factor,
156
145
  retry_statuses: retry_statuses,
157
146
  retry_methods: retry_methods,
158
- client_credentials_auth_credentials: client_credentials_auth_credentials,
159
147
  proxy_settings: proxy_settings,
160
148
  logging_configuration: logging_configuration
161
149
  )
162
- end
163
- end
164
- end
150
+ end
151
+ end
152
+ end
@@ -1,21 +1,21 @@
1
- # tql_otr_factoring_data_exchange
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module TqlOtrFactoringDataExchange
7
- # Class for exceptions when there is a network error, status code error, etc.
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
20
- end
21
- end
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
+ # Class for exceptions when there is a network error, status code error, etc.
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
20
+ end
21
+ end
@@ -1,27 +1,34 @@
1
- # tql_otr_factoring_data_exchange
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module TqlOtrFactoringDataExchange
7
- # [RFC 7807](https://datatracker.ietf.org/doc/html/rfc7807) Problem Details
8
- # response returned for validation errors and other non-success outcomes.
9
- class ProblemDetailsErrorException < APIException
10
- SKIP = Object.new
11
- private_constant :SKIP
12
-
13
- # Short, human-readable summary of the problem type.
14
- # @return [String]
15
- attr_accessor :title
16
-
17
- # HTTP status code.
18
- # @return [Integer]
19
- attr_accessor :status
20
-
21
- # Detailed, human-readable explanation specific to this occurrence.
22
- # @return [String]
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
+ # ProblemDetails class.
8
+ class ProblemDetailsException < APIException
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :type
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :title
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [Integer]
22
+ attr_accessor :status
23
+
24
+ # TODO: Write general description for this method
25
+ # @return [String]
23
26
  attr_accessor :detail
24
27
 
28
+ # TODO: Write general description for this method
29
+ # @return [String]
30
+ attr_accessor :instance
31
+
25
32
  # The constructor.
26
33
  # @param [String] reason The reason for raising an exception.
27
34
  # @param [HttpResponse] response The HttpReponse of the API call.
@@ -37,22 +44,25 @@ module TqlOtrFactoringDataExchange
37
44
  def unbox(hash)
38
45
  return nil unless hash
39
46
 
40
- @title = hash.key?('title') ? hash['title'] : SKIP
41
- @status = hash.key?('status') ? hash['status'] : SKIP
42
- @detail = hash.key?('detail') ? hash['detail'] : SKIP
43
- end
44
-
45
- # Provides a human-readable string representation of the object.
46
- def to_s
47
- class_name = self.class.name.split('::').last
48
- "<#{class_name} title: #{@title}, status: #{@status}, detail: #{@detail}>"
49
- end
50
-
51
- # Provides a debugging-friendly string with detailed object information.
52
- def inspect
53
- class_name = self.class.name.split('::').last
54
- "<#{class_name} title: #{@title.inspect}, status: #{@status.inspect}, detail:"\
55
- " #{@detail.inspect}>"
56
- end
57
- end
58
- end
47
+ @type = hash.key?('type') ? hash['type'] : SKIP
48
+ @title = hash.key?('title') ? hash['title'] : SKIP
49
+ @status = hash.key?('status') ? hash['status'] : SKIP
50
+ @detail = hash.key?('detail') ? hash['detail'] : SKIP
51
+ @instance = hash.key?('instance') ? hash['instance'] : SKIP
52
+ end
53
+
54
+ # Provides a human-readable string representation of the object.
55
+ def to_s
56
+ class_name = self.class.name.split('::').last
57
+ "<#{class_name} type: #{@type}, title: #{@title}, status: #{@status}, detail: #{@detail},"\
58
+ " instance: #{@instance}>"
59
+ end
60
+
61
+ # Provides a debugging-friendly string with detailed object information.
62
+ def inspect
63
+ class_name = self.class.name.split('::').last
64
+ "<#{class_name} type: #{@type.inspect}, title: #{@title.inspect}, status:"\
65
+ " #{@status.inspect}, detail: #{@detail.inspect}, instance: #{@instance.inspect}>"
66
+ end
67
+ end
68
+ end
@@ -1,10 +1,10 @@
1
- # tql_otr_factoring_data_exchange
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module TqlOtrFactoringDataExchange
7
- # Http response received.
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
+ # Http response received.
8
8
  class ApiResponse < CoreLibrary::ApiResponse
9
9
  # The constructor
10
10
  # @param [HttpResponse] http_response The original, raw response from the api.
@@ -0,0 +1,10 @@
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
+ # HttpCallBack allows defining callables for pre and post API calls.
8
+ class HttpCallBack < CoreLibrary::HttpCallback
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
+ # HTTP Methods Enumeration.
8
+ class HttpMethodEnum < CoreLibrary::HttpMethod
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
+ # Represents a single Http Request.
8
+ class HttpRequest < CoreLibrary::HttpRequest
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
+ # Http response received.
8
+ class HttpResponse < CoreLibrary::HttpResponse
9
+ end
10
+ end
@@ -1,9 +1,9 @@
1
- # tql_otr_factoring_data_exchange
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module TqlOtrFactoringDataExchange
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
7
  ##
8
8
  # ProxySettings encapsulates HTTP proxy configuration for Faraday,
9
9
  # including optional basic authentication.
@@ -1,9 +1,9 @@
1
- # tql_otr_factoring_data_exchange
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module TqlOtrFactoringDataExchange
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
7
  # Initializes a new instance of RequestLoggingConfiguration.
8
8
  class RequestLoggingConfiguration < CoreLibrary::ApiRequestLoggingConfiguration
9
9
  # @param log_body [Boolean] Indicates whether the message body should be logged. Default is false.
@@ -1,9 +1,9 @@
1
- # tql_otr_factoring_data_exchange
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module TqlOtrFactoringDataExchange
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
7
  # Represents the generic logger facade
8
8
  class AbstractLogger < Logger
9
9
  # Logs a message with a specified log level and additional parameters.
@@ -0,0 +1,123 @@
1
+ # freight_financials_webhook_ingestion_api
2
+ #
3
+ # This file was automatically
4
+ # generated by APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module FreightFinancialsWebhookIngestionApi
7
+ # Address Model.
8
+ class Address < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :city
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :country
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [String]
22
+ attr_accessor :line1
23
+
24
+ # TODO: Write general description for this method
25
+ # @return [String]
26
+ attr_accessor :line2
27
+
28
+ # TODO: Write general description for this method
29
+ # @return [String]
30
+ attr_accessor :name
31
+
32
+ # TODO: Write general description for this method
33
+ # @return [String]
34
+ attr_accessor :postal_code
35
+
36
+ # TODO: Write general description for this method
37
+ # @return [String]
38
+ attr_accessor :state
39
+
40
+ # A mapping from model property names to API property names.
41
+ def self.names
42
+ @_hash = {} if @_hash.nil?
43
+ @_hash['city'] = 'city'
44
+ @_hash['country'] = 'country'
45
+ @_hash['line1'] = 'line1'
46
+ @_hash['line2'] = 'line2'
47
+ @_hash['name'] = 'name'
48
+ @_hash['postal_code'] = 'postalCode'
49
+ @_hash['state'] = 'state'
50
+ @_hash
51
+ end
52
+
53
+ # An array for optional fields
54
+ def self.optionals
55
+ %w[
56
+ city
57
+ country
58
+ line1
59
+ line2
60
+ name
61
+ postal_code
62
+ state
63
+ ]
64
+ end
65
+
66
+ # An array for nullable fields
67
+ def self.nullables
68
+ %w[
69
+ line2
70
+ name
71
+ ]
72
+ end
73
+
74
+ def initialize(city: SKIP, country: SKIP, line1: SKIP, line2: SKIP,
75
+ name: SKIP, postal_code: SKIP, state: SKIP)
76
+ @city = city unless city == SKIP
77
+ @country = country unless country == SKIP
78
+ @line1 = line1 unless line1 == SKIP
79
+ @line2 = line2 unless line2 == SKIP
80
+ @name = name unless name == SKIP
81
+ @postal_code = postal_code unless postal_code == SKIP
82
+ @state = state unless state == SKIP
83
+ end
84
+
85
+ # Creates an instance of the object from a hash.
86
+ def self.from_hash(hash)
87
+ return nil unless hash
88
+
89
+ # Extract variables from the hash.
90
+ city = hash.key?('city') ? hash['city'] : SKIP
91
+ country = hash.key?('country') ? hash['country'] : SKIP
92
+ line1 = hash.key?('line1') ? hash['line1'] : SKIP
93
+ line2 = hash.key?('line2') ? hash['line2'] : SKIP
94
+ name = hash.key?('name') ? hash['name'] : SKIP
95
+ postal_code = hash.key?('postalCode') ? hash['postalCode'] : SKIP
96
+ state = hash.key?('state') ? hash['state'] : SKIP
97
+
98
+ # Create object from extracted values.
99
+ Address.new(city: city,
100
+ country: country,
101
+ line1: line1,
102
+ line2: line2,
103
+ name: name,
104
+ postal_code: postal_code,
105
+ state: state)
106
+ end
107
+
108
+ # Provides a human-readable string representation of the object.
109
+ def to_s
110
+ class_name = self.class.name.split('::').last
111
+ "<#{class_name} city: #{@city}, country: #{@country}, line1: #{@line1}, line2: #{@line2},"\
112
+ " name: #{@name}, postal_code: #{@postal_code}, state: #{@state}>"
113
+ end
114
+
115
+ # Provides a debugging-friendly string with detailed object information.
116
+ def inspect
117
+ class_name = self.class.name.split('::').last
118
+ "<#{class_name} city: #{@city.inspect}, country: #{@country.inspect}, line1:"\
119
+ " #{@line1.inspect}, line2: #{@line2.inspect}, name: #{@name.inspect}, postal_code:"\
120
+ " #{@postal_code.inspect}, state: #{@state.inspect}>"
121
+ end
122
+ end
123
+ end