wp-user-avatar
/
third-party
/
vendor
/
stripe
/
stripe-php
/
lib
/
Identity
/
VerificationReport.php
VerificationReport.php
73 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | namespace ProfilePressVendor\Stripe\Identity; |
| 5 | |
| 6 | /** |
| 7 | * A VerificationReport is the result of an attempt to collect and verify data from a user. |
| 8 | * The collection of verification checks performed is determined from the <code>type</code> and <code>options</code> |
| 9 | * parameters used. You can find the result of each verification check performed in the |
| 10 | * appropriate sub-resource: <code>document</code>, <code>id_number</code>, <code>selfie</code>. |
| 11 | * |
| 12 | * Each VerificationReport contains a copy of any data collected by the user as well as |
| 13 | * reference IDs which can be used to access collected images through the <a href="https://stripe.com/docs/api/files">FileUpload</a> |
| 14 | * API. To configure and create VerificationReports, use the |
| 15 | * <a href="https://stripe.com/docs/api/identity/verification_sessions">VerificationSession</a> API. |
| 16 | * |
| 17 | * Related guide: <a href="https://stripe.com/docs/identity/verification-sessions#results">Accessing verification results</a>. |
| 18 | * |
| 19 | * @property string $id Unique identifier for the object. |
| 20 | * @property string $object String representing the object's type. Objects of the same type share the same value. |
| 21 | * @property null|string $client_reference_id A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems. |
| 22 | * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. |
| 23 | * @property null|\Stripe\StripeObject $document Result from a document check |
| 24 | * @property null|\Stripe\StripeObject $email Result from a email check |
| 25 | * @property null|\Stripe\StripeObject $id_number Result from an id_number check |
| 26 | * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode. |
| 27 | * @property null|\Stripe\StripeObject $options |
| 28 | * @property null|\Stripe\StripeObject $phone Result from a phone check |
| 29 | * @property null|\Stripe\StripeObject $selfie Result from a selfie check |
| 30 | * @property string $type Type of report. |
| 31 | * @property null|string $verification_flow The configuration token of a verification flow from the dashboard. |
| 32 | * @property null|string $verification_session ID of the VerificationSession that created this report. |
| 33 | */ |
| 34 | class VerificationReport extends \ProfilePressVendor\Stripe\ApiResource |
| 35 | { |
| 36 | const OBJECT_NAME = 'identity.verification_report'; |
| 37 | const TYPE_DOCUMENT = 'document'; |
| 38 | const TYPE_ID_NUMBER = 'id_number'; |
| 39 | const TYPE_VERIFICATION_FLOW = 'verification_flow'; |
| 40 | /** |
| 41 | * List all verification reports. |
| 42 | * |
| 43 | * @param null|array $params |
| 44 | * @param null|array|string $opts |
| 45 | * |
| 46 | * @throws \Stripe\Exception\ApiErrorException if the request fails |
| 47 | * |
| 48 | * @return \Stripe\Collection<\Stripe\Identity\VerificationReport> of ApiResources |
| 49 | */ |
| 50 | public static function all($params = null, $opts = null) |
| 51 | { |
| 52 | $url = static::classUrl(); |
| 53 | return static::_requestPage($url, \ProfilePressVendor\Stripe\Collection::class, $params, $opts); |
| 54 | } |
| 55 | /** |
| 56 | * Retrieves an existing VerificationReport. |
| 57 | * |
| 58 | * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key |
| 59 | * @param null|array|string $opts |
| 60 | * |
| 61 | * @throws \Stripe\Exception\ApiErrorException if the request fails |
| 62 | * |
| 63 | * @return \Stripe\Identity\VerificationReport |
| 64 | */ |
| 65 | public static function retrieve($id, $opts = null) |
| 66 | { |
| 67 | $opts = \ProfilePressVendor\Stripe\Util\RequestOptions::parse($opts); |
| 68 | $instance = new static($id, $opts); |
| 69 | $instance->refresh(); |
| 70 | return $instance; |
| 71 | } |
| 72 | } |
| 73 |