-
Notifications
You must be signed in to change notification settings - Fork 362
Migration guide for v21
Kamil Pajdzik edited this page Jul 31, 2022
·
1 revision
Major version release for API version 2020-08-27. "
- Add
ApiKeyMissingException
. - Add
validate
field toCustomerCreateParams
. - Add
validate
field toCustomerUpdateParams
. - Add
validate
field toPaymentSourceCollectionCreateParams
. - Add
shippingCost
,shippingDetails
, andshippingOptions
properties tocheckout.Session
resource.
- Removed deprecated
AlipayAccount
and related classes. - Removed deprecated
BitcoinReceiver
and related classes. - Removed deprecated
BitcoinTransaction
and related classes. - Removed deprecated
Recipient
and related classes. - Removed deprecated
IssuerFraudRecord
and related classes. - Removed deprecated
Order
and related classes. - Removed deprecated
ThreeDSecure
and related classes. - Removed unused
QuoteFinalizeParams
,QuoteCollectionListParams
classes. - Removed unused
BillingDetails
class. - Removed
CashBalance.retrieveCashBalance
method. PreferCashBalance.retrieve
. - Removed
Rule.getDeleted
method. The property was never populated and always had the default value offalse
. - Removed
LineItem.getDeleted
method. The property was never populated and always had the default value offalse
. - Removed public constructors from
TestHelper
inner classes and made them static.- Removed
Refund.TestHelpers
constructor. - Removed
Reader.TestHelpers
constructor. - Removed
InboundTransfer.TestHelpers
constructor. - Removed
OutboundPayment.TestHelpers
constructor. - Removed
OutboundTransfer.TestHelpers
constructor.
- Removed
- Removed instance
Account.refresh
,Account.disconnect
methods. - Removed deprecated
TREASURY__RECEIVED_CREDIT__REVERSED
,TREASURY__RECEIVED_DEBIT__CREATED
,ORDER__UPDATED
,ORDER_RETURN__CREATED
,ORDER__PAYMENT_SUCCEEDED
,TRANSFER__FAILED
,TRANSFER__PAID
webhook events. - Removed deprecated
LoginLink.redirectUrl
property. - Removed deprecated
Charge.order
property. - Removed deprecated
Card.recipient
property. - Removed
defaultCurrency
property fromCustomer
resource. Please useCurrency
property instead. - Removed
shipping
andshippingOptions
properties fromcheckout.Session
resource. Please useshippingCost
,shippingDetails
, andshippingOptions
properties instead. - Removed
InitiatingPaymentMethodDetails
class
- Default API version changed to "2022-07-28".
- Changed
CashBalance.retrieve
method from an instance to a static. - Renamed
PaymentIntent.FinancialAddresses
class toFinancialAddress
. - Check that apiKey is set (either globally or via request options) in
StripeCollection.autoPagingIterable
andStripeSearchResult.autoPagingIterable
, and throw an exception if it is not. - Changed type of
businessType
field inAccountCreateParams
fromObject
toBusinessType