ultracart_api 3.1.5 → 3.1.10
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 -4
- data/docs/Coupon.md +1 -0
- data/docs/CouponAmountOffSubtotalWithPurchase.md +10 -0
- data/docs/ItemContentAssignment.md +1 -0
- data/docs/ScreenRecording.md +1 -0
- data/docs/ScreenRecordingMerchantNotesRequest.md +8 -0
- data/docs/ScreenRecordingPageView.md +1 -0
- data/docs/ScreenRecordingPageViewDataResponse.md +12 -0
- data/docs/StorefrontApi.md +58 -2
- data/lib/ultracart_api.rb +3 -0
- data/lib/ultracart_api/api/storefront_api.rb +69 -3
- data/lib/ultracart_api/models/coupon.rb +10 -1
- data/lib/ultracart_api/models/coupon_amount_off_subtotal_with_purchase.rb +220 -0
- data/lib/ultracart_api/models/item_content_assignment.rb +11 -1
- data/lib/ultracart_api/models/screen_recording.rb +10 -1
- data/lib/ultracart_api/models/screen_recording_merchant_notes_request.rb +184 -0
- data/lib/ultracart_api/models/screen_recording_page_view.rb +10 -1
- data/lib/ultracart_api/models/screen_recording_page_view_data_response.rb +221 -0
- data/lib/ultracart_api/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '094c42a7b58e47833d3d3f25b4ecc5842e6aee6f44da37a62919ba820890dbce'
|
|
4
|
+
data.tar.gz: d1f7de2eb8cbe6dd978b28b0a5f9cfd3811afe28210f7960fd9490d87228fe77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e41253222e1e0168e8d5e9c53d971ee23fdbdc0dd6bf290dd4426df1bc31712bc477849c26a7511a87100f329424bafd96bdee005d16e41a1186bda05f744094
|
|
7
|
+
data.tar.gz: c10d19ebcc321bbd469fcd339014a2e44580ad1d82b8ce7ebfdef6934724a2bba154b0509e071a33b432e6cab2db92edccd053bfe4318cac40fbe01c3117823b
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
8
8
|
|
|
9
9
|
- API version: 2.0.0
|
|
10
|
-
- Package version: 3.1.
|
|
10
|
+
- Package version: 3.1.10
|
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
|
13
13
|
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./ultracart_api-3.1.
|
|
27
|
+
gem install ./ultracart_api-3.1.10.gem
|
|
28
28
|
```
|
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.1.
|
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.1.10.gem` to install the development dependencies)
|
|
30
30
|
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
32
|
|
|
33
33
|
Finally add this to the Gemfile:
|
|
34
34
|
|
|
35
|
-
gem 'ultracart_api', '~> 3.1.
|
|
35
|
+
gem 'ultracart_api', '~> 3.1.10'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -327,6 +327,7 @@ Class | Method | HTTP request | Description
|
|
|
327
327
|
*UltracartClient::StorefrontApi* | [**update_email_settings**](docs/StorefrontApi.md#update_email_settings) | **POST** /storefront/{storefront_oid}/email/settings | Update email settings
|
|
328
328
|
*UltracartClient::StorefrontApi* | [**update_experiment**](docs/StorefrontApi.md#update_experiment) | **PUT** /storefront/{storefront_oid}/experiments/{storefront_experiment_oid} | Update experiment
|
|
329
329
|
*UltracartClient::StorefrontApi* | [**update_library_item**](docs/StorefrontApi.md#update_library_item) | **PUT** /storefront/code_library/{library_item_oid} | Update library item. Note that only certain fields may be updated via this method.
|
|
330
|
+
*UltracartClient::StorefrontApi* | [**update_screen_recording_merchant_notes**](docs/StorefrontApi.md#update_screen_recording_merchant_notes) | **POST** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/merchant_notes | Update merchant notes on a screen recording
|
|
330
331
|
*UltracartClient::StorefrontApi* | [**update_screen_recording_segment**](docs/StorefrontApi.md#update_screen_recording_segment) | **POST** /storefront/{storefront_oid}/screen_recordings/segments/{screen_recording_segment_oid} | Update screen recording segment
|
|
331
332
|
*UltracartClient::StorefrontApi* | [**update_screen_recording_settings**](docs/StorefrontApi.md#update_screen_recording_settings) | **POST** /storefront/{storefront_oid}/screen_recordings/settings | Update screen recording settings
|
|
332
333
|
*UltracartClient::StorefrontApi* | [**update_screen_recording_tags**](docs/StorefrontApi.md#update_screen_recording_tags) | **POST** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/tags | Update tags on a screen recording
|
|
@@ -492,6 +493,7 @@ Class | Method | HTTP request | Description
|
|
|
492
493
|
- [UltracartClient::CouponAmountOffSubtotalFreeShippingWithPurchase](docs/CouponAmountOffSubtotalFreeShippingWithPurchase.md)
|
|
493
494
|
- [UltracartClient::CouponAmountOffSubtotalWithBlockPurchase](docs/CouponAmountOffSubtotalWithBlockPurchase.md)
|
|
494
495
|
- [UltracartClient::CouponAmountOffSubtotalWithItemsPurchase](docs/CouponAmountOffSubtotalWithItemsPurchase.md)
|
|
496
|
+
- [UltracartClient::CouponAmountOffSubtotalWithPurchase](docs/CouponAmountOffSubtotalWithPurchase.md)
|
|
495
497
|
- [UltracartClient::CouponAutoApplyCondition](docs/CouponAutoApplyCondition.md)
|
|
496
498
|
- [UltracartClient::CouponAutoApplyConditions](docs/CouponAutoApplyConditions.md)
|
|
497
499
|
- [UltracartClient::CouponAutomaticallyApplyCouponCodes](docs/CouponAutomaticallyApplyCouponCodes.md)
|
|
@@ -864,8 +866,10 @@ Class | Method | HTTP request | Description
|
|
|
864
866
|
- [UltracartClient::ScreenRecordingFilterValues](docs/ScreenRecordingFilterValues.md)
|
|
865
867
|
- [UltracartClient::ScreenRecordingFilterValuesEvent](docs/ScreenRecordingFilterValuesEvent.md)
|
|
866
868
|
- [UltracartClient::ScreenRecordingFilterValuesEventParams](docs/ScreenRecordingFilterValuesEventParams.md)
|
|
869
|
+
- [UltracartClient::ScreenRecordingMerchantNotesRequest](docs/ScreenRecordingMerchantNotesRequest.md)
|
|
867
870
|
- [UltracartClient::ScreenRecordingMultifield](docs/ScreenRecordingMultifield.md)
|
|
868
871
|
- [UltracartClient::ScreenRecordingPageView](docs/ScreenRecordingPageView.md)
|
|
872
|
+
- [UltracartClient::ScreenRecordingPageViewDataResponse](docs/ScreenRecordingPageViewDataResponse.md)
|
|
869
873
|
- [UltracartClient::ScreenRecordingPageViewEvent](docs/ScreenRecordingPageViewEvent.md)
|
|
870
874
|
- [UltracartClient::ScreenRecordingPageViewEventParameter](docs/ScreenRecordingPageViewEventParameter.md)
|
|
871
875
|
- [UltracartClient::ScreenRecordingPageViewParameter](docs/ScreenRecordingPageViewParameter.md)
|
|
@@ -1002,6 +1006,9 @@ Not every change is committed to every SDK.
|
|
|
1002
1006
|
|
|
1003
1007
|
| Version | Date | Comments |
|
|
1004
1008
|
| --: | :-: | --- |
|
|
1009
|
+
| 3.1.10 | 02/24/2021 | Added Screen recording merchant notes |
|
|
1010
|
+
| 3.1.9 | 02/24/2021 | Allow coupons to be configured as unique with expiration on cart step within StoreFront Communications |
|
|
1011
|
+
| 3.1.8 | 02/24/2021 | Add flag: screen recording missing event boolean |
|
|
1005
1012
|
| 3.1.5 | 02/12/2021 | Bug Fix: PHP retry logic missing a closing brace. Also screen recording page view data response refactor |
|
|
1006
1013
|
| 3.1.3 | 02/11/2021 | Bug Fix: wrong return type on CustomerApi.validateEmailVerificationToken |
|
|
1007
1014
|
| 3.1.2 | 02/11/2021 | CustomerApi.getEmailVerificationToken, CustomerApi.validateEmailVerificationToken added to allow for custom email verification. Also added favorite flag to screen recording object |
|
data/docs/Coupon.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**amount_off_subtotal_and_shipping** | [**CouponAmountOffSubtotalAndShipping**](CouponAmountOffSubtotalAndShipping.md) | | [optional]
|
|
14
14
|
**amount_off_subtotal_with_block_purchase** | [**CouponAmountOffSubtotalWithBlockPurchase**](CouponAmountOffSubtotalWithBlockPurchase.md) | | [optional]
|
|
15
15
|
**amount_off_subtotal_with_items_purchase** | [**CouponAmountOffSubtotalWithItemsPurchase**](CouponAmountOffSubtotalWithItemsPurchase.md) | | [optional]
|
|
16
|
+
**amount_off_subtotal_with_purchase** | [**CouponAmountOffSubtotalWithPurchase**](CouponAmountOffSubtotalWithPurchase.md) | | [optional]
|
|
16
17
|
**automatically_apply_coupon_codes** | [**CouponAutomaticallyApplyCouponCodes**](CouponAutomaticallyApplyCouponCodes.md) | | [optional]
|
|
17
18
|
**buy_one_get_one** | [**CouponBuyOneGetOneLimit**](CouponBuyOneGetOneLimit.md) | | [optional]
|
|
18
19
|
**calculated_description** | **String** | Calculated description displayed to the customer if no description is specified. | [optional]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# UltracartClient::CouponAmountOffSubtotalWithPurchase
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**currency_code** | **String** | The ISO-4217 three letter currency code the customer is viewing prices in | [optional]
|
|
7
|
+
**discount_amount** | **Float** | The amount of subtotal discount | [optional]
|
|
8
|
+
**purchase_amount** | **Float** | The purchase amount to qualify for subtotal discount and free shipping | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**default_assignment** | **BOOLEAN** | True if this group is the default assignment for this item | [optional]
|
|
6
7
|
**group_oid** | **Integer** | Page (group) object identifier | [optional]
|
|
7
8
|
**group_path** | **String** | Page (group) path | [optional]
|
|
8
9
|
**host** | **String** | StoreFront host name | [optional]
|
data/docs/ScreenRecording.md
CHANGED
|
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**geolocation_country** | **String** | | [optional]
|
|
18
18
|
**geolocation_state** | **String** | | [optional]
|
|
19
19
|
**merchant_id** | **String** | | [optional]
|
|
20
|
+
**merchant_notes** | **String** | | [optional]
|
|
20
21
|
**order_id** | **String** | | [optional]
|
|
21
22
|
**page_view_count** | **Integer** | | [optional]
|
|
22
23
|
**page_views** | [**Array<ScreenRecordingPageView>**](ScreenRecordingPageView.md) | | [optional]
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**first_event_timestamp** | **String** | First event timestamp | [optional]
|
|
8
8
|
**http_post** | **BOOLEAN** | | [optional]
|
|
9
9
|
**last_event_timestamp** | **String** | Last event timestamp | [optional]
|
|
10
|
+
**missing_events** | **BOOLEAN** | | [optional]
|
|
10
11
|
**params** | [**Array<ScreenRecordingPageViewParameter>**](ScreenRecordingPageViewParameter.md) | | [optional]
|
|
11
12
|
**range_end** | **Integer** | | [optional]
|
|
12
13
|
**range_start** | **Integer** | | [optional]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UltracartClient::ScreenRecordingPageViewDataResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**error** | [**Error**](Error.md) | | [optional]
|
|
7
|
+
**events_json** | **String** | | [optional]
|
|
8
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
|
9
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
|
10
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
|
11
|
+
|
|
12
|
+
|
data/docs/StorefrontApi.md
CHANGED
|
@@ -143,6 +143,7 @@ Method | HTTP request | Description
|
|
|
143
143
|
[**update_email_settings**](StorefrontApi.md#update_email_settings) | **POST** /storefront/{storefront_oid}/email/settings | Update email settings
|
|
144
144
|
[**update_experiment**](StorefrontApi.md#update_experiment) | **PUT** /storefront/{storefront_oid}/experiments/{storefront_experiment_oid} | Update experiment
|
|
145
145
|
[**update_library_item**](StorefrontApi.md#update_library_item) | **PUT** /storefront/code_library/{library_item_oid} | Update library item. Note that only certain fields may be updated via this method.
|
|
146
|
+
[**update_screen_recording_merchant_notes**](StorefrontApi.md#update_screen_recording_merchant_notes) | **POST** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/merchant_notes | Update merchant notes on a screen recording
|
|
146
147
|
[**update_screen_recording_segment**](StorefrontApi.md#update_screen_recording_segment) | **POST** /storefront/{storefront_oid}/screen_recordings/segments/{screen_recording_segment_oid} | Update screen recording segment
|
|
147
148
|
[**update_screen_recording_settings**](StorefrontApi.md#update_screen_recording_settings) | **POST** /storefront/{storefront_oid}/screen_recordings/settings | Update screen recording settings
|
|
148
149
|
[**update_screen_recording_tags**](StorefrontApi.md#update_screen_recording_tags) | **POST** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/tags | Update tags on a screen recording
|
|
@@ -4366,7 +4367,7 @@ Name | Type | Description | Notes
|
|
|
4366
4367
|
|
|
4367
4368
|
|
|
4368
4369
|
# **get_screen_recording_page_view_data**
|
|
4369
|
-
>
|
|
4370
|
+
> ScreenRecordingPageViewDataResponse get_screen_recording_page_view_data(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid)
|
|
4370
4371
|
|
|
4371
4372
|
Get screen recording page view data
|
|
4372
4373
|
|
|
@@ -4408,7 +4409,7 @@ Name | Type | Description | Notes
|
|
|
4408
4409
|
|
|
4409
4410
|
### Return type
|
|
4410
4411
|
|
|
4411
|
-
[**
|
|
4412
|
+
[**ScreenRecordingPageViewDataResponse**](ScreenRecordingPageViewDataResponse.md)
|
|
4412
4413
|
|
|
4413
4414
|
### Authorization
|
|
4414
4415
|
|
|
@@ -7320,6 +7321,61 @@ Name | Type | Description | Notes
|
|
|
7320
7321
|
|
|
7321
7322
|
|
|
7322
7323
|
|
|
7324
|
+
# **update_screen_recording_merchant_notes**
|
|
7325
|
+
> update_screen_recording_merchant_notes(storefront_oid, screen_recording_uuid, merchant_notes_request)
|
|
7326
|
+
|
|
7327
|
+
Update merchant notes on a screen recording
|
|
7328
|
+
|
|
7329
|
+
Update merchant notes on a screen recording
|
|
7330
|
+
|
|
7331
|
+
### Example
|
|
7332
|
+
```ruby
|
|
7333
|
+
# load the gem
|
|
7334
|
+
require 'ultracart_api'
|
|
7335
|
+
|
|
7336
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
7337
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
7338
|
+
api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
|
|
7339
|
+
|
|
7340
|
+
|
|
7341
|
+
storefront_oid = 56 # Integer |
|
|
7342
|
+
|
|
7343
|
+
screen_recording_uuid = 'screen_recording_uuid_example' # String |
|
|
7344
|
+
|
|
7345
|
+
merchant_notes_request = UltracartClient::ScreenRecordingMerchantNotesRequest.new # ScreenRecordingMerchantNotesRequest | Merchant Notes
|
|
7346
|
+
|
|
7347
|
+
|
|
7348
|
+
begin
|
|
7349
|
+
#Update merchant notes on a screen recording
|
|
7350
|
+
api_instance.update_screen_recording_merchant_notes(storefront_oid, screen_recording_uuid, merchant_notes_request)
|
|
7351
|
+
rescue UltracartClient::ApiError => e
|
|
7352
|
+
puts "Exception when calling StorefrontApi->update_screen_recording_merchant_notes: #{e}"
|
|
7353
|
+
end
|
|
7354
|
+
```
|
|
7355
|
+
|
|
7356
|
+
### Parameters
|
|
7357
|
+
|
|
7358
|
+
Name | Type | Description | Notes
|
|
7359
|
+
------------- | ------------- | ------------- | -------------
|
|
7360
|
+
**storefront_oid** | **Integer**| |
|
|
7361
|
+
**screen_recording_uuid** | **String**| |
|
|
7362
|
+
**merchant_notes_request** | [**ScreenRecordingMerchantNotesRequest**](ScreenRecordingMerchantNotesRequest.md)| Merchant Notes |
|
|
7363
|
+
|
|
7364
|
+
### Return type
|
|
7365
|
+
|
|
7366
|
+
nil (empty response body)
|
|
7367
|
+
|
|
7368
|
+
### Authorization
|
|
7369
|
+
|
|
7370
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
7371
|
+
|
|
7372
|
+
### HTTP request headers
|
|
7373
|
+
|
|
7374
|
+
- **Content-Type**: application/json
|
|
7375
|
+
- **Accept**: application/json
|
|
7376
|
+
|
|
7377
|
+
|
|
7378
|
+
|
|
7323
7379
|
# **update_screen_recording_segment**
|
|
7324
7380
|
> ScreenRecordingSegmentResponse update_screen_recording_segment(storefront_oid, screen_recording_segment_oid, segment)
|
|
7325
7381
|
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -127,6 +127,7 @@ require 'ultracart_api/models/coupon_amount_off_subtotal_and_shipping'
|
|
|
127
127
|
require 'ultracart_api/models/coupon_amount_off_subtotal_free_shipping_with_purchase'
|
|
128
128
|
require 'ultracart_api/models/coupon_amount_off_subtotal_with_block_purchase'
|
|
129
129
|
require 'ultracart_api/models/coupon_amount_off_subtotal_with_items_purchase'
|
|
130
|
+
require 'ultracart_api/models/coupon_amount_off_subtotal_with_purchase'
|
|
130
131
|
require 'ultracart_api/models/coupon_auto_apply_condition'
|
|
131
132
|
require 'ultracart_api/models/coupon_auto_apply_conditions'
|
|
132
133
|
require 'ultracart_api/models/coupon_automatically_apply_coupon_codes'
|
|
@@ -499,8 +500,10 @@ require 'ultracart_api/models/screen_recording_filter_string_search'
|
|
|
499
500
|
require 'ultracart_api/models/screen_recording_filter_values'
|
|
500
501
|
require 'ultracart_api/models/screen_recording_filter_values_event'
|
|
501
502
|
require 'ultracart_api/models/screen_recording_filter_values_event_params'
|
|
503
|
+
require 'ultracart_api/models/screen_recording_merchant_notes_request'
|
|
502
504
|
require 'ultracart_api/models/screen_recording_multifield'
|
|
503
505
|
require 'ultracart_api/models/screen_recording_page_view'
|
|
506
|
+
require 'ultracart_api/models/screen_recording_page_view_data_response'
|
|
504
507
|
require 'ultracart_api/models/screen_recording_page_view_event'
|
|
505
508
|
require 'ultracart_api/models/screen_recording_page_view_event_parameter'
|
|
506
509
|
require 'ultracart_api/models/screen_recording_page_view_parameter'
|
|
@@ -4833,7 +4833,7 @@ module UltracartClient
|
|
|
4833
4833
|
# @param screen_recording_uuid
|
|
4834
4834
|
# @param screen_recording_page_view_uuid
|
|
4835
4835
|
# @param [Hash] opts the optional parameters
|
|
4836
|
-
# @return [
|
|
4836
|
+
# @return [ScreenRecordingPageViewDataResponse]
|
|
4837
4837
|
def get_screen_recording_page_view_data(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid, opts = {})
|
|
4838
4838
|
data, _status_code, _headers = get_screen_recording_page_view_data_with_http_info(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid, opts)
|
|
4839
4839
|
data
|
|
@@ -4845,7 +4845,7 @@ module UltracartClient
|
|
|
4845
4845
|
# @param screen_recording_uuid
|
|
4846
4846
|
# @param screen_recording_page_view_uuid
|
|
4847
4847
|
# @param [Hash] opts the optional parameters
|
|
4848
|
-
# @return [Array<(
|
|
4848
|
+
# @return [Array<(ScreenRecordingPageViewDataResponse, Fixnum, Hash)>] ScreenRecordingPageViewDataResponse data, response status code and response headers
|
|
4849
4849
|
def get_screen_recording_page_view_data_with_http_info(storefront_oid, screen_recording_uuid, screen_recording_page_view_uuid, opts = {})
|
|
4850
4850
|
if @api_client.config.debugging
|
|
4851
4851
|
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_screen_recording_page_view_data ...'
|
|
@@ -4888,7 +4888,7 @@ module UltracartClient
|
|
|
4888
4888
|
:form_params => form_params,
|
|
4889
4889
|
:body => post_body,
|
|
4890
4890
|
:auth_names => auth_names,
|
|
4891
|
-
:return_type => '
|
|
4891
|
+
:return_type => 'ScreenRecordingPageViewDataResponse')
|
|
4892
4892
|
if @api_client.config.debugging
|
|
4893
4893
|
@api_client.config.logger.debug "API called: StorefrontApi#get_screen_recording_page_view_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4894
4894
|
end
|
|
@@ -8245,6 +8245,72 @@ module UltracartClient
|
|
|
8245
8245
|
end
|
|
8246
8246
|
return data, status_code, headers
|
|
8247
8247
|
end
|
|
8248
|
+
# Update merchant notes on a screen recording
|
|
8249
|
+
# Update merchant notes on a screen recording
|
|
8250
|
+
# @param storefront_oid
|
|
8251
|
+
# @param screen_recording_uuid
|
|
8252
|
+
# @param merchant_notes_request Merchant Notes
|
|
8253
|
+
# @param [Hash] opts the optional parameters
|
|
8254
|
+
# @return [nil]
|
|
8255
|
+
def update_screen_recording_merchant_notes(storefront_oid, screen_recording_uuid, merchant_notes_request, opts = {})
|
|
8256
|
+
update_screen_recording_merchant_notes_with_http_info(storefront_oid, screen_recording_uuid, merchant_notes_request, opts)
|
|
8257
|
+
nil
|
|
8258
|
+
end
|
|
8259
|
+
|
|
8260
|
+
# Update merchant notes on a screen recording
|
|
8261
|
+
# Update merchant notes on a screen recording
|
|
8262
|
+
# @param storefront_oid
|
|
8263
|
+
# @param screen_recording_uuid
|
|
8264
|
+
# @param merchant_notes_request Merchant Notes
|
|
8265
|
+
# @param [Hash] opts the optional parameters
|
|
8266
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
8267
|
+
def update_screen_recording_merchant_notes_with_http_info(storefront_oid, screen_recording_uuid, merchant_notes_request, opts = {})
|
|
8268
|
+
if @api_client.config.debugging
|
|
8269
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.update_screen_recording_merchant_notes ...'
|
|
8270
|
+
end
|
|
8271
|
+
# verify the required parameter 'storefront_oid' is set
|
|
8272
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
|
8273
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.update_screen_recording_merchant_notes"
|
|
8274
|
+
end
|
|
8275
|
+
# verify the required parameter 'screen_recording_uuid' is set
|
|
8276
|
+
if @api_client.config.client_side_validation && screen_recording_uuid.nil?
|
|
8277
|
+
fail ArgumentError, "Missing the required parameter 'screen_recording_uuid' when calling StorefrontApi.update_screen_recording_merchant_notes"
|
|
8278
|
+
end
|
|
8279
|
+
# verify the required parameter 'merchant_notes_request' is set
|
|
8280
|
+
if @api_client.config.client_side_validation && merchant_notes_request.nil?
|
|
8281
|
+
fail ArgumentError, "Missing the required parameter 'merchant_notes_request' when calling StorefrontApi.update_screen_recording_merchant_notes"
|
|
8282
|
+
end
|
|
8283
|
+
# resource path
|
|
8284
|
+
local_var_path = '/storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/merchant_notes'.sub('{' + 'storefront_oid' + '}', storefront_oid.to_s).sub('{' + 'screen_recording_uuid' + '}', screen_recording_uuid.to_s)
|
|
8285
|
+
|
|
8286
|
+
# query parameters
|
|
8287
|
+
query_params = {}
|
|
8288
|
+
|
|
8289
|
+
# header parameters
|
|
8290
|
+
header_params = {}
|
|
8291
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
8292
|
+
# HTTP header 'Accept' (if needed)
|
|
8293
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
8294
|
+
# HTTP header 'Content-Type'
|
|
8295
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
8296
|
+
|
|
8297
|
+
# form parameters
|
|
8298
|
+
form_params = {}
|
|
8299
|
+
|
|
8300
|
+
# http body (model)
|
|
8301
|
+
post_body = @api_client.object_to_http_body(merchant_notes_request)
|
|
8302
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
8303
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
8304
|
+
:header_params => header_params,
|
|
8305
|
+
:query_params => query_params,
|
|
8306
|
+
:form_params => form_params,
|
|
8307
|
+
:body => post_body,
|
|
8308
|
+
:auth_names => auth_names)
|
|
8309
|
+
if @api_client.config.debugging
|
|
8310
|
+
@api_client.config.logger.debug "API called: StorefrontApi#update_screen_recording_merchant_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8311
|
+
end
|
|
8312
|
+
return data, status_code, headers
|
|
8313
|
+
end
|
|
8248
8314
|
# Update screen recording segment
|
|
8249
8315
|
# @param storefront_oid
|
|
8250
8316
|
# @param screen_recording_segment_oid
|
|
@@ -36,6 +36,8 @@ module UltracartClient
|
|
|
36
36
|
|
|
37
37
|
attr_accessor :amount_off_subtotal_with_items_purchase
|
|
38
38
|
|
|
39
|
+
attr_accessor :amount_off_subtotal_with_purchase
|
|
40
|
+
|
|
39
41
|
attr_accessor :automatically_apply_coupon_codes
|
|
40
42
|
|
|
41
43
|
attr_accessor :buy_one_get_one
|
|
@@ -156,6 +158,7 @@ module UltracartClient
|
|
|
156
158
|
:'amount_off_subtotal_and_shipping' => :'amount_off_subtotal_and_shipping',
|
|
157
159
|
:'amount_off_subtotal_with_block_purchase' => :'amount_off_subtotal_with_block_purchase',
|
|
158
160
|
:'amount_off_subtotal_with_items_purchase' => :'amount_off_subtotal_with_items_purchase',
|
|
161
|
+
:'amount_off_subtotal_with_purchase' => :'amount_off_subtotal_with_purchase',
|
|
159
162
|
:'automatically_apply_coupon_codes' => :'automatically_apply_coupon_codes',
|
|
160
163
|
:'buy_one_get_one' => :'buy_one_get_one',
|
|
161
164
|
:'calculated_description' => :'calculated_description',
|
|
@@ -218,6 +221,7 @@ module UltracartClient
|
|
|
218
221
|
:'amount_off_subtotal_and_shipping' => :'CouponAmountOffSubtotalAndShipping',
|
|
219
222
|
:'amount_off_subtotal_with_block_purchase' => :'CouponAmountOffSubtotalWithBlockPurchase',
|
|
220
223
|
:'amount_off_subtotal_with_items_purchase' => :'CouponAmountOffSubtotalWithItemsPurchase',
|
|
224
|
+
:'amount_off_subtotal_with_purchase' => :'CouponAmountOffSubtotalWithPurchase',
|
|
221
225
|
:'automatically_apply_coupon_codes' => :'CouponAutomaticallyApplyCouponCodes',
|
|
222
226
|
:'buy_one_get_one' => :'CouponBuyOneGetOneLimit',
|
|
223
227
|
:'calculated_description' => :'String',
|
|
@@ -315,6 +319,10 @@ module UltracartClient
|
|
|
315
319
|
self.amount_off_subtotal_with_items_purchase = attributes[:'amount_off_subtotal_with_items_purchase']
|
|
316
320
|
end
|
|
317
321
|
|
|
322
|
+
if attributes.has_key?(:'amount_off_subtotal_with_purchase')
|
|
323
|
+
self.amount_off_subtotal_with_purchase = attributes[:'amount_off_subtotal_with_purchase']
|
|
324
|
+
end
|
|
325
|
+
|
|
318
326
|
if attributes.has_key?(:'automatically_apply_coupon_codes')
|
|
319
327
|
self.automatically_apply_coupon_codes = attributes[:'automatically_apply_coupon_codes']
|
|
320
328
|
end
|
|
@@ -624,6 +632,7 @@ module UltracartClient
|
|
|
624
632
|
amount_off_subtotal_and_shipping == o.amount_off_subtotal_and_shipping &&
|
|
625
633
|
amount_off_subtotal_with_block_purchase == o.amount_off_subtotal_with_block_purchase &&
|
|
626
634
|
amount_off_subtotal_with_items_purchase == o.amount_off_subtotal_with_items_purchase &&
|
|
635
|
+
amount_off_subtotal_with_purchase == o.amount_off_subtotal_with_purchase &&
|
|
627
636
|
automatically_apply_coupon_codes == o.automatically_apply_coupon_codes &&
|
|
628
637
|
buy_one_get_one == o.buy_one_get_one &&
|
|
629
638
|
calculated_description == o.calculated_description &&
|
|
@@ -681,7 +690,7 @@ module UltracartClient
|
|
|
681
690
|
# Calculates hash code according to all attributes.
|
|
682
691
|
# @return [Fixnum] Hash code
|
|
683
692
|
def hash
|
|
684
|
-
[affiliate_oid, allow_multiple_one_time_codes, amount_off_items, amount_off_shipping, amount_off_shipping_with_items_purchase, amount_off_subtotal, amount_off_subtotal_and_free_shipping, amount_off_subtotal_and_shipping, amount_off_subtotal_with_block_purchase, amount_off_subtotal_with_items_purchase, automatically_apply_coupon_codes, buy_one_get_one, calculated_description, can_be_used_with_other_coupons, coupon_oid, coupon_type, description, discount_item_with_item_purchase, discount_items, expiration_dts, free_item_and_shipping_with_subtotal, free_item_with_item_purchase, free_item_with_subtotal, free_items_with_item_purchase, free_items_with_mixmatch_purchase, free_shipping, free_shipping_specific_items, free_shipping_with_items_purchase, free_shipping_with_subtotal, merchant_code, merchant_notes, multiple_amounts_off_items, no_discount, percent_off_item_with_items_quantity_purchase, percent_off_items, percent_off_items_and_free_shipping, percent_off_items_with_items_purchase, percent_off_retail_price_items, percent_off_shipping, percent_off_subtotal, percent_off_subtotal_and_free_shipping, percent_off_subtotal_limit, percent_off_subtotal_with_items_purchase, percent_off_subtotal_with_subtotal, quickbooks_code, restrict_by_postal_codes, restrict_by_screen_branding_theme_codes, restrict_by_storefronts, start_dts, super_coupon, tiered_amount_off_item, tiered_amount_off_subtotal, tiered_percent_off_items, tiered_percent_off_shipping, tiered_percent_off_subtotal, usable_by].hash
|
|
693
|
+
[affiliate_oid, allow_multiple_one_time_codes, amount_off_items, amount_off_shipping, amount_off_shipping_with_items_purchase, amount_off_subtotal, amount_off_subtotal_and_free_shipping, amount_off_subtotal_and_shipping, amount_off_subtotal_with_block_purchase, amount_off_subtotal_with_items_purchase, amount_off_subtotal_with_purchase, automatically_apply_coupon_codes, buy_one_get_one, calculated_description, can_be_used_with_other_coupons, coupon_oid, coupon_type, description, discount_item_with_item_purchase, discount_items, expiration_dts, free_item_and_shipping_with_subtotal, free_item_with_item_purchase, free_item_with_subtotal, free_items_with_item_purchase, free_items_with_mixmatch_purchase, free_shipping, free_shipping_specific_items, free_shipping_with_items_purchase, free_shipping_with_subtotal, merchant_code, merchant_notes, multiple_amounts_off_items, no_discount, percent_off_item_with_items_quantity_purchase, percent_off_items, percent_off_items_and_free_shipping, percent_off_items_with_items_purchase, percent_off_retail_price_items, percent_off_shipping, percent_off_subtotal, percent_off_subtotal_and_free_shipping, percent_off_subtotal_limit, percent_off_subtotal_with_items_purchase, percent_off_subtotal_with_subtotal, quickbooks_code, restrict_by_postal_codes, restrict_by_screen_branding_theme_codes, restrict_by_storefronts, start_dts, super_coupon, tiered_amount_off_item, tiered_amount_off_subtotal, tiered_percent_off_items, tiered_percent_off_shipping, tiered_percent_off_subtotal, usable_by].hash
|
|
685
694
|
end
|
|
686
695
|
|
|
687
696
|
# Builds the object from hash
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
#UltraCart REST API Version 2
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module UltracartClient
|
|
16
|
+
class CouponAmountOffSubtotalWithPurchase
|
|
17
|
+
# The ISO-4217 three letter currency code the customer is viewing prices in
|
|
18
|
+
attr_accessor :currency_code
|
|
19
|
+
|
|
20
|
+
# The amount of subtotal discount
|
|
21
|
+
attr_accessor :discount_amount
|
|
22
|
+
|
|
23
|
+
# The purchase amount to qualify for subtotal discount and free shipping
|
|
24
|
+
attr_accessor :purchase_amount
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'currency_code' => :'currency_code',
|
|
30
|
+
:'discount_amount' => :'discount_amount',
|
|
31
|
+
:'purchase_amount' => :'purchase_amount'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
def self.swagger_types
|
|
37
|
+
{
|
|
38
|
+
:'currency_code' => :'String',
|
|
39
|
+
:'discount_amount' => :'Float',
|
|
40
|
+
:'purchase_amount' => :'Float'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Initializes the object
|
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
46
|
+
def initialize(attributes = {})
|
|
47
|
+
return unless attributes.is_a?(Hash)
|
|
48
|
+
|
|
49
|
+
# convert string to symbol for hash key
|
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
51
|
+
|
|
52
|
+
if attributes.has_key?(:'currency_code')
|
|
53
|
+
self.currency_code = attributes[:'currency_code']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if attributes.has_key?(:'discount_amount')
|
|
57
|
+
self.discount_amount = attributes[:'discount_amount']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
if attributes.has_key?(:'purchase_amount')
|
|
61
|
+
self.purchase_amount = attributes[:'purchase_amount']
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
66
|
+
# @return Array for valid properties with the reasons
|
|
67
|
+
def list_invalid_properties
|
|
68
|
+
invalid_properties = Array.new
|
|
69
|
+
if !@currency_code.nil? && @currency_code.to_s.length > 3
|
|
70
|
+
invalid_properties.push('invalid value for "currency_code", the character length must be smaller than or equal to 3.')
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
invalid_properties
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Check to see if the all the properties in the model are valid
|
|
77
|
+
# @return true if the model is valid
|
|
78
|
+
def valid?
|
|
79
|
+
return false if !@currency_code.nil? && @currency_code.to_s.length > 3
|
|
80
|
+
true
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Custom attribute writer method with validation
|
|
84
|
+
# @param [Object] currency_code Value to be assigned
|
|
85
|
+
def currency_code=(currency_code)
|
|
86
|
+
if !currency_code.nil? && currency_code.to_s.length > 3
|
|
87
|
+
fail ArgumentError, 'invalid value for "currency_code", the character length must be smaller than or equal to 3.'
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
@currency_code = currency_code
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Checks equality by comparing each attribute.
|
|
94
|
+
# @param [Object] Object to be compared
|
|
95
|
+
def ==(o)
|
|
96
|
+
return true if self.equal?(o)
|
|
97
|
+
self.class == o.class &&
|
|
98
|
+
currency_code == o.currency_code &&
|
|
99
|
+
discount_amount == o.discount_amount &&
|
|
100
|
+
purchase_amount == o.purchase_amount
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# @see the `==` method
|
|
104
|
+
# @param [Object] Object to be compared
|
|
105
|
+
def eql?(o)
|
|
106
|
+
self == o
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Calculates hash code according to all attributes.
|
|
110
|
+
# @return [Fixnum] Hash code
|
|
111
|
+
def hash
|
|
112
|
+
[currency_code, discount_amount, purchase_amount].hash
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Builds the object from hash
|
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
117
|
+
# @return [Object] Returns the model itself
|
|
118
|
+
def build_from_hash(attributes)
|
|
119
|
+
return nil unless attributes.is_a?(Hash)
|
|
120
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
121
|
+
if type =~ /\AArray<(.*)>/i
|
|
122
|
+
# check to ensure the input is an array given that the attribute
|
|
123
|
+
# is documented as an array but the input is not
|
|
124
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
125
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
126
|
+
end
|
|
127
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
128
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
129
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
self
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Deserializes the data based on type
|
|
136
|
+
# @param string type Data type
|
|
137
|
+
# @param string value Value to be deserialized
|
|
138
|
+
# @return [Object] Deserialized data
|
|
139
|
+
def _deserialize(type, value)
|
|
140
|
+
case type.to_sym
|
|
141
|
+
when :DateTime
|
|
142
|
+
DateTime.parse(value)
|
|
143
|
+
when :Date
|
|
144
|
+
Date.parse(value)
|
|
145
|
+
when :String
|
|
146
|
+
value.to_s
|
|
147
|
+
when :Integer
|
|
148
|
+
value.to_i
|
|
149
|
+
when :Float
|
|
150
|
+
value.to_f
|
|
151
|
+
when :BOOLEAN
|
|
152
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
153
|
+
true
|
|
154
|
+
else
|
|
155
|
+
false
|
|
156
|
+
end
|
|
157
|
+
when :Object
|
|
158
|
+
# generic object (usually a Hash), return directly
|
|
159
|
+
value
|
|
160
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
161
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
162
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
163
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
164
|
+
k_type = Regexp.last_match[:k_type]
|
|
165
|
+
v_type = Regexp.last_match[:v_type]
|
|
166
|
+
{}.tap do |hash|
|
|
167
|
+
value.each do |k, v|
|
|
168
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
else # model
|
|
172
|
+
temp_model = UltracartClient.const_get(type).new
|
|
173
|
+
temp_model.build_from_hash(value)
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Returns the string representation of the object
|
|
178
|
+
# @return [String] String presentation of the object
|
|
179
|
+
def to_s
|
|
180
|
+
to_hash.to_s
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
|
185
|
+
def to_body
|
|
186
|
+
to_hash
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Returns the object in the form of hash
|
|
190
|
+
# @return [Hash] Returns the object in the form of hash
|
|
191
|
+
def to_hash
|
|
192
|
+
hash = {}
|
|
193
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
194
|
+
value = self.send(attr)
|
|
195
|
+
next if value.nil?
|
|
196
|
+
hash[param] = _to_hash(value)
|
|
197
|
+
end
|
|
198
|
+
hash
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Outputs non-array value in the form of hash
|
|
202
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
203
|
+
# @param [Object] value Any valid value
|
|
204
|
+
# @return [Hash] Returns the value in the form of hash
|
|
205
|
+
def _to_hash(value)
|
|
206
|
+
if value.is_a?(Array)
|
|
207
|
+
value.compact.map { |v| _to_hash(v) }
|
|
208
|
+
elsif value.is_a?(Hash)
|
|
209
|
+
{}.tap do |hash|
|
|
210
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
211
|
+
end
|
|
212
|
+
elsif value.respond_to? :to_hash
|
|
213
|
+
value.to_hash
|
|
214
|
+
else
|
|
215
|
+
value
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
end
|
|
220
|
+
end
|
|
@@ -14,6 +14,9 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module UltracartClient
|
|
16
16
|
class ItemContentAssignment
|
|
17
|
+
# True if this group is the default assignment for this item
|
|
18
|
+
attr_accessor :default_assignment
|
|
19
|
+
|
|
17
20
|
# Page (group) object identifier
|
|
18
21
|
attr_accessor :group_oid
|
|
19
22
|
|
|
@@ -32,6 +35,7 @@ module UltracartClient
|
|
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
36
|
def self.attribute_map
|
|
34
37
|
{
|
|
38
|
+
:'default_assignment' => :'default_assignment',
|
|
35
39
|
:'group_oid' => :'group_oid',
|
|
36
40
|
:'group_path' => :'group_path',
|
|
37
41
|
:'host' => :'host',
|
|
@@ -43,6 +47,7 @@ module UltracartClient
|
|
|
43
47
|
# Attribute type mapping.
|
|
44
48
|
def self.swagger_types
|
|
45
49
|
{
|
|
50
|
+
:'default_assignment' => :'BOOLEAN',
|
|
46
51
|
:'group_oid' => :'Integer',
|
|
47
52
|
:'group_path' => :'String',
|
|
48
53
|
:'host' => :'String',
|
|
@@ -59,6 +64,10 @@ module UltracartClient
|
|
|
59
64
|
# convert string to symbol for hash key
|
|
60
65
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
61
66
|
|
|
67
|
+
if attributes.has_key?(:'default_assignment')
|
|
68
|
+
self.default_assignment = attributes[:'default_assignment']
|
|
69
|
+
end
|
|
70
|
+
|
|
62
71
|
if attributes.has_key?(:'group_oid')
|
|
63
72
|
self.group_oid = attributes[:'group_oid']
|
|
64
73
|
end
|
|
@@ -113,6 +122,7 @@ module UltracartClient
|
|
|
113
122
|
def ==(o)
|
|
114
123
|
return true if self.equal?(o)
|
|
115
124
|
self.class == o.class &&
|
|
125
|
+
default_assignment == o.default_assignment &&
|
|
116
126
|
group_oid == o.group_oid &&
|
|
117
127
|
group_path == o.group_path &&
|
|
118
128
|
host == o.host &&
|
|
@@ -129,7 +139,7 @@ module UltracartClient
|
|
|
129
139
|
# Calculates hash code according to all attributes.
|
|
130
140
|
# @return [Fixnum] Hash code
|
|
131
141
|
def hash
|
|
132
|
-
[group_oid, group_path, host, sort_order, url_part].hash
|
|
142
|
+
[default_assignment, group_oid, group_path, host, sort_order, url_part].hash
|
|
133
143
|
end
|
|
134
144
|
|
|
135
145
|
# Builds the object from hash
|
|
@@ -45,6 +45,8 @@ module UltracartClient
|
|
|
45
45
|
|
|
46
46
|
attr_accessor :merchant_id
|
|
47
47
|
|
|
48
|
+
attr_accessor :merchant_notes
|
|
49
|
+
|
|
48
50
|
attr_accessor :order_id
|
|
49
51
|
|
|
50
52
|
attr_accessor :page_view_count
|
|
@@ -101,6 +103,7 @@ module UltracartClient
|
|
|
101
103
|
:'geolocation_country' => :'geolocation_country',
|
|
102
104
|
:'geolocation_state' => :'geolocation_state',
|
|
103
105
|
:'merchant_id' => :'merchant_id',
|
|
106
|
+
:'merchant_notes' => :'merchant_notes',
|
|
104
107
|
:'order_id' => :'order_id',
|
|
105
108
|
:'page_view_count' => :'page_view_count',
|
|
106
109
|
:'page_views' => :'page_views',
|
|
@@ -140,6 +143,7 @@ module UltracartClient
|
|
|
140
143
|
:'geolocation_country' => :'String',
|
|
141
144
|
:'geolocation_state' => :'String',
|
|
142
145
|
:'merchant_id' => :'String',
|
|
146
|
+
:'merchant_notes' => :'String',
|
|
143
147
|
:'order_id' => :'String',
|
|
144
148
|
:'page_view_count' => :'Integer',
|
|
145
149
|
:'page_views' => :'Array<ScreenRecordingPageView>',
|
|
@@ -228,6 +232,10 @@ module UltracartClient
|
|
|
228
232
|
self.merchant_id = attributes[:'merchant_id']
|
|
229
233
|
end
|
|
230
234
|
|
|
235
|
+
if attributes.has_key?(:'merchant_notes')
|
|
236
|
+
self.merchant_notes = attributes[:'merchant_notes']
|
|
237
|
+
end
|
|
238
|
+
|
|
231
239
|
if attributes.has_key?(:'order_id')
|
|
232
240
|
self.order_id = attributes[:'order_id']
|
|
233
241
|
end
|
|
@@ -347,6 +355,7 @@ module UltracartClient
|
|
|
347
355
|
geolocation_country == o.geolocation_country &&
|
|
348
356
|
geolocation_state == o.geolocation_state &&
|
|
349
357
|
merchant_id == o.merchant_id &&
|
|
358
|
+
merchant_notes == o.merchant_notes &&
|
|
350
359
|
order_id == o.order_id &&
|
|
351
360
|
page_view_count == o.page_view_count &&
|
|
352
361
|
page_views == o.page_views &&
|
|
@@ -377,7 +386,7 @@ module UltracartClient
|
|
|
377
386
|
# Calculates hash code according to all attributes.
|
|
378
387
|
# @return [Fixnum] Hash code
|
|
379
388
|
def hash
|
|
380
|
-
[analytics_client_oid, analytics_session_dts, analytics_session_oid, email, end_timestamp, esp_customer_uuid, events_gz_size, events_json_key, favorite, favorites, geolocation, geolocation_country, geolocation_state, merchant_id, order_id, page_view_count, page_views, rrweb_version, screen_recording_uuid, signed_download_url, start_timestamp, storefront_oids, storefronts, tags, time_on_site, ucacid, user_agent, user_agent_raw, user_ip, user_properties, watched, window_height, window_width].hash
|
|
389
|
+
[analytics_client_oid, analytics_session_dts, analytics_session_oid, email, end_timestamp, esp_customer_uuid, events_gz_size, events_json_key, favorite, favorites, geolocation, geolocation_country, geolocation_state, merchant_id, merchant_notes, order_id, page_view_count, page_views, rrweb_version, screen_recording_uuid, signed_download_url, start_timestamp, storefront_oids, storefronts, tags, time_on_site, ucacid, user_agent, user_agent_raw, user_ip, user_properties, watched, window_height, window_width].hash
|
|
381
390
|
end
|
|
382
391
|
|
|
383
392
|
# Builds the object from hash
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
#UltraCart REST API Version 2
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module UltracartClient
|
|
16
|
+
class ScreenRecordingMerchantNotesRequest
|
|
17
|
+
attr_accessor :merchant_notes
|
|
18
|
+
|
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
|
+
def self.attribute_map
|
|
21
|
+
{
|
|
22
|
+
:'merchant_notes' => :'merchant_notes'
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Attribute type mapping.
|
|
27
|
+
def self.swagger_types
|
|
28
|
+
{
|
|
29
|
+
:'merchant_notes' => :'String'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Initializes the object
|
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
return unless attributes.is_a?(Hash)
|
|
37
|
+
|
|
38
|
+
# convert string to symbol for hash key
|
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
40
|
+
|
|
41
|
+
if attributes.has_key?(:'merchant_notes')
|
|
42
|
+
self.merchant_notes = attributes[:'merchant_notes']
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
47
|
+
# @return Array for valid properties with the reasons
|
|
48
|
+
def list_invalid_properties
|
|
49
|
+
invalid_properties = Array.new
|
|
50
|
+
invalid_properties
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Check to see if the all the properties in the model are valid
|
|
54
|
+
# @return true if the model is valid
|
|
55
|
+
def valid?
|
|
56
|
+
true
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Checks equality by comparing each attribute.
|
|
60
|
+
# @param [Object] Object to be compared
|
|
61
|
+
def ==(o)
|
|
62
|
+
return true if self.equal?(o)
|
|
63
|
+
self.class == o.class &&
|
|
64
|
+
merchant_notes == o.merchant_notes
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# @see the `==` method
|
|
68
|
+
# @param [Object] Object to be compared
|
|
69
|
+
def eql?(o)
|
|
70
|
+
self == o
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Calculates hash code according to all attributes.
|
|
74
|
+
# @return [Fixnum] Hash code
|
|
75
|
+
def hash
|
|
76
|
+
[merchant_notes].hash
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Builds the object from hash
|
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
81
|
+
# @return [Object] Returns the model itself
|
|
82
|
+
def build_from_hash(attributes)
|
|
83
|
+
return nil unless attributes.is_a?(Hash)
|
|
84
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
85
|
+
if type =~ /\AArray<(.*)>/i
|
|
86
|
+
# check to ensure the input is an array given that the attribute
|
|
87
|
+
# is documented as an array but the input is not
|
|
88
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
89
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
90
|
+
end
|
|
91
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
92
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
93
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
self
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Deserializes the data based on type
|
|
100
|
+
# @param string type Data type
|
|
101
|
+
# @param string value Value to be deserialized
|
|
102
|
+
# @return [Object] Deserialized data
|
|
103
|
+
def _deserialize(type, value)
|
|
104
|
+
case type.to_sym
|
|
105
|
+
when :DateTime
|
|
106
|
+
DateTime.parse(value)
|
|
107
|
+
when :Date
|
|
108
|
+
Date.parse(value)
|
|
109
|
+
when :String
|
|
110
|
+
value.to_s
|
|
111
|
+
when :Integer
|
|
112
|
+
value.to_i
|
|
113
|
+
when :Float
|
|
114
|
+
value.to_f
|
|
115
|
+
when :BOOLEAN
|
|
116
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
117
|
+
true
|
|
118
|
+
else
|
|
119
|
+
false
|
|
120
|
+
end
|
|
121
|
+
when :Object
|
|
122
|
+
# generic object (usually a Hash), return directly
|
|
123
|
+
value
|
|
124
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
125
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
126
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
127
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
128
|
+
k_type = Regexp.last_match[:k_type]
|
|
129
|
+
v_type = Regexp.last_match[:v_type]
|
|
130
|
+
{}.tap do |hash|
|
|
131
|
+
value.each do |k, v|
|
|
132
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
else # model
|
|
136
|
+
temp_model = UltracartClient.const_get(type).new
|
|
137
|
+
temp_model.build_from_hash(value)
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Returns the string representation of the object
|
|
142
|
+
# @return [String] String presentation of the object
|
|
143
|
+
def to_s
|
|
144
|
+
to_hash.to_s
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
148
|
+
# @return [Hash] Returns the object in the form of hash
|
|
149
|
+
def to_body
|
|
150
|
+
to_hash
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Returns the object in the form of hash
|
|
154
|
+
# @return [Hash] Returns the object in the form of hash
|
|
155
|
+
def to_hash
|
|
156
|
+
hash = {}
|
|
157
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
158
|
+
value = self.send(attr)
|
|
159
|
+
next if value.nil?
|
|
160
|
+
hash[param] = _to_hash(value)
|
|
161
|
+
end
|
|
162
|
+
hash
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Outputs non-array value in the form of hash
|
|
166
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
167
|
+
# @param [Object] value Any valid value
|
|
168
|
+
# @return [Hash] Returns the value in the form of hash
|
|
169
|
+
def _to_hash(value)
|
|
170
|
+
if value.is_a?(Array)
|
|
171
|
+
value.compact.map { |v| _to_hash(v) }
|
|
172
|
+
elsif value.is_a?(Hash)
|
|
173
|
+
{}.tap do |hash|
|
|
174
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
175
|
+
end
|
|
176
|
+
elsif value.respond_to? :to_hash
|
|
177
|
+
value.to_hash
|
|
178
|
+
else
|
|
179
|
+
value
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
end
|
|
184
|
+
end
|
|
@@ -24,6 +24,8 @@ module UltracartClient
|
|
|
24
24
|
# Last event timestamp
|
|
25
25
|
attr_accessor :last_event_timestamp
|
|
26
26
|
|
|
27
|
+
attr_accessor :missing_events
|
|
28
|
+
|
|
27
29
|
attr_accessor :params
|
|
28
30
|
|
|
29
31
|
attr_accessor :range_end
|
|
@@ -53,6 +55,7 @@ module UltracartClient
|
|
|
53
55
|
:'first_event_timestamp' => :'first_event_timestamp',
|
|
54
56
|
:'http_post' => :'http_post',
|
|
55
57
|
:'last_event_timestamp' => :'last_event_timestamp',
|
|
58
|
+
:'missing_events' => :'missing_events',
|
|
56
59
|
:'params' => :'params',
|
|
57
60
|
:'range_end' => :'range_end',
|
|
58
61
|
:'range_start' => :'range_start',
|
|
@@ -74,6 +77,7 @@ module UltracartClient
|
|
|
74
77
|
:'first_event_timestamp' => :'String',
|
|
75
78
|
:'http_post' => :'BOOLEAN',
|
|
76
79
|
:'last_event_timestamp' => :'String',
|
|
80
|
+
:'missing_events' => :'BOOLEAN',
|
|
77
81
|
:'params' => :'Array<ScreenRecordingPageViewParameter>',
|
|
78
82
|
:'range_end' => :'Integer',
|
|
79
83
|
:'range_start' => :'Integer',
|
|
@@ -114,6 +118,10 @@ module UltracartClient
|
|
|
114
118
|
self.last_event_timestamp = attributes[:'last_event_timestamp']
|
|
115
119
|
end
|
|
116
120
|
|
|
121
|
+
if attributes.has_key?(:'missing_events')
|
|
122
|
+
self.missing_events = attributes[:'missing_events']
|
|
123
|
+
end
|
|
124
|
+
|
|
117
125
|
if attributes.has_key?(:'params')
|
|
118
126
|
if (value = attributes[:'params']).is_a?(Array)
|
|
119
127
|
self.params = value
|
|
@@ -185,6 +193,7 @@ module UltracartClient
|
|
|
185
193
|
first_event_timestamp == o.first_event_timestamp &&
|
|
186
194
|
http_post == o.http_post &&
|
|
187
195
|
last_event_timestamp == o.last_event_timestamp &&
|
|
196
|
+
missing_events == o.missing_events &&
|
|
188
197
|
params == o.params &&
|
|
189
198
|
range_end == o.range_end &&
|
|
190
199
|
range_start == o.range_start &&
|
|
@@ -207,7 +216,7 @@ module UltracartClient
|
|
|
207
216
|
# Calculates hash code according to all attributes.
|
|
208
217
|
# @return [Fixnum] Hash code
|
|
209
218
|
def hash
|
|
210
|
-
[events, first_event_timestamp, http_post, last_event_timestamp, params, range_end, range_start, referrer, referrer_params, referrer_raw, screen_recording_page_view_uuid, time_on_page, truncated_events, ucapv, url].hash
|
|
219
|
+
[events, first_event_timestamp, http_post, last_event_timestamp, missing_events, params, range_end, range_start, referrer, referrer_params, referrer_raw, screen_recording_page_view_uuid, time_on_page, truncated_events, ucapv, url].hash
|
|
211
220
|
end
|
|
212
221
|
|
|
213
222
|
# Builds the object from hash
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
#UltraCart REST API Version 2
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module UltracartClient
|
|
16
|
+
class ScreenRecordingPageViewDataResponse
|
|
17
|
+
attr_accessor :error
|
|
18
|
+
|
|
19
|
+
attr_accessor :events_json
|
|
20
|
+
|
|
21
|
+
attr_accessor :metadata
|
|
22
|
+
|
|
23
|
+
# Indicates if API call was successful
|
|
24
|
+
attr_accessor :success
|
|
25
|
+
|
|
26
|
+
attr_accessor :warning
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'error' => :'error',
|
|
32
|
+
:'events_json' => :'events_json',
|
|
33
|
+
:'metadata' => :'metadata',
|
|
34
|
+
:'success' => :'success',
|
|
35
|
+
:'warning' => :'warning'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.swagger_types
|
|
41
|
+
{
|
|
42
|
+
:'error' => :'Error',
|
|
43
|
+
:'events_json' => :'String',
|
|
44
|
+
:'metadata' => :'ResponseMetadata',
|
|
45
|
+
:'success' => :'BOOLEAN',
|
|
46
|
+
:'warning' => :'Warning'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
return unless attributes.is_a?(Hash)
|
|
54
|
+
|
|
55
|
+
# convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
57
|
+
|
|
58
|
+
if attributes.has_key?(:'error')
|
|
59
|
+
self.error = attributes[:'error']
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
if attributes.has_key?(:'events_json')
|
|
63
|
+
self.events_json = attributes[:'events_json']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'metadata')
|
|
67
|
+
self.metadata = attributes[:'metadata']
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.has_key?(:'success')
|
|
71
|
+
self.success = attributes[:'success']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.has_key?(:'warning')
|
|
75
|
+
self.warning = attributes[:'warning']
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
80
|
+
# @return Array for valid properties with the reasons
|
|
81
|
+
def list_invalid_properties
|
|
82
|
+
invalid_properties = Array.new
|
|
83
|
+
invalid_properties
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Check to see if the all the properties in the model are valid
|
|
87
|
+
# @return true if the model is valid
|
|
88
|
+
def valid?
|
|
89
|
+
true
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Checks equality by comparing each attribute.
|
|
93
|
+
# @param [Object] Object to be compared
|
|
94
|
+
def ==(o)
|
|
95
|
+
return true if self.equal?(o)
|
|
96
|
+
self.class == o.class &&
|
|
97
|
+
error == o.error &&
|
|
98
|
+
events_json == o.events_json &&
|
|
99
|
+
metadata == o.metadata &&
|
|
100
|
+
success == o.success &&
|
|
101
|
+
warning == o.warning
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @see the `==` method
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def eql?(o)
|
|
107
|
+
self == o
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Calculates hash code according to all attributes.
|
|
111
|
+
# @return [Fixnum] Hash code
|
|
112
|
+
def hash
|
|
113
|
+
[error, events_json, metadata, success, warning].hash
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Builds the object from hash
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
# @return [Object] Returns the model itself
|
|
119
|
+
def build_from_hash(attributes)
|
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
|
123
|
+
# check to ensure the input is an array given that the attribute
|
|
124
|
+
# is documented as an array but the input is not
|
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
127
|
+
end
|
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
self
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Deserializes the data based on type
|
|
137
|
+
# @param string type Data type
|
|
138
|
+
# @param string value Value to be deserialized
|
|
139
|
+
# @return [Object] Deserialized data
|
|
140
|
+
def _deserialize(type, value)
|
|
141
|
+
case type.to_sym
|
|
142
|
+
when :DateTime
|
|
143
|
+
DateTime.parse(value)
|
|
144
|
+
when :Date
|
|
145
|
+
Date.parse(value)
|
|
146
|
+
when :String
|
|
147
|
+
value.to_s
|
|
148
|
+
when :Integer
|
|
149
|
+
value.to_i
|
|
150
|
+
when :Float
|
|
151
|
+
value.to_f
|
|
152
|
+
when :BOOLEAN
|
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
154
|
+
true
|
|
155
|
+
else
|
|
156
|
+
false
|
|
157
|
+
end
|
|
158
|
+
when :Object
|
|
159
|
+
# generic object (usually a Hash), return directly
|
|
160
|
+
value
|
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
|
167
|
+
{}.tap do |hash|
|
|
168
|
+
value.each do |k, v|
|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
else # model
|
|
173
|
+
temp_model = UltracartClient.const_get(type).new
|
|
174
|
+
temp_model.build_from_hash(value)
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns the string representation of the object
|
|
179
|
+
# @return [String] String presentation of the object
|
|
180
|
+
def to_s
|
|
181
|
+
to_hash.to_s
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_body
|
|
187
|
+
to_hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the object in the form of hash
|
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
|
192
|
+
def to_hash
|
|
193
|
+
hash = {}
|
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
195
|
+
value = self.send(attr)
|
|
196
|
+
next if value.nil?
|
|
197
|
+
hash[param] = _to_hash(value)
|
|
198
|
+
end
|
|
199
|
+
hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Outputs non-array value in the form of hash
|
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
204
|
+
# @param [Object] value Any valid value
|
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
|
206
|
+
def _to_hash(value)
|
|
207
|
+
if value.is_a?(Array)
|
|
208
|
+
value.compact.map { |v| _to_hash(v) }
|
|
209
|
+
elsif value.is_a?(Hash)
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
212
|
+
end
|
|
213
|
+
elsif value.respond_to? :to_hash
|
|
214
|
+
value.to_hash
|
|
215
|
+
else
|
|
216
|
+
value
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
221
|
+
end
|
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: 3.1.
|
|
4
|
+
version: 3.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-02-
|
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -315,6 +315,7 @@ files:
|
|
|
315
315
|
- docs/CouponAmountOffSubtotalFreeShippingWithPurchase.md
|
|
316
316
|
- docs/CouponAmountOffSubtotalWithBlockPurchase.md
|
|
317
317
|
- docs/CouponAmountOffSubtotalWithItemsPurchase.md
|
|
318
|
+
- docs/CouponAmountOffSubtotalWithPurchase.md
|
|
318
319
|
- docs/CouponApi.md
|
|
319
320
|
- docs/CouponAutoApplyCondition.md
|
|
320
321
|
- docs/CouponAutoApplyConditions.md
|
|
@@ -693,8 +694,10 @@ files:
|
|
|
693
694
|
- docs/ScreenRecordingFilterValues.md
|
|
694
695
|
- docs/ScreenRecordingFilterValuesEvent.md
|
|
695
696
|
- docs/ScreenRecordingFilterValuesEventParams.md
|
|
697
|
+
- docs/ScreenRecordingMerchantNotesRequest.md
|
|
696
698
|
- docs/ScreenRecordingMultifield.md
|
|
697
699
|
- docs/ScreenRecordingPageView.md
|
|
700
|
+
- docs/ScreenRecordingPageViewDataResponse.md
|
|
698
701
|
- docs/ScreenRecordingPageViewEvent.md
|
|
699
702
|
- docs/ScreenRecordingPageViewEventParameter.md
|
|
700
703
|
- docs/ScreenRecordingPageViewParameter.md
|
|
@@ -904,6 +907,7 @@ files:
|
|
|
904
907
|
- lib/ultracart_api/models/coupon_amount_off_subtotal_free_shipping_with_purchase.rb
|
|
905
908
|
- lib/ultracart_api/models/coupon_amount_off_subtotal_with_block_purchase.rb
|
|
906
909
|
- lib/ultracart_api/models/coupon_amount_off_subtotal_with_items_purchase.rb
|
|
910
|
+
- lib/ultracart_api/models/coupon_amount_off_subtotal_with_purchase.rb
|
|
907
911
|
- lib/ultracart_api/models/coupon_auto_apply_condition.rb
|
|
908
912
|
- lib/ultracart_api/models/coupon_auto_apply_conditions.rb
|
|
909
913
|
- lib/ultracart_api/models/coupon_automatically_apply_coupon_codes.rb
|
|
@@ -1276,8 +1280,10 @@ files:
|
|
|
1276
1280
|
- lib/ultracart_api/models/screen_recording_filter_values.rb
|
|
1277
1281
|
- lib/ultracart_api/models/screen_recording_filter_values_event.rb
|
|
1278
1282
|
- lib/ultracart_api/models/screen_recording_filter_values_event_params.rb
|
|
1283
|
+
- lib/ultracart_api/models/screen_recording_merchant_notes_request.rb
|
|
1279
1284
|
- lib/ultracart_api/models/screen_recording_multifield.rb
|
|
1280
1285
|
- lib/ultracart_api/models/screen_recording_page_view.rb
|
|
1286
|
+
- lib/ultracart_api/models/screen_recording_page_view_data_response.rb
|
|
1281
1287
|
- lib/ultracart_api/models/screen_recording_page_view_event.rb
|
|
1282
1288
|
- lib/ultracart_api/models/screen_recording_page_view_event_parameter.rb
|
|
1283
1289
|
- lib/ultracart_api/models/screen_recording_page_view_parameter.rb
|