ultracart_api 3.10.94 → 3.10.96

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.94'
14
+ VERSION = '3.10.96'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -124,7 +124,11 @@ require 'ultracart_api/models/channel_partner_order_item'
124
124
  require 'ultracart_api/models/channel_partner_order_item_option'
125
125
  require 'ultracart_api/models/channel_partner_order_transaction'
126
126
  require 'ultracart_api/models/channel_partner_order_transaction_detail'
127
+ require 'ultracart_api/models/channel_partner_ship_to_preference'
128
+ require 'ultracart_api/models/channel_partner_ship_to_preference_response'
129
+ require 'ultracart_api/models/channel_partner_ship_to_preferences_response'
127
130
  require 'ultracart_api/models/channel_partner_shipping_estimate'
131
+ require 'ultracart_api/models/channel_partners_response'
128
132
  require 'ultracart_api/models/chargeback_dispute'
129
133
  require 'ultracart_api/models/chargeback_dispute_response'
130
134
  require 'ultracart_api/models/chargeback_disputes_response'
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.94
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-11 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
@@ -331,7 +331,11 @@ files:
331
331
  - docs/ChannelPartnerOrderItemOption.md
332
332
  - docs/ChannelPartnerOrderTransaction.md
333
333
  - docs/ChannelPartnerOrderTransactionDetail.md
334
+ - docs/ChannelPartnerShipToPreference.md
335
+ - docs/ChannelPartnerShipToPreferenceResponse.md
336
+ - docs/ChannelPartnerShipToPreferencesResponse.md
334
337
  - docs/ChannelPartnerShippingEstimate.md
338
+ - docs/ChannelPartnersResponse.md
335
339
  - docs/ChargebackApi.md
336
340
  - docs/ChargebackDispute.md
337
341
  - docs/ChargebackDisputeResponse.md
@@ -1093,7 +1097,11 @@ files:
1093
1097
  - lib/ultracart_api/models/channel_partner_order_item_option.rb
1094
1098
  - lib/ultracart_api/models/channel_partner_order_transaction.rb
1095
1099
  - lib/ultracart_api/models/channel_partner_order_transaction_detail.rb
1100
+ - lib/ultracart_api/models/channel_partner_ship_to_preference.rb
1101
+ - lib/ultracart_api/models/channel_partner_ship_to_preference_response.rb
1102
+ - lib/ultracart_api/models/channel_partner_ship_to_preferences_response.rb
1096
1103
  - lib/ultracart_api/models/channel_partner_shipping_estimate.rb
1104
+ - lib/ultracart_api/models/channel_partners_response.rb
1097
1105
  - lib/ultracart_api/models/chargeback_dispute.rb
1098
1106
  - lib/ultracart_api/models/chargeback_dispute_response.rb
1099
1107
  - lib/ultracart_api/models/chargeback_disputes_response.rb