ultracart_api 3.1.13 → 3.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b075e91a16305a02171170b3768412fc3ef993a3f8d5e4be98895131b6fcebb9
4
- data.tar.gz: 7f6aea7cc33f951c15fdc53bec35a58c8662b77b16bf3214ae6273a525a30e58
3
+ metadata.gz: 4ec877eeac5aebf27faca2f70559c977a0a530048e7869d317322e54a0d8ab37
4
+ data.tar.gz: 4a3a15da646aff74261ff92d6d89af41033fe2ff24a95911eb28e5dbcae86151
5
5
  SHA512:
6
- metadata.gz: f170255e208159b025980d9718730847d71d17a233f5cf486e9771ae16b5018e85d482b49790fafc12711b2a27c96a1a37d584fb492051fe1198bfa4da5b21da
7
- data.tar.gz: 01d6930cbebea3dfd220abdef05df0293777161a703da5da1450351283edc6252cebda98203b111d15cf3f5a07042c3911060966fcea7f5c8ed64cf60cf25662
6
+ metadata.gz: 762401de2c3d75f779ab20e60c01a463a31133234d2099ef31bbf5cdc73711e90e4565c644d1306f1fdb63266e4c1215513e804f424e28af54d7d5bdcc25f57d
7
+ data.tar.gz: d06e75abf6bae59074d849cc0b05187db96ff3b9eb262f053834a18cb75272c80e7eea51a0460a55cda5dfb1eff106b5b2efcad8d5adbaff5ae78943b7a6d310
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.13
10
+ - Package version: 3.1.18
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.13.gem
27
+ gem install ./ultracart_api-3.1.18.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.1.13.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.1.18.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.13'
35
+ gem 'ultracart_api', '~> 3.1.18'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -522,6 +522,7 @@ Class | Method | HTTP request | Description
522
522
  - [UltracartClient::CouponPercentOffItems](docs/CouponPercentOffItems.md)
523
523
  - [UltracartClient::CouponPercentOffItemsAndFreeShipping](docs/CouponPercentOffItemsAndFreeShipping.md)
524
524
  - [UltracartClient::CouponPercentOffItemsWithItemsPurchase](docs/CouponPercentOffItemsWithItemsPurchase.md)
525
+ - [UltracartClient::CouponPercentOffMsrpItems](docs/CouponPercentOffMsrpItems.md)
525
526
  - [UltracartClient::CouponPercentOffRetailPriceItems](docs/CouponPercentOffRetailPriceItems.md)
526
527
  - [UltracartClient::CouponPercentOffShipping](docs/CouponPercentOffShipping.md)
527
528
  - [UltracartClient::CouponPercentOffSubtotal](docs/CouponPercentOffSubtotal.md)
@@ -866,6 +867,7 @@ Class | Method | HTTP request | Description
866
867
  - [UltracartClient::ScreenRecordingFilterValues](docs/ScreenRecordingFilterValues.md)
867
868
  - [UltracartClient::ScreenRecordingFilterValuesEvent](docs/ScreenRecordingFilterValuesEvent.md)
868
869
  - [UltracartClient::ScreenRecordingFilterValuesEventParams](docs/ScreenRecordingFilterValuesEventParams.md)
870
+ - [UltracartClient::ScreenRecordingFilterValuesPageParam](docs/ScreenRecordingFilterValuesPageParam.md)
869
871
  - [UltracartClient::ScreenRecordingMerchantNotesRequest](docs/ScreenRecordingMerchantNotesRequest.md)
870
872
  - [UltracartClient::ScreenRecordingMultifield](docs/ScreenRecordingMultifield.md)
871
873
  - [UltracartClient::ScreenRecordingPageView](docs/ScreenRecordingPageView.md)
@@ -1006,6 +1008,11 @@ Not every change is committed to every SDK.
1006
1008
 
1007
1009
  | Version | Date | Comments |
1008
1010
  | --: | :-: | --- |
1011
+ | 3.1.18 | 03/17/2021 | Added order query by ship on date |
1012
+ | 3.1.17 | 03/17/2021 | New coupon - percent off MSRP item |
1013
+ | 3.1.16 | 03/16/2021 | screen recording filter page parameter names |
1014
+ | 3.1.15 | 03/15/2021 | fix response from deleteScreenRecordingSegment that should have been void |
1015
+ | 3.1.14 | 03/15/2021 | sort screen recordings by favorite flag |
1009
1016
  | 3.1.13 | 03/02/2021 | new webhook order_payment_failed |
1010
1017
  | 3.1.12 | 02/25/2021 | added screen recording visitor_first_seen property |
1011
1018
  | 3.1.11 | 02/24/2021 | Added Screen recording visitor number |
data/docs/Coupon.md CHANGED
@@ -41,6 +41,7 @@ Name | Type | Description | Notes
41
41
  **percent_off_items** | [**CouponPercentOffItems**](CouponPercentOffItems.md) | | [optional]
42
42
  **percent_off_items_and_free_shipping** | [**CouponPercentOffItemsAndFreeShipping**](CouponPercentOffItemsAndFreeShipping.md) | | [optional]
43
43
  **percent_off_items_with_items_purchase** | [**CouponPercentOffItemsWithItemsPurchase**](CouponPercentOffItemsWithItemsPurchase.md) | | [optional]
44
+ **percent_off_msrp_items** | [**CouponPercentOffMsrpItems**](CouponPercentOffMsrpItems.md) | | [optional]
44
45
  **percent_off_retail_price_items** | [**CouponPercentOffRetailPriceItems**](CouponPercentOffRetailPriceItems.md) | | [optional]
45
46
  **percent_off_shipping** | [**CouponPercentOffShipping**](CouponPercentOffShipping.md) | | [optional]
46
47
  **percent_off_subtotal** | [**CouponPercentOffSubtotal**](CouponPercentOffSubtotal.md) | | [optional]
@@ -0,0 +1,11 @@
1
+ # UltracartClient::CouponPercentOffMsrpItems
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **discount_percent** | **Float** | The percentage of subtotal discount | [optional]
7
+ **excluded_items** | **Array<String>** | A list of items which cannot be discounted. | [optional]
8
+ **items** | **Array<String>** | An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items. | [optional]
9
+ **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional]
10
+
11
+
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
25
25
  **smart_sending** | **BOOLEAN** | Smart sending | [optional]
26
26
  **storefront_oid** | **Integer** | Storefront oid | [optional]
27
27
  **subject** | **String** | Subject | [optional]
28
+ **suspended_for_spam** | **BOOLEAN** | True if the email was suspended for too high of a spam rate. | [optional]
28
29
  **transactional_email** | **BOOLEAN** | Transactional email | [optional]
