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.
- checksums.yaml +4 -4
- data/README.md +148 -197
- data/bin/console +4 -4
- data/lib/freight_financials_webhook_ingestion_api/api_helper.rb +10 -0
- data/lib/freight_financials_webhook_ingestion_api/apis/assignments_api.rb +41 -0
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/apis/base_api.rb +60 -60
- data/lib/freight_financials_webhook_ingestion_api/apis/documents_api.rb +73 -0
- data/lib/freight_financials_webhook_ingestion_api/apis/freight_audit_api.rb +54 -0
- data/lib/freight_financials_webhook_ingestion_api/apis/invoices_api.rb +107 -0
- data/lib/freight_financials_webhook_ingestion_api/apis/loads_api.rb +72 -0
- data/lib/freight_financials_webhook_ingestion_api/apis/rating_api.rb +45 -0
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/client.rb +83 -97
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/configuration.rb +114 -126
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/exceptions/api_exception.rb +21 -21
- 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
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/http/api_response.rb +7 -7
- data/lib/freight_financials_webhook_ingestion_api/http/http_call_back.rb +10 -0
- data/lib/freight_financials_webhook_ingestion_api/http/http_method_enum.rb +10 -0
- data/lib/freight_financials_webhook_ingestion_api/http/http_request.rb +10 -0
- data/lib/freight_financials_webhook_ingestion_api/http/http_response.rb +10 -0
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/http/proxy_settings.rb +6 -6
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/logging/configuration/api_logging_configuration.rb +6 -6
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/logging/sdk_logger.rb +6 -6
- data/lib/freight_financials_webhook_ingestion_api/models/address.rb +123 -0
- data/lib/freight_financials_webhook_ingestion_api/models/assignment_request.rb +94 -0
- data/lib/freight_financials_webhook_ingestion_api/models/assignment_response.rb +83 -0
- data/lib/{tql_otr_factoring_data_exchange/models/assignment_response.rb → freight_financials_webhook_ingestion_api/models/assignment_response_data.rb} +124 -126
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/models/base_model.rb +110 -110
- data/lib/{tql_otr_factoring_data_exchange/models/carrier1.rb → freight_financials_webhook_ingestion_api/models/carrier.rb} +96 -98
- data/lib/freight_financials_webhook_ingestion_api/models/charge.rb +104 -0
- data/lib/freight_financials_webhook_ingestion_api/models/charge_code.rb +81 -0
- data/lib/freight_financials_webhook_ingestion_api/models/factoring_company.rb +81 -0
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/models/invoice.rb +204 -223
- data/lib/{tql_otr_factoring_data_exchange/models/document.rb → freight_financials_webhook_ingestion_api/models/invoice_document.rb} +72 -86
- data/lib/{tql_otr_factoring_data_exchange/models/invoice_exception.rb → freight_financials_webhook_ingestion_api/models/invoice_issue.rb} +122 -136
- data/lib/freight_financials_webhook_ingestion_api/models/invoice_status_response.rb +83 -0
- 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
- data/lib/freight_financials_webhook_ingestion_api/models/line_item.rb +131 -0
- data/lib/freight_financials_webhook_ingestion_api/models/load_response.rb +83 -0
- data/lib/{tql_otr_factoring_data_exchange/models/load_detail.rb → freight_financials_webhook_ingestion_api/models/load_response_data.rb} +141 -140
- data/lib/{tql_otr_factoring_data_exchange/models/load.rb → freight_financials_webhook_ingestion_api/models/load_slim.rb} +97 -110
- data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_charge.rb +116 -0
- data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_customer.rb +64 -0
- data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_line_item.rb +177 -0
- data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_request.rb +208 -0
- data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_requested_charge.rb +64 -0
- data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_response.rb +112 -0
- data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_stop.rb +107 -0
- data/lib/freight_financials_webhook_ingestion_api/models/navix_rate_vendor.rb +88 -0
- data/lib/freight_financials_webhook_ingestion_api/models/navix_webhook_event_type.rb +56 -0
- data/lib/freight_financials_webhook_ingestion_api/models/navix_webhook_request.rb +99 -0
- data/lib/freight_financials_webhook_ingestion_api/models/paged_response_of_invoice.rb +111 -0
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/models/payment.rb +94 -108
- data/lib/freight_financials_webhook_ingestion_api/models/rating_charge_qualifier.rb +68 -0
- data/lib/freight_financials_webhook_ingestion_api/models/rating_response_format.rb +40 -0
- data/lib/freight_financials_webhook_ingestion_api/models/reference_number.rb +71 -0
- data/lib/{tql_otr_factoring_data_exchange/models/invoice_search_request.rb → freight_financials_webhook_ingestion_api/models/search_request.rb} +223 -242
- data/lib/freight_financials_webhook_ingestion_api/models/search_response.rb +83 -0
- data/lib/freight_financials_webhook_ingestion_api/models/stop.rb +81 -0
- data/lib/freight_financials_webhook_ingestion_api/models/submit_invoice_request.rb +228 -0
- data/lib/freight_financials_webhook_ingestion_api/models/submit_invoice_response.rb +83 -0
- 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
- data/lib/freight_financials_webhook_ingestion_api/models/upload_request.rb +128 -0
- data/lib/freight_financials_webhook_ingestion_api/models/upload_response.rb +83 -0
- data/lib/{tql_otr_factoring_data_exchange/models/document_upload_response.rb → freight_financials_webhook_ingestion_api/models/upload_response_data.rb} +117 -137
- data/lib/freight_financials_webhook_ingestion_api/utilities/date_time_helper.rb +11 -0
- data/lib/{tql_otr_factoring_data_exchange → freight_financials_webhook_ingestion_api}/utilities/file_wrapper.rb +17 -17
- data/lib/freight_financials_webhook_ingestion_api.rb +127 -0
- metadata +67 -74
- data/lib/tql_otr_factoring_data_exchange/api_helper.rb +0 -10
- data/lib/tql_otr_factoring_data_exchange/apis/assignments_api.rb +0 -45
- data/lib/tql_otr_factoring_data_exchange/apis/documents_api.rb +0 -82
- data/lib/tql_otr_factoring_data_exchange/apis/invoices_api.rb +0 -114
- data/lib/tql_otr_factoring_data_exchange/apis/loads_api.rb +0 -68
- data/lib/tql_otr_factoring_data_exchange/apis/oauth_authorization_api.rb +0 -44
- data/lib/tql_otr_factoring_data_exchange/exceptions/oauth_provider_exception.rb +0 -64
- data/lib/tql_otr_factoring_data_exchange/http/auth/oauth_2.rb +0 -156
- data/lib/tql_otr_factoring_data_exchange/http/http_call_back.rb +0 -10
- data/lib/tql_otr_factoring_data_exchange/http/http_method_enum.rb +0 -10
- data/lib/tql_otr_factoring_data_exchange/http/http_request.rb +0 -10
- data/lib/tql_otr_factoring_data_exchange/http/http_response.rb +0 -10
- data/lib/tql_otr_factoring_data_exchange/models/assignment_request.rb +0 -140
- data/lib/tql_otr_factoring_data_exchange/models/assignment_status.rb +0 -36
- data/lib/tql_otr_factoring_data_exchange/models/base64_document.rb +0 -118
- data/lib/tql_otr_factoring_data_exchange/models/base64_document_upload_request.rb +0 -107
- data/lib/tql_otr_factoring_data_exchange/models/carrier.rb +0 -98
- data/lib/tql_otr_factoring_data_exchange/models/carrier2.rb +0 -98
- data/lib/tql_otr_factoring_data_exchange/models/carrier_input.rb +0 -123
- data/lib/tql_otr_factoring_data_exchange/models/carrier_input1.rb +0 -123
- data/lib/tql_otr_factoring_data_exchange/models/charge_code.rb +0 -126
- data/lib/tql_otr_factoring_data_exchange/models/charge_code_origin.rb +0 -49
- data/lib/tql_otr_factoring_data_exchange/models/charge_input.rb +0 -146
- data/lib/tql_otr_factoring_data_exchange/models/document_type.rb +0 -288
- data/lib/tql_otr_factoring_data_exchange/models/document_upload_metadata.rb +0 -111
- data/lib/tql_otr_factoring_data_exchange/models/exception_severity.rb +0 -40
- data/lib/tql_otr_factoring_data_exchange/models/factoring_company_input.rb +0 -117
- data/lib/tql_otr_factoring_data_exchange/models/invoice_item_input.rb +0 -165
- data/lib/tql_otr_factoring_data_exchange/models/invoice_search_response.rb +0 -124
- data/lib/tql_otr_factoring_data_exchange/models/invoice_status.rb +0 -74
- data/lib/tql_otr_factoring_data_exchange/models/invoice_type.rb +0 -50
- data/lib/tql_otr_factoring_data_exchange/models/load_search_request.rb +0 -205
- data/lib/tql_otr_factoring_data_exchange/models/load_search_response.rb +0 -124
- data/lib/tql_otr_factoring_data_exchange/models/load_status.rb +0 -56
- data/lib/tql_otr_factoring_data_exchange/models/location.rb +0 -149
- data/lib/tql_otr_factoring_data_exchange/models/oauth_provider_error.rb +0 -62
- data/lib/tql_otr_factoring_data_exchange/models/oauth_scope.rb +0 -36
- data/lib/tql_otr_factoring_data_exchange/models/oauth_token.rb +0 -96
- data/lib/tql_otr_factoring_data_exchange/models/problem_details.rb +0 -96
- data/lib/tql_otr_factoring_data_exchange/models/reference_number_input.rb +0 -109
- data/lib/tql_otr_factoring_data_exchange/models/reference_type.rb +0 -90
- data/lib/tql_otr_factoring_data_exchange/models/status.rb +0 -44
- data/lib/tql_otr_factoring_data_exchange/models/stop_input.rb +0 -121
- data/lib/tql_otr_factoring_data_exchange/models/stop_type.rb +0 -62
- data/lib/tql_otr_factoring_data_exchange/models/submit_invoice_request.rb +0 -326
- data/lib/tql_otr_factoring_data_exchange/models/weight_unit.rb +0 -36
- data/lib/tql_otr_factoring_data_exchange/utilities/date_time_helper.rb +0 -11
- data/lib/tql_otr_factoring_data_exchange/utilities/union_type_lookup.rb +0 -29
- data/lib/tql_otr_factoring_data_exchange.rb +0 -107
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
# RatingChargeQualifier.
|
|
8
|
+
class RatingChargeQualifier
|
|
9
|
+
RATING_CHARGE_QUALIFIER = [
|
|
10
|
+
# TODO: Write general description for PERPOUND
|
|
11
|
+
PERPOUND = 'PerPound'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for PERHUNDREDWEIGHT
|
|
14
|
+
PERHUNDREDWEIGHT = 'PerHundredweight'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for PERTON
|
|
17
|
+
PERTON = 'PerTon'.freeze,
|
|
18
|
+
|
|
19
|
+
# TODO: Write general description for PERMILE
|
|
20
|
+
PERMILE = 'PerMile'.freeze,
|
|
21
|
+
|
|
22
|
+
# TODO: Write general description for PERKILOMETER
|
|
23
|
+
PERKILOMETER = 'PerKilometer'.freeze,
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for PERHOUR
|
|
26
|
+
PERHOUR = 'PerHour'.freeze,
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for PERCASE
|
|
29
|
+
PERCASE = 'PerCase'.freeze,
|
|
30
|
+
|
|
31
|
+
# TODO: Write general description for PERPALLET
|
|
32
|
+
PERPALLET = 'PerPallet'.freeze,
|
|
33
|
+
|
|
34
|
+
# TODO: Write general description for PERUNIT
|
|
35
|
+
PERUNIT = 'PerUnit'.freeze,
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for PERCENT
|
|
38
|
+
PERCENT = 'Percent'.freeze
|
|
39
|
+
].freeze
|
|
40
|
+
|
|
41
|
+
def self.validate(value)
|
|
42
|
+
return false if value.nil?
|
|
43
|
+
|
|
44
|
+
RATING_CHARGE_QUALIFIER.include?(value)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def self.from_value(value, default_value = PERPOUND)
|
|
48
|
+
return default_value if value.nil?
|
|
49
|
+
|
|
50
|
+
str = value.to_s.strip
|
|
51
|
+
|
|
52
|
+
case str.downcase
|
|
53
|
+
when 'perpound' then PERPOUND
|
|
54
|
+
when 'perhundredweight' then PERHUNDREDWEIGHT
|
|
55
|
+
when 'perton' then PERTON
|
|
56
|
+
when 'permile' then PERMILE
|
|
57
|
+
when 'perkilometer' then PERKILOMETER
|
|
58
|
+
when 'perhour' then PERHOUR
|
|
59
|
+
when 'percase' then PERCASE
|
|
60
|
+
when 'perpallet' then PERPALLET
|
|
61
|
+
when 'perunit' then PERUNIT
|
|
62
|
+
when 'percent' then PERCENT
|
|
63
|
+
else
|
|
64
|
+
default_value
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
# RatingResponseFormat.
|
|
8
|
+
class RatingResponseFormat
|
|
9
|
+
RATING_RESPONSE_FORMAT = [
|
|
10
|
+
# TODO: Write general description for TEXT
|
|
11
|
+
TEXT = 'Text'.freeze,
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for JSON
|
|
14
|
+
JSON = 'Json'.freeze,
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for XML
|
|
17
|
+
XML = 'Xml'.freeze
|
|
18
|
+
].freeze
|
|
19
|
+
|
|
20
|
+
def self.validate(value)
|
|
21
|
+
return false if value.nil?
|
|
22
|
+
|
|
23
|
+
RATING_RESPONSE_FORMAT.include?(value)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.from_value(value, default_value = TEXT)
|
|
27
|
+
return default_value if value.nil?
|
|
28
|
+
|
|
29
|
+
str = value.to_s.strip
|
|
30
|
+
|
|
31
|
+
case str.downcase
|
|
32
|
+
when 'text' then TEXT
|
|
33
|
+
when 'json' then JSON
|
|
34
|
+
when 'xml' then XML
|
|
35
|
+
else
|
|
36
|
+
default_value
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
# ReferenceNumber Model.
|
|
8
|
+
class ReferenceNumber < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [Integer]
|
|
14
|
+
attr_accessor :reference_type
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :value
|
|
19
|
+
|
|
20
|
+
# A mapping from model property names to API property names.
|
|
21
|
+
def self.names
|
|
22
|
+
@_hash = {} if @_hash.nil?
|
|
23
|
+
@_hash['reference_type'] = 'referenceType'
|
|
24
|
+
@_hash['value'] = 'value'
|
|
25
|
+
@_hash
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# An array for optional fields
|
|
29
|
+
def self.optionals
|
|
30
|
+
%w[
|
|
31
|
+
reference_type
|
|
32
|
+
value
|
|
33
|
+
]
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# An array for nullable fields
|
|
37
|
+
def self.nullables
|
|
38
|
+
[]
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def initialize(reference_type: SKIP, value: SKIP)
|
|
42
|
+
@reference_type = reference_type unless reference_type == SKIP
|
|
43
|
+
@value = value unless value == SKIP
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Creates an instance of the object from a hash.
|
|
47
|
+
def self.from_hash(hash)
|
|
48
|
+
return nil unless hash
|
|
49
|
+
|
|
50
|
+
# Extract variables from the hash.
|
|
51
|
+
reference_type = hash.key?('referenceType') ? hash['referenceType'] : SKIP
|
|
52
|
+
value = hash.key?('value') ? hash['value'] : SKIP
|
|
53
|
+
|
|
54
|
+
# Create object from extracted values.
|
|
55
|
+
ReferenceNumber.new(reference_type: reference_type,
|
|
56
|
+
value: value)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Provides a human-readable string representation of the object.
|
|
60
|
+
def to_s
|
|
61
|
+
class_name = self.class.name.split('::').last
|
|
62
|
+
"<#{class_name} reference_type: #{@reference_type}, value: #{@value}>"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
66
|
+
def inspect
|
|
67
|
+
class_name = self.class.name.split('::').last
|
|
68
|
+
"<#{class_name} reference_type: #{@reference_type.inspect}, value: #{@value.inspect}>"
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -1,242 +1,223 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically
|
|
4
|
-
# APIMATIC v3.0 ( https://www.apimatic.io ).
|
|
5
|
-
|
|
6
|
-
require 'date'
|
|
7
|
-
module
|
|
8
|
-
#
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
#
|
|
18
|
-
# @return [
|
|
19
|
-
attr_accessor :
|
|
20
|
-
|
|
21
|
-
#
|
|
22
|
-
# @return [
|
|
23
|
-
attr_accessor :
|
|
24
|
-
|
|
25
|
-
#
|
|
26
|
-
# @return [Array[String]]
|
|
27
|
-
attr_accessor :
|
|
28
|
-
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
#
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
#
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
#
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
#
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
#
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
#
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
#
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
@_hash =
|
|
71
|
-
@_hash['page'] = 'page'
|
|
72
|
-
@_hash['page_size'] = 'pageSize'
|
|
73
|
-
@_hash['
|
|
74
|
-
@_hash['
|
|
75
|
-
@_hash['statuses'] = 'statuses'
|
|
76
|
-
@_hash
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
@
|
|
128
|
-
@
|
|
129
|
-
@
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
" #{@carrier_mc_numbers}, last_updated_after: #{@last_updated_after}, last_updated_before:"\
|
|
225
|
-
" #{@last_updated_before}, received_after: #{@received_after}, received_before:"\
|
|
226
|
-
" #{@received_before}, additional_properties: #{@additional_properties}>"
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
# Provides a debugging-friendly string with detailed object information.
|
|
230
|
-
def inspect
|
|
231
|
-
class_name = self.class.name.split('::').last
|
|
232
|
-
"<#{class_name} page: #{@page.inspect}, page_size: #{@page_size.inspect}, load_numbers:"\
|
|
233
|
-
" #{@load_numbers.inspect}, invoice_numbers: #{@invoice_numbers.inspect}, statuses:"\
|
|
234
|
-
" #{@statuses.inspect}, carrier_names: #{@carrier_names.inspect}, carrier_dot_numbers:"\
|
|
235
|
-
" #{@carrier_dot_numbers.inspect}, carrier_mc_numbers: #{@carrier_mc_numbers.inspect},"\
|
|
236
|
-
" last_updated_after: #{@last_updated_after.inspect}, last_updated_before:"\
|
|
237
|
-
" #{@last_updated_before.inspect}, received_after: #{@received_after.inspect},"\
|
|
238
|
-
" received_before: #{@received_before.inspect}, additional_properties:"\
|
|
239
|
-
" #{@additional_properties}>"
|
|
240
|
-
end
|
|
241
|
-
end
|
|
242
|
-
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
|
+
require 'date'
|
|
7
|
+
module FreightFinancialsWebhookIngestionApi
|
|
8
|
+
# SearchRequest Model.
|
|
9
|
+
class SearchRequest < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [Array[String]]
|
|
15
|
+
attr_accessor :carrier_dot_numbers
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for this method
|
|
18
|
+
# @return [Array[String]]
|
|
19
|
+
attr_accessor :carrier_mc_numbers
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [Array[String]]
|
|
23
|
+
attr_accessor :carrier_names
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [Array[String]]
|
|
27
|
+
attr_accessor :invoice_numbers
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for this method
|
|
30
|
+
# @return [DateTime]
|
|
31
|
+
attr_accessor :last_updated_after
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for this method
|
|
34
|
+
# @return [DateTime]
|
|
35
|
+
attr_accessor :last_updated_before
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for this method
|
|
38
|
+
# @return [Array[String]]
|
|
39
|
+
attr_accessor :load_numbers
|
|
40
|
+
|
|
41
|
+
# TODO: Write general description for this method
|
|
42
|
+
# @return [Integer]
|
|
43
|
+
attr_accessor :page
|
|
44
|
+
|
|
45
|
+
# TODO: Write general description for this method
|
|
46
|
+
# @return [Integer]
|
|
47
|
+
attr_accessor :page_size
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for this method
|
|
50
|
+
# @return [DateTime]
|
|
51
|
+
attr_accessor :received_after
|
|
52
|
+
|
|
53
|
+
# TODO: Write general description for this method
|
|
54
|
+
# @return [DateTime]
|
|
55
|
+
attr_accessor :received_before
|
|
56
|
+
|
|
57
|
+
# TODO: Write general description for this method
|
|
58
|
+
# @return [Array[Integer]]
|
|
59
|
+
attr_accessor :statuses
|
|
60
|
+
|
|
61
|
+
# A mapping from model property names to API property names.
|
|
62
|
+
def self.names
|
|
63
|
+
@_hash = {} if @_hash.nil?
|
|
64
|
+
@_hash['carrier_dot_numbers'] = 'carrierDotNumbers'
|
|
65
|
+
@_hash['carrier_mc_numbers'] = 'carrierMcNumbers'
|
|
66
|
+
@_hash['carrier_names'] = 'carrierNames'
|
|
67
|
+
@_hash['invoice_numbers'] = 'invoiceNumbers'
|
|
68
|
+
@_hash['last_updated_after'] = 'lastUpdatedAfter'
|
|
69
|
+
@_hash['last_updated_before'] = 'lastUpdatedBefore'
|
|
70
|
+
@_hash['load_numbers'] = 'loadNumbers'
|
|
71
|
+
@_hash['page'] = 'page'
|
|
72
|
+
@_hash['page_size'] = 'pageSize'
|
|
73
|
+
@_hash['received_after'] = 'receivedAfter'
|
|
74
|
+
@_hash['received_before'] = 'receivedBefore'
|
|
75
|
+
@_hash['statuses'] = 'statuses'
|
|
76
|
+
@_hash
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# An array for optional fields
|
|
80
|
+
def self.optionals
|
|
81
|
+
%w[
|
|
82
|
+
carrier_dot_numbers
|
|
83
|
+
carrier_mc_numbers
|
|
84
|
+
carrier_names
|
|
85
|
+
invoice_numbers
|
|
86
|
+
last_updated_after
|
|
87
|
+
last_updated_before
|
|
88
|
+
load_numbers
|
|
89
|
+
page
|
|
90
|
+
page_size
|
|
91
|
+
received_after
|
|
92
|
+
received_before
|
|
93
|
+
statuses
|
|
94
|
+
]
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# An array for nullable fields
|
|
98
|
+
def self.nullables
|
|
99
|
+
%w[
|
|
100
|
+
carrier_dot_numbers
|
|
101
|
+
carrier_mc_numbers
|
|
102
|
+
carrier_names
|
|
103
|
+
invoice_numbers
|
|
104
|
+
last_updated_after
|
|
105
|
+
last_updated_before
|
|
106
|
+
load_numbers
|
|
107
|
+
received_after
|
|
108
|
+
received_before
|
|
109
|
+
statuses
|
|
110
|
+
]
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def initialize(carrier_dot_numbers: SKIP, carrier_mc_numbers: SKIP,
|
|
114
|
+
carrier_names: SKIP, invoice_numbers: SKIP,
|
|
115
|
+
last_updated_after: SKIP, last_updated_before: SKIP,
|
|
116
|
+
load_numbers: SKIP, page: SKIP, page_size: SKIP,
|
|
117
|
+
received_after: SKIP, received_before: SKIP, statuses: SKIP)
|
|
118
|
+
@carrier_dot_numbers = carrier_dot_numbers unless carrier_dot_numbers == SKIP
|
|
119
|
+
@carrier_mc_numbers = carrier_mc_numbers unless carrier_mc_numbers == SKIP
|
|
120
|
+
@carrier_names = carrier_names unless carrier_names == SKIP
|
|
121
|
+
@invoice_numbers = invoice_numbers unless invoice_numbers == SKIP
|
|
122
|
+
@last_updated_after = last_updated_after unless last_updated_after == SKIP
|
|
123
|
+
@last_updated_before = last_updated_before unless last_updated_before == SKIP
|
|
124
|
+
@load_numbers = load_numbers unless load_numbers == SKIP
|
|
125
|
+
@page = page unless page == SKIP
|
|
126
|
+
@page_size = page_size unless page_size == SKIP
|
|
127
|
+
@received_after = received_after unless received_after == SKIP
|
|
128
|
+
@received_before = received_before unless received_before == SKIP
|
|
129
|
+
@statuses = statuses unless statuses == SKIP
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Creates an instance of the object from a hash.
|
|
133
|
+
def self.from_hash(hash)
|
|
134
|
+
return nil unless hash
|
|
135
|
+
|
|
136
|
+
# Extract variables from the hash.
|
|
137
|
+
carrier_dot_numbers =
|
|
138
|
+
hash.key?('carrierDotNumbers') ? hash['carrierDotNumbers'] : SKIP
|
|
139
|
+
carrier_mc_numbers =
|
|
140
|
+
hash.key?('carrierMcNumbers') ? hash['carrierMcNumbers'] : SKIP
|
|
141
|
+
carrier_names = hash.key?('carrierNames') ? hash['carrierNames'] : SKIP
|
|
142
|
+
invoice_numbers =
|
|
143
|
+
hash.key?('invoiceNumbers') ? hash['invoiceNumbers'] : SKIP
|
|
144
|
+
last_updated_after = if hash.key?('lastUpdatedAfter')
|
|
145
|
+
(DateTimeHelper.from_rfc3339(hash['lastUpdatedAfter']) if hash['lastUpdatedAfter'])
|
|
146
|
+
else
|
|
147
|
+
SKIP
|
|
148
|
+
end
|
|
149
|
+
last_updated_before = if hash.key?('lastUpdatedBefore')
|
|
150
|
+
(DateTimeHelper.from_rfc3339(hash['lastUpdatedBefore']) if hash['lastUpdatedBefore'])
|
|
151
|
+
else
|
|
152
|
+
SKIP
|
|
153
|
+
end
|
|
154
|
+
load_numbers = hash.key?('loadNumbers') ? hash['loadNumbers'] : SKIP
|
|
155
|
+
page = hash.key?('page') ? hash['page'] : SKIP
|
|
156
|
+
page_size = hash.key?('pageSize') ? hash['pageSize'] : SKIP
|
|
157
|
+
received_after = if hash.key?('receivedAfter')
|
|
158
|
+
(DateTimeHelper.from_rfc3339(hash['receivedAfter']) if hash['receivedAfter'])
|
|
159
|
+
else
|
|
160
|
+
SKIP
|
|
161
|
+
end
|
|
162
|
+
received_before = if hash.key?('receivedBefore')
|
|
163
|
+
(DateTimeHelper.from_rfc3339(hash['receivedBefore']) if hash['receivedBefore'])
|
|
164
|
+
else
|
|
165
|
+
SKIP
|
|
166
|
+
end
|
|
167
|
+
statuses = hash.key?('statuses') ? hash['statuses'] : SKIP
|
|
168
|
+
|
|
169
|
+
# Create object from extracted values.
|
|
170
|
+
SearchRequest.new(carrier_dot_numbers: carrier_dot_numbers,
|
|
171
|
+
carrier_mc_numbers: carrier_mc_numbers,
|
|
172
|
+
carrier_names: carrier_names,
|
|
173
|
+
invoice_numbers: invoice_numbers,
|
|
174
|
+
last_updated_after: last_updated_after,
|
|
175
|
+
last_updated_before: last_updated_before,
|
|
176
|
+
load_numbers: load_numbers,
|
|
177
|
+
page: page,
|
|
178
|
+
page_size: page_size,
|
|
179
|
+
received_after: received_after,
|
|
180
|
+
received_before: received_before,
|
|
181
|
+
statuses: statuses)
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def to_custom_last_updated_after
|
|
185
|
+
DateTimeHelper.to_rfc3339(last_updated_after)
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
def to_custom_last_updated_before
|
|
189
|
+
DateTimeHelper.to_rfc3339(last_updated_before)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
def to_custom_received_after
|
|
193
|
+
DateTimeHelper.to_rfc3339(received_after)
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
def to_custom_received_before
|
|
197
|
+
DateTimeHelper.to_rfc3339(received_before)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Provides a human-readable string representation of the object.
|
|
201
|
+
def to_s
|
|
202
|
+
class_name = self.class.name.split('::').last
|
|
203
|
+
"<#{class_name} carrier_dot_numbers: #{@carrier_dot_numbers}, carrier_mc_numbers:"\
|
|
204
|
+
" #{@carrier_mc_numbers}, carrier_names: #{@carrier_names}, invoice_numbers:"\
|
|
205
|
+
" #{@invoice_numbers}, last_updated_after: #{@last_updated_after}, last_updated_before:"\
|
|
206
|
+
" #{@last_updated_before}, load_numbers: #{@load_numbers}, page: #{@page}, page_size:"\
|
|
207
|
+
" #{@page_size}, received_after: #{@received_after}, received_before: #{@received_before},"\
|
|
208
|
+
" statuses: #{@statuses}>"
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
212
|
+
def inspect
|
|
213
|
+
class_name = self.class.name.split('::').last
|
|
214
|
+
"<#{class_name} carrier_dot_numbers: #{@carrier_dot_numbers.inspect}, carrier_mc_numbers:"\
|
|
215
|
+
" #{@carrier_mc_numbers.inspect}, carrier_names: #{@carrier_names.inspect}, invoice_numbers:"\
|
|
216
|
+
" #{@invoice_numbers.inspect}, last_updated_after: #{@last_updated_after.inspect},"\
|
|
217
|
+
" last_updated_before: #{@last_updated_before.inspect}, load_numbers:"\
|
|
218
|
+
" #{@load_numbers.inspect}, page: #{@page.inspect}, page_size: #{@page_size.inspect},"\
|
|
219
|
+
" received_after: #{@received_after.inspect}, received_before: #{@received_before.inspect},"\
|
|
220
|
+
" statuses: #{@statuses.inspect}>"
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
end
|