• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-php / 9276393583

28 May 2024 09:10PM UTC coverage: 65.291% (-0.8%) from 66.119%
9276393583

Pull #1702

github

web-flow
Merge 8a5208ad2 into 7038876e7
Pull Request #1702: Update generated code

1026 of 1594 new or added lines in 106 files covered. (64.37%)

15 existing lines in 3 files now uncovered.

3386 of 5186 relevant lines covered (65.29%)

2.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/FinancialConnections/Session.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\FinancialConnections;
6

7
/**
8
 * A Financial Connections Session is the secure way to programmatically launch the client-side Stripe.js modal that lets your users link their accounts.
9
 *
10
 * @property string $id Unique identifier for the object.
11
 * @property string $object String representing the object's type. Objects of the same type share the same value.
12
 * @property null|\Stripe\StripeObject $account_holder The account holder for whom accounts are collected in this session.
13
 * @property \Stripe\Collection<\Stripe\FinancialConnections\Account> $accounts The accounts that were collected as part of this Session.
14
 * @property string $client_secret A value that will be passed to the client to launch the authentication flow.
15
 * @property null|\Stripe\StripeObject $filters
16
 * @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.
17
 * @property string[] $permissions Permissions requested for accounts collected during this session.
18
 * @property null|string[] $prefetch Data features requested to be retrieved upon account creation.
19
 * @property null|string $return_url For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
20
 */
21
class Session extends \Stripe\ApiResource
22
{
23
    const OBJECT_NAME = 'financial_connections.session';
24

25
    /**
26
     * To launch the Financial Connections authorization flow, create a
27
     * <code>Session</code>. The session’s <code>client_secret</code> can be used to
28
     * launch the flow using Stripe.js.
29
     *
30
     * @param null|mixed $params
31
     * @param null|mixed $options
32
     */
NEW
33
    public static function create($params = null, $options = null)
×
34
    {
NEW
35
        self::_validateParams($params);
×
NEW
36
        $url = static::classUrl();
×
NEW
37
        list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
×
NEW
38
        $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
×
NEW
39
        $obj->setLastResponse($response);
×
40

NEW
41
        return $obj;
×
42
    }
43

44
    /**
45
     * Retrieves the details of a Financial Connections <code>Session</code>.
46
     *
47
     * @param mixed $id
48
     * @param null|mixed $opts
49
     */
NEW
50
    public static function retrieve($id, $opts = null)
×
51
    {
NEW
52
        $opts = \Stripe\Util\RequestOptions::parse($opts);
×
NEW
53
        $instance = new static($id, $opts);
×
NEW
54
        $instance->refresh();
×
55

NEW
56
        return $instance;
×
57
    }
58
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2024 Coveralls, Inc