29
30
  **version** | **Integer** | Version | [optional]
30
31
 
data/docs/OrderApi.md CHANGED
@@ -535,6 +535,15 @@ opts = {
535
535
  customer_profile_oid: 56, # Integer |
536
536
  refund_date_begin: 'refund_date_begin_example', # String |
537
537
  refund_date_end: 'refund_date_end_example', # String |
538
+ custom_field_1: 'custom_field_1_example', # String |
539
+ custom_field_2: 'custom_field_2_example', # String |
540
+ custom_field_3: 'custom_field_3_example', # String |
541
+ custom_field_4: 'custom_field_4_example', # String |
542
+ custom_field_5: 'custom_field_5_example', # String |
543
+ custom_field_6: 'custom_field_6_example', # String |
544
+ custom_field_7: 'custom_field_7_example', # String |
545
+ ship_on_date_begin: 'ship_on_date_begin_example', # String |
546
+ ship_on_date_end: 'ship_on_date_end_example', # String |
538
547
  _limit: 100, # Integer | The maximum number of records to return on this one API call. (Maximum 200)
539
548
  _offset: 0, # Integer | Pagination of the record set. Offset is a zero based index.
540
549
  _sort: '_sort_example', # String | The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
@@ -584,6 +593,15 @@ Name | Type | Description | Notes
584
593
  **customer_profile_oid** | **Integer**| | [optional]
585
594
  **refund_date_begin** | **String**| | [optional]
586
595
  **refund_date_end** | **String**| | [optional]
596
+ **custom_field_1** | **String**| | [optional]
597
+ **custom_field_2** | **String**| | [optional]
598
+ **custom_field_3** | **String**| | [optional]
599
+ **custom_field_4** | **String**| | [optional]
600
+ **custom_field_5** | **String**| | [optional]
601
+ **custom_field_6** | **String**| | [optional]
602
+ **custom_field_7** | **String**| | [optional]
603
+ **ship_on_date_begin** | **String**| | [optional]
604
+ **ship_on_date_end** | **String**| | [optional]
587
605
  **_limit** | **Integer**| The maximum number of records to return on this one API call. (Maximum 200) | [optional] [default to 100]
588
606
  **_offset** | **Integer**| Pagination of the record set. Offset is a zero based index. | [optional] [default to 0]
589
607
  **_sort** | **String**| The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional]
data/docs/OrderQuery.md CHANGED
@@ -12,6 +12,13 @@ Name | Type | Description | Notes
12
12
  **creation_date_begin** | **String** | Date/time that the order was created | [optional]
13
13
  **creation_date_end** | **String** | Date/time that the order was created | [optional]
14
14
  **current_stage** | **String** | Current stage that the order is in. | [optional]
15
+ **custom_field_1** | **String** | Custom field 1 | [optional]
16
+ **custom_field_2** | **String** | Custom field 2 | [optional]
17
+ **custom_field_3** | **String** | Custom field 3 | [optional]
18
+ **custom_field_4** | **String** | Custom field 4 | [optional]
19
+ **custom_field_5** | **String** | Custom field 5 | [optional]
20
+ **custom_field_6** | **String** | Custom field 6 | [optional]
21
+ **custom_field_7** | **String** | Custom field 7 | [optional]
15
22
  **customer_profile_oid** | **Integer** | The customer profile to find associated orders for | [optional]
16
23
  **email** | **String** | Email | [optional]
17
24
  **first_name** | **String** | First name | [optional]
@@ -28,8 +35,10 @@ Name | Type | Description | Notes
28
35
  **refund_date_end** | **String** | Date/time that the order was refunded | [optional]
29
36
  **rma** | **String** | RMA number | [optional]
30
37
  **screen_branding_theme_code** | **String** | Screen branding theme code associated with the order (legacy checkout) | [optional]
31
- **shipment_date_begin** | **String** | Date/time that the order was shipping | [optional]
38
+ **shipment_date_begin** | **String** | Date/time that the order was shipped | [optional]
32
39
  **shipment_date_end** | **String** | Date/time that the order was shipped | [optional]
40
+ **shipped_on_date_begin** | **String** | Date/time that the order should ship on | [optional]
41
+ **shipped_on_date_end** | **String** | Date/time that the order should ship on | [optional]
33
42
  **state_region** | **String** | State for United States otherwise region or province for other countries | [optional]
34
43
  **storefront_host_name** | **String** | StoreFront host name associated with the order | [optional]
35
44
  **total** | **Float** | Total | [optional]
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **geolocation_countries** | **Array<String>** | | [optional]
8
8
  **geolocation_states** | **Array<String>** | | [optional]
9
9
  **max_values** | **Integer** | | [optional]
10
+ **page_params** | [**Array<ScreenRecordingFilterValuesPageParam>**](ScreenRecordingFilterValuesPageParam.md) | | [optional]
10
11
  **urls** | **Array<String>** | | [optional]
11
12
  **user_agent_device_names** | **Array<String>** | | [optional]
12
13
  **user_agent_device_os_names** | **Array<String>** | | [optional]
@@ -0,0 +1,9 @@
1
+ # UltracartClient::ScreenRecordingFilterValuesPageParam
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **values** | **Array<String>** | | [optional]
8
+
9
+
@@ -1115,7 +1115,7 @@ nil (empty response body)
1115
1115
 
1116
1116
 
1117
1117
  # **delete_screen_recording_segment**
1118
- > ScreenRecordingSegmentResponse delete_screen_recording_segment(storefront_oid, screen_recording_segment_oid)
1118
+ > delete_screen_recording_segment(storefront_oid, screen_recording_segment_oid)
1119
1119
 
1120
1120
  Delete screen recording segment
1121
1121
 
@@ -1136,8 +1136,7 @@ screen_recording_segment_oid = 56 # Integer |
1136
1136
 
1137
1137
  begin
1138
1138
  #Delete screen recording segment
1139
- result = api_instance.delete_screen_recording_segment(storefront_oid, screen_recording_segment_oid)
1140
- p result
1139
+ api_instance.delete_screen_recording_segment(storefront_oid, screen_recording_segment_oid)
1141
1140
  rescue UltracartClient::ApiError => e
1142
1141
  puts "Exception when calling StorefrontApi->delete_screen_recording_segment: #{e}"
1143
1142
  end
@@ -1152,7 +1151,7 @@ Name | Type | Description | Notes
1152
1151
 
1153
1152
  ### Return type
1154
1153
 
1155
- [**ScreenRecordingSegmentResponse**](ScreenRecordingSegmentResponse.md)
1154
+ nil (empty response body)
1156
1155
 
