ultracart_api 4.0.114.rc → 4.0.116.rc
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35d4555afa704b016783a953bb059a498265026f368db51f6eeffe051fdeae19
|
4
|
+
data.tar.gz: 88004aadcb2723d387927b90466d572bb13f401ff8bc3cc761e4d8742d8f99a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62a60c04dcf2f81b3e430477bd966011d172d8f4d061fef509780cfde38f7f62035ef52f79c3826857eb793a54c35326dfd5241bf43ff38c50af9a2c80e77551
|
7
|
+
data.tar.gz: 6995a0c539ba0af06986e1398aa4c6f811901a0ffb836604ec13d918425261db22ded508a2d9b9f1152dee4ed69e64f7e00004c1a2df4b38497e255cb81149e0
|
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.
|
10
|
+
- Package version: 4.0.116.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.
|
27
|
+
gem install ./ultracart_api-4.0.116.rc.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.116.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.
|
36
|
+
gem 'ultracart_api', '~> 4.0.116.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1290,6 +1290,8 @@ Not every change is committed to every SDK.
|
|
1290
1290
|
|
1291
1291
|
| Version | Date | Comments |
|
1292
1292
|
| --: | :-: | --- |
|
1293
|
+
| 4.0.116-RC | 01/18/2023 | channel partner ship to pref desc field |
|
1294
|
+
| 4.0.115-RC | 01/17/2023 | changed convo webchat constant |
|
1293
1295
|
| 4.0.114-RC | 01/17/2023 | support for checkout item properties |
|
1294
1296
|
| 4.0.113-RC | 01/14/2023 | add external_id to the point of sale location object |
|
1295
1297
|
| 4.0.112-RC | 01/13/2023 | channel - ops to manage ship to prefs |
|
@@ -7,6 +7,7 @@
|
|
7
7
|
| **additional_kit_component_item_ids** | **Array<String>** | Additional item ids to add as kit components to the order with a zero price. | [optional] |
|
8
8
|
| **channel_partner_oid** | **Integer** | The channel partner object identifier this preference is associated with | [optional] |
|
9
9
|
| **channel_partner_ship_to_preference_oid** | **Integer** | Object identifier for the ship to preference | [optional] |
|
10
|
+
| **description** | **String** | A description that is meaningful to the merchant. | [optional] |
|
10
11
|
| **merchant_id** | **String** | The merchant id that owns the channel partner | [optional] |
|
11
12
|
| **return_policy** | **String** | Alternate return policy to print on the packing slip. | [optional] |
|
12
13
|
| **ship_to_edi_code** | **String** | The ship to EDI code that the preferences are for | [optional] |
|
@@ -20,6 +21,7 @@ instance = UltracartClient::ChannelPartnerShipToPreference.new(
|
|
20
21
|
additional_kit_component_item_ids: null,
|
21
22
|
channel_partner_oid: null,
|
22
23
|
channel_partner_ship_to_preference_oid: null,
|
24
|
+
description: null,
|
23
25
|
merchant_id: null,
|
24
26
|
return_policy: null,
|
25
27
|
ship_to_edi_code: null
|
@@ -24,6 +24,9 @@ module UltracartClient
|
|
24
24
|
# Object identifier for the ship to preference
|
25
25
|
attr_accessor :channel_partner_ship_to_preference_oid
|
26
26
|
|
27
|
+
# A description that is meaningful to the merchant.
|
28
|
+
attr_accessor :description
|
29
|
+
|
27
30
|
# The merchant id that owns the channel partner
|
28
31
|
attr_accessor :merchant_id
|
29
32
|
|
@@ -39,6 +42,7 @@ module UltracartClient
|
|
39
42
|
:'additional_kit_component_item_ids' => :'additional_kit_component_item_ids',
|
40
43
|
:'channel_partner_oid' => :'channel_partner_oid',
|
41
44
|
:'channel_partner_ship_to_preference_oid' => :'channel_partner_ship_to_preference_oid',
|
45
|
+
:'description' => :'description',
|
42
46
|
:'merchant_id' => :'merchant_id',
|
43
47
|
:'return_policy' => :'return_policy',
|
44
48
|
:'ship_to_edi_code' => :'ship_to_edi_code'
|
@@ -56,6 +60,7 @@ module UltracartClient
|
|
56
60
|
:'additional_kit_component_item_ids' => :'Array<String>',
|
57
61
|
:'channel_partner_oid' => :'Integer',
|
58
62
|
:'channel_partner_ship_to_preference_oid' => :'Integer',
|
63
|
+
:'description' => :'String',
|
59
64
|
:'merchant_id' => :'String',
|
60
65
|
:'return_policy' => :'String',
|
61
66
|
:'ship_to_edi_code' => :'String'
|
@@ -97,6 +102,10 @@ module UltracartClient
|
|
97
102
|
self.channel_partner_ship_to_preference_oid = attributes[:'channel_partner_ship_to_preference_oid']
|
98
103
|
end
|
99
104
|
|
105
|
+
if attributes.key?(:'description')
|
106
|
+
self.description = attributes[:'description']
|
107
|
+
end
|
108
|
+
|
100
109
|
if attributes.key?(:'merchant_id')
|
101
110
|
self.merchant_id = attributes[:'merchant_id']
|
102
111
|
end
|
@@ -114,15 +123,30 @@ module UltracartClient
|
|
114
123
|
# @return Array for valid properties with the reasons
|
115
124
|
def list_invalid_properties
|
116
125
|
invalid_properties = Array.new
|
126
|
+
if !@description.nil? && @description.to_s.length > 100
|
127
|
+
invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 100.')
|
128
|
+
end
|
129
|
+
|
117
130
|
invalid_properties
|
118
131
|
end
|
119
132
|
|
120
133
|
# Check to see if the all the properties in the model are valid
|
121
134
|
# @return true if the model is valid
|
122
135
|
def valid?
|
136
|
+
return false if !@description.nil? && @description.to_s.length > 100
|
123
137
|
true
|
124
138
|
end
|
125
139
|
|
140
|
+
# Custom attribute writer method with validation
|
141
|
+
# @param [Object] description Value to be assigned
|
142
|
+
def description=(description)
|
143
|
+
if !description.nil? && description.to_s.length > 100
|
144
|
+
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 100.'
|
145
|
+
end
|
146
|
+
|
147
|
+
@description = description
|
148
|
+
end
|
149
|
+
|
126
150
|
# Checks equality by comparing each attribute.
|
127
151
|
# @param [Object] Object to be compared
|
128
152
|
def ==(o)
|
@@ -131,6 +155,7 @@ module UltracartClient
|
|
131
155
|
additional_kit_component_item_ids == o.additional_kit_component_item_ids &&
|
132
156
|
channel_partner_oid == o.channel_partner_oid &&
|
133
157
|
channel_partner_ship_to_preference_oid == o.channel_partner_ship_to_preference_oid &&
|
158
|
+
description == o.description &&
|
134
159
|
merchant_id == o.merchant_id &&
|
135
160
|
return_policy == o.return_policy &&
|
136
161
|
ship_to_edi_code == o.ship_to_edi_code
|
@@ -145,7 +170,7 @@ module UltracartClient
|
|
145
170
|
# Calculates hash code according to all attributes.
|
146
171
|
# @return [Integer] Hash code
|
147
172
|
def hash
|
148
|
-
[additional_kit_component_item_ids, channel_partner_oid, channel_partner_ship_to_preference_oid, merchant_id, return_policy, ship_to_edi_code].hash
|
173
|
+
[additional_kit_component_item_ids, channel_partner_oid, channel_partner_ship_to_preference_oid, description, merchant_id, return_policy, ship_to_edi_code].hash
|
149
174
|
end
|
150
175
|
|
151
176
|
# Builds the object from hash
|
@@ -257,7 +257,7 @@ module UltracartClient
|
|
257
257
|
# Check to see if the all the properties in the model are valid
|
258
258
|
# @return true if the model is valid
|
259
259
|
def valid?
|
260
|
-
event_type_validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb", "participant update", "participant join", "participant
|
260
|
+
event_type_validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb", "participant update", "participant join", "participant left", "read message", "typing", "add coupon", "add item", "webchat context"])
|
261
261
|
return false unless event_type_validator.valid?(@event_type)
|
262
262
|
type_validator = EnumAttributeValidator.new('String', ["message", "event", "ping", "check queue position"])
|
263
263
|
return false unless type_validator.valid?(@type)
|
@@ -267,7 +267,7 @@ module UltracartClient
|
|
267
267
|
# Custom attribute writer method checking allowed values (enum).
|
268
268
|
# @param [Object] event_type Object to be assigned
|
269
269
|
def event_type=(event_type)
|
270
|
-
validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb", "participant update", "participant join", "participant
|
270
|
+
validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb", "participant update", "participant join", "participant left", "read message", "typing", "add coupon", "add item", "webchat context"])
|
271
271
|
unless validator.valid?(event_type)
|
272
272
|
fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
|
273
273
|
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: 4.0.
|
4
|
+
version: 4.0.116.rc
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|