mirror of
https://github.com/itflow-org/itflow
synced 2026-08-17 21:15:13 +00:00
Rename plugins to libs and update all file references
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Radar;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class EarlyFraudWarningService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of early fraud warnings.
|
||||
*
|
||||
* @param null|array{charge?: string, created?: array|int, ending_before?: string, expand?: string[], limit?: int, payment_intent?: string, starting_after?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Radar\EarlyFraudWarning>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/radar/early_fraud_warnings', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of an early fraud warning that has previously been
|
||||
* created.
|
||||
*
|
||||
* Please refer to the <a href="#early_fraud_warning_object">early fraud
|
||||
* warning</a> object reference for more details.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Radar\EarlyFraudWarning
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/radar/early_fraud_warnings/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Radar;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class PaymentEvaluationService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Request a Radar API fraud risk score from Stripe for a payment before sending it
|
||||
* for external processor authorization.
|
||||
*
|
||||
* @param null|array{client_device_metadata_details?: array{radar_session: string}, customer_details: array{customer?: string, customer_account?: string, email?: string, name?: string, phone?: string}, expand?: string[], metadata?: array<string, string>, payment_details: array{amount: int, currency: string, description?: string, money_movement_details?: array{card?: array{customer_presence?: string, payment_type?: string}, money_movement_type: string}, payment_method_details: array{billing_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: string, name?: string, phone?: string}, payment_method: string}, shipping_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name?: string, phone?: string}, statement_descriptor?: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Radar\PaymentEvaluation
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/radar/payment_evaluations', $params, $opts);
|
||||
}
|
||||
}
|
||||
31
libs/stripe-php/lib/Service/Radar/RadarServiceFactory.php
Normal file
31
libs/stripe-php/lib/Service/Radar/RadarServiceFactory.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Radar;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Radar namespace.
|
||||
*
|
||||
* @property EarlyFraudWarningService $earlyFraudWarnings
|
||||
* @property PaymentEvaluationService $paymentEvaluations
|
||||
* @property ValueListItemService $valueListItems
|
||||
* @property ValueListService $valueLists
|
||||
*/
|
||||
class RadarServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'earlyFraudWarnings' => EarlyFraudWarningService::class,
|
||||
'paymentEvaluations' => PaymentEvaluationService::class,
|
||||
'valueListItems' => ValueListItemService::class,
|
||||
'valueLists' => ValueListService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
79
libs/stripe-php/lib/Service/Radar/ValueListItemService.php
Normal file
79
libs/stripe-php/lib/Service/Radar/ValueListItemService.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Radar;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class ValueListItemService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of <code>ValueListItem</code> objects. The objects are sorted in
|
||||
* descending order by creation date, with the most recently created object
|
||||
* appearing first.
|
||||
*
|
||||
* @param null|array{created?: array|int, ending_before?: string, expand?: string[], limit?: int, starting_after?: string, value?: string, value_list: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Radar\ValueListItem>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/radar/value_list_items', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new <code>ValueListItem</code> object, which is added to the specified
|
||||
* parent value list.
|
||||
*
|
||||
* @param null|array{expand?: string[], value: string, value_list: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Radar\ValueListItem
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/radar/value_list_items', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a <code>ValueListItem</code> object, removing it from its parent value
|
||||
* list.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Radar\ValueListItem
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function delete($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('delete', $this->buildPath('/v1/radar/value_list_items/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a <code>ValueListItem</code> object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Radar\ValueListItem
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/radar/value_list_items/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
98
libs/stripe-php/lib/Service/Radar/ValueListService.php
Normal file
98
libs/stripe-php/lib/Service/Radar/ValueListService.php
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\Radar;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class ValueListService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of <code>ValueList</code> objects. The objects are sorted in
|
||||
* descending order by creation date, with the most recently created object
|
||||
* appearing first.
|
||||
*
|
||||
* @param null|array{alias?: string, contains?: string, created?: array|int, ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Collection<\Stripe\Radar\ValueList>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v1/radar/value_lists', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new <code>ValueList</code> object, which can then be referenced in
|
||||
* rules.
|
||||
*
|
||||
* @param null|array{alias: string, expand?: string[], item_type?: string, metadata?: array<string, string>, name: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Radar\ValueList
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v1/radar/value_lists', $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a <code>ValueList</code> object, also deleting any items contained
|
||||
* within the value list. To be deleted, a value list must not be referenced in any
|
||||
* rules.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Radar\ValueList
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function delete($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('delete', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a <code>ValueList</code> object.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{expand?: string[]} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Radar\ValueList
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates a <code>ValueList</code> object by setting the values of the parameters
|
||||
* passed. Any parameters not provided will be left unchanged. Note that
|
||||
* <code>item_type</code> is immutable.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{alias?: string, expand?: string[], metadata?: array<string, string>, name?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\Radar\ValueList
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function update($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user