1157
1156
  ### Authorization
1158
1157
 
data/docs/TaxJarConfig.md CHANGED
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **estimate_only** | **BOOLEAN** | True if this TaxJar configuration is to estimate taxes only and not report placed orders to TaxJar | [optional]
9
9
  **send_outside_nexus** | **BOOLEAN** | Send orders outside your nexus TaxJar. The default is to not transmit outside orders to TaxJar to reduce API calls. However, this will prevent TaxJar from dynamically creating new Nexus when thresholds are exceeded for a state. | [optional]
10
10
  **send_test_orders** | **BOOLEAN** | Send test orders through to TaxJar. The default is to not transmit test orders to TaxJar. | [optional]
11
+ **skip_channel_orders** | **BOOLEAN** | Do not send channel partner orders to TaxJar. Set this to true if your channel partner reports tax on their own. | [optional]
11
12
  **use_distribution_center_from** | **BOOLEAN** | Use distribution center from address | [optional]
12
13
 
13
14
 
data/lib/ultracart_api.rb CHANGED
@@ -156,6 +156,7 @@ require 'ultracart_api/models/coupon_percent_off_item_with_items_quantity_purcha
156
156
  require 'ultracart_api/models/coupon_percent_off_items'
157
157
  require 'ultracart_api/models/coupon_percent_off_items_and_free_shipping'
158
158
  require 'ultracart_api/models/coupon_percent_off_items_with_items_purchase'
159
+ require 'ultracart_api/models/coupon_percent_off_msrp_items'
159
160
  require 'ultracart_api/models/coupon_percent_off_retail_price_items'
160
161
  require 'ultracart_api/models/coupon_percent_off_shipping'
161
162
  require 'ultracart_api/models/coupon_percent_off_subtotal'
@@ -500,6 +501,7 @@ require 'ultracart_api/models/screen_recording_filter_string_search'
500
501
  require 'ultracart_api/models/screen_recording_filter_values'
501
502
  require 'ultracart_api/models/screen_recording_filter_values_event'
502
503
  require 'ultracart_api/models/screen_recording_filter_values_event_params'
504
+ require 'ultracart_api/models/screen_recording_filter_values_page_param'
503
505
  require 'ultracart_api/models/screen_recording_merchant_notes_request'
504
506
  require 'ultracart_api/models/screen_recording_multifield'
505
507
  require 'ultracart_api/models/screen_recording_page_view'
@@ -571,6 +571,15 @@ module UltracartClient
571
571
  # @option opts [Integer] :customer_profile_oid
572
572
  # @option opts [String] :refund_date_begin
573
573
  # @option opts [String] :refund_date_end
574
+ # @option opts [String] :custom_field_1
575
+ # @option opts [String] :custom_field_2
576
+ # @option opts [String] :custom_field_3
577
+ # @option opts [String] :custom_field_4
578
+ # @option opts [String] :custom_field_5
579
+ # @option opts [String] :custom_field_6
580
+ # @option opts [String] :custom_field_7
581
+ # @option opts [String] :ship_on_date_begin
582
+ # @option opts [String] :ship_on_date_end
574
583
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Maximum 200) (default to 100)
575
584
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
576
585
  # @option opts [String] :_sort The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
@@ -614,6 +623,15 @@ module UltracartClient
614
623
  # @option opts [Integer] :customer_profile_oid
615
624
  # @option opts [String] :refund_date_begin
616
625
  # @option opts [String] :refund_date_end
626
+ # @option opts [String] :custom_field_1
627
+ # @option opts [String] :custom_field_2
628
+ # @option opts [String] :custom_field_3
629
+ # @option opts [String] :custom_field_4
630
+ # @option opts [String] :custom_field_5
631
+ # @option opts [String] :custom_field_6
632
+ # @option opts [String] :custom_field_7
633
+ # @option opts [String] :ship_on_date_begin
634
+ # @option opts [String] :ship_on_date_end
617
635
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Maximum 200)
618
636
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
619
637
  # @option opts [String] :_sort The sort order of the orders. See Sorting documentation for examples of using multiple values and sorting by ascending and descending.
@@ -658,6 +676,15 @@ module UltracartClient
658
676
  query_params[:'customer_profile_oid'] = opts[:'customer_profile_oid'] if !opts[:'customer_profile_oid'].nil?
659
677
  query_params[:'Refund Date Begin'] = opts[:'refund_date_begin'] if !opts[:'refund_date_begin'].nil?
660
678
  query_params[:'Refund Date End'] = opts[:'refund_date_end'] if !opts[:'refund_date_end'].nil?
679
+ query_params[:'Custom Field 1'] = opts[:'custom_field_1'] if !opts[:'custom_field_1'].nil?
680
+ query_params[:'Custom Field 2'] = opts[:'custom_field_2'] if !opts[:'custom_field_2'].nil?
681
+ query_params[:'Custom Field 3'] = opts[:'custom_field_3'] if !opts[:'custom_field_3'].nil?
682
+ query_params[:'Custom Field 4'] = opts[:'custom_field_4'] if !opts[:'custom_field_4'].nil?
683
+ query_params[:'Custom Field 5'] = opts[:'custom_field_5'] if !opts[:'custom_field_5'].nil?
684
+ query_params[:'Custom Field 6'] = opts[:'custom_field_6'] if !opts[:'custom_field_6'].nil?
685
+ query_params[:'Custom Field 7'] = opts[:'custom_field_7'] if !opts[:'custom_field_7'].nil?
686
+ query_params[:'ship_on_date_begin'] = opts[:'ship_on_date_begin'] if !opts[:'ship_on_date_begin'].nil?
687
+ query_params[:'ship_on_date_end'] = opts[:'ship_on_date_end'] if !opts[:'ship_on_date_end'].nil?
661
688
  query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
662
689
  query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
663
690
  query_params[:'_sort'] = opts[:'_sort'] if !opts[:'_sort'].nil?
@@ -1141,17 +1141,17 @@ module UltracartClient
1141
1141
  # @param storefront_oid
1142
1142
  # @param screen_recording_segment_oid
1143
1143
  # @param [Hash] opts the optional parameters
1144
- # @return [ScreenRecordingSegmentResponse]
1144
+ # @return [nil]
1145
1145
  def delete_screen_recording_segment(storefront_oid, screen_recording_segment_oid, opts = {})
1146
- data, _status_code, _headers = delete_screen_recording_segment_with_http_info(storefront_oid, screen_recording_segment_oid, opts)
1147
- data
1146
+ delete_screen_recording_segment_with_http_info(storefront_oid, screen_recording_segment_oid, opts)
1147
+ nil
1148
1148
  end
