|
16 | 16 | * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
|
17 | 17 | * @property null|\Stripe\Treasury\FinancialAccountFeatures $features Encodes whether a FinancialAccount has access to a particular Feature, with a <code>status</code> enum and associated <code>status_details</code>. Stripe or the platform can control Features via the requested field.
|
18 | 18 | * @property \Stripe\StripeObject[] $financial_addresses The set of credentials that resolve to a FinancialAccount.
|
| 19 | + * @property null|bool $is_default |
19 | 20 | * @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.
|
20 | 21 | * @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.
|
| 22 | + * @property null|string $nickname The nickname for the FinancialAccount. |
21 | 23 | * @property null|string[] $pending_features The array of paths to pending Features in the Features hash.
|
22 | 24 | * @property null|\Stripe\StripeObject $platform_restrictions The set of functionalities that the platform can restrict on the FinancialAccount.
|
23 | 25 | * @property null|string[] $restricted_features The array of paths to restricted Features in the Features hash.
|
@@ -116,6 +118,23 @@ public static function update($id, $params = null, $opts = null)
|
116 | 118 | return $obj;
|
117 | 119 | }
|
118 | 120 |
|
| 121 | + /** |
| 122 | + * @param null|array $params |
| 123 | + * @param null|array|string $opts |
| 124 | + * |
| 125 | + * @throws \Stripe\Exception\ApiErrorException if the request fails |
| 126 | + * |
| 127 | + * @return \Stripe\Treasury\FinancialAccount the closed financial account |
| 128 | + */ |
| 129 | + public function close($params = null, $opts = null) |
| 130 | + { |
| 131 | + $url = $this->instanceUrl() . '/close'; |
| 132 | + list($response, $opts) = $this->_request('post', $url, $params, $opts); |
| 133 | + $this->refreshFrom($response, $opts); |
| 134 | + |
| 135 | + return $this; |
| 136 | + } |
| 137 | + |
119 | 138 | /**
|
120 | 139 | * @param null|array $params
|
121 | 140 | * @param null|array|string $opts
|
|
0 commit comments