zippendo 1.2.7 → 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/GetOrder200ResponseOrderLinesInner.md +2 -0
- data/lib/zippendo/models/create_order201_response_order_lines_inner.rb +15 -5
- 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_order_lines_inner.rb +11 -1
- data/lib/zippendo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e638a22012cb2eccc9a85aef367ff07bed50153e20f78bd4562276884690a45
|
|
4
|
+
data.tar.gz: e36901bcca9d70482673040ebbe48fce34c4a307c96193e2d07156da3ad7e146
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba42eba189d67324168140d12167919232396feb2f35628efb8c015ce5a0ffd22966202aedc8737f10ae8b279d0a81315efa94e942ee85aff218b190acc9d1b9
|
|
7
|
+
data.tar.gz: 1a522a22c12184dacffaaffb972ac98bb744a328798170543e3c6372d7b2379bc505985384586a95ce2a0921ac0d1b2aac356491be3279b90524ef2342b20c92
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
| **taxable** | **Boolean** | Whether the item is taxable. | [optional] |
|
|
24
24
|
| **gift_card** | **Boolean** | Whether the item is a gift card. | [optional] |
|
|
25
25
|
| **vendor** | **String** | Vendor or brand name. | [optional] |
|
|
26
|
+
| **id** | **String** | Order line ID. Present once the line is a row. Absent for jsonb-only lines during the dual-write window — do not synthesise one, or an edit would re-point packed lines. | [optional] |
|
|
26
27
|
|
|
27
28
|
## Example
|
|
28
29
|
|
|
@@ -48,7 +49,8 @@ instance = Zippendo::CreateOrder201ResponseOrderLinesInner.new(
|
|
|
48
49
|
requires_shipping: true,
|
|
49
50
|
taxable: true,
|
|
50
51
|
gift_card: false,
|
|
51
|
-
vendor: Norse Knits
|
|
52
|
+
vendor: Norse Knits,
|
|
53
|
+
id: clz9k2f0a0004abcd3456qrst
|
|
52
54
|
)
|
|
53
55
|
```
|
|
54
56
|
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
| **taxable** | **Boolean** | Whether the item is taxable. | [optional] |
|
|
24
24
|
| **gift_card** | **Boolean** | Whether the item is a gift card. | [optional] |
|
|
25
25
|
| **vendor** | **String** | Vendor or brand name. | [optional] |
|
|
26
|
+
| **id** | **String** | ID of the existing order line this entry edits. Omit to add a new line. | [optional] |
|
|
26
27
|
|
|
27
28
|
## Example
|
|
28
29
|
|
|
@@ -48,7 +49,8 @@ instance = Zippendo::CreateOrderRequestOrderLinesInner.new(
|
|
|
48
49
|
requires_shipping: true,
|
|
49
50
|
taxable: true,
|
|
50
51
|
gift_card: false,
|
|
51
|
-
vendor: Norse Knits
|
|
52
|
+
vendor: Norse Knits,
|
|
53
|
+
id: clz9k2f0a0004abcd3456qrst
|
|
52
54
|
)
|
|
53
55
|
```
|
|
54
56
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **id** | **String** | Unique order line identifier. | [optional] |
|
|
8
|
+
| **order_line_id** | **String** | 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. | [optional] |
|
|
8
9
|
| **sku** | **String** | Stock keeping unit of the product. Optional — not every webshop assigns SKUs. | [optional] |
|
|
9
10
|
| **quantity** | **Integer** | Number of units in this order line. | |
|
|
10
11
|
| **description** | **String** | Human-readable product description. | [optional] |
|
|
@@ -13,7 +14,8 @@
|
|
|
13
14
|
| **vat_percent** | **Float** | VAT percentage applied to the unit price. | [optional] |
|
|
14
15
|
| **location** | **String** | Warehouse picking location. | [optional] |
|
|
15
16
|
| **country_of_origin** | **String** | ISO 3166-1 alpha-2 country of origin. | [optional] |
|
|
16
|
-
| **
|
|
17
|
+
| **hs_code** | **String** | Harmonized System customs code. | [optional] |
|
|
18
|
+
| **tarrif_number** | **String** | Deprecated misspelling of `hsCode`, kept for backwards compatibility. | [optional] |
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -22,6 +24,7 @@ require 'zippendo'
|
|
|
22
24
|
|
|
23
25
|
instance = Zippendo::CreateShipment201ResponseParcelsInnerOrderLinesInner.new(
|
|
24
26
|
id: ol_9c1d2e3f,
|
|
27
|
+
order_line_id: clz9k2f0a0004abcd3456qrst,
|
|
25
28
|
sku: SKU-1024,
|
|
26
29
|
quantity: 2,
|
|
27
30
|
description: Wool sweater, navy,
|
|
@@ -30,6 +33,7 @@ instance = Zippendo::CreateShipment201ResponseParcelsInnerOrderLinesInner.new(
|
|
|
30
33
|
vat_percent: 25,
|
|
31
34
|
location: A-12-3,
|
|
32
35
|
country_of_origin: DK,
|
|
36
|
+
hs_code: 61101100,
|
|
33
37
|
tarrif_number: 61101100
|
|
34
38
|
)
|
|
35
39
|
```
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **id** | **String** | Unique order line identifier. | [optional] |
|
|
8
|
+
| **order_line_id** | **String** | 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. | [optional] |
|
|
8
9
|
| **sku** | **String** | Stock keeping unit of the product. Optional — not every webshop assigns SKUs. | [optional] |
|
|
9
10
|
| **quantity** | **Integer** | Number of units in this order line. | |
|
|
10
11
|
| **description** | **String** | Human-readable product description. | [optional] |
|
|
@@ -13,7 +14,8 @@
|
|
|
13
14
|
| **vat_percent** | **Float** | VAT percentage applied to the unit price. | [optional] |
|
|
14
15
|
| **location** | **String** | Warehouse picking location. | [optional] |
|
|
15
16
|
| **country_of_origin** | **String** | ISO 3166-1 alpha-2 country of origin. | [optional] |
|
|
16
|
-
| **
|
|
17
|
+
| **hs_code** | **String** | Harmonized System customs code. | [optional] |
|
|
18
|
+
| **tarrif_number** | **String** | Deprecated misspelling of `hsCode`, kept for backwards compatibility. | [optional] |
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -22,6 +24,7 @@ require 'zippendo'
|
|
|
22
24
|
|
|
23
25
|
instance = Zippendo::CreateShipmentRequestParcelsInnerOrderLinesInner.new(
|
|
24
26
|
id: ol_9c1d2e3f,
|
|
27
|
+
order_line_id: clz9k2f0a0004abcd3456qrst,
|
|
25
28
|
sku: SKU-1024,
|
|
26
29
|
quantity: 2,
|
|
27
30
|
description: Wool sweater, navy,
|
|
@@ -30,6 +33,7 @@ instance = Zippendo::CreateShipmentRequestParcelsInnerOrderLinesInner.new(
|
|
|
30
33
|
vat_percent: 25,
|
|
31
34
|
location: A-12-3,
|
|
32
35
|
country_of_origin: DK,
|
|
36
|
+
hs_code: 61101100,
|
|
33
37
|
tarrif_number: 61101100
|
|
34
38
|
)
|
|
35
39
|
```
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
| **taxable** | **Boolean** | Whether the item is taxable. | [optional] |
|
|
24
24
|
| **gift_card** | **Boolean** | Whether the item is a gift card. | [optional] |
|
|
25
25
|
| **vendor** | **String** | Vendor or brand name. | [optional] |
|
|
26
|
+
| **id** | **String** | Order line ID. Present once the line is a row. Absent for jsonb-only lines during the dual-write window — do not synthesise one, or an edit would re-point packed lines. | [optional] |
|
|
26
27
|
| **packed_quantity** | **Integer** | Quantity already allocated to outbound shipments. | |
|
|
27
28
|
|
|
28
29
|
## Example
|
|
@@ -50,6 +51,7 @@ instance = Zippendo::GetOrder200ResponseOrderLinesInner.new(
|
|
|
50
51
|
taxable: true,
|
|
51
52
|
gift_card: false,
|
|
52
53
|
vendor: Norse Knits,
|
|
54
|
+
id: clz9k2f0a0004abcd3456qrst,
|
|
53
55
|
packed_quantity: 1
|
|
54
56
|
)
|
|
55
57
|
```
|
|
@@ -72,6 +72,9 @@ module Zippendo
|
|
|
72
72
|
# Vendor or brand name.
|
|
73
73
|
attr_accessor :vendor
|
|
74
74
|
|
|
75
|
+
# Order line ID. Present once the line is a row. Absent for jsonb-only lines during the dual-write window — do not synthesise one, or an edit would re-point packed lines.
|
|
76
|
+
attr_accessor :id
|
|
77
|
+
|
|
75
78
|
class EnumAttributeValidator
|
|
76
79
|
attr_reader :datatype
|
|
77
80
|
attr_reader :allowable_values
|
|
@@ -115,7 +118,8 @@ module Zippendo
|
|
|
115
118
|
:'requires_shipping' => :'requiresShipping',
|
|
116
119
|
:'taxable' => :'taxable',
|
|
117
120
|
:'gift_card' => :'giftCard',
|
|
118
|
-
:'vendor' => :'vendor'
|
|
121
|
+
:'vendor' => :'vendor',
|
|
122
|
+
:'id' => :'id'
|
|
119
123
|
}
|
|
120
124
|
end
|
|
121
125
|
|
|
@@ -150,7 +154,8 @@ module Zippendo
|
|
|
150
154
|
:'requires_shipping' => :'Boolean',
|
|
151
155
|
:'taxable' => :'Boolean',
|
|
152
156
|
:'gift_card' => :'Boolean',
|
|
153
|
-
:'vendor' => :'String'
|
|
157
|
+
:'vendor' => :'String',
|
|
158
|
+
:'id' => :'String'
|
|
154
159
|
}
|
|
155
160
|
end
|
|
156
161
|
|
|
@@ -173,7 +178,7 @@ module Zippendo
|
|
|
173
178
|
:'requires_shipping',
|
|
174
179
|
:'taxable',
|
|
175
180
|
:'gift_card',
|
|
176
|
-
:'vendor'
|
|
181
|
+
:'vendor',
|
|
177
182
|
])
|
|
178
183
|
end
|
|
179
184
|
|
|
@@ -272,6 +277,10 @@ module Zippendo
|
|
|
272
277
|
if attributes.key?(:'vendor')
|
|
273
278
|
self.vendor = attributes[:'vendor']
|
|
274
279
|
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'id')
|
|
282
|
+
self.id = attributes[:'id']
|
|
283
|
+
end
|
|
275
284
|
end
|
|
276
285
|
|
|
277
286
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -465,7 +474,8 @@ module Zippendo
|
|
|
465
474
|
requires_shipping == o.requires_shipping &&
|
|
466
475
|
taxable == o.taxable &&
|
|
467
476
|
gift_card == o.gift_card &&
|
|
468
|
-
vendor == o.vendor
|
|
477
|
+
vendor == o.vendor &&
|
|
478
|
+
id == o.id
|
|
469
479
|
end
|
|
470
480
|
|
|
471
481
|
# @see the `==` method
|
|
@@ -477,7 +487,7 @@ module Zippendo
|
|
|
477
487
|
# Calculates hash code according to all attributes.
|
|
478
488
|
# @return [Integer] Hash code
|
|
479
489
|
def hash
|
|
480
|
-
[sku, name, quantity, unit_price, total_price, currency, weight, weight_unit, variant_id, product_id, image_url, hs_code, country_of_origin, province_of_origin, barcode, requires_shipping, taxable, gift_card, vendor].hash
|
|
490
|
+
[sku, name, quantity, unit_price, total_price, currency, weight, weight_unit, variant_id, product_id, image_url, hs_code, country_of_origin, province_of_origin, barcode, requires_shipping, taxable, gift_card, vendor, id].hash
|
|
481
491
|
end
|
|
482
492
|
|
|
483
493
|
# Builds the object from hash
|
|
@@ -72,6 +72,9 @@ module Zippendo
|
|
|
72
72
|
# Vendor or brand name.
|
|
73
73
|
attr_accessor :vendor
|
|
74
74
|
|
|
75
|
+
# ID of the existing order line this entry edits. Omit to add a new line.
|
|
76
|
+
attr_accessor :id
|
|
77
|
+
|
|
75
78
|
class EnumAttributeValidator
|
|
76
79
|
attr_reader :datatype
|
|
77
80
|
attr_reader :allowable_values
|
|
@@ -115,7 +118,8 @@ module Zippendo
|
|
|
115
118
|
:'requires_shipping' => :'requiresShipping',
|
|
116
119
|
:'taxable' => :'taxable',
|
|
117
120
|
:'gift_card' => :'giftCard',
|
|
118
|
-
:'vendor' => :'vendor'
|
|
121
|
+
:'vendor' => :'vendor',
|
|
122
|
+
:'id' => :'id'
|
|
119
123
|
}
|
|
120
124
|
end
|
|
121
125
|
|
|
@@ -150,7 +154,8 @@ module Zippendo
|
|
|
150
154
|
:'requires_shipping' => :'Boolean',
|
|
151
155
|
:'taxable' => :'Boolean',
|
|
152
156
|
:'gift_card' => :'Boolean',
|
|
153
|
-
:'vendor' => :'String'
|
|
157
|
+
:'vendor' => :'String',
|
|
158
|
+
:'id' => :'String'
|
|
154
159
|
}
|
|
155
160
|
end
|
|
156
161
|
|
|
@@ -173,7 +178,7 @@ module Zippendo
|
|
|
173
178
|
:'requires_shipping',
|
|
174
179
|
:'taxable',
|
|
175
180
|
:'gift_card',
|
|
176
|
-
:'vendor'
|
|
181
|
+
:'vendor',
|
|
177
182
|
])
|
|
178
183
|
end
|
|
179
184
|
|
|
@@ -272,6 +277,10 @@ module Zippendo
|
|
|
272
277
|
if attributes.key?(:'vendor')
|
|
273
278
|
self.vendor = attributes[:'vendor']
|
|
274
279
|
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'id')
|
|
282
|
+
self.id = attributes[:'id']
|
|
283
|
+
end
|
|
275
284
|
end
|
|
276
285
|
|
|
277
286
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -474,7 +483,8 @@ module Zippendo
|
|
|
474
483
|
requires_shipping == o.requires_shipping &&
|
|
475
484
|
taxable == o.taxable &&
|
|
476
485
|
gift_card == o.gift_card &&
|
|
477
|
-
vendor == o.vendor
|
|
486
|
+
vendor == o.vendor &&
|
|
487
|
+
id == o.id
|
|
478
488
|
end
|
|
479
489
|
|
|
480
490
|
# @see the `==` method
|
|
@@ -486,7 +496,7 @@ module Zippendo
|
|
|
486
496
|
# Calculates hash code according to all attributes.
|
|
487
497
|
# @return [Integer] Hash code
|
|
488
498
|
def hash
|
|
489
|
-
[sku, name, quantity, unit_price, total_price, currency, weight, weight_unit, variant_id, product_id, image_url, hs_code, country_of_origin, province_of_origin, barcode, requires_shipping, taxable, gift_card, vendor].hash
|
|
499
|
+
[sku, name, quantity, unit_price, total_price, currency, weight, weight_unit, variant_id, product_id, image_url, hs_code, country_of_origin, province_of_origin, barcode, requires_shipping, taxable, gift_card, vendor, id].hash
|
|
490
500
|
end
|
|
491
501
|
|
|
492
502
|
# 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
|
|
@@ -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
|
|
@@ -72,6 +72,9 @@ module Zippendo
|
|
|
72
72
|
# Vendor or brand name.
|
|
73
73
|
attr_accessor :vendor
|
|
74
74
|
|
|
75
|
+
# Order line ID. Present once the line is a row. Absent for jsonb-only lines during the dual-write window — do not synthesise one, or an edit would re-point packed lines.
|
|
76
|
+
attr_accessor :id
|
|
77
|
+
|
|
75
78
|
# Quantity already allocated to outbound shipments.
|
|
76
79
|
attr_accessor :packed_quantity
|
|
77
80
|
|
|
@@ -119,6 +122,7 @@ module Zippendo
|
|
|
119
122
|
:'taxable' => :'taxable',
|
|
120
123
|
:'gift_card' => :'giftCard',
|
|
121
124
|
:'vendor' => :'vendor',
|
|
125
|
+
:'id' => :'id',
|
|
122
126
|
:'packed_quantity' => :'packedQuantity'
|
|
123
127
|
}
|
|
124
128
|
end
|
|
@@ -155,6 +159,7 @@ module Zippendo
|
|
|
155
159
|
:'taxable' => :'Boolean',
|
|
156
160
|
:'gift_card' => :'Boolean',
|
|
157
161
|
:'vendor' => :'String',
|
|
162
|
+
:'id' => :'String',
|
|
158
163
|
:'packed_quantity' => :'Integer'
|
|
159
164
|
}
|
|
160
165
|
end
|
|
@@ -278,6 +283,10 @@ module Zippendo
|
|
|
278
283
|
self.vendor = attributes[:'vendor']
|
|
279
284
|
end
|
|
280
285
|
|
|
286
|
+
if attributes.key?(:'id')
|
|
287
|
+
self.id = attributes[:'id']
|
|
288
|
+
end
|
|
289
|
+
|
|
281
290
|
if attributes.key?(:'packed_quantity')
|
|
282
291
|
self.packed_quantity = attributes[:'packed_quantity']
|
|
283
292
|
else
|
|
@@ -510,6 +519,7 @@ module Zippendo
|
|
|
510
519
|
taxable == o.taxable &&
|
|
511
520
|
gift_card == o.gift_card &&
|
|
512
521
|
vendor == o.vendor &&
|
|
522
|
+
id == o.id &&
|
|
513
523
|
packed_quantity == o.packed_quantity
|
|
514
524
|
end
|
|
515
525
|
|
|
@@ -522,7 +532,7 @@ module Zippendo
|
|
|
522
532
|
# Calculates hash code according to all attributes.
|
|
523
533
|
# @return [Integer] Hash code
|
|
524
534
|
def hash
|
|
525
|
-
[sku, name, quantity, unit_price, total_price, currency, weight, weight_unit, variant_id, product_id, image_url, hs_code, country_of_origin, province_of_origin, barcode, requires_shipping, taxable, gift_card, vendor, packed_quantity].hash
|
|
535
|
+
[sku, name, quantity, unit_price, total_price, currency, weight, weight_unit, variant_id, product_id, image_url, hs_code, country_of_origin, province_of_origin, barcode, requires_shipping, taxable, gift_card, vendor, id, packed_quantity].hash
|
|
526
536
|
end
|
|
527
537
|
|
|
528
538
|
# Builds the object from hash
|
data/lib/zippendo/version.rb
CHANGED