Split DB Updates into seperate files, with the cutoff being 2.0.0

This commit is contained in:
johnnyq
2026-07-22 18:43:11 -04:00
parent 17e4c61067
commit 2b756f6ea4
252 changed files with 4161 additions and 4875 deletions

File diff suppressed because one or more lines are too long

View File

@@ -13,7 +13,7 @@ namespace Stripe\V2\Core;
* @property int $expires_at The timestamp at which this Account Link will expire.
* @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 string $url The URL at which the account can access the Stripe-hosted flow.
* @property (object{type: string, account_onboarding?: (object{collection_options?: (object{fields?: string, future_requirements?: string}&\Stripe\StripeObject), configurations: string[], refresh_url: string, return_url?: string}&\Stripe\StripeObject), account_update?: (object{collection_options?: (object{fields?: string, future_requirements?: string}&\Stripe\StripeObject), configurations: string[], refresh_url: string, return_url?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $use_case Hash containing usage options.
* @property (object{account_onboarding?: (object{collection_options?: (object{fields?: string, future_requirements?: string}&\Stripe\StripeObject), configurations: string[], refresh_url: string, return_url?: string}&\Stripe\StripeObject), account_update?: (object{collection_options?: (object{fields?: string, future_requirements?: string}&\Stripe\StripeObject), configurations: string[], refresh_url: string, return_url?: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject) $use_case Hash containing usage options.
*/
class AccountLink extends \Stripe\ApiResource
{

View File

@@ -36,6 +36,18 @@ class AccountPerson extends \Stripe\ApiResource
{
const OBJECT_NAME = 'v2.core.account_person';
public static function fieldEncodings()
{
return [
'relationship' => [
'kind' => 'object',
'fields' => [
'percent_ownership' => ['kind' => 'decimal_string'],
],
],
];
}
const LEGAL_GENDER_FEMALE = 'female';
const LEGAL_GENDER_MALE = 'male';

View File

@@ -5,7 +5,7 @@
namespace Stripe\V2\Core;
/**
* Account tokens are single-use tokens which tokenize company/individual/business information, and are used for creating or updating an Account.
* Account tokens are single-use tokens which tokenize an account's contact_email, display_name, contact_phone, and identity.
*
* @property string $id Unique identifier for the token.
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.

View File

@@ -10,11 +10,12 @@ namespace Stripe\V2\Core;
* @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 of the object field.
* @property null|(object{aws_account_id: string, aws_event_source_arn: string, aws_event_source_status: string}&\Stripe\StripeObject) $amazon_eventbridge Amazon EventBridge configuration.
* @property null|(object{azure_partner_topic_name: string, azure_partner_topic_status: string, azure_region: string, azure_resource_group_name: string, azure_subscription_id: string}&\Stripe\StripeObject) $azure_event_grid Azure Event Grid configuration.
* @property int $created Time at which the object was created.
* @property string $description An optional description of what the event destination is used for.
* @property string[] $enabled_events The list of events to enable for this endpoint.
* @property string $event_payload Payload type of events being subscribed to.
* @property null|string[] $events_from Where events should be routed from.
* @property null|string[] $events_from Specifies which accounts' events route to this destination. <code>@self</code>: Receive events from the account that owns the event destination. <code>@accounts</code>: Receive events emitted from other accounts you manage which includes your v1 and v2 accounts. <code>@organization_members</code>: Receive events from accounts directly linked to the organization. <code>@organization_members/@accounts</code>: Receive events from all accounts connected to any platform accounts in the organization.
* @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 $metadata Metadata.
* @property string $name Event destination name.
@@ -36,5 +37,6 @@ class EventDestination extends \Stripe\ApiResource
const STATUS_ENABLED = 'enabled';
const TYPE_AMAZON_EVENTBRIDGE = 'amazon_eventbridge';
const TYPE_AZURE_EVENT_GRID = 'azure_event_grid';
const TYPE_WEBHOOK_ENDPOINT = 'webhook_endpoint';
}

View File

@@ -65,7 +65,7 @@ abstract class EventNotification
/**
* Helper for constructing an Event Notification. Doesn't perform signature validation, so you
* should use \Stripe\BaseStripeClient#parseEventNotification instead for
* should use \Stripe\BaseStripeClient::parseEventNotification instead for
* initial handling. This is useful in unit tests and working with EventNotifications that you've
* already validated the authenticity of.
*
@@ -78,6 +78,12 @@ abstract class EventNotification
{
$json = json_decode($jsonStr, true);
if (isset($json['object']) && 'event' === $json['object']) {
throw new \Stripe\Exception\UnexpectedValueException(
'You passed a webhook payload to StripeClient::parseEventNotification, which expects an event notification. Use Webhook::constructEvent instead.'
);
}
$class = UnknownEventNotification::class;
$eventNotificationTypes = EventNotificationTypes::v2EventMapping;
if (\array_key_exists($json['type'], $eventNotificationTypes)) {