ultracart_api 4.0.140 → 4.0.142
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -4
- data/docs/DatawarehouseApi.md +651 -0
- data/docs/OrderRefundableResponse.md +2 -0
- data/docs/Report.md +36 -0
- data/docs/ReportAuth.md +24 -0
- data/docs/ReportAuthResponse.md +26 -0
- data/docs/ReportDataSet.md +46 -0
- data/docs/ReportDataSetColumn.md +18 -0
- data/docs/ReportDataSetPage.md +36 -0
- data/docs/ReportDataSetPageResponse.md +26 -0
- data/docs/ReportDataSetQuery.md +40 -0
- data/docs/ReportDataSetResponse.md +26 -0
- data/docs/ReportDataSetRow.md +18 -0
- data/docs/ReportDataSetSchema.md +20 -0
- data/docs/ReportDataSource.md +28 -0
- data/docs/ReportDataSourceSchema.md +22 -0
- data/docs/ReportExecuteQueriesRequest.md +30 -0
- data/docs/ReportFilter.md +28 -0
- data/docs/ReportFilterConnection.md +20 -0
- data/docs/ReportPage.md +24 -0
- data/docs/ReportPageVisualization.md +34 -0
- data/docs/ReportPageVisualizationDimension.md +30 -0
- data/docs/ReportPageVisualizationMetric.md +24 -0
- data/docs/ReportResponse.md +26 -0
- data/docs/ReportsResponse.md +26 -0
- data/lib/ultracart_api/api/datawarehouse_api.rb +626 -0
- data/lib/ultracart_api/models/order_refundable_response.rb +11 -1
- data/lib/ultracart_api/models/report.rb +342 -0
- data/lib/ultracart_api/models/report_auth.rb +247 -0
- data/lib/ultracart_api/models/report_auth_response.rb +256 -0
- data/lib/ultracart_api/models/report_data_set.rb +397 -0
- data/lib/ultracart_api/models/report_data_set_column.rb +219 -0
- data/lib/ultracart_api/models/report_data_set_page.rb +308 -0
- data/lib/ultracart_api/models/report_data_set_page_response.rb +256 -0
- data/lib/ultracart_api/models/report_data_set_query.rb +365 -0
- data/lib/ultracart_api/models/report_data_set_response.rb +256 -0
- data/lib/ultracart_api/models/report_data_set_row.rb +221 -0
- data/lib/ultracart_api/models/report_data_set_schema.rb +263 -0
- data/lib/ultracart_api/models/report_data_source.rb +267 -0
- data/lib/ultracart_api/models/report_data_source_schema.rb +273 -0
- data/lib/ultracart_api/models/report_execute_queries_request.rb +313 -0
- data/lib/ultracart_api/models/report_filter.rb +307 -0
- data/lib/ultracart_api/models/report_filter_connection.rb +228 -0
- data/lib/ultracart_api/models/report_page.rb +251 -0
- data/lib/ultracart_api/models/report_page_visualization.rb +334 -0
- data/lib/ultracart_api/models/report_page_visualization_dimension.rb +279 -0
- data/lib/ultracart_api/models/report_page_visualization_metric.rb +283 -0
- data/lib/ultracart_api/models/report_response.rb +256 -0
- data/lib/ultracart_api/models/reports_response.rb +258 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +23 -0
- metadata +48 -2
data/docs/ReportAuth.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# UltracartClient::ReportAuth
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **client_uuid** | **String** | Unique UUID assigned to this client | [optional] |
|
8
|
+
| **jwt** | **String** | | [optional] |
|
9
|
+
| **merchant_id** | **String** | | [optional] |
|
10
|
+
| **websocket_url** | **String** | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ultracart_api'
|
16
|
+
|
17
|
+
instance = UltracartClient::ReportAuth.new(
|
18
|
+
client_uuid: null,
|
19
|
+
jwt: null,
|
20
|
+
merchant_id: null,
|
21
|
+
websocket_url: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# UltracartClient::ReportAuthResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
8
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
9
|
+
| **report_auth** | [**ReportAuth**](ReportAuth.md) | | [optional] |
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'ultracart_api'
|
17
|
+
|
18
|
+
instance = UltracartClient::ReportAuthResponse.new(
|
19
|
+
error: null,
|
20
|
+
metadata: null,
|
21
|
+
report_auth: null,
|
22
|
+
success: null,
|
23
|
+
warning: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# UltracartClient::ReportDataSet
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data_set_query_uuid** | **String** | A unique identifier assigned to the data set query that is returned. | [optional] |
|
8
|
+
| **data_set_uuid** | **String** | A unique identifier assigned to the data set that is returned. | [optional] |
|
9
|
+
| **destination_table_id** | **String** | The BigQuery destination table id that contains the result. | [optional] |
|
10
|
+
| **error_message** | **String** | Error message if the query failed. | [optional] |
|
11
|
+
| **for_object_id** | **String** | An identifier that can be used to help match up the returned data set | [optional] |
|
12
|
+
| **for_object_type** | **String** | The type of object this data set is for | [optional] |
|
13
|
+
| **initial_pages** | [**Array<ReportDataSetPage>**](ReportDataSetPage.md) | Initial pages returned in the dataset | [optional] |
|
14
|
+
| **max_results** | **Integer** | The total number of results | [optional] |
|
15
|
+
| **merchant_id** | **String** | Merchant that owns this data set | [optional] |
|
16
|
+
| **page_count** | **Integer** | The size of the pages | [optional] |
|
17
|
+
| **page_size** | **Integer** | The size of the pages | [optional] |
|
18
|
+
| **schema** | [**Array<ReportDataSetSchema>**](ReportDataSetSchema.md) | The schema associated with the data set. | [optional] |
|
19
|
+
| **security_level** | **String** | Security level this dataset was read from. | [optional] |
|
20
|
+
| **timezone** | **String** | | [optional] |
|
21
|
+
| **user_data** | **String** | Any other data that needs to be returned with the response to help the UI | [optional] |
|
22
|
+
|
23
|
+
## Example
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require 'ultracart_api'
|
27
|
+
|
28
|
+
instance = UltracartClient::ReportDataSet.new(
|
29
|
+
data_set_query_uuid: null,
|
30
|
+
data_set_uuid: null,
|
31
|
+
destination_table_id: null,
|
32
|
+
error_message: null,
|
33
|
+
for_object_id: null,
|
34
|
+
for_object_type: null,
|
35
|
+
initial_pages: null,
|
36
|
+
max_results: null,
|
37
|
+
merchant_id: null,
|
38
|
+
page_count: null,
|
39
|
+
page_size: null,
|
40
|
+
schema: null,
|
41
|
+
security_level: null,
|
42
|
+
timezone: null,
|
43
|
+
user_data: null
|
44
|
+
)
|
45
|
+
```
|
46
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# UltracartClient::ReportDataSetColumn
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'ultracart_api'
|
13
|
+
|
14
|
+
instance = UltracartClient::ReportDataSetColumn.new(
|
15
|
+
name: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# UltracartClient::ReportDataSetPage
|
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
|
+
| **merchant_id** | **String** | Merchant that owns this data set | [optional] |
|
9
|
+
| **next_page_token** | **String** | | [optional] |
|
10
|
+
| **next_start_index** | **Integer** | | [optional] |
|
11
|
+
| **page_number** | **Integer** | | [optional] |
|
12
|
+
| **row_count** | **Integer** | | [optional] |
|
13
|
+
| **rows** | [**Array<ReportDataSetRow>**](ReportDataSetRow.md) | Rows returned for the data set | [optional] |
|
14
|
+
| **rows_s3_url** | **String** | Signed S3 URL where the page rows can be downloaded from | [optional] |
|
15
|
+
| **start_index** | **Integer** | Zero based index of the starting row | [optional] |
|
16
|
+
| **table_id** | **String** | The BigQuery destination table id that contains the result. | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'ultracart_api'
|
22
|
+
|
23
|
+
instance = UltracartClient::ReportDataSetPage.new(
|
24
|
+
data_set_uuid: null,
|
25
|
+
merchant_id: null,
|
26
|
+
next_page_token: null,
|
27
|
+
next_start_index: null,
|
28
|
+
page_number: null,
|
29
|
+
row_count: null,
|
30
|
+
rows: null,
|
31
|
+
rows_s3_url: null,
|
32
|
+
start_index: null,
|
33
|
+
table_id: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# UltracartClient::ReportDataSetPageResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
8
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
9
|
+
| **page** | [**ReportDataSetPage**](ReportDataSetPage.md) | | [optional] |
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'ultracart_api'
|
17
|
+
|
18
|
+
instance = UltracartClient::ReportDataSetPageResponse.new(
|
19
|
+
error: null,
|
20
|
+
metadata: null,
|
21
|
+
page: null,
|
22
|
+
success: null,
|
23
|
+
warning: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# UltracartClient::ReportDataSetQuery
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **comparison_results** | **Boolean** | True if a date range filter is provided with comparison date ranges and two results should be returned for the query. | [optional] |
|
8
|
+
| **data_set_query_uuid** | **String** | A unique identifier assigned to the data set query that is returned. | [optional] |
|
9
|
+
| **data_source** | [**ReportDataSource**](ReportDataSource.md) | | [optional] |
|
10
|
+
| **dimensions** | [**Array<ReportPageVisualizationDimension>**](ReportPageVisualizationDimension.md) | | [optional] |
|
11
|
+
| **filter** | [**ReportFilter**](ReportFilter.md) | | [optional] |
|
12
|
+
| **for_object_id** | **String** | An identifier that can be used to help match up the returned data set | [optional] |
|
13
|
+
| **for_object_type** | **String** | The type of object this data set is for | [optional] |
|
14
|
+
| **metrics** | [**Array<ReportPageVisualizationMetric>**](ReportPageVisualizationMetric.md) | | [optional] |
|
15
|
+
| **page_size** | **Integer** | Result set page size. The default value is 200 records. Max is 10000. | [optional] |
|
16
|
+
| **selected_filters** | [**Array<ReportFilter>**](ReportFilter.md) | | [optional] |
|
17
|
+
| **skip_cache** | **Boolean** | True if the 15 minute cache should be skipped. | [optional] |
|
18
|
+
| **user_data** | **String** | Any other data that needs to be returned with the response to help the UI | [optional] |
|
19
|
+
|
20
|
+
## Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'ultracart_api'
|
24
|
+
|
25
|
+
instance = UltracartClient::ReportDataSetQuery.new(
|
26
|
+
comparison_results: null,
|
27
|
+
data_set_query_uuid: null,
|
28
|
+
data_source: null,
|
29
|
+
dimensions: null,
|
30
|
+
filter: null,
|
31
|
+
for_object_id: null,
|
32
|
+
for_object_type: null,
|
33
|
+
metrics: null,
|
34
|
+
page_size: null,
|
35
|
+
selected_filters: null,
|
36
|
+
skip_cache: null,
|
37
|
+
user_data: null
|
38
|
+
)
|
39
|
+
```
|
40
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# UltracartClient::ReportDataSetResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data_set** | [**ReportDataSet**](ReportDataSet.md) | | [optional] |
|
8
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
9
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'ultracart_api'
|
17
|
+
|
18
|
+
instance = UltracartClient::ReportDataSetResponse.new(
|
19
|
+
data_set: null,
|
20
|
+
error: null,
|
21
|
+
metadata: null,
|
22
|
+
success: null,
|
23
|
+
warning: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# UltracartClient::ReportDataSetRow
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **columns** | [**Array<ReportDataSetColumn>**](ReportDataSetColumn.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'ultracart_api'
|
13
|
+
|
14
|
+
instance = UltracartClient::ReportDataSetRow.new(
|
15
|
+
columns: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# UltracartClient::ReportDataSetSchema
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
| **type** | **String** | Type of the column. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'ultracart_api'
|
14
|
+
|
15
|
+
instance = UltracartClient::ReportDataSetSchema.new(
|
16
|
+
name: null,
|
17
|
+
type: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# UltracartClient::ReportDataSource
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
| **partition_date_column** | **String** | | [optional] |
|
9
|
+
| **partition_date_safety_days** | **Integer** | | [optional] |
|
10
|
+
| **partition_date_strategy** | **String** | The partition date strategy, defaults to weekly sunday | [optional] |
|
11
|
+
| **schema** | [**Array<ReportDataSourceSchema>**](ReportDataSourceSchema.md) | | [optional] |
|
12
|
+
| **sql** | **String** | | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'ultracart_api'
|
18
|
+
|
19
|
+
instance = UltracartClient::ReportDataSource.new(
|
20
|
+
name: null,
|
21
|
+
partition_date_column: null,
|
22
|
+
partition_date_safety_days: null,
|
23
|
+
partition_date_strategy: null,
|
24
|
+
schema: null,
|
25
|
+
sql: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# UltracartClient::ReportDataSourceSchema
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **dimension** | **Boolean** | Whether or not this column can be used as a dimension within a visualization | [optional] |
|
8
|
+
| **name** | **String** | | [optional] |
|
9
|
+
| **type** | **String** | Type of the column. Only supporting the allowed values. Any other types will be ignored. | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ultracart_api'
|
15
|
+
|
16
|
+
instance = UltracartClient::ReportDataSourceSchema.new(
|
17
|
+
dimension: null,
|
18
|
+
name: null,
|
19
|
+
type: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# UltracartClient::ReportExecuteQueriesRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **client_uuid** | **String** | Unique UUID assigned to this client during the auth. This will be used to locate the websocket connect id. | [optional] |
|
8
|
+
| **connection_id** | **String** | The websocket connection id that should receive back notices of query completion. | [optional] |
|
9
|
+
| **default_dataset_id** | **String** | | [optional] |
|
10
|
+
| **default_project_id** | **String** | | [optional] |
|
11
|
+
| **merchant_id** | **String** | | [optional] |
|
12
|
+
| **queries** | [**Array<ReportDataSetQuery>**](ReportDataSetQuery.md) | An array of queries that we want the lambda function to execute. | [optional] |
|
13
|
+
| **security_level** | **String** | Security level to execute report under | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'ultracart_api'
|
19
|
+
|
20
|
+
instance = UltracartClient::ReportExecuteQueriesRequest.new(
|
21
|
+
client_uuid: null,
|
22
|
+
connection_id: null,
|
23
|
+
default_dataset_id: null,
|
24
|
+
default_project_id: null,
|
25
|
+
merchant_id: null,
|
26
|
+
queries: null,
|
27
|
+
security_level: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# UltracartClient::ReportFilter
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **connections** | [**Array<ReportFilterConnection>**](ReportFilterConnection.md) | How this filter connects to the data sources and columns | [optional] |
|
8
|
+
| **name** | **String** | | [optional] |
|
9
|
+
| **timezone** | **String** | The timezone that the date range is querying on. | [optional] |
|
10
|
+
| **type** | **String** | Type of filter | [optional] |
|
11
|
+
| **uuid** | **String** | Unique UUID assigned to the filter. Assists when returning values that the filter can use. | [optional] |
|
12
|
+
| **values** | **Array<String>** | The selected values for the filter. When used, some type conversion will need to occur. | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'ultracart_api'
|
18
|
+
|
19
|
+
instance = UltracartClient::ReportFilter.new(
|
20
|
+
connections: null,
|
21
|
+
name: null,
|
22
|
+
timezone: null,
|
23
|
+
type: null,
|
24
|
+
uuid: null,
|
25
|
+
values: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# UltracartClient::ReportFilterConnection
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **column** | **String** | | [optional] |
|
8
|
+
| **data_source_name** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'ultracart_api'
|
14
|
+
|
15
|
+
instance = UltracartClient::ReportFilterConnection.new(
|
16
|
+
column: null,
|
17
|
+
data_source_name: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/ReportPage.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# UltracartClient::ReportPage
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **height** | **Float** | Height of the report page in inches | [optional] |
|
8
|
+
| **title** | **String** | | [optional] |
|
9
|
+
| **visualizations** | [**Array<ReportPageVisualization>**](ReportPageVisualization.md) | Visualizations on the report page. | [optional] |
|
10
|
+
| **width** | **Float** | Width of the report page in inches | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ultracart_api'
|
16
|
+
|
17
|
+
instance = UltracartClient::ReportPage.new(
|
18
|
+
height: null,
|
19
|
+
title: null,
|
20
|
+
visualizations: null,
|
21
|
+
width: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# UltracartClient::ReportPageVisualization
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **config** | **String** | A JSON representation of the configuration for this visualization | [optional] |
|
8
|
+
| **data_source_name** | **String** | | [optional] |
|
9
|
+
| **dimensions** | [**Array<ReportPageVisualizationDimension>**](ReportPageVisualizationDimension.md) | | [optional] |
|
10
|
+
| **metrics** | [**Array<ReportPageVisualizationMetric>**](ReportPageVisualizationMetric.md) | | [optional] |
|
11
|
+
| **name** | **String** | | [optional] |
|
12
|
+
| **show_comparison** | **Boolean** | True if the visualization should show a comparison based upon the date range | [optional] |
|
13
|
+
| **styles** | **String** | A JSON representation of the style configuration for this visualization | [optional] |
|
14
|
+
| **type** | **String** | Type of visualization | [optional] |
|
15
|
+
| **visualization_uuid** | **String** | A UUID for the visualization | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'ultracart_api'
|
21
|
+
|
22
|
+
instance = UltracartClient::ReportPageVisualization.new(
|
23
|
+
config: null,
|
24
|
+
data_source_name: null,
|
25
|
+
dimensions: null,
|
26
|
+
metrics: null,
|
27
|
+
name: null,
|
28
|
+
show_comparison: null,
|
29
|
+
styles: null,
|
30
|
+
type: null,
|
31
|
+
visualization_uuid: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# UltracartClient::ReportPageVisualizationDimension
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **as** | **String** | Return the column as a different name | [optional] |
|
8
|
+
| **cast** | **String** | Cast the column to a different data type such as DATETIME -> DATE | [optional] |
|
9
|
+
| **column** | **String** | | [optional] |
|
10
|
+
| **datetime_timezone** | **String** | The timezone to shift the date to | [optional] |
|
11
|
+
| **datetime_trunc** | **String** | The type of truncation to perform on the date, DAY, WEEK(MONDAY), etc. | [optional] |
|
12
|
+
| **extract** | **String** | Part of a datetime to extract | [optional] |
|
13
|
+
| **function** | **String** | The function to perform around the column such as DATE_TRUNC(@column, day) | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'ultracart_api'
|
19
|
+
|
20
|
+
instance = UltracartClient::ReportPageVisualizationDimension.new(
|
21
|
+
as: null,
|
22
|
+
cast: null,
|
23
|
+
column: null,
|
24
|
+
datetime_timezone: null,
|
25
|
+
datetime_trunc: null,
|
26
|
+
extract: null,
|
27
|
+
function: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# UltracartClient::ReportPageVisualizationMetric
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **aggregation** | **String** | Aggregation to perform | [optional] |
|
8
|
+
| **as** | **String** | Return the column as a different name | [optional] |
|
9
|
+
| **column** | **String** | | [optional] |
|
10
|
+
| **round** | **Integer** | Number of places after the decimal point to round the number to. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ultracart_api'
|
16
|
+
|
17
|
+
instance = UltracartClient::ReportPageVisualizationMetric.new(
|
18
|
+
aggregation: null,
|
19
|
+
as: null,
|
20
|
+
column: null,
|
21
|
+
round: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# UltracartClient::ReportResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
8
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
9
|
+
| **report** | [**Report**](Report.md) | | [optional] |
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'ultracart_api'
|
17
|
+
|
18
|
+
instance = UltracartClient::ReportResponse.new(
|
19
|
+
error: null,
|
20
|
+
metadata: null,
|
21
|
+
report: null,
|
22
|
+
success: null,
|
23
|
+
warning: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# UltracartClient::ReportsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
8
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
9
|
+
| **reports** | [**Array<Report>**](Report.md) | | [optional] |
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'ultracart_api'
|
17
|
+
|
18
|
+
instance = UltracartClient::ReportsResponse.new(
|
19
|
+
error: null,
|
20
|
+
metadata: null,
|
21
|
+
reports: null,
|
22
|
+
success: null,
|
23
|
+
warning: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|