Skip to content

Commit 796fdbb

Browse files
Update generated code for v2164 and
1 parent 511b455 commit 796fdbb

28 files changed

+318
-40
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9a97a4eba57cbe1aae1ba2fe97e13cd3b2eb584e
1+
74913070eb5bc81c058d07ad167346b6d68d8b0b

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2163
1+
v2164

init.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@
817817
require __DIR__ . '/lib/Service/V2/Core/Accounts/PersonService.php';
818818
require __DIR__ . '/lib/Service/V2/Core/Accounts/PersonTokenService.php';
819819
require __DIR__ . '/lib/Service/V2/Core/ClaimableSandboxService.php';
820+
require __DIR__ . '/lib/Service/V2/Core/ConnectionSessionService.php';
820821
require __DIR__ . '/lib/Service/V2/Core/CoreServiceFactory.php';
821822
require __DIR__ . '/lib/Service/V2/Core/EventDestinationService.php';
822823
require __DIR__ . '/lib/Service/V2/Core/EventService.php';
@@ -936,6 +937,7 @@
936937
require __DIR__ . '/lib/V2/Core/AccountPersonToken.php';
937938
require __DIR__ . '/lib/V2/Core/AccountToken.php';
938939
require __DIR__ . '/lib/V2/Core/ClaimableSandbox.php';
940+
require __DIR__ . '/lib/V2/Core/ConnectionSession.php';
939941
require __DIR__ . '/lib/V2/Core/EventDestination.php';
940942
require __DIR__ . '/lib/V2/Core/Vault/GbBankAccount.php';
941943
require __DIR__ . '/lib/V2/Core/Vault/UsBankAccount.php';

lib/Service/V2/Billing/IntentService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function commit($id, $params = null, $opts = null)
6767
/**
6868
* Create a Billing Intent.
6969
*
70-
* @param null|array{actions: array{type: string, apply?: array{type: string, invoice_discount_rule?: array{applies_to: string, type: string, percent_off?: array{maximum_applications: array{type: string}, percent_off: string}}}, deactivate?: array{collect_at?: string, effective_at?: array{timestamp?: string, type: string}, pricing_plan_subscription_details: array{overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{credit_proration_behavior: string}}[]}, pricing_plan_subscription: string}, type: string}, modify?: array{collect_at?: string, effective_at?: array{timestamp?: string, type: string}, pricing_plan_subscription_details: array{component_configurations?: array{quantity?: int, lookup_key?: string, pricing_plan_component?: string}[], new_pricing_plan?: string, new_pricing_plan_version?: string, overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{credit_proration_behavior: string, debit_proration_behavior: string}}[]}, pricing_plan_subscription: string}, type: string}, remove?: array{type: string, invoice_discount_rule?: string}, subscribe?: array{collect_at?: string, effective_at?: array{timestamp?: string, type: string}, type: string, pricing_plan_subscription_details?: array{component_configurations?: array{quantity?: int, lookup_key?: string, pricing_plan_component?: string}[], metadata?: array<string, string>, overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{debit_proration_behavior: string}}[]}, pricing_plan: string, pricing_plan_version: string}, v1_subscription_details?: array{description?: string, items: array{metadata?: array<string, string>, price: string, quantity?: int}[], metadata?: array<string, string>}}}[], currency: string, cadence?: string} $params
70+
* @param null|array{actions: array{type: string, apply?: array{type: string, invoice_discount_rule?: array{applies_to: string, type: string, percent_off?: array{maximum_applications: array{type: string}, percent_off: string}}}, deactivate?: array{cancellation_details?: array{comment?: string, feedback?: string}, collect_at?: string, effective_at?: array{timestamp?: string, type: string}, pricing_plan_subscription_details: array{overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{credit_proration_behavior: string}}[]}, pricing_plan_subscription: string}, type: string}, modify?: array{collect_at?: string, effective_at?: array{timestamp?: string, type: string}, pricing_plan_subscription_details: array{component_configurations?: array{quantity?: int, lookup_key?: string, pricing_plan_component?: string}[], new_pricing_plan?: string, new_pricing_plan_version?: string, overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{credit_proration_behavior: string, debit_proration_behavior: string}}[]}, pricing_plan_subscription: string}, type: string}, remove?: array{type: string, invoice_discount_rule?: string}, subscribe?: array{collect_at?: string, effective_at?: array{timestamp?: string, type: string}, type: string, pricing_plan_subscription_details?: array{component_configurations?: array{quantity?: int, lookup_key?: string, pricing_plan_component?: string}[], metadata?: array<string, string>, overrides?: array{partial_period_behaviors: array{type: string, license_fee?: array{debit_proration_behavior: string}}[]}, pricing_plan: string, pricing_plan_version: string}, v1_subscription_details?: array{description?: string, items: array{metadata?: array<string, string>, price: string, quantity?: int}[], metadata?: array<string, string>}}}[], currency: string, cadence?: string, cadence_data?: array{billing_cycle: array{interval_count?: int, type: string, day?: array{time?: array{hour: int, minute: int, second: int}}, month?: array{day_of_month: int, month_of_year?: int, time?: array{hour: int, minute: int, second: int}}, week?: array{day_of_week: int, time?: array{hour: int, minute: int, second: int}}, year?: array{day_of_month?: int, month_of_year?: int, time?: array{hour: int, minute: int, second: int}}}, payer: array{billing_profile?: string, billing_profile_data?: array{customer: string, default_payment_method?: string}}, settings?: array{bill?: array{id: string, version?: string}, collection?: array{id: string, version?: string}}}} $params
7171
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
7272
*
7373
* @return \Stripe\V2\Billing\Intent

lib/Service/V2/Billing/RateCards/RateService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function all($id, $params = null, $opts = null)
3535
* on the Rate Card.
3636
*
3737
* @param string $id
38-
* @param null|array{custom_pricing_unit_amount?: array{id: string, value: string}, metadata?: array<string, string>, metered_item?: string, tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], transform_quantity?: array{divide_by: int, round: string}, unit_amount?: string} $params
38+
* @param null|array{custom_pricing_unit_amount?: array{id: string, value: string}, metadata?: array<string, string>, metered_item: string, tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], transform_quantity?: array{divide_by: int, round: string}, unit_amount?: string} $params
3939
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
4040
*
4141
* @return \Stripe\V2\Billing\RateCardRate

lib/Service/V2/Core/AccountService.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

lib/Service/V2/Core/AccountTokenService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AccountTokenService extends \Stripe\Service\AbstractService
1414
/**
1515
* Creates an Account Token.
1616
*
17-
* @param null|array{contact_email?: 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}, card_creator?: array{commercial?: array{account_holder?: array{shown_and_accepted?: bool}, celtic?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}}, cross_river_bank?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}}}}}, crypto_storer?: array{shown_and_accepted?: bool}, storer?: 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}, compliance_screening_description?: 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, 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
17+
* @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}, card_creator?: array{commercial?: array{account_holder?: array{shown_and_accepted?: bool}, celtic?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}}, cross_river_bank?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}}}}}, crypto_storer?: array{shown_and_accepted?: bool}, storer?: 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}, compliance_screening_description?: 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
1818
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
1919
*
2020
* @return \Stripe\V2\Core\AccountToken
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
3+
// File generated from our OpenAPI spec
4+
5+
namespace Stripe\Service\V2\Core;
6+
7+
/**
8+
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
9+
*
10+
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
11+
*/
12+
class ConnectionSessionService extends \Stripe\Service\AbstractService
13+
{
14+
/**
15+
* Create a new ConnectionSession.
16+
*
17+
* @param null|array{account: string, allowed_connection_types?: string[], requested_access?: string[]} $params
18+
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
19+
*
20+
* @return \Stripe\V2\Core\ConnectionSession
21+
*
22+
* @throws \Stripe\Exception\ApiErrorException if the request fails
23+
*/
24+
public function create($params = null, $opts = null)
25+
{
26+
return $this->request('post', '/v2/core/connection_sessions', $params, $opts);
27+
}
28+
29+
/**
30+
* Retrieve a ConnectionSession.
31+
*
32+
* @param string $id
33+
* @param null|array $params
34+
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
35+
*
36+
* @return \Stripe\V2\Core\ConnectionSession
37+
*
38+
* @throws \Stripe\Exception\ApiErrorException if the request fails
39+
*/
40+
public function retrieve($id, $params = null, $opts = null)
41+
{
42+
return $this->request('get', $this->buildPath('/v2/core/connection_sessions/%s', $id), $params, $opts);
43+
}
44+
}

