ultracart_api 3.10.5 → 3.10.6

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: d0465a0741b0abcf6d875b8ec5b3b7e9a3b7163176436532a5e1e286b0bbf11e
4
- data.tar.gz: af0ff4694dd54f2484f71534c44d928869056adf18c25dac587d647b10e8e7c3
3
+ metadata.gz: 2e93cdafb073bce48f2ab15d12706651a29f3bcf1156f0c57a14fcfbd84a1cbe
4
+ data.tar.gz: c19f2bd99399e55818d00b9040c2044dee48475889bdca3925959138050b310f
5
5
  SHA512:
6
- metadata.gz: 1b07073e4c8197c8fdf31c51f4e1a32d167f52113a5a585b4953f6e9a6b4c6f277257f2bb0d92ba3d9d0d09a774cf581fa4e076c1552f2126d0302d4fd2653f0
7
- data.tar.gz: e40c3d1efca76f093e13da5a4e7d099f07d8dd9c88647de46fd7cae0993502ea43e6cecceca8e6c99e7f01d08c64c9989c9152007734a9eee5bb788a759b17b4
6
+ metadata.gz: 12d097c324c2fcb0883351904e4a6724204c517c170a8795a496c8a8f2d2801f009a3d51099283872dd6560f247108ec20c2236e1525149d20605a1f25416fb7
7
+ data.tar.gz: 593bc5f5b08542ba9154000bb0ff6f61ff2912161611ad878f901347ed1de722335f45bcaacaef5b79964324459e85a5b97bd26fb9267c323692159739e68daf
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.5
10
+ - Package version: 3.10.6
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.5.gem
27
+ gem install ./ultracart_api-3.10.6.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.5.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.6.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.5'
35
+ gem 'ultracart_api', '~> 3.10.6'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -753,6 +753,7 @@ Class | Method | HTTP request | Description
753
753
  - [UltracartClient::EmailThirdPartyListImportRequest](docs/EmailThirdPartyListImportRequest.md)
754
754
  - [UltracartClient::EmailThirdPartyProvider](docs/EmailThirdPartyProvider.md)
755
755
  - [UltracartClient::EmailThirdPartyProvidersResponse](docs/EmailThirdPartyProvidersResponse.md)
756
+ - [UltracartClient::EmailThirdPartyTag](docs/EmailThirdPartyTag.md)
756
757
  - [UltracartClient::EmailVerifyTokenRequest](docs/EmailVerifyTokenRequest.md)
757
758
  - [UltracartClient::EmailVerifyTokenResponse](docs/EmailVerifyTokenResponse.md)
758
759
  - [UltracartClient::EmailVerifyTokenValidateRequest](docs/EmailVerifyTokenValidateRequest.md)
@@ -1172,6 +1173,7 @@ Not every change is committed to every SDK.
1172
1173
 
1173
1174
  | Version | Date | Comments |
1174
1175
  | --: | :-: | --- |
1176
+ | 3.10.6 | 05/23/2022 | add internal gift cert to order summary, addl provider info for storefront comm |
1175
1177
  | 3.10.5 | 05/20/2022 | dependabot on java gson version |
1176
1178
  | 3.10.4 | 05/20/2022 | dependabot on java gson |
1177
1179
  | 3.10.3 | 05/20/2022 | OrderApi.generatePackingSkip calls had wrong return type |
@@ -12,5 +12,7 @@ Name | Type | Description | Notes
12
12
  **supports_list_subscribe** | **BOOLEAN** | True if this provider can support list subscribe | [optional]
13
13
  **supports_list_unsubscribe** | **BOOLEAN** | True if this provider can support list unsubscribe | [optional]
14
14
  **supports_remove_tags** | **BOOLEAN** | True if this provider can support remove tags | [optional]
15
+ **tag_count** | **Integer** | tag_count | [optional]
16
+ **tags** | [**Array<EmailThirdPartyTag>**](EmailThirdPartyTag.md) | tags | [optional]
15
17
 
16
18
 
@@ -0,0 +1,9 @@
1
+ # UltracartClient::EmailThirdPartyTag
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | id | [optional]
7
+ **name** | **String** | name | [optional]
8
+
9
+
data/docs/OrderSummary.md CHANGED
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
7
7
  **actual_payment_processing** | [**Currency**](Currency.md) | | [optional]
