From eefc36316f3c515c0a99db6193329c484bcb1c42 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Fri, 25 Aug 2023 18:14:58 +0000
Subject: [PATCH 1/8] Update generated code for v485
---
OPENAPI_VERSION | 2 +-
lib/Checkout/Session.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 3c560ddf2..af9d159d1 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v482
\ No newline at end of file
+v485
\ No newline at end of file
diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php
index 44553d9f9..b1ed61e5d 100644
--- a/lib/Checkout/Session.php
+++ b/lib/Checkout/Session.php
@@ -37,7 +37,7 @@
* @property null|\Stripe\StripeObject $currency_conversion Currency conversion details for automatic currency conversion sessions
* @property \Stripe\StripeObject[] $custom_fields Collect additional information from your customer using custom fields. Up to 2 fields are supported.
* @property \Stripe\StripeObject $custom_text
- * @property null|string|\Stripe\Customer $customer The ID of the customer for this Session. For Checkout Sessions in payment
or subscription
mode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created.
+ * @property null|string|\Stripe\Customer $customer The ID of the customer for this Session. For Checkout Sessions in subscription
mode or Checkout Sessions with customer_creation
set as always
in payment
mode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created.
* @property null|string $customer_creation Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
* @property null|\Stripe\StripeObject $customer_details The customer details including the customer's tax exempt status and the customer's tax IDs. Only the customer's email is present on Sessions in setup
mode.
* @property null|string $customer_email If provided, this value will be used when the Customer object is created. If not provided, customers will be asked to enter their email address. Use this parameter to prefill customer data if you already have an email on file. To access information about the customer once the payment flow is complete, use the customer
attribute.
From 32b6d62c99dfc61283dc0f6b4a54947381ca1124 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 28 Aug 2023 16:14:07 +0000
Subject: [PATCH 2/8] Update generated code for v486
---
OPENAPI_VERSION | 2 +-
lib/BankAccount.php | 2 +-
lib/Person.php | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index af9d159d1..b3908a1f5 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v485
\ No newline at end of file
+v486
\ No newline at end of file
diff --git a/lib/BankAccount.php b/lib/BankAccount.php
index 05b542fea..f58a52e97 100644
--- a/lib/BankAccount.php
+++ b/lib/BankAccount.php
@@ -26,7 +26,7 @@
* @property null|string|\Stripe\Customer $customer The ID of the customer that the bank account is associated with.
* @property null|bool $default_for_currency Whether this bank account is the default external account for its currency.
* @property null|string $fingerprint Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
- * @property null|\Stripe\StripeObject $future_requirements Information about upcoming new requirements for the bank account, including what information needs to be collected.
+ * @property null|\Stripe\StripeObject $future_requirements Information about the upcoming new requirements for the bank account, including what information needs to be collected, and by when.
* @property string $last4 The last four digits of the bank account number.
* @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* @property null|\Stripe\StripeObject $requirements Information about the requirements for the bank account, including what information needs to be collected.
diff --git a/lib/Person.php b/lib/Person.php
index 708e35880..b3e0208c8 100644
--- a/lib/Person.php
+++ b/lib/Person.php
@@ -25,7 +25,7 @@
* @property null|string $first_name_kana The Kana variation of the person's first name (Japan only).
* @property null|string $first_name_kanji The Kanji variation of the person's first name (Japan only).
* @property null|string[] $full_name_aliases A list of alternate names or aliases that the person is known by.
- * @property null|\Stripe\StripeObject $future_requirements Information about the upcoming new requirements for this person, including what information needs to be collected, and by when.
+ * @property null|\Stripe\StripeObject $future_requirements Information about the upcoming new requirements for this person, including what information needs to be collected, and by when.
* @property null|string $gender The person's gender (International regulations require either "male" or "female").
* @property null|bool $id_number_provided Whether the person's id_number
was provided.
* @property null|bool $id_number_secondary_provided Whether the person's id_number_secondary
was provided.
From 6a7353c9881a424e739588dba1a7313f33ca52c0 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 28 Aug 2023 16:51:10 +0000
Subject: [PATCH 3/8] Update generated code for v489
---
OPENAPI_VERSION | 2 +-
lib/BalanceTransaction.php | 8 +-
lib/Event.php | 196 +++++++++++++++++++++++++++++++++++++
lib/Invoice.php | 2 +-
4 files changed, 205 insertions(+), 3 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index b3908a1f5..299f676bc 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v486
\ No newline at end of file
+v489
\ No newline at end of file
diff --git a/lib/BalanceTransaction.php b/lib/BalanceTransaction.php
index 23e4fc32d..6115899e5 100644
--- a/lib/BalanceTransaction.php
+++ b/lib/BalanceTransaction.php
@@ -24,7 +24,7 @@
* @property string $reporting_category Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.
* @property null|string|\Stripe\StripeObject $source The Stripe object to which this transaction is related.
* @property string $status If the transaction's net funds are available in the Stripe balance yet. Either available
or pending
.
- * @property string $type Transaction type: adjustment
, advance
, advance_funding
, anticipation_repayment
, application_fee
, application_fee_refund
, charge
, connect_collection_transfer
, contribution
, issuing_authorization_hold
, issuing_authorization_release
, issuing_dispute
, issuing_transaction
, payment
, payment_failure_refund
, payment_refund
, payment_reversal
, payout
, payout_cancel
, payout_failure
, refund
, refund_failure
, reserve_transaction
, reserved_funds
, stripe_fee
, stripe_fx_fee
, tax_fee
, topup
, topup_reversal
, transfer
, transfer_cancel
, transfer_failure
, or transfer_refund
. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider reporting_category
instead.
+ * @property string $type Transaction type: adjustment
, advance
, advance_funding
, anticipation_repayment
, application_fee
, application_fee_refund
, charge
, connect_collection_transfer
, contribution
, issuing_authorization_hold
, issuing_authorization_release
, issuing_dispute
, issuing_transaction
, obligation_inbound
, obligation_outbound
, obligation_reversal_inbound
, obligation_reversal_outbound
, obligation_payout
, obligation_payout_failure
, payment
, payment_failure_refund
, payment_refund
, payment_reversal
, payout
, payout_cancel
, payout_failure
, refund
, refund_failure
, reserve_transaction
, reserved_funds
, stripe_fee
, stripe_fx_fee
, tax_fee
, topup
, topup_reversal
, transfer
, transfer_cancel
, transfer_failure
, or transfer_refund
. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider reporting_category
instead.
*/
class BalanceTransaction extends ApiResource
{
@@ -46,6 +46,12 @@ class BalanceTransaction extends ApiResource
const TYPE_ISSUING_AUTHORIZATION_RELEASE = 'issuing_authorization_release';
const TYPE_ISSUING_DISPUTE = 'issuing_dispute';
const TYPE_ISSUING_TRANSACTION = 'issuing_transaction';
+ const TYPE_OBLIGATION_INBOUND = 'obligation_inbound';
+ const TYPE_OBLIGATION_OUTBOUND = 'obligation_outbound';
+ const TYPE_OBLIGATION_PAYOUT = 'obligation_payout';
+ const TYPE_OBLIGATION_PAYOUT_FAILURE = 'obligation_payout_failure';
+ const TYPE_OBLIGATION_REVERSAL_INBOUND = 'obligation_reversal_inbound';
+ const TYPE_OBLIGATION_REVERSAL_OUTBOUND = 'obligation_reversal_outbound';
const TYPE_PAYMENT = 'payment';
const TYPE_PAYMENT_FAILURE_REFUND = 'payment_failure_refund';
const TYPE_PAYMENT_REFUND = 'payment_refund';
diff --git a/lib/Event.php b/lib/Event.php
index bbaa96ac6..76e93870b 100644
--- a/lib/Event.php
+++ b/lib/Event.php
@@ -279,4 +279,200 @@ class Event extends ApiResource
const TREASURY_RECEIVED_CREDIT_FAILED = 'treasury.received_credit.failed';
const TREASURY_RECEIVED_CREDIT_SUCCEEDED = 'treasury.received_credit.succeeded';
const TREASURY_RECEIVED_DEBIT_CREATED = 'treasury.received_debit.created';
+
+ const TYPE_ACCOUNT_APPLICATION_AUTHORIZED = 'account.application.authorized';
+ const TYPE_ACCOUNT_APPLICATION_DEAUTHORIZED = 'account.application.deauthorized';
+ const TYPE_ACCOUNT_EXTERNAL_ACCOUNT_CREATED = 'account.external_account.created';
+ const TYPE_ACCOUNT_EXTERNAL_ACCOUNT_DELETED = 'account.external_account.deleted';
+ const TYPE_ACCOUNT_EXTERNAL_ACCOUNT_UPDATED = 'account.external_account.updated';
+ const TYPE_ACCOUNT_UPDATED = 'account.updated';
+ const TYPE_APPLICATION_FEE_CREATED = 'application_fee.created';
+ const TYPE_APPLICATION_FEE_REFUNDED = 'application_fee.refunded';
+ const TYPE_APPLICATION_FEE_REFUND_UPDATED = 'application_fee.refund.updated';
+ const TYPE_BALANCE_AVAILABLE = 'balance.available';
+ const TYPE_BILLING_PORTAL_CONFIGURATION_CREATED = 'billing_portal.configuration.created';
+ const TYPE_BILLING_PORTAL_CONFIGURATION_UPDATED = 'billing_portal.configuration.updated';
+ const TYPE_BILLING_PORTAL_SESSION_CREATED = 'billing_portal.session.created';
+ const TYPE_CAPABILITY_UPDATED = 'capability.updated';
+ const TYPE_CASH_BALANCE_FUNDS_AVAILABLE = 'cash_balance.funds_available';
+ const TYPE_CHARGE_CAPTURED = 'charge.captured';
+ const TYPE_CHARGE_DISPUTE_CLOSED = 'charge.dispute.closed';
+ const TYPE_CHARGE_DISPUTE_CREATED = 'charge.dispute.created';
+ const TYPE_CHARGE_DISPUTE_FUNDS_REINSTATED = 'charge.dispute.funds_reinstated';
+ const TYPE_CHARGE_DISPUTE_FUNDS_WITHDRAWN = 'charge.dispute.funds_withdrawn';
+ const TYPE_CHARGE_DISPUTE_UPDATED = 'charge.dispute.updated';
+ const TYPE_CHARGE_EXPIRED = 'charge.expired';
+ const TYPE_CHARGE_FAILED = 'charge.failed';
+ const TYPE_CHARGE_PENDING = 'charge.pending';
+ const TYPE_CHARGE_REFUNDED = 'charge.refunded';
+ const TYPE_CHARGE_REFUND_UPDATED = 'charge.refund.updated';
+ const TYPE_CHARGE_SUCCEEDED = 'charge.succeeded';
+ const TYPE_CHARGE_UPDATED = 'charge.updated';
+ const TYPE_CHECKOUT_SESSION_ASYNC_PAYMENT_FAILED = 'checkout.session.async_payment_failed';
+ const TYPE_CHECKOUT_SESSION_ASYNC_PAYMENT_SUCCEEDED = 'checkout.session.async_payment_succeeded';
+ const TYPE_CHECKOUT_SESSION_COMPLETED = 'checkout.session.completed';
+ const TYPE_CHECKOUT_SESSION_EXPIRED = 'checkout.session.expired';
+ const TYPE_COUPON_CREATED = 'coupon.created';
+ const TYPE_COUPON_DELETED = 'coupon.deleted';
+ const TYPE_COUPON_UPDATED = 'coupon.updated';
+ const TYPE_CREDIT_NOTE_CREATED = 'credit_note.created';
+ const TYPE_CREDIT_NOTE_UPDATED = 'credit_note.updated';
+ const TYPE_CREDIT_NOTE_VOIDED = 'credit_note.voided';
+ const TYPE_CUSTOMER_CASH_BALANCE_TRANSACTION_CREATED = 'customer_cash_balance_transaction.created';
+ const TYPE_CUSTOMER_CREATED = 'customer.created';
+ const TYPE_CUSTOMER_DELETED = 'customer.deleted';
+ const TYPE_CUSTOMER_DISCOUNT_CREATED = 'customer.discount.created';
+ const TYPE_CUSTOMER_DISCOUNT_DELETED = 'customer.discount.deleted';
+ const TYPE_CUSTOMER_DISCOUNT_UPDATED = 'customer.discount.updated';
+ const TYPE_CUSTOMER_SOURCE_CREATED = 'customer.source.created';
+ const TYPE_CUSTOMER_SOURCE_DELETED = 'customer.source.deleted';
+ const TYPE_CUSTOMER_SOURCE_EXPIRING = 'customer.source.expiring';
+ const TYPE_CUSTOMER_SOURCE_UPDATED = 'customer.source.updated';
+ const TYPE_CUSTOMER_SUBSCRIPTION_CREATED = 'customer.subscription.created';
+ const TYPE_CUSTOMER_SUBSCRIPTION_DELETED = 'customer.subscription.deleted';
+ const TYPE_CUSTOMER_SUBSCRIPTION_PAUSED = 'customer.subscription.paused';
+ const TYPE_CUSTOMER_SUBSCRIPTION_PENDING_UPDATE_APPLIED = 'customer.subscription.pending_update_applied';
+ const TYPE_CUSTOMER_SUBSCRIPTION_PENDING_UPDATE_EXPIRED = 'customer.subscription.pending_update_expired';
+ const TYPE_CUSTOMER_SUBSCRIPTION_RESUMED = 'customer.subscription.resumed';
+ const TYPE_CUSTOMER_SUBSCRIPTION_TRIAL_WILL_END = 'customer.subscription.trial_will_end';
+ const TYPE_CUSTOMER_SUBSCRIPTION_UPDATED = 'customer.subscription.updated';
+ const TYPE_CUSTOMER_TAX_ID_CREATED = 'customer.tax_id.created';
+ const TYPE_CUSTOMER_TAX_ID_DELETED = 'customer.tax_id.deleted';
+ const TYPE_CUSTOMER_TAX_ID_UPDATED = 'customer.tax_id.updated';
+ const TYPE_CUSTOMER_UPDATED = 'customer.updated';
+ const TYPE_FILE_CREATED = 'file.created';
+ const TYPE_FINANCIAL_CONNECTIONS_ACCOUNT_CREATED = 'financial_connections.account.created';
+ const TYPE_FINANCIAL_CONNECTIONS_ACCOUNT_DEACTIVATED = 'financial_connections.account.deactivated';
+ const TYPE_FINANCIAL_CONNECTIONS_ACCOUNT_DISCONNECTED = 'financial_connections.account.disconnected';
+ const TYPE_FINANCIAL_CONNECTIONS_ACCOUNT_REACTIVATED = 'financial_connections.account.reactivated';
+ const TYPE_FINANCIAL_CONNECTIONS_ACCOUNT_REFRESHED_BALANCE = 'financial_connections.account.refreshed_balance';
+ const TYPE_IDENTITY_VERIFICATION_SESSION_CANCELED = 'identity.verification_session.canceled';
+ const TYPE_IDENTITY_VERIFICATION_SESSION_CREATED = 'identity.verification_session.created';
+ const TYPE_IDENTITY_VERIFICATION_SESSION_PROCESSING = 'identity.verification_session.processing';
+ const TYPE_IDENTITY_VERIFICATION_SESSION_REDACTED = 'identity.verification_session.redacted';
+ const TYPE_IDENTITY_VERIFICATION_SESSION_REQUIRES_INPUT = 'identity.verification_session.requires_input';
+ const TYPE_IDENTITY_VERIFICATION_SESSION_VERIFIED = 'identity.verification_session.verified';
+ const TYPE_INVOICEITEM_CREATED = 'invoiceitem.created';
+ const TYPE_INVOICEITEM_DELETED = 'invoiceitem.deleted';
+ const TYPE_INVOICEITEM_UPDATED = 'invoiceitem.updated';
+ const TYPE_INVOICE_CREATED = 'invoice.created';
+ const TYPE_INVOICE_DELETED = 'invoice.deleted';
+ const TYPE_INVOICE_FINALIZATION_FAILED = 'invoice.finalization_failed';
+ const TYPE_INVOICE_FINALIZED = 'invoice.finalized';
+ const TYPE_INVOICE_MARKED_UNCOLLECTIBLE = 'invoice.marked_uncollectible';
+ const TYPE_INVOICE_PAID = 'invoice.paid';
+ const TYPE_INVOICE_PAYMENT_ACTION_REQUIRED = 'invoice.payment_action_required';
+ const TYPE_INVOICE_PAYMENT_FAILED = 'invoice.payment_failed';
+ const TYPE_INVOICE_PAYMENT_SUCCEEDED = 'invoice.payment_succeeded';
+ const TYPE_INVOICE_SENT = 'invoice.sent';
+ const TYPE_INVOICE_UPCOMING = 'invoice.upcoming';
+ const TYPE_INVOICE_UPDATED = 'invoice.updated';
+ const TYPE_INVOICE_VOIDED = 'invoice.voided';
+ const TYPE_ISSUING_AUTHORIZATION_CREATED = 'issuing_authorization.created';
+ const TYPE_ISSUING_AUTHORIZATION_REQUEST = 'issuing_authorization.request';
+ const TYPE_ISSUING_AUTHORIZATION_UPDATED = 'issuing_authorization.updated';
+ const TYPE_ISSUING_CARDHOLDER_CREATED = 'issuing_cardholder.created';
+ const TYPE_ISSUING_CARDHOLDER_UPDATED = 'issuing_cardholder.updated';
+ const TYPE_ISSUING_CARD_CREATED = 'issuing_card.created';
+ const TYPE_ISSUING_CARD_UPDATED = 'issuing_card.updated';
+ const TYPE_ISSUING_DISPUTE_CLOSED = 'issuing_dispute.closed';
+ const TYPE_ISSUING_DISPUTE_CREATED = 'issuing_dispute.created';
+ const TYPE_ISSUING_DISPUTE_FUNDS_REINSTATED = 'issuing_dispute.funds_reinstated';
+ const TYPE_ISSUING_DISPUTE_SUBMITTED = 'issuing_dispute.submitted';
+ const TYPE_ISSUING_DISPUTE_UPDATED = 'issuing_dispute.updated';
+ const TYPE_ISSUING_TRANSACTION_CREATED = 'issuing_transaction.created';
+ const TYPE_ISSUING_TRANSACTION_UPDATED = 'issuing_transaction.updated';
+ const TYPE_MANDATE_UPDATED = 'mandate.updated';
+ const TYPE_ORDER_CREATED = 'order.created';
+ const TYPE_PAYMENT_INTENT_AMOUNT_CAPTURABLE_UPDATED = 'payment_intent.amount_capturable_updated';
+ const TYPE_PAYMENT_INTENT_CANCELED = 'payment_intent.canceled';
+ const TYPE_PAYMENT_INTENT_CREATED = 'payment_intent.created';
+ const TYPE_PAYMENT_INTENT_PARTIALLY_FUNDED = 'payment_intent.partially_funded';
+ const TYPE_PAYMENT_INTENT_PAYMENT_FAILED = 'payment_intent.payment_failed';
+ const TYPE_PAYMENT_INTENT_PROCESSING = 'payment_intent.processing';
+ const TYPE_PAYMENT_INTENT_REQUIRES_ACTION = 'payment_intent.requires_action';
+ const TYPE_PAYMENT_INTENT_SUCCEEDED = 'payment_intent.succeeded';
+ const TYPE_PAYMENT_LINK_CREATED = 'payment_link.created';
+ const TYPE_PAYMENT_LINK_UPDATED = 'payment_link.updated';
+ const TYPE_PAYMENT_METHOD_ATTACHED = 'payment_method.attached';
+ const TYPE_PAYMENT_METHOD_AUTOMATICALLY_UPDATED = 'payment_method.automatically_updated';
+ const TYPE_PAYMENT_METHOD_DETACHED = 'payment_method.detached';
+ const TYPE_PAYMENT_METHOD_UPDATED = 'payment_method.updated';
+ const TYPE_PAYOUT_CANCELED = 'payout.canceled';
+ const TYPE_PAYOUT_CREATED = 'payout.created';
+ const TYPE_PAYOUT_FAILED = 'payout.failed';
+ const TYPE_PAYOUT_PAID = 'payout.paid';
+ const TYPE_PAYOUT_RECONCILIATION_COMPLETED = 'payout.reconciliation_completed';
+ const TYPE_PAYOUT_UPDATED = 'payout.updated';
+ const TYPE_PERSON_CREATED = 'person.created';
+ const TYPE_PERSON_DELETED = 'person.deleted';
+ const TYPE_PERSON_UPDATED = 'person.updated';
+ const TYPE_PLAN_CREATED = 'plan.created';
+ const TYPE_PLAN_DELETED = 'plan.deleted';
+ const TYPE_PLAN_UPDATED = 'plan.updated';
+ const TYPE_PRICE_CREATED = 'price.created';
+ const TYPE_PRICE_DELETED = 'price.deleted';
+ const TYPE_PRICE_UPDATED = 'price.updated';
+ const TYPE_PRODUCT_CREATED = 'product.created';
+ const TYPE_PRODUCT_DELETED = 'product.deleted';
+ const TYPE_PRODUCT_UPDATED = 'product.updated';
+ const TYPE_PROMOTION_CODE_CREATED = 'promotion_code.created';
+ const TYPE_PROMOTION_CODE_UPDATED = 'promotion_code.updated';
+ const TYPE_QUOTE_ACCEPTED = 'quote.accepted';
+ const TYPE_QUOTE_CANCELED = 'quote.canceled';
+ const TYPE_QUOTE_CREATED = 'quote.created';
+ const TYPE_QUOTE_FINALIZED = 'quote.finalized';
+ const TYPE_RADAR_EARLY_FRAUD_WARNING_CREATED = 'radar.early_fraud_warning.created';
+ const TYPE_RADAR_EARLY_FRAUD_WARNING_UPDATED = 'radar.early_fraud_warning.updated';
+ const TYPE_RECIPIENT_CREATED = 'recipient.created';
+ const TYPE_RECIPIENT_DELETED = 'recipient.deleted';
+ const TYPE_RECIPIENT_UPDATED = 'recipient.updated';
+ const TYPE_REFUND_CREATED = 'refund.created';
+ const TYPE_REFUND_UPDATED = 'refund.updated';
+ const TYPE_REPORTING_REPORT_RUN_FAILED = 'reporting.report_run.failed';
+ const TYPE_REPORTING_REPORT_RUN_SUCCEEDED = 'reporting.report_run.succeeded';
+ const TYPE_REPORTING_REPORT_TYPE_UPDATED = 'reporting.report_type.updated';
+ const TYPE_REVIEW_CLOSED = 'review.closed';
+ const TYPE_REVIEW_OPENED = 'review.opened';
+ const TYPE_SETUP_INTENT_CANCELED = 'setup_intent.canceled';
+ const TYPE_SETUP_INTENT_CREATED = 'setup_intent.created';
+ const TYPE_SETUP_INTENT_REQUIRES_ACTION = 'setup_intent.requires_action';
+ const TYPE_SETUP_INTENT_SETUP_FAILED = 'setup_intent.setup_failed';
+ const TYPE_SETUP_INTENT_SUCCEEDED = 'setup_intent.succeeded';
+ const TYPE_SIGMA_SCHEDULED_QUERY_RUN_CREATED = 'sigma.scheduled_query_run.created';
+ const TYPE_SKU_CREATED = 'sku.created';
+ const TYPE_SKU_DELETED = 'sku.deleted';
+ const TYPE_SKU_UPDATED = 'sku.updated';
+ const TYPE_SOURCE_CANCELED = 'source.canceled';
+ const TYPE_SOURCE_CHARGEABLE = 'source.chargeable';
+ const TYPE_SOURCE_FAILED = 'source.failed';
+ const TYPE_SOURCE_MANDATE_NOTIFICATION = 'source.mandate_notification';
+ const TYPE_SOURCE_REFUND_ATTRIBUTES_REQUIRED = 'source.refund_attributes_required';
+ const TYPE_SOURCE_TRANSACTION_CREATED = 'source.transaction.created';
+ const TYPE_SOURCE_TRANSACTION_UPDATED = 'source.transaction.updated';
+ const TYPE_SUBSCRIPTION_SCHEDULE_ABORTED = 'subscription_schedule.aborted';
+ const TYPE_SUBSCRIPTION_SCHEDULE_CANCELED = 'subscription_schedule.canceled';
+ const TYPE_SUBSCRIPTION_SCHEDULE_COMPLETED = 'subscription_schedule.completed';
+ const TYPE_SUBSCRIPTION_SCHEDULE_CREATED = 'subscription_schedule.created';
+ const TYPE_SUBSCRIPTION_SCHEDULE_EXPIRING = 'subscription_schedule.expiring';
+ const TYPE_SUBSCRIPTION_SCHEDULE_RELEASED = 'subscription_schedule.released';
+ const TYPE_SUBSCRIPTION_SCHEDULE_UPDATED = 'subscription_schedule.updated';
+ const TYPE_TAX_RATE_CREATED = 'tax_rate.created';
+ const TYPE_TAX_RATE_UPDATED = 'tax_rate.updated';
+ const TYPE_TAX_SETTINGS_UPDATED = 'tax.settings.updated';
+ const TYPE_TERMINAL_READER_ACTION_FAILED = 'terminal.reader.action_failed';
+ const TYPE_TERMINAL_READER_ACTION_SUCCEEDED = 'terminal.reader.action_succeeded';
+ const TYPE_TEST_HELPERS_TEST_CLOCK_ADVANCING = 'test_helpers.test_clock.advancing';
+ const TYPE_TEST_HELPERS_TEST_CLOCK_CREATED = 'test_helpers.test_clock.created';
+ const TYPE_TEST_HELPERS_TEST_CLOCK_DELETED = 'test_helpers.test_clock.deleted';
+ const TYPE_TEST_HELPERS_TEST_CLOCK_INTERNAL_FAILURE = 'test_helpers.test_clock.internal_failure';
+ const TYPE_TEST_HELPERS_TEST_CLOCK_READY = 'test_helpers.test_clock.ready';
+ const TYPE_TOPUP_CANCELED = 'topup.canceled';
+ const TYPE_TOPUP_CREATED = 'topup.created';
+ const TYPE_TOPUP_FAILED = 'topup.failed';
+ const TYPE_TOPUP_REVERSED = 'topup.reversed';
+ const TYPE_TOPUP_SUCCEEDED = 'topup.succeeded';
+ const TYPE_TRANSFER_CREATED = 'transfer.created';
+ const TYPE_TRANSFER_REVERSED = 'transfer.reversed';
+ const TYPE_TRANSFER_UPDATED = 'transfer.updated';
}
diff --git a/lib/Invoice.php b/lib/Invoice.php
index 1b77457c9..9f87f479c 100644
--- a/lib/Invoice.php
+++ b/lib/Invoice.php
@@ -53,7 +53,7 @@
* @property bool $attempted Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the invoice.created
webhook, for example, so you might not want to display that invoice as unpaid to your users.
* @property null|bool $auto_advance Controls whether Stripe performs automatic collection of the invoice. If false
, the invoice's state doesn't automatically advance without an explicit action.
* @property \Stripe\StripeObject $automatic_tax
- * @property null|string $billing_reason Indicates the reason why the invoice was created. subscription_cycle
indicates an invoice created by a subscription advancing into a new period. subscription_create
indicates an invoice created due to creating a subscription. subscription_update
indicates an invoice created due to updating a subscription. subscription
is set for all old invoices to indicate either a change to a subscription or a period advancement. manual
is set for all invoices unrelated to a subscription (for example: created via the invoice editor). The upcoming
value is reserved for simulated invoices per the upcoming invoice endpoint. subscription_threshold
indicates an invoice created due to a billing threshold being reached.
+ * @property null|string $billing_reason
Indicates the reason why the invoice was created.
* manual
: Unrelated to a subscription, for example, created via the invoice editor. * subscription
: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds. * subscription_create
: A new subscription was created. * subscription_cycle
: A subscription advanced into a new period. * subscription_threshold
: A subscription reached a billing threshold. * subscription_update
: A subscription was updated. * upcoming
: Reserved for simulated invoices, per the upcoming invoice endpoint.
charge_automatically
, or send_invoice
. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
From 5ab375e2f7695181aee0b0ee8f23ddcf60b4082f Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 28 Aug 2023 21:11:10 +0000
Subject: [PATCH 4/8] Update generated code for v490
---
OPENAPI_VERSION | 2 +-
lib/PaymentLink.php | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 299f676bc..2d0196a3c 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v489
\ No newline at end of file
+v490
\ No newline at end of file
diff --git a/lib/PaymentLink.php b/lib/PaymentLink.php
index e1f9111b7..9064dfccc 100644
--- a/lib/PaymentLink.php
+++ b/lib/PaymentLink.php
@@ -16,6 +16,7 @@
* @property bool $active Whether the payment link's url
is active. If false
, customers visiting the URL will be shown a page saying that the link has been deactivated.
* @property \Stripe\StripeObject $after_completion
* @property bool $allow_promotion_codes Whether user redeemable promotion codes are enabled.
+ * @property null|string|\Stripe\StripeObject $application The ID of the Connect application that created the Payment Link.
* @property null|int $application_fee_amount The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.
* @property null|float $application_fee_percent This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account.
* @property \Stripe\StripeObject $automatic_tax
From 22aac0412f2560a09b58ab083f44bd222ea267a5 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Tue, 29 Aug 2023 16:58:49 +0000
Subject: [PATCH 5/8] Update generated code for v491
---
OPENAPI_VERSION | 2 +-
lib/BalanceTransaction.php | 8 +-------
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 2d0196a3c..60c421889 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v490
\ No newline at end of file
+v491
\ No newline at end of file
diff --git a/lib/BalanceTransaction.php b/lib/BalanceTransaction.php
index 6115899e5..23e4fc32d 100644
--- a/lib/BalanceTransaction.php
+++ b/lib/BalanceTransaction.php
@@ -24,7 +24,7 @@
* @property string $reporting_category Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.
* @property null|string|\Stripe\StripeObject $source The Stripe object to which this transaction is related.
* @property string $status If the transaction's net funds are available in the Stripe balance yet. Either available
or pending
.
- * @property string $type Transaction type: adjustment
, advance
, advance_funding
, anticipation_repayment
, application_fee
, application_fee_refund
, charge
, connect_collection_transfer
, contribution
, issuing_authorization_hold
, issuing_authorization_release
, issuing_dispute
, issuing_transaction
, obligation_inbound
, obligation_outbound
, obligation_reversal_inbound
, obligation_reversal_outbound
, obligation_payout
, obligation_payout_failure
, payment
, payment_failure_refund
, payment_refund
, payment_reversal
, payout
, payout_cancel
, payout_failure
, refund
, refund_failure
, reserve_transaction
, reserved_funds
, stripe_fee
, stripe_fx_fee
, tax_fee
, topup
, topup_reversal
, transfer
, transfer_cancel
, transfer_failure
, or transfer_refund
. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider reporting_category
instead.
+ * @property string $type Transaction type: adjustment
, advance
, advance_funding
, anticipation_repayment
, application_fee
, application_fee_refund
, charge
, connect_collection_transfer
, contribution
, issuing_authorization_hold
, issuing_authorization_release
, issuing_dispute
, issuing_transaction
, payment
, payment_failure_refund
, payment_refund
, payment_reversal
, payout
, payout_cancel
, payout_failure
, refund
, refund_failure
, reserve_transaction
, reserved_funds
, stripe_fee
, stripe_fx_fee
, tax_fee
, topup
, topup_reversal
, transfer
, transfer_cancel
, transfer_failure
, or transfer_refund
. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider reporting_category
instead.
*/
class BalanceTransaction extends ApiResource
{
@@ -46,12 +46,6 @@ class BalanceTransaction extends ApiResource
const TYPE_ISSUING_AUTHORIZATION_RELEASE = 'issuing_authorization_release';
const TYPE_ISSUING_DISPUTE = 'issuing_dispute';
const TYPE_ISSUING_TRANSACTION = 'issuing_transaction';
- const TYPE_OBLIGATION_INBOUND = 'obligation_inbound';
- const TYPE_OBLIGATION_OUTBOUND = 'obligation_outbound';
- const TYPE_OBLIGATION_PAYOUT = 'obligation_payout';
- const TYPE_OBLIGATION_PAYOUT_FAILURE = 'obligation_payout_failure';
- const TYPE_OBLIGATION_REVERSAL_INBOUND = 'obligation_reversal_inbound';
- const TYPE_OBLIGATION_REVERSAL_OUTBOUND = 'obligation_reversal_outbound';
const TYPE_PAYMENT = 'payment';
const TYPE_PAYMENT_FAILURE_REFUND = 'payment_failure_refund';
const TYPE_PAYMENT_REFUND = 'payment_refund';
From 594ca29c420a2b07f9099b1bf75b27997afff387 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 30 Aug 2023 14:13:42 +0000
Subject: [PATCH 6/8] Update generated code for v493
---
OPENAPI_VERSION | 2 +-
lib/BalanceTransaction.php | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 60c421889..952cbcc95 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v491
\ No newline at end of file
+v493
\ No newline at end of file
diff --git a/lib/BalanceTransaction.php b/lib/BalanceTransaction.php
index 23e4fc32d..6115899e5 100644
--- a/lib/BalanceTransaction.php
+++ b/lib/BalanceTransaction.php
@@ -24,7 +24,7 @@
* @property string $reporting_category Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.
* @property null|string|\Stripe\StripeObject $source The Stripe object to which this transaction is related.
* @property string $status If the transaction's net funds are available in the Stripe balance yet. Either available
or pending
.
- * @property string $type Transaction type: adjustment
, advance
, advance_funding
, anticipation_repayment
, application_fee
, application_fee_refund
, charge
, connect_collection_transfer
, contribution
, issuing_authorization_hold
, issuing_authorization_release
, issuing_dispute
, issuing_transaction
, payment
, payment_failure_refund
, payment_refund
, payment_reversal
, payout
, payout_cancel
, payout_failure
, refund
, refund_failure
, reserve_transaction
, reserved_funds
, stripe_fee
, stripe_fx_fee
, tax_fee
, topup
, topup_reversal
, transfer
, transfer_cancel
, transfer_failure
, or transfer_refund
. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider reporting_category
instead.
+ * @property string $type Transaction type: adjustment
, advance
, advance_funding
, anticipation_repayment
, application_fee
, application_fee_refund
, charge
, connect_collection_transfer
, contribution
, issuing_authorization_hold
, issuing_authorization_release
, issuing_dispute
, issuing_transaction
, obligation_inbound
, obligation_outbound
, obligation_reversal_inbound
, obligation_reversal_outbound
, obligation_payout
, obligation_payout_failure
, payment
, payment_failure_refund
, payment_refund
, payment_reversal
, payout
, payout_cancel
, payout_failure
, refund
, refund_failure
, reserve_transaction
, reserved_funds
, stripe_fee
, stripe_fx_fee
, tax_fee
, topup
, topup_reversal
, transfer
, transfer_cancel
, transfer_failure
, or transfer_refund
. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider reporting_category
instead.
*/
class BalanceTransaction extends ApiResource
{
@@ -46,6 +46,12 @@ class BalanceTransaction extends ApiResource
const TYPE_ISSUING_AUTHORIZATION_RELEASE = 'issuing_authorization_release';
const TYPE_ISSUING_DISPUTE = 'issuing_dispute';
const TYPE_ISSUING_TRANSACTION = 'issuing_transaction';
+ const TYPE_OBLIGATION_INBOUND = 'obligation_inbound';
+ const TYPE_OBLIGATION_OUTBOUND = 'obligation_outbound';
+ const TYPE_OBLIGATION_PAYOUT = 'obligation_payout';
+ const TYPE_OBLIGATION_PAYOUT_FAILURE = 'obligation_payout_failure';
+ const TYPE_OBLIGATION_REVERSAL_INBOUND = 'obligation_reversal_inbound';
+ const TYPE_OBLIGATION_REVERSAL_OUTBOUND = 'obligation_reversal_outbound';
const TYPE_PAYMENT = 'payment';
const TYPE_PAYMENT_FAILURE_REFUND = 'payment_failure_refund';
const TYPE_PAYMENT_REFUND = 'payment_refund';
From 79ed8cc726797aa43980c18e1e5d0300201153e3 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 30 Aug 2023 21:01:02 +0000
Subject: [PATCH 7/8] Update generated code for v495
---
OPENAPI_VERSION | 2 +-
init.php | 2 ++
lib/AccountSession.php | 28 +++++++++++++++++++++++++++
lib/Service/AccountSessionService.php | 24 +++++++++++++++++++++++
lib/Service/CoreServiceFactory.php | 2 ++
lib/StripeClient.php | 1 +
lib/Util/ObjectTypes.php | 1 +
7 files changed, 59 insertions(+), 1 deletion(-)
create mode 100644 lib/AccountSession.php
create mode 100644 lib/Service/AccountSessionService.php
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 952cbcc95..fabb112f2 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v493
\ No newline at end of file
+v495
\ No newline at end of file
diff --git a/init.php b/init.php
index d29224803..377928f56 100644
--- a/init.php
+++ b/init.php
@@ -79,6 +79,7 @@
require __DIR__ . '/lib/Account.php';
require __DIR__ . '/lib/AccountLink.php';
+require __DIR__ . '/lib/AccountSession.php';
require __DIR__ . '/lib/ApplePayDomain.php';
require __DIR__ . '/lib/ApplicationFee.php';
require __DIR__ . '/lib/ApplicationFeeRefund.php';
@@ -148,6 +149,7 @@
require __DIR__ . '/lib/SearchResult.php';
require __DIR__ . '/lib/Service/AccountLinkService.php';
require __DIR__ . '/lib/Service/AccountService.php';
+require __DIR__ . '/lib/Service/AccountSessionService.php';
require __DIR__ . '/lib/Service/ApplePayDomainService.php';
require __DIR__ . '/lib/Service/ApplicationFeeService.php';
require __DIR__ . '/lib/Service/Apps/AppsServiceFactory.php';
diff --git a/lib/AccountSession.php b/lib/AccountSession.php
new file mode 100644
index 000000000..a5c1fb2ef
--- /dev/null
+++ b/lib/AccountSession.php
@@ -0,0 +1,28 @@
+Connect embedded components
+ *
+ * @property string $object String representing the object's type. Objects of the same type share the same value.
+ * @property string $account The ID of the account the AccountSession was created for
+ * @property string $client_secret The client secret of this AccountSession. Used on the client to set up secure access to the given account
.
The client secret can be used to provide access to account
from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.
Refer to our docs to setup Connect embedded components and learn about how client_secret
should be handled.
true
if the object exists in live mode or the value false
if the object exists in test mode.
+ */
+class AccountSession extends ApiResource
+{
+ const OBJECT_NAME = 'account_session';
+
+ use ApiOperations\Create;
+}
diff --git a/lib/Service/AccountSessionService.php b/lib/Service/AccountSessionService.php
new file mode 100644
index 000000000..e7d8a1f9f
--- /dev/null
+++ b/lib/Service/AccountSessionService.php
@@ -0,0 +1,24 @@
+request('post', '/v1/account_sessions', $params, $opts);
+ }
+}
diff --git a/lib/Service/CoreServiceFactory.php b/lib/Service/CoreServiceFactory.php
index 5bd3f3c69..c97759c2e 100644
--- a/lib/Service/CoreServiceFactory.php
+++ b/lib/Service/CoreServiceFactory.php
@@ -9,6 +9,7 @@
*
* @property AccountLinkService $accountLinks
* @property AccountService $accounts
+ * @property AccountSessionService $accountSessions
* @property ApplePayDomainService $applePayDomains
* @property ApplicationFeeService $applicationFees
* @property Apps\AppsServiceFactory $apps
@@ -74,6 +75,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
private static $classMap = [
'accountLinks' => AccountLinkService::class,
'accounts' => AccountService::class,
+ 'accountSessions' => AccountSessionService::class,
'applePayDomains' => ApplePayDomainService::class,
'applicationFees' => ApplicationFeeService::class,
'apps' => Apps\AppsServiceFactory::class,
diff --git a/lib/StripeClient.php b/lib/StripeClient.php
index 645ff5f0b..d5e1e3c2f 100644
--- a/lib/StripeClient.php
+++ b/lib/StripeClient.php
@@ -8,6 +8,7 @@
* Client used to send requests to Stripe's API.
*
* @property \Stripe\Service\AccountLinkService $accountLinks
+ * @property \Stripe\Service\AccountSessionService $accountSessions
* @property \Stripe\Service\AccountService $accounts
* @property \Stripe\Service\ApplePayDomainService $applePayDomains
* @property \Stripe\Service\ApplicationFeeService $applicationFees
diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php
index 60538f08c..16e38aea0 100644
--- a/lib/Util/ObjectTypes.php
+++ b/lib/Util/ObjectTypes.php
@@ -12,6 +12,7 @@ class ObjectTypes
const mapping = [
\Stripe\Account::OBJECT_NAME => \Stripe\Account::class,
\Stripe\AccountLink::OBJECT_NAME => \Stripe\AccountLink::class,
+ \Stripe\AccountSession::OBJECT_NAME => \Stripe\AccountSession::class,
\Stripe\ApplePayDomain::OBJECT_NAME => \Stripe\ApplePayDomain::class,
\Stripe\ApplicationFee::OBJECT_NAME => \Stripe\ApplicationFee::class,
\Stripe\ApplicationFeeRefund::OBJECT_NAME => \Stripe\ApplicationFeeRefund::class,
From 8582ca3a3659c37d71ec83484167059908bd98fa Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 31 Aug 2023 20:02:45 +0000
Subject: [PATCH 8/8] Update generated code for v499
---
OPENAPI_VERSION | 2 +-
lib/Service/AccountService.php | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index fabb112f2..04aaf95dc 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v495
\ No newline at end of file
+v499
\ No newline at end of file
diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php
index 6ab79a7e0..d2c5fe454 100644
--- a/lib/Service/AccountService.php
+++ b/lib/Service/AccountService.php
@@ -314,7 +314,8 @@ public function update($id, $params = null, $opts = null)
}
/**
- * Updates an existing Account Capability.
+ * Updates an existing Account Capability. Request or remove a capability by
+ * updating its requested
parameter.
*
* @param string $parentId
* @param string $id