mirror of
https://github.com/itflow-org/itflow
synced 2026-08-17 04:55:13 +00:00
Split DB Updates into seperate files, with the cutoff being 2.0.0
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\V2\Commerce;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the Commerce namespace.
|
||||
*
|
||||
* @property ProductCatalog\ProductCatalogServiceFactory $productCatalog
|
||||
*/
|
||||
class CommerceServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'productCatalog' => ProductCatalog\ProductCatalogServiceFactory::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\V2\Commerce\ProductCatalog;
|
||||
|
||||
/**
|
||||
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*
|
||||
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
||||
*/
|
||||
class ImportService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Returns a list of ProductCatalogImport objects.
|
||||
*
|
||||
* @param null|array{created?: string, created_gt?: string, created_gte?: string, created_lt?: string, created_lte?: string, feed_type?: string, limit?: int, status?: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\V2\Collection<\Stripe\V2\Commerce\ProductCatalogImport>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function all($params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', '/v2/commerce/product_catalog/imports', $params, $opts, [
|
||||
'response_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'data' => [
|
||||
'kind' => 'array',
|
||||
'element' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'status_details' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'processing' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'error_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
'success_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
'succeeded' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'success_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
'succeeded_with_errors' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'error_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
'error_file' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'size' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
'samples' => [
|
||||
'kind' => 'array',
|
||||
'element' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'row' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'success_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a ProductCatalogImport.
|
||||
*
|
||||
* @param null|array{feed_type: string, metadata: array<string, string>, mode: string} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\V2\Commerce\ProductCatalogImport
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v2/commerce/product_catalog/imports', $params, $opts, [
|
||||
'response_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'status_details' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'processing' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'error_count' => ['kind' => 'int64_string'],
|
||||
'success_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
'succeeded' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'success_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
'succeeded_with_errors' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'error_count' => ['kind' => 'int64_string'],
|
||||
'error_file' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'size' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
'samples' => [
|
||||
'kind' => 'array',
|
||||
'element' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'row' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'success_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a ProductCatalogImport by ID.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\V2\Commerce\ProductCatalogImport
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v2/commerce/product_catalog/imports/%s', $id), $params, $opts, [
|
||||
'response_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'status_details' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'processing' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'error_count' => ['kind' => 'int64_string'],
|
||||
'success_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
'succeeded' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'success_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
'succeeded_with_errors' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'error_count' => ['kind' => 'int64_string'],
|
||||
'error_file' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'size' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
'samples' => [
|
||||
'kind' => 'array',
|
||||
'element' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'row' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'success_count' => [
|
||||
'kind' => 'int64_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Service\V2\Commerce\ProductCatalog;
|
||||
|
||||
/**
|
||||
* Service factory class for API resources in the ProductCatalog namespace.
|
||||
*
|
||||
* @property ImportService $imports
|
||||
*/
|
||||
class ProductCatalogServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
private static $classMap = [
|
||||
'imports' => ImportService::class,
|
||||
];
|
||||
|
||||
protected function getServiceClass($name)
|
||||
{
|
||||
return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user