Skip to content

Commit

Permalink
Codegen for openapi 265b165 (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe authored Jul 14, 2021
1 parent 782c1f4 commit c69737d
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 4 deletions.
8 changes: 8 additions & 0 deletions lib/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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';
Expand Down
19 changes: 19 additions & 0 deletions lib/Quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions lib/Service/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="/docs/connect/custom-accounts">Custom
* account</a>, 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 <a href="/docs/connect/custom-accounts">Custom account</a>, 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.
Expand Down
19 changes: 19 additions & 0 deletions lib/Service/QuoteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <strong>upfront.line_items</strong> 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 <strong>line_items</strong>
* property containing the first handful of those items. There is also a URL where
Expand Down

0 comments on commit c69737d

Please sign in to comment.