CartShippingRateSchema
CartShippingRateSchema class.
Description Description
Source Source
File: packages/woocommerce-blocks/src/StoreApi/Schemas/CartShippingRateSchema.php
Methods Methods
- get_item_response — Convert a shipping rate from WooCommerce into a valid response.
- get_properties — Cart schema properties.
- get_rate_meta_data — Converts rate meta data into a suitable response object.
- get_rate_prop — Gets a prop of the rate object, if callable.
- get_rate_properties — Schema for a single rate.
- get_rate_response — Response for a single rate.
- prepare_package_destination_response — Gets and formats the destination address of a package.
- prepare_package_items_response — Gets items from a package and creates an array of strings containing product names and quantities.
- prepare_package_shipping_rates_response — Prepare an array of rates from a package for the response.