ultracart_api 3.10.223 → 3.10.225
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 +9 -6
- data/docs/ChannelPartnerOrder.md +1 -0
- data/docs/CustomerAttachment.md +1 -1
- data/docs/FulfillmentApi.md +3 -3
- data/docs/ItemPaymentProcessing.md +1 -0
- data/docs/ItemReview.md +1 -0
- data/docs/OauthApi.md +2 -2
- data/docs/Order.md +1 -0
- data/docs/OrderCurrentStageHistory.md +10 -0
- data/docs/OrderItem.md +1 -0
- data/docs/OrderSummary.md +4 -0
- data/docs/WebhookApi.md +2 -2
- data/docs/WebhookReflow.md +9 -0
- data/docs/{WebhookSampleRequestResponse.md → WebhookReflowResponse.md} +2 -2
- data/lib/ultracart_api/api/fulfillment_api.rb +5 -5
- data/lib/ultracart_api/api/oauth_api.rb +2 -2
- data/lib/ultracart_api/api/webhook_api.rb +3 -3
- data/lib/ultracart_api/models/channel_partner_order.rb +11 -1
- data/lib/ultracart_api/models/customer_attachment.rb +1 -1
- data/lib/ultracart_api/models/item_payment_processing.rb +11 -1
- data/lib/ultracart_api/models/item_review.rb +26 -1
- data/lib/ultracart_api/models/order.rb +13 -1
- data/lib/ultracart_api/models/order_current_stage_history.rb +251 -0
- data/lib/ultracart_api/models/order_item.rb +10 -1
- data/lib/ultracart_api/models/order_summary.rb +39 -1
- data/lib/ultracart_api/models/{webhook_sample_request.rb → webhook_reflow.rb} +14 -38
- data/lib/ultracart_api/models/{webhook_sample_request_response.rb → webhook_reflow_response.rb} +14 -14
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -2
- metadata +8 -6
- data/docs/WebhookSampleRequest.md +0 -11
@@ -0,0 +1,251 @@
|
|
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 OrderCurrentStageHistory
|
17
|
+
# New stage that the order is in.
|
18
|
+
attr_accessor :after_stage
|
19
|
+
|
20
|
+
# Previous stage that the order was in.
|
21
|
+
attr_accessor :before_stage
|
22
|
+
|
23
|
+
# Date/time that the stage transitioned
|
24
|
+
attr_accessor :transition_dts
|
25
|
+
|
26
|
+
class EnumAttributeValidator
|
27
|
+
attr_reader :datatype
|
28
|
+
attr_reader :allowable_values
|
29
|
+
|
30
|
+
def initialize(datatype, allowable_values)
|
31
|
+
@allowable_values = allowable_values.map do |value|
|
32
|
+
case datatype.to_s
|
33
|
+
when /Integer/i
|
34
|
+
value.to_i
|
35
|
+
when /Float/i
|
36
|
+
value.to_f
|
37
|
+
else
|
38
|
+
value
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def valid?(value)
|
44
|
+
!value || allowable_values.include?(value)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
49
|
+
def self.attribute_map
|
50
|
+
{
|
51
|
+
:'after_stage' => :'after_stage',
|
52
|
+
:'before_stage' => :'before_stage',
|
53
|
+
:'transition_dts' => :'transition_dts'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Attribute type mapping.
|
58
|
+
def self.swagger_types
|
59
|
+
{
|
60
|
+
:'after_stage' => :'String',
|
61
|
+
:'before_stage' => :'String',
|
62
|
+
:'transition_dts' => :'String'
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
# Initializes the object
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
def initialize(attributes = {})
|
69
|
+
return unless attributes.is_a?(Hash)
|
70
|
+
|
71
|
+
# convert string to symbol for hash key
|
72
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
73
|
+
|
74
|
+
if attributes.has_key?(:'after_stage')
|
75
|
+
self.after_stage = attributes[:'after_stage']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'before_stage')
|
79
|
+
self.before_stage = attributes[:'before_stage']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.has_key?(:'transition_dts')
|
83
|
+
self.transition_dts = attributes[:'transition_dts']
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
88
|
+
# @return Array for valid properties with the reasons
|
89
|
+
def list_invalid_properties
|
90
|
+
invalid_properties = Array.new
|
91
|
+
invalid_properties
|
92
|
+
end
|
93
|
+
|
94
|
+
# Check to see if the all the properties in the model are valid
|
95
|
+
# @return true if the model is valid
|
96
|
+
def valid?
|
97
|
+
after_stage_validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered', 'Advanced Order Routing', 'Hold'])
|
98
|
+
return false unless after_stage_validator.valid?(@after_stage)
|
99
|
+
before_stage_validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered', 'Advanced Order Routing', 'Hold'])
|
100
|
+
return false unless before_stage_validator.valid?(@before_stage)
|
101
|
+
true
|
102
|
+
end
|
103
|
+
|
104
|
+
# Custom attribute writer method checking allowed values (enum).
|
105
|
+
# @param [Object] after_stage Object to be assigned
|
106
|
+
def after_stage=(after_stage)
|
107
|
+
validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered', 'Advanced Order Routing', 'Hold'])
|
108
|
+
unless validator.valid?(after_stage)
|
109
|
+
fail ArgumentError, 'invalid value for "after_stage", must be one of #{validator.allowable_values}.'
|
110
|
+
end
|
111
|
+
@after_stage = after_stage
|
112
|
+
end
|
113
|
+
|
114
|
+
# Custom attribute writer method checking allowed values (enum).
|
115
|
+
# @param [Object] before_stage Object to be assigned
|
116
|
+
def before_stage=(before_stage)
|
117
|
+
validator = EnumAttributeValidator.new('String', ['Accounts Receivable', 'Pending Clearance', 'Fraud Review', 'Rejected', 'Shipping Department', 'Completed Order', 'Quote Request', 'Quote Sent', 'Least Cost Routing', 'Unknown', 'Pre-ordered', 'Advanced Order Routing', 'Hold'])
|
118
|
+
unless validator.valid?(before_stage)
|
119
|
+
fail ArgumentError, 'invalid value for "before_stage", must be one of #{validator.allowable_values}.'
|
120
|
+
end
|
121
|
+
@before_stage = before_stage
|
122
|
+
end
|
123
|
+
|
124
|
+
# Checks equality by comparing each attribute.
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def ==(o)
|
127
|
+
return true if self.equal?(o)
|
128
|
+
self.class == o.class &&
|
129
|
+
after_stage == o.after_stage &&
|
130
|
+
before_stage == o.before_stage &&
|
131
|
+
transition_dts == o.transition_dts
|
132
|
+
end
|
133
|
+
|
134
|
+
# @see the `==` method
|
135
|
+
# @param [Object] Object to be compared
|
136
|
+
def eql?(o)
|
137
|
+
self == o
|
138
|
+
end
|
139
|
+
|
140
|
+
# Calculates hash code according to all attributes.
|
141
|
+
# @return [Fixnum] Hash code
|
142
|
+
def hash
|
143
|
+
[after_stage, before_stage, transition_dts].hash
|
144
|
+
end
|
145
|
+
|
146
|
+
# Builds the object from hash
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
148
|
+
# @return [Object] Returns the model itself
|
149
|
+
def build_from_hash(attributes)
|
150
|
+
return nil unless attributes.is_a?(Hash)
|
151
|
+
self.class.swagger_types.each_pair do |key, type|
|
152
|
+
if type =~ /\AArray<(.*)>/i
|
153
|
+
# check to ensure the input is an array given that the attribute
|
154
|
+
# is documented as an array but the input is not
|
155
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
156
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
157
|
+
end
|
158
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
159
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
160
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
161
|
+
end
|
162
|
+
|
163
|
+
self
|
164
|
+
end
|
165
|
+
|
166
|
+
# Deserializes the data based on type
|
167
|
+
# @param string type Data type
|
168
|
+
# @param string value Value to be deserialized
|
169
|
+
# @return [Object] Deserialized data
|
170
|
+
def _deserialize(type, value)
|
171
|
+
case type.to_sym
|
172
|
+
when :DateTime
|
173
|
+
DateTime.parse(value)
|
174
|
+
when :Date
|
175
|
+
Date.parse(value)
|
176
|
+
when :String
|
177
|
+
value.to_s
|
178
|
+
when :Integer
|
179
|
+
value.to_i
|
180
|
+
when :Float
|
181
|
+
value.to_f
|
182
|
+
when :BOOLEAN
|
183
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
184
|
+
true
|
185
|
+
else
|
186
|
+
false
|
187
|
+
end
|
188
|
+
when :Object
|
189
|
+
# generic object (usually a Hash), return directly
|
190
|
+
value
|
191
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
192
|
+
inner_type = Regexp.last_match[:inner_type]
|
193
|
+
value.map { |v| _deserialize(inner_type, v) }
|
194
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
195
|
+
k_type = Regexp.last_match[:k_type]
|
196
|
+
v_type = Regexp.last_match[:v_type]
|
197
|
+
{}.tap do |hash|
|
198
|
+
value.each do |k, v|
|
199
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
else # model
|
203
|
+
temp_model = UltracartClient.const_get(type).new
|
204
|
+
temp_model.build_from_hash(value)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the string representation of the object
|
209
|
+
# @return [String] String presentation of the object
|
210
|
+
def to_s
|
211
|
+
to_hash.to_s
|
212
|
+
end
|
213
|
+
|
214
|
+
# to_body is an alias to to_hash (backward compatibility)
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
216
|
+
def to_body
|
217
|
+
to_hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Returns the object in the form of hash
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_hash
|
223
|
+
hash = {}
|
224
|
+
self.class.attribute_map.each_pair do |attr, param|
|
225
|
+
value = self.send(attr)
|
226
|
+
next if value.nil?
|
227
|
+
hash[param] = _to_hash(value)
|
228
|
+
end
|
229
|
+
hash
|
230
|
+
end
|
231
|
+
|
232
|
+
# Outputs non-array value in the form of hash
|
233
|
+
# For object, use to_hash. Otherwise, just return the value
|
234
|
+
# @param [Object] value Any valid value
|
235
|
+
# @return [Hash] Returns the value in the form of hash
|
236
|
+
def _to_hash(value)
|
237
|
+
if value.is_a?(Array)
|
238
|
+
value.compact.map { |v| _to_hash(v) }
|
239
|
+
elsif value.is_a?(Hash)
|
240
|
+
{}.tap do |hash|
|
241
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
242
|
+
end
|
243
|
+
elsif value.respond_to? :to_hash
|
244
|
+
value.to_hash
|
245
|
+
else
|
246
|
+
value
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
end
|
251
|
+
end
|
@@ -20,6 +20,8 @@ module UltracartClient
|
|
20
20
|
# Activation codes assigned to this item
|
21
21
|
attr_accessor :activation_codes
|
22
22
|
|
23
|
+
attr_accessor :actual_cogs
|
24
|
+
|
23
25
|
attr_accessor :arbitrary_unit_cost
|
24
26
|
|
25
27
|
# Date/time of the last rebill, used only during order insert to help project future rebills
|
@@ -223,6 +225,7 @@ module UltracartClient
|
|
223
225
|
{
|
224
226
|
:'accounting_code' => :'accounting_code',
|
225
227
|
:'activation_codes' => :'activation_codes',
|
228
|
+
:'actual_cogs' => :'actual_cogs',
|
226
229
|
:'arbitrary_unit_cost' => :'arbitrary_unit_cost',
|
227
230
|
:'auto_order_last_rebill_dts' => :'auto_order_last_rebill_dts',
|
228
231
|
:'auto_order_schedule' => :'auto_order_schedule',
|
@@ -294,6 +297,7 @@ module UltracartClient
|
|
294
297
|
{
|
295
298
|
:'accounting_code' => :'String',
|
296
299
|
:'activation_codes' => :'Array<String>',
|
300
|
+
:'actual_cogs' => :'Currency',
|
297
301
|
:'arbitrary_unit_cost' => :'Currency',
|
298
302
|
:'auto_order_last_rebill_dts' => :'String',
|
299
303
|
:'auto_order_schedule' => :'String',
|
@@ -378,6 +382,10 @@ module UltracartClient
|
|
378
382
|
end
|
379
383
|
end
|
380
384
|
|
385
|
+
if attributes.has_key?(:'actual_cogs')
|
386
|
+
self.actual_cogs = attributes[:'actual_cogs']
|
387
|
+
end
|
388
|
+
|
381
389
|
if attributes.has_key?(:'arbitrary_unit_cost')
|
382
390
|
self.arbitrary_unit_cost = attributes[:'arbitrary_unit_cost']
|
383
391
|
end
|
@@ -834,6 +842,7 @@ module UltracartClient
|
|
834
842
|
self.class == o.class &&
|
835
843
|
accounting_code == o.accounting_code &&
|
836
844
|
activation_codes == o.activation_codes &&
|
845
|
+
actual_cogs == o.actual_cogs &&
|
837
846
|
arbitrary_unit_cost == o.arbitrary_unit_cost &&
|
838
847
|
auto_order_last_rebill_dts == o.auto_order_last_rebill_dts &&
|
839
848
|
auto_order_schedule == o.auto_order_schedule &&
|
@@ -908,7 +917,7 @@ module UltracartClient
|
|
908
917
|
# Calculates hash code according to all attributes.
|
909
918
|
# @return [Fixnum] Hash code
|
910
919
|
def hash
|
911
|
-
[accounting_code, activation_codes, arbitrary_unit_cost, auto_order_last_rebill_dts, auto_order_schedule, barcode, barcode_gtin12, barcode_gtin14, barcode_upc11, barcode_upc12, channel_partner_item_id, cogs, component_unit_value, cost, country_code_of_origin, customs_description, description, discount, discount_quantity, discount_shipping_weight, distribution_center_code, edi, exclude_coupon, free_shipping, hazmat, height, item_index, item_reference_oid, kit, kit_component, length, manufacturer_sku, max_days_time_in_transit, merchant_item_id, mix_and_match_group_name, mix_and_match_group_oid, no_shipping_discount, options, packed_by_user, parent_item_index, parent_merchant_item_id, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, refund_reason, return_reason, ship_separately, shipped_by_user, shipped_dts, shipping_status, special_product_type, tags, tax_free, tax_product_type, taxable_cost, total_cost_with_discount, total_refunded, transmitted_to_distribution_center_dts, unit_cost_with_discount, upsell, weight, width].hash
|
920
|
+
[accounting_code, activation_codes, actual_cogs, arbitrary_unit_cost, auto_order_last_rebill_dts, auto_order_schedule, barcode, barcode_gtin12, barcode_gtin14, barcode_upc11, barcode_upc12, channel_partner_item_id, cogs, component_unit_value, cost, country_code_of_origin, customs_description, description, discount, discount_quantity, discount_shipping_weight, distribution_center_code, edi, exclude_coupon, free_shipping, hazmat, height, item_index, item_reference_oid, kit, kit_component, length, manufacturer_sku, max_days_time_in_transit, merchant_item_id, mix_and_match_group_name, mix_and_match_group_oid, no_shipping_discount, options, packed_by_user, parent_item_index, parent_merchant_item_id, perishable_class, pricing_tier_name, properties, quantity, quantity_refunded, quickbooks_class, refund_reason, return_reason, ship_separately, shipped_by_user, shipped_dts, shipping_status, special_product_type, tags, tax_free, tax_product_type, taxable_cost, total_cost_with_discount, total_refunded, transmitted_to_distribution_center_dts, unit_cost_with_discount, upsell, weight, width].hash
|
912
921
|
end
|
913
922
|
|
914
923
|
# Builds the object from hash
|
@@ -16,8 +16,18 @@ module UltracartClient
|
|
16
16
|
class OrderSummary
|
17
17
|
attr_accessor :actual_fulfillment
|
18
18
|
|
19
|
+
attr_accessor :actual_other_cost
|
20
|
+
|
19
21
|
attr_accessor :actual_payment_processing
|
20
22
|
|
23
|
+
attr_accessor :actual_profit
|
24
|
+
|
25
|
+
# Actual profit has been analyzed
|
26
|
+
attr_accessor :actual_profit_analyzed
|
27
|
+
|
28
|
+
# Actual profit needs review
|
29
|
+
attr_accessor :actual_profit_review
|
30
|
+
|
21
31
|
attr_accessor :actual_shipping
|
22
32
|
|
23
33
|
attr_accessor :arbitrary_shipping_handling_total
|
@@ -62,7 +72,11 @@ module UltracartClient
|
|
62
72
|
def self.attribute_map
|
63
73
|
{
|
64
74
|
:'actual_fulfillment' => :'actual_fulfillment',
|
75
|
+
:'actual_other_cost' => :'actual_other_cost',
|
65
76
|
:'actual_payment_processing' => :'actual_payment_processing',
|
77
|
+
:'actual_profit' => :'actual_profit',
|
78
|
+
:'actual_profit_analyzed' => :'actual_profit_analyzed',
|
79
|
+
:'actual_profit_review' => :'actual_profit_review',
|
66
80
|
:'actual_shipping' => :'actual_shipping',
|
67
81
|
:'arbitrary_shipping_handling_total' => :'arbitrary_shipping_handling_total',
|
68
82
|
:'health_benefit_card_amount' => :'health_benefit_card_amount',
|
@@ -90,7 +104,11 @@ module UltracartClient
|
|
90
104
|
def self.swagger_types
|
91
105
|
{
|
92
106
|
:'actual_fulfillment' => :'Currency',
|
107
|
+
:'actual_other_cost' => :'Currency',
|
93
108
|
:'actual_payment_processing' => :'Currency',
|
109
|
+
:'actual_profit' => :'Currency',
|
110
|
+
:'actual_profit_analyzed' => :'BOOLEAN',
|
111
|
+
:'actual_profit_review' => :'BOOLEAN',
|
94
112
|
:'actual_shipping' => :'Currency',
|
95
113
|
:'arbitrary_shipping_handling_total' => :'Currency',
|
96
114
|
:'health_benefit_card_amount' => :'Currency',
|
@@ -126,10 +144,26 @@ module UltracartClient
|
|
126
144
|
self.actual_fulfillment = attributes[:'actual_fulfillment']
|
127
145
|
end
|
128
146
|
|
147
|
+
if attributes.has_key?(:'actual_other_cost')
|
148
|
+
self.actual_other_cost = attributes[:'actual_other_cost']
|
149
|
+
end
|
150
|
+
|
129
151
|
if attributes.has_key?(:'actual_payment_processing')
|
130
152
|
self.actual_payment_processing = attributes[:'actual_payment_processing']
|
131
153
|
end
|
132
154
|
|
155
|
+
if attributes.has_key?(:'actual_profit')
|
156
|
+
self.actual_profit = attributes[:'actual_profit']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'actual_profit_analyzed')
|
160
|
+
self.actual_profit_analyzed = attributes[:'actual_profit_analyzed']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.has_key?(:'actual_profit_review')
|
164
|
+
self.actual_profit_review = attributes[:'actual_profit_review']
|
165
|
+
end
|
166
|
+
|
133
167
|
if attributes.has_key?(:'actual_shipping')
|
134
168
|
self.actual_shipping = attributes[:'actual_shipping']
|
135
169
|
end
|
@@ -230,7 +264,11 @@ module UltracartClient
|
|
230
264
|
return true if self.equal?(o)
|
231
265
|
self.class == o.class &&
|
232
266
|
actual_fulfillment == o.actual_fulfillment &&
|
267
|
+
actual_other_cost == o.actual_other_cost &&
|
233
268
|
actual_payment_processing == o.actual_payment_processing &&
|
269
|
+
actual_profit == o.actual_profit &&
|
270
|
+
actual_profit_analyzed == o.actual_profit_analyzed &&
|
271
|
+
actual_profit_review == o.actual_profit_review &&
|
234
272
|
actual_shipping == o.actual_shipping &&
|
235
273
|
arbitrary_shipping_handling_total == o.arbitrary_shipping_handling_total &&
|
236
274
|
health_benefit_card_amount == o.health_benefit_card_amount &&
|
@@ -262,7 +300,7 @@ module UltracartClient
|
|
262
300
|
# Calculates hash code according to all attributes.
|
263
301
|
# @return [Fixnum] Hash code
|
264
302
|
def hash
|
265
|
-
[actual_fulfillment, actual_payment_processing, actual_shipping, arbitrary_shipping_handling_total, health_benefit_card_amount, health_benefit_card_refunded, 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
|
303
|
+
[actual_fulfillment, actual_other_cost, actual_payment_processing, actual_profit, actual_profit_analyzed, actual_profit_review, actual_shipping, arbitrary_shipping_handling_total, health_benefit_card_amount, health_benefit_card_refunded, 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
|
266
304
|
end
|
267
305
|
|
268
306
|
# Builds the object from hash
|
@@ -13,36 +13,24 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module UltracartClient
|
16
|
-
class
|
17
|
-
|
18
|
-
attr_accessor :request
|
16
|
+
class WebhookReflow
|
17
|
+
attr_accessor :event_name
|
19
18
|
|
20
|
-
|
21
|
-
attr_accessor :request_headers
|
22
|
-
|
23
|
-
# Request id
|
24
|
-
attr_accessor :request_id
|
25
|
-
|
26
|
-
# URI to send request to
|
27
|
-
attr_accessor :uri
|
19
|
+
attr_accessor :queued
|
28
20
|
|
29
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
22
|
def self.attribute_map
|
31
23
|
{
|
32
|
-
:'
|
33
|
-
:'
|
34
|
-
:'request_id' => :'request_id',
|
35
|
-
:'uri' => :'uri'
|
24
|
+
:'event_name' => :'event_name',
|
25
|
+
:'queued' => :'queued'
|
36
26
|
}
|
37
27
|
end
|
38
28
|
|
39
29
|
# Attribute type mapping.
|
40
30
|
def self.swagger_types
|
41
31
|
{
|
42
|
-
:'
|
43
|
-
:'
|
44
|
-
:'request_id' => :'String',
|
45
|
-
:'uri' => :'String'
|
32
|
+
:'event_name' => :'String',
|
33
|
+
:'queued' => :'BOOLEAN'
|
46
34
|
}
|
47
35
|
end
|
48
36
|
|
@@ -54,22 +42,12 @@ module UltracartClient
|
|
54
42
|
# convert string to symbol for hash key
|
55
43
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
44
|
|
57
|
-
if attributes.has_key?(:'
|
58
|
-
self.
|
59
|
-
end
|
60
|
-
|
61
|
-
if attributes.has_key?(:'request_headers')
|
62
|
-
if (value = attributes[:'request_headers']).is_a?(Array)
|
63
|
-
self.request_headers = value
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
if attributes.has_key?(:'request_id')
|
68
|
-
self.request_id = attributes[:'request_id']
|
45
|
+
if attributes.has_key?(:'event_name')
|
46
|
+
self.event_name = attributes[:'event_name']
|
69
47
|
end
|
70
48
|
|
71
|
-
if attributes.has_key?(:'
|
72
|
-
self.
|
49
|
+
if attributes.has_key?(:'queued')
|
50
|
+
self.queued = attributes[:'queued']
|
73
51
|
end
|
74
52
|
end
|
75
53
|
|
@@ -91,10 +69,8 @@ module UltracartClient
|
|
91
69
|
def ==(o)
|
92
70
|
return true if self.equal?(o)
|
93
71
|
self.class == o.class &&
|
94
|
-
|
95
|
-
|
96
|
-
request_id == o.request_id &&
|
97
|
-
uri == o.uri
|
72
|
+
event_name == o.event_name &&
|
73
|
+
queued == o.queued
|
98
74
|
end
|
99
75
|
|
100
76
|
# @see the `==` method
|
@@ -106,7 +82,7 @@ module UltracartClient
|
|
106
82
|
# Calculates hash code according to all attributes.
|
107
83
|
# @return [Fixnum] Hash code
|
108
84
|
def hash
|
109
|
-
[
|
85
|
+
[event_name, queued].hash
|
110
86
|
end
|
111
87
|
|
112
88
|
# Builds the object from hash
|
data/lib/ultracart_api/models/{webhook_sample_request_response.rb → webhook_reflow_response.rb}
RENAMED
@@ -13,26 +13,26 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module UltracartClient
|
16
|
-
class
|
16
|
+
class WebhookReflowResponse
|
17
17
|
attr_accessor :error
|
18
18
|
|
19
19
|
attr_accessor :metadata
|
20
20
|
|
21
|
+
attr_accessor :reflow
|
22
|
+
|
21
23
|
# Indicates if API call was successful
|
22
24
|
attr_accessor :success
|
23
25
|
|
24
26
|
attr_accessor :warning
|
25
27
|
|
26
|
-
attr_accessor :webhook_sample_request
|
27
|
-
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
31
|
:'error' => :'error',
|
32
32
|
:'metadata' => :'metadata',
|
33
|
+
:'reflow' => :'reflow',
|
33
34
|
:'success' => :'success',
|
34
|
-
:'warning' => :'warning'
|
35
|
-
:'webhook_sample_request' => :'webhook_sample_request'
|
35
|
+
:'warning' => :'warning'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -41,9 +41,9 @@ module UltracartClient
|
|
41
41
|
{
|
42
42
|
:'error' => :'Error',
|
43
43
|
:'metadata' => :'ResponseMetadata',
|
44
|
+
:'reflow' => :'WebhookReflow',
|
44
45
|
:'success' => :'BOOLEAN',
|
45
|
-
:'warning' => :'Warning'
|
46
|
-
:'webhook_sample_request' => :'WebhookSampleRequest'
|
46
|
+
:'warning' => :'Warning'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -63,6 +63,10 @@ module UltracartClient
|
|
63
63
|
self.metadata = attributes[:'metadata']
|
64
64
|
end
|
65
65
|
|
66
|
+
if attributes.has_key?(:'reflow')
|
67
|
+
self.reflow = attributes[:'reflow']
|
68
|
+
end
|
69
|
+
|
66
70
|
if attributes.has_key?(:'success')
|
67
71
|
self.success = attributes[:'success']
|
68
72
|
end
|
@@ -70,10 +74,6 @@ module UltracartClient
|
|
70
74
|
if attributes.has_key?(:'warning')
|
71
75
|
self.warning = attributes[:'warning']
|
72
76
|
end
|
73
|
-
|
74
|
-
if attributes.has_key?(:'webhook_sample_request')
|
75
|
-
self.webhook_sample_request = attributes[:'webhook_sample_request']
|
76
|
-
end
|
77
77
|
end
|
78
78
|
|
79
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -96,9 +96,9 @@ module UltracartClient
|
|
96
96
|
self.class == o.class &&
|
97
97
|
error == o.error &&
|
98
98
|
metadata == o.metadata &&
|
99
|
+
reflow == o.reflow &&
|
99
100
|
success == o.success &&
|
100
|
-
warning == o.warning
|
101
|
-
webhook_sample_request == o.webhook_sample_request
|
101
|
+
warning == o.warning
|
102
102
|
end
|
103
103
|
|
104
104
|
# @see the `==` method
|
@@ -110,7 +110,7 @@ module UltracartClient
|
|
110
110
|
# Calculates hash code according to all attributes.
|
111
111
|
# @return [Fixnum] Hash code
|
112
112
|
def hash
|
113
|
-
[error, metadata, success, warning
|
113
|
+
[error, metadata, reflow, success, warning].hash
|
114
114
|
end
|
115
115
|
|
116
116
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -635,6 +635,7 @@ require 'ultracart_api/models/order_by_token_query'
|
|
635
635
|
require 'ultracart_api/models/order_channel_partner'
|
636
636
|
require 'ultracart_api/models/order_checkout'
|
637
637
|
require 'ultracart_api/models/order_coupon'
|
638
|
+
require 'ultracart_api/models/order_current_stage_history'
|
638
639
|
require 'ultracart_api/models/order_digital_item'
|
639
640
|
require 'ultracart_api/models/order_digital_order'
|
640
641
|
require 'ultracart_api/models/order_edi'
|
@@ -849,9 +850,9 @@ require 'ultracart_api/models/webhook_log'
|
|
849
850
|
require 'ultracart_api/models/webhook_log_response'
|
850
851
|
require 'ultracart_api/models/webhook_log_summaries_response'
|
851
852
|
require 'ultracart_api/models/webhook_log_summary'
|
853
|
+
require 'ultracart_api/models/webhook_reflow'
|
854
|
+
require 'ultracart_api/models/webhook_reflow_response'
|
852
855
|
require 'ultracart_api/models/webhook_response'
|
853
|
-
require 'ultracart_api/models/webhook_sample_request'
|
854
|
-
require 'ultracart_api/models/webhook_sample_request_response'
|
855
856
|
require 'ultracart_api/models/webhooks_response'
|
856
857
|
require 'ultracart_api/models/weight'
|
857
858
|
require 'ultracart_api/models/workflow_agent_auth'
|
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.225
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -854,6 +854,7 @@ files:
|
|
854
854
|
- docs/OrderChannelPartner.md
|
855
855
|
- docs/OrderCheckout.md
|
856
856
|
- docs/OrderCoupon.md
|
857
|
+
- docs/OrderCurrentStageHistory.md
|
857
858
|
- docs/OrderDigitalItem.md
|
858
859
|
- docs/OrderDigitalOrder.md
|
859
860
|
- docs/OrderEdi.md
|
@@ -1073,9 +1074,9 @@ files:
|
|
1073
1074
|
- docs/WebhookLogResponse.md
|
1074
1075
|
- docs/WebhookLogSummariesResponse.md
|
1075
1076
|
- docs/WebhookLogSummary.md
|
1077
|
+
- docs/WebhookReflow.md
|
1078
|
+
- docs/WebhookReflowResponse.md
|
1076
1079
|
- docs/WebhookResponse.md
|
1077
|
-
- docs/WebhookSampleRequest.md
|
1078
|
-
- docs/WebhookSampleRequestResponse.md
|
1079
1080
|
- docs/WebhooksResponse.md
|
1080
1081
|
- docs/Weight.md
|
1081
1082
|
- docs/WorkflowAgentAuth.md
|
@@ -1741,6 +1742,7 @@ files:
|
|
1741
1742
|
- lib/ultracart_api/models/order_channel_partner.rb
|
1742
1743
|
- lib/ultracart_api/models/order_checkout.rb
|
1743
1744
|
- lib/ultracart_api/models/order_coupon.rb
|
1745
|
+
- lib/ultracart_api/models/order_current_stage_history.rb
|
1744
1746
|
- lib/ultracart_api/models/order_digital_item.rb
|
1745
1747
|
- lib/ultracart_api/models/order_digital_order.rb
|
1746
1748
|
- lib/ultracart_api/models/order_edi.rb
|
@@ -1955,9 +1957,9 @@ files:
|
|
1955
1957
|
- lib/ultracart_api/models/webhook_log_response.rb
|
1956
1958
|
- lib/ultracart_api/models/webhook_log_summaries_response.rb
|
1957
1959
|
- lib/ultracart_api/models/webhook_log_summary.rb
|
1960
|
+
- lib/ultracart_api/models/webhook_reflow.rb
|
1961
|
+
- lib/ultracart_api/models/webhook_reflow_response.rb
|
1958
1962
|
- lib/ultracart_api/models/webhook_response.rb
|
1959
|
-
- lib/ultracart_api/models/webhook_sample_request.rb
|
1960
|
-
- lib/ultracart_api/models/webhook_sample_request_response.rb
|
1961
1963
|
- lib/ultracart_api/models/webhooks_response.rb
|
1962
1964
|
- lib/ultracart_api/models/weight.rb
|
1963
1965
|
- lib/ultracart_api/models/workflow_agent_auth.rb
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# UltracartClient::WebhookSampleRequest
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**request** | **String** | Request | [optional]
|
7
|
-
**request_headers** | [**Array<HTTPHeader>**](HTTPHeader.md) | Request headers | [optional]
|
8
|
-
**request_id** | **String** | Request id | [optional]
|
9
|
-
**uri** | **String** | URI to send request to | [optional]
|
10
|
-
|
11
|
-
|