zippendo 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE.md +21 -0
- data/README.md +99 -0
- data/Rakefile +10 -0
- data/docs/AddressesApi.md +375 -0
- data/docs/BatchSendShipments200Response.md +20 -0
- data/docs/BatchSendShipments200ResponseResultsInner.md +26 -0
- data/docs/BatchSendShipments200ResponseSummary.md +22 -0
- data/docs/BatchSendShipmentsRequest.md +18 -0
- data/docs/BatchSplitShipment201Response.md +20 -0
- data/docs/BatchSplitShipmentRequest.md +28 -0
- data/docs/BatchSplitShipmentRequestShipmentsInner.md +20 -0
- data/docs/BatchSplitShipmentRequestShipmentsInnerOrderLinesInner.md +20 -0
- data/docs/BillingApi.md +77 -0
- data/docs/CarrierCatalogApi.md +77 -0
- data/docs/CarriersApi.md +521 -0
- data/docs/ConnectCarrierRequest.md +22 -0
- data/docs/CreateAddressRequest.md +40 -0
- data/docs/CreateApiToken201Response.md +32 -0
- data/docs/CreateApiTokenRequest.md +22 -0
- data/docs/CreateOrder201Response.md +52 -0
- data/docs/CreateOrder201ResponseOrderLinesInner.md +54 -0
- data/docs/CreateOrder201ResponseShippingAddress.md +42 -0
- data/docs/CreateOrderRequest.md +40 -0
- data/docs/CreateOrderRequestOrderLinesInner.md +54 -0
- data/docs/CreateOrderRequestShippingAddress.md +42 -0
- data/docs/CreateOrgWebhook201Response.md +32 -0
- data/docs/CreateOrgWebhookRequest.md +24 -0
- data/docs/CreateShipment201Response.md +64 -0
- data/docs/CreateShipment201ResponseActivitiesInner.md +26 -0
- data/docs/CreateShipment201ResponseDocumentsInner.md +32 -0
- data/docs/CreateShipment201ResponseErrorsInner.md +26 -0
- data/docs/CreateShipment201ResponseLogsInner.md +32 -0
- data/docs/CreateShipment201ResponseParcelsInner.md +38 -0
- data/docs/CreateShipment201ResponseParcelsInnerDimensions.md +22 -0
- data/docs/CreateShipment201ResponseParcelsInnerOrderLinesInner.md +36 -0
- data/docs/CreateShipment201ResponsePartiesInner.md +38 -0
- data/docs/CreateShipment201ResponsePartiesInnerAttributesInner.md +20 -0
- data/docs/CreateShipment201ResponsePickupDetails.md +24 -0
- data/docs/CreateShipment201ResponseShippingRule.md +40 -0
- data/docs/CreateShipment201ResponseTracking.md +28 -0
- data/docs/CreateShipmentRequest.md +42 -0
- data/docs/CreateShipmentRequestCarrierSettings.md +24 -0
- data/docs/CreateShipmentRequestParcelsInner.md +38 -0
- data/docs/CreateShipmentRequestParcelsInnerDimensions.md +22 -0
- data/docs/CreateShipmentRequestParcelsInnerOrderLinesInner.md +36 -0
- data/docs/CreateShipmentRequestPartiesInner.md +38 -0
- data/docs/CreateShipmentRequestPartiesInnerAttributesInner.md +20 -0
- data/docs/CreateShipmentRequestPickupDetails.md +24 -0
- data/docs/CreateShippingQuote200Response.md +18 -0
- data/docs/CreateShippingQuote200ResponseRatesInner.md +38 -0
- data/docs/CreateShippingQuote400Response.md +20 -0
- data/docs/CreateShippingQuote404Response.md +20 -0
- data/docs/CreateShippingQuoteRequest.md +24 -0
- data/docs/CreateShippingQuoteRequestDestination.md +28 -0
- data/docs/CreateShippingQuoteRequestItemsInner.md +30 -0
- data/docs/CreateShippingRule201Response.md +74 -0
- data/docs/CreateShippingRuleRequest.md +66 -0
- data/docs/CreateShippingRuleRequestAdditionalParameters.md +15 -0
- data/docs/CreateShippingRuleRequestAdditionalParametersAnyOfInner.md +20 -0
- data/docs/CreateShippingRuleRequestAdditionalParametersAnyOfValue.md +24 -0
- data/docs/CreateShippingRuleRequestAdditionalParametersAnyOfValueAnyOf.md +24 -0
- data/docs/CreateShippingRuleRequestAdditionalParametersAnyOfValueAnyOfCoordinatesInner.md +15 -0
- data/docs/CreateShippingRuleRequestConditionsInner.md +55 -0
- data/docs/CreateShippingRuleRequestConditionsInnerOneOf.md +26 -0
- data/docs/CreateShippingRuleRequestConditionsInnerOneOf1.md +28 -0
- data/docs/CreateShippingRuleRequestConditionsInnerOneOf2.md +28 -0
- data/docs/CreateShippingRuleRequestConditionsInnerOneOf3.md +26 -0
- data/docs/CreateShippingRuleRequestConditionsInnerOneOf4.md +22 -0
- data/docs/DeleteOrgWebhook200Response.md +18 -0
- data/docs/DeleteShippingRule200Response.md +18 -0
- data/docs/GetBillingUsage200Response.md +24 -0
- data/docs/GetBillingUsage200ResponseAddOnsInner.md +24 -0
- data/docs/GetBillingUsage200ResponseCurrentPeriod.md +20 -0
- data/docs/GetBillingUsage200ResponseLimits.md +30 -0
- data/docs/GetBillingUsage200ResponseLimitsTeamMembers.md +20 -0
- data/docs/GetBillingUsage200ResponseShipments.md +24 -0
- data/docs/GetOrder200Response.md +58 -0
- data/docs/GetOrder200ResponseShipmentsInner.md +36 -0
- data/docs/GetOrder200ResponseShippingRule.md +40 -0
- data/docs/GetOrg200Response.md +50 -0
- data/docs/GetOrg200ResponseCount.md +18 -0
- data/docs/GetOrgBranding200Response.md +22 -0
- data/docs/HealthCheck200Response.md +22 -0
- data/docs/ListAddresses200Response.md +26 -0
- data/docs/ListAddresses200ResponseDataInner.md +48 -0
- data/docs/ListApiTokens200Response.md +26 -0
- data/docs/ListApiTokens200ResponseDataInner.md +32 -0
- data/docs/ListApiTokens200ResponseDataInnerCreatedBy.md +22 -0
- data/docs/ListApiTokens401Response.md +22 -0
- data/docs/ListAvailableCarriers200ResponseInner.md +38 -0
- data/docs/ListAvailableCarriers200ResponseInnerRequiredFieldsInner.md +28 -0
- data/docs/ListCarrierProductServicePoints200ResponseInner.md +32 -0
- data/docs/ListCarrierProductServicePoints200ResponseInnerAddress.md +28 -0
- data/docs/ListCarrierProductServicePointsRequest.md +28 -0
- data/docs/ListCarrierProducts200ResponseInner.md +38 -0
- data/docs/ListCarrierProducts200ResponseInnerAdditionalParametersInner.md +30 -0
- data/docs/ListCarrierProducts200ResponseInnerAdditionalParametersInnerOptionsInner.md +22 -0
- data/docs/ListCarrierProducts200ResponseInnerServicesInner.md +20 -0
- data/docs/ListCarrierProducts200ResponseInnerWeightLimits.md +22 -0
- data/docs/ListCarriers200Response.md +26 -0
- data/docs/ListCarriers200ResponseDataInner.md +38 -0
- data/docs/ListCarriers200ResponseDataInnerConfigValue.md +15 -0
- data/docs/ListOrders200Response.md +26 -0
- data/docs/ListOrders200ResponseDataInner.md +40 -0
- data/docs/ListOrders200ResponseDataInnerOrderChannel.md +22 -0
- data/docs/ListOrgWebhookDeliveries200Response.md +26 -0
- data/docs/ListOrgWebhookDeliveries200ResponseDataInner.md +38 -0
- data/docs/ListOrgWebhooks200Response.md +26 -0
- data/docs/ListOrgWebhooks200ResponseDataInner.md +30 -0
- data/docs/ListShipments200Response.md +26 -0
- data/docs/ListShipments200ResponseDataInner.md +32 -0
- data/docs/ListShipments200ResponseDataInnerAddress.md +48 -0
- data/docs/ListShipments200ResponseDataInnerCarrierSettings.md +24 -0
- data/docs/ListShipments200ResponseDataInnerCarrierSettingsAdditionalParametersValue.md +24 -0
- data/docs/ListShipments200ResponseDataInnerCarrierSettingsAdditionalParametersValueAnyOf.md +24 -0
- data/docs/ListShippingRules200Response.md +26 -0
- data/docs/ListShippingRules200ResponseDataInner.md +84 -0
- data/docs/ListShippingRules200ResponseDataInnerAdditionalParametersInner.md +20 -0
- data/docs/ListShippingRules200ResponseDataInnerCarrier.md +30 -0
- data/docs/ListShippingRules200ResponseDataInnerConditionsInner.md +55 -0
- data/docs/ListShippingRules200ResponseDataInnerConditionsInnerOneOf.md +26 -0
- data/docs/ListShippingRules200ResponseDataInnerConditionsInnerOneOf1.md +28 -0
- data/docs/ListShippingRules200ResponseDataInnerConditionsInnerOneOf2.md +28 -0
- data/docs/ListShippingRules200ResponseDataInnerConditionsInnerOneOf3.md +26 -0
- data/docs/ListShippingRules200ResponseDataInnerConditionsInnerOneOf4.md +22 -0
- data/docs/ListShippingRules200ResponseDataInnerLabelPrinter.md +20 -0
- data/docs/ListShippingRules200ResponseDataInnerReturnShippingRule.md +20 -0
- data/docs/OrdersApi.md +379 -0
- data/docs/OrgsApi.md +503 -0
- data/docs/QuotesApi.md +79 -0
- data/docs/RevokeApiToken200Response.md +18 -0
- data/docs/RulesApi.md +373 -0
- data/docs/SendShipment422Response.md +24 -0
- data/docs/SendShipment422ResponseErrorsInner.md +20 -0
- data/docs/ShipmentsApi.md +962 -0
- data/docs/SplitShipment201Response.md +20 -0
- data/docs/SplitShipmentParcel200Response.md +18 -0
- data/docs/SplitShipmentParcelRequest.md +18 -0
- data/docs/SplitShipmentParcelRequestParcelsInner.md +20 -0
- data/docs/SplitShipmentRequest.md +30 -0
- data/docs/SystemApi.md +74 -0
- data/docs/TestOrgWebhook200Response.md +18 -0
- data/docs/TokensApi.md +443 -0
- data/docs/TrackShipment200Response.md +26 -0
- data/docs/TrackShipment200ResponseEventsInner.md +28 -0
- data/docs/UpdateAddressRequest.md +40 -0
- data/docs/UpdateApiTokenRequest.md +18 -0
- data/docs/UpdateCarrierRequest.md +22 -0
- data/docs/UpdateOrderRequest.md +38 -0
- data/docs/UpdateOrg200Response.md +48 -0
- data/docs/UpdateOrgBrandingRequest.md +20 -0
- data/docs/UpdateOrgRequest.md +44 -0
- data/docs/UpdateOrgWebhookRequest.md +24 -0
- data/docs/UpdateShipmentRequest.md +44 -0
- data/docs/UpdateShippingRuleRequest.md +66 -0
- data/docs/VerifyApiToken200Response.md +28 -0
- data/docs/VerifyApiTokenRequest.md +18 -0
- data/docs/WebhooksApi.md +523 -0
- data/git_push.sh +57 -0
- data/lib/zippendo/api/addresses_api.rb +406 -0
- data/lib/zippendo/api/billing_api.rb +85 -0
- data/lib/zippendo/api/carrier_catalog_api.rb +85 -0
- data/lib/zippendo/api/carriers_api.rb +554 -0
- data/lib/zippendo/api/orders_api.rb +412 -0
- data/lib/zippendo/api/orgs_api.rb +497 -0
- data/lib/zippendo/api/quotes_api.rb +96 -0
- data/lib/zippendo/api/rules_api.rb +399 -0
- data/lib/zippendo/api/shipments_api.rb +1003 -0
- data/lib/zippendo/api/system_api.rb +79 -0
- data/lib/zippendo/api/tokens_api.rb +467 -0
- data/lib/zippendo/api/webhooks_api.rb +559 -0
- data/lib/zippendo/api_client.rb +397 -0
- data/lib/zippendo/api_error.rb +58 -0
- data/lib/zippendo/api_model_base.rb +88 -0
- data/lib/zippendo/configuration.rb +309 -0
- data/lib/zippendo/models/batch_send_shipments200_response.rb +193 -0
- data/lib/zippendo/models/batch_send_shipments200_response_results_inner.rb +260 -0
- data/lib/zippendo/models/batch_send_shipments200_response_summary.rb +274 -0
- data/lib/zippendo/models/batch_send_shipments_request.rb +185 -0
- data/lib/zippendo/models/batch_split_shipment201_response.rb +193 -0
- data/lib/zippendo/models/batch_split_shipment_request.rb +247 -0
- data/lib/zippendo/models/batch_split_shipment_request_shipments_inner.rb +186 -0
- data/lib/zippendo/models/batch_split_shipment_request_shipments_inner_order_lines_inner.rb +210 -0
- data/lib/zippendo/models/connect_carrier_request.rb +239 -0
- data/lib/zippendo/models/create_address_request.rb +508 -0
- data/lib/zippendo/models/create_api_token201_response.rb +328 -0
- data/lib/zippendo/models/create_api_token_request.rb +267 -0
- data/lib/zippendo/models/create_order201_response.rb +491 -0
- data/lib/zippendo/models/create_order201_response_order_lines_inner.rb +533 -0
- data/lib/zippendo/models/create_order201_response_shipping_address.rb +433 -0
- data/lib/zippendo/models/create_order_request.rb +410 -0
- data/lib/zippendo/models/create_order_request_order_lines_inner.rb +533 -0
- data/lib/zippendo/models/create_order_request_shipping_address.rb +433 -0
- data/lib/zippendo/models/create_org_webhook201_response.rb +356 -0
- data/lib/zippendo/models/create_org_webhook_request.rb +268 -0
- data/lib/zippendo/models/create_shipment201_response.rb +659 -0
- data/lib/zippendo/models/create_shipment201_response_activities_inner.rb +281 -0
- data/lib/zippendo/models/create_shipment201_response_documents_inner.rb +382 -0
- data/lib/zippendo/models/create_shipment201_response_errors_inner.rb +257 -0
- data/lib/zippendo/models/create_shipment201_response_logs_inner.rb +300 -0
- data/lib/zippendo/models/create_shipment201_response_parcels_inner.rb +356 -0
- data/lib/zippendo/models/create_shipment201_response_parcels_inner_dimensions.rb +246 -0
- data/lib/zippendo/models/create_shipment201_response_parcels_inner_order_lines_inner.rb +402 -0
- data/lib/zippendo/models/create_shipment201_response_parties_inner.rb +468 -0
- data/lib/zippendo/models/create_shipment201_response_parties_inner_attributes_inner.rb +210 -0
- data/lib/zippendo/models/create_shipment201_response_pickup_details.rb +229 -0
- data/lib/zippendo/models/create_shipment201_response_shipping_rule.rb +365 -0
- data/lib/zippendo/models/create_shipment201_response_tracking.rb +204 -0
- data/lib/zippendo/models/create_shipment_request.rb +407 -0
- data/lib/zippendo/models/create_shipment_request_carrier_settings.rb +250 -0
- data/lib/zippendo/models/create_shipment_request_parcels_inner.rb +356 -0
- data/lib/zippendo/models/create_shipment_request_parcels_inner_dimensions.rb +246 -0
- data/lib/zippendo/models/create_shipment_request_parcels_inner_order_lines_inner.rb +402 -0
- data/lib/zippendo/models/create_shipment_request_parties_inner.rb +451 -0
- data/lib/zippendo/models/create_shipment_request_parties_inner_attributes_inner.rb +210 -0
- data/lib/zippendo/models/create_shipment_request_pickup_details.rb +229 -0
- data/lib/zippendo/models/create_shipping_quote200_response.rb +167 -0
- data/lib/zippendo/models/create_shipping_quote200_response_rates_inner.rb +333 -0
- data/lib/zippendo/models/create_shipping_quote400_response.rb +192 -0
- data/lib/zippendo/models/create_shipping_quote404_response.rb +192 -0
- data/lib/zippendo/models/create_shipping_quote_request.rb +276 -0
- data/lib/zippendo/models/create_shipping_quote_request_destination.rb +233 -0
- data/lib/zippendo/models/create_shipping_quote_request_items_inner.rb +315 -0
- data/lib/zippendo/models/create_shipping_rule201_response.rb +910 -0
- data/lib/zippendo/models/create_shipping_rule_request.rb +640 -0
- data/lib/zippendo/models/create_shipping_rule_request_additional_parameters.rb +104 -0
- data/lib/zippendo/models/create_shipping_rule_request_additional_parameters_any_of_inner.rb +201 -0
- data/lib/zippendo/models/create_shipping_rule_request_additional_parameters_any_of_value.rb +105 -0
- data/lib/zippendo/models/create_shipping_rule_request_additional_parameters_any_of_value_any_of.rb +259 -0
- data/lib/zippendo/models/create_shipping_rule_request_additional_parameters_any_of_value_any_of_coordinates_inner.rb +102 -0
- data/lib/zippendo/models/create_shipping_rule_request_conditions_inner.rb +107 -0
- data/lib/zippendo/models/create_shipping_rule_request_conditions_inner_one_of.rb +342 -0
- data/lib/zippendo/models/create_shipping_rule_request_conditions_inner_one_of1.rb +359 -0
- data/lib/zippendo/models/create_shipping_rule_request_conditions_inner_one_of2.rb +366 -0
- data/lib/zippendo/models/create_shipping_rule_request_conditions_inner_one_of3.rb +344 -0
- data/lib/zippendo/models/create_shipping_rule_request_conditions_inner_one_of4.rb +270 -0
- data/lib/zippendo/models/delete_org_webhook200_response.rb +165 -0
- data/lib/zippendo/models/delete_shipping_rule200_response.rb +165 -0
- data/lib/zippendo/models/get_billing_usage200_response.rb +245 -0
- data/lib/zippendo/models/get_billing_usage200_response_add_ons_inner.rb +270 -0
- data/lib/zippendo/models/get_billing_usage200_response_current_period.rb +192 -0
- data/lib/zippendo/models/get_billing_usage200_response_limits.rb +320 -0
- data/lib/zippendo/models/get_billing_usage200_response_limits_team_members.rb +192 -0
- data/lib/zippendo/models/get_billing_usage200_response_shipments.rb +246 -0
- data/lib/zippendo/models/get_order200_response.rb +555 -0
- data/lib/zippendo/models/get_order200_response_shipments_inner.rb +385 -0
- data/lib/zippendo/models/get_order200_response_shipping_rule.rb +365 -0
- data/lib/zippendo/models/get_org200_response.rb +440 -0
- data/lib/zippendo/models/get_org200_response_count.rb +165 -0
- data/lib/zippendo/models/get_org_branding200_response.rb +177 -0
- data/lib/zippendo/models/health_check200_response.rb +219 -0
- data/lib/zippendo/models/list_addresses200_response.rb +275 -0
- data/lib/zippendo/models/list_addresses200_response_data_inner.rb +553 -0
- data/lib/zippendo/models/list_api_tokens200_response.rb +275 -0
- data/lib/zippendo/models/list_api_tokens200_response_data_inner.rb +327 -0
- data/lib/zippendo/models/list_api_tokens200_response_data_inner_created_by.rb +205 -0
- data/lib/zippendo/models/list_api_tokens401_response.rb +236 -0
- data/lib/zippendo/models/list_available_carriers200_response_inner.rb +286 -0
- data/lib/zippendo/models/list_available_carriers200_response_inner_required_fields_inner.rb +292 -0
- data/lib/zippendo/models/list_carrier_product_service_points200_response_inner.rb +287 -0
- data/lib/zippendo/models/list_carrier_product_service_points200_response_inner_address.rb +314 -0
- data/lib/zippendo/models/list_carrier_product_service_points_request.rb +313 -0
- data/lib/zippendo/models/list_carrier_products200_response_inner.rb +398 -0
- data/lib/zippendo/models/list_carrier_products200_response_inner_additional_parameters_inner.rb +321 -0
- data/lib/zippendo/models/list_carrier_products200_response_inner_additional_parameters_inner_options_inner.rb +219 -0
- data/lib/zippendo/models/list_carrier_products200_response_inner_services_inner.rb +192 -0
- data/lib/zippendo/models/list_carrier_products200_response_inner_weight_limits.rb +244 -0
- data/lib/zippendo/models/list_carriers200_response.rb +275 -0
- data/lib/zippendo/models/list_carriers200_response_data_inner.rb +369 -0
- data/lib/zippendo/models/list_carriers200_response_data_inner_config_value.rb +104 -0
- data/lib/zippendo/models/list_orders200_response.rb +275 -0
- data/lib/zippendo/models/list_orders200_response_data_inner.rb +423 -0
- data/lib/zippendo/models/list_orders200_response_data_inner_order_channel.rb +244 -0
- data/lib/zippendo/models/list_org_webhook_deliveries200_response.rb +275 -0
- data/lib/zippendo/models/list_org_webhook_deliveries200_response_data_inner.rb +365 -0
- data/lib/zippendo/models/list_org_webhooks200_response.rb +275 -0
- data/lib/zippendo/models/list_org_webhooks200_response_data_inner.rb +329 -0
- data/lib/zippendo/models/list_shipments200_response.rb +275 -0
- data/lib/zippendo/models/list_shipments200_response_data_inner.rb +362 -0
- data/lib/zippendo/models/list_shipments200_response_data_inner_address.rb +553 -0
- data/lib/zippendo/models/list_shipments200_response_data_inner_carrier_settings.rb +250 -0
- data/lib/zippendo/models/list_shipments200_response_data_inner_carrier_settings_additional_parameters_value.rb +105 -0
- data/lib/zippendo/models/list_shipments200_response_data_inner_carrier_settings_additional_parameters_value_any_of.rb +259 -0
- data/lib/zippendo/models/list_shipping_rules200_response.rb +275 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner.rb +992 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_additional_parameters_inner.rb +201 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_carrier.rb +329 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner.rb +107 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of.rb +342 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of1.rb +364 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of2.rb +371 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of3.rb +344 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of4.rb +270 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_label_printer.rb +192 -0
- data/lib/zippendo/models/list_shipping_rules200_response_data_inner_return_shipping_rule.rb +192 -0
- data/lib/zippendo/models/revoke_api_token200_response.rb +165 -0
- data/lib/zippendo/models/send_shipment422_response.rb +265 -0
- data/lib/zippendo/models/send_shipment422_response_errors_inner.rb +175 -0
- data/lib/zippendo/models/split_shipment201_response.rb +190 -0
- data/lib/zippendo/models/split_shipment_parcel200_response.rb +164 -0
- data/lib/zippendo/models/split_shipment_parcel_request.rb +176 -0
- data/lib/zippendo/models/split_shipment_parcel_request_parcels_inner.rb +186 -0
- data/lib/zippendo/models/split_shipment_request.rb +231 -0
- data/lib/zippendo/models/test_org_webhook200_response.rb +165 -0
- data/lib/zippendo/models/track_shipment200_response.rb +251 -0
- data/lib/zippendo/models/track_shipment200_response_events_inner.rb +296 -0
- data/lib/zippendo/models/update_address_request.rb +471 -0
- data/lib/zippendo/models/update_api_token_request.rb +183 -0
- data/lib/zippendo/models/update_carrier_request.rb +208 -0
- data/lib/zippendo/models/update_order_request.rb +400 -0
- data/lib/zippendo/models/update_org200_response.rb +414 -0
- data/lib/zippendo/models/update_org_branding_request.rb +194 -0
- data/lib/zippendo/models/update_org_request.rb +389 -0
- data/lib/zippendo/models/update_org_webhook_request.rb +235 -0
- data/lib/zippendo/models/update_shipment_request.rb +394 -0
- data/lib/zippendo/models/update_shipping_rule_request.rb +531 -0
- data/lib/zippendo/models/verify_api_token200_response.rb +218 -0
- data/lib/zippendo/models/verify_api_token_request.rb +165 -0
- data/lib/zippendo/version.rb +15 -0
- data/lib/zippendo.rb +195 -0
- data/spec/api/addresses_api_spec.rb +103 -0
- data/spec/api/billing_api_spec.rb +47 -0
- data/spec/api/carrier_catalog_api_spec.rb +47 -0
- data/spec/api/carriers_api_spec.rb +130 -0
- data/spec/api/orders_api_spec.rb +105 -0
- data/spec/api/orgs_api_spec.rb +122 -0
- data/spec/api/quotes_api_spec.rb +48 -0
- data/spec/api/rules_api_spec.rb +102 -0
- data/spec/api/shipments_api_spec.rb +212 -0
- data/spec/api/system_api_spec.rb +46 -0
- data/spec/api/tokens_api_spec.rb +114 -0
- data/spec/api/webhooks_api_spec.rb +130 -0
- data/spec/models/batch_send_shipments200_response_results_inner_spec.rb +68 -0
- data/spec/models/batch_send_shipments200_response_spec.rb +42 -0
- data/spec/models/batch_send_shipments200_response_summary_spec.rb +48 -0
- data/spec/models/batch_send_shipments_request_spec.rb +36 -0
- data/spec/models/batch_split_shipment201_response_spec.rb +42 -0
- data/spec/models/batch_split_shipment_request_shipments_inner_order_lines_inner_spec.rb +42 -0
- data/spec/models/batch_split_shipment_request_shipments_inner_spec.rb +42 -0
- data/spec/models/batch_split_shipment_request_spec.rb +66 -0
- data/spec/models/connect_carrier_request_spec.rb +48 -0
- data/spec/models/create_address_request_spec.rb +106 -0
- data/spec/models/create_api_token201_response_spec.rb +78 -0
- data/spec/models/create_api_token_request_spec.rb +52 -0
- data/spec/models/create_order201_response_order_lines_inner_spec.rb +148 -0
- data/spec/models/create_order201_response_shipping_address_spec.rb +108 -0
- data/spec/models/create_order201_response_spec.rb +142 -0
- data/spec/models/create_order_request_order_lines_inner_spec.rb +148 -0
- data/spec/models/create_order_request_shipping_address_spec.rb +108 -0
- data/spec/models/create_order_request_spec.rb +102 -0
- data/spec/models/create_org_webhook201_response_spec.rb +78 -0
- data/spec/models/create_org_webhook_request_spec.rb +58 -0
- data/spec/models/create_shipment201_response_activities_inner_spec.rb +64 -0
- data/spec/models/create_shipment201_response_documents_inner_spec.rb +90 -0
- data/spec/models/create_shipment201_response_errors_inner_spec.rb +60 -0
- data/spec/models/create_shipment201_response_logs_inner_spec.rb +82 -0
- data/spec/models/create_shipment201_response_parcels_inner_dimensions_spec.rb +48 -0
- data/spec/models/create_shipment201_response_parcels_inner_order_lines_inner_spec.rb +90 -0
- data/spec/models/create_shipment201_response_parcels_inner_spec.rb +100 -0
- data/spec/models/create_shipment201_response_parties_inner_attributes_inner_spec.rb +42 -0
- data/spec/models/create_shipment201_response_parties_inner_spec.rb +100 -0
- data/spec/models/create_shipment201_response_pickup_details_spec.rb +54 -0
- data/spec/models/create_shipment201_response_shipping_rule_spec.rb +102 -0
- data/spec/models/create_shipment201_response_spec.rb +182 -0
- data/spec/models/create_shipment201_response_tracking_spec.rb +66 -0
- data/spec/models/create_shipment_request_carrier_settings_spec.rb +54 -0
- data/spec/models/create_shipment_request_parcels_inner_dimensions_spec.rb +48 -0
- data/spec/models/create_shipment_request_parcels_inner_order_lines_inner_spec.rb +90 -0
- data/spec/models/create_shipment_request_parcels_inner_spec.rb +100 -0
- data/spec/models/create_shipment_request_parties_inner_attributes_inner_spec.rb +42 -0
- data/spec/models/create_shipment_request_parties_inner_spec.rb +100 -0
- data/spec/models/create_shipment_request_pickup_details_spec.rb +54 -0
- data/spec/models/create_shipment_request_spec.rb +116 -0
- data/spec/models/create_shipping_quote200_response_rates_inner_spec.rb +96 -0
- data/spec/models/create_shipping_quote200_response_spec.rb +36 -0
- data/spec/models/create_shipping_quote400_response_spec.rb +42 -0
- data/spec/models/create_shipping_quote404_response_spec.rb +42 -0
- data/spec/models/create_shipping_quote_request_destination_spec.rb +66 -0
- data/spec/models/create_shipping_quote_request_items_inner_spec.rb +72 -0
- data/spec/models/create_shipping_quote_request_spec.rb +54 -0
- data/spec/models/create_shipping_rule201_response_spec.rb +208 -0
- data/spec/models/create_shipping_rule_request_additional_parameters_any_of_inner_spec.rb +42 -0
- data/spec/models/create_shipping_rule_request_additional_parameters_any_of_value_any_of_coordinates_inner_spec.rb +21 -0
- data/spec/models/create_shipping_rule_request_additional_parameters_any_of_value_any_of_spec.rb +54 -0
- data/spec/models/create_shipping_rule_request_additional_parameters_any_of_value_spec.rb +21 -0
- data/spec/models/create_shipping_rule_request_additional_parameters_spec.rb +21 -0
- data/spec/models/create_shipping_rule_request_conditions_inner_one_of1_spec.rb +78 -0
- data/spec/models/create_shipping_rule_request_conditions_inner_one_of2_spec.rb +74 -0
- data/spec/models/create_shipping_rule_request_conditions_inner_one_of3_spec.rb +68 -0
- data/spec/models/create_shipping_rule_request_conditions_inner_one_of4_spec.rb +52 -0
- data/spec/models/create_shipping_rule_request_conditions_inner_one_of_spec.rb +64 -0
- data/spec/models/create_shipping_rule_request_conditions_inner_spec.rb +32 -0
- data/spec/models/create_shipping_rule_request_spec.rb +184 -0
- data/spec/models/delete_org_webhook200_response_spec.rb +36 -0
- data/spec/models/delete_shipping_rule200_response_spec.rb +36 -0
- data/spec/models/get_billing_usage200_response_add_ons_inner_spec.rb +58 -0
- data/spec/models/get_billing_usage200_response_current_period_spec.rb +42 -0
- data/spec/models/get_billing_usage200_response_limits_spec.rb +72 -0
- data/spec/models/get_billing_usage200_response_limits_team_members_spec.rb +42 -0
- data/spec/models/get_billing_usage200_response_shipments_spec.rb +54 -0
- data/spec/models/get_billing_usage200_response_spec.rb +54 -0
- data/spec/models/get_order200_response_shipments_inner_spec.rb +98 -0
- data/spec/models/get_order200_response_shipping_rule_spec.rb +102 -0
- data/spec/models/get_order200_response_spec.rb +160 -0
- data/spec/models/get_org200_response_count_spec.rb +36 -0
- data/spec/models/get_org200_response_spec.rb +132 -0
- data/spec/models/get_org_branding200_response_spec.rb +48 -0
- data/spec/models/health_check200_response_spec.rb +48 -0
- data/spec/models/list_addresses200_response_data_inner_spec.rb +130 -0
- data/spec/models/list_addresses200_response_spec.rb +60 -0
- data/spec/models/list_api_tokens200_response_data_inner_created_by_spec.rb +48 -0
- data/spec/models/list_api_tokens200_response_data_inner_spec.rb +78 -0
- data/spec/models/list_api_tokens200_response_spec.rb +60 -0
- data/spec/models/list_api_tokens401_response_spec.rb +52 -0
- data/spec/models/list_available_carriers200_response_inner_required_fields_inner_spec.rb +70 -0
- data/spec/models/list_available_carriers200_response_inner_spec.rb +96 -0
- data/spec/models/list_carrier_product_service_points200_response_inner_address_spec.rb +66 -0
- data/spec/models/list_carrier_product_service_points200_response_inner_spec.rb +78 -0
- data/spec/models/list_carrier_product_service_points_request_spec.rb +66 -0
- data/spec/models/list_carrier_products200_response_inner_additional_parameters_inner_options_inner_spec.rb +48 -0
- data/spec/models/list_carrier_products200_response_inner_additional_parameters_inner_spec.rb +76 -0
- data/spec/models/list_carrier_products200_response_inner_services_inner_spec.rb +42 -0
- data/spec/models/list_carrier_products200_response_inner_spec.rb +100 -0
- data/spec/models/list_carrier_products200_response_inner_weight_limits_spec.rb +52 -0
- data/spec/models/list_carriers200_response_data_inner_config_value_spec.rb +21 -0
- data/spec/models/list_carriers200_response_data_inner_spec.rb +96 -0
- data/spec/models/list_carriers200_response_spec.rb +60 -0
- data/spec/models/list_orders200_response_data_inner_order_channel_spec.rb +52 -0
- data/spec/models/list_orders200_response_data_inner_spec.rb +106 -0
- data/spec/models/list_orders200_response_spec.rb +60 -0
- data/spec/models/list_org_webhook_deliveries200_response_data_inner_spec.rb +96 -0
- data/spec/models/list_org_webhook_deliveries200_response_spec.rb +60 -0
- data/spec/models/list_org_webhooks200_response_data_inner_spec.rb +72 -0
- data/spec/models/list_org_webhooks200_response_spec.rb +60 -0
- data/spec/models/list_shipments200_response_data_inner_address_spec.rb +130 -0
- data/spec/models/list_shipments200_response_data_inner_carrier_settings_additional_parameters_value_any_of_spec.rb +54 -0
- data/spec/models/list_shipments200_response_data_inner_carrier_settings_additional_parameters_value_spec.rb +21 -0
- data/spec/models/list_shipments200_response_data_inner_carrier_settings_spec.rb +54 -0
- data/spec/models/list_shipments200_response_data_inner_spec.rb +86 -0
- data/spec/models/list_shipments200_response_spec.rb +60 -0
- data/spec/models/list_shipping_rules200_response_data_inner_additional_parameters_inner_spec.rb +42 -0
- data/spec/models/list_shipping_rules200_response_data_inner_carrier_spec.rb +72 -0
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of1_spec.rb +78 -0
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of2_spec.rb +74 -0
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of3_spec.rb +68 -0
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of4_spec.rb +52 -0
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_one_of_spec.rb +64 -0
- data/spec/models/list_shipping_rules200_response_data_inner_conditions_inner_spec.rb +32 -0
- data/spec/models/list_shipping_rules200_response_data_inner_label_printer_spec.rb +42 -0
- data/spec/models/list_shipping_rules200_response_data_inner_return_shipping_rule_spec.rb +42 -0
- data/spec/models/list_shipping_rules200_response_data_inner_spec.rb +238 -0
- data/spec/models/list_shipping_rules200_response_spec.rb +60 -0
- data/spec/models/revoke_api_token200_response_spec.rb +36 -0
- data/spec/models/send_shipment422_response_errors_inner_spec.rb +42 -0
- data/spec/models/send_shipment422_response_spec.rb +58 -0
- data/spec/models/split_shipment201_response_spec.rb +42 -0
- data/spec/models/split_shipment_parcel200_response_spec.rb +36 -0
- data/spec/models/split_shipment_parcel_request_parcels_inner_spec.rb +42 -0
- data/spec/models/split_shipment_parcel_request_spec.rb +36 -0
- data/spec/models/split_shipment_request_spec.rb +72 -0
- data/spec/models/test_org_webhook200_response_spec.rb +36 -0
- data/spec/models/track_shipment200_response_events_inner_spec.rb +70 -0
- data/spec/models/track_shipment200_response_spec.rb +64 -0
- data/spec/models/update_address_request_spec.rb +106 -0
- data/spec/models/update_api_token_request_spec.rb +36 -0
- data/spec/models/update_carrier_request_spec.rb +48 -0
- data/spec/models/update_order_request_spec.rb +100 -0
- data/spec/models/update_org200_response_spec.rb +126 -0
- data/spec/models/update_org_branding_request_spec.rb +42 -0
- data/spec/models/update_org_request_spec.rb +118 -0
- data/spec/models/update_org_webhook_request_spec.rb +58 -0
- data/spec/models/update_shipment_request_spec.rb +122 -0
- data/spec/models/update_shipping_rule_request_spec.rb +184 -0
- data/spec/models/verify_api_token200_response_spec.rb +66 -0
- data/spec/models/verify_api_token_request_spec.rb +36 -0
- data/spec/spec_helper.rb +111 -0
- data/zippendo.gemspec +39 -0
- metadata +715 -0
|
@@ -0,0 +1,910 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zippendo Public API
|
|
3
|
+
|
|
4
|
+
#Public API documentation for Zippendo. Authenticate using your API token (Bearer token prefixed with zipp_).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: support@zippendo.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.24.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zippendo
|
|
17
|
+
class CreateShippingRule201Response < ApiModelBase
|
|
18
|
+
# Unique shipping rule identifier
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# Shipping rule name
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
24
|
+
# Optional description
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
27
|
+
# Whether this rule is for outbound or inbound (return) shipments
|
|
28
|
+
attr_accessor :direction
|
|
29
|
+
|
|
30
|
+
# Carrier ID
|
|
31
|
+
attr_accessor :carrier_id
|
|
32
|
+
|
|
33
|
+
# Product ID from carrier
|
|
34
|
+
attr_accessor :product_id
|
|
35
|
+
|
|
36
|
+
# List of selected services
|
|
37
|
+
attr_accessor :services
|
|
38
|
+
|
|
39
|
+
# Carrier-specific extra parameters. DEPRECATED array form `[{ name, val }]` where `name` is the carrier parameter `key` (from the product's `additionalParameters[].key`, e.g. `returnFunctionality`) and `val` is the stringified value. This will change to a `{ key: value }` object in a future version — writes already accept either shape.
|
|
40
|
+
attr_accessor :additional_parameters
|
|
41
|
+
|
|
42
|
+
# Sender address ID
|
|
43
|
+
attr_accessor :address_id
|
|
44
|
+
|
|
45
|
+
# List of supported country codes
|
|
46
|
+
attr_accessor :receiving_countries
|
|
47
|
+
|
|
48
|
+
# Send email notification to recipient
|
|
49
|
+
attr_accessor :email_notification
|
|
50
|
+
|
|
51
|
+
# Send SMS notification to recipient
|
|
52
|
+
attr_accessor :phone_notification
|
|
53
|
+
|
|
54
|
+
# Minimum required weight in kg. Orders below this are excluded from the rule.
|
|
55
|
+
attr_accessor :min_weight
|
|
56
|
+
|
|
57
|
+
# Maximum allowed weight in kg. Orders exceeding this are excluded from the rule.
|
|
58
|
+
attr_accessor :max_weight
|
|
59
|
+
|
|
60
|
+
# Minimum required order value in currency units. Orders below this are excluded from the rule.
|
|
61
|
+
attr_accessor :min_order_value
|
|
62
|
+
|
|
63
|
+
# Maximum allowed order value in currency units. Orders exceeding this are excluded from the rule.
|
|
64
|
+
attr_accessor :max_order_value
|
|
65
|
+
|
|
66
|
+
# Rule conditions (weight/price/quantity)
|
|
67
|
+
attr_accessor :conditions
|
|
68
|
+
|
|
69
|
+
# Generate proforma invoice for shipments
|
|
70
|
+
attr_accessor :generate_proforma_invoice
|
|
71
|
+
|
|
72
|
+
# Generate commercial invoice for international shipments
|
|
73
|
+
attr_accessor :generate_commercial_invoice
|
|
74
|
+
|
|
75
|
+
# Generate packing slip with package and item details
|
|
76
|
+
attr_accessor :generate_packing_list
|
|
77
|
+
|
|
78
|
+
# Automatically print labels when shipment is sent
|
|
79
|
+
attr_accessor :auto_print_labels
|
|
80
|
+
|
|
81
|
+
# Automatically print documents when shipment is sent
|
|
82
|
+
attr_accessor :auto_print_documents
|
|
83
|
+
|
|
84
|
+
# ID of the label printer
|
|
85
|
+
attr_accessor :label_printer_id
|
|
86
|
+
|
|
87
|
+
# ID of the document printer
|
|
88
|
+
attr_accessor :document_printer_id
|
|
89
|
+
|
|
90
|
+
# ID of the return shipping rule
|
|
91
|
+
attr_accessor :return_shipping_rule_id
|
|
92
|
+
|
|
93
|
+
# Automatically create and send a return shipment on dispatch
|
|
94
|
+
attr_accessor :auto_create_return_shipment
|
|
95
|
+
|
|
96
|
+
# Owning organization ID
|
|
97
|
+
attr_accessor :org_id
|
|
98
|
+
|
|
99
|
+
# Creation timestamp (ISO 8601)
|
|
100
|
+
attr_accessor :created_at
|
|
101
|
+
|
|
102
|
+
# Last update timestamp (ISO 8601)
|
|
103
|
+
attr_accessor :updated_at
|
|
104
|
+
|
|
105
|
+
class EnumAttributeValidator
|
|
106
|
+
attr_reader :datatype
|
|
107
|
+
attr_reader :allowable_values
|
|
108
|
+
|
|
109
|
+
def initialize(datatype, allowable_values)
|
|
110
|
+
@allowable_values = allowable_values.map do |value|
|
|
111
|
+
case datatype.to_s
|
|
112
|
+
when /Integer/i
|
|
113
|
+
value.to_i
|
|
114
|
+
when /Float/i
|
|
115
|
+
value.to_f
|
|
116
|
+
else
|
|
117
|
+
value
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
def valid?(value)
|
|
123
|
+
!value || allowable_values.include?(value)
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
128
|
+
def self.attribute_map
|
|
129
|
+
{
|
|
130
|
+
:'id' => :'id',
|
|
131
|
+
:'name' => :'name',
|
|
132
|
+
:'description' => :'description',
|
|
133
|
+
:'direction' => :'direction',
|
|
134
|
+
:'carrier_id' => :'carrierId',
|
|
135
|
+
:'product_id' => :'productId',
|
|
136
|
+
:'services' => :'services',
|
|
137
|
+
:'additional_parameters' => :'additionalParameters',
|
|
138
|
+
:'address_id' => :'addressId',
|
|
139
|
+
:'receiving_countries' => :'receivingCountries',
|
|
140
|
+
:'email_notification' => :'emailNotification',
|
|
141
|
+
:'phone_notification' => :'phoneNotification',
|
|
142
|
+
:'min_weight' => :'minWeight',
|
|
143
|
+
:'max_weight' => :'maxWeight',
|
|
144
|
+
:'min_order_value' => :'minOrderValue',
|
|
145
|
+
:'max_order_value' => :'maxOrderValue',
|
|
146
|
+
:'conditions' => :'conditions',
|
|
147
|
+
:'generate_proforma_invoice' => :'generateProformaInvoice',
|
|
148
|
+
:'generate_commercial_invoice' => :'generateCommercialInvoice',
|
|
149
|
+
:'generate_packing_list' => :'generatePackingList',
|
|
150
|
+
:'auto_print_labels' => :'autoPrintLabels',
|
|
151
|
+
:'auto_print_documents' => :'autoPrintDocuments',
|
|
152
|
+
:'label_printer_id' => :'labelPrinterId',
|
|
153
|
+
:'document_printer_id' => :'documentPrinterId',
|
|
154
|
+
:'return_shipping_rule_id' => :'returnShippingRuleId',
|
|
155
|
+
:'auto_create_return_shipment' => :'autoCreateReturnShipment',
|
|
156
|
+
:'org_id' => :'orgId',
|
|
157
|
+
:'created_at' => :'createdAt',
|
|
158
|
+
:'updated_at' => :'updatedAt'
|
|
159
|
+
}
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Returns attribute mapping this model knows about
|
|
163
|
+
def self.acceptable_attribute_map
|
|
164
|
+
attribute_map
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Returns all the JSON keys this model knows about
|
|
168
|
+
def self.acceptable_attributes
|
|
169
|
+
acceptable_attribute_map.values
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Attribute type mapping.
|
|
173
|
+
def self.openapi_types
|
|
174
|
+
{
|
|
175
|
+
:'id' => :'String',
|
|
176
|
+
:'name' => :'String',
|
|
177
|
+
:'description' => :'String',
|
|
178
|
+
:'direction' => :'String',
|
|
179
|
+
:'carrier_id' => :'String',
|
|
180
|
+
:'product_id' => :'String',
|
|
181
|
+
:'services' => :'Array<String>',
|
|
182
|
+
:'additional_parameters' => :'Array<ListShippingRules200ResponseDataInnerAdditionalParametersInner>',
|
|
183
|
+
:'address_id' => :'String',
|
|
184
|
+
:'receiving_countries' => :'Array<String>',
|
|
185
|
+
:'email_notification' => :'Boolean',
|
|
186
|
+
:'phone_notification' => :'Boolean',
|
|
187
|
+
:'min_weight' => :'Float',
|
|
188
|
+
:'max_weight' => :'Float',
|
|
189
|
+
:'min_order_value' => :'Float',
|
|
190
|
+
:'max_order_value' => :'Float',
|
|
191
|
+
:'conditions' => :'Array<ListShippingRules200ResponseDataInnerConditionsInner>',
|
|
192
|
+
:'generate_proforma_invoice' => :'Boolean',
|
|
193
|
+
:'generate_commercial_invoice' => :'Boolean',
|
|
194
|
+
:'generate_packing_list' => :'Boolean',
|
|
195
|
+
:'auto_print_labels' => :'Boolean',
|
|
196
|
+
:'auto_print_documents' => :'Boolean',
|
|
197
|
+
:'label_printer_id' => :'String',
|
|
198
|
+
:'document_printer_id' => :'String',
|
|
199
|
+
:'return_shipping_rule_id' => :'String',
|
|
200
|
+
:'auto_create_return_shipment' => :'Boolean',
|
|
201
|
+
:'org_id' => :'String',
|
|
202
|
+
:'created_at' => :'String',
|
|
203
|
+
:'updated_at' => :'String'
|
|
204
|
+
}
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# List of attributes with nullable: true
|
|
208
|
+
def self.openapi_nullable
|
|
209
|
+
Set.new([
|
|
210
|
+
:'description',
|
|
211
|
+
:'min_weight',
|
|
212
|
+
:'max_weight',
|
|
213
|
+
:'min_order_value',
|
|
214
|
+
:'max_order_value',
|
|
215
|
+
:'label_printer_id',
|
|
216
|
+
:'document_printer_id',
|
|
217
|
+
:'return_shipping_rule_id',
|
|
218
|
+
])
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Initializes the object
|
|
222
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
223
|
+
def initialize(attributes = {})
|
|
224
|
+
if (!attributes.is_a?(Hash))
|
|
225
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zippendo::CreateShippingRule201Response` initialize method"
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
229
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
230
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
231
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
232
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zippendo::CreateShippingRule201Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
233
|
+
end
|
|
234
|
+
h[k.to_sym] = v
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'id')
|
|
238
|
+
self.id = attributes[:'id']
|
|
239
|
+
else
|
|
240
|
+
self.id = nil
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'name')
|
|
244
|
+
self.name = attributes[:'name']
|
|
245
|
+
else
|
|
246
|
+
self.name = nil
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if attributes.key?(:'description')
|
|
250
|
+
self.description = attributes[:'description']
|
|
251
|
+
else
|
|
252
|
+
self.description = nil
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'direction')
|
|
256
|
+
self.direction = attributes[:'direction']
|
|
257
|
+
else
|
|
258
|
+
self.direction = 'outbound'
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'carrier_id')
|
|
262
|
+
self.carrier_id = attributes[:'carrier_id']
|
|
263
|
+
else
|
|
264
|
+
self.carrier_id = nil
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if attributes.key?(:'product_id')
|
|
268
|
+
self.product_id = attributes[:'product_id']
|
|
269
|
+
else
|
|
270
|
+
self.product_id = nil
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'services')
|
|
274
|
+
if (value = attributes[:'services']).is_a?(Array)
|
|
275
|
+
self.services = value
|
|
276
|
+
end
|
|
277
|
+
else
|
|
278
|
+
self.services = nil
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'additional_parameters')
|
|
282
|
+
if (value = attributes[:'additional_parameters']).is_a?(Array)
|
|
283
|
+
self.additional_parameters = value
|
|
284
|
+
end
|
|
285
|
+
else
|
|
286
|
+
self.additional_parameters = nil
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if attributes.key?(:'address_id')
|
|
290
|
+
self.address_id = attributes[:'address_id']
|
|
291
|
+
else
|
|
292
|
+
self.address_id = nil
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if attributes.key?(:'receiving_countries')
|
|
296
|
+
if (value = attributes[:'receiving_countries']).is_a?(Array)
|
|
297
|
+
self.receiving_countries = value
|
|
298
|
+
end
|
|
299
|
+
else
|
|
300
|
+
self.receiving_countries = nil
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if attributes.key?(:'email_notification')
|
|
304
|
+
self.email_notification = attributes[:'email_notification']
|
|
305
|
+
else
|
|
306
|
+
self.email_notification = false
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
if attributes.key?(:'phone_notification')
|
|
310
|
+
self.phone_notification = attributes[:'phone_notification']
|
|
311
|
+
else
|
|
312
|
+
self.phone_notification = false
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
if attributes.key?(:'min_weight')
|
|
316
|
+
self.min_weight = attributes[:'min_weight']
|
|
317
|
+
else
|
|
318
|
+
self.min_weight = nil
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if attributes.key?(:'max_weight')
|
|
322
|
+
self.max_weight = attributes[:'max_weight']
|
|
323
|
+
else
|
|
324
|
+
self.max_weight = nil
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
if attributes.key?(:'min_order_value')
|
|
328
|
+
self.min_order_value = attributes[:'min_order_value']
|
|
329
|
+
else
|
|
330
|
+
self.min_order_value = nil
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if attributes.key?(:'max_order_value')
|
|
334
|
+
self.max_order_value = attributes[:'max_order_value']
|
|
335
|
+
else
|
|
336
|
+
self.max_order_value = nil
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
if attributes.key?(:'conditions')
|
|
340
|
+
if (value = attributes[:'conditions']).is_a?(Array)
|
|
341
|
+
self.conditions = value
|
|
342
|
+
end
|
|
343
|
+
else
|
|
344
|
+
self.conditions = nil
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
if attributes.key?(:'generate_proforma_invoice')
|
|
348
|
+
self.generate_proforma_invoice = attributes[:'generate_proforma_invoice']
|
|
349
|
+
else
|
|
350
|
+
self.generate_proforma_invoice = false
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
if attributes.key?(:'generate_commercial_invoice')
|
|
354
|
+
self.generate_commercial_invoice = attributes[:'generate_commercial_invoice']
|
|
355
|
+
else
|
|
356
|
+
self.generate_commercial_invoice = false
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
if attributes.key?(:'generate_packing_list')
|
|
360
|
+
self.generate_packing_list = attributes[:'generate_packing_list']
|
|
361
|
+
else
|
|
362
|
+
self.generate_packing_list = false
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
if attributes.key?(:'auto_print_labels')
|
|
366
|
+
self.auto_print_labels = attributes[:'auto_print_labels']
|
|
367
|
+
else
|
|
368
|
+
self.auto_print_labels = false
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
if attributes.key?(:'auto_print_documents')
|
|
372
|
+
self.auto_print_documents = attributes[:'auto_print_documents']
|
|
373
|
+
else
|
|
374
|
+
self.auto_print_documents = false
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
if attributes.key?(:'label_printer_id')
|
|
378
|
+
self.label_printer_id = attributes[:'label_printer_id']
|
|
379
|
+
else
|
|
380
|
+
self.label_printer_id = nil
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
if attributes.key?(:'document_printer_id')
|
|
384
|
+
self.document_printer_id = attributes[:'document_printer_id']
|
|
385
|
+
else
|
|
386
|
+
self.document_printer_id = nil
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
if attributes.key?(:'return_shipping_rule_id')
|
|
390
|
+
self.return_shipping_rule_id = attributes[:'return_shipping_rule_id']
|
|
391
|
+
else
|
|
392
|
+
self.return_shipping_rule_id = nil
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
if attributes.key?(:'auto_create_return_shipment')
|
|
396
|
+
self.auto_create_return_shipment = attributes[:'auto_create_return_shipment']
|
|
397
|
+
else
|
|
398
|
+
self.auto_create_return_shipment = false
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
if attributes.key?(:'org_id')
|
|
402
|
+
self.org_id = attributes[:'org_id']
|
|
403
|
+
else
|
|
404
|
+
self.org_id = nil
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
if attributes.key?(:'created_at')
|
|
408
|
+
self.created_at = attributes[:'created_at']
|
|
409
|
+
else
|
|
410
|
+
self.created_at = nil
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
if attributes.key?(:'updated_at')
|
|
414
|
+
self.updated_at = attributes[:'updated_at']
|
|
415
|
+
else
|
|
416
|
+
self.updated_at = nil
|
|
417
|
+
end
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
421
|
+
# @return Array for valid properties with the reasons
|
|
422
|
+
def list_invalid_properties
|
|
423
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
424
|
+
invalid_properties = Array.new
|
|
425
|
+
if @id.nil?
|
|
426
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
if @name.nil?
|
|
430
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
if @name.to_s.length < 1
|
|
434
|
+
invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
if @direction.nil?
|
|
438
|
+
invalid_properties.push('invalid value for "direction", direction cannot be nil.')
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
if @carrier_id.nil?
|
|
442
|
+
invalid_properties.push('invalid value for "carrier_id", carrier_id cannot be nil.')
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
if @product_id.nil?
|
|
446
|
+
invalid_properties.push('invalid value for "product_id", product_id cannot be nil.')
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
if @services.nil?
|
|
450
|
+
invalid_properties.push('invalid value for "services", services cannot be nil.')
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
if @additional_parameters.nil?
|
|
454
|
+
invalid_properties.push('invalid value for "additional_parameters", additional_parameters cannot be nil.')
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
if @address_id.nil?
|
|
458
|
+
invalid_properties.push('invalid value for "address_id", address_id cannot be nil.')
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
if @receiving_countries.nil?
|
|
462
|
+
invalid_properties.push('invalid value for "receiving_countries", receiving_countries cannot be nil.')
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
if @email_notification.nil?
|
|
466
|
+
invalid_properties.push('invalid value for "email_notification", email_notification cannot be nil.')
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
if @phone_notification.nil?
|
|
470
|
+
invalid_properties.push('invalid value for "phone_notification", phone_notification cannot be nil.')
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
if @min_weight < 0
|
|
474
|
+
invalid_properties.push('invalid value for "min_weight", must be greater than or equal to 0.')
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
if @max_weight < 0
|
|
478
|
+
invalid_properties.push('invalid value for "max_weight", must be greater than or equal to 0.')
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
if @min_order_value < 0
|
|
482
|
+
invalid_properties.push('invalid value for "min_order_value", must be greater than or equal to 0.')
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
if @max_order_value < 0
|
|
486
|
+
invalid_properties.push('invalid value for "max_order_value", must be greater than or equal to 0.')
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
if @conditions.nil?
|
|
490
|
+
invalid_properties.push('invalid value for "conditions", conditions cannot be nil.')
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
if @generate_proforma_invoice.nil?
|
|
494
|
+
invalid_properties.push('invalid value for "generate_proforma_invoice", generate_proforma_invoice cannot be nil.')
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
if @generate_commercial_invoice.nil?
|
|
498
|
+
invalid_properties.push('invalid value for "generate_commercial_invoice", generate_commercial_invoice cannot be nil.')
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
if @generate_packing_list.nil?
|
|
502
|
+
invalid_properties.push('invalid value for "generate_packing_list", generate_packing_list cannot be nil.')
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
if @auto_print_labels.nil?
|
|
506
|
+
invalid_properties.push('invalid value for "auto_print_labels", auto_print_labels cannot be nil.')
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
if @auto_print_documents.nil?
|
|
510
|
+
invalid_properties.push('invalid value for "auto_print_documents", auto_print_documents cannot be nil.')
|
|
511
|
+
end
|
|
512
|
+
|
|
513
|
+
if @auto_create_return_shipment.nil?
|
|
514
|
+
invalid_properties.push('invalid value for "auto_create_return_shipment", auto_create_return_shipment cannot be nil.')
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
if @org_id.nil?
|
|
518
|
+
invalid_properties.push('invalid value for "org_id", org_id cannot be nil.')
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
if @created_at.nil?
|
|
522
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
if @updated_at.nil?
|
|
526
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
invalid_properties
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
# Check to see if the all the properties in the model are valid
|
|
533
|
+
# @return true if the model is valid
|
|
534
|
+
def valid?
|
|
535
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
536
|
+
return false if @id.nil?
|
|
537
|
+
return false if @name.nil?
|
|
538
|
+
return false if @name.to_s.length < 1
|
|
539
|
+
return false if @direction.nil?
|
|
540
|
+
direction_validator = EnumAttributeValidator.new('String', ["outbound", "inbound"])
|
|
541
|
+
return false unless direction_validator.valid?(@direction)
|
|
542
|
+
return false if @carrier_id.nil?
|
|
543
|
+
return false if @product_id.nil?
|
|
544
|
+
return false if @services.nil?
|
|
545
|
+
return false if @additional_parameters.nil?
|
|
546
|
+
return false if @address_id.nil?
|
|
547
|
+
return false if @receiving_countries.nil?
|
|
548
|
+
return false if @email_notification.nil?
|
|
549
|
+
return false if @phone_notification.nil?
|
|
550
|
+
return false if @min_weight < 0
|
|
551
|
+
return false if @max_weight < 0
|
|
552
|
+
return false if @min_order_value < 0
|
|
553
|
+
return false if @max_order_value < 0
|
|
554
|
+
return false if @conditions.nil?
|
|
555
|
+
return false if @generate_proforma_invoice.nil?
|
|
556
|
+
return false if @generate_commercial_invoice.nil?
|
|
557
|
+
return false if @generate_packing_list.nil?
|
|
558
|
+
return false if @auto_print_labels.nil?
|
|
559
|
+
return false if @auto_print_documents.nil?
|
|
560
|
+
return false if @auto_create_return_shipment.nil?
|
|
561
|
+
return false if @org_id.nil?
|
|
562
|
+
return false if @created_at.nil?
|
|
563
|
+
return false if @updated_at.nil?
|
|
564
|
+
true
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
# Custom attribute writer method with validation
|
|
568
|
+
# @param [Object] id Value to be assigned
|
|
569
|
+
def id=(id)
|
|
570
|
+
if id.nil?
|
|
571
|
+
fail ArgumentError, 'id cannot be nil'
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
@id = id
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# Custom attribute writer method with validation
|
|
578
|
+
# @param [Object] name Value to be assigned
|
|
579
|
+
def name=(name)
|
|
580
|
+
if name.nil?
|
|
581
|
+
fail ArgumentError, 'name cannot be nil'
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
if name.to_s.length < 1
|
|
585
|
+
fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
|
|
586
|
+
end
|
|
587
|
+
|
|
588
|
+
@name = name
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
592
|
+
# @param [Object] direction Object to be assigned
|
|
593
|
+
def direction=(direction)
|
|
594
|
+
validator = EnumAttributeValidator.new('String', ["outbound", "inbound"])
|
|
595
|
+
unless validator.valid?(direction)
|
|
596
|
+
fail ArgumentError, "invalid value for \"direction\", must be one of #{validator.allowable_values}."
|
|
597
|
+
end
|
|
598
|
+
@direction = direction
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
# Custom attribute writer method with validation
|
|
602
|
+
# @param [Object] carrier_id Value to be assigned
|
|
603
|
+
def carrier_id=(carrier_id)
|
|
604
|
+
if carrier_id.nil?
|
|
605
|
+
fail ArgumentError, 'carrier_id cannot be nil'
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
@carrier_id = carrier_id
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
# Custom attribute writer method with validation
|
|
612
|
+
# @param [Object] product_id Value to be assigned
|
|
613
|
+
def product_id=(product_id)
|
|
614
|
+
if product_id.nil?
|
|
615
|
+
fail ArgumentError, 'product_id cannot be nil'
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
@product_id = product_id
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
# Custom attribute writer method with validation
|
|
622
|
+
# @param [Object] services Value to be assigned
|
|
623
|
+
def services=(services)
|
|
624
|
+
if services.nil?
|
|
625
|
+
fail ArgumentError, 'services cannot be nil'
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
@services = services
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
# Custom attribute writer method with validation
|
|
632
|
+
# @param [Object] additional_parameters Value to be assigned
|
|
633
|
+
def additional_parameters=(additional_parameters)
|
|
634
|
+
if additional_parameters.nil?
|
|
635
|
+
fail ArgumentError, 'additional_parameters cannot be nil'
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
@additional_parameters = additional_parameters
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
# Custom attribute writer method with validation
|
|
642
|
+
# @param [Object] address_id Value to be assigned
|
|
643
|
+
def address_id=(address_id)
|
|
644
|
+
if address_id.nil?
|
|
645
|
+
fail ArgumentError, 'address_id cannot be nil'
|
|
646
|
+
end
|
|
647
|
+
|
|
648
|
+
@address_id = address_id
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
# Custom attribute writer method with validation
|
|
652
|
+
# @param [Object] receiving_countries Value to be assigned
|
|
653
|
+
def receiving_countries=(receiving_countries)
|
|
654
|
+
if receiving_countries.nil?
|
|
655
|
+
fail ArgumentError, 'receiving_countries cannot be nil'
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
@receiving_countries = receiving_countries
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
# Custom attribute writer method with validation
|
|
662
|
+
# @param [Object] email_notification Value to be assigned
|
|
663
|
+
def email_notification=(email_notification)
|
|
664
|
+
if email_notification.nil?
|
|
665
|
+
fail ArgumentError, 'email_notification cannot be nil'
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
@email_notification = email_notification
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
# Custom attribute writer method with validation
|
|
672
|
+
# @param [Object] phone_notification Value to be assigned
|
|
673
|
+
def phone_notification=(phone_notification)
|
|
674
|
+
if phone_notification.nil?
|
|
675
|
+
fail ArgumentError, 'phone_notification cannot be nil'
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
@phone_notification = phone_notification
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
# Custom attribute writer method with validation
|
|
682
|
+
# @param [Object] min_weight Value to be assigned
|
|
683
|
+
def min_weight=(min_weight)
|
|
684
|
+
if !min_weight.nil? && min_weight < 0
|
|
685
|
+
fail ArgumentError, 'invalid value for "min_weight", must be greater than or equal to 0.'
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
@min_weight = min_weight
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
# Custom attribute writer method with validation
|
|
692
|
+
# @param [Object] max_weight Value to be assigned
|
|
693
|
+
def max_weight=(max_weight)
|
|
694
|
+
if !max_weight.nil? && max_weight < 0
|
|
695
|
+
fail ArgumentError, 'invalid value for "max_weight", must be greater than or equal to 0.'
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
@max_weight = max_weight
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
# Custom attribute writer method with validation
|
|
702
|
+
# @param [Object] min_order_value Value to be assigned
|
|
703
|
+
def min_order_value=(min_order_value)
|
|
704
|
+
if !min_order_value.nil? && min_order_value < 0
|
|
705
|
+
fail ArgumentError, 'invalid value for "min_order_value", must be greater than or equal to 0.'
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
@min_order_value = min_order_value
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
# Custom attribute writer method with validation
|
|
712
|
+
# @param [Object] max_order_value Value to be assigned
|
|
713
|
+
def max_order_value=(max_order_value)
|
|
714
|
+
if !max_order_value.nil? && max_order_value < 0
|
|
715
|
+
fail ArgumentError, 'invalid value for "max_order_value", must be greater than or equal to 0.'
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
@max_order_value = max_order_value
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
# Custom attribute writer method with validation
|
|
722
|
+
# @param [Object] conditions Value to be assigned
|
|
723
|
+
def conditions=(conditions)
|
|
724
|
+
if conditions.nil?
|
|
725
|
+
fail ArgumentError, 'conditions cannot be nil'
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
@conditions = conditions
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
# Custom attribute writer method with validation
|
|
732
|
+
# @param [Object] generate_proforma_invoice Value to be assigned
|
|
733
|
+
def generate_proforma_invoice=(generate_proforma_invoice)
|
|
734
|
+
if generate_proforma_invoice.nil?
|
|
735
|
+
fail ArgumentError, 'generate_proforma_invoice cannot be nil'
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
@generate_proforma_invoice = generate_proforma_invoice
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
# Custom attribute writer method with validation
|
|
742
|
+
# @param [Object] generate_commercial_invoice Value to be assigned
|
|
743
|
+
def generate_commercial_invoice=(generate_commercial_invoice)
|
|
744
|
+
if generate_commercial_invoice.nil?
|
|
745
|
+
fail ArgumentError, 'generate_commercial_invoice cannot be nil'
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
@generate_commercial_invoice = generate_commercial_invoice
|
|
749
|
+
end
|
|
750
|
+
|
|
751
|
+
# Custom attribute writer method with validation
|
|
752
|
+
# @param [Object] generate_packing_list Value to be assigned
|
|
753
|
+
def generate_packing_list=(generate_packing_list)
|
|
754
|
+
if generate_packing_list.nil?
|
|
755
|
+
fail ArgumentError, 'generate_packing_list cannot be nil'
|
|
756
|
+
end
|
|
757
|
+
|
|
758
|
+
@generate_packing_list = generate_packing_list
|
|
759
|
+
end
|
|
760
|
+
|
|
761
|
+
# Custom attribute writer method with validation
|
|
762
|
+
# @param [Object] auto_print_labels Value to be assigned
|
|
763
|
+
def auto_print_labels=(auto_print_labels)
|
|
764
|
+
if auto_print_labels.nil?
|
|
765
|
+
fail ArgumentError, 'auto_print_labels cannot be nil'
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
@auto_print_labels = auto_print_labels
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# Custom attribute writer method with validation
|
|
772
|
+
# @param [Object] auto_print_documents Value to be assigned
|
|
773
|
+
def auto_print_documents=(auto_print_documents)
|
|
774
|
+
if auto_print_documents.nil?
|
|
775
|
+
fail ArgumentError, 'auto_print_documents cannot be nil'
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
@auto_print_documents = auto_print_documents
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
# Custom attribute writer method with validation
|
|
782
|
+
# @param [Object] auto_create_return_shipment Value to be assigned
|
|
783
|
+
def auto_create_return_shipment=(auto_create_return_shipment)
|
|
784
|
+
if auto_create_return_shipment.nil?
|
|
785
|
+
fail ArgumentError, 'auto_create_return_shipment cannot be nil'
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
@auto_create_return_shipment = auto_create_return_shipment
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
# Custom attribute writer method with validation
|
|
792
|
+
# @param [Object] org_id Value to be assigned
|
|
793
|
+
def org_id=(org_id)
|
|
794
|
+
if org_id.nil?
|
|
795
|
+
fail ArgumentError, 'org_id cannot be nil'
|
|
796
|
+
end
|
|
797
|
+
|
|
798
|
+
@org_id = org_id
|
|
799
|
+
end
|
|
800
|
+
|
|
801
|
+
# Custom attribute writer method with validation
|
|
802
|
+
# @param [Object] created_at Value to be assigned
|
|
803
|
+
def created_at=(created_at)
|
|
804
|
+
if created_at.nil?
|
|
805
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
@created_at = created_at
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
# Custom attribute writer method with validation
|
|
812
|
+
# @param [Object] updated_at Value to be assigned
|
|
813
|
+
def updated_at=(updated_at)
|
|
814
|
+
if updated_at.nil?
|
|
815
|
+
fail ArgumentError, 'updated_at cannot be nil'
|
|
816
|
+
end
|
|
817
|
+
|
|
818
|
+
@updated_at = updated_at
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
# Checks equality by comparing each attribute.
|
|
822
|
+
# @param [Object] Object to be compared
|
|
823
|
+
def ==(o)
|
|
824
|
+
return true if self.equal?(o)
|
|
825
|
+
self.class == o.class &&
|
|
826
|
+
id == o.id &&
|
|
827
|
+
name == o.name &&
|
|
828
|
+
description == o.description &&
|
|
829
|
+
direction == o.direction &&
|
|
830
|
+
carrier_id == o.carrier_id &&
|
|
831
|
+
product_id == o.product_id &&
|
|
832
|
+
services == o.services &&
|
|
833
|
+
additional_parameters == o.additional_parameters &&
|
|
834
|
+
address_id == o.address_id &&
|
|
835
|
+
receiving_countries == o.receiving_countries &&
|
|
836
|
+
email_notification == o.email_notification &&
|
|
837
|
+
phone_notification == o.phone_notification &&
|
|
838
|
+
min_weight == o.min_weight &&
|
|
839
|
+
max_weight == o.max_weight &&
|
|
840
|
+
min_order_value == o.min_order_value &&
|
|
841
|
+
max_order_value == o.max_order_value &&
|
|
842
|
+
conditions == o.conditions &&
|
|
843
|
+
generate_proforma_invoice == o.generate_proforma_invoice &&
|
|
844
|
+
generate_commercial_invoice == o.generate_commercial_invoice &&
|
|
845
|
+
generate_packing_list == o.generate_packing_list &&
|
|
846
|
+
auto_print_labels == o.auto_print_labels &&
|
|
847
|
+
auto_print_documents == o.auto_print_documents &&
|
|
848
|
+
label_printer_id == o.label_printer_id &&
|
|
849
|
+
document_printer_id == o.document_printer_id &&
|
|
850
|
+
return_shipping_rule_id == o.return_shipping_rule_id &&
|
|
851
|
+
auto_create_return_shipment == o.auto_create_return_shipment &&
|
|
852
|
+
org_id == o.org_id &&
|
|
853
|
+
created_at == o.created_at &&
|
|
854
|
+
updated_at == o.updated_at
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
# @see the `==` method
|
|
858
|
+
# @param [Object] Object to be compared
|
|
859
|
+
def eql?(o)
|
|
860
|
+
self == o
|
|
861
|
+
end
|
|
862
|
+
|
|
863
|
+
# Calculates hash code according to all attributes.
|
|
864
|
+
# @return [Integer] Hash code
|
|
865
|
+
def hash
|
|
866
|
+
[id, name, description, direction, carrier_id, product_id, services, additional_parameters, address_id, receiving_countries, email_notification, phone_notification, min_weight, max_weight, min_order_value, max_order_value, conditions, generate_proforma_invoice, generate_commercial_invoice, generate_packing_list, auto_print_labels, auto_print_documents, label_printer_id, document_printer_id, return_shipping_rule_id, auto_create_return_shipment, org_id, created_at, updated_at].hash
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
# Builds the object from hash
|
|
870
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
871
|
+
# @return [Object] Returns the model itself
|
|
872
|
+
def self.build_from_hash(attributes)
|
|
873
|
+
return nil unless attributes.is_a?(Hash)
|
|
874
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
875
|
+
transformed_hash = {}
|
|
876
|
+
openapi_types.each_pair do |key, type|
|
|
877
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
878
|
+
transformed_hash["#{key}"] = nil
|
|
879
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
880
|
+
# check to ensure the input is an array given that the attribute
|
|
881
|
+
# is documented as an array but the input is not
|
|
882
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
883
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
884
|
+
end
|
|
885
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
886
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
887
|
+
end
|
|
888
|
+
end
|
|
889
|
+
new(transformed_hash)
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
# Returns the object in the form of hash
|
|
893
|
+
# @return [Hash] Returns the object in the form of hash
|
|
894
|
+
def to_hash
|
|
895
|
+
hash = {}
|
|
896
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
897
|
+
value = self.send(attr)
|
|
898
|
+
if value.nil?
|
|
899
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
900
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
901
|
+
end
|
|
902
|
+
|
|
903
|
+
hash[param] = _to_hash(value)
|
|
904
|
+
end
|
|
905
|
+
hash
|
|
906
|
+
end
|
|
907
|
+
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
end
|