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

stripe / stripe-php / 6471862601

10 Oct 2023 04:02PM UTC coverage: 69.665% (-0.5%) from 70.141%
6471862601

push

github

web-flow
Merge pull request #1570 from localheinz/feature/coveralls

Enhancement: Use `coverallsapp/github-action` to report code coverage

2393 of 3435 relevant lines covered (69.67%)

3.5 hits per line

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

0.0
/lib/Treasury/InboundTransfer.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Treasury;
6

7
/**
8
 * Use <a href="https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers">InboundTransfers</a> to add funds to your <a href="https://stripe.com/docs/api#financial_accounts">FinancialAccount</a> via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
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 int $amount Amount (in cents) transferred.
13
 * @property bool $cancelable Returns <code>true</code> if the InboundTransfer is able to be canceled.
14
 * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
15
 * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
16
 * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
17
 * @property null|\Stripe\StripeObject $failure_details Details about this InboundTransfer's failure. Only set when status is <code>failed</code>.
18
 * @property string $financial_account The FinancialAccount that received the funds.
19
 * @property null|string $hosted_regulatory_receipt_url A <a href="https://stripe.com/docs/treasury/moving-money/regulatory-receipts">hosted transaction receipt</a> URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
20
 * @property \Stripe\StripeObject $linked_flows
21
 * @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.
22
 * @property \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.
23
 * @property string $origin_payment_method The origin payment method to be debited for an InboundTransfer.
24
 * @property null|\Stripe\StripeObject $origin_payment_method_details Details about the PaymentMethod for an InboundTransfer.
25
 * @property null|bool $returned Returns <code>true</code> if the funds for an InboundTransfer were returned after the InboundTransfer went to the <code>succeeded</code> state.
26
 * @property string $statement_descriptor Statement descriptor shown when funds are debited from the source. Not all payment networks support <code>statement_descriptor</code>.
27
 * @property string $status Status of the InboundTransfer: <code>processing</code>, <code>succeeded</code>, <code>failed</code>, and <code>canceled</code>. An InboundTransfer is <code>processing</code> if it is created and pending. The status changes to <code>succeeded</code> once the funds have been &quot;confirmed&quot; and a <code>transaction</code> is created and posted. The status changes to <code>failed</code> if the transfer fails.
28
 * @property \Stripe\StripeObject $status_transitions
29
 * @property null|string|\Stripe\Treasury\Transaction $transaction The Transaction associated with this object.
30
 */
31
class InboundTransfer extends \Stripe\ApiResource
32
{
33
    const OBJECT_NAME = 'treasury.inbound_transfer';
34

35
    use \Stripe\ApiOperations\All;
36
    use \Stripe\ApiOperations\Create;
37
    use \Stripe\ApiOperations\Retrieve;
38

39
    const STATUS_CANCELED = 'canceled';
40
    const STATUS_FAILED = 'failed';
41
    const STATUS_PROCESSING = 'processing';
42
    const STATUS_SUCCEEDED = 'succeeded';
43

44
    /**
45
     * @param null|array $params
46
     * @param null|array|string $opts
47
     *
48
     * @throws \Stripe\Exception\ApiErrorException if the request fails
49
     *
50
     * @return \Stripe\Treasury\InboundTransfer the canceled inbound transfer
51
     */
52
    public function cancel($params = null, $opts = null)
×
53
    {
54
        $url = $this->instanceUrl() . '/cancel';
×
55
        list($response, $opts) = $this->_request('post', $url, $params, $opts);
×
56
        $this->refreshFrom($response, $opts);
×
57

58
        return $this;
×
59
    }
60
}
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

© 2026 Coveralls, Inc