Initial Commit
This commit is contained in:
25
dependencies/stripe/stripe-php/lib/Terminal/Configuration.php
vendored
Normal file
25
dependencies/stripe/stripe-php/lib/Terminal/Configuration.php
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\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 null|\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 null|\Stripe\StripeObject $tipping
|
||||
* @property null|\Stripe\StripeObject $verifone_p400
|
||||
*/
|
||||
class Configuration extends \WP_Ultimo\Dependencies\Stripe\ApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'terminal.configuration';
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\All;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Create;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Delete;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Retrieve;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Update;
|
||||
}
|
19
dependencies/stripe/stripe-php/lib/Terminal/ConnectionToken.php
vendored
Normal file
19
dependencies/stripe/stripe-php/lib/Terminal/ConnectionToken.php
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\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 null|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 \WP_Ultimo\Dependencies\Stripe\ApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'terminal.connection_token';
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Create;
|
||||
}
|
27
dependencies/stripe/stripe-php/lib/Terminal/Location.php
vendored
Normal file
27
dependencies/stripe/stripe-php/lib/Terminal/Location.php
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\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 null|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 \WP_Ultimo\Dependencies\Stripe\ApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'terminal.location';
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\All;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Create;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Delete;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Retrieve;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Update;
|
||||
}
|
113
dependencies/stripe/stripe-php/lib/Terminal/Reader.php
vendored
Normal file
113
dependencies/stripe/stripe-php/lib/Terminal/Reader.php
vendored
Normal file
@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
namespace WP_Ultimo\Dependencies\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 \WP_Ultimo\Dependencies\Stripe\ApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'terminal.reader';
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\All;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Create;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Delete;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Retrieve;
|
||||
use \WP_Ultimo\Dependencies\Stripe\ApiOperations\Update;
|
||||
const DEVICE_TYPE_BBPOS_CHIPPER2X = 'bbpos_chipper2x';
|
||||
const DEVICE_TYPE_BBPOS_WISEPAD3 = 'bbpos_wisepad3';
|
||||
const DEVICE_TYPE_BBPOS_WISEPOS_E = 'bbpos_wisepos_e';
|
||||
const DEVICE_TYPE_SIMULATED_WISEPOS_E = 'simulated_wisepos_e';
|
||||
const DEVICE_TYPE_STRIPE_M2 = 'stripe_m2';
|
||||
const DEVICE_TYPE_VERIFONE_P400 = 'verifone_P400';
|
||||
/**
|
||||
* @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 refunded reader
|
||||
*/
|
||||
public function refundPayment($params = null, $opts = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/refund_payment';
|
||||
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