Skip to content

Commit 7e3cf90

Browse files
Merge pull request #1849 from stripe/latest-codegen-beta
Update generated code for beta
2 parents a799364 + 4fffaf4 commit 7e3cf90

29 files changed

+462
-32
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1648
1+
v1669

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ You can continue to use the legacy integration patterns used prior to version [7
6969

7070
See the [PHP API docs](https://stripe.com/docs/api/?lang=php#intro).
7171

72-
See [video demonstrations][youtube-playlist] covering how to use the library.
73-
7472
## Legacy Version Support
7573

7674
### PHP 5.4 & 5.5
@@ -322,4 +320,3 @@ See the "SSL / TLS compatibility issues" paragraph above for full context. If yo
322320
[php-cs-fixer]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
323321
[psr3]: http://www.php-fig.org/psr/psr-3/
324322
[stripe-mock]: https://github.com/stripe/stripe-mock
325-
[youtube-playlist]: https://www.youtube.com/playlist?list=PLy1nL-pvL2M6cUbiHrfMkXxZ9j9SGBxFE

init.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@
253253
require __DIR__ . '/lib/Person.php';
254254
require __DIR__ . '/lib/Plan.php';
255255
require __DIR__ . '/lib/Price.php';
256+
require __DIR__ . '/lib/Privacy/RedactionJob.php';
257+
require __DIR__ . '/lib/Privacy/RedactionJobRootObjects.php';
258+
require __DIR__ . '/lib/Privacy/RedactionJobValidationError.php';
256259
require __DIR__ . '/lib/Product.php';
257260
require __DIR__ . '/lib/ProductFeature.php';
258261
require __DIR__ . '/lib/PromotionCode.php';
@@ -359,6 +362,8 @@
359362
require __DIR__ . '/lib/Service/PayoutService.php';
360363
require __DIR__ . '/lib/Service/PlanService.php';
361364
require __DIR__ . '/lib/Service/PriceService.php';
365+
require __DIR__ . '/lib/Service/Privacy/PrivacyServiceFactory.php';
366+
require __DIR__ . '/lib/Service/Privacy/RedactionJobService.php';
362367
require __DIR__ . '/lib/Service/ProductService.php';
363368
require __DIR__ . '/lib/Service/PromotionCodeService.php';
364369
require __DIR__ . '/lib/Service/QuoteService.php';

lib/Account.php

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

lib/AccountSession.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AccountSession extends ApiResource
2828
* Creates a AccountSession object that includes a single-use token that the
2929
* platform can use on their front-end to grant client-side API access.
3030
*
31-
* @param null|array{account: string, components: array{account_management?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, account_onboarding?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, app_install?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, app_viewport?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, balances?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, capital_financing?: array{enabled: bool, features?: array{}}, capital_financing_application?: array{enabled: bool, features?: array{}}, capital_financing_promotion?: array{enabled: bool, features?: array{}}, capital_overview?: array{enabled: bool, features?: array{}}, documents?: array{enabled: bool, features?: array{}}, financial_account?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool, send_money?: bool, transfer_balance?: bool}}, financial_account_transactions?: array{enabled: bool, features?: array{card_spend_dispute_management?: bool}}, issuing_card?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, spend_control_management?: bool}}, issuing_cards_list?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, disable_stripe_user_authentication?: bool, spend_control_management?: bool}}, notification_banner?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, payment_details?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_method_settings?: array{enabled: bool, features?: array{}}, payments?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payouts?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, payouts_list?: array{enabled: bool, features?: array{}}, product_tax_code_selector?: array{enabled: bool, features?: array{}}, recipients?: array{enabled: bool, features?: array{send_money?: bool}}, reporting_chart?: array{enabled: bool, features?: array{}}, tax_registrations?: array{enabled: bool, features?: array{}}, tax_settings?: array{enabled: bool, features?: array{}}, tax_threshold_monitoring?: array{enabled: bool, features?: array{}}}, expand?: string[]} $params
31+
* @param null|array{account: string, components: array{account_management?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, account_onboarding?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, app_install?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, app_viewport?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, balances?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, capital_financing?: array{enabled: bool, features?: array{}}, capital_financing_application?: array{enabled: bool, features?: array{}}, capital_financing_promotion?: array{enabled: bool, features?: array{}}, capital_overview?: array{enabled: bool, features?: array{}}, documents?: array{enabled: bool, features?: array{}}, export_tax_transactions?: array{enabled: bool, features?: array{}}, financial_account?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool, send_money?: bool, transfer_balance?: bool}}, financial_account_transactions?: array{enabled: bool, features?: array{card_spend_dispute_management?: bool}}, issuing_card?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, spend_control_management?: bool}}, issuing_cards_list?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, disable_stripe_user_authentication?: bool, spend_control_management?: bool}}, notification_banner?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, payment_details?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_disputes?: array{enabled: bool, features?: array{destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_method_settings?: array{enabled: bool, features?: array{}}, payments?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payouts?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, payouts_list?: array{enabled: bool, features?: array{}}, product_tax_code_selector?: array{enabled: bool, features?: array{}}, recipients?: array{enabled: bool, features?: array{send_money?: bool}}, reporting_chart?: array{enabled: bool, features?: array{}}, tax_registrations?: array{enabled: bool, features?: array{}}, tax_settings?: array{enabled: bool, features?: array{}}, tax_threshold_monitoring?: array{enabled: bool, features?: array{}}}, expand?: string[]} $params
3232
* @param null|array|string $options
3333
*
3434
* @return AccountSession the created resource