1149
1149
 
1150
1150
  # Delete screen recording segment
1151
1151
  # @param storefront_oid
1152
1152
  # @param screen_recording_segment_oid
1153
1153
  # @param [Hash] opts the optional parameters
1154
- # @return [Array<(ScreenRecordingSegmentResponse, Fixnum, Hash)>] ScreenRecordingSegmentResponse data, response status code and response headers
1154
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1155
1155
  def delete_screen_recording_segment_with_http_info(storefront_oid, screen_recording_segment_oid, opts = {})
1156
1156
  if @api_client.config.debugging
1157
1157
  @api_client.config.logger.debug 'Calling API: StorefrontApi.delete_screen_recording_segment ...'
@@ -1189,8 +1189,7 @@ module UltracartClient
1189
1189
  :query_params => query_params,
1190
1190
  :form_params => form_params,
1191
1191
  :body => post_body,
1192
- :auth_names => auth_names,
1193
- :return_type => 'ScreenRecordingSegmentResponse')
1192
+ :auth_names => auth_names)
1194
1193
  if @api_client.config.debugging
1195
1194
  @api_client.config.logger.debug "API called: StorefrontApi#delete_screen_recording_segment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1196
1195
  end
@@ -100,6 +100,8 @@ module UltracartClient
100
100
 
101
101
  attr_accessor :percent_off_items_with_items_purchase
102
102
 
103
+ attr_accessor :percent_off_msrp_items
104
+
103
105
  attr_accessor :percent_off_retail_price_items
104
106
 
105
107
  attr_accessor :percent_off_shipping
@@ -186,6 +188,7 @@ module UltracartClient
186
188
  :'percent_off_items' => :'percent_off_items',
187
189
  :'percent_off_items_and_free_shipping' => :'percent_off_items_and_free_shipping',
188
190
  :'percent_off_items_with_items_purchase' => :'percent_off_items_with_items_purchase',
191
+ :'percent_off_msrp_items' => :'percent_off_msrp_items',
189
192
  :'percent_off_retail_price_items' => :'percent_off_retail_price_items',
190
193
  :'percent_off_shipping' => :'percent_off_shipping',
191
194
  :'percent_off_subtotal' => :'percent_off_subtotal',
@@ -249,6 +252,7 @@ module UltracartClient
249
252
  :'percent_off_items' => :'CouponPercentOffItems',
250
253
  :'percent_off_items_and_free_shipping' => :'CouponPercentOffItemsAndFreeShipping',
251
254
  :'percent_off_items_with_items_purchase' => :'CouponPercentOffItemsWithItemsPurchase',
255
+ :'percent_off_msrp_items' => :'CouponPercentOffMsrpItems',
252
256
  :'percent_off_retail_price_items' => :'CouponPercentOffRetailPriceItems',
253
257
  :'percent_off_shipping' => :'CouponPercentOffShipping',
254
258
  :'percent_off_subtotal' => :'CouponPercentOffSubtotal',
@@ -431,6 +435,10 @@ module UltracartClient
431
435
  self.percent_off_items_with_items_purchase = attributes[:'percent_off_items_with_items_purchase']
432
436
  end
433
437
 
438
+ if attributes.has_key?(:'percent_off_msrp_items')
439
+ self.percent_off_msrp_items = attributes[:'percent_off_msrp_items']
440
+ end
441
+
434
442
  if attributes.has_key?(:'percent_off_retail_price_items')
435
443
  self.percent_off_retail_price_items = attributes[:'percent_off_retail_price_items']
436
444
  end
@@ -660,6 +668,7 @@ module UltracartClient
660
668
  percent_off_items == o.percent_off_items &&
661
669
  percent_off_items_and_free_shipping == o.percent_off_items_and_free_shipping &&
662
670
  percent_off_items_with_items_purchase == o.percent_off_items_with_items_purchase &&
671
+ percent_off_msrp_items == o.percent_off_msrp_items &&
663
672
  percent_off_retail_price_items == o.percent_off_retail_price_items &&
664
673
  percent_off_shipping == o.percent_off_shipping &&
665
674
  percent_off_subtotal == o.percent_off_subtotal &&
@@ -690,7 +699,7 @@ module UltracartClient
690
699
  # Calculates hash code according to all attributes.
691
700
  # @return [Fixnum] Hash code
692
701
  def 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
