mirror of
https://github.com/itflow-org/itflow
synced 2026-08-16 12:35:11 +00:00
Split DB Updates into seperate files, with the cutoff being 2.0.0
This commit is contained in:
@@ -13,7 +13,7 @@ class MeterEventSessionService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Creates a meter event session to send usage on the high-throughput meter event
|
||||
* stream. Authentication tokens are only valid for 15 minutes, so you will need to
|
||||
* stream. Authentication tokens are only valid for 15 minutes, so you need to
|
||||
* create a new meter event session when your token expires.
|
||||
*
|
||||
* @param null|array $params
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -16,12 +16,12 @@ class AccountLinkService extends \Stripe\Service\AbstractService
|
||||
* use to access a Stripe-hosted flow for collecting or updating required
|
||||
* information.
|
||||
*
|
||||
* @param null|array{account: string, use_case: array{type: string, account_onboarding?: array{collection_options?: array{fields?: string, future_requirements?: string}, configurations: string[], refresh_url: string, return_url?: string}, account_update?: array{collection_options?: array{fields?: string, future_requirements?: string}, configurations: string[], refresh_url: string, return_url?: string}}} $params
|
||||
* @param null|array{account: string, use_case: array{account_onboarding?: array{collection_options?: array{fields?: string, future_requirements?: string}, configurations: string[], refresh_url: string, return_url?: string}, account_update?: array{collection_options?: array{fields?: string, future_requirements?: string}, configurations: string[], refresh_url: string, return_url?: string}, type: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\V2\Core\AccountLink
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @throws \Stripe\Exception\RateLimitException
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -12,18 +12,47 @@ namespace Stripe\Service\V2\Core;
|
||||
class AccountTokenService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Creates an Account Token.
|
||||
* Create an account token with a publishable key and pass it to the Accounts v2
|
||||
* API to create or update an account without its data touching your server. Learn
|
||||
* more about [account tokens](https://docs.stripe.com/connect/account-tokens). In
|
||||
* live mode, you can only create account tokens with your application's
|
||||
* publishable key. In test mode, you can create account tokens with your secret
|
||||
* key or publishable key.
|
||||
*
|
||||
* @param null|array{contact_email?: string, contact_phone?: string, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{attested?: bool}, ownership_declaration?: array{attested?: bool}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{attested?: bool}, terms_of_service?: array{account?: array{shown_and_accepted?: bool}}}, business_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: array{value?: int, currency?: string}, fiscal_year_end?: string}, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: array{value?: int, currency?: string}}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array<string, null|string>, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}} $params
|
||||
* @param null|array{contact_email?: string, contact_phone?: string, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{attested?: bool}, ownership_declaration?: array{attested?: bool}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{attested?: bool}, terms_of_service?: array{account?: array{shown_and_accepted?: bool}}}, business_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: \Stripe\StripeObject, fiscal_year_end?: string}, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], signer?: array{person: string}, type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], signer?: array{person: string}, type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: \Stripe\StripeObject}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array<string, null|string>, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\V2\Core\AccountToken
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @throws \Stripe\Exception\RateLimitException
|
||||
*/
|
||||
public function create($params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', '/v2/core/account_tokens', $params, $opts);
|
||||
return $this->request('post', '/v2/core/account_tokens', $params, $opts, [
|
||||
'request_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'identity' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'individual' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'relationship' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'percent_ownership' => [
|
||||
'kind' => 'decimal_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,7 +64,7 @@ class AccountTokenService extends \Stripe\Service\AbstractService
|
||||
*
|
||||
* @return \Stripe\V2\Core\AccountToken
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @throws \Stripe\Exception\RateLimitException
|
||||
*/
|
||||
public function retrieve($id, $params = null, $opts = null)
|
||||
{
|
||||
|
||||
@@ -20,11 +20,33 @@ class PersonService extends \Stripe\Service\AbstractService
|
||||
*
|
||||
* @return \Stripe\V2\Collection<\Stripe\V2\Core\AccountPerson>
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @throws \Stripe\Exception\RateLimitException
|
||||
*/
|
||||
public function all($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->requestCollection('get', $this->buildPath('/v2/core/accounts/%s/persons', $id), $params, $opts);
|
||||
return $this->requestCollection('get', $this->buildPath('/v2/core/accounts/%s/persons', $id), $params, $opts, [
|
||||
'response_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'data' => [
|
||||
'kind' => 'array',
|
||||
'element' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'relationship' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'percent_ownership' => [
|
||||
'kind' => 'decimal_string',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,11 +59,34 @@ class PersonService extends \Stripe\Service\AbstractService
|
||||
*
|
||||
* @return \Stripe\V2\Core\AccountPerson
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @throws \Stripe\Exception\RateLimitException
|
||||
*/
|
||||
public function create($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v2/core/accounts/%s/persons', $id), $params, $opts);
|
||||
return $this->request('post', $this->buildPath('/v2/core/accounts/%s/persons', $id), $params, $opts, [
|
||||
'request_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'relationship' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'percent_ownership' => ['kind' => 'decimal_string'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'response_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'relationship' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'percent_ownership' => ['kind' => 'decimal_string'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -54,7 +99,7 @@ class PersonService extends \Stripe\Service\AbstractService
|
||||
*
|
||||
* @return \Stripe\V2\DeletedObject
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @throws \Stripe\Exception\RateLimitException
|
||||
*/
|
||||
public function delete($parentId, $id, $params = null, $opts = null)
|
||||
{
|
||||
@@ -71,11 +116,23 @@ class PersonService extends \Stripe\Service\AbstractService
|
||||
*
|
||||
* @return \Stripe\V2\Core\AccountPerson
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @throws \Stripe\Exception\RateLimitException
|
||||
*/
|
||||
public function retrieve($parentId, $id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('get', $this->buildPath('/v2/core/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
|
||||
return $this->request('get', $this->buildPath('/v2/core/accounts/%s/persons/%s', $parentId, $id), $params, $opts, [
|
||||
'response_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'relationship' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'percent_ownership' => ['kind' => 'decimal_string'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -88,10 +145,33 @@ class PersonService extends \Stripe\Service\AbstractService
|
||||
*
|
||||
* @return \Stripe\V2\Core\AccountPerson
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @throws \Stripe\Exception\RateLimitException
|
||||
*/
|
||||
public function update($parentId, $id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v2/core/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
|
||||
return $this->request('post', $this->buildPath('/v2/core/accounts/%s/persons/%s', $parentId, $id), $params, $opts, [
|
||||
'request_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'relationship' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'percent_ownership' => ['kind' => 'decimal_string'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'response_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'relationship' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'percent_ownership' => ['kind' => 'decimal_string'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,12 @@ namespace Stripe\Service\V2\Core\Accounts;
|
||||
class PersonTokenService extends \Stripe\Service\AbstractService
|
||||
{
|
||||
/**
|
||||
* Creates a Person Token associated with an Account.
|
||||
* Creates a single-use token that represents the details for a person. Use this
|
||||
* when you create or update persons associated with an Account v2. Learn more
|
||||
* about [account tokens](https://docs.stripe.com/connect/account-tokens). You can
|
||||
* only create person tokens with your application's publishable key and in live
|
||||
* mode. You can use your application's secret key to create person tokens only in
|
||||
* test mode.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], additional_terms_of_service?: array{account?: array{shown_and_accepted?: bool}}, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array<string, null|string>, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{authorizer?: bool, director?: bool, executive?: bool, legal_guardian?: bool, owner?: bool, percent_ownership?: string, representative?: bool, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string} $params
|
||||
@@ -20,11 +25,23 @@ class PersonTokenService extends \Stripe\Service\AbstractService
|
||||
*
|
||||
* @return \Stripe\V2\Core\AccountPersonToken
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @throws \Stripe\Exception\RateLimitException
|
||||
*/
|
||||
public function create($id, $params = null, $opts = null)
|
||||
{
|
||||
return $this->request('post', $this->buildPath('/v2/core/accounts/%s/person_tokens', $id), $params, $opts);
|
||||
return $this->request('post', $this->buildPath('/v2/core/accounts/%s/person_tokens', $id), $params, $opts, [
|
||||
'request_schema' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'relationship' => [
|
||||
'kind' => 'object',
|
||||
'fields' => [
|
||||
'percent_ownership' => ['kind' => 'decimal_string'],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,7 +54,7 @@ class PersonTokenService extends \Stripe\Service\AbstractService
|
||||
*
|
||||
* @return \Stripe\V2\Core\AccountPersonToken
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
* @throws \Stripe\Exception\RateLimitException
|
||||
*/
|
||||
public function retrieve($parentId, $id, $params = null, $opts = null)
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ class EventDestinationService extends \Stripe\Service\AbstractService
|
||||
/**
|
||||
* Create a new event destination.
|
||||
*
|
||||
* @param null|array{description?: string, enabled_events: string[], event_payload: string, events_from?: string[], include?: string[], metadata?: array<string, string>, name: string, snapshot_api_version?: string, type: string, amazon_eventbridge?: array{aws_account_id: string, aws_region: string}, webhook_endpoint?: array{url: string}} $params
|
||||
* @param null|array{amazon_eventbridge?: array{aws_account_id: string, aws_region: string}, azure_event_grid?: array{azure_region: string, azure_resource_group_name: string, azure_subscription_id: string}, description?: string, enabled_events: string[], event_payload: string, events_from?: string[], include?: string[], metadata?: array<string, string>, name: string, snapshot_api_version?: string, type: string, webhook_endpoint?: array{url: string}} $params
|
||||
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
||||
*
|
||||
* @return \Stripe\V2\Core\EventDestination
|
||||
|
||||
@@ -27,7 +27,9 @@ class EventService extends \Stripe\Service\AbstractService
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the details of an event.
|
||||
* Retrieves the details of an event if it was created in the last 30 days. Supply
|
||||
* the unique identifier of the event, which might have been delivered to your
|
||||
* event destination.
|
||||
*
|
||||
* @param string $id
|
||||
* @param null|array $params
|
||||
|
||||
@@ -8,6 +8,7 @@ namespace Stripe\Service\V2;
|
||||
* Service factory class for API resources in the V2 namespace.
|
||||
*
|
||||
* @property Billing\BillingServiceFactory $billing
|
||||
* @property Commerce\CommerceServiceFactory $commerce
|
||||
* @property Core\CoreServiceFactory $core
|
||||
*/
|
||||
class V2ServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
@@ -17,6 +18,7 @@ class V2ServiceFactory extends \Stripe\Service\AbstractServiceFactory
|
||||
*/
|
||||
private static $classMap = [
|
||||
'billing' => Billing\BillingServiceFactory::class,
|
||||
'commerce' => Commerce\CommerceServiceFactory::class,
|
||||
'core' => Core\CoreServiceFactory::class,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user