lib/BalanceSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Stripe;
66

77
/**
8-
* "Options for customizing account balances within Stripe.".
8+
* Options for customizing account balances within Stripe.
99
*
1010
* @property string $object String representing the object's type. Objects of the same type share the same value.
1111
* @property null|bool $debit_negative_balances A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See <a href="/connect/account-balances">Understanding Connect account balances</a> for details. The default value is <code>false</code> when <a href="/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a> is <code>application</code>, which includes Custom accounts, otherwise <code>true</code>.

lib/Capital/FinancingOffer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class FinancingOffer extends \Stripe\ApiResource
4747
const STATUS_UNDELIVERED = 'undelivered';
4848

4949
const TYPE_CASH_ADVANCE = 'cash_advance';
50+
const TYPE_FIXED_TERM_LOAN = 'fixed_term_loan';
5051
const TYPE_FLEX_LOAN = 'flex_loan';
5152

5253
/**

lib/Checkout/Session.php

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

lib/ErrorObject.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class ErrorObject extends StripeObject
206206
const CODE_STATUS_TRANSITION_INVALID = 'status_transition_invalid';
207207
const CODE_STRIPE_TAX_INACTIVE = 'stripe_tax_inactive';
208208
const CODE_TAX_ID_INVALID = 'tax_id_invalid';
209+
const CODE_TAX_ID_PROHIBITED = 'tax_id_prohibited';
209210
const CODE_TAXES_CALCULATION_FAILED = 'taxes_calculation_failed';
210211
const CODE_TERMINAL_LOCATION_COUNTRY_UNSUPPORTED = 'terminal_location_country_unsupported';
211212
const CODE_TERMINAL_READER_BUSY = 'terminal_reader_busy';

lib/Event.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ class Event extends ApiResource
242242
const PRICE_CREATED = 'price.created';
243243
const PRICE_DELETED = 'price.deleted';
244244
const PRICE_UPDATED = 'price.updated';
245+
const PRIVACY_REDACTION_JOB_CANCELED = 'privacy.redaction_job.canceled';
246+
const PRIVACY_REDACTION_JOB_CREATED = 'privacy.redaction_job.created';
247+
const PRIVACY_REDACTION_JOB_READY = 'privacy.redaction_job.ready';
248+
const PRIVACY_REDACTION_JOB_SUCCEEDED = 'privacy.redaction_job.succeeded';
249+
const PRIVACY_REDACTION_JOB_VALIDATION_ERROR = 'privacy.redaction_job.validation_error';
245250
const PRODUCT_CREATED = 'product.created';
246251
const PRODUCT_DELETED = 'product.deleted';
247252
const PRODUCT_UPDATED = 'product.updated';
@@ -525,6 +530,11 @@ class Event extends ApiResource
525530
const TYPE_PRICE_CREATED = 'price.created';
526531
const TYPE_PRICE_DELETED = 'price.deleted';
527532
const TYPE_PRICE_UPDATED = 'price.updated';
533+
const TYPE_PRIVACY_REDACTION_JOB_CANCELED = 'privacy.redaction_job.canceled';
534+
const TYPE_PRIVACY_REDACTION_JOB_CREATED = 'privacy.redaction_job.created';
535+
const TYPE_PRIVACY_REDACTION_JOB_READY = 'privacy.redaction_job.ready';
536+
const TYPE_PRIVACY_REDACTION_JOB_SUCCEEDED = 'privacy.redaction_job.succeeded';
537+
const TYPE_PRIVACY_REDACTION_JOB_VALIDATION_ERROR = 'privacy.redaction_job.validation_error';
528538
const TYPE_PRODUCT_CREATED = 'product.created';
529539
const TYPE_PRODUCT_DELETED = 'product.deleted';
530540
const TYPE_PRODUCT_UPDATED = 'product.updated';

0 commit comments

Comments
 (0)