8
8
  **actual_shipping** | [**Currency**](Currency.md) | | [optional]
9
9
  **arbitrary_shipping_handling_total** | [**Currency**](Currency.md) | | [optional]
10
+ **internal_gift_certificate_amount** | [**Currency**](Currency.md) | | [optional]
11
+ **internal_gift_certificate_refunded** | [**Currency**](Currency.md) | | [optional]
10
12
  **other_refunded** | [**Currency**](Currency.md) | | [optional]
11
13
  **shipping_handling_refunded** | [**Currency**](Currency.md) | | [optional]
12
14
  **shipping_handling_total** | [**Currency**](Currency.md) | | [optional]
@@ -41,6 +41,12 @@ module UltracartClient
41
41
  # True if this provider can support remove tags
42
42
  attr_accessor :supports_remove_tags
43
43
 
44
+ # tag_count
45
+ attr_accessor :tag_count
46
+
47
+ # tags
48
+ attr_accessor :tags
49
+
44
50
  # Attribute mapping from ruby-style variable name to JSON key.
45
51
  def self.attribute_map
46
52
  {
@@ -52,7 +58,9 @@ module UltracartClient
52
58
  :'supports_add_tags' => :'supports_add_tags',
53
59
  :'supports_list_subscribe' => :'supports_list_subscribe',
54
60
  :'supports_list_unsubscribe' => :'supports_list_unsubscribe',
55
- :'supports_remove_tags' => :'supports_remove_tags'
61
+ :'supports_remove_tags' => :'supports_remove_tags',
62
+ :'tag_count' => :'tag_count',
63
+ :'tags' => :'tags'
56
64
  }
57
65
  end
58
66
 
@@ -67,7 +75,9 @@ module UltracartClient
67
75
  :'supports_add_tags' => :'BOOLEAN',
68
76
  :'supports_list_subscribe' => :'BOOLEAN',
69
77
  :'supports_list_unsubscribe' => :'BOOLEAN',
70
- :'supports_remove_tags' => :'BOOLEAN'
78
+ :'supports_remove_tags' => :'BOOLEAN',
79
+ :'tag_count' => :'Integer',
80
+ :'tags' => :'Array<EmailThirdPartyTag>'
71
81
  }
72
82
  end
73
83
 
@@ -116,6 +126,16 @@ module UltracartClient
116
126
  if attributes.has_key?(:'supports_remove_tags')
117
127
  self.supports_remove_tags = attributes[:'supports_remove_tags']
118
128
  end
129
+
130
+ if attributes.has_key?(:'tag_count')
131
+ self.tag_count = attributes[:'tag_count']
132
+ end
133
+
134
+ if attributes.has_key?(:'tags')
135
+ if (value = attributes[:'tags']).is_a?(Array)
136
+ self.tags = value
137
+ end
138
+ end
119
139
  end
120
140
 
121
141
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -144,7 +164,9 @@ module UltracartClient
144
164
  supports_add_tags == o.supports_add_tags &&
145
165
  supports_list_subscribe == o.supports_list_subscribe &&
146
166
  supports_list_unsubscribe == o.supports_list_unsubscribe &&
147
- supports_remove_tags == o.supports_remove_tags
167
+ supports_remove_tags == o.supports_remove_tags &&
168
+ tag_count == o.tag_count &&
169
+ tags == o.tags
148
170
  end
149
171
 
150
172
  # @see the `==` method
@@ -156,7 +178,7 @@ module UltracartClient
156
178
  # Calculates hash code according to all attributes.
157
179
  # @return [Fixnum] Hash code
158
180
  def hash
159
- [connect_url, list_count, lists, logo_url, name, supports_add_tags, supports_list_subscribe, supports_list_unsubscribe, supports_remove_tags].hash
181
+ [connect_url, list_count, lists, logo_url, name, supports_add_tags, supports_list_subscribe, supports_list_unsubscribe, supports_remove_tags, tag_count, tags].hash
160
182
  end
161
183
 
162
184
  # Builds the object from hash
