ultracart_api 3.6.36 → 3.8.0
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 +23 -4
- data/docs/AutoOrder.md +1 -0
- data/docs/AutoOrderLog.md +9 -0
- data/docs/CustomerApi.md +3 -4
- data/docs/ExperimentVariation.md +1 -0
- data/docs/GiftCertificate.md +19 -0
- data/docs/GiftCertificateApi.md +433 -0
- data/docs/GiftCertificateCreateRequest.md +11 -0
- data/docs/GiftCertificateLedgerEntry.md +13 -0
- data/docs/GiftCertificateQuery.md +16 -0
- data/docs/GiftCertificateResponse.md +12 -0
- data/docs/GiftCertificatesResponse.md +12 -0
- data/docs/OrderPaymentInsurance.md +1 -0
- data/docs/ScreenRecordingAdPlatform.md +1 -0
- data/lib/ultracart_api/api/customer_api.rb +5 -6
- data/lib/ultracart_api/api/gift_certificate_api.rb +502 -0
- data/lib/ultracart_api/models/auto_order.rb +13 -1
- data/lib/ultracart_api/models/auto_order_log.rb +195 -0
- data/lib/ultracart_api/models/experiment_variation.rb +11 -1
- data/lib/ultracart_api/models/gift_certificate.rb +297 -0
- data/lib/ultracart_api/models/gift_certificate_create_request.rb +215 -0
- data/lib/ultracart_api/models/gift_certificate_ledger_entry.rb +235 -0
- data/lib/ultracart_api/models/gift_certificate_query.rb +265 -0
- data/lib/ultracart_api/models/gift_certificate_response.rb +221 -0
- data/lib/ultracart_api/models/gift_certificates_response.rb +223 -0
- data/lib/ultracart_api/models/order_payment_insurance.rb +11 -1
- data/lib/ultracart_api/models/screen_recording_ad_platform.rb +14 -4
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +8 -0
- metadata +18 -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 GiftCertificateResponse
|
17
|
+
attr_accessor :error
|
18
|
+
|
19
|
+
attr_accessor :gift_certificate
|
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
|
+
:'error' => :'error',
|
32
|
+
:'gift_certificate' => :'gift_certificate',
|
33
|
+
:'metadata' => :'metadata',
|
34
|
+
:'success' => :'success',
|
35
|
+
:'warning' => :'warning'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'error' => :'Error',
|
43
|
+
:'gift_certificate' => :'GiftCertificate',
|
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?(:'error')
|
59
|
+
self.error = attributes[:'error']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'gift_certificate')
|
63
|
+
self.gift_certificate = attributes[:'gift_certificate']
|
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
|
+
error == o.error &&
|
98
|
+
gift_certificate == o.gift_certificate &&
|
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
|
+
[error, gift_certificate, 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
|
@@ -0,0 +1,223 @@
|
|
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 GiftCertificatesResponse
|
17
|
+
attr_accessor :error
|
18
|
+
|
19
|
+
attr_accessor :gift_certificates
|
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
|
+
:'error' => :'error',
|
32
|
+
:'gift_certificates' => :'gift_certificates',
|
33
|
+
:'metadata' => :'metadata',
|
34
|
+
:'success' => :'success',
|
35
|
+
:'warning' => :'warning'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'error' => :'Error',
|
43
|
+
:'gift_certificates' => :'Array<GiftCertificate>',
|
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?(:'error')
|
59
|
+
self.error = attributes[:'error']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'gift_certificates')
|
63
|
+
if (value = attributes[:'gift_certificates']).is_a?(Array)
|
64
|
+
self.gift_certificates = value
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'metadata')
|
69
|
+
self.metadata = attributes[:'metadata']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'success')
|
73
|
+
self.success = attributes[:'success']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'warning')
|
77
|
+
self.warning = attributes[:'warning']
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
invalid_properties
|
86
|
+
end
|
87
|
+
|
88
|
+
# Check to see if the all the properties in the model are valid
|
89
|
+
# @return true if the model is valid
|
90
|
+
def valid?
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Checks equality by comparing each attribute.
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def ==(o)
|
97
|
+
return true if self.equal?(o)
|
98
|
+
self.class == o.class &&
|
99
|
+
error == o.error &&
|
100
|
+
gift_certificates == o.gift_certificates &&
|
101
|
+
metadata == o.metadata &&
|
102
|
+
success == o.success &&
|
103
|
+
warning == o.warning
|
104
|
+
end
|
105
|
+
|
106
|
+
# @see the `==` method
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def eql?(o)
|
109
|
+
self == o
|
110
|
+
end
|
111
|
+
|
112
|
+
# Calculates hash code according to all attributes.
|
113
|
+
# @return [Fixnum] Hash code
|
114
|
+
def hash
|
115
|
+
[error, gift_certificates, metadata, success, warning].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Builds the object from hash
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
# @return [Object] Returns the model itself
|
121
|
+
def build_from_hash(attributes)
|
122
|
+
return nil unless attributes.is_a?(Hash)
|
123
|
+
self.class.swagger_types.each_pair do |key, type|
|
124
|
+
if type =~ /\AArray<(.*)>/i
|
125
|
+
# check to ensure the input is an array given that the attribute
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
129
|
+
end
|
130
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
132
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
133
|
+
end
|
134
|
+
|
135
|
+
self
|
136
|
+
end
|
137
|
+
|
138
|
+
# Deserializes the data based on type
|
139
|
+
# @param string type Data type
|
140
|
+
# @param string value Value to be deserialized
|
141
|
+
# @return [Object] Deserialized data
|
142
|
+
def _deserialize(type, value)
|
143
|
+
case type.to_sym
|
144
|
+
when :DateTime
|
145
|
+
DateTime.parse(value)
|
146
|
+
when :Date
|
147
|
+
Date.parse(value)
|
148
|
+
when :String
|
149
|
+
value.to_s
|
150
|
+
when :Integer
|
151
|
+
value.to_i
|
152
|
+
when :Float
|
153
|
+
value.to_f
|
154
|
+
when :BOOLEAN
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
+
true
|
157
|
+
else
|
158
|
+
false
|
159
|
+
end
|
160
|
+
when :Object
|
161
|
+
# generic object (usually a Hash), return directly
|
162
|
+
value
|
163
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
+
inner_type = Regexp.last_match[:inner_type]
|
165
|
+
value.map { |v| _deserialize(inner_type, v) }
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
+
k_type = Regexp.last_match[:k_type]
|
168
|
+
v_type = Regexp.last_match[:v_type]
|
169
|
+
{}.tap do |hash|
|
170
|
+
value.each do |k, v|
|
171
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
else # model
|
175
|
+
temp_model = UltracartClient.const_get(type).new
|
176
|
+
temp_model.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
next if value.nil?
|
199
|
+
hash[param] = _to_hash(value)
|
200
|
+
end
|
201
|
+
hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Outputs non-array value in the form of hash
|
205
|
+
# For object, use to_hash. Otherwise, just return the value
|
206
|
+
# @param [Object] value Any valid value
|
207
|
+
# @return [Hash] Returns the value in the form of hash
|
208
|
+
def _to_hash(value)
|
209
|
+
if value.is_a?(Array)
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
211
|
+
elsif value.is_a?(Hash)
|
212
|
+
{}.tap do |hash|
|
213
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
214
|
+
end
|
215
|
+
elsif value.respond_to? :to_hash
|
216
|
+
value.to_hash
|
217
|
+
else
|
218
|
+
value
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
end
|
223
|
+
end
|
@@ -20,6 +20,9 @@ module UltracartClient
|
|
20
20
|
# claim id
|
21
21
|
attr_accessor :claim_id
|
22
22
|
|
23
|
+
# insurance type
|
24
|
+
attr_accessor :insurance_type
|
25
|
+
|
23
26
|
# refund claim id
|
24
27
|
attr_accessor :refund_claim_id
|
25
28
|
|
@@ -28,6 +31,7 @@ module UltracartClient
|
|
28
31
|
{
|
29
32
|
:'application_id' => :'application_id',
|
30
33
|
:'claim_id' => :'claim_id',
|
34
|
+
:'insurance_type' => :'insurance_type',
|
31
35
|
:'refund_claim_id' => :'refund_claim_id'
|
32
36
|
}
|
33
37
|
end
|
@@ -37,6 +41,7 @@ module UltracartClient
|
|
37
41
|
{
|
38
42
|
:'application_id' => :'String',
|
39
43
|
:'claim_id' => :'String',
|
44
|
+
:'insurance_type' => :'String',
|
40
45
|
:'refund_claim_id' => :'String'
|
41
46
|
}
|
42
47
|
end
|
@@ -57,6 +62,10 @@ module UltracartClient
|
|
57
62
|
self.claim_id = attributes[:'claim_id']
|
58
63
|
end
|
59
64
|
|
65
|
+
if attributes.has_key?(:'insurance_type')
|
66
|
+
self.insurance_type = attributes[:'insurance_type']
|
67
|
+
end
|
68
|
+
|
60
69
|
if attributes.has_key?(:'refund_claim_id')
|
61
70
|
self.refund_claim_id = attributes[:'refund_claim_id']
|
62
71
|
end
|
@@ -82,6 +91,7 @@ module UltracartClient
|
|
82
91
|
self.class == o.class &&
|
83
92
|
application_id == o.application_id &&
|
84
93
|
claim_id == o.claim_id &&
|
94
|
+
insurance_type == o.insurance_type &&
|
85
95
|
refund_claim_id == o.refund_claim_id
|
86
96
|
end
|
87
97
|
|
@@ -94,7 +104,7 @@ module UltracartClient
|
|
94
104
|
# Calculates hash code according to all attributes.
|
95
105
|
# @return [Fixnum] Hash code
|
96
106
|
def hash
|
97
|
-
[application_id, claim_id, refund_claim_id].hash
|
107
|
+
[application_id, claim_id, insurance_type, refund_claim_id].hash
|
98
108
|
end
|
99
109
|
|
100
110
|
# Builds the object from hash
|
@@ -32,6 +32,9 @@ module UltracartClient
|
|
32
32
|
# Bing Click Id (Parameter
|
33
33
|
attr_accessor :msclkid
|
34
34
|
|
35
|
+
# TikTok Click Id (Parameter
|
36
|
+
attr_accessor :ttclid
|
37
|
+
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
39
|
def self.attribute_map
|
37
40
|
{
|
@@ -40,7 +43,8 @@ module UltracartClient
|
|
40
43
|
:'fbp' => :'fbp',
|
41
44
|
:'gacid' => :'gacid',
|
42
45
|
:'glcid' => :'glcid',
|
43
|
-
:'msclkid' => :'msclkid'
|
46
|
+
:'msclkid' => :'msclkid',
|
47
|
+
:'ttclid' => :'ttclid'
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
@@ -52,7 +56,8 @@ module UltracartClient
|
|
52
56
|
:'fbp' => :'String',
|
53
57
|
:'gacid' => :'String',
|
54
58
|
:'glcid' => :'String',
|
55
|
-
:'msclkid' => :'String'
|
59
|
+
:'msclkid' => :'String',
|
60
|
+
:'ttclid' => :'String'
|
56
61
|
}
|
57
62
|
end
|
58
63
|
|
@@ -87,6 +92,10 @@ module UltracartClient
|
|
87
92
|
if attributes.has_key?(:'msclkid')
|
88
93
|
self.msclkid = attributes[:'msclkid']
|
89
94
|
end
|
95
|
+
|
96
|
+
if attributes.has_key?(:'ttclid')
|
97
|
+
self.ttclid = attributes[:'ttclid']
|
98
|
+
end
|
90
99
|
end
|
91
100
|
|
92
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -112,7 +121,8 @@ module UltracartClient
|
|
112
121
|
fbp == o.fbp &&
|
113
122
|
gacid == o.gacid &&
|
114
123
|
glcid == o.glcid &&
|
115
|
-
msclkid == o.msclkid
|
124
|
+
msclkid == o.msclkid &&
|
125
|
+
ttclid == o.ttclid
|
116
126
|
end
|
117
127
|
|
118
128
|
# @see the `==` method
|
@@ -124,7 +134,7 @@ module UltracartClient
|
|
124
134
|
# Calculates hash code according to all attributes.
|
125
135
|
# @return [Fixnum] Hash code
|
126
136
|
def hash
|
127
|
-
[fbc, fbclid, fbp, gacid, glcid, msclkid].hash
|
137
|
+
[fbc, fbclid, fbp, gacid, glcid, msclkid, ttclid].hash
|
128
138
|
end
|
129
139
|
|
130
140
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -41,6 +41,7 @@ require 'ultracart_api/models/auto_order_item'
|
|
41
41
|
require 'ultracart_api/models/auto_order_item_future_schedule'
|
42
42
|
require 'ultracart_api/models/auto_order_item_option'
|
43
43
|
require 'ultracart_api/models/auto_order_item_simple_schedule'
|
44
|
+
require 'ultracart_api/models/auto_order_log'
|
44
45
|
require 'ultracart_api/models/auto_order_query'
|
45
46
|
require 'ultracart_api/models/auto_order_query_batch'
|
46
47
|
require 'ultracart_api/models/auto_order_response'
|
@@ -329,6 +330,12 @@ require 'ultracart_api/models/fulfillment_shipment'
|
|
329
330
|
require 'ultracart_api/models/geo_point'
|
330
331
|
require 'ultracart_api/models/geocode_request'
|
331
332
|
require 'ultracart_api/models/geocode_response'
|
333
|
+
require 'ultracart_api/models/gift_certificate'
|
334
|
+
require 'ultracart_api/models/gift_certificate_create_request'
|
335
|
+
require 'ultracart_api/models/gift_certificate_ledger_entry'
|
336
|
+
require 'ultracart_api/models/gift_certificate_query'
|
337
|
+
require 'ultracart_api/models/gift_certificate_response'
|
338
|
+
require 'ultracart_api/models/gift_certificates_response'
|
332
339
|
require 'ultracart_api/models/group'
|
333
340
|
require 'ultracart_api/models/group_response'
|
334
341
|
require 'ultracart_api/models/group_user_membership'
|
@@ -666,6 +673,7 @@ require 'ultracart_api/api/configuration_api'
|
|
666
673
|
require 'ultracart_api/api/coupon_api'
|
667
674
|
require 'ultracart_api/api/customer_api'
|
668
675
|
require 'ultracart_api/api/fulfillment_api'
|
676
|
+
require 'ultracart_api/api/gift_certificate_api'
|
669
677
|
require 'ultracart_api/api/integration_log_api'
|
670
678
|
require 'ultracart_api/api/item_api'
|
671
679
|
require 'ultracart_api/api/oauth_api'
|
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.
|
4
|
+
version: 3.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -227,6 +227,7 @@ files:
|
|
227
227
|
- docs/AutoOrderItemFutureSchedule.md
|
228
228
|
- docs/AutoOrderItemOption.md
|
229
229
|
- docs/AutoOrderItemSimpleSchedule.md
|
230
|
+
- docs/AutoOrderLog.md
|
230
231
|
- docs/AutoOrderQuery.md
|
231
232
|
- docs/AutoOrderQueryBatch.md
|
232
233
|
- docs/AutoOrderResponse.md
|
@@ -521,6 +522,13 @@ files:
|
|
521
522
|
- docs/GeoPoint.md
|
522
523
|
- docs/GeocodeRequest.md
|
523
524
|
- docs/GeocodeResponse.md
|
525
|
+
- docs/GiftCertificate.md
|
526
|
+
- docs/GiftCertificateApi.md
|
527
|
+
- docs/GiftCertificateCreateRequest.md
|
528
|
+
- docs/GiftCertificateLedgerEntry.md
|
529
|
+
- docs/GiftCertificateQuery.md
|
530
|
+
- docs/GiftCertificateResponse.md
|
531
|
+
- docs/GiftCertificatesResponse.md
|
524
532
|
- docs/Group.md
|
525
533
|
- docs/GroupResponse.md
|
526
534
|
- docs/GroupUserMembership.md
|
@@ -867,6 +875,7 @@ files:
|
|
867
875
|
- lib/ultracart_api/api/coupon_api.rb
|
868
876
|
- lib/ultracart_api/api/customer_api.rb
|
869
877
|
- lib/ultracart_api/api/fulfillment_api.rb
|
878
|
+
- lib/ultracart_api/api/gift_certificate_api.rb
|
870
879
|
- lib/ultracart_api/api/integration_log_api.rb
|
871
880
|
- lib/ultracart_api/api/item_api.rb
|
872
881
|
- lib/ultracart_api/api/oauth_api.rb
|
@@ -903,6 +912,7 @@ files:
|
|
903
912
|
- lib/ultracart_api/models/auto_order_item_future_schedule.rb
|
904
913
|
- lib/ultracart_api/models/auto_order_item_option.rb
|
905
914
|
- lib/ultracart_api/models/auto_order_item_simple_schedule.rb
|
915
|
+
- lib/ultracart_api/models/auto_order_log.rb
|
906
916
|
- lib/ultracart_api/models/auto_order_query.rb
|
907
917
|
- lib/ultracart_api/models/auto_order_query_batch.rb
|
908
918
|
- lib/ultracart_api/models/auto_order_response.rb
|
@@ -1191,6 +1201,12 @@ files:
|
|
1191
1201
|
- lib/ultracart_api/models/geo_point.rb
|
1192
1202
|
- lib/ultracart_api/models/geocode_request.rb
|
1193
1203
|
- lib/ultracart_api/models/geocode_response.rb
|
1204
|
+
- lib/ultracart_api/models/gift_certificate.rb
|
1205
|
+
- lib/ultracart_api/models/gift_certificate_create_request.rb
|
1206
|
+
- lib/ultracart_api/models/gift_certificate_ledger_entry.rb
|
1207
|
+
- lib/ultracart_api/models/gift_certificate_query.rb
|
1208
|
+
- lib/ultracart_api/models/gift_certificate_response.rb
|
1209
|
+
- lib/ultracart_api/models/gift_certificates_response.rb
|
1194
1210
|
- lib/ultracart_api/models/group.rb
|
1195
1211
|
- lib/ultracart_api/models/group_response.rb
|
1196
1212
|
- lib/ultracart_api/models/group_user_membership.rb
|