Removed unused libs in the vendor folder and moved stripe to the plugins folder then elininated the vendor folder all together, updated all the stripe links
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Terminal;
|
||||
|
||||
/**
|
||||
* A Configurations object represents how features should be configured for
|
||||
* terminal readers.
|
||||
*
|
||||
* @property string $id Unique identifier for the object.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value.
|
||||
* @property \Stripe\StripeObject $bbpos_wisepos_e
|
||||
* @property null|bool $is_account_default Whether this Configuration is the default for your account
|
||||
* @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.
|
||||
* @property \Stripe\StripeObject $tipping
|
||||
* @property \Stripe\StripeObject $verifone_p400
|
||||
*/
|
||||
class Configuration extends \Stripe\ApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'terminal.configuration';
|
||||
|
||||
use \Stripe\ApiOperations\All;
|
||||
use \Stripe\ApiOperations\Create;
|
||||
use \Stripe\ApiOperations\Delete;
|
||||
use \Stripe\ApiOperations\Retrieve;
|
||||
use \Stripe\ApiOperations\Update;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Terminal;
|
||||
|
||||
/**
|
||||
* A Connection Token is used by the Stripe Terminal SDK to connect to a reader.
|
||||
*
|
||||
* Related guide: <a href="https://stripe.com/docs/terminal/fleet/locations">Fleet
|
||||
* Management</a>.
|
||||
*
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value.
|
||||
* @property string $location The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see <a href="https://stripe.com/docs/terminal/fleet/locations#connection-tokens">the docs on scoping connection tokens</a>.
|
||||
* @property string $secret Your application should pass this token to the Stripe Terminal SDK.
|
||||
*/
|
||||
class ConnectionToken extends \Stripe\ApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'terminal.connection_token';
|
||||
|
||||
use \Stripe\ApiOperations\Create;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Terminal;
|
||||
|
||||
/**
|
||||
* A Location represents a grouping of readers.
|
||||
*
|
||||
* Related guide: <a href="https://stripe.com/docs/terminal/fleet/locations">Fleet
|
||||
* Management</a>.
|
||||
*
|
||||
* @property string $id Unique identifier for the object.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value.
|
||||
* @property \Stripe\StripeObject $address
|
||||
* @property string $configuration_overrides The ID of a configuration that will be used to customize all readers in this location.
|
||||
* @property string $display_name The display name of the location.
|
||||
* @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.
|
||||
* @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
*/
|
||||
class Location extends \Stripe\ApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'terminal.location';
|
||||
|
||||
use \Stripe\ApiOperations\All;
|
||||
use \Stripe\ApiOperations\Create;
|
||||
use \Stripe\ApiOperations\Delete;
|
||||
use \Stripe\ApiOperations\Retrieve;
|
||||
use \Stripe\ApiOperations\Update;
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Terminal;
|
||||
|
||||
/**
|
||||
* A Reader represents a physical device for accepting payment details.
|
||||
*
|
||||
* Related guide: <a
|
||||
* href="https://stripe.com/docs/terminal/payments/connect-reader">Connecting to a
|
||||
* Reader</a>.
|
||||
*
|
||||
* @property string $id Unique identifier for the object.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value.
|
||||
* @property null|\Stripe\StripeObject $action The most recent action performed by the reader.
|
||||
* @property null|string $device_sw_version The current software version of the reader.
|
||||
* @property string $device_type Type of reader, one of <code>bbpos_wisepad3</code>, <code>stripe_m2</code>, <code>bbpos_chipper2x</code>, <code>bbpos_wisepos_e</code>, <code>verifone_P400</code>, or <code>simulated_wisepos_e</code>.
|
||||
* @property null|string $ip_address The local IP address of the reader.
|
||||
* @property string $label Custom label given to the reader for easier identification.
|
||||
* @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.
|
||||
* @property null|string|\Stripe\Terminal\Location $location The location identifier of the reader.
|
||||
* @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
* @property string $serial_number Serial number of the reader.
|
||||
* @property null|string $status The networking status of the reader.
|
||||
*/
|
||||
class Reader extends \Stripe\ApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'terminal.reader';
|
||||
|
||||
use \Stripe\ApiOperations\All;
|
||||
use \Stripe\ApiOperations\Create;
|
||||
use \Stripe\ApiOperations\Delete;
|
||||
use \Stripe\ApiOperations\Retrieve;
|
||||
use \Stripe\ApiOperations\Update;
|
||||
|
||||
/**
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Terminal\Reader the canceled reader
|
||||
*/
|
||||
public function cancelAction($params = null, $opts = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/cancel_action';
|
||||
list($response, $opts) = $this->_request('post', $url, $params, $opts);
|
||||
$this->refreshFrom($response, $opts);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Terminal\Reader the processed reader
|
||||
*/
|
||||
public function processPaymentIntent($params = null, $opts = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/process_payment_intent';
|
||||
list($response, $opts) = $this->_request('post', $url, $params, $opts);
|
||||
$this->refreshFrom($response, $opts);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Terminal\Reader the processed reader
|
||||
*/
|
||||
public function processSetupIntent($params = null, $opts = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/process_setup_intent';
|
||||
list($response, $opts) = $this->_request('post', $url, $params, $opts);
|
||||
$this->refreshFrom($response, $opts);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param null|array $params
|
||||
* @param null|array|string $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Terminal\Reader the seted reader
|
||||
*/
|
||||
public function setReaderDisplay($params = null, $opts = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/set_reader_display';
|
||||
list($response, $opts) = $this->_request('post', $url, $params, $opts);
|
||||
$this->refreshFrom($response, $opts);
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user