ultracart_api 3.6.18 → 3.6.19

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: 22ca14da1051cd678bc8895c806a3a0bc55694ac49fd821b90e16a7989eb2808
4
- data.tar.gz: 4ba379ede2972d6b1b697f6a631a67e6733d7cea587c1fb1793f6d9fa2b1a1f8
3
+ metadata.gz: e780308fdcb7b1900c2c5b51dc4d4562daee3e43110446d9f2558d7a0f9b5fae
4
+ data.tar.gz: 1d7f977ff69f64aeb769218b5ad1db3d9afb1770c5b53a62561496bcfe9cbb6d
5
5
  SHA512:
6
- metadata.gz: 4dd252ecd67c6b21b9949b7a67d6e61a6abe8cbaf05ca2e2dce72bdb6b9dd22f76476f2613ff292acec162388d2a85b67106836577f5e23f41f6d200261830f8
7
- data.tar.gz: 4966a69b624e43a7dc33850a04c1b83cb3e60958697eacdb87a0ca2a188c129763d8689962dd0ff97a9a54d2d016cdd39d7b9b0dbc81434ab29f79556e792d77
6
+ metadata.gz: 19f157ea633b68093336b4f391c92309cd42669c8dc569b9be627e678fd70d8872869851fce24c048c8493e08c20b579393b193ba7aaa5d8e398a8332aa45346
7
+ data.tar.gz: a90a546f713519ebee3848ab17a23ea308eb6a3e7a7cf8ce029108a657549e6a9270bd1e11a64194967bf663edca2ccb19e75492479d972b585966dac00803a2
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.6.18
10
+ - Package version: 3.6.19
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.6.18.gem
27
+ gem install ./ultracart_api-3.6.19.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.6.18.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.6.19.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.6.18'
35
+ gem 'ultracart_api', '~> 3.6.19'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -772,6 +772,7 @@ Class | Method | HTTP request | Description
772
772
  - [UltracartClient::ItemEbayMarketPlaceAnalysis](docs/ItemEbayMarketPlaceAnalysis.md)
773
773
  - [UltracartClient::ItemEmailNotifications](docs/ItemEmailNotifications.md)
774
774
  - [UltracartClient::ItemEnrollment123](docs/ItemEnrollment123.md)
775
+ - [UltracartClient::ItemFulfillmentAddon](docs/ItemFulfillmentAddon.md)
775
776
  - [UltracartClient::ItemGiftCertificate](docs/ItemGiftCertificate.md)
776
777
  - [UltracartClient::ItemGoogleProductSearch](docs/ItemGoogleProductSearch.md)
777
778
  - [UltracartClient::ItemIdentifiers](docs/ItemIdentifiers.md)
@@ -1118,6 +1119,7 @@ Not every change is committed to every SDK.
1118
1119
 
1119
1120
  | Version | Date | Comments |
1120
1121
  | --: | :-: | --- |
1122
+ | 3.6.19 | 10/05/2021 | item fulfillment add ons |
1121
1123
  | 3.6.18 | 09/30/2021 | terms if auto order flag added |
1122
1124
  | 3.6.16 | 09/30/2021 | item exclude from sitemap field |
1123
1125
  | 3.6.15 | 09/28/2021 | added refund_claim_id to insurance object |
data/docs/Item.md CHANGED
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
18
18
  **ebay** | [**ItemEbay**](ItemEbay.md) | | [optional]
19
19
  **email_notifications** | [**ItemEmailNotifications**](ItemEmailNotifications.md) | | [optional]
20
20
  **enrollment123** | [**ItemEnrollment123**](ItemEnrollment123.md) | | [optional]
21
+ **fulfillment_addons** | [**Array<ItemFulfillmentAddon>**](ItemFulfillmentAddon.md) | Fulfillment Add-ons | [optional]
21
22
  **gift_certificate** | [**ItemGiftCertificate**](ItemGiftCertificate.md) | | [optional]
22
23
  **google_product_search** | [**ItemGoogleProductSearch**](ItemGoogleProductSearch.md) | | [optional]
23
24
  **identifiers** | [**ItemIdentifiers**](ItemIdentifiers.md) | | [optional]
