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,64 @@
|
|
|
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
|
+
# NavixRateCustomer Model.
|
|
8
|
+
class NavixRateCustomer < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :external_id
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['external_id'] = 'externalId'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
external_id
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
%w[
|
|
33
|
+
external_id
|
|
34
|
+
]
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def initialize(external_id: SKIP)
|
|
38
|
+
@external_id = external_id unless external_id == SKIP
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Creates an instance of the object from a hash.
|
|
42
|
+
def self.from_hash(hash)
|
|
43
|
+
return nil unless hash
|
|
44
|
+
|
|
45
|
+
# Extract variables from the hash.
|
|
46
|
+
external_id = hash.key?('externalId') ? hash['externalId'] : SKIP
|
|
47
|
+
|
|
48
|
+
# Create object from extracted values.
|
|
49
|
+
NavixRateCustomer.new(external_id: external_id)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Provides a human-readable string representation of the object.
|
|
53
|
+
def to_s
|
|
54
|
+
class_name = self.class.name.split('::').last
|
|
55
|
+
"<#{class_name} external_id: #{@external_id}>"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
59
|
+
def inspect
|
|
60
|
+
class_name = self.class.name.split('::').last
|
|
61
|
+
"<#{class_name} external_id: #{@external_id.inspect}>"
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,177 @@
|
|
|
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
|
+
# NavixRateLineItem Model.
|
|
8
|
+
class NavixRateLineItem < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :description
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :handling_unit
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :handling_unit_code
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [Float]
|
|
26
|
+
attr_accessor :handling_unit_count
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :weight_unit
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [Float]
|
|
34
|
+
attr_accessor :mclass
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [Float]
|
|
38
|
+
attr_accessor :height
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [Float]
|
|
42
|
+
attr_accessor :width
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [Float]
|
|
46
|
+
attr_accessor :length
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [Float]
|
|
50
|
+
attr_accessor :weight
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [TrueClass | FalseClass]
|
|
54
|
+
attr_accessor :stackable
|
|
55
|
+
|
|
56
|
+
# A mapping from model property names to API property names.
|
|
57
|
+
def self.names
|
|
58
|
+
@_hash = {} if @_hash.nil?
|
|
59
|
+
@_hash['description'] = 'description'
|
|
60
|
+
@_hash['handling_unit'] = 'handlingUnit'
|
|
61
|
+
@_hash['handling_unit_code'] = 'handlingUnitCode'
|
|
62
|
+
@_hash['handling_unit_count'] = 'handlingUnitCount'
|
|
63
|
+
@_hash['weight_unit'] = 'weightUnit'
|
|
64
|
+
@_hash['mclass'] = 'Class'
|
|
65
|
+
@_hash['height'] = 'height'
|
|
66
|
+
@_hash['width'] = 'width'
|
|
67
|
+
@_hash['length'] = 'length'
|
|
68
|
+
@_hash['weight'] = 'weight'
|
|
69
|
+
@_hash['stackable'] = 'stackable'
|
|
70
|
+
@_hash
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# An array for optional fields
|
|
74
|
+
def self.optionals
|
|
75
|
+
%w[
|
|
76
|
+
description
|
|
77
|
+
handling_unit
|
|
78
|
+
handling_unit_code
|
|
79
|
+
handling_unit_count
|
|
80
|
+
weight_unit
|
|
81
|
+
mclass
|
|
82
|
+
height
|
|
83
|
+
width
|
|
84
|
+
length
|
|
85
|
+
weight
|
|
86
|
+
stackable
|
|
87
|
+
]
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# An array for nullable fields
|
|
91
|
+
def self.nullables
|
|
92
|
+
%w[
|
|
93
|
+
description
|
|
94
|
+
handling_unit
|
|
95
|
+
handling_unit_code
|
|
96
|
+
handling_unit_count
|
|
97
|
+
weight_unit
|
|
98
|
+
mclass
|
|
99
|
+
height
|
|
100
|
+
width
|
|
101
|
+
length
|
|
102
|
+
weight
|
|
103
|
+
stackable
|
|
104
|
+
]
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def initialize(description: SKIP, handling_unit: SKIP,
|
|
108
|
+
handling_unit_code: SKIP, handling_unit_count: SKIP,
|
|
109
|
+
weight_unit: SKIP, mclass: SKIP, height: SKIP, width: SKIP,
|
|
110
|
+
length: SKIP, weight: SKIP, stackable: SKIP)
|
|
111
|
+
@description = description unless description == SKIP
|
|
112
|
+
@handling_unit = handling_unit unless handling_unit == SKIP
|
|
113
|
+
@handling_unit_code = handling_unit_code unless handling_unit_code == SKIP
|
|
114
|
+
@handling_unit_count = handling_unit_count unless handling_unit_count == SKIP
|
|
115
|
+
@weight_unit = weight_unit unless weight_unit == SKIP
|
|
116
|
+
@mclass = mclass unless mclass == SKIP
|
|
117
|
+
@height = height unless height == SKIP
|
|
118
|
+
@width = width unless width == SKIP
|
|
119
|
+
@length = length unless length == SKIP
|
|
120
|
+
@weight = weight unless weight == SKIP
|
|
121
|
+
@stackable = stackable unless stackable == SKIP
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Creates an instance of the object from a hash.
|
|
125
|
+
def self.from_hash(hash)
|
|
126
|
+
return nil unless hash
|
|
127
|
+
|
|
128
|
+
# Extract variables from the hash.
|
|
129
|
+
description = hash.key?('description') ? hash['description'] : SKIP
|
|
130
|
+
handling_unit = hash.key?('handlingUnit') ? hash['handlingUnit'] : SKIP
|
|
131
|
+
handling_unit_code =
|
|
132
|
+
hash.key?('handlingUnitCode') ? hash['handlingUnitCode'] : SKIP
|
|
133
|
+
handling_unit_count =
|
|
134
|
+
hash.key?('handlingUnitCount') ? hash['handlingUnitCount'] : SKIP
|
|
135
|
+
weight_unit = hash.key?('weightUnit') ? hash['weightUnit'] : SKIP
|
|
136
|
+
mclass = hash.key?('Class') ? hash['Class'] : SKIP
|
|
137
|
+
height = hash.key?('height') ? hash['height'] : SKIP
|
|
138
|
+
width = hash.key?('width') ? hash['width'] : SKIP
|
|
139
|
+
length = hash.key?('length') ? hash['length'] : SKIP
|
|
140
|
+
weight = hash.key?('weight') ? hash['weight'] : SKIP
|
|
141
|
+
stackable = hash.key?('stackable') ? hash['stackable'] : SKIP
|
|
142
|
+
|
|
143
|
+
# Create object from extracted values.
|
|
144
|
+
NavixRateLineItem.new(description: description,
|
|
145
|
+
handling_unit: handling_unit,
|
|
146
|
+
handling_unit_code: handling_unit_code,
|
|
147
|
+
handling_unit_count: handling_unit_count,
|
|
148
|
+
weight_unit: weight_unit,
|
|
149
|
+
mclass: mclass,
|
|
150
|
+
height: height,
|
|
151
|
+
width: width,
|
|
152
|
+
length: length,
|
|
153
|
+
weight: weight,
|
|
154
|
+
stackable: stackable)
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Provides a human-readable string representation of the object.
|
|
158
|
+
def to_s
|
|
159
|
+
class_name = self.class.name.split('::').last
|
|
160
|
+
"<#{class_name} description: #{@description}, handling_unit: #{@handling_unit},"\
|
|
161
|
+
" handling_unit_code: #{@handling_unit_code}, handling_unit_count: #{@handling_unit_count},"\
|
|
162
|
+
" weight_unit: #{@weight_unit}, mclass: #{@mclass}, height: #{@height}, width: #{@width},"\
|
|
163
|
+
" length: #{@length}, weight: #{@weight}, stackable: #{@stackable}>"
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
167
|
+
def inspect
|
|
168
|
+
class_name = self.class.name.split('::').last
|
|
169
|
+
"<#{class_name} description: #{@description.inspect}, handling_unit:"\
|
|
170
|
+
" #{@handling_unit.inspect}, handling_unit_code: #{@handling_unit_code.inspect},"\
|
|
171
|
+
" handling_unit_count: #{@handling_unit_count.inspect}, weight_unit:"\
|
|
172
|
+
" #{@weight_unit.inspect}, mclass: #{@mclass.inspect}, height: #{@height.inspect}, width:"\
|
|
173
|
+
" #{@width.inspect}, length: #{@length.inspect}, weight: #{@weight.inspect}, stackable:"\
|
|
174
|
+
" #{@stackable.inspect}>"
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
@@ -0,0 +1,208 @@
|
|
|
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
|
+
# NavixRateRequest Model.
|
|
9
|
+
class NavixRateRequest < BaseModel
|
|
10
|
+
SKIP = Object.new
|
|
11
|
+
private_constant :SKIP
|
|
12
|
+
|
|
13
|
+
# TODO: Write general description for this method
|
|
14
|
+
# @return [String]
|
|
15
|
+
attr_accessor :uuid
|
|
16
|
+
|
|
17
|
+
# TODO: Write general description for this method
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :freight_charge_terms
|
|
20
|
+
|
|
21
|
+
# TODO: Write general description for this method
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :external_order_id
|
|
24
|
+
|
|
25
|
+
# TODO: Write general description for this method
|
|
26
|
+
# @return [DateTime]
|
|
27
|
+
attr_accessor :ship_date
|
|
28
|
+
|
|
29
|
+
# TODO: Write general description for this method
|
|
30
|
+
# @return [DateTime]
|
|
31
|
+
attr_accessor :delivery_date
|
|
32
|
+
|
|
33
|
+
# TODO: Write general description for this method
|
|
34
|
+
# @return [NavixRateCustomer]
|
|
35
|
+
attr_accessor :customer
|
|
36
|
+
|
|
37
|
+
# TODO: Write general description for this method
|
|
38
|
+
# @return [NavixRateVendor]
|
|
39
|
+
attr_accessor :vendor
|
|
40
|
+
|
|
41
|
+
# TODO: Write general description for this method
|
|
42
|
+
# @return [Array[NavixRateRequestedCharge]]
|
|
43
|
+
attr_accessor :vendor_charges
|
|
44
|
+
|
|
45
|
+
# TODO: Write general description for this method
|
|
46
|
+
# @return [Array[NavixRateStop]]
|
|
47
|
+
attr_accessor :stops
|
|
48
|
+
|
|
49
|
+
# TODO: Write general description for this method
|
|
50
|
+
# @return [Array[NavixRateLineItem]]
|
|
51
|
+
attr_accessor :line_items
|
|
52
|
+
|
|
53
|
+
# A mapping from model property names to API property names.
|
|
54
|
+
def self.names
|
|
55
|
+
@_hash = {} if @_hash.nil?
|
|
56
|
+
@_hash['uuid'] = 'uuid'
|
|
57
|
+
@_hash['freight_charge_terms'] = 'freightChargeTerms'
|
|
58
|
+
@_hash['external_order_id'] = 'externalOrderId'
|
|
59
|
+
@_hash['ship_date'] = 'shipDate'
|
|
60
|
+
@_hash['delivery_date'] = 'deliveryDate'
|
|
61
|
+
@_hash['customer'] = 'customer'
|
|
62
|
+
@_hash['vendor'] = 'vendor'
|
|
63
|
+
@_hash['vendor_charges'] = 'vendorCharges'
|
|
64
|
+
@_hash['stops'] = 'stops'
|
|
65
|
+
@_hash['line_items'] = 'lineItems'
|
|
66
|
+
@_hash
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# An array for optional fields
|
|
70
|
+
def self.optionals
|
|
71
|
+
%w[
|
|
72
|
+
uuid
|
|
73
|
+
freight_charge_terms
|
|
74
|
+
external_order_id
|
|
75
|
+
ship_date
|
|
76
|
+
delivery_date
|
|
77
|
+
customer
|
|
78
|
+
vendor
|
|
79
|
+
vendor_charges
|
|
80
|
+
stops
|
|
81
|
+
line_items
|
|
82
|
+
]
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# An array for nullable fields
|
|
86
|
+
def self.nullables
|
|
87
|
+
%w[
|
|
88
|
+
freight_charge_terms
|
|
89
|
+
ship_date
|
|
90
|
+
delivery_date
|
|
91
|
+
customer
|
|
92
|
+
vendor
|
|
93
|
+
vendor_charges
|
|
94
|
+
stops
|
|
95
|
+
line_items
|
|
96
|
+
]
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def initialize(uuid: SKIP, freight_charge_terms: SKIP,
|
|
100
|
+
external_order_id: SKIP, ship_date: SKIP,
|
|
101
|
+
delivery_date: SKIP, customer: SKIP, vendor: SKIP,
|
|
102
|
+
vendor_charges: SKIP, stops: SKIP, line_items: SKIP)
|
|
103
|
+
@uuid = uuid unless uuid == SKIP
|
|
104
|
+
@freight_charge_terms = freight_charge_terms unless freight_charge_terms == SKIP
|
|
105
|
+
@external_order_id = external_order_id unless external_order_id == SKIP
|
|
106
|
+
@ship_date = ship_date unless ship_date == SKIP
|
|
107
|
+
@delivery_date = delivery_date unless delivery_date == SKIP
|
|
108
|
+
@customer = customer unless customer == SKIP
|
|
109
|
+
@vendor = vendor unless vendor == SKIP
|
|
110
|
+
@vendor_charges = vendor_charges unless vendor_charges == SKIP
|
|
111
|
+
@stops = stops unless stops == SKIP
|
|
112
|
+
@line_items = line_items unless line_items == SKIP
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Creates an instance of the object from a hash.
|
|
116
|
+
def self.from_hash(hash)
|
|
117
|
+
return nil unless hash
|
|
118
|
+
|
|
119
|
+
# Extract variables from the hash.
|
|
120
|
+
uuid = hash.key?('uuid') ? hash['uuid'] : SKIP
|
|
121
|
+
freight_charge_terms =
|
|
122
|
+
hash.key?('freightChargeTerms') ? hash['freightChargeTerms'] : SKIP
|
|
123
|
+
external_order_id =
|
|
124
|
+
hash.key?('externalOrderId') ? hash['externalOrderId'] : SKIP
|
|
125
|
+
ship_date = if hash.key?('shipDate')
|
|
126
|
+
(DateTimeHelper.from_rfc3339(hash['shipDate']) if hash['shipDate'])
|
|
127
|
+
else
|
|
128
|
+
SKIP
|
|
129
|
+
end
|
|
130
|
+
delivery_date = if hash.key?('deliveryDate')
|
|
131
|
+
(DateTimeHelper.from_rfc3339(hash['deliveryDate']) if hash['deliveryDate'])
|
|
132
|
+
else
|
|
133
|
+
SKIP
|
|
134
|
+
end
|
|
135
|
+
customer = NavixRateCustomer.from_hash(hash['customer']) if hash['customer']
|
|
136
|
+
vendor = NavixRateVendor.from_hash(hash['vendor']) if hash['vendor']
|
|
137
|
+
# Parameter is an array, so we need to iterate through it
|
|
138
|
+
vendor_charges = nil
|
|
139
|
+
unless hash['vendorCharges'].nil?
|
|
140
|
+
vendor_charges = []
|
|
141
|
+
hash['vendorCharges'].each do |structure|
|
|
142
|
+
vendor_charges << (NavixRateRequestedCharge.from_hash(structure) if structure)
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
vendor_charges = SKIP unless hash.key?('vendorCharges')
|
|
147
|
+
# Parameter is an array, so we need to iterate through it
|
|
148
|
+
stops = nil
|
|
149
|
+
unless hash['stops'].nil?
|
|
150
|
+
stops = []
|
|
151
|
+
hash['stops'].each do |structure|
|
|
152
|
+
stops << (NavixRateStop.from_hash(structure) if structure)
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
stops = SKIP unless hash.key?('stops')
|
|
157
|
+
# Parameter is an array, so we need to iterate through it
|
|
158
|
+
line_items = nil
|
|
159
|
+
unless hash['lineItems'].nil?
|
|
160
|
+
line_items = []
|
|
161
|
+
hash['lineItems'].each do |structure|
|
|
162
|
+
line_items << (NavixRateLineItem.from_hash(structure) if structure)
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
line_items = SKIP unless hash.key?('lineItems')
|
|
167
|
+
|
|
168
|
+
# Create object from extracted values.
|
|
169
|
+
NavixRateRequest.new(uuid: uuid,
|
|
170
|
+
freight_charge_terms: freight_charge_terms,
|
|
171
|
+
external_order_id: external_order_id,
|
|
172
|
+
ship_date: ship_date,
|
|
173
|
+
delivery_date: delivery_date,
|
|
174
|
+
customer: customer,
|
|
175
|
+
vendor: vendor,
|
|
176
|
+
vendor_charges: vendor_charges,
|
|
177
|
+
stops: stops,
|
|
178
|
+
line_items: line_items)
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
def to_custom_ship_date
|
|
182
|
+
DateTimeHelper.to_rfc3339(ship_date)
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
def to_custom_delivery_date
|
|
186
|
+
DateTimeHelper.to_rfc3339(delivery_date)
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Provides a human-readable string representation of the object.
|
|
190
|
+
def to_s
|
|
191
|
+
class_name = self.class.name.split('::').last
|
|
192
|
+
"<#{class_name} uuid: #{@uuid}, freight_charge_terms: #{@freight_charge_terms},"\
|
|
193
|
+
" external_order_id: #{@external_order_id}, ship_date: #{@ship_date}, delivery_date:"\
|
|
194
|
+
" #{@delivery_date}, customer: #{@customer}, vendor: #{@vendor}, vendor_charges:"\
|
|
195
|
+
" #{@vendor_charges}, stops: #{@stops}, line_items: #{@line_items}>"
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
199
|
+
def inspect
|
|
200
|
+
class_name = self.class.name.split('::').last
|
|
201
|
+
"<#{class_name} uuid: #{@uuid.inspect}, freight_charge_terms:"\
|
|
202
|
+
" #{@freight_charge_terms.inspect}, external_order_id: #{@external_order_id.inspect},"\
|
|
203
|
+
" ship_date: #{@ship_date.inspect}, delivery_date: #{@delivery_date.inspect}, customer:"\
|
|
204
|
+
" #{@customer.inspect}, vendor: #{@vendor.inspect}, vendor_charges:"\
|
|
205
|
+
" #{@vendor_charges.inspect}, stops: #{@stops.inspect}, line_items: #{@line_items.inspect}>"
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
# NavixRateRequestedCharge Model.
|
|
8
|
+
class NavixRateRequestedCharge < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :code
|
|
15
|
+
|
|
16
|
+
# A mapping from model property names to API property names.
|
|
17
|
+
def self.names
|
|
18
|
+
@_hash = {} if @_hash.nil?
|
|
19
|
+
@_hash['code'] = 'code'
|
|
20
|
+
@_hash
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# An array for optional fields
|
|
24
|
+
def self.optionals
|
|
25
|
+
%w[
|
|
26
|
+
code
|
|
27
|
+
]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# An array for nullable fields
|
|
31
|
+
def self.nullables
|
|
32
|
+
%w[
|
|
33
|
+
code
|
|
34
|
+
]
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def initialize(code: SKIP)
|
|
38
|
+
@code = code unless code == SKIP
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Creates an instance of the object from a hash.
|
|
42
|
+
def self.from_hash(hash)
|
|
43
|
+
return nil unless hash
|
|
44
|
+
|
|
45
|
+
# Extract variables from the hash.
|
|
46
|
+
code = hash.key?('code') ? hash['code'] : SKIP
|
|
47
|
+
|
|
48
|
+
# Create object from extracted values.
|
|
49
|
+
NavixRateRequestedCharge.new(code: code)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Provides a human-readable string representation of the object.
|
|
53
|
+
def to_s
|
|
54
|
+
class_name = self.class.name.split('::').last
|
|
55
|
+
"<#{class_name} code: #{@code}>"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
59
|
+
def inspect
|
|
60
|
+
class_name = self.class.name.split('::').last
|
|
61
|
+
"<#{class_name} code: #{@code.inspect}>"
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
# NavixRateResponse Model.
|
|
8
|
+
class NavixRateResponse < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :raw_response
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [RatingResponseFormat]
|
|
18
|
+
attr_accessor :raw_response_type
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [Array[NavixRateCharge]]
|
|
22
|
+
attr_accessor :vendor_charges
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [Array[NavixRateCharge]]
|
|
26
|
+
attr_accessor :customer_charges
|
|
27
|
+
|
|
28
|
+
# A mapping from model property names to API property names.
|
|
29
|
+
def self.names
|
|
30
|
+
@_hash = {} if @_hash.nil?
|
|
31
|
+
@_hash['raw_response'] = 'RawResponse'
|
|
32
|
+
@_hash['raw_response_type'] = 'RawResponseType'
|
|
33
|
+
@_hash['vendor_charges'] = 'VendorCharges'
|
|
34
|
+
@_hash['customer_charges'] = 'CustomerCharges'
|
|
35
|
+
@_hash
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# An array for optional fields
|
|
39
|
+
def self.optionals
|
|
40
|
+
%w[
|
|
41
|
+
raw_response
|
|
42
|
+
raw_response_type
|
|
43
|
+
vendor_charges
|
|
44
|
+
customer_charges
|
|
45
|
+
]
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# An array for nullable fields
|
|
49
|
+
def self.nullables
|
|
50
|
+
[]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def initialize(raw_response: SKIP, raw_response_type: SKIP,
|
|
54
|
+
vendor_charges: SKIP, customer_charges: SKIP)
|
|
55
|
+
@raw_response = raw_response unless raw_response == SKIP
|
|
56
|
+
@raw_response_type = raw_response_type unless raw_response_type == SKIP
|
|
57
|
+
@vendor_charges = vendor_charges unless vendor_charges == SKIP
|
|
58
|
+
@customer_charges = customer_charges unless customer_charges == SKIP
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Creates an instance of the object from a hash.
|
|
62
|
+
def self.from_hash(hash)
|
|
63
|
+
return nil unless hash
|
|
64
|
+
|
|
65
|
+
# Extract variables from the hash.
|
|
66
|
+
raw_response = hash.key?('RawResponse') ? hash['RawResponse'] : SKIP
|
|
67
|
+
raw_response_type =
|
|
68
|
+
hash.key?('RawResponseType') ? hash['RawResponseType'] : SKIP
|
|
69
|
+
# Parameter is an array, so we need to iterate through it
|
|
70
|
+
vendor_charges = nil
|
|
71
|
+
unless hash['VendorCharges'].nil?
|
|
72
|
+
vendor_charges = []
|
|
73
|
+
hash['VendorCharges'].each do |structure|
|
|
74
|
+
vendor_charges << (NavixRateCharge.from_hash(structure) if structure)
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
vendor_charges = SKIP unless hash.key?('VendorCharges')
|
|
79
|
+
# Parameter is an array, so we need to iterate through it
|
|
80
|
+
customer_charges = nil
|
|
81
|
+
unless hash['CustomerCharges'].nil?
|
|
82
|
+
customer_charges = []
|
|
83
|
+
hash['CustomerCharges'].each do |structure|
|
|
84
|
+
customer_charges << (NavixRateCharge.from_hash(structure) if structure)
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
customer_charges = SKIP unless hash.key?('CustomerCharges')
|
|
89
|
+
|
|
90
|
+
# Create object from extracted values.
|
|
91
|
+
NavixRateResponse.new(raw_response: raw_response,
|
|
92
|
+
raw_response_type: raw_response_type,
|
|
93
|
+
vendor_charges: vendor_charges,
|
|
94
|
+
customer_charges: customer_charges)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Provides a human-readable string representation of the object.
|
|
98
|
+
def to_s
|
|
99
|
+
class_name = self.class.name.split('::').last
|
|
100
|
+
"<#{class_name} raw_response: #{@raw_response}, raw_response_type: #{@raw_response_type},"\
|
|
101
|
+
" vendor_charges: #{@vendor_charges}, customer_charges: #{@customer_charges}>"
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
105
|
+
def inspect
|
|
106
|
+
class_name = self.class.name.split('::').last
|
|
107
|
+
"<#{class_name} raw_response: #{@raw_response.inspect}, raw_response_type:"\
|
|
108
|
+
" #{@raw_response_type.inspect}, vendor_charges: #{@vendor_charges.inspect},"\
|
|
109
|
+
" customer_charges: #{@customer_charges.inspect}>"
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|