ultracart_api 3.10.97 → 3.10.99

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: 756bdb0708f6e3d175b1dd997705c933b17fdb839affc51e3785d32c1b28341a
4
- data.tar.gz: 2a7a3c5843e258814fd6dd390f79abb6f8554fa01d70c1620afd306a8c37741f
3
+ metadata.gz: 84960c935e61ebe479c37c3665d92f587093cb71f455528ea25592ef09efc724
4
+ data.tar.gz: ee330e2ce0de3bf185269de451b96be139a23e8c753986df9b33acc3d3b9539b
5
5
  SHA512:
6
- metadata.gz: 3d6b1d340a81d9332a7b0ef08a6261c29aae1c01eaeb884e7c231f3a24229ba2bf2f62ab5870fe2a0412db4787c2fcc8589aaea029be456c19f36114ba68ecb8
7
- data.tar.gz: c261b4d26c3d8b29488446b551edcf00031e4113c9451b45c02b3c89c4f2b939f6e9c8d78e4388cbca3b44457d25e41298676a1467c2bcf38762c503fbaccc55
6
+ metadata.gz: c889c2509fd7eaace4dabc7084f6bf1a997097959f916f64e191418d8d21f197d8a0bae4df13260c0a268e183ff6d9b557a6e985184849716bdbe86603fbec10
7
+ data.tar.gz: 4f5985f0e0e8d0f4bbcc5c4dca2095c6aa4c6013b5be99be84eb2577cb295c823d3f2adf9c25e74aa42878a8e3249af22e4e371998b205747e2a6dff5da86f3f
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.97
10
+ - Package version: 3.10.99
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.97.gem
27
+ gem install ./ultracart_api-3.10.99.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.97.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.99.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.97'
35
+ gem 'ultracart_api', '~> 3.10.99'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1282,6 +1282,8 @@ Not every change is committed to every SDK.
1282
1282
 
1283
1283
  | Version | Date | Comments |
1284
1284
  | --: | :-: | --- |
1285
+ | 3.10.99 | 01/18/2023 | channel partner ship to pref desc field |
1286
+ | 3.10.98 | 01/17/2023 | changed convo webchat constant |
1285
1287
  | 3.10.97 | 01/17/2023 | support for checkout item properties |
1286
1288
  | 3.10.96 | 01/14/2023 | add external_id to the point of sale location object |
1287
1289
  | 3.10.95 | 01/13/2023 | channel - ops to manage ship to prefs |
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **additional_kit_component_item_ids** | **Array<String>** | Additional item ids to add as kit components to the order with a zero price. | [optional]
7
7
  **channel_partner_oid** | **Integer** | The channel partner object identifier this preference is associated with | [optional]
8
8
  **channel_partner_ship_to_preference_oid** | **Integer** | Object identifier for the ship to preference | [optional]
9
+ **description** | **String** | A description that is meaningful to the merchant. | [optional]
9
10
  **merchant_id** | **String** | The merchant id that owns the channel partner | [optional]
10
11
  **return_policy** | **String** | Alternate return policy to print on the packing slip. | [optional]
11
12
  **ship_to_edi_code** | **String** | The ship to EDI code that the preferences are for | [optional]
@@ -23,6 +23,9 @@ module UltracartClient
23
23
  # Object identifier for the ship to preference
24
24
  attr_accessor :channel_partner_ship_to_preference_oid
25
25
 
26
+ # A description that is meaningful to the merchant.
27
+ attr_accessor :description
28
+
26
29
  # The merchant id that owns the channel partner
27
30
  attr_accessor :merchant_id
28
31
 
@@ -38,6 +41,7 @@ module UltracartClient
38
41
  :'additional_kit_component_item_ids' => :'additional_kit_component_item_ids',
39
42
  :'channel_partner_oid' => :'channel_partner_oid',
40
43
  :'channel_partner_ship_to_preference_oid' => :'channel_partner_ship_to_preference_oid',
44
+ :'description' => :'description',
41
45
  :'merchant_id' => :'merchant_id',
42
46
  :'return_policy' => :'return_policy',
43
47
  :'ship_to_edi_code' => :'ship_to_edi_code'
