Use PHP 7.4 featers and PHP 8 polyfills

This commit is contained in:
David Stone
2025-02-08 13:57:32 -07:00
parent 8bea6067cd
commit b41dc2b2eb
550 changed files with 15270 additions and 14627 deletions

View File

@ -18,76 +18,76 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'migrated_from_id' => array(
return [
'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,
),
'notice_type' => array(
],
'notice_type' => [
'description' => __('Can be info, success, warning or error.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'info',
'success',
'warning',
'error',
),
),
'name' => array(
],
],
'name' => [
'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __('The type being set.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'status' => array(
],
'status' => [
'description' => __('The status being set.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'author_id' => array(
],
'author_id' => [
'description' => __('The author ID.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'title' => array(
],
'title' => [
'description' => __('Post title.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'content' => array(
],
'content' => [
'description' => __('Post content.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'excerpt' => array(
],
'excerpt' => [
'description' => __('Post excerpt.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Post creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Post last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'slug' => array(
],
'slug' => [
'description' => __('The slug.', 'wp-ultimo'),
'type' => 'mixed',
'required' => false,
),
'skip_validation' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,76 +18,76 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'migrated_from_id' => array(
return [
'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,
),
'notice_type' => array(
],
'notice_type' => [
'description' => __('Can be info, success, warning or error.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'info',
'success',
'warning',
'error',
),
),
'name' => array(
],
],
'name' => [
'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __('The type being set.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'status' => array(
],
'status' => [
'description' => __('The status being set.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'author_id' => array(
],
'author_id' => [
'description' => __('The author ID.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'title' => array(
],
'title' => [
'description' => __('Post title.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'content' => array(
],
'content' => [
'description' => __('Post content.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'excerpt' => array(
],
'excerpt' => [
'description' => __('Post excerpt.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Post creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Post last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'slug' => array(
],
'slug' => [
'description' => __('The slug.', 'wp-ultimo'),
'type' => 'mixed',
'required' => false,
),
'skip_validation' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,75 +18,75 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'slug' => array(
return [
'slug' => [
'description' => __('The checkout form slug. It needs to be unique and preferably make it clear what it is about. E.g. my_checkout_form.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'name' => array(
],
'name' => [
'description' => __('Your checkout form name, which is used as checkout form title as well.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'active' => array(
],
'active' => [
'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => true,
),
'custom_css' => array(
],
'custom_css' => [
'description' => __('Custom CSS code for the checkout form.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'settings' => array(
],
'settings' => [
'description' => __('The checkout form settings and configurations.', 'wp-ultimo'),
'type' => 'object',
'required' => false,
),
'allowed_countries' => array(
],
'allowed_countries' => [
'description' => __('The allowed countries that can access this checkout.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'thank_you_page_id' => array(
],
'thank_you_page_id' => [
'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'conversion_snippets' => array(
],
'conversion_snippets' => [
'description' => __('Snippets to run on thank you page.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'template' => array(
],
'template' => [
'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'blank',
'single-step',
'multi-step',
),
),
'date_created' => array(
],
],
'date_created' => [
'description' => __('Model creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,75 +18,75 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'slug' => array(
return [
'slug' => [
'description' => __('The checkout form slug. It needs to be unique and preferably make it clear what it is about. E.g. my_checkout_form.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'name' => array(
],
'name' => [
'description' => __('Your checkout form name, which is used as checkout form title as well.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Set this checkout form as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'custom_css' => array(
],
'custom_css' => [
'description' => __('Custom CSS code for the checkout form.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'settings' => array(
],
'settings' => [
'description' => __('The checkout form settings and configurations.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'allowed_countries' => array(
],
'allowed_countries' => [
'description' => __('The allowed countries that can access this checkout.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'thank_you_page_id' => array(
],
'thank_you_page_id' => [
'description' => __('The thank you page ID. This page is shown after a successful purchase.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'conversion_snippets' => array(
],
'conversion_snippets' => [
'description' => __('Snippets to run on thank you page.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'template' => array(
],
'template' => [
'description' => __("Template mode. Can be either 'blank', 'single-step' or 'multi-step'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'blank',
'single-step',
'multi-step',
),
),
'date_created' => array(
],
],
'date_created' => [
'description' => __('Model creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,83 +18,83 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'user_id' => array(
return [
'user_id' => [
'description' => __('The WordPress user ID attached to this customer.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'date_registered' => array(
],
'date_registered' => [
'description' => __('Date when the customer was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'email_verification' => array(
],
'email_verification' => [
'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
'enum' => array(
'enum' => [
'verified',
'pending',
'none',
),
),
'last_login' => array(
],
],
'last_login' => [
'description' => __('Date this customer last logged in.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'has_trialed' => array(
],
'has_trialed' => [
'description' => __('Whether or not the customer has trialed before.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'vip' => array(
],
'vip' => [
'description' => __('If this customer is a VIP customer or not.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'ips' => array(
],
'ips' => [
'description' => __('List of IP addresses used by this customer.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'extra_information' => array(
],
'extra_information' => [
'description' => __('Any extra information related to this customer.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __("The customer type. Can be 'customer'.", 'wp-ultimo'),
'type' => 'string',
'required' => true,
'enum' => array(
'enum' => [
'customer',
),
),
'signup_form' => array(
],
],
'signup_form' => [
'description' => __('The form used to signup.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Model creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,83 +18,83 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'user_id' => array(
return [
'user_id' => [
'description' => __('The WordPress user ID attached to this customer.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'date_registered' => array(
],
'date_registered' => [
'description' => __('Date when the customer was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'email_verification' => array(
],
'email_verification' => [
'description' => __('Email verification status - either `none`, `pending`, or `verified`.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'verified',
'pending',
'none',
),
),
'last_login' => array(
],
],
'last_login' => [
'description' => __('Date this customer last logged in.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'has_trialed' => array(
],
'has_trialed' => [
'description' => __('Whether or not the customer has trialed before.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'vip' => array(
],
'vip' => [
'description' => __('If this customer is a VIP customer or not.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'ips' => array(
],
'ips' => [
'description' => __('List of IP addresses used by this customer.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'extra_information' => array(
],
'extra_information' => [
'description' => __('Any extra information related to this customer.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __("The customer type. Can be 'customer'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'customer',
),
),
'signup_form' => array(
],
],
'signup_form' => [
'description' => __('The form used to signup.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Model creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,108 +18,108 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'name' => array(
return [
'name' => [
'description' => __('Your discount code name, which is used as discount code title as well.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'code' => array(
],
'code' => [
'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'description' => array(
],
'description' => [
'description' => __('A description for the discount code, usually a short text.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'uses' => array(
],
'uses' => [
'description' => __('Number of times this discount was applied.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'max_uses' => array(
],
'max_uses' => [
'description' => __('The number of times this discount can be used before becoming inactive.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'apply_to_renewals' => array(
],
'apply_to_renewals' => [
'description' => __('Wether or not we should apply the discount to membership renewals.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'percentage',
'absolute',
),
),
'value' => array(
],
],
'value' => [
'description' => __('Amount discounted in cents.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'setup_fee_type' => array(
],
'setup_fee_type' => [
'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'percentage',
'absolute',
),
),
'setup_fee_value' => array(
],
],
'setup_fee_value' => [
'description' => __('Amount discounted for setup fees in cents.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'date_start' => array(
],
'date_start' => [
'description' => __('Start date for the coupon code to be considered valid.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_expiration' => array(
],
'date_expiration' => [
'description' => __('Expiration date for the coupon code.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Date when this discount code was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'allowed_products' => array(
],
'allowed_products' => [
'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'limit_products' => array(
],
'limit_products' => [
'description' => __('This discount code will be limited to be used in certain products? If set to true, you must define a list of allowed products.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,108 +18,108 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'name' => array(
return [
'name' => [
'description' => __('Your discount code name, which is used as discount code title as well.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'code' => array(
],
'code' => [
'description' => __('A unique identification to redeem the discount code. E.g. PROMO10.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'description' => array(
],
'description' => [
'description' => __('A description for the discount code, usually a short text.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'uses' => array(
],
'uses' => [
'description' => __('Number of times this discount was applied.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'max_uses' => array(
],
'max_uses' => [
'description' => __('The number of times this discount can be used before becoming inactive.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'apply_to_renewals' => array(
],
'apply_to_renewals' => [
'description' => __('Wether or not we should apply the discount to membership renewals.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __("The type of the discount code. Can be 'percentage' (e.g. 10%% OFF), 'absolute' (e.g. $10 OFF).", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'percentage',
'absolute',
),
),
'value' => array(
],
],
'value' => [
'description' => __('Amount discounted in cents.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'setup_fee_type' => array(
],
'setup_fee_type' => [
'description' => __('Type of the discount for the setup fee value. Can be a percentage or absolute.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'percentage',
'absolute',
),
),
'setup_fee_value' => array(
],
],
'setup_fee_value' => [
'description' => __('Amount discounted for setup fees in cents.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Set this discount code as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'date_start' => array(
],
'date_start' => [
'description' => __('Start date for the coupon code to be considered valid.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_expiration' => array(
],
'date_expiration' => [
'description' => __('Expiration date for the coupon code.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Date when this discount code was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'allowed_products' => array(
],
'allowed_products' => [
'description' => __('The list of products that allows this discount code to be used. If empty, all products will accept this code.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'limit_products' => array(
],
'limit_products' => [
'description' => __('This discount code will be limited to be used in certain products? If set to true, you must define a list of allowed products.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,62 +18,62 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'domain' => array(
return [
'domain' => [
'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'blog_id' => array(
],
'blog_id' => [
'description' => __('The blog ID attached to this domain.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'active' => array(
],
'active' => [
'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'primary_domain' => array(
],
'primary_domain' => [
'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'secure' => array(
],
'secure' => [
'description' => __('If this domain has some SSL security or not.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'stage' => array(
],
'stage' => [
'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
'enum' => array(
'enum' => [
'checking-dns',
'checking-ssl-cert',
'done-without-ssl',
'done',
'failed',
),
),
'date_created' => array(
],
],
'date_created' => [
'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,62 +18,62 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'domain' => array(
return [
'domain' => [
'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'blog_id' => array(
],
'blog_id' => [
'description' => __('The blog ID attached to this domain.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'primary_domain' => array(
],
'primary_domain' => [
'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'secure' => array(
],
'secure' => [
'description' => __('If this domain has some SSL security or not.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'stage' => array(
],
'stage' => [
'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'checking-dns',
'checking-ssl-cert',
'done-without-ssl',
'done',
'failed',
),
),
'date_created' => array(
],
],
'date_created' => [
'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,127 +18,127 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'style' => array(
return [
'style' => [
'description' => __("The email style. Can be 'html' or 'plain-text'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'html',
'plain-text',
),
),
'schedule' => array(
],
],
'schedule' => [
'description' => __('Whether or not this is a scheduled email.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __('The type being set.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'event' => array(
],
'event' => [
'description' => __('The event that needs to be fired for this email to be sent.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'send_hours' => array(
],
'send_hours' => [
'description' => __('The amount of hours that the email will wait before is sent.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'send_days' => array(
],
'send_days' => [
'description' => __('The amount of days that the email will wait before is sent.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'schedule_type' => array(
],
'schedule_type' => [
'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'days',
'hours',
),
),
'name' => array(
],
],
'name' => [
'description' => __('The name being set as title.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'custom_sender' => array(
],
'custom_sender' => [
'description' => __('If has a custom sender.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'custom_sender_name' => array(
],
'custom_sender_name' => [
'description' => __('The name of the custom sender. E.g. From: John Doe.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'custom_sender_email' => array(
],
'custom_sender_email' => [
'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'target' => array(
],
'target' => [
'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'wp-ultimo'),
'type' => 'string',
'required' => true,
'enum' => array(
'enum' => [
'customer',
'admin',
),
),
'send_copy_to_admin' => array(
],
],
'send_copy_to_admin' => [
'description' => __('Checks if we should send a copy of the email to the admin.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'legacy' => array(
],
'legacy' => [
'description' => __('Whether or not this is a legacy email.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'title' => array(
],
'title' => [
'description' => __('Post title.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'content' => array(
],
'content' => [
'description' => __('Post content.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'excerpt' => array(
],
'excerpt' => [
'description' => __('Post excerpt.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Post creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Post last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,127 +18,127 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'style' => array(
return [
'style' => [
'description' => __("The email style. Can be 'html' or 'plain-text'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'html',
'plain-text',
),
),
'schedule' => array(
],
],
'schedule' => [
'description' => __('Whether or not this is a scheduled email.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __('The type being set.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'event' => array(
],
'event' => [
'description' => __('The event that needs to be fired for this email to be sent.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'send_hours' => array(
],
'send_hours' => [
'description' => __('The amount of hours that the email will wait before is sent.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'send_days' => array(
],
'send_days' => [
'description' => __('The amount of days that the email will wait before is sent.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'schedule_type' => array(
],
'schedule_type' => [
'description' => __("The type of schedule. Can be 'days' or 'hours'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'days',
'hours',
),
),
'name' => array(
],
],
'name' => [
'description' => __('The name being set as title.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'custom_sender' => array(
],
'custom_sender' => [
'description' => __('If has a custom sender.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'custom_sender_name' => array(
],
'custom_sender_name' => [
'description' => __('The name of the custom sender. E.g. From: John Doe.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'custom_sender_email' => array(
],
'custom_sender_email' => [
'description' => __('The email of the custom sender. E.g. From: johndoe@gmail.com.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'target' => array(
],
'target' => [
'description' => __("If we should send this to a customer or to the network admin. Can be 'customer' or 'admin'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'customer',
'admin',
),
),
'send_copy_to_admin' => array(
],
],
'send_copy_to_admin' => [
'description' => __('Checks if we should send a copy of the email to the admin.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Set this email as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'legacy' => array(
],
'legacy' => [
'description' => __('Whether or not this is a legacy email.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'title' => array(
],
'title' => [
'description' => __('Post title.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'content' => array(
],
'content' => [
'description' => __('Post content.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'excerpt' => array(
],
'excerpt' => [
'description' => __('Post excerpt.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Post creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Post last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,59 +18,59 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'severity' => array(
return [
'severity' => [
'description' => __('Severity of the problem.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Date when the event was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'payload' => array(
],
'payload' => [
'description' => __('Payload of the event.', 'wp-ultimo'),
'type' => 'object',
'required' => true,
),
'initiator' => array(
],
'initiator' => [
'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
'enum' => array(
'enum' => [
'system',
'manual',
),
),
'object_type' => array(
],
],
'object_type' => [
'description' => __("The type of object related to this event. It's usually the model name.", 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'slug' => array(
],
'slug' => [
'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'object_id' => array(
],
'object_id' => [
'description' => __('The ID of the related objects.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,59 +18,59 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'severity' => array(
return [
'severity' => [
'description' => __('Severity of the problem.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Date when the event was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'payload' => array(
],
'payload' => [
'description' => __('Payload of the event.', 'wp-ultimo'),
'type' => 'object',
'required' => false,
),
'initiator' => array(
],
'initiator' => [
'description' => __('The type of user responsible for initiating the event. There are two options: Manual and System. By default, the event is saved as manual.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'system',
'manual',
),
),
'object_type' => array(
],
],
'object_type' => [
'description' => __("The type of object related to this event. It's usually the model name.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'slug' => array(
],
'slug' => [
'description' => __('The event slug. It needs to be unique and preferably make it clear what it is about. Example: account_created is about creating an account.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'object_id' => array(
],
'object_id' => [
'description' => __('The ID of the related objects.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -20,162 +20,162 @@ use WP_Ultimo\Database\Memberships\Membership_Status;
*
* @since 2.0.11
*/
return array(
'customer_id' => array(
return [
'customer_id' => [
'description' => __('The ID of the customer attached to this membership.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'user_id' => array(
],
'user_id' => [
'description' => __('The user ID attached to this membership.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'plan_id' => array(
],
'plan_id' => [
'description' => __('The plan ID associated with the membership.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'addon_products' => array(
],
'addon_products' => [
'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'wp-ultimo'),
'type' => 'mixed',
'required' => false,
),
'currency' => array(
],
'currency' => [
'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'duration' => array(
],
'duration' => [
'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'duration_unit' => array(
],
'duration_unit' => [
'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'day',
'month',
'week',
'year',
),
),
'amount' => array(
],
],
'amount' => [
'description' => __('The product amount.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'initial_amount' => array(
],
'initial_amount' => [
'description' => __('The initial amount charged for this membership, including the setup fee.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Date of creation of this membership.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_activated' => array(
],
'date_activated' => [
'description' => __('Date when this membership was activated.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_trial_end' => array(
],
'date_trial_end' => [
'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_renewed' => array(
],
'date_renewed' => [
'description' => __('Date when the membership was cancelled.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_cancellation' => array(
],
'date_cancellation' => [
'description' => __('Date when the membership was cancelled.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_expiration' => array(
],
'date_expiration' => [
'description' => __('Date when the membership will expiry.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_payment_plan_completed' => array(
],
'date_payment_plan_completed' => [
'description' => __('Change of the payment completion for the plan value.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'auto_renew' => array(
],
'auto_renew' => [
'description' => __('If this membership should auto-renewal.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'times_billed' => array(
],
'times_billed' => [
'description' => __('Amount of times this membership got billed.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'billing_cycles' => array(
],
'billing_cycles' => [
'description' => __('Maximum times we should charge this membership.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'status' => array(
],
'status' => [
'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => Membership_Status::get_allowed_list(),
),
'gateway_customer_id' => array(
],
'gateway_customer_id' => [
'description' => __('The ID of the customer on the payment gateway database.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'gateway_subscription_id' => array(
],
'gateway_subscription_id' => [
'description' => __('The ID of the subscription on the payment gateway database.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'gateway' => array(
],
'gateway' => [
'description' => __('ID of the gateway being used on this subscription.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'signup_method' => array(
],
'signup_method' => [
'description' => __('Signup method used to create this membership.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'upgraded_from' => array(
],
'upgraded_from' => [
'description' => __('Plan that this membership upgraded from.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Date this membership was last modified.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'disabled' => array(
],
'disabled' => [
'description' => __('If this membership is a disabled one.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'recurring' => array(
],
'recurring' => [
'description' => __('If this membership is recurring (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -20,162 +20,162 @@ use WP_Ultimo\Database\Memberships\Membership_Status;
*
* @since 2.0.11
*/
return array(
'customer_id' => array(
return [
'customer_id' => [
'description' => __('The ID of the customer attached to this membership.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'user_id' => array(
],
'user_id' => [
'description' => __('The user ID attached to this membership.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'plan_id' => array(
],
'plan_id' => [
'description' => __('The plan ID associated with the membership.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'addon_products' => array(
],
'addon_products' => [
'description' => __('Additional products related to this membership. Services, Packages or other types of products.', 'wp-ultimo'),
'type' => 'mixed',
'required' => false,
),
'currency' => array(
],
'currency' => [
'description' => __("The currency that this membership. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'duration' => array(
],
'duration' => [
'description' => __('The interval period between a charge. Only the interval amount, the unit will be defined in another property.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'duration_unit' => array(
],
'duration_unit' => [
'description' => __("The duration amount type. Can be 'day', 'week', 'month' or 'year'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'day',
'month',
'week',
'year',
),
),
'amount' => array(
],
],
'amount' => [
'description' => __('The product amount.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'initial_amount' => array(
],
'initial_amount' => [
'description' => __('The initial amount charged for this membership, including the setup fee.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Date of creation of this membership.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_activated' => array(
],
'date_activated' => [
'description' => __('Date when this membership was activated.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_trial_end' => array(
],
'date_trial_end' => [
'description' => __('Date when the trial period ends, if this membership has or had a trial period.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_renewed' => array(
],
'date_renewed' => [
'description' => __('Date when the membership was cancelled.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_cancellation' => array(
],
'date_cancellation' => [
'description' => __('Date when the membership was cancelled.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_expiration' => array(
],
'date_expiration' => [
'description' => __('Date when the membership will expiry.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_payment_plan_completed' => array(
],
'date_payment_plan_completed' => [
'description' => __('Change of the payment completion for the plan value.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'auto_renew' => array(
],
'auto_renew' => [
'description' => __('If this membership should auto-renewal.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'times_billed' => array(
],
'times_billed' => [
'description' => __('Amount of times this membership got billed.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'billing_cycles' => array(
],
'billing_cycles' => [
'description' => __('Maximum times we should charge this membership.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'status' => array(
],
'status' => [
'description' => __("The membership status. Can be 'pending', 'active', 'on-hold', 'expired', 'cancelled' or other values added by third-party add-ons.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => Membership_Status::get_allowed_list(),
),
'gateway_customer_id' => array(
],
'gateway_customer_id' => [
'description' => __('The ID of the customer on the payment gateway database.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'gateway_subscription_id' => array(
],
'gateway_subscription_id' => [
'description' => __('The ID of the subscription on the payment gateway database.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'gateway' => array(
],
'gateway' => [
'description' => __('ID of the gateway being used on this subscription.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'signup_method' => array(
],
'signup_method' => [
'description' => __('Signup method used to create this membership.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'upgraded_from' => array(
],
'upgraded_from' => [
'description' => __('Plan that this membership upgraded from.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Date this membership was last modified.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'disabled' => array(
],
'disabled' => [
'description' => __('If this membership is a disabled one.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'recurring' => array(
],
'recurring' => [
'description' => __('If this membership is recurring (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -20,106 +20,106 @@ use WP_Ultimo\Database\Payments\Payment_Status;
*
* @since 2.0.11
*/
return array(
'customer_id' => array(
return [
'customer_id' => [
'description' => __('The ID of the customer attached to this payment.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'membership_id' => array(
],
'membership_id' => [
'description' => __('The ID of the membership attached to this payment.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'parent_id' => array(
],
'parent_id' => [
'description' => __('The ID from another payment that this payment is related to.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'currency' => array(
],
'currency' => [
'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'subtotal' => array(
],
'subtotal' => [
'description' => __('Value before taxes, discounts, fees and other changes.', 'wp-ultimo'),
'type' => 'number',
'required' => true,
),
'refund_total' => array(
],
'refund_total' => [
'description' => __('Total amount refunded.', 'wp-ultimo'),
'type' => 'number',
'required' => false,
),
'tax_total' => array(
],
'tax_total' => [
'description' => __('The amount, in currency, of the tax.', 'wp-ultimo'),
'type' => 'number',
'required' => false,
),
'discount_code' => array(
],
'discount_code' => [
'description' => __('Discount code used.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'total' => array(
],
'total' => [
'description' => __('This takes into account fees, discounts and credits.', 'wp-ultimo'),
'type' => 'number',
'required' => true,
),
'status' => array(
],
'status' => [
'description' => __("The payment status: Can be 'pending', 'completed', 'refunded', 'partially-refunded', 'partially-paid', 'failed', 'cancelled' or other values added by third-party add-ons.", 'wp-ultimo'),
'type' => 'string',
'required' => true,
'enum' => Payment_Status::get_allowed_list(),
),
'gateway' => array(
],
'gateway' => [
'description' => __('ID of the gateway being used on this payment.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'product_id' => array(
],
'product_id' => [
'description' => __('The ID of the product of this payment.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'gateway_payment_id' => array(
],
'gateway_payment_id' => [
'description' => __('The ID of the payment on the gateway, if it exists.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'discount_total' => array(
],
'discount_total' => [
'description' => __('The total value of the discounts applied to this payment.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'invoice_number' => array(
],
'invoice_number' => [
'description' => __('Sequential invoice number assigned to this payment.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'cancel_membership_on_refund' => array(
],
'cancel_membership_on_refund' => [
'description' => __('Holds if we need to cancel the membership on refund.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Model creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -20,106 +20,106 @@ use WP_Ultimo\Database\Payments\Payment_Status;
*
* @since 2.0.11
*/
return array(
'customer_id' => array(
return [
'customer_id' => [
'description' => __('The ID of the customer attached to this payment.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'membership_id' => array(
],
'membership_id' => [
'description' => __('The ID of the membership attached to this payment.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'parent_id' => array(
],
'parent_id' => [
'description' => __('The ID from another payment that this payment is related to.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'currency' => array(
],
'currency' => [
'description' => __("The currency of this payment. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'subtotal' => array(
],
'subtotal' => [
'description' => __('Value before taxes, discounts, fees and other changes.', 'wp-ultimo'),
'type' => 'number',
'required' => false,
),
'refund_total' => array(
],
'refund_total' => [
'description' => __('Total amount refunded.', 'wp-ultimo'),
'type' => 'number',
'required' => false,
),
'tax_total' => array(
],
'tax_total' => [
'description' => __('The amount, in currency, of the tax.', 'wp-ultimo'),
'type' => 'number',
'required' => false,
),
'discount_code' => array(
],
'discount_code' => [
'description' => __('Discount code used.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'total' => array(
],
'total' => [
'description' => __('This takes into account fees, discounts and credits.', 'wp-ultimo'),
'type' => 'number',
'required' => false,
),
'status' => array(
],
'status' => [
'description' => __("The payment status: Can be 'pending', 'completed', 'refunded', 'partially-refunded', 'partially-paid', 'failed', 'cancelled' or other values added by third-party add-ons.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => Payment_Status::get_allowed_list(),
),
'gateway' => array(
],
'gateway' => [
'description' => __('ID of the gateway being used on this payment.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'product_id' => array(
],
'product_id' => [
'description' => __('The ID of the product of this payment.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'gateway_payment_id' => array(
],
'gateway_payment_id' => [
'description' => __('The ID of the payment on the gateway, if it exists.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'discount_total' => array(
],
'discount_total' => [
'description' => __('The total value of the discounts applied to this payment.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'invoice_number' => array(
],
'invoice_number' => [
'description' => __('Sequential invoice number assigned to this payment.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'cancel_membership_on_refund' => array(
],
'cancel_membership_on_refund' => [
'description' => __('Holds if we need to cancel the membership on refund.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Model creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,182 +18,182 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'featured_image_id' => array(
return [
'featured_image_id' => [
'description' => __('The ID of the feature image of the product.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'slug' => array(
],
'slug' => [
'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'name' => array(
],
'name' => [
'description' => __('Your product name, which is used as product title as well.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'description' => array(
],
'description' => [
'description' => __('A description for the product, usually a short text.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'currency' => array(
],
'currency' => [
'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'pricing_type' => array(
],
'pricing_type' => [
'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'wp-ultimo'),
'type' => 'string',
'required' => true,
'enum' => array(
'enum' => [
'free',
'paid',
'contact_us',
),
),
'trial_duration' => array(
],
],
'trial_duration' => [
'description' => __('The duration of the trial period of this product, if the product has one.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'trial_duration_unit' => array(
],
'trial_duration_unit' => [
'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'day',
'week',
'month',
'year',
),
),
'duration' => array(
],
],
'duration' => [
'description' => __('Time interval between charges.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'duration_unit' => array(
],
'duration_unit' => [
'description' => __('Time interval unit between charges.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'day',
'month',
'week',
'year',
),
),
'amount' => array(
],
],
'amount' => [
'description' => __('The value of this product. E.g. 19.99.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'setup_fee' => array(
],
'setup_fee' => [
'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'wp-ultimo'),
'type' => 'string',
'required' => true,
'enum' => array(
'enum' => [
'plan',
'service',
'package',
),
),
'parent_id' => array(
],
],
'parent_id' => [
'description' => __('The ID from another Product that this product is related to.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'recurring' => array(
],
'recurring' => [
'description' => __('Set this product as a recurring one (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'billing_cycles' => array(
],
'billing_cycles' => [
'description' => __('The number of times we should charge this product.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Date when this was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Date when this was last modified.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'taxable' => array(
],
'taxable' => [
'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'tax_category' => array(
],
'tax_category' => [
'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'contact_us_label' => array(
],
'contact_us_label' => [
'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'contact_us_link' => array(
],
'contact_us_link' => [
'description' => __('The url where the contact us button will lead to.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'feature_list' => array(
],
'feature_list' => [
'description' => __('A list (array) of features of the product.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'customer_role' => array(
],
'customer_role' => [
'description' => __('The customer role of this product.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'available_addons' => array(
],
'available_addons' => [
'description' => __('The available addons of this product.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'group' => array(
],
'group' => [
'description' => __('The group of this product, if has any.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'legacy_options' => array(
],
'legacy_options' => [
'description' => __('If the legacy options are enabled.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'featured_plan' => array(
],
'featured_plan' => [
'description' => __('Feature list for pricing tables.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
);
],
];

View File

@ -18,182 +18,182 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'featured_image_id' => array(
return [
'featured_image_id' => [
'description' => __('The ID of the feature image of the product.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'slug' => array(
],
'slug' => [
'description' => __('The product slug. It needs to be unique and preferably make it clear what it is about. Example: my_new_product.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'name' => array(
],
'name' => [
'description' => __('Your product name, which is used as product title as well.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'description' => array(
],
'description' => [
'description' => __('A description for the product, usually a short text.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'currency' => array(
],
'currency' => [
'description' => __("The currency that this product accepts. It's a 3-letter code. E.g. 'USD'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'pricing_type' => array(
],
'pricing_type' => [
'description' => __("The pricing type can be 'free', 'paid' or 'contact_us'.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'free',
'paid',
'contact_us',
),
),
'trial_duration' => array(
],
],
'trial_duration' => [
'description' => __('The duration of the trial period of this product, if the product has one.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'trial_duration_unit' => array(
],
'trial_duration_unit' => [
'description' => __('The unit of the trial duration amount. Can be day, week, month or year.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'day',
'week',
'month',
'year',
),
),
'duration' => array(
],
],
'duration' => [
'description' => __('Time interval between charges.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'duration_unit' => array(
],
'duration_unit' => [
'description' => __('Time interval unit between charges.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'day',
'month',
'week',
'year',
),
),
'amount' => array(
],
],
'amount' => [
'description' => __('The value of this product. E.g. 19.99.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'setup_fee' => array(
],
'setup_fee' => [
'description' => __('The setup fee value, if the product has one. E.g. 159.99.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Set this product as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __("The default product types are 'product', 'service' and 'package'. More types can be add using the product type filter.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'plan',
'service',
'package',
),
),
'parent_id' => array(
],
],
'parent_id' => [
'description' => __('The ID from another Product that this product is related to.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'recurring' => array(
],
'recurring' => [
'description' => __('Set this product as a recurring one (true), which means the customer paid a defined amount each period of time, or not recurring (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'billing_cycles' => array(
],
'billing_cycles' => [
'description' => __('The number of times we should charge this product.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Date when this was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Date when this was last modified.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'taxable' => array(
],
'taxable' => [
'description' => __('Set this product as a taxable one (true), which means tax rules are applied to, or not taxable (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'tax_category' => array(
],
'tax_category' => [
'description' => __('Category of taxes applied to this product. You need to set this if taxable is set to true.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'contact_us_label' => array(
],
'contact_us_label' => [
'description' => __("If the product is the 'contact_us' type, it will need a label for the contact us button.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'contact_us_link' => array(
],
'contact_us_link' => [
'description' => __('The url where the contact us button will lead to.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'feature_list' => array(
],
'feature_list' => [
'description' => __('A list (array) of features of the product.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'customer_role' => array(
],
'customer_role' => [
'description' => __('The customer role of this product.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'available_addons' => array(
],
'available_addons' => [
'description' => __('The available addons of this product.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'group' => array(
],
'group' => [
'description' => __('The group of this product, if has any.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'legacy_options' => array(
],
'legacy_options' => [
'description' => __('If the legacy options are enabled.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'featured_plan' => array(
],
'featured_plan' => [
'description' => __('Feature list for pricing tables.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
);
],
];

View File

@ -18,148 +18,148 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'categories' => array(
return [
'categories' => [
'description' => __('The categories this site belongs to.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'featured_image_id' => array(
],
'featured_image_id' => [
'description' => __('The ID of the feature image of the site.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'site_id' => array(
],
'site_id' => [
'description' => __('The network ID for this site.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'title' => array(
],
'title' => [
'description' => __('The site title.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'name' => array(
],
'name' => [
'description' => __('The site name.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'description' => array(
],
'description' => [
'description' => __('A description for the site, usually a short text.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'domain' => array(
],
'domain' => [
'description' => __("The site domain. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'path' => array(
],
'path' => [
'description' => __('Path of the site. Used when in sub-directory mode.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'registered' => array(
],
'registered' => [
'description' => __('Date when the site was registered.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'last_updated' => array(
],
'last_updated' => [
'description' => __('Date of the last update on this site.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Holds the ID of the customer that owns this site.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'public' => array(
],
'public' => [
'description' => __('Set true if this site is a public one, false if not.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'archived' => array(
],
'archived' => [
'description' => __('Is this an archived site.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'mature' => array(
],
'mature' => [
'description' => __('Is this a site with mature content.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'spam' => array(
],
'spam' => [
'description' => __('Is this an spam site.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'deleted' => array(
],
'deleted' => [
'description' => __('Is this site deleted.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'lang_id' => array(
],
'lang_id' => [
'description' => __('The ID of the language being used on this site.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'customer_id' => array(
],
'customer_id' => [
'description' => __('The ID of the customer that owns this site.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'membership_id' => array(
],
'membership_id' => [
'description' => __('The ID of the membership associated with this site, if any.', 'wp-ultimo'),
'type' => 'integer',
'required' => true,
),
'template_id' => array(
],
'template_id' => [
'description' => __('The ID of the templated used to create this site.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __('The type of this particular site. Can be default, site_template, customer_owned, pending, external, main or other values added by third-party add-ons.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
'enum' => array(
'enum' => [
'default',
'site_template',
'customer_owned',
'pending',
'external',
'main',
),
),
'signup_options' => array(
],
],
'signup_options' => [
'description' => __('Keeps signup options for the site.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'signup_meta' => array(
],
'signup_meta' => [
'description' => __('Keeps signup meta for the site.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Model creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,148 +18,148 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'categories' => array(
return [
'categories' => [
'description' => __('The categories this site belongs to.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'featured_image_id' => array(
],
'featured_image_id' => [
'description' => __('The ID of the feature image of the site.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'site_id' => array(
],
'site_id' => [
'description' => __('The network ID for this site.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'title' => array(
],
'title' => [
'description' => __('The site title.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'name' => array(
],
'name' => [
'description' => __('The site name.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'description' => array(
],
'description' => [
'description' => __('A description for the site, usually a short text.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'domain' => array(
],
'domain' => [
'description' => __("The site domain. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'path' => array(
],
'path' => [
'description' => __('Path of the site. Used when in sub-directory mode.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'registered' => array(
],
'registered' => [
'description' => __('Date when the site was registered.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'last_updated' => array(
],
'last_updated' => [
'description' => __('Date of the last update on this site.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Holds the ID of the customer that owns this site.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'public' => array(
],
'public' => [
'description' => __('Set true if this site is a public one, false if not.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'archived' => array(
],
'archived' => [
'description' => __('Is this an archived site.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'mature' => array(
],
'mature' => [
'description' => __('Is this a site with mature content.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'spam' => array(
],
'spam' => [
'description' => __('Is this an spam site.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'deleted' => array(
],
'deleted' => [
'description' => __('Is this site deleted.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'lang_id' => array(
],
'lang_id' => [
'description' => __('The ID of the language being used on this site.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'customer_id' => array(
],
'customer_id' => [
'description' => __('The ID of the customer that owns this site.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'membership_id' => array(
],
'membership_id' => [
'description' => __('The ID of the membership associated with this site, if any.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'template_id' => array(
],
'template_id' => [
'description' => __('The ID of the templated used to create this site.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'type' => array(
],
'type' => [
'description' => __('The type of this particular site. Can be default, site_template, customer_owned, pending, external, main or other values added by third-party add-ons.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
'enum' => array(
'enum' => [
'default',
'site_template',
'customer_owned',
'pending',
'external',
'main',
),
),
'signup_options' => array(
],
],
'signup_options' => [
'description' => __('Keeps signup options for the site.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'signup_meta' => array(
],
'signup_meta' => [
'description' => __('Keeps signup meta for the site.', 'wp-ultimo'),
'type' => 'array',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Model creation date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,65 +18,65 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'name' => array(
return [
'name' => [
'description' => __('Webhook name, which is used as product title as well.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'webhook_url' => array(
],
'webhook_url' => [
'description' => __('The URL used for the webhook call.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'event' => array(
],
'event' => [
'description' => __('The event that needs to be fired for this webhook to be sent.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'event_count' => array(
],
'event_count' => [
'description' => __('How many times this webhook was sent.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'hidden' => array(
],
'hidden' => [
'description' => __('Is this webhook hidden.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Date when this was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'integration' => array(
],
'integration' => [
'description' => __('The integration that created this webhook.', 'wp-ultimo'),
'type' => 'string',
'required' => true,
),
'date_last_failed' => array(
],
'date_last_failed' => [
'description' => __('The date when this webhook last fail.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];

View File

@ -18,65 +18,65 @@ defined('ABSPATH') || exit;
*
* @since 2.0.11
*/
return array(
'name' => array(
return [
'name' => [
'description' => __('Webhook name, which is used as product title as well.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'webhook_url' => array(
],
'webhook_url' => [
'description' => __('The URL used for the webhook call.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'event' => array(
],
'event' => [
'description' => __('The event that needs to be fired for this webhook to be sent.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'event_count' => array(
],
'event_count' => [
'description' => __('How many times this webhook was sent.', 'wp-ultimo'),
'type' => 'integer',
'required' => false,
),
'active' => array(
],
'active' => [
'description' => __('Set this webhook as active (true), which means available will fire when the event occur, or inactive (false).', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'hidden' => array(
],
'hidden' => [
'description' => __('Is this webhook hidden.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
'date_created' => array(
],
'date_created' => [
'description' => __('Date when this was created.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'integration' => array(
],
'integration' => [
'description' => __('The integration that created this webhook.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_last_failed' => array(
],
'date_last_failed' => [
'description' => __('The date when this webhook last fail.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'date_modified' => array(
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'type' => 'string',
'required' => false,
),
'migrated_from_id' => array(
],
'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' => array(
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'type' => 'boolean',
'required' => false,
),
);
],
];