ultracart_api 4.0.39.rc → 4.0.40.rc

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: 2afae6d4cb49326077cb7026388f479020fffc6857cb1a7478b3a044a8600b6c
4
- data.tar.gz: 9494739cc7d3065dca654bd08aeac99e603b1dc678c0f7e8897bae7a428b7b45
3
+ metadata.gz: 76013e5a63e089f1e40ed70b618beb58c0ecfb27836590c30970a63081b50541
4
+ data.tar.gz: b976780adb3bb8a80f81f0d5a73d07532edd764997e66b944488ea56c0ca6cf3
5
5
  SHA512:
6
- metadata.gz: c6908035700e3811ef04ec77fafaeb8b6af8e947437cb98f126c9426b32e8e16110f952dae467ba534a7a04b814339bc82298e83b46f352b52f7895ae4139123
7
- data.tar.gz: d0508988b13bd0a7ffef3b77bd53ea8ff74e30fec28a675842096b56d1fd34dc5b1608d254eb8f3b98d632541bc72eb8e65ab1abdc831cf5d847e7e0f4907af1
6
+ metadata.gz: 19040f00897b6b9b015f78a3ae05f5894367f688cb2f1ab38c4a388edd46959c2172a494c254ef2fc5008999b523fe7f8dffe90a9fa92c8fd262529634dd536c
7
+ data.tar.gz: 1c694c816b9df21260ca6b9267b81d0bf2f3b39311025ac3cf89a56212e7345bead4799eabcbc465b505f8d1e0163c13cc64dd365740f7fa57b1f2b3e19b5532
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 4.0.39.rc
10
+ - Package version: 4.0.40.rc
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-4.0.39.rc.gem
27
+ gem install ./ultracart_api-4.0.40.rc.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.39.rc.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.40.rc.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'ultracart_api', '~> 4.0.39.rc'
36
+ gem 'ultracart_api', '~> 4.0.40.rc'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -472,6 +472,7 @@ Class | Method | HTTP request | Description
472
472
  - [UltracartClient::AutoOrderItemOption](docs/AutoOrderItemOption.md)
473
473
  - [UltracartClient::AutoOrderItemSimpleSchedule](docs/AutoOrderItemSimpleSchedule.md)
474
474
  - [UltracartClient::AutoOrderLog](docs/AutoOrderLog.md)
475
+ - [UltracartClient::AutoOrderManagement](docs/AutoOrderManagement.md)
475
476
  - [UltracartClient::AutoOrderQuery](docs/AutoOrderQuery.md)
476
477
  - [UltracartClient::AutoOrderQueryBatch](docs/AutoOrderQueryBatch.md)
477
478
  - [UltracartClient::AutoOrderResponse](docs/AutoOrderResponse.md)
