zippendo 1.1.0 → 1.1.2
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/BatchSplitShipmentRequest.md +1 -1
- data/docs/CreateShipment201ResponseParcelsInner.md +2 -2
- data/docs/CreateShipment201ResponseTracking.md +2 -2
- data/docs/CreateShipmentRequestCarrierSettings.md +1 -1
- data/docs/CreateShipmentRequestParcelsInner.md +2 -2
- data/docs/CreateShippingRule201Response.md +2 -2
- data/docs/CreateShippingRuleRequest.md +2 -2
- data/docs/{CreateShippingRuleRequestAdditionalParametersAnyOfValue.md → CreateShippingRuleRequestAdditionalParametersValue.md} +3 -3
- data/docs/{CreateShippingRuleRequestAdditionalParametersAnyOfValueAnyOf.md → CreateShippingRuleRequestAdditionalParametersValueAnyOf.md} +3 -3
- data/docs/ListShipments200ResponseDataInnerCarrierSettings.md +1 -1
- data/docs/ListShippingRules200ResponseDataInner.md +2 -2
- data/docs/{ListShipments200ResponseDataInnerCarrierSettingsAdditionalParametersValue.md → ListShippingRules200ResponseDataInnerAdditionalParametersValue.md} +3 -3
- data/docs/{ListShipments200ResponseDataInnerCarrierSettingsAdditionalParametersValueAnyOf.md → ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOf.md} +3 -3
- data/docs/{ListShippingRules200ResponseDataInnerAdditionalParametersInner.md → ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner.md} +2 -7
- data/docs/ShipmentsApi.md +1 -1
- data/docs/SplitShipmentRequest.md +1 -1
- data/docs/UpdateShippingRuleRequest.md +2 -2
- data/lib/zippendo/models/batch_split_shipment_request.rb +2 -2
- data/lib/zippendo/models/create_shipment201_response_parcels_inner.rb +2 -2
- data/lib/zippendo/models/create_shipment201_response_tracking.rb +2 -2
- data/lib/zippendo/models/create_shipment_request_carrier_settings.rb +1 -1
- data/lib/zippendo/models/create_shipment_request_parcels_inner.rb +2 -2
- data/lib/zippendo/models/create_shipping_rule201_response.rb +3 -3
- data/lib/zippendo/models/create_shipping_rule_request.rb +5 -2
- data/lib/zippendo/models/{create_shipping_rule_request_additional_parameters_any_of_value.rb → create_shipping_rule_request_additional_parameters_value.rb} +2 -2
- data/lib/zippendo/models/{create_shipping_rule_request_additional_parameters_any_of_value_any_of.rb → create_shipping_rule_request_additional_parameters_value_any_of.rb} +4 -4
- data/lib/zippendo/models/list_shipments200_response_data_inner_carrier_settings.rb +1 -1
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner.rb +3 -3
- data/lib/zippendo/models/{list_shipments200_response_data_inner_carrier_settings_additional_parameters_value.rb → list_shipping_rules200_response_data_inner_additional_parameters_value.rb} +2 -2
- data/lib/zippendo/models/{list_shipments200_response_data_inner_carrier_settings_additional_parameters_value_any_of.rb → list_shipping_rules200_response_data_inner_additional_parameters_value_any_of.rb} +4 -4
- data/lib/zippendo/models/{create_shipping_rule_request_additional_parameters_any_of_value_any_of_coordinates_inner.rb → list_shipping_rules200_response_data_inner_additional_parameters_value_any_of_coordinates_inner.rb} +1 -1
- data/lib/zippendo/models/split_shipment_request.rb +2 -2
- data/lib/zippendo/models/update_shipping_rule_request.rb +5 -2
- data/lib/zippendo/version.rb +1 -1
- data/lib/zippendo.rb +5 -8
- metadata +11 -339
- data/docs/CreateShippingRuleRequestAdditionalParameters.md +0 -15
- data/docs/CreateShippingRuleRequestAdditionalParametersAnyOfInner.md +0 -20
- data/docs/CreateShippingRuleRequestAdditionalParametersAnyOfValueAnyOfCoordinatesInner.md +0 -15
- data/lib/zippendo/models/create_shipping_rule_request_additional_parameters.rb +0 -104
- data/lib/zippendo/models/create_shipping_rule_request_additional_parameters_any_of_inner.rb +0 -201
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_additional_parameters_inner.rb +0 -201
- data/spec/api/addresses_api_spec.rb +0 -103
- data/spec/api/billing_api_spec.rb +0 -47
- data/spec/api/brands_api_spec.rb +0 -167
- data/spec/api/carrier_catalog_api_spec.rb +0 -47
- data/spec/api/carriers_api_spec.rb +0 -130
- data/spec/api/orders_api_spec.rb +0 -106
- data/spec/api/orgs_api_spec.rb +0 -122
- data/spec/api/quotes_api_spec.rb +0 -48
- data/spec/api/rules_api_spec.rb +0 -102
- data/spec/api/shipments_api_spec.rb +0 -213
- data/spec/api/system_api_spec.rb +0 -46
- data/spec/api/tokens_api_spec.rb +0 -114
- data/spec/api/webhooks_api_spec.rb +0 -130
- data/spec/models/batch_send_shipments200_response_results_inner_spec.rb +0 -68
- data/spec/models/batch_send_shipments200_response_spec.rb +0 -42
- data/spec/models/batch_send_shipments200_response_summary_spec.rb +0 -48
- data/spec/models/batch_send_shipments_request_spec.rb +0 -36
- data/spec/models/batch_split_shipment201_response_spec.rb +0 -42
- data/spec/models/batch_split_shipment_request_shipments_inner_order_lines_inner_spec.rb +0 -42
- data/spec/models/batch_split_shipment_request_shipments_inner_spec.rb +0 -42
- data/spec/models/batch_split_shipment_request_spec.rb +0 -66
- data/spec/models/check_brand_slug200_response_spec.rb +0 -42
- data/spec/models/connect_carrier_request_spec.rb +0 -48
- data/spec/models/create_address_request_spec.rb +0 -106
- data/spec/models/create_api_token201_response_spec.rb +0 -84
- data/spec/models/create_api_token_request_spec.rb +0 -58
- data/spec/models/create_order201_response_order_lines_inner_spec.rb +0 -148
- data/spec/models/create_order201_response_shipping_address_spec.rb +0 -108
- data/spec/models/create_order201_response_spec.rb +0 -142
- data/spec/models/create_order_request_order_lines_inner_spec.rb +0 -148
- data/spec/models/create_order_request_shipping_address_spec.rb +0 -108
- data/spec/models/create_order_request_spec.rb +0 -102
- data/spec/models/create_org_brand_request_spec.rb +0 -108
- data/spec/models/create_org_webhook201_response_spec.rb +0 -78
- data/spec/models/create_org_webhook_request_spec.rb +0 -58
- data/spec/models/create_shipment201_response_activities_inner_spec.rb +0 -64
- data/spec/models/create_shipment201_response_documents_inner_spec.rb +0 -90
- data/spec/models/create_shipment201_response_errors_inner_spec.rb +0 -60
- data/spec/models/create_shipment201_response_logs_inner_spec.rb +0 -82
- data/spec/models/create_shipment201_response_parcels_inner_dimensions_spec.rb +0 -48
- data/spec/models/create_shipment201_response_parcels_inner_order_lines_inner_spec.rb +0 -90
- data/spec/models/create_shipment201_response_parcels_inner_spec.rb +0 -100
- data/spec/models/create_shipment201_response_parties_inner_attributes_inner_spec.rb +0 -42
- data/spec/models/create_shipment201_response_parties_inner_spec.rb +0 -100
- data/spec/models/create_shipment201_response_pickup_details_spec.rb +0 -54
- data/spec/models/create_shipment201_response_shipping_rule_spec.rb +0 -102
- data/spec/models/create_shipment201_response_spec.rb +0 -182
- data/spec/models/create_shipment201_response_tracking_spec.rb +0 -66
- data/spec/models/create_shipment_request_carrier_settings_spec.rb +0 -54
- data/spec/models/create_shipment_request_parcels_inner_dimensions_spec.rb +0 -48
- data/spec/models/create_shipment_request_parcels_inner_order_lines_inner_spec.rb +0 -90
- data/spec/models/create_shipment_request_parcels_inner_spec.rb +0 -100
- data/spec/models/create_shipment_request_parties_inner_attributes_inner_spec.rb +0 -42
- data/spec/models/create_shipment_request_parties_inner_spec.rb +0 -100
- data/spec/models/create_shipment_request_pickup_details_spec.rb +0 -54
- data/spec/models/create_shipment_request_spec.rb +0 -116
- data/spec/models/create_shipping_quote200_response_rates_inner_spec.rb +0 -96
- data/spec/models/create_shipping_quote200_response_spec.rb +0 -36
- data/spec/models/create_shipping_quote400_response_spec.rb +0 -42
- data/spec/models/create_shipping_quote404_response_spec.rb +0 -42
- data/spec/models/create_shipping_quote_request_destination_spec.rb +0 -66
- data/spec/models/create_shipping_quote_request_items_inner_spec.rb +0 -72
- data/spec/models/create_shipping_quote_request_spec.rb +0 -54
- data/spec/models/create_shipping_rule201_response_spec.rb +0 -208
- data/spec/models/create_shipping_rule_request_additional_parameters_any_of_inner_spec.rb +0 -42
- data/spec/models/create_shipping_rule_request_additional_parameters_any_of_value_any_of_coordinates_inner_spec.rb +0 -21
- data/spec/models/create_shipping_rule_request_additional_parameters_any_of_value_any_of_spec.rb +0 -54
- data/spec/models/create_shipping_rule_request_additional_parameters_any_of_value_spec.rb +0 -21
- data/spec/models/create_shipping_rule_request_additional_parameters_spec.rb +0 -21
- data/spec/models/create_shipping_rule_request_conditions_inner_one_of1_spec.rb +0 -78
- data/spec/models/create_shipping_rule_request_conditions_inner_one_of2_spec.rb +0 -74
- data/spec/models/create_shipping_rule_request_conditions_inner_one_of3_spec.rb +0 -68
- data/spec/models/create_shipping_rule_request_conditions_inner_one_of4_spec.rb +0 -52
- data/spec/models/create_shipping_rule_request_conditions_inner_one_of_spec.rb +0 -64
- data/spec/models/create_shipping_rule_request_conditions_inner_spec.rb +0 -32
- data/spec/models/create_shipping_rule_request_spec.rb +0 -184
- data/spec/models/delete_org_webhook200_response_spec.rb +0 -36
- data/spec/models/delete_shipping_rule200_response_spec.rb +0 -36
- data/spec/models/get_billing_usage200_response_add_ons_inner_spec.rb +0 -58
- data/spec/models/get_billing_usage200_response_current_period_spec.rb +0 -42
- data/spec/models/get_billing_usage200_response_limits_spec.rb +0 -72
- data/spec/models/get_billing_usage200_response_limits_team_members_spec.rb +0 -42
- data/spec/models/get_billing_usage200_response_shipments_spec.rb +0 -54
- data/spec/models/get_billing_usage200_response_spec.rb +0 -54
- data/spec/models/get_order200_response_shipments_inner_spec.rb +0 -98
- data/spec/models/get_order200_response_shipping_rule_spec.rb +0 -102
- data/spec/models/get_order200_response_spec.rb +0 -160
- data/spec/models/get_org200_response_count_spec.rb +0 -36
- data/spec/models/get_org200_response_spec.rb +0 -132
- data/spec/models/get_org_branding200_response_spec.rb +0 -48
- data/spec/models/health_check200_response_spec.rb +0 -48
- data/spec/models/list_addresses200_response_data_inner_spec.rb +0 -130
- data/spec/models/list_addresses200_response_spec.rb +0 -60
- data/spec/models/list_api_tokens200_response_data_inner_created_by_spec.rb +0 -48
- data/spec/models/list_api_tokens200_response_data_inner_spec.rb +0 -84
- data/spec/models/list_api_tokens200_response_spec.rb +0 -60
- data/spec/models/list_api_tokens401_response_spec.rb +0 -52
- data/spec/models/list_available_carriers200_response_inner_required_fields_inner_spec.rb +0 -70
- data/spec/models/list_available_carriers200_response_inner_spec.rb +0 -96
- data/spec/models/list_carrier_product_service_points200_response_inner_address_spec.rb +0 -66
- data/spec/models/list_carrier_product_service_points200_response_inner_spec.rb +0 -78
- data/spec/models/list_carrier_product_service_points_request_spec.rb +0 -66
- data/spec/models/list_carrier_products200_response_inner_additional_parameters_inner_options_inner_spec.rb +0 -48
- data/spec/models/list_carrier_products200_response_inner_additional_parameters_inner_spec.rb +0 -76
- data/spec/models/list_carrier_products200_response_inner_services_inner_spec.rb +0 -42
- data/spec/models/list_carrier_products200_response_inner_spec.rb +0 -100
- data/spec/models/list_carrier_products200_response_inner_weight_limits_spec.rb +0 -52
- data/spec/models/list_carriers200_response_data_inner_config_value_spec.rb +0 -21
- data/spec/models/list_carriers200_response_data_inner_spec.rb +0 -96
- data/spec/models/list_carriers200_response_spec.rb +0 -60
- data/spec/models/list_orders200_response_data_inner_order_channel_spec.rb +0 -52
- data/spec/models/list_orders200_response_data_inner_spec.rb +0 -112
- data/spec/models/list_orders200_response_spec.rb +0 -60
- data/spec/models/list_org_brands200_response_data_inner_spec.rb +0 -144
- data/spec/models/list_org_brands200_response_spec.rb +0 -36
- data/spec/models/list_org_webhook_deliveries200_response_data_inner_spec.rb +0 -96
- data/spec/models/list_org_webhook_deliveries200_response_spec.rb +0 -60
- data/spec/models/list_org_webhooks200_response_data_inner_spec.rb +0 -72
- data/spec/models/list_org_webhooks200_response_spec.rb +0 -60
- data/spec/models/list_shipments200_response_data_inner_address_spec.rb +0 -130
- data/spec/models/list_shipments200_response_data_inner_carrier_settings_additional_parameters_value_any_of_spec.rb +0 -54
- data/spec/models/list_shipments200_response_data_inner_carrier_settings_additional_parameters_value_spec.rb +0 -21
- data/spec/models/list_shipments200_response_data_inner_carrier_settings_spec.rb +0 -54
- data/spec/models/list_shipments200_response_data_inner_spec.rb +0 -92
- data/spec/models/list_shipments200_response_spec.rb +0 -60
- data/spec/models/list_shipping_rules200_response_data_inner_additional_parameters_inner_spec.rb +0 -42
- data/spec/models/list_shipping_rules200_response_data_inner_carrier_spec.rb +0 -72
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of1_spec.rb +0 -78
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of2_spec.rb +0 -74
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of3_spec.rb +0 -68
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of4_spec.rb +0 -52
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of_spec.rb +0 -64
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_spec.rb +0 -32
- data/spec/models/list_shipping_rules200_response_data_inner_label_printer_spec.rb +0 -42
- data/spec/models/list_shipping_rules200_response_data_inner_return_shipping_rule_spec.rb +0 -42
- data/spec/models/list_shipping_rules200_response_data_inner_spec.rb +0 -238
- data/spec/models/list_shipping_rules200_response_spec.rb +0 -60
- data/spec/models/revoke_api_token200_response_spec.rb +0 -36
- data/spec/models/send_shipment422_response_errors_inner_spec.rb +0 -42
- data/spec/models/send_shipment422_response_spec.rb +0 -58
- data/spec/models/split_shipment201_response_spec.rb +0 -42
- data/spec/models/split_shipment_parcel200_response_spec.rb +0 -36
- data/spec/models/split_shipment_parcel_request_parcels_inner_spec.rb +0 -42
- data/spec/models/split_shipment_parcel_request_spec.rb +0 -36
- data/spec/models/split_shipment_request_spec.rb +0 -72
- data/spec/models/test_org_webhook200_response_spec.rb +0 -36
- data/spec/models/track_shipment200_response_events_inner_spec.rb +0 -70
- data/spec/models/track_shipment200_response_spec.rb +0 -64
- data/spec/models/update_address_request_spec.rb +0 -106
- data/spec/models/update_api_token_request_spec.rb +0 -36
- data/spec/models/update_carrier_request_spec.rb +0 -48
- data/spec/models/update_order_request_spec.rb +0 -100
- data/spec/models/update_org200_response_spec.rb +0 -126
- data/spec/models/update_org_brand_request_spec.rb +0 -108
- data/spec/models/update_org_branding_request_spec.rb +0 -42
- data/spec/models/update_org_request_spec.rb +0 -118
- data/spec/models/update_org_webhook_request_spec.rb +0 -58
- data/spec/models/update_shipment_request_spec.rb +0 -122
- data/spec/models/update_shipping_rule_request_spec.rb +0 -184
- data/spec/models/verify_api_token200_response_spec.rb +0 -66
- data/spec/models/verify_api_token_request_spec.rb +0 -36
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9082f54412379a1ec68798c7f6c703400efd5f6e87e828c7d43f55c877172de
|
|
4
|
+
data.tar.gz: c1df4fb00fb2e26fe87e963b19136b5031ce6934027b191a33d5224de1b7e35f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 543e14101135ef460dbb326da2fe41a7251d5cd311b4ecddb199617155f719ee0304001ae6d34c59a1693c7415dd7e3f38ef89d4cec9e786517b19bee224b281
|
|
7
|
+
data.tar.gz: d5ee65224640d264251382e3c6b991a7ef762f8b5a3baa871b55cdc46a145f7583c1774c182c000b6fab158c569c5d5e7e800df1a649b65d7e077f767f8e98a4
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **carrier_id** | **String** | Carrier for all new shipments. Copied from the original if omitted. | [optional] |
|
|
10
10
|
| **product_id** | **String** | Carrier product for all new shipments. Copied from the original if omitted. | [optional] |
|
|
11
11
|
| **services** | **Array<String>** | Service codes for all new shipments. Copied from the original if omitted. | [optional] |
|
|
12
|
-
| **additional_parameters** | **Hash<String,
|
|
12
|
+
| **additional_parameters** | [**Hash<String, CreateShippingRuleRequestAdditionalParametersValue>**](CreateShippingRuleRequestAdditionalParametersValue.md) | Carrier-specific parameters for all new shipments. Copied from the original if omitted. | [optional] |
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
| **tracking_url** | **String** | Public carrier tracking URL for this parcel. | [optional] |
|
|
14
14
|
| **label_free_code** | **String** | Label-free drop-off code for the parcel. | [optional] |
|
|
15
15
|
| **qr_code_link** | **String** | DEPRECATED — use `qrCodeDataUri` (embeddable data URI) or `qrCodeUrl` (hosted link). Catch-all that carries whichever applies, kept populated for backwards compatibility during the migration and until it is disabled. | [optional] |
|
|
16
|
-
| **qr_code_data_uri** | **String** | Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email.
|
|
17
|
-
| **qr_code_url** | **String** | Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it.
|
|
16
|
+
| **qr_code_data_uri** | **String** | Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email. Populated whenever the image bytes are available, including for carriers that host the image (it is fetched and inlined); null if the carrier published no QR code or its image could not be retrieved. | [optional] |
|
|
17
|
+
| **qr_code_url** | **String** | Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it. Independent of `qrCodeDataUri` — both are set when the hosted image was inlined successfully; null for carriers that only return embedded bytes. | [optional] |
|
|
18
18
|
|
|
19
19
|
## Example
|
|
20
20
|
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
| **number** | **String** | Carrier tracking number. | [optional] |
|
|
9
9
|
| **label_free_code** | **String** | Label-free drop-off code. | [optional] |
|
|
10
10
|
| **qr_code_link** | **String** | DEPRECATED — use `qrCodeDataUri` (embeddable data URI) or `qrCodeUrl` (hosted link). Catch-all that carries whichever applies, kept populated for backwards compatibility during the migration and until it is disabled. | [optional] |
|
|
11
|
-
| **qr_code_data_uri** | **String** | Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email.
|
|
12
|
-
| **qr_code_url** | **String** | Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it.
|
|
11
|
+
| **qr_code_data_uri** | **String** | Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email. Populated whenever the image bytes are available, including for carriers that host the image (it is fetched and inlined); null if the carrier published no QR code or its image could not be retrieved. | [optional] |
|
|
12
|
+
| **qr_code_url** | **String** | Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it. Independent of `qrCodeDataUri` — both are set when the hosted image was inlined successfully; null for carriers that only return embedded bytes. | [optional] |
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **carrier_id** | **String** | Identifier of the carrier to use. | |
|
|
8
8
|
| **product_id** | **String** | Identifier of the carrier product/service. | |
|
|
9
9
|
| **services** | **Array<String>** | Additional service codes requested from the carrier. | |
|
|
10
|
-
| **additional_parameters** | [**Hash<String,
|
|
10
|
+
| **additional_parameters** | [**Hash<String, CreateShippingRuleRequestAdditionalParametersValue>**](CreateShippingRuleRequestAdditionalParametersValue.md) | Carrier-specific extra parameters as key/value pairs. | |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
| **tracking_url** | **String** | Public carrier tracking URL for this parcel. | [optional] |
|
|
14
14
|
| **label_free_code** | **String** | Label-free drop-off code for the parcel. | [optional] |
|
|
15
15
|
| **qr_code_link** | **String** | DEPRECATED — use `qrCodeDataUri` (embeddable data URI) or `qrCodeUrl` (hosted link). Catch-all that carries whichever applies, kept populated for backwards compatibility during the migration and until it is disabled. | [optional] |
|
|
16
|
-
| **qr_code_data_uri** | **String** | Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email.
|
|
17
|
-
| **qr_code_url** | **String** | Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it.
|
|
16
|
+
| **qr_code_data_uri** | **String** | Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email. Populated whenever the image bytes are available, including for carriers that host the image (it is fetched and inlined); null if the carrier published no QR code or its image could not be retrieved. | [optional] |
|
|
17
|
+
| **qr_code_url** | **String** | Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it. Independent of `qrCodeDataUri` — both are set when the hosted image was inlined successfully; null for carriers that only return embedded bytes. | [optional] |
|
|
18
18
|
|
|
19
19
|
## Example
|
|
20
20
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
| **carrier_id** | **String** | Carrier ID | |
|
|
12
12
|
| **product_id** | **String** | Product ID from carrier | |
|
|
13
13
|
| **services** | **Array<String>** | List of selected services | |
|
|
14
|
-
| **additional_parameters** | [**
|
|
14
|
+
| **additional_parameters** | [**Hash<String, ListShippingRules200ResponseDataInnerAdditionalParametersValue>**](ListShippingRules200ResponseDataInnerAdditionalParametersValue.md) | Carrier-specific extra parameters, keyed by the carrier parameter `key` from the product's `additionalParameters[].key`. | |
|
|
15
15
|
| **address_id** | **String** | Sender address ID | |
|
|
16
16
|
| **receiving_countries** | **Array<String>** | List of supported country codes | |
|
|
17
17
|
| **email_notification** | **Boolean** | Send email notification to recipient | [default to false] |
|
|
@@ -47,7 +47,7 @@ instance = Zippendo::CreateShippingRule201Response.new(
|
|
|
47
47
|
carrier_id: carr_01HZX9K2QF,
|
|
48
48
|
product_id: PNL13,
|
|
49
49
|
services: ["EMAIL_NOTIFICATION"],
|
|
50
|
-
additional_parameters:
|
|
50
|
+
additional_parameters: {"returnFunctionality":"LABELLESS","returnQrEmail":true},
|
|
51
51
|
address_id: addr_01HZX9K2QF,
|
|
52
52
|
receiving_countries: ["DK","SE"],
|
|
53
53
|
email_notification: true,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
| **carrier_id** | **String** | Carrier ID | |
|
|
11
11
|
| **product_id** | **String** | Product ID from carrier | |
|
|
12
12
|
| **services** | **Array<String>** | List of selected services | |
|
|
13
|
-
| **additional_parameters** | [**
|
|
13
|
+
| **additional_parameters** | [**Hash<String, CreateShippingRuleRequestAdditionalParametersValue>**](CreateShippingRuleRequestAdditionalParametersValue.md) | Carrier-specific extra parameters, keyed by the carrier parameter `key` from the product's `additionalParameters[].key` (e.g. `returnFunctionality`). | [optional] |
|
|
14
14
|
| **address_id** | **String** | Sender address ID | |
|
|
15
15
|
| **receiving_countries** | **Array<String>** | List of supported country codes | |
|
|
16
16
|
| **email_notification** | **Boolean** | Send email notification to recipient | [optional][default to false] |
|
|
@@ -42,7 +42,7 @@ instance = Zippendo::CreateShippingRuleRequest.new(
|
|
|
42
42
|
carrier_id: carr_01HZX9K2QF,
|
|
43
43
|
product_id: PNL13,
|
|
44
44
|
services: ["EMAIL_NOTIFICATION"],
|
|
45
|
-
additional_parameters:
|
|
45
|
+
additional_parameters: {"returnFunctionality":"LABELLESS","returnQrEmail":true},
|
|
46
46
|
address_id: addr_01HZX9K2QF,
|
|
47
47
|
receiving_countries: ["DK","SE"],
|
|
48
48
|
email_notification: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Zippendo::
|
|
1
|
+
# Zippendo::CreateShippingRuleRequestAdditionalParametersValue
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
| **id** | **String** | Identifier of the selected service point. | |
|
|
8
8
|
| **name** | **String** | Display name of the service point. | |
|
|
9
9
|
| **address** | **String** | Formatted address of the service point. | |
|
|
10
|
-
| **coordinates** | [**Array<
|
|
10
|
+
| **coordinates** | [**Array<ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner>**](ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner.md) | Latitude/longitude of the service point. | [optional] |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'zippendo'
|
|
16
16
|
|
|
17
|
-
instance = Zippendo::
|
|
17
|
+
instance = Zippendo::CreateShippingRuleRequestAdditionalParametersValue.new(
|
|
18
18
|
id: sp_pn_4521,
|
|
19
19
|
name: Føtex Nørrebro,
|
|
20
20
|
address: Nørrebrogade 20, 2200 København N,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Zippendo::
|
|
1
|
+
# Zippendo::CreateShippingRuleRequestAdditionalParametersValueAnyOf
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
| **id** | **String** | Identifier of the selected service point. | |
|
|
8
8
|
| **name** | **String** | Display name of the service point. | |
|
|
9
9
|
| **address** | **String** | Formatted address of the service point. | |
|
|
10
|
-
| **coordinates** | [**Array<
|
|
10
|
+
| **coordinates** | [**Array<ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner>**](ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner.md) | Latitude/longitude of the service point. | [optional] |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'zippendo'
|
|
16
16
|
|
|
17
|
-
instance = Zippendo::
|
|
17
|
+
instance = Zippendo::CreateShippingRuleRequestAdditionalParametersValueAnyOf.new(
|
|
18
18
|
id: sp_pn_4521,
|
|
19
19
|
name: Føtex Nørrebro,
|
|
20
20
|
address: Nørrebrogade 20, 2200 København N,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **carrier_id** | **String** | Identifier of the carrier to use. | |
|
|
8
8
|
| **product_id** | **String** | Identifier of the carrier product/service. | |
|
|
9
9
|
| **services** | **Array<String>** | Additional service codes requested from the carrier. | |
|
|
10
|
-
| **additional_parameters** | [**Hash<String,
|
|
10
|
+
| **additional_parameters** | [**Hash<String, ListShippingRules200ResponseDataInnerAdditionalParametersValue>**](ListShippingRules200ResponseDataInnerAdditionalParametersValue.md) | Carrier-specific extra parameters as key/value pairs. | |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
| **carrier_id** | **String** | Carrier ID | |
|
|
12
12
|
| **product_id** | **String** | Product ID from carrier | |
|
|
13
13
|
| **services** | **Array<String>** | List of selected services | |
|
|
14
|
-
| **additional_parameters** | [**
|
|
14
|
+
| **additional_parameters** | [**Hash<String, ListShippingRules200ResponseDataInnerAdditionalParametersValue>**](ListShippingRules200ResponseDataInnerAdditionalParametersValue.md) | Carrier-specific extra parameters, keyed by the carrier parameter `key` from the product's `additionalParameters[].key`. | |
|
|
15
15
|
| **address_id** | **String** | Sender address ID | |
|
|
16
16
|
| **receiving_countries** | **Array<String>** | List of supported country codes | |
|
|
17
17
|
| **email_notification** | **Boolean** | Send email notification to recipient | [default to false] |
|
|
@@ -52,7 +52,7 @@ instance = Zippendo::ListShippingRules200ResponseDataInner.new(
|
|
|
52
52
|
carrier_id: carr_01HZX9K2QF,
|
|
53
53
|
product_id: PNL13,
|
|
54
54
|
services: ["EMAIL_NOTIFICATION"],
|
|
55
|
-
additional_parameters:
|
|
55
|
+
additional_parameters: {"returnFunctionality":"LABELLESS","returnQrEmail":true},
|
|
56
56
|
address_id: addr_01HZX9K2QF,
|
|
57
57
|
receiving_countries: ["DK","SE"],
|
|
58
58
|
email_notification: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Zippendo::
|
|
1
|
+
# Zippendo::ListShippingRules200ResponseDataInnerAdditionalParametersValue
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
| **id** | **String** | Identifier of the selected service point. | |
|
|
8
8
|
| **name** | **String** | Display name of the service point. | |
|
|
9
9
|
| **address** | **String** | Formatted address of the service point. | |
|
|
10
|
-
| **coordinates** | [**Array<
|
|
10
|
+
| **coordinates** | [**Array<ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner>**](ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner.md) | Latitude/longitude of the service point. | [optional] |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'zippendo'
|
|
16
16
|
|
|
17
|
-
instance = Zippendo::
|
|
17
|
+
instance = Zippendo::ListShippingRules200ResponseDataInnerAdditionalParametersValue.new(
|
|
18
18
|
id: sp_pn_4521,
|
|
19
19
|
name: Føtex Nørrebro,
|
|
20
20
|
address: Nørrebrogade 20, 2200 København N,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Zippendo::
|
|
1
|
+
# Zippendo::ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOf
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
| **id** | **String** | Identifier of the selected service point. | |
|
|
8
8
|
| **name** | **String** | Display name of the service point. | |
|
|
9
9
|
| **address** | **String** | Formatted address of the service point. | |
|
|
10
|
-
| **coordinates** | [**Array<
|
|
10
|
+
| **coordinates** | [**Array<ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner>**](ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner.md) | Latitude/longitude of the service point. | [optional] |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'zippendo'
|
|
16
16
|
|
|
17
|
-
instance = Zippendo::
|
|
17
|
+
instance = Zippendo::ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOf.new(
|
|
18
18
|
id: sp_pn_4521,
|
|
19
19
|
name: Føtex Nørrebro,
|
|
20
20
|
address: Nørrebrogade 20, 2200 København N,
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
# Zippendo::
|
|
1
|
+
# Zippendo::ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **name** | **String** | Carrier parameter key | |
|
|
8
|
-
| **val** | **String** | Parameter value (stringified) | |
|
|
9
7
|
|
|
10
8
|
## Example
|
|
11
9
|
|
|
12
10
|
```ruby
|
|
13
11
|
require 'zippendo'
|
|
14
12
|
|
|
15
|
-
instance = Zippendo::
|
|
16
|
-
name: returnFunctionality,
|
|
17
|
-
val: LABELLESS
|
|
18
|
-
)
|
|
13
|
+
instance = Zippendo::ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner.new()
|
|
19
14
|
```
|
|
20
15
|
|
data/docs/ShipmentsApi.md
CHANGED
|
@@ -255,7 +255,7 @@ end
|
|
|
255
255
|
|
|
256
256
|
api_instance = Zippendo::ShipmentsApi.new
|
|
257
257
|
org_id = 'org_8f3kd92ld0' # String | Organization ID
|
|
258
|
-
create_shipment_request = Zippendo::CreateShipmentRequest.new({type: 'outbound', carrier_settings: Zippendo::CreateShipmentRequestCarrierSettings.new({carrier_id: 'car_pn_001', product_id: 'prod_mypack_home', services: ["A7"], additional_parameters: { key: Zippendo::
|
|
258
|
+
create_shipment_request = Zippendo::CreateShipmentRequest.new({type: 'outbound', carrier_settings: Zippendo::CreateShipmentRequestCarrierSettings.new({carrier_id: 'car_pn_001', product_id: 'prod_mypack_home', services: ["A7"], additional_parameters: { key: Zippendo::CreateShippingRuleRequestAdditionalParametersValue.new({id: 'sp_pn_4521', name: 'Føtex Nørrebro', address: 'Nørrebrogade 20, 2200 København N'})}})}) # CreateShipmentRequest |
|
|
259
259
|
|
|
260
260
|
begin
|
|
261
261
|
# Create shipment
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **carrier_id** | **String** | Carrier for the new shipment. Copied from the original if omitted. | [optional] |
|
|
10
10
|
| **product_id** | **String** | Carrier product for the new shipment. Copied from the original if omitted. | [optional] |
|
|
11
11
|
| **services** | **Array<String>** | Service codes for the new shipment. Copied from the original if omitted. | [optional] |
|
|
12
|
-
| **additional_parameters** | **Hash<String,
|
|
12
|
+
| **additional_parameters** | [**Hash<String, CreateShippingRuleRequestAdditionalParametersValue>**](CreateShippingRuleRequestAdditionalParametersValue.md) | Carrier-specific parameters for the new shipment. Copied from the original if omitted. | [optional] |
|
|
13
13
|
| **reference** | **String** | Reference for the new shipment. Defaults to the original reference with a suffix. | [optional] |
|
|
14
14
|
|
|
15
15
|
## Example
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
| **carrier_id** | **String** | Carrier ID | [optional] |
|
|
11
11
|
| **product_id** | **String** | Product ID from carrier | [optional] |
|
|
12
12
|
| **services** | **Array<String>** | List of selected services | [optional] |
|
|
13
|
-
| **additional_parameters** | [**
|
|
13
|
+
| **additional_parameters** | [**Hash<String, CreateShippingRuleRequestAdditionalParametersValue>**](CreateShippingRuleRequestAdditionalParametersValue.md) | Carrier-specific extra parameters, keyed by the carrier parameter `key` from the product's `additionalParameters[].key`. Omit to leave the rule's parameters unchanged. | [optional] |
|
|
14
14
|
| **address_id** | **String** | Sender address ID | [optional] |
|
|
15
15
|
| **receiving_countries** | **Array<String>** | List of supported country codes | [optional] |
|
|
16
16
|
| **email_notification** | **Boolean** | Send email notification to recipient | [optional][default to false] |
|
|
@@ -42,7 +42,7 @@ instance = Zippendo::UpdateShippingRuleRequest.new(
|
|
|
42
42
|
carrier_id: carr_01HZX9K2QF,
|
|
43
43
|
product_id: PNL13,
|
|
44
44
|
services: ["EMAIL_NOTIFICATION"],
|
|
45
|
-
additional_parameters:
|
|
45
|
+
additional_parameters: {"returnFunctionality":"LABELLESS"},
|
|
46
46
|
address_id: addr_01HZX9K2QF,
|
|
47
47
|
receiving_countries: ["DK","SE"],
|
|
48
48
|
email_notification: true,
|
|
@@ -30,7 +30,7 @@ module Zippendo
|
|
|
30
30
|
# Service codes for all new shipments. Copied from the original if omitted.
|
|
31
31
|
attr_accessor :services
|
|
32
32
|
|
|
33
|
-
# Carrier-specific parameters for all new shipments.
|
|
33
|
+
# Carrier-specific parameters for all new shipments. Copied from the original if omitted.
|
|
34
34
|
attr_accessor :additional_parameters
|
|
35
35
|
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -63,7 +63,7 @@ module Zippendo
|
|
|
63
63
|
:'carrier_id' => :'String',
|
|
64
64
|
:'product_id' => :'String',
|
|
65
65
|
:'services' => :'Array<String>',
|
|
66
|
-
:'additional_parameters' => :'Hash<String,
|
|
66
|
+
:'additional_parameters' => :'Hash<String, CreateShippingRuleRequestAdditionalParametersValue>'
|
|
67
67
|
}
|
|
68
68
|
end
|
|
69
69
|
|
|
@@ -41,10 +41,10 @@ module Zippendo
|
|
|
41
41
|
# DEPRECATED — use `qrCodeDataUri` (embeddable data URI) or `qrCodeUrl` (hosted link). Catch-all that carries whichever applies, kept populated for backwards compatibility during the migration and until it is disabled.
|
|
42
42
|
attr_accessor :qr_code_link
|
|
43
43
|
|
|
44
|
-
# Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email.
|
|
44
|
+
# Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email. Populated whenever the image bytes are available, including for carriers that host the image (it is fetched and inlined); null if the carrier published no QR code or its image could not be retrieved.
|
|
45
45
|
attr_accessor :qr_code_data_uri
|
|
46
46
|
|
|
47
|
-
# Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it.
|
|
47
|
+
# Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it. Independent of `qrCodeDataUri` — both are set when the hosted image was inlined successfully; null for carriers that only return embedded bytes.
|
|
48
48
|
attr_accessor :qr_code_url
|
|
49
49
|
|
|
50
50
|
class EnumAttributeValidator
|
|
@@ -27,10 +27,10 @@ module Zippendo
|
|
|
27
27
|
# DEPRECATED — use `qrCodeDataUri` (embeddable data URI) or `qrCodeUrl` (hosted link). Catch-all that carries whichever applies, kept populated for backwards compatibility during the migration and until it is disabled.
|
|
28
28
|
attr_accessor :qr_code_link
|
|
29
29
|
|
|
30
|
-
# Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email.
|
|
30
|
+
# Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email. Populated whenever the image bytes are available, including for carriers that host the image (it is fetched and inlined); null if the carrier published no QR code or its image could not be retrieved.
|
|
31
31
|
attr_accessor :qr_code_data_uri
|
|
32
32
|
|
|
33
|
-
# Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it.
|
|
33
|
+
# Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it. Independent of `qrCodeDataUri` — both are set when the hosted image was inlined successfully; null for carriers that only return embedded bytes.
|
|
34
34
|
attr_accessor :qr_code_url
|
|
35
35
|
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -53,7 +53,7 @@ module Zippendo
|
|
|
53
53
|
:'carrier_id' => :'String',
|
|
54
54
|
:'product_id' => :'String',
|
|
55
55
|
:'services' => :'Array<String>',
|
|
56
|
-
:'additional_parameters' => :'Hash<String,
|
|
56
|
+
:'additional_parameters' => :'Hash<String, CreateShippingRuleRequestAdditionalParametersValue>'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
@@ -41,10 +41,10 @@ module Zippendo
|
|
|
41
41
|
# DEPRECATED — use `qrCodeDataUri` (embeddable data URI) or `qrCodeUrl` (hosted link). Catch-all that carries whichever applies, kept populated for backwards compatibility during the migration and until it is disabled.
|
|
42
42
|
attr_accessor :qr_code_link
|
|
43
43
|
|
|
44
|
-
# Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email.
|
|
44
|
+
# Embeddable `data:` URI of the QR code image for label-free drop-off — base64 image bytes you can drop straight into an <img>/email. Populated whenever the image bytes are available, including for carriers that host the image (it is fetched and inlined); null if the carrier published no QR code or its image could not be retrieved.
|
|
45
45
|
attr_accessor :qr_code_data_uri
|
|
46
46
|
|
|
47
|
-
# Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it.
|
|
47
|
+
# Carrier-hosted URL of the QR code image for label-free drop-off, returned by carriers (e.g. Bring) that link to the image rather than embedding it. Independent of `qrCodeDataUri` — both are set when the hosted image was inlined successfully; null for carriers that only return embedded bytes.
|
|
48
48
|
attr_accessor :qr_code_url
|
|
49
49
|
|
|
50
50
|
class EnumAttributeValidator
|
|
@@ -36,7 +36,7 @@ module Zippendo
|
|
|
36
36
|
# List of selected services
|
|
37
37
|
attr_accessor :services
|
|
38
38
|
|
|
39
|
-
# Carrier-specific extra parameters
|
|
39
|
+
# Carrier-specific extra parameters, keyed by the carrier parameter `key` from the product's `additionalParameters[].key`.
|
|
40
40
|
attr_accessor :additional_parameters
|
|
41
41
|
|
|
42
42
|
# Sender address ID
|
|
@@ -179,7 +179,7 @@ module Zippendo
|
|
|
179
179
|
:'carrier_id' => :'String',
|
|
180
180
|
:'product_id' => :'String',
|
|
181
181
|
:'services' => :'Array<String>',
|
|
182
|
-
:'additional_parameters' => :'
|
|
182
|
+
:'additional_parameters' => :'Hash<String, ListShippingRules200ResponseDataInnerAdditionalParametersValue>',
|
|
183
183
|
:'address_id' => :'String',
|
|
184
184
|
:'receiving_countries' => :'Array<String>',
|
|
185
185
|
:'email_notification' => :'Boolean',
|
|
@@ -279,7 +279,7 @@ module Zippendo
|
|
|
279
279
|
end
|
|
280
280
|
|
|
281
281
|
if attributes.key?(:'additional_parameters')
|
|
282
|
-
if (value = attributes[:'additional_parameters']).is_a?(
|
|
282
|
+
if (value = attributes[:'additional_parameters']).is_a?(Hash)
|
|
283
283
|
self.additional_parameters = value
|
|
284
284
|
end
|
|
285
285
|
else
|
|
@@ -33,6 +33,7 @@ module Zippendo
|
|
|
33
33
|
# List of selected services
|
|
34
34
|
attr_accessor :services
|
|
35
35
|
|
|
36
|
+
# Carrier-specific extra parameters, keyed by the carrier parameter `key` from the product's `additionalParameters[].key` (e.g. `returnFunctionality`).
|
|
36
37
|
attr_accessor :additional_parameters
|
|
37
38
|
|
|
38
39
|
# Sender address ID
|
|
@@ -161,7 +162,7 @@ module Zippendo
|
|
|
161
162
|
:'carrier_id' => :'String',
|
|
162
163
|
:'product_id' => :'String',
|
|
163
164
|
:'services' => :'Array<String>',
|
|
164
|
-
:'additional_parameters' => :'
|
|
165
|
+
:'additional_parameters' => :'Hash<String, CreateShippingRuleRequestAdditionalParametersValue>',
|
|
165
166
|
:'address_id' => :'String',
|
|
166
167
|
:'receiving_countries' => :'Array<String>',
|
|
167
168
|
:'email_notification' => :'Boolean',
|
|
@@ -249,7 +250,9 @@ module Zippendo
|
|
|
249
250
|
end
|
|
250
251
|
|
|
251
252
|
if attributes.key?(:'additional_parameters')
|
|
252
|
-
|
|
253
|
+
if (value = attributes[:'additional_parameters']).is_a?(Hash)
|
|
254
|
+
self.additional_parameters = value
|
|
255
|
+
end
|
|
253
256
|
end
|
|
254
257
|
|
|
255
258
|
if attributes.key?(:'address_id')
|
|
@@ -14,13 +14,13 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zippendo
|
|
17
|
-
module
|
|
17
|
+
module CreateShippingRuleRequestAdditionalParametersValue
|
|
18
18
|
class << self
|
|
19
19
|
# List of class defined in anyOf (OpenAPI v3)
|
|
20
20
|
def openapi_any_of
|
|
21
21
|
[
|
|
22
22
|
:'Boolean',
|
|
23
|
-
:'
|
|
23
|
+
:'CreateShippingRuleRequestAdditionalParametersValueAnyOf',
|
|
24
24
|
:'Float',
|
|
25
25
|
:'String'
|
|
26
26
|
]
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zippendo
|
|
17
|
-
class
|
|
17
|
+
class CreateShippingRuleRequestAdditionalParametersValueAnyOf < ApiModelBase
|
|
18
18
|
# Identifier of the selected service point.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
@@ -53,7 +53,7 @@ module Zippendo
|
|
|
53
53
|
:'id' => :'String',
|
|
54
54
|
:'name' => :'String',
|
|
55
55
|
:'address' => :'String',
|
|
56
|
-
:'coordinates' => :'Array<
|
|
56
|
+
:'coordinates' => :'Array<ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner>'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
@@ -67,14 +67,14 @@ module Zippendo
|
|
|
67
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
68
|
def initialize(attributes = {})
|
|
69
69
|
if (!attributes.is_a?(Hash))
|
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Zippendo::
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zippendo::CreateShippingRuleRequestAdditionalParametersValueAnyOf` initialize method"
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
74
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
76
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Zippendo::
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zippendo::CreateShippingRuleRequestAdditionalParametersValueAnyOf`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
78
|
end
|
|
79
79
|
h[k.to_sym] = v
|
|
80
80
|
}
|
|
@@ -53,7 +53,7 @@ module Zippendo
|
|
|
53
53
|
:'carrier_id' => :'String',
|
|
54
54
|
:'product_id' => :'String',
|
|
55
55
|
:'services' => :'Array<String>',
|
|
56
|
-
:'additional_parameters' => :'Hash<String,
|
|
56
|
+
:'additional_parameters' => :'Hash<String, ListShippingRules200ResponseDataInnerAdditionalParametersValue>'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
@@ -36,7 +36,7 @@ module Zippendo
|
|
|
36
36
|
# List of selected services
|
|
37
37
|
attr_accessor :services
|
|
38
38
|
|
|
39
|
-
# Carrier-specific extra parameters
|
|
39
|
+
# Carrier-specific extra parameters, keyed by the carrier parameter `key` from the product's `additionalParameters[].key`.
|
|
40
40
|
attr_accessor :additional_parameters
|
|
41
41
|
|
|
42
42
|
# Sender address ID
|
|
@@ -194,7 +194,7 @@ module Zippendo
|
|
|
194
194
|
:'carrier_id' => :'String',
|
|
195
195
|
:'product_id' => :'String',
|
|
196
196
|
:'services' => :'Array<String>',
|
|
197
|
-
:'additional_parameters' => :'
|
|
197
|
+
:'additional_parameters' => :'Hash<String, ListShippingRules200ResponseDataInnerAdditionalParametersValue>',
|
|
198
198
|
:'address_id' => :'String',
|
|
199
199
|
:'receiving_countries' => :'Array<String>',
|
|
200
200
|
:'email_notification' => :'Boolean',
|
|
@@ -302,7 +302,7 @@ module Zippendo
|
|
|
302
302
|
end
|
|
303
303
|
|
|
304
304
|
if attributes.key?(:'additional_parameters')
|
|
305
|
-
if (value = attributes[:'additional_parameters']).is_a?(
|
|
305
|
+
if (value = attributes[:'additional_parameters']).is_a?(Hash)
|
|
306
306
|
self.additional_parameters = value
|
|
307
307
|
end
|
|
308
308
|
else
|
|
@@ -14,14 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zippendo
|
|
17
|
-
module
|
|
17
|
+
module ListShippingRules200ResponseDataInnerAdditionalParametersValue
|
|
18
18
|
class << self
|
|
19
19
|
# List of class defined in anyOf (OpenAPI v3)
|
|
20
20
|
def openapi_any_of
|
|
21
21
|
[
|
|
22
22
|
:'Boolean',
|
|
23
23
|
:'Float',
|
|
24
|
-
:'
|
|
24
|
+
:'ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOf',
|
|
25
25
|
:'String'
|
|
26
26
|
]
|
|
27
27
|
end
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zippendo
|
|
17
|
-
class
|
|
17
|
+
class ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOf < ApiModelBase
|
|
18
18
|
# Identifier of the selected service point.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
@@ -53,7 +53,7 @@ module Zippendo
|
|
|
53
53
|
:'id' => :'String',
|
|
54
54
|
:'name' => :'String',
|
|
55
55
|
:'address' => :'String',
|
|
56
|
-
:'coordinates' => :'Array<
|
|
56
|
+
:'coordinates' => :'Array<ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner>'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
@@ -67,14 +67,14 @@ module Zippendo
|
|
|
67
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
68
|
def initialize(attributes = {})
|
|
69
69
|
if (!attributes.is_a?(Hash))
|
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Zippendo::
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zippendo::ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOf` initialize method"
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
74
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
76
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Zippendo::
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zippendo::ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOf`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
78
|
end
|
|
79
79
|
h[k.to_sym] = v
|
|
80
80
|
}
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zippendo
|
|
17
|
-
module
|
|
17
|
+
module ListShippingRules200ResponseDataInnerAdditionalParametersValueAnyOfCoordinatesInner
|
|
18
18
|
class << self
|
|
19
19
|
# List of class defined in anyOf (OpenAPI v3)
|
|
20
20
|
def openapi_any_of
|