lib/Service/V2/Core/CoreServiceFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* @property AccountService $accounts
1111
* @property AccountTokenService $accountTokens
1212
* @property ClaimableSandboxService $claimableSandboxes
13+
* @property ConnectionSessionService $connectionSessions
1314
* @property EventDestinationService $eventDestinations
1415
* @property EventService $events
1516
* @property Vault\VaultServiceFactory $vault
@@ -26,6 +27,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
2627
'accounts' => AccountService::class,
2728
'accountTokens' => AccountTokenService::class,
2829
'claimableSandboxes' => ClaimableSandboxService::class,
30+
'connectionSessions' => ConnectionSessionService::class,
2931
'eventDestinations' => EventDestinationService::class,
3032
'events' => EventService::class,
3133
'vault' => Vault\VaultServiceFactory::class,

lib/Service/V2/Payments/SettlementAllocationIntentService.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ class SettlementAllocationIntentService extends \Stripe\Service\AbstractService
1919
'splits' => SettlementAllocationIntents\SplitService::class,
2020
];
2121

22+
/**
23+
* Lists all SettlementAllocationIntents.
24+
*
25+
* @param null|array{created_gt?: string, created_gte?: string, created_lt?: string, created_lte?: string, financial_account?: string, limit?: int, status?: string} $params
26+
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
27+
*
28+
* @return \Stripe\V2\Collection<\Stripe\V2\Payments\SettlementAllocationIntent>
29+
*
30+
* @throws \Stripe\Exception\ApiErrorException if the request fails
31+
*/
32+
public function all($params = null, $opts = null)
33+
{
34+
return $this->requestCollection('get', '/v2/payments/settlement_allocation_intents', $params, $opts);
35+
}
36+
2237
/**
2338
* Cancels an existing SettlementAllocationIntent. Only SettlementAllocationIntent
2439
* with status `pending`, `submitted` and `errored` can be `canceled`.

0 commit comments

Comments
 (0)