702
+ [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_msrp_items, 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
694
703
  end
695
704
 
696
705
  # Builds the object from hash
@@ -0,0 +1,219 @@
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 CouponPercentOffMsrpItems
17
+ # The percentage of subtotal discount
18
+ attr_accessor :discount_percent
19
+
20
+ # A list of items which cannot be discounted.
21
+ attr_accessor :excluded_items
22
+
23
+ # An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
24
+ attr_accessor :items
25
+
26
+ # The (optional) maximum quantity of discounted items.
27
+ attr_accessor :limit
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'discount_percent' => :'discount_percent',
33
+ :'excluded_items' => :'excluded_items',
34
+ :'items' => :'items',
35
+ :'limit' => :'limit'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'discount_percent' => :'Float',
43
+ :'excluded_items' => :'Array<String>',
44
+ :'items' => :'Array<String>',
45
+ :'limit' => :'Integer'
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
+
57
+ if attributes.has_key?(:'discount_percent')
58
+ self.discount_percent = attributes[:'discount_percent']
59
+ end
60
+
61
+ if attributes.has_key?(:'excluded_items')
62
+ if (value = attributes[:'excluded_items']).is_a?(Array)
63
+ self.excluded_items = value
64
+ end
65
+ end
66
+
67
+ if attributes.has_key?(:'items')
68
+ if (value = attributes[:'items']).is_a?(Array)
69
+ self.items = value
70
+ end
71
+ end
72
+
73
+ if attributes.has_key?(:'limit')
74
+ self.limit = attributes[:'limit']
75
+ end
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properties with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = Array.new
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ true
89
+ end
90
+
91
+ # Checks equality by comparing each attribute.
92
+ # @param [Object] Object to be compared
93
+ def ==(o)
94
+ return true if self.equal?(o)
95
+ self.class == o.class &&
96
+ discount_percent == o.discount_percent &&
97
+ excluded_items == o.excluded_items &&
98
+ items == o.items &&
99
+ limit == o.limit
100
+ end
101
+
102
+ # @see the `==` method
103
+ # @param [Object] Object to be compared
104
+ def eql?(o)
105
+ self == o
106
+ end
107
+
108
+ # Calculates hash code according to all attributes.
109
+ # @return [Fixnum] Hash code
110
+ def hash
111
+ [discount_percent, excluded_items, items, limit].hash
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ self.class.swagger_types.each_pair do |key, type|
120
+ if type =~ /\AArray<(.*)>/i
121
+ # check to ensure the input is an array given that the attribute
122
+ # is documented as an array but the input is not
123
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
124
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
+ end
126
+ elsif !attributes[self.class.attribute_map[key]].nil?
127
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
128
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
129
+ end
130
+
131
+ self
132
+ end
133
+
134
+ # Deserializes the data based on type
135
+ # @param string type Data type
136
+ # @param string value Value to be deserialized
137
+ # @return [Object] Deserialized data
138
+ def _deserialize(type, value)
139
+ case type.to_sym
140
+ when :DateTime
141
+ DateTime.parse(value)
142
+ when :Date
143
+ Date.parse(value)
144
+ when :String
145
+ value.to_s
146
+ when :Integer
147
+ value.to_i
148
+ when :Float
149
+ value.to_f
150
+ when :BOOLEAN
151
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
152
+ true
153
+ else
154
+ false
155
+ end
156
+ when :Object
157
+ # generic object (usually a Hash), return directly
158
+ value
159
+ when /\AArray<(?<inner_type>.+)>\z/
160
+ inner_type = Regexp.last_match[:inner_type]
161
+ value.map { |v| _deserialize(inner_type, v) }
162
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
163
+ k_type = Regexp.last_match[:k_type]
164
+ v_type = Regexp.last_match[:v_type]
165
+ {}.tap do |hash|
166
+ value.each do |k, v|
167
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
168
+ end
169
+ end
170
+ else # model
171
+ temp_model = UltracartClient.const_get(type).new
172
+ temp_model.build_from_hash(value)
173
+ end
174
+ end
175
+
176
+ # Returns the string representation of the object
177
+ # @return [String] String presentation of the object
178
+ def to_s
179
+ to_hash.to_s
180
+ end
181
+
182
+ # to_body is an alias to to_hash (backward compatibility)
183
+ # @return [Hash] Returns the object in the form of hash
184
+ def to_body
185
+ to_hash
186
+ end
187
+
188
+ # Returns the object in the form of hash
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_hash
191
+ hash = {}
192
+ self.class.attribute_map.each_pair do |attr, param|
193
+ value = self.send(attr)
194
+ next if value.nil?
195
+ hash[param] = _to_hash(value)
196
+ end
197
+ hash
198
+ end
199
+
200
+ # Outputs non-array value in the form of hash
201
+ # For object, use to_hash. Otherwise, just return the value
202
+ # @param [Object] value Any valid value
203
+ # @return [Hash] Returns the value in the form of hash
204
+ def _to_hash(value)
205
+ if value.is_a?(Array)
206
+ value.compact.map { |v| _to_hash(v) }
207
+ elsif value.is_a?(Hash)
208
+ {}.tap do |hash|
209
+ value.each { |k, v| hash[k] = _to_hash(v) }
210
+ end
211
+ elsif value.respond_to? :to_hash
212
+ value.to_hash
213
+ else
214
+ value
215
+ end
216
+ end
217
+
218
+ end
219
+ end
@@ -80,6 +80,9 @@ module UltracartClient
80
80
  # Subject
81
81
  attr_accessor :subject
82
82
 
83
+ # True if the email was suspended for too high of a spam rate.
84
+ attr_accessor :suspended_for_spam
85
+
83
86
  # Transactional email
84
87
  attr_accessor :transactional_email
85
88
 
@@ -111,6 +114,7 @@ module UltracartClient
111
114
  :'smart_sending' => :'smart_sending',
112
115
  :'storefront_oid' => :'storefront_oid',
113
116
  :'subject' => :'subject',
117
+ :'suspended_for_spam' => :'suspended_for_spam',
114
118
  :'transactional_email' => :'transactional_email',
115
119
  :'version' => :'version'
116
120
  }
@@ -141,6 +145,7 @@ module UltracartClient
141
145
  :'smart_sending' => :'BOOLEAN',
142
146
  :'storefront_oid' => :'Integer',
143
147
  :'subject' => :'String',
148
+ :'suspended_for_spam' => :'BOOLEAN',
144
149
  :'transactional_email' => :'BOOLEAN',
145
150
  :'version' => :'Integer'
146
151
  }
@@ -242,6 +247,10 @@ module UltracartClient
242
247
  self.subject = attributes[:'subject']
243
248
  end
244
249
 
250
+ if attributes.has_key?(:'suspended_for_spam')
251
+ self.suspended_for_spam = attributes[:'suspended_for_spam']
252
+ end
253
+
245
254
  if attributes.has_key?(:'transactional_email')
246
255
  self.transactional_email = attributes[:'transactional_email']
247
256
  end
@@ -291,6 +300,7 @@ module UltracartClient
291
300
  smart_sending == o.smart_sending &&
292
301
  storefront_oid == o.storefront_oid &&
293
302
  subject == o.subject &&
303
+ suspended_for_spam == o.suspended_for_spam &&
294
304
  transactional_email == o.transactional_email &&
295
305
  version == o.version
296
306
  end
@@ -304,7 +314,7 @@ module UltracartClient
304
314
  # Calculates hash code according to all attributes.
305
315
  # @return [Fixnum] Hash code
306
316
  def hash
307
- [deleted, edited_by_user, email_communication_sequence_email_uuid, email_communication_sequence_uuid, email_container_cjson, email_container_cjson_last_modified_dts, email_template_vm_path, filter_profile_equation_json, individually_render, library_item_oid, merchant_id, pending_review, preview_text, rejected, requires_review, screenshot_large_full_url, screenshot_large_viewport_url, screenshot_small_full_url, screenshot_small_viewport_url, smart_sending, storefront_oid, subject, transactional_email, version].hash
317
+ [deleted, edited_by_user, email_communication_sequence_email_uuid, email_communication_sequence_uuid, email_container_cjson, email_container_cjson_last_modified_dts, email_template_vm_path, filter_profile_equation_json, individually_render, library_item_oid, merchant_id, pending_review, preview_text, rejected, requires_review, screenshot_large_full_url, screenshot_large_viewport_url, screenshot_small_full_url, screenshot_small_viewport_url, smart_sending, storefront_oid, subject, suspended_for_spam, transactional_email, version].hash
308
318
  end
309
319
 
310
320
  # Builds the object from hash
@@ -41,6 +41,27 @@ module UltracartClient
41
41
  # Current stage that the order is in.
42
42
  attr_accessor :current_stage
43
43
 
