zippendo 1.2.6 → 1.3.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/docs/CreateOrder201ResponseOrderLinesInner.md +3 -1
- data/docs/CreateOrderRequestOrderLinesInner.md +3 -1
- data/docs/CreateShipment201ResponseParcelsInnerOrderLinesInner.md +5 -1
- data/docs/CreateShipmentRequestParcelsInnerOrderLinesInner.md +5 -1
- data/docs/GetOrder200Response.md +1 -1
- data/docs/GetOrder200ResponseOrderLinesInner.md +58 -0
- data/docs/GetOrder200ResponseShipmentsInner.md +3 -1
- data/docs/GetOrder200ResponseShipmentsInnerParcelsInner.md +26 -0
- data/docs/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.md +24 -0
- data/docs/UpdateOrderRequest.md +3 -1
- data/lib/zippendo/models/batch_send_shipments200_response_results_inner.rb +2 -2
- data/lib/zippendo/models/create_order201_response_order_lines_inner.rb +20 -19
- data/lib/zippendo/models/create_order201_response_shipping_address.rb +0 -54
- data/lib/zippendo/models/create_order_request_order_lines_inner.rb +15 -5
- data/lib/zippendo/models/create_shipment201_response_parcels_inner_order_lines_inner.rb +24 -2
- data/lib/zippendo/models/create_shipment_request_parcels_inner_order_lines_inner.rb +24 -2
- data/lib/zippendo/models/get_order200_response.rb +2 -2
- data/lib/zippendo/models/get_order200_response_order_lines_inner.rb +579 -0
- data/lib/zippendo/models/get_order200_response_shipments_inner.rb +33 -4
- data/lib/zippendo/models/get_order200_response_shipments_inner_parcels_inner.rb +307 -0
- data/lib/zippendo/models/get_order200_response_shipments_inner_parcels_inner_order_lines_inner.rb +232 -0
- data/lib/zippendo/models/list_api_tokens401_response.rb +2 -2
- data/lib/zippendo/models/send_shipment422_response.rb +2 -2
- data/lib/zippendo/models/update_order_request.rb +16 -5
- data/lib/zippendo/version.rb +1 -1
- data/lib/zippendo.rb +3 -0
- metadata +7 -1
|
@@ -18,6 +18,9 @@ module Zippendo
|
|
|
18
18
|
# Unique order line identifier.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
+
# ID of the order line this packed line came from. Null when the item did not originate from an order line, such as a free gift or a replacement part.
|
|
22
|
+
attr_accessor :order_line_id
|
|
23
|
+
|
|
21
24
|
# Stock keeping unit of the product. Optional — not every webshop assigns SKUs.
|
|
22
25
|
attr_accessor :sku
|
|
23
26
|
|
|
@@ -42,13 +45,17 @@ module Zippendo
|
|
|
42
45
|
# ISO 3166-1 alpha-2 country of origin.
|
|
43
46
|
attr_accessor :country_of_origin
|
|
44
47
|
|
|
45
|
-
#
|
|
48
|
+
# Harmonized System customs code.
|
|
49
|
+
attr_accessor :hs_code
|
|
50
|
+
|
|
51
|
+
# Deprecated misspelling of `hsCode`, kept for backwards compatibility.
|
|
46
52
|
attr_accessor :tarrif_number
|
|
47
53
|
|
|
48
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
55
|
def self.attribute_map
|
|
50
56
|
{
|
|
51
57
|
:'id' => :'id',
|
|
58
|
+
:'order_line_id' => :'orderLineId',
|
|
52
59
|
:'sku' => :'sku',
|
|
53
60
|
:'quantity' => :'quantity',
|
|
54
61
|
:'description' => :'description',
|
|
@@ -57,6 +64,7 @@ module Zippendo
|
|
|
57
64
|
:'vat_percent' => :'vatPercent',
|
|
58
65
|
:'location' => :'location',
|
|
59
66
|
:'country_of_origin' => :'countryOfOrigin',
|
|
67
|
+
:'hs_code' => :'hsCode',
|
|
60
68
|
:'tarrif_number' => :'tarrifNumber'
|
|
61
69
|
}
|
|
62
70
|
end
|
|
@@ -75,6 +83,7 @@ module Zippendo
|
|
|
75
83
|
def self.openapi_types
|
|
76
84
|
{
|
|
77
85
|
:'id' => :'String',
|
|
86
|
+
:'order_line_id' => :'String',
|
|
78
87
|
:'sku' => :'String',
|
|
79
88
|
:'quantity' => :'Integer',
|
|
80
89
|
:'description' => :'String',
|
|
@@ -83,6 +92,7 @@ module Zippendo
|
|
|
83
92
|
:'vat_percent' => :'Float',
|
|
84
93
|
:'location' => :'String',
|
|
85
94
|
:'country_of_origin' => :'String',
|
|
95
|
+
:'hs_code' => :'String',
|
|
86
96
|
:'tarrif_number' => :'String'
|
|
87
97
|
}
|
|
88
98
|
end
|
|
@@ -90,12 +100,14 @@ module Zippendo
|
|
|
90
100
|
# List of attributes with nullable: true
|
|
91
101
|
def self.openapi_nullable
|
|
92
102
|
Set.new([
|
|
103
|
+
:'order_line_id',
|
|
93
104
|
:'sku',
|
|
94
105
|
:'description',
|
|
95
106
|
:'unit_price',
|
|
96
107
|
:'currency',
|
|
97
108
|
:'vat_percent',
|
|
98
109
|
:'location',
|
|
110
|
+
:'hs_code',
|
|
99
111
|
:'tarrif_number'
|
|
100
112
|
])
|
|
101
113
|
end
|
|
@@ -120,6 +132,10 @@ module Zippendo
|
|
|
120
132
|
self.id = attributes[:'id']
|
|
121
133
|
end
|
|
122
134
|
|
|
135
|
+
if attributes.key?(:'order_line_id')
|
|
136
|
+
self.order_line_id = attributes[:'order_line_id']
|
|
137
|
+
end
|
|
138
|
+
|
|
123
139
|
if attributes.key?(:'sku')
|
|
124
140
|
self.sku = attributes[:'sku']
|
|
125
141
|
end
|
|
@@ -154,6 +170,10 @@ module Zippendo
|
|
|
154
170
|
self.country_of_origin = attributes[:'country_of_origin']
|
|
155
171
|
end
|
|
156
172
|
|
|
173
|
+
if attributes.key?(:'hs_code')
|
|
174
|
+
self.hs_code = attributes[:'hs_code']
|
|
175
|
+
end
|
|
176
|
+
|
|
157
177
|
if attributes.key?(:'tarrif_number')
|
|
158
178
|
self.tarrif_number = attributes[:'tarrif_number']
|
|
159
179
|
end
|
|
@@ -325,6 +345,7 @@ module Zippendo
|
|
|
325
345
|
return true if self.equal?(o)
|
|
326
346
|
self.class == o.class &&
|
|
327
347
|
id == o.id &&
|
|
348
|
+
order_line_id == o.order_line_id &&
|
|
328
349
|
sku == o.sku &&
|
|
329
350
|
quantity == o.quantity &&
|
|
330
351
|
description == o.description &&
|
|
@@ -333,6 +354,7 @@ module Zippendo
|
|
|
333
354
|
vat_percent == o.vat_percent &&
|
|
334
355
|
location == o.location &&
|
|
335
356
|
country_of_origin == o.country_of_origin &&
|
|
357
|
+
hs_code == o.hs_code &&
|
|
336
358
|
tarrif_number == o.tarrif_number
|
|
337
359
|
end
|
|
338
360
|
|
|
@@ -345,7 +367,7 @@ module Zippendo
|
|
|
345
367
|
# Calculates hash code according to all attributes.
|
|
346
368
|
# @return [Integer] Hash code
|
|
347
369
|
def hash
|
|
348
|
-
[id, sku, quantity, description, unit_price, currency, vat_percent, location, country_of_origin, tarrif_number].hash
|
|
370
|
+
[id, order_line_id, sku, quantity, description, unit_price, currency, vat_percent, location, country_of_origin, hs_code, tarrif_number].hash
|
|
349
371
|
end
|
|
350
372
|
|
|
351
373
|
# Builds the object from hash
|
|
@@ -18,6 +18,9 @@ module Zippendo
|
|
|
18
18
|
# Unique order line identifier.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
+
# ID of the order line this packed line came from. Null when the item did not originate from an order line, such as a free gift or a replacement part.
|
|
22
|
+
attr_accessor :order_line_id
|
|
23
|
+
|
|
21
24
|
# Stock keeping unit of the product. Optional — not every webshop assigns SKUs.
|
|
22
25
|
attr_accessor :sku
|
|
23
26
|
|
|
@@ -42,13 +45,17 @@ module Zippendo
|
|
|
42
45
|
# ISO 3166-1 alpha-2 country of origin.
|
|
43
46
|
attr_accessor :country_of_origin
|
|
44
47
|
|
|
45
|
-
#
|
|
48
|
+
# Harmonized System customs code.
|
|
49
|
+
attr_accessor :hs_code
|
|
50
|
+
|
|
51
|
+
# Deprecated misspelling of `hsCode`, kept for backwards compatibility.
|
|
46
52
|
attr_accessor :tarrif_number
|
|
47
53
|
|
|
48
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
55
|
def self.attribute_map
|
|
50
56
|
{
|
|
51
57
|
:'id' => :'id',
|
|
58
|
+
:'order_line_id' => :'orderLineId',
|
|
52
59
|
:'sku' => :'sku',
|
|
53
60
|
:'quantity' => :'quantity',
|
|
54
61
|
:'description' => :'description',
|
|
@@ -57,6 +64,7 @@ module Zippendo
|
|
|
57
64
|
:'vat_percent' => :'vatPercent',
|
|
58
65
|
:'location' => :'location',
|
|
59
66
|
:'country_of_origin' => :'countryOfOrigin',
|
|
67
|
+
:'hs_code' => :'hsCode',
|
|
60
68
|
:'tarrif_number' => :'tarrifNumber'
|
|
61
69
|
}
|
|
62
70
|
end
|
|
@@ -75,6 +83,7 @@ module Zippendo
|
|
|
75
83
|
def self.openapi_types
|
|
76
84
|
{
|
|
77
85
|
:'id' => :'String',
|
|
86
|
+
:'order_line_id' => :'String',
|
|
78
87
|
:'sku' => :'String',
|
|
79
88
|
:'quantity' => :'Integer',
|
|
80
89
|
:'description' => :'String',
|
|
@@ -83,6 +92,7 @@ module Zippendo
|
|
|
83
92
|
:'vat_percent' => :'Float',
|
|
84
93
|
:'location' => :'String',
|
|
85
94
|
:'country_of_origin' => :'String',
|
|
95
|
+
:'hs_code' => :'String',
|
|
86
96
|
:'tarrif_number' => :'String'
|
|
87
97
|
}
|
|
88
98
|
end
|
|
@@ -90,12 +100,14 @@ module Zippendo
|
|
|
90
100
|
# List of attributes with nullable: true
|
|
91
101
|
def self.openapi_nullable
|
|
92
102
|
Set.new([
|
|
103
|
+
:'order_line_id',
|
|
93
104
|
:'sku',
|
|
94
105
|
:'description',
|
|
95
106
|
:'unit_price',
|
|
96
107
|
:'currency',
|
|
97
108
|
:'vat_percent',
|
|
98
109
|
:'location',
|
|
110
|
+
:'hs_code',
|
|
99
111
|
:'tarrif_number'
|
|
100
112
|
])
|
|
101
113
|
end
|
|
@@ -120,6 +132,10 @@ module Zippendo
|
|
|
120
132
|
self.id = attributes[:'id']
|
|
121
133
|
end
|
|
122
134
|
|
|
135
|
+
if attributes.key?(:'order_line_id')
|
|
136
|
+
self.order_line_id = attributes[:'order_line_id']
|
|
137
|
+
end
|
|
138
|
+
|
|
123
139
|
if attributes.key?(:'sku')
|
|
124
140
|
self.sku = attributes[:'sku']
|
|
125
141
|
end
|
|
@@ -154,6 +170,10 @@ module Zippendo
|
|
|
154
170
|
self.country_of_origin = attributes[:'country_of_origin']
|
|
155
171
|
end
|
|
156
172
|
|
|
173
|
+
if attributes.key?(:'hs_code')
|
|
174
|
+
self.hs_code = attributes[:'hs_code']
|
|
175
|
+
end
|
|
176
|
+
|
|
157
177
|
if attributes.key?(:'tarrif_number')
|
|
158
178
|
self.tarrif_number = attributes[:'tarrif_number']
|
|
159
179
|
end
|
|
@@ -325,6 +345,7 @@ module Zippendo
|
|
|
325
345
|
return true if self.equal?(o)
|
|
326
346
|
self.class == o.class &&
|
|
327
347
|
id == o.id &&
|
|
348
|
+
order_line_id == o.order_line_id &&
|
|
328
349
|
sku == o.sku &&
|
|
329
350
|
quantity == o.quantity &&
|
|
330
351
|
description == o.description &&
|
|
@@ -333,6 +354,7 @@ module Zippendo
|
|
|
333
354
|
vat_percent == o.vat_percent &&
|
|
334
355
|
location == o.location &&
|
|
335
356
|
country_of_origin == o.country_of_origin &&
|
|
357
|
+
hs_code == o.hs_code &&
|
|
336
358
|
tarrif_number == o.tarrif_number
|
|
337
359
|
end
|
|
338
360
|
|
|
@@ -345,7 +367,7 @@ module Zippendo
|
|
|
345
367
|
# Calculates hash code according to all attributes.
|
|
346
368
|
# @return [Integer] Hash code
|
|
347
369
|
def hash
|
|
348
|
-
[id, sku, quantity, description, unit_price, currency, vat_percent, location, country_of_origin, tarrif_number].hash
|
|
370
|
+
[id, order_line_id, sku, quantity, description, unit_price, currency, vat_percent, location, country_of_origin, hs_code, tarrif_number].hash
|
|
349
371
|
end
|
|
350
372
|
|
|
351
373
|
# Builds the object from hash
|
|
@@ -32,7 +32,7 @@ module Zippendo
|
|
|
32
32
|
|
|
33
33
|
attr_accessor :shipping_address
|
|
34
34
|
|
|
35
|
-
#
|
|
35
|
+
# Sold line items with quantity already allocated to outbound shipments.
|
|
36
36
|
attr_accessor :order_lines
|
|
37
37
|
|
|
38
38
|
# Order subtotal before shipping and tax.
|
|
@@ -142,7 +142,7 @@ module Zippendo
|
|
|
142
142
|
:'customer_name' => :'String',
|
|
143
143
|
:'customer_email' => :'String',
|
|
144
144
|
:'shipping_address' => :'CreateOrder201ResponseShippingAddress',
|
|
145
|
-
:'order_lines' => :'Array<
|
|
145
|
+
:'order_lines' => :'Array<GetOrder200ResponseOrderLinesInner>',
|
|
146
146
|
:'subtotal_amount' => :'Float',
|
|
147
147
|
:'total_amount' => :'Float',
|
|
148
148
|
:'currency' => :'String',
|