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,109 +0,0 @@
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
- # A reference number using [EDI
8
- # 210](https://www.stedi.com/edi/x12/transaction-set/210) Reference
9
- # Identification Qualifier codes to cross-reference the invoice with the TQL
10
- # load.
11
- class ReferenceNumberInput < BaseModel
12
- SKIP = Object.new
13
- private_constant :SKIP
14
-
15
- # Reference number qualifier. Values follow [EDI
16
- # 210](https://www.stedi.com/edi/x12/transaction-set/210) / [ANSI
17
- # X12](https://www.x12.org/) Reference Identification Qualifier codes.
18
- # @return [ReferenceType]
19
- attr_accessor :reference_type
20
-
21
- # The reference number value.
22
- # @return [String]
23
- attr_accessor :value
24
-
25
- # A mapping from model property names to API property names.
26
- def self.names
27
- @_hash = {} if @_hash.nil?
28
- @_hash['reference_type'] = 'referenceType'
29
- @_hash['value'] = 'value'
30
- @_hash
31
- end
32
-
33
- # An array for optional fields
34
- def self.optionals
35
- []
36
- end
37
-
38
- # An array for nullable fields
39
- def self.nullables
40
- []
41
- end
42
-
43
- def initialize(reference_type:, value:, additional_properties: nil)
44
- # Add additional model properties to the instance
45
- additional_properties = {} if additional_properties.nil?
46
-
47
- @reference_type = reference_type
48
- @value = value
49
- @additional_properties = additional_properties
50
- end
51
-
52
- # Creates an instance of the object from a hash.
53
- def self.from_hash(hash)
54
- return nil unless hash
55
-
56
- # Extract variables from the hash.
57
- reference_type = hash.key?('referenceType') ? hash['referenceType'] : nil
58
- value = hash.key?('value') ? hash['value'] : nil
59
-
60
- # Create a new hash for additional properties, removing known properties.
61
- new_hash = hash.reject { |k, _| names.value?(k) }
62
-
63
- additional_properties = APIHelper.get_additional_properties(
64
- new_hash, proc { |value| value }
65
- )
66
-
67
- # Create object from extracted values.
68
- ReferenceNumberInput.new(reference_type: reference_type,
69
- value: value,
70
- additional_properties: additional_properties)
71
- end
72
-
73
- # Validates an instance of the object from a given value.
74
- # @param [ReferenceNumberInput | Hash] The value against the validation is performed.
75
- def self.validate(value)
76
- if value.instance_of? self
77
- return (
78
- APIHelper.valid_type?(value.reference_type,
79
- ->(val) { ReferenceType.validate(val) }) and
80
- APIHelper.valid_type?(value.value,
81
- ->(val) { val.instance_of? String })
82
- )
83
- end
84
-
85
- return false unless value.instance_of? Hash
86
-
87
- (
88
- APIHelper.valid_type?(value['referenceType'],
89
- ->(val) { ReferenceType.validate(val) }) and
90
- APIHelper.valid_type?(value['value'],
91
- ->(val) { val.instance_of? String })
92
- )
93
- end
94
-
95
- # Provides a human-readable string representation of the object.
96
- def to_s
97
- class_name = self.class.name.split('::').last
98
- "<#{class_name} reference_type: #{@reference_type}, value: #{@value},"\
99
- " additional_properties: #{@additional_properties}>"
100
- end
101
-
102
- # Provides a debugging-friendly string with detailed object information.
103
- def inspect
104
- class_name = self.class.name.split('::').last
105
- "<#{class_name} reference_type: #{@reference_type.inspect}, value: #{@value.inspect},"\
106
- " additional_properties: #{@additional_properties}>"
107
- end
108
- end
109
- end
@@ -1,90 +0,0 @@
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
- # Reference number qualifier. Values follow [EDI
8
- # 210](https://www.stedi.com/edi/x12/transaction-set/210) / [ANSI
9
- # X12](https://www.x12.org/) Reference Identification Qualifier codes.
10
- class ReferenceType
11
- REFERENCE_TYPE = [
12
- # TODO: Write general description for BM
13
- BM = 'BM'.freeze,
14
-
15
- # TODO: Write general description for PO
16
- PO = 'PO'.freeze,
17
-
18
- # TODO: Write general description for PRO
19
- PRO = 'PRO'.freeze,
20
-
21
- # TODO: Write general description for SI
22
- SI = 'SI'.freeze,
23
-
24
- # TODO: Write general description for CN
25
- CN = 'CN'.freeze,
26
-
27
- # TODO: Write general description for CR
28
- CR = 'CR'.freeze,
29
-
30
- # TODO: Write general description for AO
31
- AO = 'AO'.freeze,
32
-
33
- # TODO: Write general description for MB
34
- MB = 'MB'.freeze,
35
-
36
- # TODO: Write general description for TN
37
- TN = 'TN'.freeze,
38
-
39
- # TODO: Write general description for IV
40
- IV = 'IV'.freeze,
41
-
42
- # TODO: Write general description for SN
43
- SN = 'SN'.freeze,
44
-
45
- # TODO: Write general description for LO
46
- LO = 'LO'.freeze,
47
-
48
- # TODO: Write general description for DO
49
- DO = 'DO'.freeze,
50
-
51
- # TODO: Write general description for CO
52
- CO = 'CO'.freeze,
53
-
54
- # TODO: Write general description for TL
55
- TL = 'TL'.freeze
56
- ].freeze
57
-
58
- def self.validate(value)
59
- return false if value.nil?
60
-
61
- REFERENCE_TYPE.include?(value)
62
- end
63
-
64
- def self.from_value(value, default_value = BM)
65
- return default_value if value.nil?
66
-
67
- str = value.to_s.strip
68
-
69
- case str.downcase
70
- when 'bm' then BM
71
- when 'po' then PO
72
- when 'pro' then PRO
73
- when 'si' then SI
74
- when 'cn' then CN
75
- when 'cr' then CR
76
- when 'ao' then AO
77
- when 'mb' then MB
78
- when 'tn' then TN
79
- when 'iv' then IV
80
- when 'sn' then SN
81
- when 'lo' then LO
82
- when 'do' then DO
83
- when 'co' then CO
84
- when 'tl' then TL
85
- else
86
- default_value
87
- end
88
- end
89
- end
90
- end
@@ -1,44 +0,0 @@
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
- # Processing status of this document.
8
- class Status
9
- STATUS = [
10
- # TODO: Write general description for RECEIVED
11
- RECEIVED = 'Received'.freeze,
12
-
13
- # TODO: Write general description for EXTRACTING
14
- EXTRACTING = 'Extracting'.freeze,
15
-
16
- # TODO: Write general description for COMPLETE
17
- COMPLETE = 'Complete'.freeze,
18
-
19
- # TODO: Write general description for FAILED
20
- FAILED = 'Failed'.freeze
21
- ].freeze
22
-
23
- def self.validate(value)
24
- return false if value.nil?
25
-
26
- STATUS.include?(value)
27
- end
28
-
29
- def self.from_value(value, default_value = RECEIVED)
30
- return default_value if value.nil?
31
-
32
- str = value.to_s.strip
33
-
34
- case str.downcase
35
- when 'received' then RECEIVED
36
- when 'extracting' then EXTRACTING
37
- when 'complete' then COMPLETE
38
- when 'failed' then FAILED
39
- else
40
- default_value
41
- end
42
- end
43
- end
44
- end
@@ -1,121 +0,0 @@
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
- # A pickup or delivery stop on the shipment route, using [EDI
8
- # 210](https://www.stedi.com/edi/x12/transaction-set/210) stop type codes.
9
- class StopInput < BaseModel
10
- SKIP = Object.new
11
- private_constant :SKIP
12
-
13
- # Type of stop. Values align with [EDI
14
- # 210](https://www.stedi.com/edi/x12/transaction-set/210) stop-off detail
15
- # codes.
16
- # @return [StopType]
17
- attr_accessor :stop_type
18
-
19
- # 1-based ordering of the stop in the route.
20
- # @return [Integer]
21
- attr_accessor :sequence
22
-
23
- # Physical address of the stop.
24
- # @return [Location]
25
- attr_accessor :location
26
-
27
- # A mapping from model property names to API property names.
28
- def self.names
29
- @_hash = {} if @_hash.nil?
30
- @_hash['stop_type'] = 'stopType'
31
- @_hash['sequence'] = 'sequence'
32
- @_hash['location'] = 'location'
33
- @_hash
34
- end
35
-
36
- # An array for optional fields
37
- def self.optionals
38
- []
39
- end
40
-
41
- # An array for nullable fields
42
- def self.nullables
43
- []
44
- end
45
-
46
- def initialize(stop_type:, sequence:, location:, additional_properties: nil)
47
- # Add additional model properties to the instance
48
- additional_properties = {} if additional_properties.nil?
49
-
50
- @stop_type = stop_type
51
- @sequence = sequence
52
- @location = location
53
- @additional_properties = additional_properties
54
- end
55
-
56
- # Creates an instance of the object from a hash.
57
- def self.from_hash(hash)
58
- return nil unless hash
59
-
60
- # Extract variables from the hash.
61
- stop_type = hash.key?('stopType') ? hash['stopType'] : nil
62
- sequence = hash.key?('sequence') ? hash['sequence'] : nil
63
- location = Location.from_hash(hash['location']) if hash['location']
64
-
65
- # Create a new hash for additional properties, removing known properties.
66
- new_hash = hash.reject { |k, _| names.value?(k) }
67
-
68
- additional_properties = APIHelper.get_additional_properties(
69
- new_hash, proc { |value| value }
70
- )
71
-
72
- # Create object from extracted values.
73
- StopInput.new(stop_type: stop_type,
74
- sequence: sequence,
75
- location: location,
76
- additional_properties: additional_properties)
77
- end
78
-
79
- # Validates an instance of the object from a given value.
80
- # @param [StopInput | Hash] The value against the validation is performed.
81
- def self.validate(value)
82
- if value.instance_of? self
83
- return (
84
- APIHelper.valid_type?(value.stop_type,
85
- ->(val) { StopType.validate(val) }) and
86
- APIHelper.valid_type?(value.sequence,
87
- ->(val) { val.instance_of? Integer }) and
88
- APIHelper.valid_type?(value.location,
89
- ->(val) { Location.validate(val) },
90
- is_model_hash: true)
91
- )
92
- end
93
-
94
- return false unless value.instance_of? Hash
95
-
96
- (
97
- APIHelper.valid_type?(value['stopType'],
98
- ->(val) { StopType.validate(val) }) and
99
- APIHelper.valid_type?(value['sequence'],
100
- ->(val) { val.instance_of? Integer }) and
101
- APIHelper.valid_type?(value['location'],
102
- ->(val) { Location.validate(val) },
103
- is_model_hash: true)
104
- )
105
- end
106
-
107
- # Provides a human-readable string representation of the object.
108
- def to_s
109
- class_name = self.class.name.split('::').last
110
- "<#{class_name} stop_type: #{@stop_type}, sequence: #{@sequence}, location: #{@location},"\
111
- " additional_properties: #{@additional_properties}>"
112
- end
113
-
114
- # Provides a debugging-friendly string with detailed object information.
115
- def inspect
116
- class_name = self.class.name.split('::').last
117
- "<#{class_name} stop_type: #{@stop_type.inspect}, sequence: #{@sequence.inspect}, location:"\
118
- " #{@location.inspect}, additional_properties: #{@additional_properties}>"
119
- end
120
- end
121
- end
@@ -1,62 +0,0 @@
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
- # Type of stop. Values align with [EDI
8
- # 210](https://www.stedi.com/edi/x12/transaction-set/210) stop-off detail
9
- # codes.
10
- class StopType
11
- STOP_TYPE = [
12
- # TODO: Write general description for PU
13
- PU = 'PU'.freeze,
14
-
15
- # TODO: Write general description for DL
16
- DL = 'DL'.freeze,
17
-
18
- # TODO: Write general description for CL
19
- CL = 'CL'.freeze,
20
-
21
- # TODO: Write general description for PL
22
- PL = 'PL'.freeze,
23
-
24
- # TODO: Write general description for UL
25
- UL = 'UL'.freeze,
26
-
27
- # TODO: Write general description for CS
28
- CS = 'CS'.freeze,
29
-
30
- # TODO: Write general description for DS
31
- DS = 'DS'.freeze,
32
-
33
- # TODO: Write general description for XX
34
- XX = 'XX'.freeze
35
- ].freeze
36
-
37
- def self.validate(value)
38
- return false if value.nil?
39
-
40
- STOP_TYPE.include?(value)
41
- end
42
-
43
- def self.from_value(value, default_value = PU)
44
- return default_value if value.nil?
45
-
46
- str = value.to_s.strip
47
-
48
- case str.downcase
49
- when 'pu' then PU
50
- when 'dl' then DL
51
- when 'cl' then CL
52
- when 'pl' then PL
53
- when 'ul' then UL
54
- when 'cs' then CS
55
- when 'ds' then DS
56
- when 'xx' then XX
57
- else
58
- default_value
59
- end
60
- end
61
- end
62
- end