@@ -0,0 +1,11 @@
1
+ # UltracartClient::ItemFulfillmentAddon
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **add_item_id** | **String** | Add Item Id | [optional]
7
+ **add_item_oid** | **Integer** | Add Item object identifier | [optional]
8
+ **once_per_order** | **BOOLEAN** | Quantity | [optional]
9
+ **quantity** | **Integer** | Quantity | [optional]
10
+
11
+
@@ -48,6 +48,9 @@ module UltracartClient
48
48
 
49
49
  attr_accessor :enrollment123
50
50
 
51
+ # Fulfillment Add-ons
52
+ attr_accessor :fulfillment_addons
53
+
51
54
  attr_accessor :gift_certificate
52
55
 
53
56
  attr_accessor :google_product_search
@@ -151,6 +154,7 @@ module UltracartClient
151
154
  :'ebay' => :'ebay',
152
155
  :'email_notifications' => :'email_notifications',
153
156
  :'enrollment123' => :'enrollment123',
157
+ :'fulfillment_addons' => :'fulfillment_addons',
154
158
  :'gift_certificate' => :'gift_certificate',
155
159
  :'google_product_search' => :'google_product_search',
156
160
  :'identifiers' => :'identifiers',
@@ -207,6 +211,7 @@ module UltracartClient
207
211
  :'ebay' => :'ItemEbay',
208
212
  :'email_notifications' => :'ItemEmailNotifications',
209
213
  :'enrollment123' => :'ItemEnrollment123',
214
+ :'fulfillment_addons' => :'Array<ItemFulfillmentAddon>',
210
215
  :'gift_certificate' => :'ItemGiftCertificate',
211
216
  :'google_product_search' => :'ItemGoogleProductSearch',
212
217
  :'identifiers' => :'ItemIdentifiers',
@@ -315,6 +320,12 @@ module UltracartClient
315
320
  self.enrollment123 = attributes[:'enrollment123']
316
321
  end
317
322
 
323
+ if attributes.has_key?(:'fulfillment_addons')
324
+ if (value = attributes[:'fulfillment_addons']).is_a?(Array)
325
+ self.fulfillment_addons = value
326
+ end
327
+ end
328
+
318
329
  if attributes.has_key?(:'gift_certificate')
319
330
  self.gift_certificate = attributes[:'gift_certificate']
320
331
  end
@@ -544,6 +555,7 @@ module UltracartClient
544
555
  ebay == o.ebay &&
545
556
  email_notifications == o.email_notifications &&
546
557
  enrollment123 == o.enrollment123 &&
558
+ fulfillment_addons == o.fulfillment_addons &&
547
559
  gift_certificate == o.gift_certificate &&
548
560
  google_product_search == o.google_product_search &&
549
561
  identifiers == o.identifiers &&
@@ -590,7 +602,7 @@ module UltracartClient
590
602
  # Calculates hash code according to all attributes.
591
603
  # @return [Fixnum] Hash code
592
604
  def hash
593
- [accounting, amember, auto_order, ccbill, channel_partner_item_mappings, chargeback, checkout, content, creation_dts, description, description_translated_text_instance_oid, digital_delivery, ebay, email_notifications, enrollment123, gift_certificate, google_product_search, identifiers, inactive, instant_payment_notifications, internal, kit, kit_component_only, kit_definition, last_modified_dts, merchant_id, merchant_item_id, merchant_item_oid, options, parent_category_id, parent_category_path, payment_processing, physical, pricing, properties, realtime_pricing, recommend_replenishment_days, related, reporting, restriction, revguard, reviews, salesforce, shipping, tags, tax, third_party_email_marketing, variant_items, variations, wishlist_member].hash
605
+ [accounting, amember, auto_order, ccbill, channel_partner_item_mappings, chargeback, checkout, content, creation_dts, description, description_translated_text_instance_oid, digital_delivery, ebay, email_notifications, enrollment123, fulfillment_addons, gift_certificate, google_product_search, identifiers, inactive, instant_payment_notifications, internal, kit, kit_component_only, kit_definition, last_modified_dts, merchant_id, merchant_item_id, merchant_item_oid, options, parent_category_id, parent_category_path, payment_processing, physical, pricing, properties, realtime_pricing, recommend_replenishment_days, related, reporting, restriction, revguard, reviews, salesforce, shipping, tags, tax, third_party_email_marketing, variant_items, variations, wishlist_member].hash
594
606
  end