44
+ # Custom field 1
45
+ attr_accessor :custom_field_1
46
+
47
+ # Custom field 2
48
+ attr_accessor :custom_field_2
49
+
50
+ # Custom field 3
51
+ attr_accessor :custom_field_3
52
+
53
+ # Custom field 4
54
+ attr_accessor :custom_field_4
55
+
56
+ # Custom field 5
57
+ attr_accessor :custom_field_5
58
+
59
+ # Custom field 6
60
+ attr_accessor :custom_field_6
61
+
62
+ # Custom field 7
63
+ attr_accessor :custom_field_7
64
+
44
65
  # The customer profile to find associated orders for
45
66
  attr_accessor :customer_profile_oid
46
67
 
@@ -89,12 +110,18 @@ module UltracartClient
89
110
  # Screen branding theme code associated with the order (legacy checkout)
90
111
  attr_accessor :screen_branding_theme_code
91
112
 
92
- # Date/time that the order was shipping
113
+ # Date/time that the order was shipped
93
114
  attr_accessor :shipment_date_begin
94
115
 
95
116
  # Date/time that the order was shipped
96
117
  attr_accessor :shipment_date_end
97
118
 
119
+ # Date/time that the order should ship on
120
+ attr_accessor :shipped_on_date_begin
121
+
122
+ # Date/time that the order should ship on
123
+ attr_accessor :shipped_on_date_end
124
+
98
125
  # State for United States otherwise region or province for other countries
99
126
  attr_accessor :state_region
100
127
 
@@ -138,6 +165,13 @@ module UltracartClient
138
165
  :'creation_date_begin' => :'creation_date_begin',
139
166
  :'creation_date_end' => :'creation_date_end',
140
167
  :'current_stage' => :'current_stage',
168
+ :'custom_field_1' => :'custom_field_1',
169
+ :'custom_field_2' => :'custom_field_2',
170
+ :'custom_field_3' => :'custom_field_3',
171
+ :'custom_field_4' => :'custom_field_4',
172
+ :'custom_field_5' => :'custom_field_5',
173
+ :'custom_field_6' => :'custom_field_6',
174
+ :'custom_field_7' => :'custom_field_7',
141
175
  :'customer_profile_oid' => :'customer_profile_oid',
142
176
  :'email' => :'email',
143
177
  :'first_name' => :'first_name',
@@ -156,6 +190,8 @@ module UltracartClient
156
190
  :'screen_branding_theme_code' => :'screen_branding_theme_code',
157
191
  :'shipment_date_begin' => :'shipment_date_begin',
158
192
  :'shipment_date_end' => :'shipment_date_end',
193
+ :'shipped_on_date_begin' => :'shipped_on_date_begin',
194
+ :'shipped_on_date_end' => :'shipped_on_date_end',
159
195
  :'state_region' => :'state_region',
160
196
  :'storefront_host_name' => :'storefront_host_name',
161
197
  :'total' => :'total'
@@ -174,6 +210,13 @@ module UltracartClient
174
210
  :'creation_date_begin' => :'String',
175
211
  :'creation_date_end' => :'String',
176
212
  :'current_stage' => :'String',
213
+ :'custom_field_1' => :'String',
214
+ :'custom_field_2' => :'String',
215
+ :'custom_field_3' => :'String',
216
+ :'custom_field_4' => :'String',
217
+ :'custom_field_5' => :'String',
218
+ :'custom_field_6' => :'String',
219
+ :'custom_field_7' => :'String',
177
220
  :'customer_profile_oid' => :'Integer',
178
221
  :'email' => :'String',
179
222
  :'first_name' => :'String',
@@ -192,6 +235,8 @@ module UltracartClient
192
235
  :'screen_branding_theme_code' => :'String',
193
236
  :'shipment_date_begin' => :'String',
194
237
  :'shipment_date_end' => :'String',
238
+ :'shipped_on_date_begin' => :'String',
239
+ :'shipped_on_date_end' => :'String',
195
240
  :'state_region' => :'String',
196
241
  :'storefront_host_name' => :'String',
197
242
  :'total' => :'Float'
@@ -242,6 +287,34 @@ module UltracartClient
242
287
  self.current_stage = attributes[:'current_stage']
243
288
  end
244
289
 
290
+ if attributes.has_key?(:'custom_field_1')
291
+ self.custom_field_1 = attributes[:'custom_field_1']
292
+ end
293
+
294
+ if attributes.has_key?(:'custom_field_2')
295
+ self.custom_field_2 = attributes[:'custom_field_2']
296
+ end
297
+
298
+ if attributes.has_key?(:'custom_field_3')
299
+ self.custom_field_3 = attributes[:'custom_field_3']
300
+ end
301
+
302
+ if attributes.has_key?(:'custom_field_4')
303
+ self.custom_field_4 = attributes[:'custom_field_4']
304
+ end
305
+
306
+ if attributes.has_key?(:'custom_field_5')
307
+ self.custom_field_5 = attributes[:'custom_field_5']
308
+ end
309
+
310
+ if attributes.has_key?(:'custom_field_6')
311
+ self.custom_field_6 = attributes[:'custom_field_6']
312
+ end
313
+
314
+ if attributes.has_key?(:'custom_field_7')
315
+ self.custom_field_7 = attributes[:'custom_field_7']
316
+ end
317
+
245
318
  if attributes.has_key?(:'customer_profile_oid')
246
319
  self.customer_profile_oid = attributes[:'customer_profile_oid']
247
320
  end
@@ -314,6 +387,14 @@ module UltracartClient
314
387
  self.shipment_date_end = attributes[:'shipment_date_end']
315
388
  end
316
389
 
390
+ if attributes.has_key?(:'shipped_on_date_begin')
391
+ self.shipped_on_date_begin = attributes[:'shipped_on_date_begin']
392
+ end
393
+
394
+ if attributes.has_key?(:'shipped_on_date_end')
395
+ self.shipped_on_date_end = attributes[:'shipped_on_date_end']
396
+ end
397
+
317
398
  if attributes.has_key?(:'state_region')
318
399
  self.state_region = attributes[:'state_region']
319
400
  end
@@ -558,6 +639,13 @@ module UltracartClient
558
639
  creation_date_begin == o.creation_date_begin &&
559
640
  creation_date_end == o.creation_date_end &&
560
641
  current_stage == o.current_stage &&
642
+ custom_field_1 == o.custom_field_1 &&
643
+ custom_field_2 == o.custom_field_2 &&
644
+ custom_field_3 == o.custom_field_3 &&
645
+ custom_field_4 == o.custom_field_4 &&
646
+ custom_field_5 == o.custom_field_5 &&
647
+ custom_field_6 == o.custom_field_6 &&
648
+ custom_field_7 == o.custom_field_7 &&
561
649
  customer_profile_oid == o.customer_profile_oid &&
