Skip to content

Commit

Permalink
Generate from latest openapi 72527e3
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed May 14, 2020
1 parent 8322f4d commit 0b17d45
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/Issuing/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
* @property string $merchant_currency The currency with which the merchant is taking payment.
* @property \Stripe\StripeObject $merchant_data
* @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property null|\Stripe\StripeObject $purchase_details Additional purchase information that is optionally provided by the merchant.
* @property string $type The nature of the transaction.
*/
class Transaction extends \Stripe\ApiResource
Expand Down
5 changes: 3 additions & 2 deletions lib/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
* Products describe the specific goods or services you offer to your customers.
* For example, you might offer a Standard and Premium version of your goods or
* service; each version would be a separate Product. They can be used in
* conjunction with <a href="https://stripe.com/docs/api#prices">Prices</a> to
* configure pricing in Checkout and Subscriptions.
* conjunction with <a href="https://stripe.com/docs/api#skus">SKUs</a> and <a
* href="https://stripe.com/docs/api#plans">Plans</a> to configure pricing in
* Checkout and Subscriptions.
*
* Related guides: <a
* href="https://stripe.com/docs/billing/subscriptions/set-up-subscription">Set up
Expand Down
4 changes: 0 additions & 4 deletions lib/Service/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ public function allPersons($parentId, $params = null, $opts = null)
* href="https://dashboard.stripe.com/account/applications/settings">register your
* platform</a>.
*
* For Standard accounts, parameters other than <code>country</code>,
* <code>email</code>, and <code>type</code> are used to prefill the account
* application that we ask the account holder to complete.
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
Expand Down
19 changes: 19 additions & 0 deletions lib/Service/Checkout/SessionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ public function all($params = null, $opts = null)
return $this->request('get', '/v1/checkout/sessions', $params, $opts);
}

/**
* When retrieving a Checkout Session, there is an includable
* <strong>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
* line items.
*
* @param string $parentId
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Collection
*/
public function allLineItems($parentId, $params = null, $opts = null)
{
return $this->request('get', $this->buildPath('/v1/checkout/sessions/%s/line_items', $parentId), $params, $opts);
}

/**
* Creates a Session object.
*
Expand Down
4 changes: 2 additions & 2 deletions lib/Service/CoreServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @property AccountService $accounts
* @property ApplePayDomainService $applePayDomains
* @property ApplicationFeeService $applicationFees
* @property BalanceService $balances
* @property BalanceService $balance
* @property BalanceTransactionService $balanceTransactions
* @property BillingPortal\BillingPortalServiceFactory $billingPortal
* @property ChargeService $charges
Expand Down Expand Up @@ -64,7 +64,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
'accounts' => AccountService::class,
'applePayDomains' => ApplePayDomainService::class,
'applicationFees' => ApplicationFeeService::class,
'balances' => BalanceService::class,
'balance' => BalanceService::class,
'balanceTransactions' => BalanceTransactionService::class,
'billingPortal' => BillingPortal\BillingPortalServiceFactory::class,
'charges' => ChargeService::class,
Expand Down
2 changes: 1 addition & 1 deletion lib/StripeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* @property \Stripe\Service\AccountService $accounts
* @property \Stripe\Service\ApplePayDomainService $applePayDomains
* @property \Stripe\Service\ApplicationFeeService $applicationFees
* @property \Stripe\Service\BalanceService $balance
* @property \Stripe\Service\BalanceTransactionService $balanceTransactions
* @property \Stripe\Service\BalanceService $balances
* @property \Stripe\Service\BillingPortal\BillingPortalServiceFactory $billingPortal
* @property \Stripe\Service\ChargeService $charges
* @property \Stripe\Service\Checkout\CheckoutServiceFactory $checkout
Expand Down

0 comments on commit 0b17d45

Please sign in to comment.