ultracart_api 4.0.143 → 4.0.145
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 +11 -5
- data/docs/AccountsReceivableRetryConfig.md +2 -0
- data/docs/AccountsReceivableRetryTransactionReject.md +20 -0
- data/docs/DatawarehouseApi.md +72 -0
- data/docs/Experiment.md +10 -0
- data/docs/ReportDryRunQueriesRequest.md +28 -0
- data/docs/ReportDryRunQueriesResponse.md +18 -0
- data/docs/ReportDryRunQueryResult.md +20 -0
- data/docs/ReportWebsocketEvent.md +1 -1
- data/lib/ultracart_api/api/datawarehouse_api.rb +69 -0
- data/lib/ultracart_api/models/accounts_receivable_retry_config.rb +13 -1
- data/lib/ultracart_api/models/accounts_receivable_retry_transaction_reject.rb +230 -0
- data/lib/ultracart_api/models/experiment.rb +63 -1
- data/lib/ultracart_api/models/report_dry_run_queries_request.rb +266 -0
- data/lib/ultracart_api/models/report_dry_run_queries_response.rb +221 -0
- data/lib/ultracart_api/models/{report_data_set_summary.rb → report_dry_run_query_result.rb} +10 -98
- data/lib/ultracart_api/models/report_websocket_event.rb +1 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -1
- metadata +10 -4
- data/docs/ReportDataSetSummary.md +0 -30
@@ -14,60 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module UltracartClient
|
17
|
-
class
|
18
|
-
# A unique identifier assigned to the data set that is returned.
|
19
|
-
attr_accessor :data_set_uuid
|
20
|
-
|
21
|
-
# Error message if the query failed.
|
17
|
+
class ReportDryRunQueryResult
|
22
18
|
attr_accessor :error_message
|
23
19
|
|
24
|
-
|
25
|
-
attr_accessor :for_object_id
|
26
|
-
|
27
|
-
# The type of object this data set is for
|
28
|
-
attr_accessor :for_object_type
|
29
|
-
|
30
|
-
# The total number of results
|
31
|
-
attr_accessor :max_results
|
32
|
-
|
33
|
-
# The schema associated with the data set.
|
34
|
-
attr_accessor :schema
|
35
|
-
|
36
|
-
# Any other data that needs to be returned with the response to help the UI
|
37
|
-
attr_accessor :user_data
|
38
|
-
|
39
|
-
class EnumAttributeValidator
|
40
|
-
attr_reader :datatype
|
41
|
-
attr_reader :allowable_values
|
42
|
-
|
43
|
-
def initialize(datatype, allowable_values)
|
44
|
-
@allowable_values = allowable_values.map do |value|
|
45
|
-
case datatype.to_s
|
46
|
-
when /Integer/i
|
47
|
-
value.to_i
|
48
|
-
when /Float/i
|
49
|
-
value.to_f
|
50
|
-
else
|
51
|
-
value
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
def valid?(value)
|
57
|
-
!value || allowable_values.include?(value)
|
58
|
-
end
|
59
|
-
end
|
20
|
+
attr_accessor :total_bytes_processed
|
60
21
|
|
61
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
23
|
def self.attribute_map
|
63
24
|
{
|
64
|
-
:'data_set_uuid' => :'data_set_uuid',
|
65
25
|
:'error_message' => :'error_message',
|
66
|
-
:'
|
67
|
-
:'for_object_type' => :'for_object_type',
|
68
|
-
:'max_results' => :'max_results',
|
69
|
-
:'schema' => :'schema',
|
70
|
-
:'user_data' => :'user_data'
|
26
|
+
:'total_bytes_processed' => :'total_bytes_processed'
|
71
27
|
}
|
72
28
|
end
|
73
29
|
|
@@ -79,13 +35,8 @@ module UltracartClient
|
|
79
35
|
# Attribute type mapping.
|
80
36
|
def self.openapi_types
|
81
37
|
{
|
82
|
-
:'data_set_uuid' => :'String',
|
83
38
|
:'error_message' => :'String',
|
84
|
-
:'
|
85
|
-
:'for_object_type' => :'String',
|
86
|
-
:'max_results' => :'Integer',
|
87
|
-
:'schema' => :'Array<ReportDataSetSchema>',
|
88
|
-
:'user_data' => :'String'
|
39
|
+
:'total_bytes_processed' => :'Integer'
|
89
40
|
}
|
90
41
|
end
|
91
42
|
|
@@ -99,45 +50,23 @@ module UltracartClient
|
|
99
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
100
51
|
def initialize(attributes = {})
|
101
52
|
if (!attributes.is_a?(Hash))
|
102
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ReportDryRunQueryResult` initialize method"
|
103
54
|
end
|
104
55
|
|
105
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
106
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
107
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
108
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ReportDryRunQueryResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
109
60
|
end
|
110
61
|
h[k.to_sym] = v
|
111
62
|
}
|
112
63
|
|
113
|
-
if attributes.key?(:'data_set_uuid')
|
114
|
-
self.data_set_uuid = attributes[:'data_set_uuid']
|
115
|
-
end
|
116
|
-
|
117
64
|
if attributes.key?(:'error_message')
|
118
65
|
self.error_message = attributes[:'error_message']
|
119
66
|
end
|
120
67
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.key?(:'for_object_type')
|
126
|
-
self.for_object_type = attributes[:'for_object_type']
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.key?(:'max_results')
|
130
|
-
self.max_results = attributes[:'max_results']
|
131
|
-
end
|
132
|
-
|
133
|
-
if attributes.key?(:'schema')
|
134
|
-
if (value = attributes[:'schema']).is_a?(Array)
|
135
|
-
self.schema = value
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
139
|
-
if attributes.key?(:'user_data')
|
140
|
-
self.user_data = attributes[:'user_data']
|
68
|
+
if attributes.key?(:'total_bytes_processed')
|
69
|
+
self.total_bytes_processed = attributes[:'total_bytes_processed']
|
141
70
|
end
|
142
71
|
end
|
143
72
|
|
@@ -151,33 +80,16 @@ module UltracartClient
|
|
151
80
|
# Check to see if the all the properties in the model are valid
|
152
81
|
# @return true if the model is valid
|
153
82
|
def valid?
|
154
|
-
for_object_type_validator = EnumAttributeValidator.new('String', ["schema", "filter", "visualization"])
|
155
|
-
return false unless for_object_type_validator.valid?(@for_object_type)
|
156
83
|
true
|
157
84
|
end
|
158
85
|
|
159
|
-
# Custom attribute writer method checking allowed values (enum).
|
160
|
-
# @param [Object] for_object_type Object to be assigned
|
161
|
-
def for_object_type=(for_object_type)
|
162
|
-
validator = EnumAttributeValidator.new('String', ["schema", "filter", "visualization"])
|
163
|
-
unless validator.valid?(for_object_type)
|
164
|
-
fail ArgumentError, "invalid value for \"for_object_type\", must be one of #{validator.allowable_values}."
|
165
|
-
end
|
166
|
-
@for_object_type = for_object_type
|
167
|
-
end
|
168
|
-
|
169
86
|
# Checks equality by comparing each attribute.
|
170
87
|
# @param [Object] Object to be compared
|
171
88
|
def ==(o)
|
172
89
|
return true if self.equal?(o)
|
173
90
|
self.class == o.class &&
|
174
|
-
data_set_uuid == o.data_set_uuid &&
|
175
91
|
error_message == o.error_message &&
|
176
|
-
|
177
|
-
for_object_type == o.for_object_type &&
|
178
|
-
max_results == o.max_results &&
|
179
|
-
schema == o.schema &&
|
180
|
-
user_data == o.user_data
|
92
|
+
total_bytes_processed == o.total_bytes_processed
|
181
93
|
end
|
182
94
|
|
183
95
|
# @see the `==` method
|
@@ -189,7 +101,7 @@ module UltracartClient
|
|
189
101
|
# Calculates hash code according to all attributes.
|
190
102
|
# @return [Integer] Hash code
|
191
103
|
def hash
|
192
|
-
[
|
104
|
+
[error_message, total_bytes_processed].hash
|
193
105
|
end
|
194
106
|
|
195
107
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -24,6 +24,7 @@ require 'ultracart_api/models/accounts_receivable_retry_stat_account'
|
|
24
24
|
require 'ultracart_api/models/accounts_receivable_retry_stat_metrics'
|
25
25
|
require 'ultracart_api/models/accounts_receivable_retry_stat_revenue'
|
26
26
|
require 'ultracart_api/models/accounts_receivable_retry_stats_response'
|
27
|
+
require 'ultracart_api/models/accounts_receivable_retry_transaction_reject'
|
27
28
|
require 'ultracart_api/models/activity'
|
28
29
|
require 'ultracart_api/models/add_library_item_request'
|
29
30
|
require 'ultracart_api/models/adjust_internal_certificate_request'
|
@@ -651,9 +652,11 @@ require 'ultracart_api/models/report_data_set_query'
|
|
651
652
|
require 'ultracart_api/models/report_data_set_response'
|
652
653
|
require 'ultracart_api/models/report_data_set_row'
|
653
654
|
require 'ultracart_api/models/report_data_set_schema'
|
654
|
-
require 'ultracart_api/models/report_data_set_summary'
|
655
655
|
require 'ultracart_api/models/report_data_source'
|
656
656
|
require 'ultracart_api/models/report_data_source_schema'
|
657
|
+
require 'ultracart_api/models/report_dry_run_queries_request'
|
658
|
+
require 'ultracart_api/models/report_dry_run_queries_response'
|
659
|
+
require 'ultracart_api/models/report_dry_run_query_result'
|
657
660
|
require 'ultracart_api/models/report_execute_queries_request'
|
658
661
|
require 'ultracart_api/models/report_filter'
|
659
662
|
require 'ultracart_api/models/report_filter_connection'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultracart_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.145
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- docs/AccountsReceivableRetryStatMetrics.md
|
69
69
|
- docs/AccountsReceivableRetryStatRevenue.md
|
70
70
|
- docs/AccountsReceivableRetryStatsResponse.md
|
71
|
+
- docs/AccountsReceivableRetryTransactionReject.md
|
71
72
|
- docs/Activity.md
|
72
73
|
- docs/AddLibraryItemRequest.md
|
73
74
|
- docs/AdjustInternalCertificateRequest.md
|
@@ -710,9 +711,11 @@ files:
|
|
710
711
|
- docs/ReportDataSetResponse.md
|
711
712
|
- docs/ReportDataSetRow.md
|
712
713
|
- docs/ReportDataSetSchema.md
|
713
|
-
- docs/ReportDataSetSummary.md
|
714
714
|
- docs/ReportDataSource.md
|
715
715
|
- docs/ReportDataSourceSchema.md
|
716
|
+
- docs/ReportDryRunQueriesRequest.md
|
717
|
+
- docs/ReportDryRunQueriesResponse.md
|
718
|
+
- docs/ReportDryRunQueryResult.md
|
716
719
|
- docs/ReportExecuteQueriesRequest.md
|
717
720
|
- docs/ReportFilter.md
|
718
721
|
- docs/ReportFilterConnection.md
|
@@ -879,6 +882,7 @@ files:
|
|
879
882
|
- lib/ultracart_api/models/accounts_receivable_retry_stat_metrics.rb
|
880
883
|
- lib/ultracart_api/models/accounts_receivable_retry_stat_revenue.rb
|
881
884
|
- lib/ultracart_api/models/accounts_receivable_retry_stats_response.rb
|
885
|
+
- lib/ultracart_api/models/accounts_receivable_retry_transaction_reject.rb
|
882
886
|
- lib/ultracart_api/models/activity.rb
|
883
887
|
- lib/ultracart_api/models/add_library_item_request.rb
|
884
888
|
- lib/ultracart_api/models/adjust_internal_certificate_request.rb
|
@@ -1506,9 +1510,11 @@ files:
|
|
1506
1510
|
- lib/ultracart_api/models/report_data_set_response.rb
|
1507
1511
|
- lib/ultracart_api/models/report_data_set_row.rb
|
1508
1512
|
- lib/ultracart_api/models/report_data_set_schema.rb
|
1509
|
-
- lib/ultracart_api/models/report_data_set_summary.rb
|
1510
1513
|
- lib/ultracart_api/models/report_data_source.rb
|
1511
1514
|
- lib/ultracart_api/models/report_data_source_schema.rb
|
1515
|
+
- lib/ultracart_api/models/report_dry_run_queries_request.rb
|
1516
|
+
- lib/ultracart_api/models/report_dry_run_queries_response.rb
|
1517
|
+
- lib/ultracart_api/models/report_dry_run_query_result.rb
|
1512
1518
|
- lib/ultracart_api/models/report_execute_queries_request.rb
|
1513
1519
|
- lib/ultracart_api/models/report_filter.rb
|
1514
1520
|
- lib/ultracart_api/models/report_filter_connection.rb
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# UltracartClient::ReportDataSetSummary
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **data_set_uuid** | **String** | A unique identifier assigned to the data set that is returned. | [optional] |
|
8
|
-
| **error_message** | **String** | Error message if the query failed. | [optional] |
|
9
|
-
| **for_object_id** | **String** | An identifier that can be used to help match up the returned data set | [optional] |
|
10
|
-
| **for_object_type** | **String** | The type of object this data set is for | [optional] |
|
11
|
-
| **max_results** | **Integer** | The total number of results | [optional] |
|
12
|
-
| **schema** | [**Array<ReportDataSetSchema>**](ReportDataSetSchema.md) | The schema associated with the data set. | [optional] |
|
13
|
-
| **user_data** | **String** | Any other data that needs to be returned with the response to help the UI | [optional] |
|
14
|
-
|
15
|
-
## Example
|
16
|
-
|
17
|
-
```ruby
|
18
|
-
require 'ultracart_api'
|
19
|
-
|
20
|
-
instance = UltracartClient::ReportDataSetSummary.new(
|
21
|
-
data_set_uuid: null,
|
22
|
-
error_message: null,
|
23
|
-
for_object_id: null,
|
24
|
-
for_object_type: null,
|
25
|
-
max_results: null,
|
26
|
-
schema: null,
|
27
|
-
user_data: null
|
28
|
-
)
|
29
|
-
```
|
30
|
-
|