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,313 @@
|
|
|
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 ListCarrierProductServicePointsRequest < ApiModelBase
|
|
18
|
+
# Street address line 1
|
|
19
|
+
attr_accessor :address1
|
|
20
|
+
|
|
21
|
+
# Street address line 2
|
|
22
|
+
attr_accessor :address2
|
|
23
|
+
|
|
24
|
+
# Postal code
|
|
25
|
+
attr_accessor :postal_code
|
|
26
|
+
|
|
27
|
+
# State or region
|
|
28
|
+
attr_accessor :state
|
|
29
|
+
|
|
30
|
+
# City name
|
|
31
|
+
attr_accessor :city
|
|
32
|
+
|
|
33
|
+
# ISO 3166-1 alpha-2 country code
|
|
34
|
+
attr_accessor :country_code
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'address1' => :'address1',
|
|
40
|
+
:'address2' => :'address2',
|
|
41
|
+
:'postal_code' => :'postalCode',
|
|
42
|
+
:'state' => :'state',
|
|
43
|
+
:'city' => :'city',
|
|
44
|
+
:'country_code' => :'countryCode'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Returns attribute mapping this model knows about
|
|
49
|
+
def self.acceptable_attribute_map
|
|
50
|
+
attribute_map
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns all the JSON keys this model knows about
|
|
54
|
+
def self.acceptable_attributes
|
|
55
|
+
acceptable_attribute_map.values
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Attribute type mapping.
|
|
59
|
+
def self.openapi_types
|
|
60
|
+
{
|
|
61
|
+
:'address1' => :'String',
|
|
62
|
+
:'address2' => :'String',
|
|
63
|
+
:'postal_code' => :'String',
|
|
64
|
+
:'state' => :'String',
|
|
65
|
+
:'city' => :'String',
|
|
66
|
+
:'country_code' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
:'address2',
|
|
74
|
+
:'state',
|
|
75
|
+
])
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Initializes the object
|
|
79
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
80
|
+
def initialize(attributes = {})
|
|
81
|
+
if (!attributes.is_a?(Hash))
|
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zippendo::ListCarrierProductServicePointsRequest` initialize method"
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
86
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
87
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
88
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zippendo::ListCarrierProductServicePointsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
90
|
+
end
|
|
91
|
+
h[k.to_sym] = v
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'address1')
|
|
95
|
+
self.address1 = attributes[:'address1']
|
|
96
|
+
else
|
|
97
|
+
self.address1 = nil
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'address2')
|
|
101
|
+
self.address2 = attributes[:'address2']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'postal_code')
|
|
105
|
+
self.postal_code = attributes[:'postal_code']
|
|
106
|
+
else
|
|
107
|
+
self.postal_code = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'state')
|
|
111
|
+
self.state = attributes[:'state']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'city')
|
|
115
|
+
self.city = attributes[:'city']
|
|
116
|
+
else
|
|
117
|
+
self.city = nil
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'country_code')
|
|
121
|
+
self.country_code = attributes[:'country_code']
|
|
122
|
+
else
|
|
123
|
+
self.country_code = nil
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
128
|
+
# @return Array for valid properties with the reasons
|
|
129
|
+
def list_invalid_properties
|
|
130
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
131
|
+
invalid_properties = Array.new
|
|
132
|
+
if @address1.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "address1", address1 cannot be nil.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if @address1.to_s.length < 1
|
|
137
|
+
invalid_properties.push('invalid value for "address1", the character length must be greater than or equal to 1.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if @postal_code.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "postal_code", postal_code cannot be nil.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if @postal_code.to_s.length < 1
|
|
145
|
+
invalid_properties.push('invalid value for "postal_code", the character length must be greater than or equal to 1.')
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if @city.nil?
|
|
149
|
+
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if @city.to_s.length < 1
|
|
153
|
+
invalid_properties.push('invalid value for "city", the character length must be greater than or equal to 1.')
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if @country_code.nil?
|
|
157
|
+
invalid_properties.push('invalid value for "country_code", country_code cannot be nil.')
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if @country_code.to_s.length > 2
|
|
161
|
+
invalid_properties.push('invalid value for "country_code", the character length must be smaller than or equal to 2.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if @country_code.to_s.length < 2
|
|
165
|
+
invalid_properties.push('invalid value for "country_code", the character length must be greater than or equal to 2.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
invalid_properties
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Check to see if the all the properties in the model are valid
|
|
172
|
+
# @return true if the model is valid
|
|
173
|
+
def valid?
|
|
174
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
175
|
+
return false if @address1.nil?
|
|
176
|
+
return false if @address1.to_s.length < 1
|
|
177
|
+
return false if @postal_code.nil?
|
|
178
|
+
return false if @postal_code.to_s.length < 1
|
|
179
|
+
return false if @city.nil?
|
|
180
|
+
return false if @city.to_s.length < 1
|
|
181
|
+
return false if @country_code.nil?
|
|
182
|
+
return false if @country_code.to_s.length > 2
|
|
183
|
+
return false if @country_code.to_s.length < 2
|
|
184
|
+
true
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Custom attribute writer method with validation
|
|
188
|
+
# @param [Object] address1 Value to be assigned
|
|
189
|
+
def address1=(address1)
|
|
190
|
+
if address1.nil?
|
|
191
|
+
fail ArgumentError, 'address1 cannot be nil'
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if address1.to_s.length < 1
|
|
195
|
+
fail ArgumentError, 'invalid value for "address1", the character length must be greater than or equal to 1.'
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
@address1 = address1
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Custom attribute writer method with validation
|
|
202
|
+
# @param [Object] postal_code Value to be assigned
|
|
203
|
+
def postal_code=(postal_code)
|
|
204
|
+
if postal_code.nil?
|
|
205
|
+
fail ArgumentError, 'postal_code cannot be nil'
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if postal_code.to_s.length < 1
|
|
209
|
+
fail ArgumentError, 'invalid value for "postal_code", the character length must be greater than or equal to 1.'
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
@postal_code = postal_code
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Custom attribute writer method with validation
|
|
216
|
+
# @param [Object] city Value to be assigned
|
|
217
|
+
def city=(city)
|
|
218
|
+
if city.nil?
|
|
219
|
+
fail ArgumentError, 'city cannot be nil'
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if city.to_s.length < 1
|
|
223
|
+
fail ArgumentError, 'invalid value for "city", the character length must be greater than or equal to 1.'
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
@city = city
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Custom attribute writer method with validation
|
|
230
|
+
# @param [Object] country_code Value to be assigned
|
|
231
|
+
def country_code=(country_code)
|
|
232
|
+
if country_code.nil?
|
|
233
|
+
fail ArgumentError, 'country_code cannot be nil'
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if country_code.to_s.length > 2
|
|
237
|
+
fail ArgumentError, 'invalid value for "country_code", the character length must be smaller than or equal to 2.'
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if country_code.to_s.length < 2
|
|
241
|
+
fail ArgumentError, 'invalid value for "country_code", the character length must be greater than or equal to 2.'
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
@country_code = country_code
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# Checks equality by comparing each attribute.
|
|
248
|
+
# @param [Object] Object to be compared
|
|
249
|
+
def ==(o)
|
|
250
|
+
return true if self.equal?(o)
|
|
251
|
+
self.class == o.class &&
|
|
252
|
+
address1 == o.address1 &&
|
|
253
|
+
address2 == o.address2 &&
|
|
254
|
+
postal_code == o.postal_code &&
|
|
255
|
+
state == o.state &&
|
|
256
|
+
city == o.city &&
|
|
257
|
+
country_code == o.country_code
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# @see the `==` method
|
|
261
|
+
# @param [Object] Object to be compared
|
|
262
|
+
def eql?(o)
|
|
263
|
+
self == o
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Calculates hash code according to all attributes.
|
|
267
|
+
# @return [Integer] Hash code
|
|
268
|
+
def hash
|
|
269
|
+
[address1, address2, postal_code, state, city, country_code].hash
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Builds the object from hash
|
|
273
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
274
|
+
# @return [Object] Returns the model itself
|
|
275
|
+
def self.build_from_hash(attributes)
|
|
276
|
+
return nil unless attributes.is_a?(Hash)
|
|
277
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
278
|
+
transformed_hash = {}
|
|
279
|
+
openapi_types.each_pair do |key, type|
|
|
280
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
281
|
+
transformed_hash["#{key}"] = nil
|
|
282
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
283
|
+
# check to ensure the input is an array given that the attribute
|
|
284
|
+
# is documented as an array but the input is not
|
|
285
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
286
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
287
|
+
end
|
|
288
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
289
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
new(transformed_hash)
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Returns the object in the form of hash
|
|
296
|
+
# @return [Hash] Returns the object in the form of hash
|
|
297
|
+
def to_hash
|
|
298
|
+
hash = {}
|
|
299
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
300
|
+
value = self.send(attr)
|
|
301
|
+
if value.nil?
|
|
302
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
303
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
hash[param] = _to_hash(value)
|
|
307
|
+
end
|
|
308
|
+
hash
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
end
|
|
@@ -0,0 +1,398 @@
|
|
|
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 ListCarrierProducts200ResponseInner < ApiModelBase
|
|
18
|
+
# Display name of the shipping product
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
21
|
+
# Unique carrier product identifier
|
|
22
|
+
attr_accessor :product_id
|
|
23
|
+
|
|
24
|
+
# Direction of the shipment for this product
|
|
25
|
+
attr_accessor :type
|
|
26
|
+
|
|
27
|
+
# Description of the shipping product
|
|
28
|
+
attr_accessor :description
|
|
29
|
+
|
|
30
|
+
# Recipient countries supported by this product
|
|
31
|
+
attr_accessor :available_countries
|
|
32
|
+
|
|
33
|
+
# Sender countries supported by this product
|
|
34
|
+
attr_accessor :available_sender_countries
|
|
35
|
+
|
|
36
|
+
# Whether delivery is to a service point/pickup location
|
|
37
|
+
attr_accessor :is_service_point
|
|
38
|
+
|
|
39
|
+
# Whether carrier pickup is available for this product
|
|
40
|
+
attr_accessor :is_pickup_available
|
|
41
|
+
|
|
42
|
+
# Additional services available for this product
|
|
43
|
+
attr_accessor :services
|
|
44
|
+
|
|
45
|
+
# Extra parameters that can or must be supplied for this product
|
|
46
|
+
attr_accessor :additional_parameters
|
|
47
|
+
|
|
48
|
+
attr_accessor :weight_limits
|
|
49
|
+
|
|
50
|
+
class EnumAttributeValidator
|
|
51
|
+
attr_reader :datatype
|
|
52
|
+
attr_reader :allowable_values
|
|
53
|
+
|
|
54
|
+
def initialize(datatype, allowable_values)
|
|
55
|
+
@allowable_values = allowable_values.map do |value|
|
|
56
|
+
case datatype.to_s
|
|
57
|
+
when /Integer/i
|
|
58
|
+
value.to_i
|
|
59
|
+
when /Float/i
|
|
60
|
+
value.to_f
|
|
61
|
+
else
|
|
62
|
+
value
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def valid?(value)
|
|
68
|
+
!value || allowable_values.include?(value)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
73
|
+
def self.attribute_map
|
|
74
|
+
{
|
|
75
|
+
:'name' => :'name',
|
|
76
|
+
:'product_id' => :'productId',
|
|
77
|
+
:'type' => :'type',
|
|
78
|
+
:'description' => :'description',
|
|
79
|
+
:'available_countries' => :'availableCountries',
|
|
80
|
+
:'available_sender_countries' => :'availableSenderCountries',
|
|
81
|
+
:'is_service_point' => :'isServicePoint',
|
|
82
|
+
:'is_pickup_available' => :'isPickupAvailable',
|
|
83
|
+
:'services' => :'services',
|
|
84
|
+
:'additional_parameters' => :'additionalParameters',
|
|
85
|
+
:'weight_limits' => :'weightLimits'
|
|
86
|
+
}
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Returns attribute mapping this model knows about
|
|
90
|
+
def self.acceptable_attribute_map
|
|
91
|
+
attribute_map
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Returns all the JSON keys this model knows about
|
|
95
|
+
def self.acceptable_attributes
|
|
96
|
+
acceptable_attribute_map.values
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Attribute type mapping.
|
|
100
|
+
def self.openapi_types
|
|
101
|
+
{
|
|
102
|
+
:'name' => :'String',
|
|
103
|
+
:'product_id' => :'String',
|
|
104
|
+
:'type' => :'String',
|
|
105
|
+
:'description' => :'String',
|
|
106
|
+
:'available_countries' => :'Array<String>',
|
|
107
|
+
:'available_sender_countries' => :'Array<String>',
|
|
108
|
+
:'is_service_point' => :'Boolean',
|
|
109
|
+
:'is_pickup_available' => :'Boolean',
|
|
110
|
+
:'services' => :'Array<ListCarrierProducts200ResponseInnerServicesInner>',
|
|
111
|
+
:'additional_parameters' => :'Array<ListCarrierProducts200ResponseInnerAdditionalParametersInner>',
|
|
112
|
+
:'weight_limits' => :'ListCarrierProducts200ResponseInnerWeightLimits'
|
|
113
|
+
}
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# List of attributes with nullable: true
|
|
117
|
+
def self.openapi_nullable
|
|
118
|
+
Set.new([
|
|
119
|
+
])
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Initializes the object
|
|
123
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
124
|
+
def initialize(attributes = {})
|
|
125
|
+
if (!attributes.is_a?(Hash))
|
|
126
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zippendo::ListCarrierProducts200ResponseInner` initialize method"
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
130
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
131
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
132
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
133
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zippendo::ListCarrierProducts200ResponseInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
134
|
+
end
|
|
135
|
+
h[k.to_sym] = v
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'name')
|
|
139
|
+
self.name = attributes[:'name']
|
|
140
|
+
else
|
|
141
|
+
self.name = nil
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'product_id')
|
|
145
|
+
self.product_id = attributes[:'product_id']
|
|
146
|
+
else
|
|
147
|
+
self.product_id = nil
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.key?(:'type')
|
|
151
|
+
self.type = attributes[:'type']
|
|
152
|
+
else
|
|
153
|
+
self.type = nil
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'description')
|
|
157
|
+
self.description = attributes[:'description']
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'available_countries')
|
|
161
|
+
if (value = attributes[:'available_countries']).is_a?(Array)
|
|
162
|
+
self.available_countries = value
|
|
163
|
+
end
|
|
164
|
+
else
|
|
165
|
+
self.available_countries = nil
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'available_sender_countries')
|
|
169
|
+
if (value = attributes[:'available_sender_countries']).is_a?(Array)
|
|
170
|
+
self.available_sender_countries = value
|
|
171
|
+
end
|
|
172
|
+
else
|
|
173
|
+
self.available_sender_countries = nil
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'is_service_point')
|
|
177
|
+
self.is_service_point = attributes[:'is_service_point']
|
|
178
|
+
else
|
|
179
|
+
self.is_service_point = false
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'is_pickup_available')
|
|
183
|
+
self.is_pickup_available = attributes[:'is_pickup_available']
|
|
184
|
+
else
|
|
185
|
+
self.is_pickup_available = false
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if attributes.key?(:'services')
|
|
189
|
+
if (value = attributes[:'services']).is_a?(Array)
|
|
190
|
+
self.services = value
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.key?(:'additional_parameters')
|
|
195
|
+
if (value = attributes[:'additional_parameters']).is_a?(Array)
|
|
196
|
+
self.additional_parameters = value
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'weight_limits')
|
|
201
|
+
self.weight_limits = attributes[:'weight_limits']
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
206
|
+
# @return Array for valid properties with the reasons
|
|
207
|
+
def list_invalid_properties
|
|
208
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
209
|
+
invalid_properties = Array.new
|
|
210
|
+
if @name.nil?
|
|
211
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if @product_id.nil?
|
|
215
|
+
invalid_properties.push('invalid value for "product_id", product_id cannot be nil.')
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if @type.nil?
|
|
219
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if @available_countries.nil?
|
|
223
|
+
invalid_properties.push('invalid value for "available_countries", available_countries cannot be nil.')
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if @available_sender_countries.nil?
|
|
227
|
+
invalid_properties.push('invalid value for "available_sender_countries", available_sender_countries cannot be nil.')
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if @is_service_point.nil?
|
|
231
|
+
invalid_properties.push('invalid value for "is_service_point", is_service_point cannot be nil.')
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if @is_pickup_available.nil?
|
|
235
|
+
invalid_properties.push('invalid value for "is_pickup_available", is_pickup_available cannot be nil.')
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
invalid_properties
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Check to see if the all the properties in the model are valid
|
|
242
|
+
# @return true if the model is valid
|
|
243
|
+
def valid?
|
|
244
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
245
|
+
return false if @name.nil?
|
|
246
|
+
return false if @product_id.nil?
|
|
247
|
+
return false if @type.nil?
|
|
248
|
+
type_validator = EnumAttributeValidator.new('String', ["outbound", "inbound"])
|
|
249
|
+
return false unless type_validator.valid?(@type)
|
|
250
|
+
return false if @available_countries.nil?
|
|
251
|
+
return false if @available_sender_countries.nil?
|
|
252
|
+
return false if @is_service_point.nil?
|
|
253
|
+
return false if @is_pickup_available.nil?
|
|
254
|
+
true
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Custom attribute writer method with validation
|
|
258
|
+
# @param [Object] name Value to be assigned
|
|
259
|
+
def name=(name)
|
|
260
|
+
if name.nil?
|
|
261
|
+
fail ArgumentError, 'name cannot be nil'
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
@name = name
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
# Custom attribute writer method with validation
|
|
268
|
+
# @param [Object] product_id Value to be assigned
|
|
269
|
+
def product_id=(product_id)
|
|
270
|
+
if product_id.nil?
|
|
271
|
+
fail ArgumentError, 'product_id cannot be nil'
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
@product_id = product_id
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
278
|
+
# @param [Object] type Object to be assigned
|
|
279
|
+
def type=(type)
|
|
280
|
+
validator = EnumAttributeValidator.new('String', ["outbound", "inbound"])
|
|
281
|
+
unless validator.valid?(type)
|
|
282
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
283
|
+
end
|
|
284
|
+
@type = type
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# Custom attribute writer method with validation
|
|
288
|
+
# @param [Object] available_countries Value to be assigned
|
|
289
|
+
def available_countries=(available_countries)
|
|
290
|
+
if available_countries.nil?
|
|
291
|
+
fail ArgumentError, 'available_countries cannot be nil'
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
@available_countries = available_countries
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Custom attribute writer method with validation
|
|
298
|
+
# @param [Object] available_sender_countries Value to be assigned
|
|
299
|
+
def available_sender_countries=(available_sender_countries)
|
|
300
|
+
if available_sender_countries.nil?
|
|
301
|
+
fail ArgumentError, 'available_sender_countries cannot be nil'
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
@available_sender_countries = available_sender_countries
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Custom attribute writer method with validation
|
|
308
|
+
# @param [Object] is_service_point Value to be assigned
|
|
309
|
+
def is_service_point=(is_service_point)
|
|
310
|
+
if is_service_point.nil?
|
|
311
|
+
fail ArgumentError, 'is_service_point cannot be nil'
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
@is_service_point = is_service_point
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Custom attribute writer method with validation
|
|
318
|
+
# @param [Object] is_pickup_available Value to be assigned
|
|
319
|
+
def is_pickup_available=(is_pickup_available)
|
|
320
|
+
if is_pickup_available.nil?
|
|
321
|
+
fail ArgumentError, 'is_pickup_available cannot be nil'
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
@is_pickup_available = is_pickup_available
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Checks equality by comparing each attribute.
|
|
328
|
+
# @param [Object] Object to be compared
|
|
329
|
+
def ==(o)
|
|
330
|
+
return true if self.equal?(o)
|
|
331
|
+
self.class == o.class &&
|
|
332
|
+
name == o.name &&
|
|
333
|
+
product_id == o.product_id &&
|
|
334
|
+
type == o.type &&
|
|
335
|
+
description == o.description &&
|
|
336
|
+
available_countries == o.available_countries &&
|
|
337
|
+
available_sender_countries == o.available_sender_countries &&
|
|
338
|
+
is_service_point == o.is_service_point &&
|
|
339
|
+
is_pickup_available == o.is_pickup_available &&
|
|
340
|
+
services == o.services &&
|
|
341
|
+
additional_parameters == o.additional_parameters &&
|
|
342
|
+
weight_limits == o.weight_limits
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# @see the `==` method
|
|
346
|
+
# @param [Object] Object to be compared
|
|
347
|
+
def eql?(o)
|
|
348
|
+
self == o
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# Calculates hash code according to all attributes.
|
|
352
|
+
# @return [Integer] Hash code
|
|
353
|
+
def hash
|
|
354
|
+
[name, product_id, type, description, available_countries, available_sender_countries, is_service_point, is_pickup_available, services, additional_parameters, weight_limits].hash
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
# Builds the object from hash
|
|
358
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
359
|
+
# @return [Object] Returns the model itself
|
|
360
|
+
def self.build_from_hash(attributes)
|
|
361
|
+
return nil unless attributes.is_a?(Hash)
|
|
362
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
363
|
+
transformed_hash = {}
|
|
364
|
+
openapi_types.each_pair do |key, type|
|
|
365
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
366
|
+
transformed_hash["#{key}"] = nil
|
|
367
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
368
|
+
# check to ensure the input is an array given that the attribute
|
|
369
|
+
# is documented as an array but the input is not
|
|
370
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
371
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
372
|
+
end
|
|
373
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
374
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
new(transformed_hash)
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# Returns the object in the form of hash
|
|
381
|
+
# @return [Hash] Returns the object in the form of hash
|
|
382
|
+
def to_hash
|
|
383
|
+
hash = {}
|
|
384
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
385
|
+
value = self.send(attr)
|
|
386
|
+
if value.nil?
|
|
387
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
388
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
hash[param] = _to_hash(value)
|
|
392
|
+
end
|
|
393
|
+
hash
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
end
|