562
650
  email == o.email &&
563
651
  first_name == o.first_name &&
@@ -576,6 +664,8 @@ module UltracartClient
576
664
  screen_branding_theme_code == o.screen_branding_theme_code &&
577
665
  shipment_date_begin == o.shipment_date_begin &&
578
666
  shipment_date_end == o.shipment_date_end &&
667
+ shipped_on_date_begin == o.shipped_on_date_begin &&
668
+ shipped_on_date_end == o.shipped_on_date_end &&
579
669
  state_region == o.state_region &&
580
670
  storefront_host_name == o.storefront_host_name &&
581
671
  total == o.total
@@ -590,7 +680,7 @@ module UltracartClient
590
680
  # Calculates hash code according to all attributes.
591
681
  # @return [Fixnum] Hash code
592
682
  def hash
593
- [cc_email, channel_partner_code, channel_partner_order_id, city, company, country_code, creation_date_begin, creation_date_end, current_stage, customer_profile_oid, email, first_name, item_id, last_name, order_id, payment_date_begin, payment_date_end, payment_method, phone, postal_code, purchase_order_number, refund_date_begin, refund_date_end, rma, screen_branding_theme_code, shipment_date_begin, shipment_date_end, state_region, storefront_host_name, total].hash
683
+ [cc_email, channel_partner_code, channel_partner_order_id, city, company, country_code, creation_date_begin, creation_date_end, current_stage, custom_field_1, custom_field_2, custom_field_3, custom_field_4, custom_field_5, custom_field_6, custom_field_7, customer_profile_oid, email, first_name, item_id, last_name, order_id, payment_date_begin, payment_date_end, payment_method, phone, postal_code, purchase_order_number, refund_date_begin, refund_date_end, rma, screen_branding_theme_code, shipment_date_begin, shipment_date_end, shipped_on_date_begin, shipped_on_date_end, state_region, storefront_host_name, total].hash
594
684
  end
595
685
 
596
686
  # Builds the object from hash
@@ -22,6 +22,8 @@ module UltracartClient
22
22
 
23
23
  attr_accessor :max_values
24
24
 
25
+ attr_accessor :page_params
26
+
25
27
  attr_accessor :urls
26
28
 
27
29
  attr_accessor :user_agent_device_names
@@ -41,6 +43,7 @@ module UltracartClient
41
43
  :'geolocation_countries' => :'geolocation_countries',
42
44
  :'geolocation_states' => :'geolocation_states',
43
45
  :'max_values' => :'max_values',
46
+ :'page_params' => :'page_params',
44
47
  :'urls' => :'urls',
45
48
  :'user_agent_device_names' => :'user_agent_device_names',
46
49
  :'user_agent_device_os_names' => :'user_agent_device_os_names',
@@ -57,6 +60,7 @@ module UltracartClient
57
60
  :'geolocation_countries' => :'Array<String>',
58
61
  :'geolocation_states' => :'Array<String>',
59
62
  :'max_values' => :'Integer',
63
+ :'page_params' => :'Array<ScreenRecordingFilterValuesPageParam>',
60
64
  :'urls' => :'Array<String>',
61
65
  :'user_agent_device_names' => :'Array<String>',
62
66
  :'user_agent_device_os_names' => :'Array<String>',
@@ -96,6 +100,12 @@ module UltracartClient
96
100
  self.max_values = attributes[:'max_values']
97
101
  end
98
102
 
103
+ if attributes.has_key?(:'page_params')
104
+ if (value = attributes[:'page_params']).is_a?(Array)
105
+ self.page_params = value
106
+ end
107
+ end
108
+
99
109
  if attributes.has_key?(:'urls')
100
110
  if (value = attributes[:'urls']).is_a?(Array)
101
111
  self.urls = value
@@ -155,6 +165,7 @@ module UltracartClient
155
165
  geolocation_countries == o.geolocation_countries &&
156
166
  geolocation_states == o.geolocation_states &&
157
167
  max_values == o.max_values &&
168
+ page_params == o.page_params &&
158
169
  urls == o.urls &&
159
170
  user_agent_device_names == o.user_agent_device_names &&
160
171
  user_agent_device_os_names == o.user_agent_device_os_names &&
@@ -172,7 +183,7 @@ module UltracartClient
172
183
  # Calculates hash code according to all attributes.
173
184
  # @return [Fixnum] Hash code
174
185
  def hash
175
- [events, geolocation_countries, geolocation_states, max_values, urls, user_agent_device_names, user_agent_device_os_names, user_agent_device_os_versions, user_agent_names, user_agent_originals].hash
186
+ [events, geolocation_countries, geolocation_states, max_values, page_params, urls, user_agent_device_names, user_agent_device_os_names, user_agent_device_os_versions, user_agent_names, user_agent_originals].hash
176
187
  end
177
188
 
178
189
  # Builds the object from hash
@@ -0,0 +1,195 @@
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 ScreenRecordingFilterValuesPageParam
17
+ attr_accessor :name
18
+
19
+ attr_accessor :values
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'name' => :'name',
25
+ :'values' => :'values'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.swagger_types
31
+ {
32
+ :'name' => :'String',
33
+ :'values' => :'Array<String>'
34
+ }
35
+ end
36
+
37
+ # Initializes the object
38
+ # @param [Hash] attributes Model attributes in the form of hash
39
+ def initialize(attributes = {})
40
+ return unless attributes.is_a?(Hash)
41
+
42
+ # convert string to symbol for hash key
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
44
+
45
+ if attributes.has_key?(:'name')
46
+ self.name = attributes[:'name']
47
+ end
48
+
49
+ if attributes.has_key?(:'values')
50
+ if (value = attributes[:'values']).is_a?(Array)
51
+ self.values = value
52
+ end
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(o)
72
+ return true if self.equal?(o)
73
+ self.class == o.class &&
74
+ name == o.name &&
75
+ values == o.values
76
+ end
77
+
78
+ # @see the `==` method
79
+ # @param [Object] Object to be compared
80
+ def eql?(o)
81
+ self == o
82
+ end
83
+
84
+ # Calculates hash code according to all attributes.
85
+ # @return [Fixnum] Hash code
86
+ def hash
87
+ [name, values].hash
88
+ end
89
+
90
+ # Builds the object from hash
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ # @return [Object] Returns the model itself
93
+ def build_from_hash(attributes)
94
+ return nil unless attributes.is_a?(Hash)
95
+ self.class.swagger_types.each_pair do |key, type|
96
+ if type =~ /\AArray<(.*)>/i
97
+ # check to ensure the input is an array given that the attribute
98
+ # is documented as an array but the input is not
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
101
+ end
102
+ elsif !attributes[self.class.attribute_map[key]].nil?
103
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ temp_model = UltracartClient.const_get(type).new
148
+ temp_model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ # Returns the string representation of the object
153
+ # @return [String] String presentation of the object
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_hash (backward compatibility)
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_body
161
+ to_hash
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ next if value.nil?
171
+ hash[param] = _to_hash(value)
172
+ end
173
+ hash
174
+ end
175
+
176
+ # Outputs non-array value in the form of hash
177
+ # For object, use to_hash. Otherwise, just return the value
178
+ # @param [Object] value Any valid value
179
+ # @return [Hash] Returns the value in the form of hash
180
+ def _to_hash(value)
181
+ if value.is_a?(Array)
182
+ value.compact.map { |v| _to_hash(v) }
183
+ elsif value.is_a?(Hash)
184
+ {}.tap do |hash|
185
+ value.each { |k, v| hash[k] = _to_hash(v) }
186
+ end
187
+ elsif value.respond_to? :to_hash
188
+ value.to_hash
189
+ else
190
+ value
191
+ end
192
+ end
193
+
194
+ end
195
+ end
@@ -29,6 +29,9 @@ module UltracartClient
29
29
  # Send test orders through to TaxJar. The default is to not transmit test orders to TaxJar.