@@ -0,0 +1,195 @@
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 EmailThirdPartyTag
17
+ # id
18
+ attr_accessor :id
19
+
20
+ # name
21
+ attr_accessor :name
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'id' => :'id',
27
+ :'name' => :'name'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'id' => :'String',
35
+ :'name' => :'String'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
+
47
+ if attributes.has_key?(:'id')
48
+ self.id = attributes[:'id']
49
+ end
50
+
51
+ if attributes.has_key?(:'name')
52
+ self.name = attributes[:'name']
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(o)
72
+ return true if self.equal?(o)
73
+ self.class == o.class &&
74
+ id == o.id &&
75
+ name == o.name
76
+ end
77
+
78
+ # @see the `==` method
79
+ # @param [Object] Object to be compared
80
+ def eql?(o)
81
+ self == o
82
+ end
83
+
84
+ # Calculates hash code according to all attributes.
85
+ # @return [Fixnum] Hash code
86
+ def hash
87
+ [id, name].hash
88
+ end
89
+
90
+ # Builds the object from hash
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ # @return [Object] Returns the model itself
93
+ def build_from_hash(attributes)
94
+ return nil unless attributes.is_a?(Hash)
95
+ self.class.swagger_types.each_pair do |key, type|
96
+ if type =~ /\AArray<(.*)>/i
97
+ # check to ensure the input is an array given that the attribute
98
+ # is documented as an array but the input is not
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
101
+ end
102
+ elsif !attributes[self.class.attribute_map[key]].nil?
103
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ temp_model = UltracartClient.const_get(type).new
148
+ temp_model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ # Returns the string representation of the object
153
+ # @return [String] String presentation of the object
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_hash (backward compatibility)
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_body
161
+ to_hash
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ next if value.nil?
171
+ hash[param] = _to_hash(value)
172
+ end
173
+ hash
174
+ end
175
+
176
+ # Outputs non-array value in the form of hash
177
+ # For object, use to_hash. Otherwise, just return the value
178
+ # @param [Object] value Any valid value
179
+ # @return [Hash] Returns the value in the form of hash
180
+ def _to_hash(value)
181
+ if value.is_a?(Array)
182
+ value.compact.map { |v| _to_hash(v) }
183
+ elsif value.is_a?(Hash)
184
+ {}.tap do |hash|
185
+ value.each { |k, v| hash[k] = _to_hash(v) }
186
+ end
187
+ elsif value.respond_to? :to_hash
188
+ value.to_hash
189
+ else
190
+ value
191
+ end
192
+ end
193
+
194
+ end
195
+ end
@@ -22,6 +22,10 @@ module UltracartClient
22
22
 
23
23
  attr_accessor :arbitrary_shipping_handling_total
24
24
 
25
+ attr_accessor :internal_gift_certificate_amount
26
+
27
+ attr_accessor :internal_gift_certificate_refunded
28
+
25
29
  attr_accessor :other_refunded
26
30
 
27
31
  attr_accessor :shipping_handling_refunded
@@ -57,6 +61,8 @@ module UltracartClient
57
61
  :'actual_payment_processing' => :'actual_payment_processing',
58
62
  :'actual_shipping' => :'actual_shipping',
59
63
  :'arbitrary_shipping_handling_total' => :'arbitrary_shipping_handling_total',
64
+ :'internal_gift_certificate_amount' => :'internal_gift_certificate_amount',
65
+ :'internal_gift_certificate_refunded' => :'internal_gift_certificate_refunded',
60
66
  :'other_refunded' => :'other_refunded',
61
67
  :'shipping_handling_refunded' => :'shipping_handling_refunded',
62
68
  :'shipping_handling_total' => :'shipping_handling_total',
@@ -81,6 +87,8 @@ module UltracartClient
81
87
  :'actual_payment_processing' => :'Currency',
82
88
  :'actual_shipping' => :'Currency',
83
89
  :'arbitrary_shipping_handling_total' => :'Currency',
90
+ :'internal_gift_certificate_amount' => :'Currency',
91
+ :'internal_gift_certificate_refunded' => :'Currency',
84
92
  :'other_refunded' => :'Currency',
85
93
  :'shipping_handling_refunded' => :'Currency',
86
94
  :'shipping_handling_total' => :'Currency',
@@ -122,6 +130,14 @@ module UltracartClient
122
130
  self.arbitrary_shipping_handling_total = attributes[:'arbitrary_shipping_handling_total']