595
607
 
596
608
  # Builds the object from hash
@@ -0,0 +1,215 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class ItemFulfillmentAddon
17
+ # Add Item Id
18
+ attr_accessor :add_item_id
19
+
20
+ # Add Item object identifier
21
+ attr_accessor :add_item_oid
22
+
23
+ # Quantity
24
+ attr_accessor :once_per_order
25
+
26
+ # Quantity
27
+ attr_accessor :quantity
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'add_item_id' => :'add_item_id',
33
+ :'add_item_oid' => :'add_item_oid',
34
+ :'once_per_order' => :'once_per_order',
35
+ :'quantity' => :'quantity'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'add_item_id' => :'String',
43
+ :'add_item_oid' => :'Integer',
44
+ :'once_per_order' => :'BOOLEAN',
45
+ :'quantity' => :'Integer'
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
+
57
+ if attributes.has_key?(:'add_item_id')
58
+ self.add_item_id = attributes[:'add_item_id']
59
+ end
60
+
61
+ if attributes.has_key?(:'add_item_oid')
62
+ self.add_item_oid = attributes[:'add_item_oid']
63
+ end
64
+
65
+ if attributes.has_key?(:'once_per_order')
66
+ self.once_per_order = attributes[:'once_per_order']
67
+ end
68
+
69
+ if attributes.has_key?(:'quantity')
70
+ self.quantity = attributes[:'quantity']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ true
85
+ end
86
+
87
+ # Checks equality by comparing each attribute.
88
+ # @param [Object] Object to be compared
89
+ def ==(o)
90
+ return true if self.equal?(o)
91
+ self.class == o.class &&
92
+ add_item_id == o.add_item_id &&
93
+ add_item_oid == o.add_item_oid &&
94
+ once_per_order == o.once_per_order &&
95
+ quantity == o.quantity
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Fixnum] Hash code
106
+ def hash
107
+ [add_item_id, add_item_oid, once_per_order, quantity].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.swagger_types.each_pair do |key, type|
116
+ if type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :DateTime
137
+ DateTime.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :BOOLEAN
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ temp_model = UltracartClient.const_get(type).new
168
+ temp_model.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ next if value.nil?
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.6.18'
14
+ VERSION = '3.6.19'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -369,6 +369,7 @@ require 'ultracart_api/models/item_ebay_market_listing'
369
369
  require 'ultracart_api/models/item_ebay_market_place_analysis'
370
370
  require 'ultracart_api/models/item_email_notifications'
371
371
  require 'ultracart_api/models/item_enrollment123'
372
+ require 'ultracart_api/models/item_fulfillment_addon'
372
373
  require 'ultracart_api/models/item_gift_certificate'
373
374
  require 'ultracart_api/models/item_google_product_search'
374
375
  require 'ultracart_api/models/item_identifiers'
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.6.18
4
+ version: 3.6.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-30 00:00:00.000000000 Z
11
+ date: 2021-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -563,6 +563,7 @@ files:
563
563
  - docs/ItemEbayMarketPlaceAnalysis.md
564
564
  - docs/ItemEmailNotifications.md
565
565
  - docs/ItemEnrollment123.md
566
+ - docs/ItemFulfillmentAddon.md
566
567
  - docs/ItemGiftCertificate.md
567
568
  - docs/ItemGoogleProductSearch.md
568
569
  - docs/ItemIdentifiers.md
@@ -1226,6 +1227,7 @@ files:
1226
1227
  - lib/ultracart_api/models/item_ebay_market_place_analysis.rb
1227
1228
  - lib/ultracart_api/models/item_email_notifications.rb
1228
1229
  - lib/ultracart_api/models/item_enrollment123.rb
1230
+ - lib/ultracart_api/models/item_fulfillment_addon.rb
1229
1231
  - lib/ultracart_api/models/item_gift_certificate.rb
1230
1232
  - lib/ultracart_api/models/item_google_product_search.rb
1231
1233
  - lib/ultracart_api/models/item_identifiers.rb