JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "TransactionService.php"
Full Path: /var/www/laravel_filter/vendor/stripe/stripe-php/lib/Service/Tax/TransactionService.php
File size: 2.17 KB
MIME-type: text/x-php
Charset: utf-8
<?php
// File generated from our OpenAPI spec
namespace Stripe\Service\Tax;
class TransactionService extends \Stripe\Service\AbstractService
{
/**
* Retrieves the line items of a committed standalone transaction as a collection.
*
* @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<\Stripe\Tax\TransactionLineItem>
*/
public function allLineItems($id, $params = null, $opts = null)
{
return $this->requestCollection('get', $this->buildPath('/v1/tax/transactions/%s/line_items', $id), $params, $opts);
}
/**
* Creates a Tax <code>Transaction</code> from a calculation.
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Tax\Transaction
*/
public function createFromCalculation($params = null, $opts = null)
{
return $this->request('post', '/v1/tax/transactions/create_from_calculation', $params, $opts);
}
/**
* Partially or fully reverses a previously created <code>Transaction</code>.
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Tax\Transaction
*/
public function createReversal($params = null, $opts = null)
{
return $this->request('post', '/v1/tax/transactions/create_reversal', $params, $opts);
}
/**
* Retrieves a Tax <code>Transaction</code> object.
*
* @param string $id
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*
* @return \Stripe\Tax\Transaction
*/
public function retrieve($id, $params = null, $opts = null)
{
return $this->request('get', $this->buildPath('/v1/tax/transactions/%s', $id), $params, $opts);
}
}