ultracart_api 3.10.187 → 3.10.189

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e17cdf0aa137f414487fec5c4da52010db9191af8fe8bde623fb046dab7201ca
4
- data.tar.gz: 4c006506465353652a478aba76972ddb75014be2a4f8d732e4ec7bd84284cc0a
3
+ metadata.gz: 14717d57379923f11650d162e9d07503e0017b6669d5ad7d1592c0a1046a8aa1
4
+ data.tar.gz: fc4243b3816fb8ab04d03f9c21d08df592763ecfb5cb5f699d978ebf14ea5232
5
5
  SHA512:
6
- metadata.gz: '00488bd9b47fec1d11db5447f1c28d9aa7ca2aac01dc983cfcae5e2f8588d165d8e9d245bab308408979037c3984a2e904d3f89afe4b54955f275b2137fcbf4b'
7
- data.tar.gz: 81127e64bdff43f2852c9bed27461702e1bd4683e26edb651469028057860a666399098b8ea21900ce10552c9a61df1a486f7c2116c6df599c153a329275ef80
6
+ metadata.gz: 002df6314150d172f74a2cbaeeccbd7a3b0be5af6611e489c522c3b0d2e52056c85f4f498fa9c79fe7a7890fa68ff1eab8fbb3b9f45509515a7c21076e379661
7
+ data.tar.gz: b05bccc68eb075457a2b7c7d1f59a04afa9395b9c9d1aab905215049440729b1d8e42cd291f1eab96324313d5be78b827fa26debf6440fd508134b6ab90e2883
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.10.187
10
+ - Package version: 3.10.189
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.10.187.gem
27
+ gem install ./ultracart_api-3.10.189.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.187.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.189.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.10.187'
35
+ gem 'ultracart_api', '~> 3.10.189'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -564,6 +564,7 @@ Class | Method | HTTP request | Description
564
564
  *UltracartClient::WorkflowApi* | [**get_workflow_task**](docs/WorkflowApi.md#get_workflow_task) | **GET** /workflow/tasks/{task_uuid} | Retrieve a workflow task
565
565
  *UltracartClient::WorkflowApi* | [**get_workflow_task_attachment_upload_url**](docs/WorkflowApi.md#get_workflow_task_attachment_upload_url) | **GET** /workflow/tasks/attachments/{extension} | Get a presigned workflow task attachment upload URL
566
566
  *UltracartClient::WorkflowApi* | [**get_workflow_task_by_object_type**](docs/WorkflowApi.md#get_workflow_task_by_object_type) | **GET** /workflow/tasks/by/{object_type}/{object_id} | Retrieve a workflow task by object type and id
567
+ *UltracartClient::WorkflowApi* | [**get_workflow_task_open_count**](docs/WorkflowApi.md#get_workflow_task_open_count) | **GET** /workflow/tasks/open_count | Retrieve workflow task open count
567
568
  *UltracartClient::WorkflowApi* | [**get_workflow_task_tags**](docs/WorkflowApi.md#get_workflow_task_tags) | **GET** /workflow/tasks/tags | Get a list of existing workflow task tags
568
569
  *UltracartClient::WorkflowApi* | [**get_workflow_tasks**](docs/WorkflowApi.md#get_workflow_tasks) | **POST** /workflow/tasks/search | Search workflow tasks
569
570
  *UltracartClient::WorkflowApi* | [**insert_workflow_task**](docs/WorkflowApi.md#insert_workflow_task) | **POST** /workflow/tasks | Insert a workflow task
@@ -1405,6 +1406,7 @@ Class | Method | HTTP request | Description
1405
1406
  - [UltracartClient::WorkflowNote](docs/WorkflowNote.md)
1406
1407
  - [UltracartClient::WorkflowTask](docs/WorkflowTask.md)
1407
1408
  - [UltracartClient::WorkflowTaskHistory](docs/WorkflowTaskHistory.md)
1409
+ - [UltracartClient::WorkflowTaskOpenCountResponse](docs/WorkflowTaskOpenCountResponse.md)
1408
1410
  - [UltracartClient::WorkflowTaskResponse](docs/WorkflowTaskResponse.md)
1409
1411
  - [UltracartClient::WorkflowTaskTagsResponse](docs/WorkflowTaskTagsResponse.md)
1410
1412
  - [UltracartClient::WorkflowTasksRequest](docs/WorkflowTasksRequest.md)
@@ -1484,6 +1486,8 @@ Not every change is committed to every SDK.
1484
1486
 
1485
1487
  | Version | Date | Comments |
1486
1488
  | --: | :-: | --- |
1489
+ | 3.10.189 | 03/25/2024 | added sales_rep_code to Channel partner order |
1490
+ | 3.10.188 | 03/19/2024 | workflow task - method to obtain open task count |
1487
1491
  | 3.10.187 | 03/19/2024 | workflow task - addl status values, expiration_dts, and system task type |
1488
1492
  | 3.10.186 | 03/15/2024 | workflow - getWorkflowAgentWebsocketAuthorization method added |
1489
1493
  | 3.10.185 | 03/08/2024 | added getWorkflowTaskTags method |
@@ -59,6 +59,7 @@ Name | Type | Description | Notes
59
59
  **payment_method** | **String** | Payment method | [optional]
60
60
  **purchase_order_number** | **String** | Purchase order number | [optional]
61
61
  **rotating_transaction_gateway_code** | **String** | The rotating transaction gateway code for the gateway used to charge this order | [optional]
62
+ **sales_rep_code** | **String** | Sales rep code | [optional]
62
63
  **screen_branding_theme_code** | **String** | Screen branding theme code | [optional]
63
64
  **ship_on_date** | **String** | Date the customer is requesting that the order ship on. Typically used for perishable product delivery. | [optional]
64
65
  **ship_to_residential** | **BOOLEAN** | True if the shipping adress is residential. Effects the methods that are available to the customer as well as the price of the shipping method. | [optional]
data/docs/WorkflowApi.md CHANGED
@@ -11,6 +11,7 @@ Method | HTTP request | Description
11
11
  [**get_workflow_task**](WorkflowApi.md#get_workflow_task) | **GET** /workflow/tasks/{task_uuid} | Retrieve a workflow task
12
12
  [**get_workflow_task_attachment_upload_url**](WorkflowApi.md#get_workflow_task_attachment_upload_url) | **GET** /workflow/tasks/attachments/{extension} | Get a presigned workflow task attachment upload URL
13
13
  [**get_workflow_task_by_object_type**](WorkflowApi.md#get_workflow_task_by_object_type) | **GET** /workflow/tasks/by/{object_type}/{object_id} | Retrieve a workflow task by object type and id
14
+ [**get_workflow_task_open_count**](WorkflowApi.md#get_workflow_task_open_count) | **GET** /workflow/tasks/open_count | Retrieve workflow task open count
14
15
  [**get_workflow_task_tags**](WorkflowApi.md#get_workflow_task_tags) | **GET** /workflow/tasks/tags | Get a list of existing workflow task tags
15
16
  [**get_workflow_tasks**](WorkflowApi.md#get_workflow_tasks) | **POST** /workflow/tasks/search | Search workflow tasks
16
17
  [**insert_workflow_task**](WorkflowApi.md#insert_workflow_task) | **POST** /workflow/tasks | Insert a workflow task
@@ -366,6 +367,51 @@ Name | Type | Description | Notes
366
367
 
367
368
 
368
369
 
370
+ # **get_workflow_task_open_count**
371
+ > WorkflowTaskOpenCountResponse get_workflow_task_open_count
372
+
373
+ Retrieve workflow task open count
374
+
375
+ Retrieve workflow task open count
376
+
377
+ ### Example
378
+ ```ruby
379
+ # load the gem
380
+ require 'ultracart_api'
381
+
382
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
383
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
384
+ api_instance = UltracartClient::WorkflowApi.new_using_api_key(simple_key, false, false)
385
+
386
+
387
+
388
+ begin
389
+ #Retrieve workflow task open count
390
+ result = api_instance.get_workflow_task_open_count
391
+ p result
392
+ rescue UltracartClient::ApiError => e
393
+ puts "Exception when calling WorkflowApi->get_workflow_task_open_count: #{e}"
394
+ end
395
+ ```
396
+
397
+ ### Parameters
398
+ This endpoint does not need any parameter.
399
+
400
+ ### Return type
401
+
402
+ [**WorkflowTaskOpenCountResponse**](WorkflowTaskOpenCountResponse.md)
403
+
404
+ ### Authorization
405
+
406
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
407
+
408
+ ### HTTP request headers
409
+
410
+ - **Content-Type**: application/json
411
+ - **Accept**: application/json
412
+
413
+
414
+
369
415
  # **get_workflow_task_tags**
370
416
  > WorkflowTaskTagsResponse get_workflow_task_tags
371
417
 
@@ -0,0 +1,12 @@
1
+ # UltracartClient::WorkflowTaskOpenCountResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
8
+ **open_count** | **Integer** | Open Task Count | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **error** | [**Error**](Error.md) | | [optional]
7
7
  **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
8
+ **my_user_id** | **Integer** | User ID of myself | [optional]
8
9
  **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
9
10
  **users** | [**Array<WorkflowUser>**](WorkflowUser.md) | users | [optional]
10
11
  **warning** | [**Warning**](Warning.md) | | [optional]
@@ -411,6 +411,55 @@ module UltracartClient
411
411
  end
412
412
  return data, status_code, headers
413
413
  end
414
+ # Retrieve workflow task open count
415
+ # Retrieve workflow task open count
416
+ # @param [Hash] opts the optional parameters
417
+ # @return [WorkflowTaskOpenCountResponse]
418
+ def get_workflow_task_open_count(opts = {})
419
+ data, _status_code, _headers = get_workflow_task_open_count_with_http_info(opts)
420
+ data
421
+ end
422
+
423
+ # Retrieve workflow task open count
424
+ # Retrieve workflow task open count
425
+ # @param [Hash] opts the optional parameters
426
+ # @return [Array<(WorkflowTaskOpenCountResponse, Fixnum, Hash)>] WorkflowTaskOpenCountResponse data, response status code and response headers
427
+ def get_workflow_task_open_count_with_http_info(opts = {})
428
+ if @api_client.config.debugging
429
+ @api_client.config.logger.debug 'Calling API: WorkflowApi.get_workflow_task_open_count ...'
430
+ end
431
+ # resource path
432
+ local_var_path = '/workflow/tasks/open_count'
433
+
434
+ # query parameters
435
+ query_params = {}
436
+
437
+ # header parameters
438
+ header_params = {}
439
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
440
+ # HTTP header 'Accept' (if needed)
441
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
442
+ # HTTP header 'Content-Type'
443
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
444
+
445
+ # form parameters
446
+ form_params = {}
447
+
448
+ # http body (model)
449
+ post_body = nil
450
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
451
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
452
+ :header_params => header_params,
453
+ :query_params => query_params,
454
+ :form_params => form_params,
455
+ :body => post_body,
456
+ :auth_names => auth_names,
457
+ :return_type => 'WorkflowTaskOpenCountResponse')
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug "API called: WorkflowApi#get_workflow_task_open_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
460
+ end
461
+ return data, status_code, headers
462
+ end
414
463
  # Get a list of existing workflow task tags
415
464
  # Retrieves a unique list of all the existing workflow task tags.
416
465
  # @param [Hash] opts the optional parameters
@@ -182,6 +182,9 @@ module UltracartClient
182
182
  # The rotating transaction gateway code for the gateway used to charge this order
183
183
  attr_accessor :rotating_transaction_gateway_code
184
184
 
185
+ # Sales rep code
186
+ attr_accessor :sales_rep_code
187
+
185
188
  # Screen branding theme code
186
189
  attr_accessor :screen_branding_theme_code
187
190
 
@@ -334,6 +337,7 @@ module UltracartClient
334
337
  :'payment_method' => :'payment_method',
335
338
  :'purchase_order_number' => :'purchase_order_number',
336
339
  :'rotating_transaction_gateway_code' => :'rotating_transaction_gateway_code',
340
+ :'sales_rep_code' => :'sales_rep_code',
337
341
  :'screen_branding_theme_code' => :'screen_branding_theme_code',
338
342
  :'ship_on_date' => :'ship_on_date',
339
343
  :'ship_to_residential' => :'ship_to_residential',
@@ -420,6 +424,7 @@ module UltracartClient
420
424
  :'payment_method' => :'String',
421
425
  :'purchase_order_number' => :'String',
422
426
  :'rotating_transaction_gateway_code' => :'String',
427
+ :'sales_rep_code' => :'String',
423
428
  :'screen_branding_theme_code' => :'String',
424
429
  :'ship_on_date' => :'String',
425
430
  :'ship_to_residential' => :'BOOLEAN',
@@ -685,6 +690,10 @@ module UltracartClient
685
690
  self.rotating_transaction_gateway_code = attributes[:'rotating_transaction_gateway_code']
686
691
  end
687
692
 
693
+ if attributes.has_key?(:'sales_rep_code')
694
+ self.sales_rep_code = attributes[:'sales_rep_code']
695
+ end
696
+
688
697
  if attributes.has_key?(:'screen_branding_theme_code')
689
698
  self.screen_branding_theme_code = attributes[:'screen_branding_theme_code']
690
699
  end
@@ -1423,6 +1432,7 @@ module UltracartClient
1423
1432
  payment_method == o.payment_method &&
1424
1433
  purchase_order_number == o.purchase_order_number &&
1425
1434
  rotating_transaction_gateway_code == o.rotating_transaction_gateway_code &&
1435
+ sales_rep_code == o.sales_rep_code &&
1426
1436
  screen_branding_theme_code == o.screen_branding_theme_code &&
1427
1437
  ship_on_date == o.ship_on_date &&
1428
1438
  ship_to_residential == o.ship_to_residential &&
@@ -1458,7 +1468,7 @@ module UltracartClient
1458
1468
  # Calculates hash code according to all attributes.
1459
1469
  # @return [Fixnum] Hash code
1460
1470
  def hash
1461
- [advertising_source, affiliate_id, affiliate_sub_id, arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, associate_with_customer_profile_if_present, auto_approve_purchase_order, billto_address1, billto_address2, billto_city, billto_company, billto_country_code, billto_day_phone, billto_evening_phone, billto_first_name, billto_last_name, billto_postal_code, billto_state_region, billto_title, cc_email, channel_partner_order_id, consider_recurring, coupons, credit_card_authorization_amount, credit_card_authorization_dts, credit_card_authorization_number, credit_card_expiration_month, credit_card_expiration_year, credit_card_type, custom_field1, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, delivery_date, email, gift, gift_email, gift_message, hosted_fields_card_token, hosted_fields_cvv_token, insurance_application_id, insurance_claim_id, ip_address, items, least_cost_route, least_cost_route_shipping_methods, mailing_list_opt_in, no_realtime_payment_processing, payment_method, purchase_order_number, rotating_transaction_gateway_code, screen_branding_theme_code, ship_on_date, ship_to_residential, shipping_method, shipto_address1, shipto_address2, shipto_city, shipto_company, shipto_country_code, shipto_day_phone, shipto_evening_phone, shipto_first_name, shipto_last_name, shipto_postal_code, shipto_state_region, shipto_title, skip_payment_processing, special_instructions, store_completed, store_if_payment_declines, tax_county, tax_exempt, transaction, treat_warnings_as_errors].hash
1471
+ [advertising_source, affiliate_id, affiliate_sub_id, arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, associate_with_customer_profile_if_present, auto_approve_purchase_order, billto_address1, billto_address2, billto_city, billto_company, billto_country_code, billto_day_phone, billto_evening_phone, billto_first_name, billto_last_name, billto_postal_code, billto_state_region, billto_title, cc_email, channel_partner_order_id, consider_recurring, coupons, credit_card_authorization_amount, credit_card_authorization_dts, credit_card_authorization_number, credit_card_expiration_month, credit_card_expiration_year, credit_card_type, custom_field1, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, delivery_date, email, gift, gift_email, gift_message, hosted_fields_card_token, hosted_fields_cvv_token, insurance_application_id, insurance_claim_id, ip_address, items, least_cost_route, least_cost_route_shipping_methods, mailing_list_opt_in, no_realtime_payment_processing, payment_method, purchase_order_number, rotating_transaction_gateway_code, sales_rep_code, screen_branding_theme_code, ship_on_date, ship_to_residential, shipping_method, shipto_address1, shipto_address2, shipto_city, shipto_company, shipto_country_code, shipto_day_phone, shipto_evening_phone, shipto_first_name, shipto_last_name, shipto_postal_code, shipto_state_region, shipto_title, skip_payment_processing, special_instructions, store_completed, store_if_payment_declines, tax_county, tax_exempt, transaction, treat_warnings_as_errors].hash
1462
1472
  end
1463
1473
 
1464
1474
  # Builds the object from hash
@@ -0,0 +1,222 @@
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 WorkflowTaskOpenCountResponse
17
+ attr_accessor :error
18
+
19
+ attr_accessor :metadata
20
+
21
+ # Open Task Count
22
+ attr_accessor :open_count
23
+
24
+ # Indicates if API call was successful
25
+ attr_accessor :success
26
+
27
+ attr_accessor :warning
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'error' => :'error',
33
+ :'metadata' => :'metadata',
34
+ :'open_count' => :'open_count',
35
+ :'success' => :'success',
36
+ :'warning' => :'warning'
37
+ }
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.swagger_types
42
+ {
43
+ :'error' => :'Error',
44
+ :'metadata' => :'ResponseMetadata',
45
+ :'open_count' => :'Integer',
46
+ :'success' => :'BOOLEAN',
47
+ :'warning' => :'Warning'
48
+ }
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ return unless attributes.is_a?(Hash)
55
+
56
+ # convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
+
59
+ if attributes.has_key?(:'error')
60
+ self.error = attributes[:'error']
61
+ end
62
+
63
+ if attributes.has_key?(:'metadata')
64
+ self.metadata = attributes[:'metadata']
65
+ end
66
+
67
+ if attributes.has_key?(:'open_count')
68
+ self.open_count = attributes[:'open_count']
69
+ end
70
+
71
+ if attributes.has_key?(:'success')
72
+ self.success = attributes[:'success']
73
+ end
74
+
75
+ if attributes.has_key?(:'warning')
76
+ self.warning = attributes[:'warning']
77
+ end
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properties with the reasons
82
+ def list_invalid_properties
83
+ invalid_properties = Array.new
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ true
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
+ error == o.error &&
99
+ metadata == o.metadata &&
100
+ open_count == o.open_count &&
101
+ success == o.success &&
102
+ warning == o.warning
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Fixnum] Hash code
113
+ def hash
114
+ [error, metadata, open_count, success, warning].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ self.class.swagger_types.each_pair do |key, type|
123
+ if type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :DateTime
144
+ DateTime.parse(value)
145
+ when :Date
146
+ Date.parse(value)
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :BOOLEAN
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ temp_model = UltracartClient.const_get(type).new
175
+ temp_model.build_from_hash(value)
176
+ end
177
+ end
178
+
179
+ # Returns the string representation of the object
180
+ # @return [String] String presentation of the object
181
+ def to_s
182
+ to_hash.to_s
183
+ end
184
+
185
+ # to_body is an alias to to_hash (backward compatibility)
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_body
188
+ to_hash
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ next if value.nil?
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+ end
@@ -18,6 +18,9 @@ module UltracartClient
18
18
 
19
19
  attr_accessor :metadata
20
20
 
21
+ # User ID of myself
22
+ attr_accessor :my_user_id
23
+
21
24
  # Indicates if API call was successful
22
25
  attr_accessor :success
23
26
 
@@ -31,6 +34,7 @@ module UltracartClient
31
34
  {
32
35
  :'error' => :'error',
33
36
  :'metadata' => :'metadata',
37
+ :'my_user_id' => :'my_user_id',
34
38
  :'success' => :'success',
35
39
  :'users' => :'users',
36
40
  :'warning' => :'warning'
@@ -42,6 +46,7 @@ module UltracartClient
42
46
  {
43
47
  :'error' => :'Error',
44
48
  :'metadata' => :'ResponseMetadata',
49
+ :'my_user_id' => :'Integer',
45
50
  :'success' => :'BOOLEAN',
46
51
  :'users' => :'Array<WorkflowUser>',
47
52
  :'warning' => :'Warning'
@@ -64,6 +69,10 @@ module UltracartClient
64
69
  self.metadata = attributes[:'metadata']
65
70
  end
66
71
 
72
+ if attributes.has_key?(:'my_user_id')
73
+ self.my_user_id = attributes[:'my_user_id']
74
+ end
75
+
67
76
  if attributes.has_key?(:'success')
68
77
  self.success = attributes[:'success']
69
78
  end
@@ -99,6 +108,7 @@ module UltracartClient
99
108
  self.class == o.class &&
100
109
  error == o.error &&
101
110
  metadata == o.metadata &&
111
+ my_user_id == o.my_user_id &&
102
112
  success == o.success &&
103
113
  users == o.users &&
104
114
  warning == o.warning
@@ -113,7 +123,7 @@ module UltracartClient
113
123
  # Calculates hash code according to all attributes.
114
124
  # @return [Fixnum] Hash code
115
125
  def hash
116
- [error, metadata, success, users, warning].hash
126
+ [error, metadata, my_user_id, success, users, warning].hash
117
127
  end
118
128
 
119
129
  # 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.10.187'
14
+ VERSION = '3.10.189'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -850,6 +850,7 @@ require 'ultracart_api/models/workflow_groups_response'
850
850
  require 'ultracart_api/models/workflow_note'
851
851
  require 'ultracart_api/models/workflow_task'
852
852
  require 'ultracart_api/models/workflow_task_history'
853
+ require 'ultracart_api/models/workflow_task_open_count_response'
853
854
  require 'ultracart_api/models/workflow_task_response'
854
855
  require 'ultracart_api/models/workflow_task_tags_response'
855
856
  require 'ultracart_api/models/workflow_tasks_request'
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.10.187
4
+ version: 3.10.189
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-19 00:00:00.000000000 Z
11
+ date: 2024-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -1075,6 +1075,7 @@ files:
1075
1075
  - docs/WorkflowNote.md
1076
1076
  - docs/WorkflowTask.md
1077
1077
  - docs/WorkflowTaskHistory.md
1078
+ - docs/WorkflowTaskOpenCountResponse.md
1078
1079
  - docs/WorkflowTaskResponse.md
1079
1080
  - docs/WorkflowTaskTagsResponse.md
1080
1081
  - docs/WorkflowTasksRequest.md
@@ -1941,6 +1942,7 @@ files:
1941
1942
  - lib/ultracart_api/models/workflow_note.rb
1942
1943
  - lib/ultracart_api/models/workflow_task.rb
1943
1944
  - lib/ultracart_api/models/workflow_task_history.rb
1945
+ - lib/ultracart_api/models/workflow_task_open_count_response.rb
1944
1946
  - lib/ultracart_api/models/workflow_task_response.rb
1945
1947
  - lib/ultracart_api/models/workflow_task_tags_response.rb
1946
1948
  - lib/ultracart_api/models/workflow_tasks_request.rb