wp-user-avatar
/
third-party
/
vendor
/
stripe
/
stripe-php
/
lib
/
Billing
/
CreditBalanceSummary.php
Alert.php
2 months ago
AlertTriggered.php
2 months ago
CreditBalanceSummary.php
2 months ago
CreditBalanceTransaction.php
2 months ago
CreditGrant.php
2 months ago
Meter.php
2 months ago
MeterEvent.php
2 months ago
MeterEventAdjustment.php
2 months ago
MeterEventSummary.php
2 months ago
CreditBalanceSummary.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | namespace ProfilePressVendor\Stripe\Billing; |
| 5 | |
| 6 | /** |
| 7 | * Indicates the billing credit balance for billing credits granted to a customer. |
| 8 | * |
| 9 | * @property string $object String representing the object's type. Objects of the same type share the same value. |
| 10 | * @property \Stripe\StripeObject[] $balances The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. |
| 11 | * @property string|\Stripe\Customer $customer The customer the balance is for. |
| 12 | * @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. |
| 13 | */ |
| 14 | class CreditBalanceSummary extends \ProfilePressVendor\Stripe\SingletonApiResource |
| 15 | { |
| 16 | const OBJECT_NAME = 'billing.credit_balance_summary'; |
| 17 | /** |
| 18 | * Retrieves the credit balance summary for a customer. |
| 19 | * |
| 20 | * @param null|array|string $opts |
| 21 | * |
| 22 | * @throws \Stripe\Exception\ApiErrorException if the request fails |
| 23 | * |
| 24 | * @return \Stripe\Billing\CreditBalanceSummary |
| 25 | */ |
| 26 | public static function retrieve($opts = null) |
| 27 | { |
| 28 | $opts = \ProfilePressVendor\Stripe\Util\RequestOptions::parse($opts); |
| 29 | $instance = new static(null, $opts); |
| 30 | $instance->refresh(); |
| 31 | return $instance; |
| 32 | } |
| 33 | } |
| 34 |