Files
wp-multisite-waas/inc/api/schemas/customer-update.php
2025-02-08 13:57:32 -07:00

101 lines
2.8 KiB
PHP

<?php
/**
* Schema for customer@update.
*
* @package WP_Ultimo\API\Schemas
* @since 2.0.11
*/
// Exit if accessed directly
defined('ABSPATH') || exit;
/**
* Schema for customer@update.
*
* @since 2.0.11
* @internal last-generated in 2022-12
* @generated class generated by our build scripts, do not change!
*
* @since 2.0.11
*/
return [
'user_id' => [
'description' => __('The WordPress user ID attached to this customer.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
],
'date_registered' => [
'description' => __('Date when the customer was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
],
'email_verification' => [
'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => [
'verified',
'pending',
'none',
],
],
'last_login' => [
'description' => __('Date this customer last logged in.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
],
'has_trialed' => [
'description' => __('Whether or not the customer has trialed before.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
],
'vip' => [
'description' => __('If this customer is a VIP customer or not.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
],
'ips' => [
'description' => __('List of IP addresses used by this customer.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
],
'extra_information' => [
'description' => __('Any extra information related to this customer.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
],
'type' => [
'description' => __("The customer type. Can be 'customer'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => [
'customer',
],
],
'signup_form' => [
'description' => __('The form used to signup.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
],
'date_created' => [
'description' => __('Model creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
],
'migrated_from_id' => [
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
],
];