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

stripe / stripe-php / 9308609267

30 May 2024 08:13PM UTC coverage: 60.343% (-1.0%) from 61.377%
9308609267

push

github

web-flow
Merge pull request #1699 from stripe/latest-codegen-beta

Update generated code for beta

1080 of 1830 new or added lines in 117 files covered. (59.02%)

15 existing lines in 3 files now uncovered.

3486 of 5777 relevant lines covered (60.34%)

2.19 hits per line

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

0.0
/lib/Capital/FinancingSummary.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Capital;
6

7
/**
8
 * A financing object describes an account's current financing state. Used by Connect
9
 * platforms to read the state of Capital offered to their connected accounts.
10
 *
11
 * @property string $object The object type: financing_summary
12
 * @property null|\Stripe\StripeObject $details Additional information about the financing summary. Describes currency, advance amount, fee amount, withhold rate, remaining amount, paid amount, current repayment interval, repayment start date, and advance payout date.
13
 * @property null|string $financing_offer The Financing Offer ID this Financing Summary corresponds to
14
 * @property null|string $status Status of the Connected Account's financing. <a href="https://stripe.com/docs/api/capital/financing_summary">/v1/capital/financing_summary</a> will only return <code>details</code> for <code>paid_out</code> financing.
15
 */
16
class FinancingSummary extends \Stripe\SingletonApiResource
17
{
18
    const OBJECT_NAME = 'capital.financing_summary';
19

20
    const STATUS_ACCEPTED = 'accepted';
21
    const STATUS_DELIVERED = 'delivered';
22
    const STATUS_NONE = 'none';
23

24
    /**
25
     * Retrieve the financing state for the account that was authenticated in the
26
     * request.
27
     *
28
     * @param null|array|string $opts
29
     *
30
     * @throws \Stripe\Exception\ApiErrorException if the request fails
31
     *
32
     * @return \Stripe\Capital\FinancingSummary
33
     */
NEW
34
    public static function retrieve($opts = null)
×
35
    {
NEW
36
        $opts = \Stripe\Util\RequestOptions::parse($opts);
×
NEW
37
        $instance = new static(null, $opts);
×
NEW
38
        $instance->refresh();
×
39

NEW
40
        return $instance;
×
41
    }
42
}
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