Automattic\WooCommerce\Internal\Api\Autogenerated\GraphQLMutations
UpdateCoupon::get_field_definition
Method of the class: UpdateCoupon{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = UpdateCoupon::get_field_definition(): array;
UpdateCoupon::get_field_definition() UpdateCoupon::get field definition code WC 10.9.1
public static function get_field_definition(): array {
return array(
'type' => Type::nonNull( CouponType::get() ),
'description' => __( 'Update an existing coupon.', 'woocommerce' ),
'authorization' => array(
array(
'attribute' => 'RequiredCapability',
'args' => array(
0 => 'manage_woocommerce',
),
),
),
'args' => array(
'input' => array(
'type' => Type::nonNull( UpdateCouponInput::get() ),
'description' => __( 'The fields to update.', 'woocommerce' ),
),
),
'resolve' => array( self::class, 'resolve' ),
);
}