WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

AbstractAddressSchema::get_properties() public WC 1.0

Term properties.

{} It's a method of the class: AbstractAddressSchema{}

No Hooks.

Return

Array.

Usage

$AbstractAddressSchema = new AbstractAddressSchema();
$AbstractAddressSchema->get_properties();

Code of AbstractAddressSchema::get_properties() WC 5.6.0

public function get_properties() {
	return [
		'first_name' => [
			'description' => __( 'First name', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
			'required'    => true,
		],
		'last_name'  => [
			'description' => __( 'Last name', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
			'required'    => true,
		],
		'company'    => [
			'description' => __( 'Company', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
			'required'    => true,
		],
		'address_1'  => [
			'description' => __( 'Address', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
			'required'    => true,
		],
		'address_2'  => [
			'description' => __( 'Apartment, suite, etc.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
			'required'    => true,
		],
		'city'       => [
			'description' => __( 'City', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
			'required'    => true,
		],
		'state'      => [
			'description' => __( 'State/County code, or name of the state, county, province, or district.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
			'required'    => true,
		],
		'postcode'   => [
			'description' => __( 'Postal code', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
			'required'    => true,
		],
		'country'    => [
			'description' => __( 'Country/Region code in ISO 3166-1 alpha-2 format.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
			'required'    => true,
		],
	];
}