ultracart_api 4.0.112.rc → 4.0.113.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: 6f038e5716ab2e24df8c85440e2f5fbdecb61a8636e6215ce297cd440f526e92
4
- data.tar.gz: 101cfafc4ffd74232b24dc787d4efd0603124d1b3aeac5789353ed6d9fd9bd19
3
+ metadata.gz: a19fa245228d3c364321c7fc8ff7250fad8d3a2aaad0f8f6f7821ca7ffda1323
4
+ data.tar.gz: 74de1d52be9290b80f25acfcb71430e4a2a93b1dde9673debacafb42b4b9ee21
5
5
  SHA512:
6
- metadata.gz: 5d6b708a6711e0d5f343d2797d6815fcba52e106411d9f62a26b5625cfbcf063d1589eb9a14fbc09d56cc1b6625dfaa7386b1bf1f6b9a0f38b1b7d0a4ef58d68
7
- data.tar.gz: fc3d2339f4bcdd8cfc269c0e09ea4c43ede45eced6a17ef5753eff15f2df63a9bc2c8c8b81ccce225c86f0bc48a342ceaee2168f2563b0a856ef498d41fc8e92
6
+ metadata.gz: db154eceb56527ffaa9db79e67a09f4475ec0d122426064d7c1463c38192af1862df0ede340d102364abe91a8b18553bbc3f2e6d1d166ac4dc388feb3b1ba481
7
+ data.tar.gz: e8ff3561aa58bbd0ca09fe69e0cc010de6b03eafe6d2c208463e943fd905c57a2655f338d8a47846efb07ec5ca5b1e40cb0aacc158d63c9f1b034b18e27fb70e
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.112.rc
10
+ - Package version: 4.0.113.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.112.rc.gem
27
+ gem install ./ultracart_api-4.0.113.rc.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.112.rc.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.113.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.112.rc'
36
+ gem 'ultracart_api', '~> 4.0.113.rc'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1289,6 +1289,7 @@ Not every change is committed to every SDK.
1289
1289
 
1290
1290
  | Version | Date | Comments |
1291
1291
  | --: | :-: | --- |
1292
+ | 4.0.113-RC | 01/14/2023 | add external_id to the point of sale location object |
1292
1293
  | 4.0.112-RC | 01/13/2023 | channel - ops to manage ship to prefs |
1293
1294
  | 4.0.111-RC | 01/11/2023 | conversations - adjust search results to return multiple convo summaries |
1294
1295
  | 4.0.110-RC | 01/10/2023 | add method to query integration log record by oid |
@@ -9,6 +9,7 @@
9
9
  | **city** | **String** | City | [optional] |
10
10
  | **country** | **String** | Country | [optional] |
11
11
  | **distribution_center_code** | **String** | The distribution center code where inventory is reduced from for this sale. | [optional] |
12
+ | **external_id** | **String** | External Id useful for syncing with a remote filesystem, this may be an MD5 hash or whatever suits your needs. | [optional] |
12
13
  | **merchant_id** | **String** | Merchant ID that owns this location | [optional] |
13
14
  | **pos_location_oid** | **Integer** | Object identifier of the point of sale location. | [optional] |
14
15
  | **postal_code** | **String** | Postal code | [optional] |
@@ -25,6 +26,7 @@ instance = UltracartClient::PointOfSaleLocation.new(
25
26
  city: null,
26
27
  country: null,
27
28
  distribution_center_code: null,
29
+ external_id: null,
28
30
  merchant_id: null,
29
31
  pos_location_oid: null,
30
32
  postal_code: null,
@@ -30,6 +30,9 @@ module UltracartClient
30
30
  # The distribution center code where inventory is reduced from for this sale.
31
31
  attr_accessor :distribution_center_code
32
32
 
33
+ # External Id useful for syncing with a remote filesystem, this may be an MD5 hash or whatever suits your needs.
34
+ attr_accessor :external_id
35
+
33
36
  # Merchant ID that owns this location
34
37
  attr_accessor :merchant_id
35
38
 
@@ -50,6 +53,7 @@ module UltracartClient
50
53
  :'city' => :'city',
51
54
  :'country' => :'country',
52
55
  :'distribution_center_code' => :'distribution_center_code',
56
+ :'external_id' => :'external_id',
53
57
  :'merchant_id' => :'merchant_id',
54
58
  :'pos_location_oid' => :'pos_location_oid',
55
59
  :'postal_code' => :'postal_code',
@@ -70,6 +74,7 @@ module UltracartClient
70
74
  :'city' => :'String',
71
75
  :'country' => :'String',
72
76
  :'distribution_center_code' => :'String',
77
+ :'external_id' => :'String',
73
78
  :'merchant_id' => :'String',
74
79
  :'pos_location_oid' => :'Integer',
75
80
  :'postal_code' => :'String',
@@ -118,6 +123,10 @@ module UltracartClient
118
123
  self.distribution_center_code = attributes[:'distribution_center_code']
119
124
  end
120
125
 
126
+ if attributes.key?(:'external_id')
127
+ self.external_id = attributes[:'external_id']
128
+ end
129
+
121
130
  if attributes.key?(:'merchant_id')
122
131
  self.merchant_id = attributes[:'merchant_id']
123
132
  end
@@ -139,15 +148,30 @@ module UltracartClient
139
148
  # @return Array for valid properties with the reasons
140
149
  def list_invalid_properties
141
150
  invalid_properties = Array.new
151
+ if !@external_id.nil? && @external_id.to_s.length > 100
152
+ invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
153
+ end
154
+
142
155
  invalid_properties
143
156
  end
144
157
 
145
158
  # Check to see if the all the properties in the model are valid
146
159
  # @return true if the model is valid
147
160
  def valid?
161
+ return false if !@external_id.nil? && @external_id.to_s.length > 100
148
162
  true
149
163
  end
150
164
 
165
+ # Custom attribute writer method with validation
166
+ # @param [Object] external_id Value to be assigned
167
+ def external_id=(external_id)
168
+ if !external_id.nil? && external_id.to_s.length > 100
169
+ fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
170
+ end
171
+
172
+ @external_id = external_id
173
+ end
174
+
151
175
  # Checks equality by comparing each attribute.
152
176
  # @param [Object] Object to be compared
153
177
  def ==(o)
@@ -158,6 +182,7 @@ module UltracartClient
158
182
  city == o.city &&
159
183
  country == o.country &&
160
184
  distribution_center_code == o.distribution_center_code &&
185
+ external_id == o.external_id &&
161
186
  merchant_id == o.merchant_id &&
162
187
  pos_location_oid == o.pos_location_oid &&
163
188
  postal_code == o.postal_code &&
@@ -173,7 +198,7 @@ module UltracartClient
173
198
  # Calculates hash code according to all attributes.
174
199
  # @return [Integer] Hash code
175
200
  def hash
176
- [adddress2, address1, city, country, distribution_center_code, merchant_id, pos_location_oid, postal_code, state_province].hash
201
+ [adddress2, address1, city, country, distribution_center_code, external_id, merchant_id, pos_location_oid, postal_code, state_province].hash
177
202
  end
178
203
 
179
204
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.112.rc'
14
+ VERSION = '4.0.113.rc'
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: 4.0.112.rc
4
+ version: 4.0.113.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-13 00:00:00.000000000 Z
11
+ date: 2023-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus