Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../vendor_p.../stripe/stripe-p.../lib
File: Person.php
<?php
[0] Fix | Delete
[1] Fix | Delete
// File generated from our OpenAPI spec
[2] Fix | Delete
namespace WPForms\Vendor\Stripe;
[3] Fix | Delete
[4] Fix | Delete
/**
[5] Fix | Delete
* This is an object representing a person associated with a Stripe account.
[6] Fix | Delete
*
[7] Fix | Delete
* A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
[8] Fix | Delete
* See the <a href="https://stripe.com/docs/connect/standard-accounts">Standard onboarding</a> or <a href="https://stripe.com/docs/connect/express-accounts">Express onboarding documentation</a> for information about platform prefilling and account onboarding steps.
[9] Fix | Delete
*
[10] Fix | Delete
* Related guide: <a href="https://stripe.com/docs/connect/handling-api-verification#person-information">Handling identity verification with the API</a>
[11] Fix | Delete
*
[12] Fix | Delete
* @property string $id Unique identifier for the object.
[13] Fix | Delete
* @property string $object String representing the object's type. Objects of the same type share the same value.
[14] Fix | Delete
* @property null|string $account The account the person is associated with.
[15] Fix | Delete
* @property null|\Stripe\StripeObject $additional_tos_acceptances
[16] Fix | Delete
* @property null|\Stripe\StripeObject $address
[17] Fix | Delete
* @property null|\Stripe\StripeObject $address_kana The Kana variation of the person's address (Japan only).
[18] Fix | Delete
* @property null|\Stripe\StripeObject $address_kanji The Kanji variation of the person's address (Japan only).
[19] Fix | Delete
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
[20] Fix | Delete
* @property null|\Stripe\StripeObject $dob
[21] Fix | Delete
* @property null|string $email The person's email address.
[22] Fix | Delete
* @property null|string $first_name The person's first name.
[23] Fix | Delete
* @property null|string $first_name_kana The Kana variation of the person's first name (Japan only).
[24] Fix | Delete
* @property null|string $first_name_kanji The Kanji variation of the person's first name (Japan only).
[25] Fix | Delete
* @property null|string[] $full_name_aliases A list of alternate names or aliases that the person is known by.
[26] Fix | Delete
* @property null|\Stripe\StripeObject $future_requirements Information about the <a href="https://stripe.com/docs/connect/custom-accounts/future-requirements">upcoming new requirements for this person</a>, including what information needs to be collected, and by when.
[27] Fix | Delete
* @property null|string $gender The person's gender (International regulations require either &quot;male&quot; or &quot;female&quot;).
[28] Fix | Delete
* @property null|bool $id_number_provided Whether the person's <code>id_number</code> was provided. True if either the full ID number was provided or if only the required part of the ID number was provided (ex. last four of an individual's SSN for the US indicated by <code>ssn_last_4_provided</code>).
[29] Fix | Delete
* @property null|bool $id_number_secondary_provided Whether the person's <code>id_number_secondary</code> was provided.
[30] Fix | Delete
* @property null|string $last_name The person's last name.
[31] Fix | Delete
* @property null|string $last_name_kana The Kana variation of the person's last name (Japan only).
[32] Fix | Delete
* @property null|string $last_name_kanji The Kanji variation of the person's last name (Japan only).
[33] Fix | Delete
* @property null|string $maiden_name The person's maiden name.
[34] Fix | Delete
* @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
[35] Fix | Delete
* @property null|string $nationality The country where the person is a national.
[36] Fix | Delete
* @property null|string $phone The person's phone number.
[37] Fix | Delete
* @property null|string $political_exposure Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
[38] Fix | Delete
* @property null|\Stripe\StripeObject $registered_address
[39] Fix | Delete
* @property null|\Stripe\StripeObject $relationship
[40] Fix | Delete
* @property null|\Stripe\StripeObject $requirements Information about the requirements for this person, including what information needs to be collected, and by when.
[41] Fix | Delete
* @property null|bool $ssn_last_4_provided Whether the last four digits of the person's Social Security number have been provided (U.S. only).
[42] Fix | Delete
* @property null|\Stripe\StripeObject $verification
[43] Fix | Delete
*/
[44] Fix | Delete
class Person extends ApiResource
[45] Fix | Delete
{
[46] Fix | Delete
const OBJECT_NAME = 'person';
[47] Fix | Delete
const GENDER_FEMALE = 'female';
[48] Fix | Delete
const GENDER_MALE = 'male';
[49] Fix | Delete
const POLITICAL_EXPOSURE_EXISTING = 'existing';
[50] Fix | Delete
const POLITICAL_EXPOSURE_NONE = 'none';
[51] Fix | Delete
const VERIFICATION_STATUS_PENDING = 'pending';
[52] Fix | Delete
const VERIFICATION_STATUS_UNVERIFIED = 'unverified';
[53] Fix | Delete
const VERIFICATION_STATUS_VERIFIED = 'verified';
[54] Fix | Delete
use ApiOperations\Delete;
[55] Fix | Delete
use ApiOperations\Update;
[56] Fix | Delete
/**
[57] Fix | Delete
* @return string the API URL for this Stripe account reversal
[58] Fix | Delete
*/
[59] Fix | Delete
public function instanceUrl()
[60] Fix | Delete
{
[61] Fix | Delete
$id = $this['id'];
[62] Fix | Delete
$account = $this['account'];
[63] Fix | Delete
if (!$id) {
[64] Fix | Delete
throw new Exception\UnexpectedValueException('Could not determine which URL to request: ' . "class instance has invalid ID: {$id}", null);
[65] Fix | Delete
}
[66] Fix | Delete
$id = Util\Util::utf8($id);
[67] Fix | Delete
$account = Util\Util::utf8($account);
[68] Fix | Delete
$base = Account::classUrl();
[69] Fix | Delete
$accountExtn = \urlencode($account);
[70] Fix | Delete
$extn = \urlencode($id);
[71] Fix | Delete
return "{$base}/{$accountExtn}/persons/{$extn}";
[72] Fix | Delete
}
[73] Fix | Delete
/**
[74] Fix | Delete
* @param array|string $_id
[75] Fix | Delete
* @param null|array|string $_opts
[76] Fix | Delete
*
[77] Fix | Delete
* @throws \Stripe\Exception\BadMethodCallException
[78] Fix | Delete
*/
[79] Fix | Delete
public static function retrieve($_id, $_opts = null)
[80] Fix | Delete
{
[81] Fix | Delete
$msg = 'Persons cannot be retrieved without an account ID. Retrieve ' . "a person using `Account::retrievePerson('account_id', " . "'person_id')`.";
[82] Fix | Delete
throw new Exception\BadMethodCallException($msg);
[83] Fix | Delete
}
[84] Fix | Delete
/**
[85] Fix | Delete
* @param string $_id
[86] Fix | Delete
* @param null|array $_params
[87] Fix | Delete
* @param null|array|string $_options
[88] Fix | Delete
*
[89] Fix | Delete
* @throws \Stripe\Exception\BadMethodCallException
[90] Fix | Delete
*/
[91] Fix | Delete
public static function update($_id, $_params = null, $_options = null)
[92] Fix | Delete
{
[93] Fix | Delete
$msg = 'Persons cannot be updated without an account ID. Update ' . "a person using `Account::updatePerson('account_id', " . "'person_id', \$updateParams)`.";
[94] Fix | Delete
throw new Exception\BadMethodCallException($msg);
[95] Fix | Delete
}
[96] Fix | Delete
}
[97] Fix | Delete
[98] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function