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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/docs/CreateOrder201ResponseOrderLinesInner.md +3 -1
  3. data/docs/CreateOrderRequestOrderLinesInner.md +3 -1
  4. data/docs/CreateShipment201ResponseParcelsInnerOrderLinesInner.md +5 -1
  5. data/docs/CreateShipmentRequestParcelsInnerOrderLinesInner.md +5 -1
  6. data/docs/GetOrder200Response.md +1 -1
  7. data/docs/GetOrder200ResponseOrderLinesInner.md +58 -0
  8. data/docs/GetOrder200ResponseShipmentsInner.md +3 -1
  9. data/docs/GetOrder200ResponseShipmentsInnerParcelsInner.md +26 -0
  10. data/docs/GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.md +24 -0
  11. data/docs/UpdateOrderRequest.md +3 -1
  12. data/lib/zippendo/models/batch_send_shipments200_response_results_inner.rb +2 -2
  13. data/lib/zippendo/models/create_order201_response_order_lines_inner.rb +20 -19
  14. data/lib/zippendo/models/create_order201_response_shipping_address.rb +0 -54
  15. data/lib/zippendo/models/create_order_request_order_lines_inner.rb +15 -5
  16. data/lib/zippendo/models/create_shipment201_response_parcels_inner_order_lines_inner.rb +24 -2
  17. data/lib/zippendo/models/create_shipment_request_parcels_inner_order_lines_inner.rb +24 -2
  18. data/lib/zippendo/models/get_order200_response.rb +2 -2
  19. data/lib/zippendo/models/get_order200_response_order_lines_inner.rb +579 -0
  20. data/lib/zippendo/models/get_order200_response_shipments_inner.rb +33 -4
  21. data/lib/zippendo/models/get_order200_response_shipments_inner_parcels_inner.rb +307 -0
  22. data/lib/zippendo/models/get_order200_response_shipments_inner_parcels_inner_order_lines_inner.rb +232 -0
  23. data/lib/zippendo/models/list_api_tokens401_response.rb +2 -2
  24. data/lib/zippendo/models/send_shipment422_response.rb +2 -2
  25. data/lib/zippendo/models/update_order_request.rb +16 -5
  26. data/lib/zippendo/version.rb +1 -1
  27. data/lib/zippendo.rb +3 -0
  28. metadata +7 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c55002f9bc488f23b5ae86aea5949e1588fe6f4eba6519cce501166c00b11816
4
- data.tar.gz: 86b75330d836fef76a2329efd36733e54c4900f681580c4c88592005faf97383
3
+ metadata.gz: 3e638a22012cb2eccc9a85aef367ff07bed50153e20f78bd4562276884690a45
4
+ data.tar.gz: e36901bcca9d70482673040ebbe48fce34c4a307c96193e2d07156da3ad7e146
5
5
  SHA512:
6
- metadata.gz: b143f1f081be10829c26d9b2a8cc0ac7de432311188c38b216fafc1cb3a29c711c28decd9bcfdc9c6ff1f859643a5491c8b61f0148655221105fb6bf08899181
7
- data.tar.gz: d613c1db0eb9bc275930a14f88bfd9f6fed04e36ee9158979742c92b262d6ebe9aceca87138402ac3219cdfa68bbfe510e18ecd6e30ac6548a9808192bc9431d
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
- | **tarrif_number** | **String** | Customs tariff (HS) code. | [optional] |
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
- | **tarrif_number** | **String** | Customs tariff (HS) code. | [optional] |
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
  ```
@@ -10,7 +10,7 @@
10
10
  | **customer_name** | **String** | Customer full name. | [optional] |
11
11
  | **customer_email** | **String** | Customer email address. | [optional] |
12
12
  | **shipping_address** | [**CreateOrder201ResponseShippingAddress**](CreateOrder201ResponseShippingAddress.md) | | [optional] |
13
- | **order_lines** | [**Array<CreateOrder201ResponseOrderLinesInner>**](CreateOrder201ResponseOrderLinesInner.md) | Line items in the order. | |
13
+ | **order_lines** | [**Array<GetOrder200ResponseOrderLinesInner>**](GetOrder200ResponseOrderLinesInner.md) | Sold line items with quantity already allocated to outbound shipments. | |
14
14
  | **subtotal_amount** | **Float** | Order subtotal before shipping and tax. | [optional] |
15
15
  | **total_amount** | **Float** | Order grand total. | [optional] |
16
16
  | **currency** | **String** | ISO 4217 currency code. | [optional] |
@@ -0,0 +1,58 @@
1
+ # Zippendo::GetOrder200ResponseOrderLinesInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **sku** | **String** | Stock keeping unit identifier. | [optional] |
8
+ | **name** | **String** | Product name. | |
9
+ | **quantity** | **Integer** | Quantity ordered. | |
10
+ | **unit_price** | **Float** | Price per unit. | [optional] |
11
+ | **total_price** | **Float** | Total price for the line. | [optional] |
12
+ | **currency** | **String** | ISO 4217 currency code. | [optional] |
13
+ | **weight** | **Float** | Item weight in the given unit. | [optional] |
14
+ | **weight_unit** | **String** | Unit of the weight value. | [optional] |
15
+ | **variant_id** | **String** | Platform variant identifier. | [optional] |
16
+ | **product_id** | **String** | Platform product identifier. | [optional] |
17
+ | **image_url** | **String** | Product image URL. | [optional] |
18
+ | **hs_code** | **String** | Harmonized System customs code (6-13 digits). | [optional] |
19
+ | **country_of_origin** | **String** | ISO 3166-1 alpha-2 country of origin. | [optional] |
20
+ | **province_of_origin** | **String** | ISO 3166-2 province of origin. | [optional] |
21
+ | **barcode** | **String** | Item barcode (EAN/UPC). | [optional] |
22
+ | **requires_shipping** | **Boolean** | Whether the item requires shipping. | [optional] |
23
+ | **taxable** | **Boolean** | Whether the item is taxable. | [optional] |
24
+ | **gift_card** | **Boolean** | Whether the item is a gift card. | [optional] |
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] |
27
+ | **packed_quantity** | **Integer** | Quantity already allocated to outbound shipments. | |
28
+
29
+ ## Example
30
+
31
+ ```ruby
32
+ require 'zippendo'
33
+
34
+ instance = Zippendo::GetOrder200ResponseOrderLinesInner.new(
35
+ sku: SKU-1042-BLK,
36
+ name: Wool Sweater,
37
+ quantity: 2,
38
+ unit_price: 499,
39
+ total_price: 998,
40
+ currency: DKK,
41
+ weight: 0.5,
42
+ weight_unit: kg,
43
+ variant_id: 44218900291,
44
+ product_id: 8123456789,
45
+ image_url: https://cdn.example.dk/products/sweater.jpg,
46
+ hs_code: 611020,
47
+ country_of_origin: DK,
48
+ province_of_origin: DK-84,
49
+ barcode: 5712345678901,
50
+ requires_shipping: true,
51
+ taxable: true,
52
+ gift_card: false,
53
+ vendor: Norse Knits,
54
+ id: clz9k2f0a0004abcd3456qrst,
55
+ packed_quantity: 1
56
+ )
57
+ ```
58
+
@@ -15,6 +15,7 @@
15
15
  | **updated_at** | **String** | Timestamp when the shipment was last updated. | |
16
16
  | **shipping_rule_id** | **String** | ID of the shipping rule used for this shipment. | [optional] |
17
17
  | **documents** | [**Array<CreateShipment201ResponseDocumentsInner>**](CreateShipment201ResponseDocumentsInner.md) | Documents (labels, customs forms) for this shipment. | [optional] |
18
+ | **parcels** | [**Array<GetOrder200ResponseShipmentsInnerParcelsInner>**](GetOrder200ResponseShipmentsInnerParcelsInner.md) | Compact parcels for the order fulfillment workspace (no QR/label payloads). | |
18
19
 
19
20
  ## Example
20
21
 
@@ -32,7 +33,8 @@ instance = Zippendo::GetOrder200ResponseShipmentsInner.new(
32
33
  created_at: 2026-06-22T14:30:00.000Z,
33
34
  updated_at: 2026-06-22T14:30:00.000Z,
34
35
  shipping_rule_id: clz9k2f0a0002abcd5678ijkl,
35
- documents: null
36
+ documents: null,
37
+ parcels: null
36
38
  )
37
39
  ```
38
40
 
@@ -0,0 +1,26 @@
1
+ # Zippendo::GetOrder200ResponseShipmentsInnerParcelsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Parcel ID. | |
8
+ | **weight** | **Float** | Parcel weight in the given unit. | |
9
+ | **weight_unit** | **String** | Unit of measurement for parcel weight. | |
10
+ | **dimensions** | [**CreateShipment201ResponseParcelsInnerDimensions**](CreateShipment201ResponseParcelsInnerDimensions.md) | | |
11
+ | **order_lines** | [**Array<GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner>**](GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.md) | Contents of this parcel. | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'zippendo'
17
+
18
+ instance = Zippendo::GetOrder200ResponseShipmentsInnerParcelsInner.new(
19
+ id: prc_5a6b7c8d,
20
+ weight: 2.5,
21
+ weight_unit: kg,
22
+ dimensions: null,
23
+ order_lines: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,24 @@
1
+ # Zippendo::GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Parcel content line ID. | |
8
+ | **sku** | **String** | SKU of the packed item. | [optional] |
9
+ | **quantity** | **Integer** | Quantity packed in this parcel. | |
10
+ | **description** | **String** | Product description. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'zippendo'
16
+
17
+ instance = Zippendo::GetOrder200ResponseShipmentsInnerParcelsInnerOrderLinesInner.new(
18
+ id: ol_9c1d2e3f,
19
+ sku: SKU-1042-BLK,
20
+ quantity: 2,
21
+ description: Wool Sweater
22
+ )
23
+ ```
24
+
@@ -15,6 +15,7 @@
15
15
  | **notes** | **String** | Free-form internal notes. | [optional] |
16
16
  | **status** | **String** | Order fulfilment status derived from its shipments. | [optional] |
17
17
  | **shipping_rule_id** | **String** | ID of the shipping rule to apply. | [optional] |
18
+ | **service_point_id** | **String** | Service point (parcel shop) ID to apply to unsent outbound shipments. | [optional] |
18
19
 
19
20
  ## Example
20
21
 
@@ -32,7 +33,8 @@ instance = Zippendo::UpdateOrderRequest.new(
32
33
  currency: DKK,
33
34
  notes: Leave at front desk,
34
35
  status: processing,
35
- shipping_rule_id: clz9k2f0a0002abcd5678ijkl
36
+ shipping_rule_id: clz9k2f0a0002abcd5678ijkl,
37
+ service_point_id: SP-1234
36
38
  )
37
39
  ```
38
40
 
@@ -157,7 +157,7 @@ module Zippendo
157
157
  return false if @status.nil?
158
158
  status_validator = EnumAttributeValidator.new('String', ["sent", "failed", "skipped"])
159
159
  return false unless status_validator.valid?(@status)
160
- code_validator = EnumAttributeValidator.new('String', ["INTERNAL_ERROR", "BAD_REQUEST", "VALIDATION_FAILED", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "RATE_LIMITED", "PAYLOAD_TOO_LARGE", "IMAGE_DIMENSIONS_EXCEEDED", "NOT_IMPLEMENTED", "AUTH_INVALID_CREDENTIALS", "AUTH_TOKEN_INVALID", "AUTH_TOKEN_EXPIRED", "AUTH_EMAIL_NOT_VERIFIED", "AUTH_EMAIL_EXISTS", "AUTH_OAUTH_FAILED", "AUTH_SIGNUP_NOT_ALLOWED", "AUTH_VERIFICATION_FAILED", "AUTH_RESET_TOKEN_INVALID", "AUTH_MFA_REQUIRED", "AUTH_MFA_INVALID_CODE", "AUTH_MFA_ALREADY_ENABLED", "CAPTCHA_FAILED", "EMAIL_DOMAIN_BLOCKED", "VAT_INVALID", "AUTH_MFA_NOT_ENABLED", "SESSION_REQUIRED", "ORG_NOT_FOUND", "ORG_ACCESS_DENIED", "ORG_DISABLED", "ORG_SLUG_EXISTS", "BRAND_NOT_FOUND", "BRAND_ACCESS_DENIED", "BRAND_SLUG_EXISTS", "BRAND_HAS_RECORDS", "USER_NOT_FOUND", "USER_EXISTS", "TERMS_NOT_ACCEPTED", "MEMBER_NOT_FOUND", "MEMBER_SELF_BRAND_RESTRICTION", "ROLE_NOT_FOUND", "ROLE_NAME_EXISTS", "ROLE_IN_USE", "MEMBER_EXISTS", "INVITATION_NOT_FOUND", "INVITATION_EXPIRED", "INVITATION_ALREADY_SENT", "INVITATION_EMAIL_FAILED", "TOKEN_NOT_FOUND", "BILLING_PAYMENT_FAILED", "BILLING_NO_SUBSCRIPTION", "BILLING_TAX_ID_INVALID", "BILLING_PLAN_INVALID", "BILLING_OPERATION_FAILED", "FEATURE_NOT_AVAILABLE", "RESOURCE_LIMIT_REACHED", "PLAN_LIMITS_EXCEEDED", "NO_SUBSCRIPTION", "SUBSCRIPTION_INACTIVE", "BILLING_MANAGED_BY_SHOPIFY", "BILLING_CHECKOUT_REQUIRED", "ZIPPY_ADDON_REQUIRED", "ZIPPY_MESSAGE_LIMIT_REACHED", "SHIPMENT_NOT_FOUND", "SHIPMENT_DOCUMENT_NOT_FOUND", "SHIPMENT_ALREADY_SENT", "SHIPMENT_INVALID_STATE", "SHIPMENT_SERVICE_POINT_REQUIRED", "SHIPMENT_SEND_NOT_ATTEMPTED", "PARCEL_NOT_FOUND", "PARCEL_INVALID_SPLIT", "PICKUP_NOT_FOUND", "PICKUP_FAILED", "CARRIER_ERROR", "CARRIER_AUTH_FAILED", "CARRIER_NOT_FOUND", "CARRIER_PRODUCT_NOT_FOUND", "CARRIER_CONFIG_INVALID", "CARRIER_PARAMETER_INVALID", "CARRIER_SERVER_UNAVAILABLE", "CARRIER_GLS_WRONG_ADDRESS", "CARRIER_DAO_INVALID_POSTAL_CODE", "CARRIER_POSTNORD_BOOKING_FAILED", "CARRIER_FEDEX_BOOKING_FAILED", "CARRIER_DHL_EXPRESS_BOOKING_FAILED", "CARRIER_UPS_BOOKING_FAILED", "CARRIER_MATKAHUOLTO_BOOKING_FAILED", "CARRIER_TRACKING_WEBHOOK_REGISTRATION_FAILED", "CARRIER_CUSTOMS_UNSUPPORTED_PRODUCT", "CARRIER_CUSTOMS_INCOMPLETE", "CARRIER_REQUEST_NOT_FOUND", "CARRIER_REQUEST_LOCKED", "CARRIER_REQUEST_DISPATCH_FAILED", "SHIPPING_RULE_NOT_FOUND", "SHIPPING_RULE_INVALID", "ADDRESS_NOT_FOUND", "ORDER_NOT_FOUND", "ORDER_EXISTS", "ORDER_CHANNEL_NOT_FOUND", "ORDER_CHANNEL_CONFIG_INVALID", "INTEGRATION_NOT_CONFIGURED", "INSTALLATION_NOT_FOUND", "WEBHOOK_SIGNATURE_INVALID", "WEBHOOK_PAYLOAD_INVALID", "SHOPIFY_PENDING_INSTALL_NOT_FOUND", "SHOPIFY_PENDING_INSTALL_EXPIRED", "SHOP_ALREADY_CONNECTED", "SHOP_CLAIMED_BY_ANOTHER_ORG", "WOOCOMMERCE_CONNECT_FAILED", "WOOCOMMERCE_AUTH_STATE_INVALID", "CHECKOUT_TOKEN_INVALID", "ORDER_CHANNEL_TYPE_UNSUPPORTED", "PRINTER_NOT_FOUND", "PRINTER_OFFLINE", "PRINTER_AUTH_TIMEOUT", "PRINTER_JOB_NOT_FOUND", "ORG_INTEGRATION_NOT_FOUND", "ORG_WEBHOOK_NOT_FOUND", "AUTOMATION_NOT_FOUND", "AUTOMATION_INVALID", "ZIPPY_DISABLED", "CONVERSATION_NOT_FOUND", "ADMIN_FORBIDDEN", "JOB_HANDLER_NOT_REGISTERED", "JOB_QUEUE_NOT_CONFIGURED", "JOB_ENQUEUE_FAILED", "JOB_PAYLOAD_INVALID", "EMAIL_SEND_FAILED", "INTEGRATION_DELIVERY_FAILED", "WEBHOOK_DELIVERY_FAILED", "DOCUMENT_GENERATION_FAILED", "AI_UNAVAILABLE", "MIGRATION_PROVIDER_UNKNOWN", "MIGRATION_SOURCE_TOKEN_INVALID", "MIGRATION_SOURCE_UNREACHABLE", "MIGRATION_NOT_FOUND", "MIGRATION_IN_PROGRESS", "DATA_EXPORT_NOT_FOUND", "DATA_EXPORT_IN_PROGRESS", "DATA_EXPORT_NOT_READY", "DATA_EXPORT_EXPIRED", "DATA_EXPORT_FAILED"])
160
+ code_validator = EnumAttributeValidator.new('String', ["INTERNAL_ERROR", "BAD_REQUEST", "VALIDATION_FAILED", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "RATE_LIMITED", "PAYLOAD_TOO_LARGE", "IMAGE_DIMENSIONS_EXCEEDED", "NOT_IMPLEMENTED", "AUTH_INVALID_CREDENTIALS", "AUTH_TOKEN_INVALID", "AUTH_TOKEN_EXPIRED", "AUTH_EMAIL_NOT_VERIFIED", "AUTH_EMAIL_EXISTS", "AUTH_OAUTH_FAILED", "AUTH_SIGNUP_NOT_ALLOWED", "AUTH_VERIFICATION_FAILED", "AUTH_RESET_TOKEN_INVALID", "AUTH_MFA_REQUIRED", "AUTH_MFA_INVALID_CODE", "AUTH_MFA_ALREADY_ENABLED", "CAPTCHA_FAILED", "EMAIL_DOMAIN_BLOCKED", "VAT_INVALID", "AUTH_MFA_NOT_ENABLED", "SESSION_REQUIRED", "ORG_NOT_FOUND", "ORG_ACCESS_DENIED", "ORG_DISABLED", "ORG_SLUG_EXISTS", "BRAND_NOT_FOUND", "BRAND_ACCESS_DENIED", "BRAND_SLUG_EXISTS", "BRAND_HAS_RECORDS", "USER_NOT_FOUND", "USER_EXISTS", "TERMS_NOT_ACCEPTED", "MEMBER_NOT_FOUND", "MEMBER_SELF_BRAND_RESTRICTION", "ROLE_NOT_FOUND", "ROLE_NAME_EXISTS", "ROLE_IN_USE", "MEMBER_EXISTS", "INVITATION_NOT_FOUND", "INVITATION_EXPIRED", "INVITATION_ALREADY_SENT", "INVITATION_EMAIL_FAILED", "TOKEN_NOT_FOUND", "BILLING_PAYMENT_FAILED", "BILLING_NO_SUBSCRIPTION", "BILLING_TAX_ID_INVALID", "BILLING_PLAN_INVALID", "BILLING_OPERATION_FAILED", "FEATURE_NOT_AVAILABLE", "RESOURCE_LIMIT_REACHED", "PLAN_LIMITS_EXCEEDED", "NO_SUBSCRIPTION", "SUBSCRIPTION_INACTIVE", "BILLING_MANAGED_BY_SHOPIFY", "BILLING_CHECKOUT_REQUIRED", "ZIPPY_ADDON_REQUIRED", "ZIPPY_MESSAGE_LIMIT_REACHED", "SHIPMENT_NOT_FOUND", "SHIPMENT_DOCUMENT_NOT_FOUND", "SHIPMENT_ALREADY_SENT", "SHIPMENT_INVALID_STATE", "SHIPMENT_SERVICE_POINT_REQUIRED", "SHIPMENT_SEND_NOT_ATTEMPTED", "PARCEL_NOT_FOUND", "PARCEL_INVALID_SPLIT", "PICKUP_NOT_FOUND", "PICKUP_FAILED", "CARRIER_ERROR", "CARRIER_AUTH_FAILED", "CARRIER_NOT_FOUND", "CARRIER_PRODUCT_NOT_FOUND", "CARRIER_PRODUCT_ROUTE_UNSUPPORTED", "CARRIER_CONFIG_INVALID", "CARRIER_PARAMETER_INVALID", "CARRIER_SERVER_UNAVAILABLE", "CARRIER_GLS_WRONG_ADDRESS", "CARRIER_DAO_INVALID_POSTAL_CODE", "CARRIER_POSTNORD_BOOKING_FAILED", "CARRIER_FEDEX_BOOKING_FAILED", "CARRIER_DHL_EXPRESS_BOOKING_FAILED", "CARRIER_UPS_BOOKING_FAILED", "CARRIER_MATKAHUOLTO_BOOKING_FAILED", "CARRIER_TRACKING_WEBHOOK_REGISTRATION_FAILED", "CARRIER_CUSTOMS_UNSUPPORTED_PRODUCT", "CARRIER_CUSTOMS_INCOMPLETE", "CARRIER_REQUEST_NOT_FOUND", "CARRIER_REQUEST_LOCKED", "CARRIER_REQUEST_DISPATCH_FAILED", "SHIPPING_RULE_NOT_FOUND", "SHIPPING_RULE_INVALID", "ADDRESS_NOT_FOUND", "ORDER_NOT_FOUND", "ORDER_EXISTS", "ORDER_CHANNEL_NOT_FOUND", "ORDER_CHANNEL_CONFIG_INVALID", "INTEGRATION_NOT_CONFIGURED", "INSTALLATION_NOT_FOUND", "WEBHOOK_SIGNATURE_INVALID", "WEBHOOK_PAYLOAD_INVALID", "SHOPIFY_PENDING_INSTALL_NOT_FOUND", "SHOPIFY_PENDING_INSTALL_EXPIRED", "SHOP_ALREADY_CONNECTED", "SHOP_CLAIMED_BY_ANOTHER_ORG", "WOOCOMMERCE_CONNECT_FAILED", "WOOCOMMERCE_AUTH_STATE_INVALID", "CHECKOUT_TOKEN_INVALID", "ORDER_CHANNEL_TYPE_UNSUPPORTED", "PRINTER_NOT_FOUND", "PRINTER_OFFLINE", "PRINTER_AUTH_TIMEOUT", "PRINTER_JOB_NOT_FOUND", "ORG_INTEGRATION_NOT_FOUND", "ORG_WEBHOOK_NOT_FOUND", "AUTOMATION_NOT_FOUND", "AUTOMATION_INVALID", "ZIPPY_DISABLED", "CONVERSATION_NOT_FOUND", "ADMIN_FORBIDDEN", "JOB_HANDLER_NOT_REGISTERED", "JOB_QUEUE_NOT_CONFIGURED", "JOB_ENQUEUE_FAILED", "JOB_PAYLOAD_INVALID", "EMAIL_SEND_FAILED", "INTEGRATION_DELIVERY_FAILED", "WEBHOOK_DELIVERY_FAILED", "DOCUMENT_GENERATION_FAILED", "AI_UNAVAILABLE", "MIGRATION_PROVIDER_UNKNOWN", "MIGRATION_SOURCE_TOKEN_INVALID", "MIGRATION_SOURCE_UNREACHABLE", "MIGRATION_NOT_FOUND", "MIGRATION_IN_PROGRESS", "DATA_EXPORT_NOT_FOUND", "DATA_EXPORT_IN_PROGRESS", "DATA_EXPORT_NOT_READY", "DATA_EXPORT_EXPIRED", "DATA_EXPORT_FAILED"])
161
161
  return false unless code_validator.valid?(@code)
162
162
  true
163
163
  end
@@ -185,7 +185,7 @@ module Zippendo
185
185
  # Custom attribute writer method checking allowed values (enum).
186
186
  # @param [Object] code Object to be assigned
187
187
  def code=(code)
188
- validator = EnumAttributeValidator.new('String', ["INTERNAL_ERROR", "BAD_REQUEST", "VALIDATION_FAILED", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "RATE_LIMITED", "PAYLOAD_TOO_LARGE", "IMAGE_DIMENSIONS_EXCEEDED", "NOT_IMPLEMENTED", "AUTH_INVALID_CREDENTIALS", "AUTH_TOKEN_INVALID", "AUTH_TOKEN_EXPIRED", "AUTH_EMAIL_NOT_VERIFIED", "AUTH_EMAIL_EXISTS", "AUTH_OAUTH_FAILED", "AUTH_SIGNUP_NOT_ALLOWED", "AUTH_VERIFICATION_FAILED", "AUTH_RESET_TOKEN_INVALID", "AUTH_MFA_REQUIRED", "AUTH_MFA_INVALID_CODE", "AUTH_MFA_ALREADY_ENABLED", "CAPTCHA_FAILED", "EMAIL_DOMAIN_BLOCKED", "VAT_INVALID", "AUTH_MFA_NOT_ENABLED", "SESSION_REQUIRED", "ORG_NOT_FOUND", "ORG_ACCESS_DENIED", "ORG_DISABLED", "ORG_SLUG_EXISTS", "BRAND_NOT_FOUND", "BRAND_ACCESS_DENIED", "BRAND_SLUG_EXISTS", "BRAND_HAS_RECORDS", "USER_NOT_FOUND", "USER_EXISTS", "TERMS_NOT_ACCEPTED", "MEMBER_NOT_FOUND", "MEMBER_SELF_BRAND_RESTRICTION", "ROLE_NOT_FOUND", "ROLE_NAME_EXISTS", "ROLE_IN_USE", "MEMBER_EXISTS", "INVITATION_NOT_FOUND", "INVITATION_EXPIRED", "INVITATION_ALREADY_SENT", "INVITATION_EMAIL_FAILED", "TOKEN_NOT_FOUND", "BILLING_PAYMENT_FAILED", "BILLING_NO_SUBSCRIPTION", "BILLING_TAX_ID_INVALID", "BILLING_PLAN_INVALID", "BILLING_OPERATION_FAILED", "FEATURE_NOT_AVAILABLE", "RESOURCE_LIMIT_REACHED", "PLAN_LIMITS_EXCEEDED", "NO_SUBSCRIPTION", "SUBSCRIPTION_INACTIVE", "BILLING_MANAGED_BY_SHOPIFY", "BILLING_CHECKOUT_REQUIRED", "ZIPPY_ADDON_REQUIRED", "ZIPPY_MESSAGE_LIMIT_REACHED", "SHIPMENT_NOT_FOUND", "SHIPMENT_DOCUMENT_NOT_FOUND", "SHIPMENT_ALREADY_SENT", "SHIPMENT_INVALID_STATE", "SHIPMENT_SERVICE_POINT_REQUIRED", "SHIPMENT_SEND_NOT_ATTEMPTED", "PARCEL_NOT_FOUND", "PARCEL_INVALID_SPLIT", "PICKUP_NOT_FOUND", "PICKUP_FAILED", "CARRIER_ERROR", "CARRIER_AUTH_FAILED", "CARRIER_NOT_FOUND", "CARRIER_PRODUCT_NOT_FOUND", "CARRIER_CONFIG_INVALID", "CARRIER_PARAMETER_INVALID", "CARRIER_SERVER_UNAVAILABLE", "CARRIER_GLS_WRONG_ADDRESS", "CARRIER_DAO_INVALID_POSTAL_CODE", "CARRIER_POSTNORD_BOOKING_FAILED", "CARRIER_FEDEX_BOOKING_FAILED", "CARRIER_DHL_EXPRESS_BOOKING_FAILED", "CARRIER_UPS_BOOKING_FAILED", "CARRIER_MATKAHUOLTO_BOOKING_FAILED", "CARRIER_TRACKING_WEBHOOK_REGISTRATION_FAILED", "CARRIER_CUSTOMS_UNSUPPORTED_PRODUCT", "CARRIER_CUSTOMS_INCOMPLETE", "CARRIER_REQUEST_NOT_FOUND", "CARRIER_REQUEST_LOCKED", "CARRIER_REQUEST_DISPATCH_FAILED", "SHIPPING_RULE_NOT_FOUND", "SHIPPING_RULE_INVALID", "ADDRESS_NOT_FOUND", "ORDER_NOT_FOUND", "ORDER_EXISTS", "ORDER_CHANNEL_NOT_FOUND", "ORDER_CHANNEL_CONFIG_INVALID", "INTEGRATION_NOT_CONFIGURED", "INSTALLATION_NOT_FOUND", "WEBHOOK_SIGNATURE_INVALID", "WEBHOOK_PAYLOAD_INVALID", "SHOPIFY_PENDING_INSTALL_NOT_FOUND", "SHOPIFY_PENDING_INSTALL_EXPIRED", "SHOP_ALREADY_CONNECTED", "SHOP_CLAIMED_BY_ANOTHER_ORG", "WOOCOMMERCE_CONNECT_FAILED", "WOOCOMMERCE_AUTH_STATE_INVALID", "CHECKOUT_TOKEN_INVALID", "ORDER_CHANNEL_TYPE_UNSUPPORTED", "PRINTER_NOT_FOUND", "PRINTER_OFFLINE", "PRINTER_AUTH_TIMEOUT", "PRINTER_JOB_NOT_FOUND", "ORG_INTEGRATION_NOT_FOUND", "ORG_WEBHOOK_NOT_FOUND", "AUTOMATION_NOT_FOUND", "AUTOMATION_INVALID", "ZIPPY_DISABLED", "CONVERSATION_NOT_FOUND", "ADMIN_FORBIDDEN", "JOB_HANDLER_NOT_REGISTERED", "JOB_QUEUE_NOT_CONFIGURED", "JOB_ENQUEUE_FAILED", "JOB_PAYLOAD_INVALID", "EMAIL_SEND_FAILED", "INTEGRATION_DELIVERY_FAILED", "WEBHOOK_DELIVERY_FAILED", "DOCUMENT_GENERATION_FAILED", "AI_UNAVAILABLE", "MIGRATION_PROVIDER_UNKNOWN", "MIGRATION_SOURCE_TOKEN_INVALID", "MIGRATION_SOURCE_UNREACHABLE", "MIGRATION_NOT_FOUND", "MIGRATION_IN_PROGRESS", "DATA_EXPORT_NOT_FOUND", "DATA_EXPORT_IN_PROGRESS", "DATA_EXPORT_NOT_READY", "DATA_EXPORT_EXPIRED", "DATA_EXPORT_FAILED"])
188
+ validator = EnumAttributeValidator.new('String', ["INTERNAL_ERROR", "BAD_REQUEST", "VALIDATION_FAILED", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "RATE_LIMITED", "PAYLOAD_TOO_LARGE", "IMAGE_DIMENSIONS_EXCEEDED", "NOT_IMPLEMENTED", "AUTH_INVALID_CREDENTIALS", "AUTH_TOKEN_INVALID", "AUTH_TOKEN_EXPIRED", "AUTH_EMAIL_NOT_VERIFIED", "AUTH_EMAIL_EXISTS", "AUTH_OAUTH_FAILED", "AUTH_SIGNUP_NOT_ALLOWED", "AUTH_VERIFICATION_FAILED", "AUTH_RESET_TOKEN_INVALID", "AUTH_MFA_REQUIRED", "AUTH_MFA_INVALID_CODE", "AUTH_MFA_ALREADY_ENABLED", "CAPTCHA_FAILED", "EMAIL_DOMAIN_BLOCKED", "VAT_INVALID", "AUTH_MFA_NOT_ENABLED", "SESSION_REQUIRED", "ORG_NOT_FOUND", "ORG_ACCESS_DENIED", "ORG_DISABLED", "ORG_SLUG_EXISTS", "BRAND_NOT_FOUND", "BRAND_ACCESS_DENIED", "BRAND_SLUG_EXISTS", "BRAND_HAS_RECORDS", "USER_NOT_FOUND", "USER_EXISTS", "TERMS_NOT_ACCEPTED", "MEMBER_NOT_FOUND", "MEMBER_SELF_BRAND_RESTRICTION", "ROLE_NOT_FOUND", "ROLE_NAME_EXISTS", "ROLE_IN_USE", "MEMBER_EXISTS", "INVITATION_NOT_FOUND", "INVITATION_EXPIRED", "INVITATION_ALREADY_SENT", "INVITATION_EMAIL_FAILED", "TOKEN_NOT_FOUND", "BILLING_PAYMENT_FAILED", "BILLING_NO_SUBSCRIPTION", "BILLING_TAX_ID_INVALID", "BILLING_PLAN_INVALID", "BILLING_OPERATION_FAILED", "FEATURE_NOT_AVAILABLE", "RESOURCE_LIMIT_REACHED", "PLAN_LIMITS_EXCEEDED", "NO_SUBSCRIPTION", "SUBSCRIPTION_INACTIVE", "BILLING_MANAGED_BY_SHOPIFY", "BILLING_CHECKOUT_REQUIRED", "ZIPPY_ADDON_REQUIRED", "ZIPPY_MESSAGE_LIMIT_REACHED", "SHIPMENT_NOT_FOUND", "SHIPMENT_DOCUMENT_NOT_FOUND", "SHIPMENT_ALREADY_SENT", "SHIPMENT_INVALID_STATE", "SHIPMENT_SERVICE_POINT_REQUIRED", "SHIPMENT_SEND_NOT_ATTEMPTED", "PARCEL_NOT_FOUND", "PARCEL_INVALID_SPLIT", "PICKUP_NOT_FOUND", "PICKUP_FAILED", "CARRIER_ERROR", "CARRIER_AUTH_FAILED", "CARRIER_NOT_FOUND", "CARRIER_PRODUCT_NOT_FOUND", "CARRIER_PRODUCT_ROUTE_UNSUPPORTED", "CARRIER_CONFIG_INVALID", "CARRIER_PARAMETER_INVALID", "CARRIER_SERVER_UNAVAILABLE", "CARRIER_GLS_WRONG_ADDRESS", "CARRIER_DAO_INVALID_POSTAL_CODE", "CARRIER_POSTNORD_BOOKING_FAILED", "CARRIER_FEDEX_BOOKING_FAILED", "CARRIER_DHL_EXPRESS_BOOKING_FAILED", "CARRIER_UPS_BOOKING_FAILED", "CARRIER_MATKAHUOLTO_BOOKING_FAILED", "CARRIER_TRACKING_WEBHOOK_REGISTRATION_FAILED", "CARRIER_CUSTOMS_UNSUPPORTED_PRODUCT", "CARRIER_CUSTOMS_INCOMPLETE", "CARRIER_REQUEST_NOT_FOUND", "CARRIER_REQUEST_LOCKED", "CARRIER_REQUEST_DISPATCH_FAILED", "SHIPPING_RULE_NOT_FOUND", "SHIPPING_RULE_INVALID", "ADDRESS_NOT_FOUND", "ORDER_NOT_FOUND", "ORDER_EXISTS", "ORDER_CHANNEL_NOT_FOUND", "ORDER_CHANNEL_CONFIG_INVALID", "INTEGRATION_NOT_CONFIGURED", "INSTALLATION_NOT_FOUND", "WEBHOOK_SIGNATURE_INVALID", "WEBHOOK_PAYLOAD_INVALID", "SHOPIFY_PENDING_INSTALL_NOT_FOUND", "SHOPIFY_PENDING_INSTALL_EXPIRED", "SHOP_ALREADY_CONNECTED", "SHOP_CLAIMED_BY_ANOTHER_ORG", "WOOCOMMERCE_CONNECT_FAILED", "WOOCOMMERCE_AUTH_STATE_INVALID", "CHECKOUT_TOKEN_INVALID", "ORDER_CHANNEL_TYPE_UNSUPPORTED", "PRINTER_NOT_FOUND", "PRINTER_OFFLINE", "PRINTER_AUTH_TIMEOUT", "PRINTER_JOB_NOT_FOUND", "ORG_INTEGRATION_NOT_FOUND", "ORG_WEBHOOK_NOT_FOUND", "AUTOMATION_NOT_FOUND", "AUTOMATION_INVALID", "ZIPPY_DISABLED", "CONVERSATION_NOT_FOUND", "ADMIN_FORBIDDEN", "JOB_HANDLER_NOT_REGISTERED", "JOB_QUEUE_NOT_CONFIGURED", "JOB_ENQUEUE_FAILED", "JOB_PAYLOAD_INVALID", "EMAIL_SEND_FAILED", "INTEGRATION_DELIVERY_FAILED", "WEBHOOK_DELIVERY_FAILED", "DOCUMENT_GENERATION_FAILED", "AI_UNAVAILABLE", "MIGRATION_PROVIDER_UNKNOWN", "MIGRATION_SOURCE_TOKEN_INVALID", "MIGRATION_SOURCE_UNREACHABLE", "MIGRATION_NOT_FOUND", "MIGRATION_IN_PROGRESS", "DATA_EXPORT_NOT_FOUND", "DATA_EXPORT_IN_PROGRESS", "DATA_EXPORT_NOT_READY", "DATA_EXPORT_EXPIRED", "DATA_EXPORT_FAILED"])
189
189
  unless validator.valid?(code)
190
190
  fail ArgumentError, "invalid value for \"code\", must be one of #{validator.allowable_values}."
191
191
  end
@@ -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?
@@ -283,10 +292,6 @@ module Zippendo
283
292
  invalid_properties.push('invalid value for "name", name cannot be nil.')
284
293
  end
285
294
 
286
- if @name.to_s.length < 1
287
- invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
288
- end
289
-
290
295
  if @quantity.nil?
291
296
  invalid_properties.push('invalid value for "quantity", quantity cannot be nil.')
292
297
  end
@@ -295,8 +300,8 @@ module Zippendo
295
300
  invalid_properties.push('invalid value for "quantity", must be smaller than or equal to 9007199254740991.')
296
301
  end
297
302
 
298
- if @quantity <= 0
299
- invalid_properties.push('invalid value for "quantity", must be greater than 0.')
303
+ if @quantity < 0
304
+ invalid_properties.push('invalid value for "quantity", must be greater than or equal to 0.')
300
305
  end
301
306
 
302
307
  if !@unit_price.nil? && @unit_price < 0
@@ -335,10 +340,9 @@ module Zippendo
335
340
  def valid?
336
341
  warn '[DEPRECATED] the `valid?` method is obsolete'
337
342
  return false if @name.nil?
338
- return false if @name.to_s.length < 1
339
343
  return false if @quantity.nil?
340
344
  return false if @quantity > 9007199254740991
341
- return false if @quantity <= 0
345
+ return false if @quantity < 0
342
346
  return false if !@unit_price.nil? && @unit_price < 0
343
347
  return false if !@total_price.nil? && @total_price < 0
344
348
  return false if !@currency.nil? && @currency.to_s.length > 3
@@ -358,10 +362,6 @@ module Zippendo
358
362
  fail ArgumentError, 'name cannot be nil'
359
363
  end
360
364
 
361
- if name.to_s.length < 1
362
- fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
363
- end
364
-
365
365
  @name = name
366
366
  end
367
367
 
@@ -376,8 +376,8 @@ module Zippendo
376
376
  fail ArgumentError, 'invalid value for "quantity", must be smaller than or equal to 9007199254740991.'
377
377
  end
378
378
 
379
- if quantity <= 0
380
- fail ArgumentError, 'invalid value for "quantity", must be greater than 0.'
379
+ if quantity < 0
380
+ fail ArgumentError, 'invalid value for "quantity", must be greater than or equal to 0.'
381
381
  end
382
382
 
383
383
  @quantity = quantity
@@ -474,7 +474,8 @@ module Zippendo
474
474
  requires_shipping == o.requires_shipping &&
475
475
  taxable == o.taxable &&
476
476
  gift_card == o.gift_card &&
477
- vendor == o.vendor
477
+ vendor == o.vendor &&
478
+ id == o.id
478
479
  end
479
480
 
480
481
  # @see the `==` method
@@ -486,7 +487,7 @@ module Zippendo
486
487
  # Calculates hash code according to all attributes.
487
488
  # @return [Integer] Hash code
488
489
  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
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
490
491
  end
491
492
 
492
493
  # Builds the object from hash
@@ -205,46 +205,22 @@ module Zippendo
205
205
  invalid_properties.push('invalid value for "name", name cannot be nil.')
206
206
  end
207
207
 
208
- if @name.to_s.length < 1
209
- invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
210
- end
211
-
212
208
  if @address1.nil?
213
209
  invalid_properties.push('invalid value for "address1", address1 cannot be nil.')
214
210
  end
215
211
 
216
- if @address1.to_s.length < 1
217
- invalid_properties.push('invalid value for "address1", the character length must be greater than or equal to 1.')
218
- end
219
-
220
212
  if @city.nil?
221
213
  invalid_properties.push('invalid value for "city", city cannot be nil.')
222
214
  end
223
215
 
224
- if @city.to_s.length < 1
225
- invalid_properties.push('invalid value for "city", the character length must be greater than or equal to 1.')
226
- end
227
-
228
216
  if @postal_code.nil?
229
217
  invalid_properties.push('invalid value for "postal_code", postal_code cannot be nil.')
230
218
  end
231
219
 
232
- if @postal_code.to_s.length < 1
233
- invalid_properties.push('invalid value for "postal_code", the character length must be greater than or equal to 1.')
234
- end
235
-
236
220
  if @country_code.nil?
237
221
  invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
238
222
  end
239
223
 
240
- if @country_code.to_s.length > 2
241
- invalid_properties.push('invalid value for "country_code", the character length must be smaller than or equal to 2.')
242
- end
243
-
244
- if @country_code.to_s.length < 2
245
- invalid_properties.push('invalid value for "country_code", the character length must be greater than or equal to 2.')
246
- end
247
-
248
224
  pattern = Regexp.new(/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/)
249
225
  if !@email.nil? && @email !~ pattern
250
226
  invalid_properties.push("invalid value for \"email\", must conform to the pattern #{pattern}.")
@@ -258,16 +234,10 @@ module Zippendo
258
234
  def valid?
259
235
  warn '[DEPRECATED] the `valid?` method is obsolete'
260
236
  return false if @name.nil?
261
- return false if @name.to_s.length < 1
262
237
  return false if @address1.nil?
263
- return false if @address1.to_s.length < 1
264
238
  return false if @city.nil?
265
- return false if @city.to_s.length < 1
266
239
  return false if @postal_code.nil?
267
- return false if @postal_code.to_s.length < 1
268
240
  return false if @country_code.nil?
269
- return false if @country_code.to_s.length > 2
270
- return false if @country_code.to_s.length < 2
271
241
  return false if !@email.nil? && @email !~ Regexp.new(/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/)
272
242
  true
273
243
  end
@@ -279,10 +249,6 @@ module Zippendo
279
249
  fail ArgumentError, 'name cannot be nil'
280
250
  end
281
251
 
282
- if name.to_s.length < 1
283
- fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
284
- end
285
-
286
252
  @name = name
287
253
  end
288
254
 
@@ -293,10 +259,6 @@ module Zippendo
293
259
  fail ArgumentError, 'address1 cannot be nil'
294
260
  end
295
261
 
296
- if address1.to_s.length < 1
297
- fail ArgumentError, 'invalid value for "address1", the character length must be greater than or equal to 1.'
298
- end
299
-
300
262
  @address1 = address1
301
263
  end
302
264
 
@@ -307,10 +269,6 @@ module Zippendo
307
269
  fail ArgumentError, 'city cannot be nil'
308
270
  end
309
271
 
310
- if city.to_s.length < 1
311
- fail ArgumentError, 'invalid value for "city", the character length must be greater than or equal to 1.'
312
- end
313
-
314
272
  @city = city
315
273
  end
316
274
 
@@ -321,10 +279,6 @@ module Zippendo
321
279
  fail ArgumentError, 'postal_code cannot be nil'
322
280
  end
323
281
 
324
- if postal_code.to_s.length < 1
325
- fail ArgumentError, 'invalid value for "postal_code", the character length must be greater than or equal to 1.'
326
- end
327
-
328
282
  @postal_code = postal_code
329
283
  end
330
284
 
@@ -335,14 +289,6 @@ module Zippendo
335
289
  fail ArgumentError, 'country_code cannot be nil'
336
290
  end
337
291
 
338
- if country_code.to_s.length > 2
339
- fail ArgumentError, 'invalid value for "country_code", the character length must be smaller than or equal to 2.'
340
- end
341
-
342
- if country_code.to_s.length < 2
343
- fail ArgumentError, 'invalid value for "country_code", the character length must be greater than or equal to 2.'
344
- end
345
-
346
292
  @country_code = country_code
347
293
  end
348
294
 
@@ -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