WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Blocks\StoreApi\Schemas

OrderCouponSchema::get_properties() public WC 1.0

Cart schema properties.

Это метод класса: OrderCouponSchema{}

Хуков нет.

Возвращает

Массив.

Использование

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

Код OrderCouponSchema::get_properties() WC 4.5.2

woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/OrderCouponSchema.php
<?php
public function get_properties() {
	return [
		'code'   => [
			'description' => __( 'The coupons unique code.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
			'readonly'    => true,
		],
		'totals' => [
			'description' => __( 'Total amounts provided using the smallest unit of the currency.', 'woocommerce' ),
			'type'        => 'object',
			'context'     => [ 'view', 'edit' ],
			'readonly'    => true,
			'properties'  => array_merge(
				$this->get_store_currency_properties(),
				[
					'total_discount'     => [
						'description' => __( 'Total discount applied by this coupon.', 'woocommerce' ),
						'type'        => 'string',
						'context'     => [ 'view', 'edit' ],
						'readonly'    => true,
					],
					'total_discount_tax' => [
						'description' => __( 'Total tax removed due to discount applied by this coupon.', 'woocommerce' ),
						'type'        => 'string',
						'context'     => [ 'view', 'edit' ],
						'readonly'    => true,
					],
				]
			),
		],
	];
}