ultracart_api 3.10.5 → 3.10.8
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 +4 -4
- data/README.md +14 -4
- data/docs/CustomerApi.md +105 -0
- data/docs/CustomerEditorValues.md +1 -0
- data/docs/CustomerStoreCredit.md +13 -0
- data/docs/CustomerStoreCreditAddRequest.md +11 -0
- data/docs/CustomerStoreCreditLedgerEntry.md +14 -0
- data/docs/CustomerStoreCreditResponse.md +12 -0
- data/docs/EmailThirdPartyProvider.md +2 -0
- data/docs/EmailThirdPartyTag.md +9 -0
- data/docs/OrderSummary.md +2 -0
- data/lib/ultracart_api/api/customer_api.rb +116 -0
- data/lib/ultracart_api/models/customer_editor_values.rb +11 -1
- data/lib/ultracart_api/models/customer_store_credit.rb +233 -0
- data/lib/ultracart_api/models/customer_store_credit_add_request.rb +215 -0
- data/lib/ultracart_api/models/customer_store_credit_ledger_entry.rb +260 -0
- data/lib/ultracart_api/models/customer_store_credit_response.rb +221 -0
- data/lib/ultracart_api/models/email_third_party_provider.rb +26 -4
- data/lib/ultracart_api/models/email_third_party_tag.rb +195 -0
- data/lib/ultracart_api/models/order_summary.rb +19 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +5 -0
- metadata +12 -2
@@ -0,0 +1,221 @@
|
|
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 CustomerStoreCreditResponse
|
17
|
+
attr_accessor :customer_store_credit
|
18
|
+
|
19
|
+
attr_accessor :error
|
20
|
+
|
21
|
+
attr_accessor :metadata
|
22
|
+
|
23
|
+
# Indicates if API call was successful
|
24
|
+
attr_accessor :success
|
25
|
+
|
26
|
+
attr_accessor :warning
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'customer_store_credit' => :'customer_store_credit',
|
32
|
+
:'error' => :'error',
|
33
|
+
:'metadata' => :'metadata',
|
34
|
+
:'success' => :'success',
|
35
|
+
:'warning' => :'warning'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'customer_store_credit' => :'CustomerStoreCredit',
|
43
|
+
:'error' => :'Error',
|
44
|
+
:'metadata' => :'ResponseMetadata',
|
45
|
+
:'success' => :'BOOLEAN',
|
46
|
+
:'warning' => :'Warning'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
+
|
58
|
+
if attributes.has_key?(:'customer_store_credit')
|
59
|
+
self.customer_store_credit = attributes[:'customer_store_credit']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'error')
|
63
|
+
self.error = attributes[:'error']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'metadata')
|
67
|
+
self.metadata = attributes[:'metadata']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.has_key?(:'success')
|
71
|
+
self.success = attributes[:'success']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.has_key?(:'warning')
|
75
|
+
self.warning = attributes[:'warning']
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
+
# @return Array for valid properties with the reasons
|
81
|
+
def list_invalid_properties
|
82
|
+
invalid_properties = Array.new
|
83
|
+
invalid_properties
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
def valid?
|
89
|
+
true
|
90
|
+
end
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param [Object] Object to be compared
|
94
|
+
def ==(o)
|
95
|
+
return true if self.equal?(o)
|
96
|
+
self.class == o.class &&
|
97
|
+
customer_store_credit == o.customer_store_credit &&
|
98
|
+
error == o.error &&
|
99
|
+
metadata == o.metadata &&
|
100
|
+
success == o.success &&
|
101
|
+
warning == o.warning
|
102
|
+
end
|
103
|
+
|
104
|
+
# @see the `==` method
|
105
|
+
# @param [Object] Object to be compared
|
106
|
+
def eql?(o)
|
107
|
+
self == o
|
108
|
+
end
|
109
|
+
|
110
|
+
# Calculates hash code according to all attributes.
|
111
|
+
# @return [Fixnum] Hash code
|
112
|
+
def hash
|
113
|
+
[customer_store_credit, error, metadata, success, warning].hash
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def build_from_hash(attributes)
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
123
|
+
# check to ensure the input is an array given that the attribute
|
124
|
+
# is documented as an array but the input is not
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
127
|
+
end
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
131
|
+
end
|
132
|
+
|
133
|
+
self
|
134
|
+
end
|
135
|
+
|
136
|
+
# Deserializes the data based on type
|
137
|
+
# @param string type Data type
|
138
|
+
# @param string value Value to be deserialized
|
139
|
+
# @return [Object] Deserialized data
|
140
|
+
def _deserialize(type, value)
|
141
|
+
case type.to_sym
|
142
|
+
when :DateTime
|
143
|
+
DateTime.parse(value)
|
144
|
+
when :Date
|
145
|
+
Date.parse(value)
|
146
|
+
when :String
|
147
|
+
value.to_s
|
148
|
+
when :Integer
|
149
|
+
value.to_i
|
150
|
+
when :Float
|
151
|
+
value.to_f
|
152
|
+
when :BOOLEAN
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
154
|
+
true
|
155
|
+
else
|
156
|
+
false
|
157
|
+
end
|
158
|
+
when :Object
|
159
|
+
# generic object (usually a Hash), return directly
|
160
|
+
value
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
167
|
+
{}.tap do |hash|
|
168
|
+
value.each do |k, v|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
else # model
|
173
|
+
temp_model = UltracartClient.const_get(type).new
|
174
|
+
temp_model.build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
next if value.nil?
|
197
|
+
hash[param] = _to_hash(value)
|
198
|
+
end
|
199
|
+
hash
|
200
|
+
end
|
201
|
+
|
202
|
+
# Outputs non-array value in the form of hash
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
204
|
+
# @param [Object] value Any valid value
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
206
|
+
def _to_hash(value)
|
207
|
+
if value.is_a?(Array)
|
208
|
+
value.compact.map { |v| _to_hash(v) }
|
209
|
+
elsif value.is_a?(Hash)
|
210
|
+
{}.tap do |hash|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
212
|
+
end
|
213
|
+
elsif value.respond_to? :to_hash
|
214
|
+
value.to_hash
|
215
|
+
else
|
216
|
+
value
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
end
|
221
|
+
end
|
@@ -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
|
data/lib/ultracart_api.rb
CHANGED
@@ -219,6 +219,10 @@ require 'ultracart_api/models/customer_response'
|
|
219
219
|
require 'ultracart_api/models/customer_reviewer'
|
220
220
|
require 'ultracart_api/models/customer_shipping'
|
221
221
|
require 'ultracart_api/models/customer_software_entitlement'
|
222
|
+
require 'ultracart_api/models/customer_store_credit'
|
223
|
+
require 'ultracart_api/models/customer_store_credit_add_request'
|
224
|
+
require 'ultracart_api/models/customer_store_credit_ledger_entry'
|
225
|
+
require 'ultracart_api/models/customer_store_credit_response'
|
222
226
|
require 'ultracart_api/models/customer_tag'
|
223
227
|
require 'ultracart_api/models/customer_tax_codes'
|
224
228
|
require 'ultracart_api/models/customers_response'
|
@@ -330,6 +334,7 @@ require 'ultracart_api/models/email_third_party_list'
|
|
330
334
|
require 'ultracart_api/models/email_third_party_list_import_request'
|
331
335
|
require 'ultracart_api/models/email_third_party_provider'
|
332
336
|
require 'ultracart_api/models/email_third_party_providers_response'
|
337
|
+
require 'ultracart_api/models/email_third_party_tag'
|
333
338
|
require 'ultracart_api/models/email_verify_token_request'
|
334
339
|
require 'ultracart_api/models/email_verify_token_response'
|
335
340
|
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.
|
4
|
+
version: 3.10.8
|
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-
|
11
|
+
date: 2022-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -431,6 +431,10 @@ files:
|
|
431
431
|
- docs/CustomerReviewer.md
|
432
432
|
- docs/CustomerShipping.md
|
433
433
|
- docs/CustomerSoftwareEntitlement.md
|
434
|
+
- docs/CustomerStoreCredit.md
|
435
|
+
- docs/CustomerStoreCreditAddRequest.md
|
436
|
+
- docs/CustomerStoreCreditLedgerEntry.md
|
437
|
+
- docs/CustomerStoreCreditResponse.md
|
434
438
|
- docs/CustomerTag.md
|
435
439
|
- docs/CustomerTaxCodes.md
|
436
440
|
- docs/CustomersResponse.md
|
@@ -542,6 +546,7 @@ files:
|
|
542
546
|
- docs/EmailThirdPartyListImportRequest.md
|
543
547
|
- docs/EmailThirdPartyProvider.md
|
544
548
|
- docs/EmailThirdPartyProvidersResponse.md
|
549
|
+
- docs/EmailThirdPartyTag.md
|
545
550
|
- docs/EmailVerifyTokenRequest.md
|
546
551
|
- docs/EmailVerifyTokenResponse.md
|
547
552
|
- docs/EmailVerifyTokenValidateRequest.md
|
@@ -1130,6 +1135,10 @@ files:
|
|
1130
1135
|
- lib/ultracart_api/models/customer_reviewer.rb
|
1131
1136
|
- lib/ultracart_api/models/customer_shipping.rb
|
1132
1137
|
- lib/ultracart_api/models/customer_software_entitlement.rb
|
1138
|
+
- lib/ultracart_api/models/customer_store_credit.rb
|
1139
|
+
- lib/ultracart_api/models/customer_store_credit_add_request.rb
|
1140
|
+
- lib/ultracart_api/models/customer_store_credit_ledger_entry.rb
|
1141
|
+
- lib/ultracart_api/models/customer_store_credit_response.rb
|
1133
1142
|
- lib/ultracart_api/models/customer_tag.rb
|
1134
1143
|
- lib/ultracart_api/models/customer_tax_codes.rb
|
1135
1144
|
- lib/ultracart_api/models/customers_response.rb
|
@@ -1241,6 +1250,7 @@ files:
|
|
1241
1250
|
- lib/ultracart_api/models/email_third_party_list_import_request.rb
|
1242
1251
|
- lib/ultracart_api/models/email_third_party_provider.rb
|
1243
1252
|
- lib/ultracart_api/models/email_third_party_providers_response.rb
|
1253
|
+
- lib/ultracart_api/models/email_third_party_tag.rb
|
1244
1254
|
- lib/ultracart_api/models/email_verify_token_request.rb
|
1245
1255
|
- lib/ultracart_api/models/email_verify_token_response.rb
|
1246
1256
|
- lib/ultracart_api/models/email_verify_token_validate_request.rb
|