@@ -573,6 +574,7 @@ Class | Method | HTTP request | Description
573
574
  - [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
574
575
  - [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
575
576
  - [UltracartClient::ConversationSummary](docs/ConversationSummary.md)
577
+ - [UltracartClient::ConversationWebsocketMessage](docs/ConversationWebsocketMessage.md)
576
578
  - [UltracartClient::ConversationsResponse](docs/ConversationsResponse.md)
577
579
  - [UltracartClient::CountriesResponse](docs/CountriesResponse.md)
578
580
  - [UltracartClient::Country](docs/Country.md)
@@ -1164,6 +1166,7 @@ Not every change is committed to every SDK.
1164
1166
 
1165
1167
  | Version | Date | Comments |
1166
1168
  | --: | :-: | --- |
1169
+ | 4.0.40-RC | 07/25/2022 | conversations - add a websocket message model |
1167
1170
  | 4.0.39-RC | 07/21/2022 | conversation response types improvements |
1168
1171
  | 4.0.38-RC | 07/21/2022 | conversation bugfix for poor response objects |
1169
1172
  | 4.0.37-RC | 07/20/2022 | conversation participant name added |
data/docs/AutoOrder.md CHANGED
@@ -19,6 +19,7 @@
19
19
  | **failure_reason** | **String** | The reason this auto order failed during the last rebill attempt | [optional] |
20
20
  | **items** | [**Array<AutoOrderItem>**](AutoOrderItem.md) | The items that are setup to rebill | [optional] |
21
21
  | **logs** | [**Array<AutoOrderLog>**](AutoOrderLog.md) | Logs associated with this auto order | [optional] |
22
+ | **management** | [**AutoOrderManagement**](AutoOrderManagement.md) | | [optional] |
22
23
  | **next_attempt** | **String** | The next time that the auto order will be attempted for processing | [optional] |
23
24
  | **original_order** | [**Order**](Order.md) | | [optional] |
24
25
  | **original_order_id** | **String** | The original order id that this auto order is associated with. | [optional] |
@@ -48,6 +49,7 @@ instance = UltracartClient::AutoOrder.new(
48
49
  failure_reason: null,
49
50
  items: null,
50
51
  logs: null,
52
+ management: null,
51
53
  next_attempt: null,
52
54
  original_order: null,
53
55
  original_order_id: null,
@@ -11,7 +11,6 @@
11
11
  | **arbitrary_unit_cost** | **Float** | Arbitrary unit cost that rebills of this item should occur at | [optional] |
12
12
  | **arbitrary_unit_cost_remaining_orders** | **Integer** | The number of rebills to give the arbitrary unit cost on before reverting to normal pricing. | [optional] |
13
13
  | **auto_order_item_oid** | **Integer** | Primary key of AutoOrderItem | [optional] |
14
- | **first_order_dts** | **String** | Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet. | [optional] |
15
14
  | **frequency** | **String** | Frequency of the rebill if not a fixed schedule | [optional] |
16
15
  | **future_schedules** | [**Array<AutoOrderItemFutureSchedule>**](AutoOrderItemFutureSchedule.md) | The future rebill schedule for this item up to the next ten rebills | [optional] |
17
16
  | **last_order_dts** | **String** | Date/time of the last order of this item | [optional] |
@@ -23,7 +22,6 @@
23
22
  | **options** | [**Array<AutoOrderItemOption>**](AutoOrderItemOption.md) | Options associated with this item | [optional] |
24
23
  | **original_item_id** | **String** | The original item id purchased. This item controls scheduling. If you wish to modify a schedule, for example, from monthly to yearly, change this item from your monthly item to your yearly item, and then change the next_shipment_dts to your desired date. | [optional] |
25
24
  | **original_quantity** | **Float** | The original quantity purchased | [optional] |
26
- | **paused** | **Boolean** | True if paused. This field is an object instead of a primitive for backwards compatibility. | [optional] |
27
25
  | **paypal_payer_id** | **String** | The PayPal Payer ID tied to this item | [optional] |
28
26
  | **paypal_recurring_payment_profile_id** | **String** | The PayPal Profile ID tied to this item | [optional] |
29
27
  | **preshipment_notice_sent** | **Boolean** | True if the preshipment notice associated with the next rebill has been sent | [optional] |
@@ -44,7 +42,6 @@ instance = UltracartClient::AutoOrderItem.new(
44
42
  arbitrary_unit_cost: null,
45
43
  arbitrary_unit_cost_remaining_orders: null,
46
44
  auto_order_item_oid: null,
47
- first_order_dts: null,
48
45
  frequency: null,
49
46
  future_schedules: null,
50
47
  last_order_dts: null,
@@ -56,7 +53,6 @@ instance = UltracartClient::AutoOrderItem.new(
56
53
  options: null,
57
54
  original_item_id: null,
58
55
  original_quantity: null,
59
- paused: null,
60
56
  paypal_payer_id: null,
61
57
  paypal_recurring_payment_profile_id: null,
62
58
  preshipment_notice_sent: null,
@@ -0,0 +1,18 @@
1
+ # UltracartClient::AutoOrderManagement
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **update_billing_url** | **String** | URL where the customer can go to update their billing information. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::AutoOrderManagement.new(
15
+ update_billing_url: null
16
+ )
17
+ ```
18
+
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **add_conversation_participant_arns** | **Array<String>** | | [optional] |
8
8
  | **conversation_arn** | **String** | | [optional] |
9
+ | **conversation_webchat_queue_uuid** | **String** | | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'ultracart_api'
14
15
 
15
16
  instance = UltracartClient::ConversationStartRequest.new(
16
17
  add_conversation_participant_arns: null,
17
- conversation_arn: null
18
+ conversation_arn: null,
19
+ conversation_webchat_queue_uuid: null
18
20
  )
19
21
  ```
20
22
 
@@ -0,0 +1,34 @@
1
+ # UltracartClient::ConversationWebsocketMessage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **conversation_uuid** | **String** | Conversation UUID if the websocket message is tied to a specific conversation | [optional] |
8
+ | **event_conversation_closed** | [**Conversation**](Conversation.md) | | [optional] |
9
+ | **event_new_conversation** | [**Conversation**](Conversation.md) | | [optional] |
10
+ | **event_new_message** | [**ConversationMessage**](ConversationMessage.md) | | [optional] |
11
+ | **event_queue_position** | **Object** | | [optional] |
12
+ | **event_type** | **String** | Type of event | [optional] |
13
+ | **event_updated_message** | [**ConversationMessage**](ConversationMessage.md) | | [optional] |
14
+ | **message** | [**ConversationMessage**](ConversationMessage.md) | | [optional] |
15
+ | **type** | **String** | Type of message | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'ultracart_api'
21
+
22
+ instance = UltracartClient::ConversationWebsocketMessage.new(
23
+ conversation_uuid: null,
24
+ event_conversation_closed: null,
25
+ event_new_conversation: null,
26
+ event_new_message: null,
27
+ event_queue_position: null,
28
+ event_type: null,
29
+ event_updated_message: null,
30
+ message: null,
31
+ type: null
32
+ )
33
+ ```
34
+
@@ -14,7 +14,7 @@
14
14
  | **postcard_container_cjson_last_modified_dts** | **String** | Timestamp the last time the container was modified. | [optional] |
15
15
  | **postcard_front_container_cjson** | **String** | Postcard front container cjson | [optional] |
16
16
  | **postcard_front_container_uuid** | **String** | Postcard front container uuid | [optional] |
17
- | **screenshot_back_url** | **String** | URL to screenshot of the front of the postcard | [optional] |
17
+ | **screenshot_back_url** | **String** | URL to screenshot of the back of the postcard | [optional] |
18
18
  | **screenshot_front_url** | **String** | URL to screenshot of the front of the postcard | [optional] |
19
19
  | **storefront_oid** | **Integer** | Storefront oid | [optional] |
20
20
 
@@ -60,6 +60,8 @@ module UltracartClient
60
60
  # Logs associated with this auto order
61
61
  attr_accessor :logs
62
62
 
63
+ attr_accessor :management
64
+
63
65
  # The next time that the auto order will be attempted for processing
64
66
  attr_accessor :next_attempt
65
67
 
@@ -120,6 +122,7 @@ module UltracartClient
120
122
  :'failure_reason' => :'failure_reason',
121
123
  :'items' => :'items',
122
124
  :'logs' => :'logs',
125
+ :'management' => :'management',
123
126
  :'next_attempt' => :'next_attempt',
124
127
  :'original_order' => :'original_order',
125
128
  :'original_order_id' => :'original_order_id',
@@ -153,6 +156,7 @@ module UltracartClient
153
156
  :'failure_reason' => :'String',
154
157
  :'items' => :'Array<AutoOrderItem>',
155
158
  :'logs' => :'Array<AutoOrderLog>',
159
+ :'management' => :'AutoOrderManagement',
156
160
  :'next_attempt' => :'String',
157
161
  :'original_order' => :'Order',
158
162
  :'original_order_id' => :'String',
@@ -248,6 +252,10 @@ module UltracartClient
248
252
  end
249
253
  end
250
254
 
255
+ if attributes.key?(:'management')
256
+ self.management = attributes[:'management']
257
+ end
258
+
251
259
  if attributes.key?(:'next_attempt')
252
260
  self.next_attempt = attributes[:'next_attempt']
253
261
  end
@@ -324,6 +332,7 @@ module UltracartClient
324
332
  failure_reason == o.failure_reason &&
325
333
  items == o.items &&
326
334
  logs == o.logs &&
335
+ management == o.management &&
327
336
  next_attempt == o.next_attempt &&
328
337
  original_order == o.original_order &&
329
338
  original_order_id == o.original_order_id &&
@@ -342,7 +351,7 @@ module UltracartClient
342
351
  # Calculates hash code according to all attributes.
343
352
  # @return [Integer] Hash code
344
353
  def hash
345
- [auto_order_code, auto_order_oid, cancel_after_next_x_orders, cancel_downgrade, cancel_reason, cancel_upgrade, canceled_by_user, canceled_dts, completed, credit_card_attempt, disabled_dts, enabled, failure_reason, items, logs, next_attempt, original_order, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
354
+ [auto_order_code, auto_order_oid, cancel_after_next_x_orders, cancel_downgrade, cancel_reason, cancel_upgrade, canceled_by_user, canceled_dts, completed, credit_card_attempt, disabled_dts, enabled, failure_reason, items, logs, management, next_attempt, original_order, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
346
355
  end
347
356
 
348
357
  # Builds the object from hash
@@ -36,9 +36,6 @@ module UltracartClient
36
36
  # Primary key of AutoOrderItem
37
37
  attr_accessor :auto_order_item_oid
38
38
 
39
- # Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
40
- attr_accessor :first_order_dts
41
-
42
39
  # Frequency of the rebill if not a fixed schedule
43
40
  attr_accessor :frequency
44
41
 
@@ -72,9 +69,6 @@ module UltracartClient
72
69
  # The original quantity purchased
73
70
  attr_accessor :original_quantity
74
71
 
75
- # True if paused. This field is an object instead of a primitive for backwards compatibility.
76
- attr_accessor :paused
77
-
78
72
  # The PayPal Payer ID tied to this item
79
73
  attr_accessor :paypal_payer_id
80
74
 
@@ -124,7 +118,6 @@ module UltracartClient
124
118
  :'arbitrary_unit_cost' => :'arbitrary_unit_cost',
125
119
  :'arbitrary_unit_cost_remaining_orders' => :'arbitrary_unit_cost_remaining_orders',
126
120
  :'auto_order_item_oid' => :'auto_order_item_oid',
127
- :'first_order_dts' => :'first_order_dts',
128
121
  :'frequency' => :'frequency',
129
122
  :'future_schedules' => :'future_schedules',
130
123
  :'last_order_dts' => :'last_order_dts',
@@ -136,7 +129,6 @@ module UltracartClient
136
129
  :'options' => :'options',
137
130
  :'original_item_id' => :'original_item_id',
138
131
  :'original_quantity' => :'original_quantity',
139
- :'paused' => :'paused',
140
132
  :'paypal_payer_id' => :'paypal_payer_id',
141
133
  :'paypal_recurring_payment_profile_id' => :'paypal_recurring_payment_profile_id',
142
134
  :'preshipment_notice_sent' => :'preshipment_notice_sent',
@@ -161,7 +153,6 @@ module UltracartClient
161
153
  :'arbitrary_unit_cost' => :'Float',
162
154
  :'arbitrary_unit_cost_remaining_orders' => :'Integer',
163
155
  :'auto_order_item_oid' => :'Integer',
164
- :'first_order_dts' => :'String',
165
156
  :'frequency' => :'String',
166
157
  :'future_schedules' => :'Array<AutoOrderItemFutureSchedule>',
167
158
  :'last_order_dts' => :'String',
@@ -173,7 +164,6 @@ module UltracartClient
173
164
  :'options' => :'Array<AutoOrderItemOption>',
174
165
  :'original_item_id' => :'String',
175
166
  :'original_quantity' => :'Float',
176
- :'paused' => :'Boolean',
177
167
  :'paypal_payer_id' => :'String',
178
168
  :'paypal_recurring_payment_profile_id' => :'String',
179
169
  :'preshipment_notice_sent' => :'Boolean',
@@ -232,10 +222,6 @@ module UltracartClient
232
222
  self.auto_order_item_oid = attributes[:'auto_order_item_oid']
233
223
  end
234
224
 
235
- if attributes.key?(:'first_order_dts')
236
- self.first_order_dts = attributes[:'first_order_dts']
237
- end
238
-
239
225
  if attributes.key?(:'frequency')
240
226
  self.frequency = attributes[:'frequency']
241
227
  end
@@ -284,10 +270,6 @@ module UltracartClient
284
270
  self.original_quantity = attributes[:'original_quantity']
285
271
  end
286
272
 
287
- if attributes.key?(:'paused')
288
- self.paused = attributes[:'paused']
289
- end
290
-
291
273
  if attributes.key?(:'paypal_payer_id')
292
274
  self.paypal_payer_id = attributes[:'paypal_payer_id']
293
275
  end
@@ -350,7 +332,6 @@ module UltracartClient
350
332
  arbitrary_unit_cost == o.arbitrary_unit_cost &&
351
333
  arbitrary_unit_cost_remaining_orders == o.arbitrary_unit_cost_remaining_orders &&
352
334
  auto_order_item_oid == o.auto_order_item_oid &&
353
- first_order_dts == o.first_order_dts &&
354
335
  frequency == o.frequency &&
355
336
  future_schedules == o.future_schedules &&
356
337
  last_order_dts == o.last_order_dts &&
@@ -362,7 +343,6 @@ module UltracartClient
362
343
  options == o.options &&
363
344
  original_item_id == o.original_item_id &&
364
345
  original_quantity == o.original_quantity &&
365
- paused == o.paused &&
366
346
  paypal_payer_id == o.paypal_payer_id &&
367
347
  paypal_recurring_payment_profile_id == o.paypal_recurring_payment_profile_id &&
368
348
  preshipment_notice_sent == o.preshipment_notice_sent &&
@@ -380,7 +360,7 @@ module UltracartClient
380
360
  # Calculates hash code according to all attributes.
381
361
  # @return [Integer] Hash code
382
362
  def hash
383
- [arbitrary_item_id, arbitrary_percentage_discount, arbitrary_quantity, arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_remaining_orders, auto_order_item_oid, first_order_dts, frequency, future_schedules, last_order_dts, life_time_value, next_preshipment_notice_dts, next_shipment_dts, no_order_after_dts, number_of_rebills, options, original_item_id, original_quantity, paused, paypal_payer_id, paypal_recurring_payment_profile_id, preshipment_notice_sent, rebill_value, remaining_repeat_count, simple_schedule].hash
363
+ [arbitrary_item_id, arbitrary_percentage_discount, arbitrary_quantity, arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_remaining_orders, auto_order_item_oid, frequency, future_schedules, last_order_dts, life_time_value, next_preshipment_notice_dts, next_shipment_dts, no_order_after_dts, number_of_rebills, options, original_item_id, original_quantity, paypal_payer_id, paypal_recurring_payment_profile_id, preshipment_notice_sent, rebill_value, remaining_repeat_count, simple_schedule].hash
384
364
  end
385
365
 
386
366
  # 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
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class AutoOrderManagement
18
+ # URL where the customer can go to update their billing information.
19
+ attr_accessor :update_billing_url
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'update_billing_url' => :'update_billing_url'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'update_billing_url' => :'String'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::AutoOrderManagement` initialize method"
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::AutoOrderManagement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'update_billing_url')
62
+ self.update_billing_url = attributes[:'update_billing_url']
63
+ end
64
+ end
65
+
66
+ # Show invalid properties with the reasons. Usually used together with valid?
67
+ # @return Array for valid properties with the reasons
68
+ def list_invalid_properties
69
+ invalid_properties = Array.new
70
+ invalid_properties
71
+ end
72
+
73
+ # Check to see if the all the properties in the model are valid
74
+ # @return true if the model is valid
75
+ def valid?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ update_billing_url == o.update_billing_url
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [update_billing_url].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ attributes = attributes.transform_keys(&:to_sym)
112
+ self.class.openapi_types.each_pair do |key, type|
113
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
+ self.send("#{key}=", nil)
115
+ elsif type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
+ end
121
+ elsif !attributes[self.class.attribute_map[key]].nil?
122
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
+ end
124
+ end
125
+
126
+ self
127
+ end
128
+
129
+ # Deserializes the data based on type
130
+ # @param string type Data type
131
+ # @param string value Value to be deserialized
132
+ # @return [Object] Deserialized data
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :Time
136
+ Time.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :Boolean
146
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ # models (e.g. Pet) or oneOf
167
+ klass = UltracartClient.const_get(type)
168
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ if value.nil?
191
+ is_nullable = self.class.openapi_nullable.include?(attr)
192
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
193
+ end
194
+
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
+
220
+ end
@@ -19,11 +19,14 @@ module UltracartClient
19
19
 
20
20
  attr_accessor :conversation_arn
21
21
 
22
+ attr_accessor :conversation_webchat_queue_uuid
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'add_conversation_participant_arns' => :'add_conversation_participant_arns',
26
- :'conversation_arn' => :'conversation_arn'
28
+ :'conversation_arn' => :'conversation_arn',
29
+ :'conversation_webchat_queue_uuid' => :'conversation_webchat_queue_uuid'
27
30
  }
28
31
  end
29
32
 
@@ -36,7 +39,8 @@ module UltracartClient
36
39
  def self.openapi_types
37
40
  {
38
41
  :'add_conversation_participant_arns' => :'Array<String>',
39
- :'conversation_arn' => :'String'
42
+ :'conversation_arn' => :'String',
43
+ :'conversation_webchat_queue_uuid' => :'String'
40
44
  }
41
45
  end
42
46
 
@@ -70,6 +74,10 @@ module UltracartClient
70
74
  if attributes.key?(:'conversation_arn')
71
75
  self.conversation_arn = attributes[:'conversation_arn']
72
76
  end
77
+
78
+ if attributes.key?(:'conversation_webchat_queue_uuid')
79
+ self.conversation_webchat_queue_uuid = attributes[:'conversation_webchat_queue_uuid']
80
+ end
73
81
  end
74
82
 
75
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,7 +99,8 @@ module UltracartClient
91
99
  return true if self.equal?(o)
92
100
  self.class == o.class &&
93
101
  add_conversation_participant_arns == o.add_conversation_participant_arns &&
94
- conversation_arn == o.conversation_arn
102
+ conversation_arn == o.conversation_arn &&
103
+ conversation_webchat_queue_uuid == o.conversation_webchat_queue_uuid
95
104
  end
96
105
 
97
106
  # @see the `==` method
@@ -103,7 +112,7 @@ module UltracartClient
103
112
  # Calculates hash code according to all attributes.
104
113
  # @return [Integer] Hash code
105
114
  def hash
106
- [add_conversation_participant_arns, conversation_arn].hash
115
+ [add_conversation_participant_arns, conversation_arn, conversation_webchat_queue_uuid].hash
107
116
  end
108
117
 
109
118
  # Builds the object from hash
@@ -0,0 +1,340 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class ConversationWebsocketMessage
18
+ # Conversation UUID if the websocket message is tied to a specific conversation
19
+ attr_accessor :conversation_uuid
20
+
21
+ attr_accessor :event_conversation_closed
22
+
23
+ attr_accessor :event_new_conversation
24
+
25
+ attr_accessor :event_new_message
26
+
27
+ attr_accessor :event_queue_position
28
+
29
+ # Type of event
30
+ attr_accessor :event_type
31
+
32
+ attr_accessor :event_updated_message
33
+
34
+ attr_accessor :message
35
+
36
+ # Type of message
37
+ attr_accessor :type
38
+
39
+ class EnumAttributeValidator
40
+ attr_reader :datatype
41
+ attr_reader :allowable_values
42
+
43
+ def initialize(datatype, allowable_values)
44
+ @allowable_values = allowable_values.map do |value|
45
+ case datatype.to_s
46
+ when /Integer/i
47
+ value.to_i
48
+ when /Float/i
49
+ value.to_f
50
+ else
51
+ value
52
+ end
53
+ end
54
+ end
55
+
56
+ def valid?(value)
57
+ !value || allowable_values.include?(value)
58
+ end
59
+ end
60
+
61
+ # Attribute mapping from ruby-style variable name to JSON key.
62
+ def self.attribute_map
63
+ {
64
+ :'conversation_uuid' => :'conversation_uuid',
65
+ :'event_conversation_closed' => :'event_conversation_closed',
66
+ :'event_new_conversation' => :'event_new_conversation',
67
+ :'event_new_message' => :'event_new_message',
68
+ :'event_queue_position' => :'event_queue_position',
69
+ :'event_type' => :'event_type',
70
+ :'event_updated_message' => :'event_updated_message',
71
+ :'message' => :'message',
72
+ :'type' => :'type'
73
+ }
74
+ end
75
+
76
+ # Returns all the JSON keys this model knows about
77
+ def self.acceptable_attributes
78
+ attribute_map.values
79
+ end
80
+
81
+ # Attribute type mapping.
82
+ def self.openapi_types
83
+ {
84
+ :'conversation_uuid' => :'String',
85
+ :'event_conversation_closed' => :'Conversation',
86
+ :'event_new_conversation' => :'Conversation',
87
+ :'event_new_message' => :'ConversationMessage',
88
+ :'event_queue_position' => :'Object',
89
+ :'event_type' => :'String',
90
+ :'event_updated_message' => :'ConversationMessage',
91
+ :'message' => :'ConversationMessage',
92
+ :'type' => :'String'
93
+ }
94
+ end
95
+
96
+ # List of attributes with nullable: true
97
+ def self.openapi_nullable
98
+ Set.new([
99
+ ])
100
+ end
101
+
102
+ # Initializes the object
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ def initialize(attributes = {})
105
+ if (!attributes.is_a?(Hash))
106
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationWebsocketMessage` initialize method"
107
+ end
108
+
109
+ # check to see if the attribute exists and convert string to symbol for hash key
110
+ attributes = attributes.each_with_object({}) { |(k, v), h|
111
+ if (!self.class.attribute_map.key?(k.to_sym))
112
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationWebsocketMessage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
113
+ end
114
+ h[k.to_sym] = v
115
+ }
116
+
117
+ if attributes.key?(:'conversation_uuid')
118
+ self.conversation_uuid = attributes[:'conversation_uuid']
119
+ end
120
+
121
+ if attributes.key?(:'event_conversation_closed')
122
+ self.event_conversation_closed = attributes[:'event_conversation_closed']
123
+ end
124
+
125
+ if attributes.key?(:'event_new_conversation')
126
+ self.event_new_conversation = attributes[:'event_new_conversation']
127
+ end
128
+
129
+ if attributes.key?(:'event_new_message')
130
+ self.event_new_message = attributes[:'event_new_message']
131
+ end
132
+
133
+ if attributes.key?(:'event_queue_position')
134
+ self.event_queue_position = attributes[:'event_queue_position']
135
+ end
136
+
137
+ if attributes.key?(:'event_type')
138
+ self.event_type = attributes[:'event_type']
139
+ end
140
+
141
+ if attributes.key?(:'event_updated_message')
142
+ self.event_updated_message = attributes[:'event_updated_message']
143
+ end
144
+
145
+ if attributes.key?(:'message')
146
+ self.message = attributes[:'message']
147
+ end
148
+
149
+ if attributes.key?(:'type')
150
+ self.type = attributes[:'type']
151
+ end
152
+ end
153
+
154
+ # Show invalid properties with the reasons. Usually used together with valid?
155
+ # @return Array for valid properties with the reasons
156
+ def list_invalid_properties
157
+ invalid_properties = Array.new
158
+ invalid_properties
159
+ end
160
+
161
+ # Check to see if the all the properties in the model are valid
162
+ # @return true if the model is valid
163
+ def valid?
164
+ event_type_validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message"])
165
+ return false unless event_type_validator.valid?(@event_type)
166
+ type_validator = EnumAttributeValidator.new('String', ["message", "event", "ping"])
167
+ return false unless type_validator.valid?(@type)
168
+ true
169
+ end
170
+
171
+ # Custom attribute writer method checking allowed values (enum).
172
+ # @param [Object] event_type Object to be assigned
173
+ def event_type=(event_type)
174
+ validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message"])
175
+ unless validator.valid?(event_type)
176
+ fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
177
+ end
178
+ @event_type = event_type
179
+ end
180
+
181
+ # Custom attribute writer method checking allowed values (enum).
182
+ # @param [Object] type Object to be assigned
183
+ def type=(type)
184
+ validator = EnumAttributeValidator.new('String', ["message", "event", "ping"])
185
+ unless validator.valid?(type)
186
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
187
+ end
188
+ @type = type
189
+ end
190
+
191
+ # Checks equality by comparing each attribute.
192
+ # @param [Object] Object to be compared
193
+ def ==(o)
194
+ return true if self.equal?(o)
195
+ self.class == o.class &&
196
+ conversation_uuid == o.conversation_uuid &&
197
+ event_conversation_closed == o.event_conversation_closed &&
198
+ event_new_conversation == o.event_new_conversation &&
199
+ event_new_message == o.event_new_message &&
200
+ event_queue_position == o.event_queue_position &&
201
+ event_type == o.event_type &&
202
+ event_updated_message == o.event_updated_message &&
203
+ message == o.message &&
204
+ type == o.type
205
+ end
206
+
207
+ # @see the `==` method
208
+ # @param [Object] Object to be compared
209
+ def eql?(o)
210
+ self == o
211
+ end
212
+
213
+ # Calculates hash code according to all attributes.
214
+ # @return [Integer] Hash code
215
+ def hash
216
+ [conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_queue_position, event_type, event_updated_message, message, type].hash
217
+ end
218
+
219
+ # Builds the object from hash
220
+ # @param [Hash] attributes Model attributes in the form of hash
221
+ # @return [Object] Returns the model itself
222
+ def self.build_from_hash(attributes)
223
+ new.build_from_hash(attributes)
224
+ end
225
+
226
+ # Builds the object from hash
227
+ # @param [Hash] attributes Model attributes in the form of hash
228
+ # @return [Object] Returns the model itself
229
+ def build_from_hash(attributes)
230
+ return nil unless attributes.is_a?(Hash)
231
+ attributes = attributes.transform_keys(&:to_sym)
232
+ self.class.openapi_types.each_pair do |key, type|
233
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
234
+ self.send("#{key}=", nil)
235
+ elsif type =~ /\AArray<(.*)>/i
236
+ # check to ensure the input is an array given that the attribute
237
+ # is documented as an array but the input is not
238
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
239
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
240
+ end
241
+ elsif !attributes[self.class.attribute_map[key]].nil?
242
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
243
+ end
244
+ end
245
+
246
+ self
247
+ end
248
+
249
+ # Deserializes the data based on type
250
+ # @param string type Data type
251
+ # @param string value Value to be deserialized
252
+ # @return [Object] Deserialized data
253
+ def _deserialize(type, value)
254
+ case type.to_sym
255
+ when :Time
256
+ Time.parse(value)
257
+ when :Date
258
+ Date.parse(value)
259
+ when :String
260
+ value.to_s
261
+ when :Integer
262
+ value.to_i
263
+ when :Float
264
+ value.to_f
265
+ when :Boolean
266
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
267
+ true
268
+ else
269
+ false
270
+ end
271
+ when :Object
272
+ # generic object (usually a Hash), return directly
273
+ value
274
+ when /\AArray<(?<inner_type>.+)>\z/
275
+ inner_type = Regexp.last_match[:inner_type]
276
+ value.map { |v| _deserialize(inner_type, v) }
277
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
278
+ k_type = Regexp.last_match[:k_type]
279
+ v_type = Regexp.last_match[:v_type]
280
+ {}.tap do |hash|
281
+ value.each do |k, v|
282
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
283
+ end
284
+ end
285
+ else # model
286
+ # models (e.g. Pet) or oneOf
287
+ klass = UltracartClient.const_get(type)
288
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
289
+ end
290
+ end
291
+
292
+ # Returns the string representation of the object
293
+ # @return [String] String presentation of the object
294
+ def to_s
295
+ to_hash.to_s
296
+ end
297
+
298
+ # to_body is an alias to to_hash (backward compatibility)
299
+ # @return [Hash] Returns the object in the form of hash
300
+ def to_body
301
+ to_hash
302
+ end
303
+
304
+ # Returns the object in the form of hash
305
+ # @return [Hash] Returns the object in the form of hash
306
+ def to_hash
307
+ hash = {}
308
+ self.class.attribute_map.each_pair do |attr, param|
309
+ value = self.send(attr)
310
+ if value.nil?
311
+ is_nullable = self.class.openapi_nullable.include?(attr)
312
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
313
+ end
314
+
315
+ hash[param] = _to_hash(value)
316
+ end
317
+ hash
318
+ end
319
+
320
+ # Outputs non-array value in the form of hash
321
+ # For object, use to_hash. Otherwise, just return the value
322
+ # @param [Object] value Any valid value
323
+ # @return [Hash] Returns the value in the form of hash
324
+ def _to_hash(value)
325
+ if value.is_a?(Array)
326
+ value.compact.map { |v| _to_hash(v) }
327
+ elsif value.is_a?(Hash)
328
+ {}.tap do |hash|
329
+ value.each { |k, v| hash[k] = _to_hash(v) }
330
+ end
331
+ elsif value.respond_to? :to_hash
332
+ value.to_hash
333
+ else
334
+ value
335
+ end
336
+ end
337
+
338
+ end
339
+
340
+ end
@@ -45,7 +45,7 @@ module UltracartClient
45
45
  # Postcard front container uuid
46
46
  attr_accessor :postcard_front_container_uuid
47
47
 
48
- # URL to screenshot of the front of the postcard
48
+ # URL to screenshot of the back of the postcard
49
49
  attr_accessor :screenshot_back_url
50
50
 
51
51
  # URL to screenshot of the front of the postcard
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.39.rc'
14
+ VERSION = '4.0.40.rc'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -44,6 +44,7 @@ require 'ultracart_api/models/auto_order_item_future_schedule'
44
44
  require 'ultracart_api/models/auto_order_item_option'
45
45
  require 'ultracart_api/models/auto_order_item_simple_schedule'
46
46
  require 'ultracart_api/models/auto_order_log'
47
+ require 'ultracart_api/models/auto_order_management'
47
48
  require 'ultracart_api/models/auto_order_query'
48
49
  require 'ultracart_api/models/auto_order_query_batch'
49
50
  require 'ultracart_api/models/auto_order_response'
@@ -145,6 +146,7 @@ require 'ultracart_api/models/conversation_response'
145
146
  require 'ultracart_api/models/conversation_start_request'
146
147
  require 'ultracart_api/models/conversation_start_response'
147
148
  require 'ultracart_api/models/conversation_summary'
149
+ require 'ultracart_api/models/conversation_websocket_message'
148
150
  require 'ultracart_api/models/conversations_response'
149
151
  require 'ultracart_api/models/countries_response'
150
152
  require 'ultracart_api/models/country'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.39.rc
4
+ version: 4.0.40.rc
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2022-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -90,6 +90,7 @@ files:
90
90
  - docs/AutoOrderItemOption.md
91
91
  - docs/AutoOrderItemSimpleSchedule.md
92
92
  - docs/AutoOrderLog.md
93
+ - docs/AutoOrderManagement.md
93
94
  - docs/AutoOrderQuery.md
94
95
  - docs/AutoOrderQueryBatch.md
95
96
  - docs/AutoOrderResponse.md
@@ -195,6 +196,7 @@ files:
195
196
  - docs/ConversationStartRequest.md
196
197
  - docs/ConversationStartResponse.md
197
198
  - docs/ConversationSummary.md
199
+ - docs/ConversationWebsocketMessage.md
198
200
  - docs/ConversationsResponse.md
199
201
  - docs/CountriesResponse.md
200
202
  - docs/Country.md
@@ -777,6 +779,7 @@ files:
777
779
  - lib/ultracart_api/models/auto_order_item_option.rb
778
780
  - lib/ultracart_api/models/auto_order_item_simple_schedule.rb
779
781
  - lib/ultracart_api/models/auto_order_log.rb
782
+ - lib/ultracart_api/models/auto_order_management.rb
780
783
  - lib/ultracart_api/models/auto_order_query.rb
781
784
  - lib/ultracart_api/models/auto_order_query_batch.rb
782
785
  - lib/ultracart_api/models/auto_order_response.rb
@@ -878,6 +881,7 @@ files:
878
881
  - lib/ultracart_api/models/conversation_start_request.rb
879
882
  - lib/ultracart_api/models/conversation_start_response.rb
880
883
  - lib/ultracart_api/models/conversation_summary.rb
884
+ - lib/ultracart_api/models/conversation_websocket_message.rb
881
885
  - lib/ultracart_api/models/conversations_response.rb
882
886
  - lib/ultracart_api/models/countries_response.rb
883
887
  - lib/ultracart_api/models/country.rb