diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 2597d2c77..e9281bf5d 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v515
\ No newline at end of file
+v532
\ No newline at end of file
diff --git a/init.php b/init.php
index 4a44e5589..d67b7d407 100644
--- a/init.php
+++ b/init.php
@@ -99,6 +99,7 @@
require __DIR__ . '/lib/Charge.php';
require __DIR__ . '/lib/Checkout/Session.php';
require __DIR__ . '/lib/Collection.php';
+require __DIR__ . '/lib/ConfirmationToken.php';
require __DIR__ . '/lib/CountrySpec.php';
require __DIR__ . '/lib/Coupon.php';
require __DIR__ . '/lib/CreditNote.php';
@@ -184,6 +185,7 @@
require __DIR__ . '/lib/Service/ChargeService.php';
require __DIR__ . '/lib/Service/Checkout/CheckoutServiceFactory.php';
require __DIR__ . '/lib/Service/Checkout/SessionService.php';
+require __DIR__ . '/lib/Service/ConfirmationTokenService.php';
require __DIR__ . '/lib/Service/CoreServiceFactory.php';
require __DIR__ . '/lib/Service/CountrySpecService.php';
require __DIR__ . '/lib/Service/CouponService.php';
@@ -262,9 +264,11 @@
require __DIR__ . '/lib/Service/Terminal/ReaderService.php';
require __DIR__ . '/lib/Service/Terminal/TerminalServiceFactory.php';
require __DIR__ . '/lib/Service/TestHelpers/CustomerService.php';
+require __DIR__ . '/lib/Service/TestHelpers/Issuing/AuthorizationService.php';
require __DIR__ . '/lib/Service/TestHelpers/Issuing/CardDesignService.php';
require __DIR__ . '/lib/Service/TestHelpers/Issuing/CardService.php';
require __DIR__ . '/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php';
+require __DIR__ . '/lib/Service/TestHelpers/Issuing/TransactionService.php';
require __DIR__ . '/lib/Service/TestHelpers/RefundService.php';
require __DIR__ . '/lib/Service/TestHelpers/Terminal/ReaderService.php';
require __DIR__ . '/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php';
diff --git a/lib/Balance.php b/lib/Balance.php
index 05a94ccfa..8243f9a9f 100644
--- a/lib/Balance.php
+++ b/lib/Balance.php
@@ -18,12 +18,12 @@
* Related guide: Understanding Connect account balances
*
* @property string $object String representing the object's type. Objects of the same type share the same value.
- * @property \Stripe\StripeObject[] $available Funds that are available to be transferred or paid out, whether automatically by Stripe or explicitly via the Transfers API or Payouts API. The available balance for each currency and payment type can be found in the source_types
property.
- * @property null|\Stripe\StripeObject[] $connect_reserved Funds held due to negative balances on connected Custom accounts. The connect reserve balance for each currency and payment type can be found in the source_types
property.
- * @property null|\Stripe\StripeObject[] $instant_available Funds that can be paid out using Instant Payouts.
+ * @property \Stripe\StripeObject[] $available Available funds that you can transfer or pay out automatically by Stripe or explicitly through the Transfers API or Payouts API. You can find the available balance for each currency and payment type in the source_types
property.
+ * @property null|\Stripe\StripeObject[] $connect_reserved Funds held due to negative balances on connected Custom accounts. You can find the connect reserve balance for each currency and payment type in the source_types
property.
+ * @property null|\Stripe\StripeObject[] $instant_available Funds that you can pay out using Instant Payouts.
* @property null|\Stripe\StripeObject $issuing
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
- * @property \Stripe\StripeObject[] $pending Funds that are not yet available in the balance. The pending balance for each currency, and for each payment type, can be found in the source_types
property.
+ * @property \Stripe\StripeObject[] $pending Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the source_types
property.
*/
class Balance extends SingletonApiResource
{
diff --git a/lib/BalanceTransaction.php b/lib/BalanceTransaction.php
index 6115899e5..da8158f5a 100644
--- a/lib/BalanceTransaction.php
+++ b/lib/BalanceTransaction.php
@@ -6,25 +6,25 @@
/**
* Balance transactions represent funds moving through your Stripe account.
- * They're created for every type of transaction that comes into or flows out of your Stripe account balance.
+ * Stripe creates them for every type of transaction that enters or leaves your Stripe account balance.
*
* Related guide: Balance transaction types
*
* @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.
- * @property int $amount Gross amount of the transaction, in cents (or local equivalent).
- * @property int $available_on The date the transaction's net funds will become available in the Stripe balance.
+ * @property int $amount Gross amount of the transaction (in cents (or local equivalent)).
+ * @property int $available_on The date that the transaction's net funds become available in the Stripe balance.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
* @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users.
- * @property null|float $exchange_rate The exchange rate used, if applicable, for this transaction. Specifically, if money was converted from currency A to currency B, then the amount
in currency A, times exchange_rate
, would be the amount
in currency B. For example, suppose you charged a customer 10.00 EUR. Then the PaymentIntent's amount
would be 1000
and currency
would be eur
. Suppose this was converted into 12.34 USD in your Stripe account. Then the BalanceTransaction's amount
would be 1234
, currency
would be usd
, and exchange_rate
would be 1.234
.
+ * @property null|float $exchange_rate If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then the amount
in currency A, multipled by the exchange_rate
, equals the amount
in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent's amount
is 1000
and currency
is eur
. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction's amount
is 1234
, its currency
is usd
, and the exchange_rate
is 1.234
.
* @property int $fee Fees (in cents (or local equivalent)) paid for this transaction.
* @property \Stripe\StripeObject[] $fee_details Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction.
- * @property int $net Net amount of the transaction, in cents (or local equivalent).
- * @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 int $net Net amount of the transaction (in cents (or local equivalent)).
+ * @property string $reporting_category Learn more about how [reporting categories] (https://stripe.com/docs/reports/reporting-categories) can help you understand balance transactions from an accounting perspective.
+ * @property null|string|\Stripe\StripeObject $source This transaction relates to the Stripe object.
+ * @property string $status The transaction's net funds status in the Stripe balance, which are 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. To classify transactions for accounting purposes, consider reporting_category
instead.
*/
class BalanceTransaction extends ApiResource
{
diff --git a/lib/ConfirmationToken.php b/lib/ConfirmationToken.php
new file mode 100644
index 000000000..5d6a43b91
--- /dev/null
+++ b/lib/ConfirmationToken.php
@@ -0,0 +1,35 @@
+true if the object exists in live mode or the value false
if the object exists in test mode.
+ * @property null|\Stripe\StripeObject $mandate_data Data used for generating a Mandate.
+ * @property null|string $payment_intent ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
+ * @property null|string|\Stripe\PaymentMethod $payment_method ID of an existing PaymentMethod.
+ * @property null|\Stripe\StripeObject $payment_method_preview Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
+ * @property null|string $return_url Return URL used to confirm the Intent.
+ * @property null|string $setup_future_usage
Indicates that you intend to make future payments with this ConfirmationToken's payment method.
The presence of this property will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
+ * @property null|string $setup_intent ID of the SetupIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used. + * @property null|\Stripe\StripeObject $shipping Shipping information collected on this ConfirmationToken. + */ +class ConfirmationToken extends ApiResource +{ + const OBJECT_NAME = 'confirmation_token'; + + use ApiOperations\Retrieve; + + const SETUP_FUTURE_USAGE_OFF_SESSION = 'off_session'; + const SETUP_FUTURE_USAGE_ON_SESSION = 'on_session'; +} diff --git a/lib/Customer.php b/lib/Customer.php index 7d3f8983c..3e2855906 100644 --- a/lib/Customer.php +++ b/lib/Customer.php @@ -5,38 +5,38 @@ namespace Stripe; /** - * This object represents a customer of your business. It lets you create recurring charges and track payments that belong to the same customer. + * This object represents a customer of your business. Use it to create recurring charges and track payments that belong to the same customer. * * Related guide: Save a card during payment * * @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. * @property null|\Stripe\StripeObject $address The customer's address. - * @property null|int $balance Current balance, if any, being stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that will be added to their next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account as invoices are finalized. - * @property null|\Stripe\CashBalance $cash_balance The current funds being held by Stripe on behalf of the customer. These funds can be applied towards payment intents with source "cash_balance". The settings[reconciliation_mode] field describes whether these funds are applied to such payment intents manually or automatically. + * @property null|int $balance The current balance, if any, that's stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. + * @property null|\Stripe\CashBalance $cash_balance The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". Thesettings[reconciliation_mode]
field describes if these funds apply to these payment intents manually or automatically.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property null|string $currency Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes.
- * @property null|string|\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source $default_source ID of the default payment source for the customer.
If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method field instead.
- * @property null|bool $delinquentWhen the customer's latest invoice is billed by charging automatically, delinquent
is true
if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, delinquent
is true
if the invoice isn't paid by its due date.
If an invoice is marked uncollectible by dunning, delinquent
doesn't get reset to false
.
ID of the default payment source for the customer.
If you use payment methods created through the PaymentMethods API, see the invoice_settings.default_payment_method field instead.
+ * @property null|bool $delinquentIf Stripe bills the customer's latest invoice by automatically charging and the latest charge fails, it sets delinquent`` to
true. If Stripe bills the invoice by sending it, and the invoice isn't paid by the due date, it also sets `delinquent
to true
.
If an invoice becomes uncollectible by dunning, delinquent
doesn't reset to false
.
true
if the object exists in live mode or the value false
if the object exists in test mode.
* @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|string $name The customer's full name or business name.
- * @property null|int $next_invoice_sequence The suffix of the customer's next invoice number, e.g., 0001.
+ * @property null|int $next_invoice_sequence The suffix of the customer's next invoice number (for example, 0001).
* @property null|string $phone The customer's phone number.
* @property null|string[] $preferred_locales The customer's preferred locales (languages), ordered by preference.
* @property null|\Stripe\StripeObject $shipping Mailing and shipping address for the customer. Appears on invoices emailed to this customer.
* @property null|\Stripe\Collection<\Stripe\Account|\Stripe\BankAccount|\Stripe\Card|\Stripe\Source> $sources The customer's payment sources, if any.
* @property null|\Stripe\Collection<\Stripe\Subscription> $subscriptions The customer's current subscriptions, if any.
* @property null|\Stripe\StripeObject $tax
- * @property null|string $tax_exempt Describes the customer's tax exemption status. One of none
, exempt
, or reverse
. When set to reverse
, invoice and receipt PDFs include the text "Reverse charge".
+ * @property null|string $tax_exempt Describes the customer's tax exemption status, which is none
, exempt
, or reverse
. When set to reverse
, invoice and receipt PDFs include the following text: "Reverse charge".
* @property null|\Stripe\Collection<\Stripe\TaxId> $tax_ids The customer's tax IDs.
- * @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock this customer belongs to.
+ * @property null|string|\Stripe\TestHelpers\TestClock $test_clock ID of the test clock that this customer belongs to.
*/
class Customer extends ApiResource
{
diff --git a/lib/Dispute.php b/lib/Dispute.php
index 62c99c15a..55cc06a5a 100644
--- a/lib/Dispute.php
+++ b/lib/Dispute.php
@@ -6,29 +6,27 @@
/**
* A dispute occurs when a customer questions your charge with their card issuer.
- * When this happens, you're given the opportunity to respond to the dispute with
- * evidence that shows that the charge is legitimate. You can find more
- * information about the dispute process in our Disputes and
- * Fraud documentation.
+ * When this happens, you have the opportunity to respond to the dispute with
+ * evidence that shows that the charge is legitimate.
*
* Related guide: Disputes and fraud
*
* @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.
- * @property int $amount Disputed amount. Usually the amount of the charge, but can differ (usually because of currency fluctuation or because only part of the order is disputed).
+ * @property int $amount Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed).
* @property \Stripe\BalanceTransaction[] $balance_transactions List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
- * @property string|\Stripe\Charge $charge ID of the charge that was disputed.
+ * @property string|\Stripe\Charge $charge ID of the charge that's disputed.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency.
* @property \Stripe\StripeObject $evidence
* @property \Stripe\StripeObject $evidence_details
- * @property bool $is_charge_refundable If true, it is still possible to refund the disputed payment. Once the payment has been fully refunded, no further funds will be withdrawn from your Stripe account as a result of this dispute.
+ * @property bool $is_charge_refundable If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute.
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property \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|string $network_reason_code Network-dependent reason code for the dispute.
- * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent that was disputed.
+ * @property null|string|\Stripe\PaymentIntent $payment_intent ID of the PaymentIntent that's disputed.
* @property null|\Stripe\StripeObject $payment_method_details
- * @property string $reason Reason given by cardholder for dispute. Possible values are bank_cannot_process
, check_returned
, credit_not_processed
, customer_initiated
, debit_not_authorized
, duplicate
, fraudulent
, general
, incorrect_account_details
, insufficient_funds
, product_not_received
, product_unacceptable
, subscription_canceled
, or unrecognized
. Read more about dispute reasons.
+ * @property string $reason Reason given by cardholder for dispute. Possible values are bank_cannot_process
, check_returned
, credit_not_processed
, customer_initiated
, debit_not_authorized
, duplicate
, fraudulent
, general
, incorrect_account_details
, insufficient_funds
, product_not_received
, product_unacceptable
, subscription_canceled
, or unrecognized
. Learn more about dispute reasons.
* @property string $status Current status of dispute. Possible values are warning_needs_response
, warning_under_review
, warning_closed
, needs_response
, under_review
, won
, or lost
.
*/
class Dispute extends ApiResource
diff --git a/lib/ErrorObject.php b/lib/ErrorObject.php
index 4e549d77b..88e95f5c1 100644
--- a/lib/ErrorObject.php
+++ b/lib/ErrorObject.php
@@ -190,6 +190,7 @@ class ErrorObject extends StripeObject
const CODE_SKU_INACTIVE = 'sku_inactive';
const CODE_STATE_UNSUPPORTED = 'state_unsupported';
const CODE_STATUS_TRANSITION_INVALID = 'status_transition_invalid';
+ const CODE_STRIPE_TAX_INACTIVE = 'stripe_tax_inactive';
const CODE_TAX_ID_INVALID = 'tax_id_invalid';
const CODE_TAXES_CALCULATION_FAILED = 'taxes_calculation_failed';
const CODE_TERMINAL_LOCATION_COUNTRY_UNSUPPORTED = 'terminal_location_country_unsupported';
diff --git a/lib/Event.php b/lib/Event.php
index a70abcc1b..ef425eb83 100644
--- a/lib/Event.php
+++ b/lib/Event.php
@@ -8,46 +8,47 @@
* Events are our way of letting you know when something interesting happens in
* your account. When an interesting event occurs, we create a new Event
* object. For example, when a charge succeeds, we create a charge.succeeded
- * event; and when an invoice payment attempt fails, we create an
- * invoice.payment_failed
event. Note that many API requests may cause multiple
- * events to be created. For example, if you create a new subscription for a
- * customer, you will receive both a customer.subscription.created
event and a
+ * event, and when an invoice payment attempt fails, we create an
+ * invoice.payment_failed
event. Certain API requests might create multiple
+ * events. For example, if you create a new subscription for a
+ * customer, you receive both a customer.subscription.created
event and a
* charge.succeeded
event.
*
- * Events occur when the state of another API resource changes. The state of that
- * resource at the time of the change is embedded in the event's data field. For
- * example, a charge.succeeded
event will contain a charge, and an
- * invoice.payment_failed
event will contain an invoice.
+ * Events occur when the state of another API resource changes. The event's data
+ * field embeds the resource's state at the time of the change. For
+ * example, a charge.succeeded
event contains a charge, and an
+ * invoice.payment_failed
event contains an invoice.
*
* As with other API resources, you can use endpoints to retrieve an
* individual event or a list of events
* from the API. We also have a separate
* webhooks system for sending the
- * Event
objects directly to an endpoint on your server. Webhooks are managed
- * in your
- * account settings,
- * and our Using Webhooks guide will help you get set up.
+ * Event
objects directly to an endpoint on your server. You can manage
+ * webhooks in your
+ * account settings. Learn how
+ * to [listen for events]
+ * (/docs/webhooks) so that your integration can automatically trigger reactions.
*
- * When using Connect, you can also receive notifications of
- * events that occur in connected accounts. For these events, there will be an
+ * When using Connect, you can also receive event notifications
+ * that occur in connected accounts. For these events, there's an
* additional account
attribute in the received Event
object.
*
- * NOTE: Right now, access to events through the Retrieve Event API is
- * guaranteed only for 30 days.
+ * We only guarantee access to events through the Retrieve Event API
+ * for 30 days.
*
* This class includes constants for the possible string representations of
* event types. See https://stripe.com/docs/api#event_types for more details.
*
* @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.
- * @property null|string $account The connected account that originated the event.
- * @property null|string $api_version The Stripe API version used to render data
. Note: This property is populated only for events on or after October 31, 2014.
+ * @property null|string $account The connected account that originates the event.
+ * @property null|string $api_version The Stripe API version used to render data
. This property is populated only for events on or after October 31, 2014.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property \Stripe\StripeObject $data
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
- * @property int $pending_webhooks Number of webhooks that have yet to be successfully delivered (i.e., to return a 20x response) to the URLs you've specified.
- * @property null|\Stripe\StripeObject $request Information on the API request that instigated the event.
- * @property string $type Description of the event (e.g., invoice.created
or charge.refunded
).
+ * @property int $pending_webhooks Number of webhooks that haven't been successfully delivered (for example, to return a 20x response) to the URLs you specify.
+ * @property null|\Stripe\StripeObject $request Information on the API request that triggers the event.
+ * @property string $type Description of the event (for example, invoice.created
or charge.refunded
).
*/
class Event extends ApiResource
{
@@ -166,6 +167,7 @@ class Event extends ApiResource
const ISSUING_CARD_CREATED = 'issuing_card.created';
const ISSUING_CARD_DESIGN_ACTIVATED = 'issuing_card_design.activated';
const ISSUING_CARD_DESIGN_DEACTIVATED = 'issuing_card_design.deactivated';
+ const ISSUING_CARD_DESIGN_REJECTED = 'issuing_card_design.rejected';
const ISSUING_CARD_DESIGN_UPDATED = 'issuing_card_design.updated';
const ISSUING_CARD_UPDATED = 'issuing_card.updated';
const ISSUING_DISPUTE_CLOSED = 'issuing_dispute.closed';
@@ -415,6 +417,7 @@ class Event extends ApiResource
const TYPE_ISSUING_CARD_CREATED = 'issuing_card.created';
const TYPE_ISSUING_CARD_DESIGN_ACTIVATED = 'issuing_card_design.activated';
const TYPE_ISSUING_CARD_DESIGN_DEACTIVATED = 'issuing_card_design.deactivated';
+ const TYPE_ISSUING_CARD_DESIGN_REJECTED = 'issuing_card_design.rejected';
const TYPE_ISSUING_CARD_DESIGN_UPDATED = 'issuing_card_design.updated';
const TYPE_ISSUING_CARD_UPDATED = 'issuing_card.updated';
const TYPE_ISSUING_DISPUTE_CLOSED = 'issuing_dispute.closed';
diff --git a/lib/Issuing/CardBundle.php b/lib/Issuing/CardBundle.php
index 93b464041..f8ad63765 100644
--- a/lib/Issuing/CardBundle.php
+++ b/lib/Issuing/CardBundle.php
@@ -9,6 +9,7 @@
*
* @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.
+ * @property null|\Stripe\StripeObject $features
* @property bool $livemode Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
* @property string $name Friendly display name.
* @property string $status Whether this card bundle can be used to create cards.
diff --git a/lib/Issuing/CardDesign.php b/lib/Issuing/CardDesign.php
index 75fecbc22..baccb2727 100644
--- a/lib/Issuing/CardDesign.php
+++ b/lib/Issuing/CardDesign.php
@@ -10,10 +10,13 @@
* @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.
* @property string|\Stripe\Issuing\CardBundle $card_bundle The card bundle object belonging to this card design.
+ * @property null|string|\Stripe\File $card_logo The file for the card logo, for use with card bundles that support card logos.
+ * @property null|\Stripe\StripeObject $carrier_text Hash containing carrier text, for use with card bundles that support carrier text.
* @property null|string $lookup_key A lookup key used to retrieve card designs dynamically from a static string. This may be up to 200 characters.
* @property \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|string $name Friendly display name.
- * @property string $preference Whether this card design is used to create cards when one is not specified.
+ * @property \Stripe\StripeObject $preferences
+ * @property \Stripe\StripeObject $rejection_reasons
* @property string $status Whether this card design can be used to create cards.
*/
class CardDesign extends \Stripe\ApiResource
@@ -21,13 +24,10 @@ class CardDesign extends \Stripe\ApiResource
const OBJECT_NAME = 'issuing.card_design';
use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Create;
use \Stripe\ApiOperations\Retrieve;
use \Stripe\ApiOperations\Update;
- const PREFERENCE_DEFAULT = 'default';
- const PREFERENCE_NONE = 'none';
- const PREFERENCE_PLATFORM_DEFAULT = 'platform_default';
-
const STATUS_ACTIVE = 'active';
const STATUS_INACTIVE = 'inactive';
const STATUS_REJECTED = 'rejected';
diff --git a/lib/Service/ConfirmationTokenService.php b/lib/Service/ConfirmationTokenService.php
new file mode 100644
index 000000000..2f40acc71
--- /dev/null
+++ b/lib/Service/ConfirmationTokenService.php
@@ -0,0 +1,24 @@
+request('get', $this->buildPath('/v1/confirmation_tokens/%s', $id), $params, $opts);
+ }
+}
diff --git a/lib/Service/CoreServiceFactory.php b/lib/Service/CoreServiceFactory.php
index 277d56537..ca21a5463 100644
--- a/lib/Service/CoreServiceFactory.php
+++ b/lib/Service/CoreServiceFactory.php
@@ -19,6 +19,7 @@
* @property Capital\CapitalServiceFactory $capital
* @property ChargeService $charges
* @property Checkout\CheckoutServiceFactory $checkout
+ * @property ConfirmationTokenService $confirmationTokens
* @property CountrySpecService $countrySpecs
* @property CouponService $coupons
* @property CreditNoteService $creditNotes
@@ -92,6 +93,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
'capital' => Capital\CapitalServiceFactory::class,
'charges' => ChargeService::class,
'checkout' => Checkout\CheckoutServiceFactory::class,
+ 'confirmationTokens' => ConfirmationTokenService::class,
'countrySpecs' => CountrySpecService::class,
'coupons' => CouponService::class,
'creditNotes' => CreditNoteService::class,
diff --git a/lib/Service/CustomerService.php b/lib/Service/CustomerService.php
index 3c13d008c..34346a1eb 100644
--- a/lib/Service/CustomerService.php
+++ b/lib/Service/CustomerService.php
@@ -179,7 +179,7 @@ public function createSource($parentId, $params = null, $opts = null)
}
/**
- * Creates a new TaxID
object for a customer.
+ * Creates a new tax_id
object for a customer.
*
* @param string $parentId
* @param null|array $params
@@ -245,7 +245,7 @@ public function deleteSource($parentId, $id, $params = null, $opts = null)
}
/**
- * Deletes an existing TaxID
object.
+ * Deletes an existing tax_id
object.
*
* @param string $parentId
* @param string $id
@@ -364,7 +364,7 @@ public function retrieveSource($parentId, $id, $params = null, $opts = null)
}
/**
- * Retrieves the TaxID
object with the given identifier.
+ * Retrieves the tax_id
object with the given identifier.
*
* @param string $parentId
* @param string $id
diff --git a/lib/Service/Issuing/CardDesignService.php b/lib/Service/Issuing/CardDesignService.php
index eca9bde30..d75649d03 100644
--- a/lib/Service/Issuing/CardDesignService.php
+++ b/lib/Service/Issuing/CardDesignService.php
@@ -22,6 +22,21 @@ public function all($params = null, $opts = null)
return $this->requestCollection('get', '/v1/issuing/card_designs', $params, $opts);
}
+ /**
+ * Creates a card design object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\CardDesign
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/issuing/card_designs', $params, $opts);
+ }
+
/**
* Retrieves a card design object.
*
diff --git a/lib/Service/TestHelpers/Issuing/AuthorizationService.php b/lib/Service/TestHelpers/Issuing/AuthorizationService.php
new file mode 100644
index 000000000..73de27cb9
--- /dev/null
+++ b/lib/Service/TestHelpers/Issuing/AuthorizationService.php
@@ -0,0 +1,87 @@
+request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/capture', $id), $params, $opts);
+ }
+
+ /**
+ * Create a test-mode authorization.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/test_helpers/issuing/authorizations', $params, $opts);
+ }
+
+ /**
+ * Expire a test-mode Authorization.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function expire($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/expire', $id), $params, $opts);
+ }
+
+ /**
+ * Increment a test-mode Authorization.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function increment($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/increment', $id), $params, $opts);
+ }
+
+ /**
+ * Reverse a test-mode Authorization.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function reverse($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/authorizations/%s/reverse', $id), $params, $opts);
+ }
+}
diff --git a/lib/Service/TestHelpers/Issuing/CardDesignService.php b/lib/Service/TestHelpers/Issuing/CardDesignService.php
index 88fff843b..d533fb627 100644
--- a/lib/Service/TestHelpers/Issuing/CardDesignService.php
+++ b/lib/Service/TestHelpers/Issuing/CardDesignService.php
@@ -39,4 +39,21 @@ public function deactivateTestmode($id, $params = null, $opts = null)
{
return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/card_designs/%s/status/deactivate', $id), $params, $opts);
}
+
+ /**
+ * Updates the status
of the specified testmode card design object to
+ * rejected
.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\CardDesign
+ */
+ public function rejectTestmode($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/card_designs/%s/status/reject', $id), $params, $opts);
+ }
}
diff --git a/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php b/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php
index 1b3a24ef6..61d7a15c7 100644
--- a/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php
+++ b/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php
@@ -7,8 +7,10 @@
/**
* Service factory class for API resources in the Issuing namespace.
*
+ * @property AuthorizationService $authorizations
* @property CardDesignService $cardDesigns
* @property CardService $cards
+ * @property TransactionService $transactions
*/
class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
{
@@ -16,8 +18,10 @@ class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
* @var array