@@ -50,6 +54,7 @@ module UltracartClient
50
54
  :'additional_kit_component_item_ids' => :'Array<String>',
51
55
  :'channel_partner_oid' => :'Integer',
52
56
  :'channel_partner_ship_to_preference_oid' => :'Integer',
57
+ :'description' => :'String',
53
58
  :'merchant_id' => :'String',
54
59
  :'return_policy' => :'String',
55
60
  :'ship_to_edi_code' => :'String'
@@ -78,6 +83,10 @@ module UltracartClient
78
83
  self.channel_partner_ship_to_preference_oid = attributes[:'channel_partner_ship_to_preference_oid']
79
84
  end
80
85
 
86
+ if attributes.has_key?(:'description')
87
+ self.description = attributes[:'description']
88
+ end
89
+
81
90
  if attributes.has_key?(:'merchant_id')
82
91
  self.merchant_id = attributes[:'merchant_id']
83
92
  end
@@ -95,15 +104,30 @@ module UltracartClient
95
104
  # @return Array for valid properties with the reasons
96
105
  def list_invalid_properties
97
106
  invalid_properties = Array.new
107
+ if !@description.nil? && @description.to_s.length > 100
108
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 100.')
109
+ end
110
+
98
111
  invalid_properties
99
112
  end
100
113
 
101
114
  # Check to see if the all the properties in the model are valid
102
115
  # @return true if the model is valid
103
116
  def valid?
117
+ return false if !@description.nil? && @description.to_s.length > 100
104
118
  true
105
119
  end
106
120
 
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] description Value to be assigned
123
+ def description=(description)
124
+ if !description.nil? && description.to_s.length > 100
125
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 100.'
126
+ end
127
+
128
+ @description = description
129
+ end
130
+
107
131
  # Checks equality by comparing each attribute.
108
132
  # @param [Object] Object to be compared
109
133
  def ==(o)
@@ -112,6 +136,7 @@ module UltracartClient
112
136
  additional_kit_component_item_ids == o.additional_kit_component_item_ids &&
113
137
  channel_partner_oid == o.channel_partner_oid &&
114
138
  channel_partner_ship_to_preference_oid == o.channel_partner_ship_to_preference_oid &&
139
+ description == o.description &&
115
140
  merchant_id == o.merchant_id &&
116
141
  return_policy == o.return_policy &&
117
142
  ship_to_edi_code == o.ship_to_edi_code
@@ -126,7 +151,7 @@ module UltracartClient
126
151
  # Calculates hash code according to all attributes.
127
152
  # @return [Fixnum] Hash code
128
153
  def hash
129
- [additional_kit_component_item_ids, channel_partner_oid, channel_partner_ship_to_preference_oid, merchant_id, return_policy, ship_to_edi_code].hash
154
+ [additional_kit_component_item_ids, channel_partner_oid, channel_partner_ship_to_preference_oid, description, merchant_id, return_policy, ship_to_edi_code].hash
130
155
  end
131
156
 
132
157
  # Builds the object from hash
@@ -238,7 +238,7 @@ module UltracartClient
238
238
  # Check to see if the all the properties in the model are valid
239
239
  # @return true if the model is valid
240
240
  def valid?
241
- 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 leave', 'read message', 'typing', 'add coupon', 'add item', 'webchat context'])
241
+ 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'])
242
242
  return false unless event_type_validator.valid?(@event_type)
243
243
  type_validator = EnumAttributeValidator.new('String', ['message', 'event', 'ping', 'check queue position'])
244
244
  return false unless type_validator.valid?(@type)
@@ -248,7 +248,7 @@ module UltracartClient
248
248
  # Custom attribute writer method checking allowed values (enum).
249
249
  # @param [Object] event_type Object to be assigned
250
250
  def event_type=(event_type)
251
- 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 leave', 'read message', 'typing', 'add coupon', 'add item', 'webchat context'])
251
+ 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'])
252
252
  unless validator.valid?(event_type)
253
253
  fail ArgumentError, 'invalid value for "event_type", must be one of #{validator.allowable_values}.'
254
254
  end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.97'
14
+ VERSION = '3.10.99'
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.10.97
4
+ version: 3.10.99
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-17 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus