zippendo 1.2.5 → 1.2.7
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/GetOrder200Response.md +1 -1
- data/docs/GetOrder200ResponseOrderLinesInner.md +56 -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/docs/UpdateOrgRequest.md +0 -2
- data/lib/zippendo/models/batch_send_shipments200_response_results_inner.rb +2 -2
- data/lib/zippendo/models/create_order201_response_order_lines_inner.rb +5 -14
- data/lib/zippendo/models/create_order201_response_shipping_address.rb +0 -54
- data/lib/zippendo/models/get_order200_response.rb +2 -2
- data/lib/zippendo/models/get_order200_response_order_lines_inner.rb +569 -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/models/update_org_request.rb +1 -11
- data/lib/zippendo/version.rb +1 -1
- data/lib/zippendo.rb +3 -0
- metadata +7 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fa810e817db96e274d6c2e9908feb8f6eff6249c53f043fb443d5b77548bb8c
|
|
4
|
+
data.tar.gz: dac2ef69a0f58ab88d339bf34ee24e832771b20bb9577d14ab86544d59975340
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ac0f0daba439bbff95a83b07feedcdcf29e698e39847f22d0614a38b635cce87b9acd84c8d1f5198fdb9585c2b6ce5f085e0780c6787b3c2b60cf6b837e9926
|
|
7
|
+
data.tar.gz: 9b3310c6a99711a644119cf183044a3012d1c7815b2809fc0e6c536366c88d8cb0f25265bad3fe34791395806a84cf5b42867b32d00ff0d0d26a52d4c5182c2a
|
data/docs/GetOrder200Response.md
CHANGED
|
@@ -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<
|
|
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,56 @@
|
|
|
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
|
+
| **packed_quantity** | **Integer** | Quantity already allocated to outbound shipments. | |
|
|
27
|
+
|
|
28
|
+
## Example
|
|
29
|
+
|
|
30
|
+
```ruby
|
|
31
|
+
require 'zippendo'
|
|
32
|
+
|
|
33
|
+
instance = Zippendo::GetOrder200ResponseOrderLinesInner.new(
|
|
34
|
+
sku: SKU-1042-BLK,
|
|
35
|
+
name: Wool Sweater,
|
|
36
|
+
quantity: 2,
|
|
37
|
+
unit_price: 499,
|
|
38
|
+
total_price: 998,
|
|
39
|
+
currency: DKK,
|
|
40
|
+
weight: 0.5,
|
|
41
|
+
weight_unit: kg,
|
|
42
|
+
variant_id: 44218900291,
|
|
43
|
+
product_id: 8123456789,
|
|
44
|
+
image_url: https://cdn.example.dk/products/sweater.jpg,
|
|
45
|
+
hs_code: 611020,
|
|
46
|
+
country_of_origin: DK,
|
|
47
|
+
province_of_origin: DK-84,
|
|
48
|
+
barcode: 5712345678901,
|
|
49
|
+
requires_shipping: true,
|
|
50
|
+
taxable: true,
|
|
51
|
+
gift_card: false,
|
|
52
|
+
vendor: Norse Knits,
|
|
53
|
+
packed_quantity: 1
|
|
54
|
+
)
|
|
55
|
+
```
|
|
56
|
+
|
|
@@ -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
|
+
|
data/docs/UpdateOrderRequest.md
CHANGED
|
@@ -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
|
|
data/docs/UpdateOrgRequest.md
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
| **description** | **String** | Organization description | [optional] |
|
|
10
10
|
| **currency** | **String** | Billing currency (ISO 4217 code) | [optional] |
|
|
11
11
|
| **vat_number** | **String** | Company VAT/tax ID for invoices | [optional] |
|
|
12
|
-
| **overage_enabled** | **Boolean** | Allow shipments beyond plan limit (overage charges apply) | [optional] |
|
|
13
12
|
| **phone** | **String** | Billing/contact phone number | [optional] |
|
|
14
13
|
| **billing_email** | **String** | Billing email for invoices | [optional] |
|
|
15
14
|
| **company_name** | **String** | Legal company name | [optional] |
|
|
@@ -31,7 +30,6 @@ instance = Zippendo::UpdateOrgRequest.new(
|
|
|
31
30
|
description: Parcel and freight logistics across the Nordics,
|
|
32
31
|
currency: DKK,
|
|
33
32
|
vat_number: DK12345678,
|
|
34
|
-
overage_enabled: false,
|
|
35
33
|
phone: +45 50 47 02 20,
|
|
36
34
|
billing_email: billing@nordic-logistics.dk,
|
|
37
35
|
company_name: Nordic Logistics ApS,
|
|
@@ -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", "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", "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
|
|
@@ -283,10 +283,6 @@ module Zippendo
|
|
|
283
283
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
284
284
|
end
|
|
285
285
|
|
|
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
286
|
if @quantity.nil?
|
|
291
287
|
invalid_properties.push('invalid value for "quantity", quantity cannot be nil.')
|
|
292
288
|
end
|
|
@@ -295,8 +291,8 @@ module Zippendo
|
|
|
295
291
|
invalid_properties.push('invalid value for "quantity", must be smaller than or equal to 9007199254740991.')
|
|
296
292
|
end
|
|
297
293
|
|
|
298
|
-
if @quantity
|
|
299
|
-
invalid_properties.push('invalid value for "quantity", must be greater than 0.')
|
|
294
|
+
if @quantity < 0
|
|
295
|
+
invalid_properties.push('invalid value for "quantity", must be greater than or equal to 0.')
|
|
300
296
|
end
|
|
301
297
|
|
|
302
298
|
if !@unit_price.nil? && @unit_price < 0
|
|
@@ -335,10 +331,9 @@ module Zippendo
|
|
|
335
331
|
def valid?
|
|
336
332
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
337
333
|
return false if @name.nil?
|
|
338
|
-
return false if @name.to_s.length < 1
|
|
339
334
|
return false if @quantity.nil?
|
|
340
335
|
return false if @quantity > 9007199254740991
|
|
341
|
-
return false if @quantity
|
|
336
|
+
return false if @quantity < 0
|
|
342
337
|
return false if !@unit_price.nil? && @unit_price < 0
|
|
343
338
|
return false if !@total_price.nil? && @total_price < 0
|
|
344
339
|
return false if !@currency.nil? && @currency.to_s.length > 3
|
|
@@ -358,10 +353,6 @@ module Zippendo
|
|
|
358
353
|
fail ArgumentError, 'name cannot be nil'
|
|
359
354
|
end
|
|
360
355
|
|
|
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
356
|
@name = name
|
|
366
357
|
end
|
|
367
358
|
|
|
@@ -376,8 +367,8 @@ module Zippendo
|
|
|
376
367
|
fail ArgumentError, 'invalid value for "quantity", must be smaller than or equal to 9007199254740991.'
|
|
377
368
|
end
|
|
378
369
|
|
|
379
|
-
if quantity
|
|
380
|
-
fail ArgumentError, 'invalid value for "quantity", must be greater than 0.'
|
|
370
|
+
if quantity < 0
|
|
371
|
+
fail ArgumentError, 'invalid value for "quantity", must be greater than or equal to 0.'
|
|
381
372
|
end
|
|
382
373
|
|
|
383
374
|
@quantity = quantity
|
|
@@ -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
|
|
|
@@ -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',
|