123
131
  end
124
132
 
133
+ if attributes.has_key?(:'internal_gift_certificate_amount')
134
+ self.internal_gift_certificate_amount = attributes[:'internal_gift_certificate_amount']
135
+ end
136
+
137
+ if attributes.has_key?(:'internal_gift_certificate_refunded')
138
+ self.internal_gift_certificate_refunded = attributes[:'internal_gift_certificate_refunded']
139
+ end
140
+
125
141
  if attributes.has_key?(:'other_refunded')
126
142
  self.other_refunded = attributes[:'other_refunded']
127
143
  end
@@ -201,6 +217,8 @@ module UltracartClient
201
217
  actual_payment_processing == o.actual_payment_processing &&
202
218
  actual_shipping == o.actual_shipping &&
203
219
  arbitrary_shipping_handling_total == o.arbitrary_shipping_handling_total &&
220
+ internal_gift_certificate_amount == o.internal_gift_certificate_amount &&
221
+ internal_gift_certificate_refunded == o.internal_gift_certificate_refunded &&
204
222
  other_refunded == o.other_refunded &&
205
223
  shipping_handling_refunded == o.shipping_handling_refunded &&
206
224
  shipping_handling_total == o.shipping_handling_total &&
@@ -226,7 +244,7 @@ module UltracartClient
226
244
  # Calculates hash code according to all attributes.
227
245
  # @return [Fixnum] Hash code
228
246
  def hash
229
- [actual_fulfillment, actual_payment_processing, actual_shipping, arbitrary_shipping_handling_total, other_refunded, shipping_handling_refunded, shipping_handling_total, shipping_handling_total_discount, subtotal, subtotal_discount, subtotal_discount_refunded, subtotal_refunded, tax, tax_refunded, taxable_subtotal, taxable_subtotal_discount, total, total_refunded].hash
247
+ [actual_fulfillment, actual_payment_processing, actual_shipping, arbitrary_shipping_handling_total, internal_gift_certificate_amount, internal_gift_certificate_refunded, other_refunded, shipping_handling_refunded, shipping_handling_total, shipping_handling_total_discount, subtotal, subtotal_discount, subtotal_discount_refunded, subtotal_refunded, tax, tax_refunded, taxable_subtotal, taxable_subtotal_discount, total, total_refunded].hash
230
248
  end
231
249
 
232
250
  # 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.5'
14
+ VERSION = '3.10.6'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -330,6 +330,7 @@ require 'ultracart_api/models/email_third_party_list'
330
330
  require 'ultracart_api/models/email_third_party_list_import_request'
331
331
  require 'ultracart_api/models/email_third_party_provider'
332
332
  require 'ultracart_api/models/email_third_party_providers_response'
333
+ require 'ultracart_api/models/email_third_party_tag'
333
334
  require 'ultracart_api/models/email_verify_token_request'
334
335
  require 'ultracart_api/models/email_verify_token_response'
335
336
  require 'ultracart_api/models/email_verify_token_validate_request'
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.5
4
+ version: 3.10.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-20 00:00:00.000000000 Z
11
+ date: 2022-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -542,6 +542,7 @@ files:
542
542
  - docs/EmailThirdPartyListImportRequest.md
543
543
  - docs/EmailThirdPartyProvider.md
544
544
  - docs/EmailThirdPartyProvidersResponse.md
545
+ - docs/EmailThirdPartyTag.md
545
546
  - docs/EmailVerifyTokenRequest.md
546
547
  - docs/EmailVerifyTokenResponse.md
547
548
  - docs/EmailVerifyTokenValidateRequest.md
@@ -1241,6 +1242,7 @@ files:
1241
1242
  - lib/ultracart_api/models/email_third_party_list_import_request.rb
1242
1243
  - lib/ultracart_api/models/email_third_party_provider.rb
1243
1244
  - lib/ultracart_api/models/email_third_party_providers_response.rb
1245
+ - lib/ultracart_api/models/email_third_party_tag.rb
1244
1246
  - lib/ultracart_api/models/email_verify_token_request.rb
1245
1247
  - lib/ultracart_api/models/email_verify_token_response.rb
1246
1248
  - lib/ultracart_api/models/email_verify_token_validate_request.rb