101 lines
2.9 KiB
PHP
101 lines
2.9 KiB
PHP
<?php
|
|
/**
|
|
* Schema for customer@create.
|
|
*
|
|
* @package WP_Ultimo\API\Schemas
|
|
* @since 2.0.11
|
|
*/
|
|
|
|
// Exit if accessed directly
|
|
defined('ABSPATH') || exit;
|
|
|
|
/**
|
|
* Schema for customer@create.
|
|
*
|
|
* @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-multisite-waas'),
|
|
'type' => 'integer',
|
|
'required' => true,
|
|
],
|
|
'date_registered' => [
|
|
'description' => __('Date when the customer was created.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
],
|
|
'email_verification' => [
|
|
'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => true,
|
|
'enum' => [
|
|
'verified',
|
|
'pending',
|
|
'none',
|
|
],
|
|
],
|
|
'last_login' => [
|
|
'description' => __('Date this customer last logged in.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
],
|
|
'has_trialed' => [
|
|
'description' => __('Whether or not the customer has trialed before.', 'wp-multisite-waas'),
|
|
'type' => 'boolean',
|
|
'required' => false,
|
|
],
|
|
'vip' => [
|
|
'description' => __('If this customer is a VIP customer or not.', 'wp-multisite-waas'),
|
|
'type' => 'boolean',
|
|
'required' => false,
|
|
],
|
|
'ips' => [
|
|
'description' => __('List of IP addresses used by this customer.', 'wp-multisite-waas'),
|
|
'type' => 'array',
|
|
'required' => false,
|
|
],
|
|
'extra_information' => [
|
|
'description' => __('Any extra information related to this customer.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
],
|
|
'type' => [
|
|
'description' => __("The customer type. Can be 'customer'.", 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => true,
|
|
'enum' => [
|
|
'customer',
|
|
],
|
|
],
|
|
'signup_form' => [
|
|
'description' => __('The form used to signup.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
],
|
|
'date_created' => [
|
|
'description' => __('Model creation date.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
],
|
|
'date_modified' => [
|
|
'description' => __('Model last modification date.', 'wp-multisite-waas'),
|
|
'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-multisite-waas'),
|
|
'type' => 'integer',
|
|
'required' => false,
|
|
],
|
|
'skip_validation' => [
|
|
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
|
'type' => 'boolean',
|
|
'required' => false,
|
|
],
|
|
];
|