30
30
  attr_accessor :send_test_orders
31
31
 
32
+ # Do not send channel partner orders to TaxJar. Set this to true if your channel partner reports tax on their own.
33
+ attr_accessor :skip_channel_orders
34
+
32
35
  # Use distribution center from address
33
36
  attr_accessor :use_distribution_center_from
34
37
 
@@ -40,6 +43,7 @@ module UltracartClient
40
43
  :'estimate_only' => :'estimate_only',
41
44
  :'send_outside_nexus' => :'send_outside_nexus',
42
45
  :'send_test_orders' => :'send_test_orders',
46
+ :'skip_channel_orders' => :'skip_channel_orders',
43
47
  :'use_distribution_center_from' => :'use_distribution_center_from'
44
48
  }
45
49
  end
@@ -52,6 +56,7 @@ module UltracartClient
52
56
  :'estimate_only' => :'BOOLEAN',
53
57
  :'send_outside_nexus' => :'BOOLEAN',
54
58
  :'send_test_orders' => :'BOOLEAN',
59
+ :'skip_channel_orders' => :'BOOLEAN',
55
60
  :'use_distribution_center_from' => :'BOOLEAN'
56
61
  }
57
62
  end
@@ -84,6 +89,10 @@ module UltracartClient
84
89
  self.send_test_orders = attributes[:'send_test_orders']
85
90
  end
86
91
 
92
+ if attributes.has_key?(:'skip_channel_orders')
93
+ self.skip_channel_orders = attributes[:'skip_channel_orders']
94
+ end
95
+
87
96
  if attributes.has_key?(:'use_distribution_center_from')
88
97
  self.use_distribution_center_from = attributes[:'use_distribution_center_from']
89
98
  end
@@ -112,6 +121,7 @@ module UltracartClient
112
121
  estimate_only == o.estimate_only &&
113
122
  send_outside_nexus == o.send_outside_nexus &&
114
123
  send_test_orders == o.send_test_orders &&
124
+ skip_channel_orders == o.skip_channel_orders &&
115
125
  use_distribution_center_from == o.use_distribution_center_from
116
126
  end
117
127
 
@@ -124,7 +134,7 @@ module UltracartClient
124
134
  # Calculates hash code according to all attributes.
125
135
  # @return [Fixnum] Hash code
126
136
  def hash
127
- [active, api_key, estimate_only, send_outside_nexus, send_test_orders, use_distribution_center_from].hash
137
+ [active, api_key, estimate_only, send_outside_nexus, send_test_orders, skip_channel_orders, use_distribution_center_from].hash
128
138
  end
129
139
 
130
140
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.1.13'
14
+ VERSION = '3.1.18'
15
15
  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.13
4
+ version: 3.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-02 00:00:00.000000000 Z
11
+ date: 2021-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -345,6 +345,7 @@ files:
345
345
  - docs/CouponPercentOffItems.md
346
346
  - docs/CouponPercentOffItemsAndFreeShipping.md
347
347
  - docs/CouponPercentOffItemsWithItemsPurchase.md
348
+ - docs/CouponPercentOffMsrpItems.md
348
349
  - docs/CouponPercentOffRetailPriceItems.md
349
350
  - docs/CouponPercentOffShipping.md
350
351
  - docs/CouponPercentOffSubtotal.md
@@ -694,6 +695,7 @@ files:
694
695
  - docs/ScreenRecordingFilterValues.md
695
696
  - docs/ScreenRecordingFilterValuesEvent.md
696
697
  - docs/ScreenRecordingFilterValuesEventParams.md
698
+ - docs/ScreenRecordingFilterValuesPageParam.md
697
699
  - docs/ScreenRecordingMerchantNotesRequest.md
698
700
  - docs/ScreenRecordingMultifield.md
699
701
  - docs/ScreenRecordingPageView.md
@@ -936,6 +938,7 @@ files:
936
938
  - lib/ultracart_api/models/coupon_percent_off_items.rb
937
939
  - lib/ultracart_api/models/coupon_percent_off_items_and_free_shipping.rb
938
940
  - lib/ultracart_api/models/coupon_percent_off_items_with_items_purchase.rb
941
+ - lib/ultracart_api/models/coupon_percent_off_msrp_items.rb
939
942
  - lib/ultracart_api/models/coupon_percent_off_retail_price_items.rb
940
943
  - lib/ultracart_api/models/coupon_percent_off_shipping.rb
941
944
  - lib/ultracart_api/models/coupon_percent_off_subtotal.rb
@@ -1280,6 +1283,7 @@ files:
1280
1283
  - lib/ultracart_api/models/screen_recording_filter_values.rb
1281
1284
  - lib/ultracart_api/models/screen_recording_filter_values_event.rb
1282
1285
  - lib/ultracart_api/models/screen_recording_filter_values_event_params.rb
1286
+ - lib/ultracart_api/models/screen_recording_filter_values_page_param.rb
1283
1287
  - lib/ultracart_api/models/screen_recording_merchant_notes_request.rb
1284
1288
  - lib/ultracart_api/models/screen_recording_multifield.rb
1285
1289
  - lib/ultracart_api/models/screen_recording_page_view.rb