ultracart_api 3.10.95 → 3.10.96

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: cb0ce63beb97a544421dff5628b9a1bf0b8be1b855e620f5d83ed23b720d993f
4
- data.tar.gz: cefc368bd2121737c39724c0272d051373649a78deb4b78cf61f05c389174c07
3
+ metadata.gz: ae7c3fe7f3ea18bb1f0700632b841064073ea5ef110ac3b4409d287dbc276850
4
+ data.tar.gz: 0cfe6137e68dba017705dff6ea2c0eada91c63e483f1aabc05e537a57c23f3b8
5
5
  SHA512:
6
- metadata.gz: 3ca959b5cdf6593bb3deb495109c04b2938de1556b1d39e7e312384090a42491fb39819f5de328a830a81ddc7630e8a759e28e0de411f08262709ec9e689b4db
7
- data.tar.gz: 4ac69d5f2e67c923722c8ed8fcb94b1b2a3496da0ece88cb14e07a0f5522420bb212bddc64db4916d3851c2ce54d26153516bc7f6a8c468334b1a1137095ba51
6
+ metadata.gz: 62162ccf7a46134481e0bb4cc56b48945f1c0ad877471d29240b3e28d036b7e5db2a3b908b737d3475eec8a087913c3c9810a7d503288f497f8eacec00f7f125
7
+ data.tar.gz: f5210050fce783cf5ef95e8b1d1758179479862411353545d8203d926a1f54e23111bcf1e545e1deeffafb6c62e802884d37e3d06db8ace576094d2ced11af5d
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.95
10
+ - Package version: 3.10.96
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.95.gem
27
+ gem install ./ultracart_api-3.10.96.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.95.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.96.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.95'
35
+ gem 'ultracart_api', '~> 3.10.96'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1281,6 +1281,7 @@ Not every change is committed to every SDK.
1281
1281
 
1282
1282
  | Version | Date | Comments |
1283
1283
  | --: | :-: | --- |
1284
+ | 3.10.96 | 01/14/2023 | add external_id to the point of sale location object |
1284
1285
  | 3.10.95 | 01/13/2023 | channel - ops to manage ship to prefs |
1285
1286
  | 3.10.94 | 01/11/2023 | conversations - adjust search results to return multiple convo summaries |
1286
1287
  | 3.10.93 | 01/10/2023 | add method to query integration log record by oid |
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **city** | **String** | City | [optional]
9
9
  **country** | **String** | Country | [optional]
10
10
  **distribution_center_code** | **String** | The distribution center code where inventory is reduced from for this sale. | [optional]
11
+ **external_id** | **String** | External Id useful for syncing with a remote filesystem, this may be an MD5 hash or whatever suits your needs. | [optional]
11
12
  **merchant_id** | **String** | Merchant ID that owns this location | [optional]
12
13
  **pos_location_oid** | **Integer** | Object identifier of the point of sale location. | [optional]
13
14
  **postal_code** | **String** | Postal code | [optional]
@@ -29,6 +29,9 @@ module UltracartClient
29
29
  # The distribution center code where inventory is reduced from for this sale.
30
30
  attr_accessor :distribution_center_code
31
31
 
32
+ # External Id useful for syncing with a remote filesystem, this may be an MD5 hash or whatever suits your needs.
33
+ attr_accessor :external_id
34
+
32
35
  # Merchant ID that owns this location
33
36
  attr_accessor :merchant_id
34
37
 
@@ -49,6 +52,7 @@ module UltracartClient
49
52
  :'city' => :'city',
50
53
  :'country' => :'country',
51
54
  :'distribution_center_code' => :'distribution_center_code',
55
+ :'external_id' => :'external_id',
52
56
  :'merchant_id' => :'merchant_id',
53
57
  :'pos_location_oid' => :'pos_location_oid',
54
58
  :'postal_code' => :'postal_code',
@@ -64,6 +68,7 @@ module UltracartClient
64
68
  :'city' => :'String',
65
69
  :'country' => :'String',
66
70
  :'distribution_center_code' => :'String',
71
+ :'external_id' => :'String',
67
72
  :'merchant_id' => :'String',
68
73
  :'pos_location_oid' => :'Integer',
69
74
  :'postal_code' => :'String',
@@ -99,6 +104,10 @@ module UltracartClient
99
104
  self.distribution_center_code = attributes[:'distribution_center_code']
100
105
  end
101
106
 
107
+ if attributes.has_key?(:'external_id')
108
+ self.external_id = attributes[:'external_id']
109
+ end
110
+
102
111
  if attributes.has_key?(:'merchant_id')
103
112
  self.merchant_id = attributes[:'merchant_id']
104
113
  end
@@ -120,15 +129,30 @@ module UltracartClient
120
129
  # @return Array for valid properties with the reasons
121
130
  def list_invalid_properties
122
131
  invalid_properties = Array.new
132
+ if !@external_id.nil? && @external_id.to_s.length > 100
133
+ invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
134
+ end
135
+
123
136
  invalid_properties
124
137
  end
125
138
 
126
139
  # Check to see if the all the properties in the model are valid
127
140
  # @return true if the model is valid
128
141
  def valid?
142
+ return false if !@external_id.nil? && @external_id.to_s.length > 100
129
143
  true
130
144
  end
131
145
 
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] external_id Value to be assigned
148
+ def external_id=(external_id)
149
+ if !external_id.nil? && external_id.to_s.length > 100
150
+ fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
151
+ end
152
+
153
+ @external_id = external_id
154
+ end
155
+
132
156
  # Checks equality by comparing each attribute.
133
157
  # @param [Object] Object to be compared
134
158
  def ==(o)
@@ -139,6 +163,7 @@ module UltracartClient
139
163
  city == o.city &&
140
164
  country == o.country &&
141
165
  distribution_center_code == o.distribution_center_code &&
166
+ external_id == o.external_id &&
142
167
  merchant_id == o.merchant_id &&
143
168
  pos_location_oid == o.pos_location_oid &&
144
169
  postal_code == o.postal_code &&
@@ -154,7 +179,7 @@ module UltracartClient
154
179
  # Calculates hash code according to all attributes.
155
180
  # @return [Fixnum] Hash code
156
181
  def hash
157
- [adddress2, address1, city, country, distribution_center_code, merchant_id, pos_location_oid, postal_code, state_province].hash
182
+ [adddress2, address1, city, country, distribution_center_code, external_id, merchant_id, pos_location_oid, postal_code, state_province].hash
158
183
  end
159
184
 
160
185
  # 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.95'
14
+ VERSION = '3.10.96'
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.95
4
+ version: 3.10.96
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