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,107 +1,105 @@
1
- # tql_otr_factoring_data_exchange
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- require 'date'
7
- module TqlOtrFactoringDataExchange
8
- # Acknowledgement that the invoice was accepted for processing.
9
- class SubmitInvoiceResponse < BaseModel
10
- SKIP = Object.new
11
- private_constant :SKIP
12
-
13
- # The factoring company's invoice number (echoed back).
14
- # @return [String]
15
- attr_accessor :invoice_number
16
-
17
- # Processing and payment status of an invoice. The lifecycle typically
18
- # flows: `Received` → `Validating` → `Processing` → `Approved` → `NotPaid` →
19
- # `Paid`. Branches include `AwaitingDocuments`, `PendingExceptions`, and
20
- # `Rejected`.
21
- # @return [InvoiceStatus]
22
- attr_accessor :status
23
-
24
- # UTC timestamp indicating when the invoice was received.
25
- # @return [DateTime]
26
- attr_accessor :received_at
27
-
28
- # A mapping from model property names to API property names.
29
- def self.names
30
- @_hash = {} if @_hash.nil?
31
- @_hash['invoice_number'] = 'invoiceNumber'
32
- @_hash['status'] = 'status'
33
- @_hash['received_at'] = 'receivedAt'
34
- @_hash
35
- end
36
-
37
- # An array for optional fields
38
- def self.optionals
39
- %w[
40
- invoice_number
41
- status
42
- received_at
43
- ]
44
- end
45
-
46
- # An array for nullable fields
47
- def self.nullables
48
- []
49
- end
50
-
51
- def initialize(invoice_number: SKIP, status: SKIP, received_at: SKIP,
52
- additional_properties: nil)
53
- # Add additional model properties to the instance
54
- additional_properties = {} if additional_properties.nil?
55
-
56
- @invoice_number = invoice_number unless invoice_number == SKIP
57
- @status = status unless status == SKIP
58
- @received_at = received_at unless received_at == SKIP
59
- @additional_properties = additional_properties
60
- end
61
-
62
- # Creates an instance of the object from a hash.
63
- def self.from_hash(hash)
64
- return nil unless hash
65
-
66
- # Extract variables from the hash.
67
- invoice_number = hash.key?('invoiceNumber') ? hash['invoiceNumber'] : SKIP
68
- status = hash.key?('status') ? hash['status'] : SKIP
69
- received_at = if hash.key?('receivedAt')
70
- (DateTimeHelper.from_rfc3339(hash['receivedAt']) if hash['receivedAt'])
71
- else
72
- SKIP
73
- end
74
-
75
- # Create a new hash for additional properties, removing known properties.
76
- new_hash = hash.reject { |k, _| names.value?(k) }
77
-
78
- additional_properties = APIHelper.get_additional_properties(
79
- new_hash, proc { |value| value }
80
- )
81
-
82
- # Create object from extracted values.
83
- SubmitInvoiceResponse.new(invoice_number: invoice_number,
84
- status: status,
85
- received_at: received_at,
86
- additional_properties: additional_properties)
87
- end
88
-
89
- def to_custom_received_at
90
- DateTimeHelper.to_rfc3339(received_at)
91
- end
92
-
93
- # Provides a human-readable string representation of the object.
94
- def to_s
95
- class_name = self.class.name.split('::').last
96
- "<#{class_name} invoice_number: #{@invoice_number}, status: #{@status}, received_at:"\
97
- " #{@received_at}, additional_properties: #{@additional_properties}>"
98
- end
99
-
100
- # Provides a debugging-friendly string with detailed object information.
101
- def inspect
102
- class_name = self.class.name.split('::').last
103
- "<#{class_name} invoice_number: #{@invoice_number.inspect}, status: #{@status.inspect},"\
104
- " received_at: #{@received_at.inspect}, additional_properties: #{@additional_properties}>"
105
- end
106
- end
107
- 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
+ # SubmitInvoiceResponseData Model.
9
+ class SubmitInvoiceResponseData < BaseModel
10
+ SKIP = Object.new
11
+ private_constant :SKIP
12
+
13
+ # TODO: Write general description for this method
14
+ # @return [String]
15
+ attr_accessor :invoice_number
16
+
17
+ # TODO: Write general description for this method
18
+ # @return [DateTime]
19
+ attr_accessor :received_at
20
+
21
+ # TODO: Write general description for this method
22
+ # @return [Integer]
23
+ attr_accessor :status
24
+
25
+ # A mapping from model property names to API property names.
26
+ def self.names
27
+ @_hash = {} if @_hash.nil?
28
+ @_hash['invoice_number'] = 'invoiceNumber'
29
+ @_hash['received_at'] = 'receivedAt'
30
+ @_hash['status'] = 'status'
31
+ @_hash
32
+ end
33
+
34
+ # An array for optional fields
35
+ def self.optionals
36
+ %w[
37
+ invoice_number
38
+ received_at
39
+ status
40
+ ]
41
+ end
42
+
43
+ # An array for nullable fields
44
+ def self.nullables
45
+ []
46
+ end
47
+
48
+ def initialize(invoice_number: SKIP, received_at: SKIP, status: SKIP,
49
+ additional_properties: nil)
50
+ # Add additional model properties to the instance
51
+ additional_properties = {} if additional_properties.nil?
52
+
53
+ @invoice_number = invoice_number unless invoice_number == SKIP
54
+ @received_at = received_at unless received_at == SKIP
55
+ @status = status unless status == SKIP
56
+ @additional_properties = additional_properties
57
+ end
58
+
59
+ # Creates an instance of the object from a hash.
60
+ def self.from_hash(hash)
61
+ return nil unless hash
62
+
63
+ # Extract variables from the hash.
64
+ invoice_number = hash.key?('invoiceNumber') ? hash['invoiceNumber'] : SKIP
65
+ received_at = if hash.key?('receivedAt')
66
+ (DateTimeHelper.from_rfc3339(hash['receivedAt']) if hash['receivedAt'])
67
+ else
68
+ SKIP
69
+ end
70
+ status = hash.key?('status') ? hash['status'] : SKIP
71
+
72
+ # Create a new hash for additional properties, removing known properties.
73
+ new_hash = hash.reject { |k, _| names.value?(k) }
74
+
75
+ additional_properties = APIHelper.get_additional_properties(
76
+ new_hash, proc { |value| value }
77
+ )
78
+
79
+ # Create object from extracted values.
80
+ SubmitInvoiceResponseData.new(invoice_number: invoice_number,
81
+ received_at: received_at,
82
+ status: status,
83
+ additional_properties: additional_properties)
84
+ end
85
+
86
+ def to_custom_received_at
87
+ DateTimeHelper.to_rfc3339(received_at)
88
+ end
89
+
90
+ # Provides a human-readable string representation of the object.
91
+ def to_s
92
+ class_name = self.class.name.split('::').last
93
+ "<#{class_name} invoice_number: #{@invoice_number}, received_at: #{@received_at}, status:"\
94
+ " #{@status}, additional_properties: #{@additional_properties}>"
95
+ end
96
+
97
+ # Provides a debugging-friendly string with detailed object information.
98
+ def inspect
99
+ class_name = self.class.name.split('::').last
100
+ "<#{class_name} invoice_number: #{@invoice_number.inspect}, received_at:"\
101
+ " #{@received_at.inspect}, status: #{@status.inspect}, additional_properties:"\
102
+ " #{@additional_properties}>"
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,128 @@
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
+ # UploadRequest Model.
8
+ class UploadRequest < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [String]
14
+ attr_accessor :content
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :content_type
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [Integer]
22
+ attr_accessor :document_type
23
+
24
+ # TODO: Write general description for this method
25
+ # @return [String]
26
+ attr_accessor :file_name
27
+
28
+ # TODO: Write general description for this method
29
+ # @return [String]
30
+ attr_accessor :invoice_number
31
+
32
+ # TODO: Write general description for this method
33
+ # @return [Hash[String, String]]
34
+ attr_accessor :tags
35
+
36
+ # A mapping from model property names to API property names.
37
+ def self.names
38
+ @_hash = {} if @_hash.nil?
39
+ @_hash['content'] = 'content'
40
+ @_hash['content_type'] = 'contentType'
41
+ @_hash['document_type'] = 'documentType'
42
+ @_hash['file_name'] = 'fileName'
43
+ @_hash['invoice_number'] = 'invoiceNumber'
44
+ @_hash['tags'] = 'tags'
45
+ @_hash
46
+ end
47
+
48
+ # An array for optional fields
49
+ def self.optionals
50
+ %w[
51
+ content
52
+ content_type
53
+ document_type
54
+ file_name
55
+ invoice_number
56
+ tags
57
+ ]
58
+ end
59
+
60
+ # An array for nullable fields
61
+ def self.nullables
62
+ %w[
63
+ tags
64
+ ]
65
+ end
66
+
67
+ def initialize(content: SKIP, content_type: SKIP, document_type: SKIP,
68
+ file_name: SKIP, invoice_number: SKIP, tags: SKIP,
69
+ additional_properties: nil)
70
+ # Add additional model properties to the instance
71
+ additional_properties = {} if additional_properties.nil?
72
+
73
+ @content = content unless content == SKIP
74
+ @content_type = content_type unless content_type == SKIP
75
+ @document_type = document_type unless document_type == SKIP
76
+ @file_name = file_name unless file_name == SKIP
77
+ @invoice_number = invoice_number unless invoice_number == SKIP
78
+ @tags = tags unless tags == SKIP
79
+ @additional_properties = additional_properties
80
+ end
81
+
82
+ # Creates an instance of the object from a hash.
83
+ def self.from_hash(hash)
84
+ return nil unless hash
85
+
86
+ # Extract variables from the hash.
87
+ content = hash.key?('content') ? hash['content'] : SKIP
88
+ content_type = hash.key?('contentType') ? hash['contentType'] : SKIP
89
+ document_type = hash.key?('documentType') ? hash['documentType'] : SKIP
90
+ file_name = hash.key?('fileName') ? hash['fileName'] : SKIP
91
+ invoice_number = hash.key?('invoiceNumber') ? hash['invoiceNumber'] : SKIP
92
+ tags = hash.key?('tags') ? hash['tags'] : SKIP
93
+
94
+ # Create a new hash for additional properties, removing known properties.
95
+ new_hash = hash.reject { |k, _| names.value?(k) }
96
+
97
+ additional_properties = APIHelper.get_additional_properties(
98
+ new_hash, proc { |value| value }
99
+ )
100
+
101
+ # Create object from extracted values.
102
+ UploadRequest.new(content: content,
103
+ content_type: content_type,
104
+ document_type: document_type,
105
+ file_name: file_name,
106
+ invoice_number: invoice_number,
107
+ tags: tags,
108
+ additional_properties: additional_properties)
109
+ end
110
+
111
+ # Provides a human-readable string representation of the object.
112
+ def to_s
113
+ class_name = self.class.name.split('::').last
114
+ "<#{class_name} content: #{@content}, content_type: #{@content_type}, document_type:"\
115
+ " #{@document_type}, file_name: #{@file_name}, invoice_number: #{@invoice_number}, tags:"\
116
+ " #{@tags}, additional_properties: #{@additional_properties}>"
117
+ end
118
+
119
+ # Provides a debugging-friendly string with detailed object information.
120
+ def inspect
121
+ class_name = self.class.name.split('::').last
122
+ "<#{class_name} content: #{@content.inspect}, content_type: #{@content_type.inspect},"\
123
+ " document_type: #{@document_type.inspect}, file_name: #{@file_name.inspect},"\
124
+ " invoice_number: #{@invoice_number.inspect}, tags: #{@tags.inspect}, additional_properties:"\
125
+ " #{@additional_properties}>"
126
+ end
127
+ end
128
+ end
@@ -0,0 +1,83 @@
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
+ # UploadResponse Model.
8
+ class UploadResponse < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [UploadResponseData]
14
+ attr_accessor :data
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [Array[String]]
18
+ attr_accessor :errors
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [TrueClass | FalseClass]
22
+ attr_accessor :is_success
23
+
24
+ # A mapping from model property names to API property names.
25
+ def self.names
26
+ @_hash = {} if @_hash.nil?
27
+ @_hash['data'] = 'data'
28
+ @_hash['errors'] = 'errors'
29
+ @_hash['is_success'] = 'isSuccess'
30
+ @_hash
31
+ end
32
+
33
+ # An array for optional fields
34
+ def self.optionals
35
+ %w[
36
+ data
37
+ errors
38
+ is_success
39
+ ]
40
+ end
41
+
42
+ # An array for nullable fields
43
+ def self.nullables
44
+ %w[
45
+ data
46
+ ]
47
+ end
48
+
49
+ def initialize(data: SKIP, errors: SKIP, is_success: SKIP)
50
+ @data = data unless data == SKIP
51
+ @errors = errors unless errors == SKIP
52
+ @is_success = is_success unless is_success == SKIP
53
+ end
54
+
55
+ # Creates an instance of the object from a hash.
56
+ def self.from_hash(hash)
57
+ return nil unless hash
58
+
59
+ # Extract variables from the hash.
60
+ data = UploadResponseData.from_hash(hash['data']) if hash['data']
61
+ errors = hash.key?('errors') ? hash['errors'] : SKIP
62
+ is_success = hash.key?('isSuccess') ? hash['isSuccess'] : SKIP
63
+
64
+ # Create object from extracted values.
65
+ UploadResponse.new(data: data,
66
+ errors: errors,
67
+ is_success: is_success)
68
+ end
69
+
70
+ # Provides a human-readable string representation of the object.
71
+ def to_s
72
+ class_name = self.class.name.split('::').last
73
+ "<#{class_name} data: #{@data}, errors: #{@errors}, is_success: #{@is_success}>"
74
+ end
75
+
76
+ # Provides a debugging-friendly string with detailed object information.
77
+ def inspect
78
+ class_name = self.class.name.split('::').last
79
+ "<#{class_name} data: #{@data.inspect}, errors: #{@errors.inspect}, is_success:"\
80
+ " #{@is_success.inspect}>"
81
+ end
82
+ end
83
+ end