diff --git a/lib/Event.php b/lib/Event.php index 518c5d413..ca394a19c 100644 --- a/lib/Event.php +++ b/lib/Event.php @@ -72,6 +72,8 @@ class Event extends ApiResource const APPLICATION_FEE_REFUNDED = 'application_fee.refunded'; const APPLICATION_FEE_REFUND_UPDATED = 'application_fee.refund.updated'; const BALANCE_AVAILABLE = 'balance.available'; + const BILLING_PORTAL_CONFIGURATION_CREATED = 'billing_portal.configuration.created'; + const BILLING_PORTAL_CONFIGURATION_UPDATED = 'billing_portal.configuration.updated'; const CAPABILITY_UPDATED = 'capability.updated'; const CHARGE_CAPTURED = 'charge.captured'; const CHARGE_EXPIRED = 'charge.expired'; @@ -115,6 +117,12 @@ class Event extends ApiResource const CUSTOMER_TAX_ID_DELETED = 'customer.tax_id.deleted'; const CUSTOMER_TAX_ID_UPDATED = 'customer.tax_id.updated'; const FILE_CREATED = 'file.created'; + const IDENTITY_VERIFICATION_SESSION_CANCELED = 'identity.verification_session.canceled'; + const IDENTITY_VERIFICATION_SESSION_CREATED = 'identity.verification_session.created'; + const IDENTITY_VERIFICATION_SESSION_PROCESSING = 'identity.verification_session.processing'; + const IDENTITY_VERIFICATION_SESSION_REDACTED = 'identity.verification_session.redacted'; + const IDENTITY_VERIFICATION_SESSION_REQUIRES_INPUT = 'identity.verification_session.requires_input'; + const IDENTITY_VERIFICATION_SESSION_VERIFIED = 'identity.verification_session.verified'; const INVOICE_CREATED = 'invoice.created'; const INVOICE_DELETED = 'invoice.deleted'; const INVOICE_FINALIZATION_FAILED = 'invoice.finalization_failed'; diff --git a/lib/Quote.php b/lib/Quote.php index b0a8c1782..14ed843fb 100644 --- a/lib/Quote.php +++ b/lib/Quote.php @@ -131,6 +131,25 @@ public function finalizeQuote($params = null, $opts = null) return $this; } + /** + * @param null|array $params + * @param null|array|string $opts + * @param mixed $id + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\Collection list of LineItems + */ + public static function allComputedUpfrontLineItems($id, $params = null, $opts = null) + { + $url = static::resourceUrl($id) . '/computed_upfront_line_items'; + list($response, $opts) = static::_staticRequest('get', $url, $params, $opts); + $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); + $obj->setLastResponse($response); + + return $obj; + } + /** * @param null|array $params * @param null|array|string $opts diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index 50432a011..e69c5ee90 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -320,10 +320,10 @@ public function updateCapability($parentId, $id, $params = null, $opts = null) } /** - * Updates the metadata, account holder name, and account holder type of a bank - * account belonging to a Custom - * account, and optionally sets it as the default for its currency. Other bank - * account details are not editable by design. + * Updates the metadata, account holder name, account holder type of a bank account + * belonging to a Custom account, and + * optionally sets it as the default for its currency. Other bank account details + * are not editable by design. * * You can re-enable a disabled bank account by performing an update call without * providing any arguments or changes. diff --git a/lib/Service/QuoteService.php b/lib/Service/QuoteService.php index 701d35de4..34680e73a 100644 --- a/lib/Service/QuoteService.php +++ b/lib/Service/QuoteService.php @@ -37,6 +37,25 @@ public function all($params = null, $opts = null) return $this->requestCollection('get', '/v1/quotes', $params, $opts); } + /** + * When retrieving a quote, there is an includable + * upfront.line_items property containing the first handful of + * those items. There is also a URL where you can retrieve the full (paginated) + * list of upfront line items. + * + * @param string $id + * @param null|array $params + * @param null|array|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\Collection + */ + public function allComputedUpfrontLineItems($id, $params = null, $opts = null) + { + return $this->requestCollection('get', $this->buildPath('/v1/quotes/%s/computed_upfront_line_items', $id), $params, $opts); + } + /** * When retrieving a quote, there is an includable line_items * property containing the first handful of those items. There is also a URL where